2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 18devel.
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
='18devel'
586 PACKAGE_STRING
='PostgreSQL 18devel'
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_MISSING_VARIABLE_DECLARATIONS
745 PERMIT_DECLARATION_AFTER_STATEMENT
766 enable_injection_points
817 program_transform_name
830 enable_option_checking
836 enable_integer_datetimes
845 enable_injection_points
867 with_libedit_preferred
880 ac_precious_vars
='build_alias
914 # Initialize some variables set by options.
916 ac_init_version
=false
917 ac_unrecognized_opts
=
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
928 program_transform_name
=s
,x
,x
,
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir
='${exec_prefix}/bin'
943 sbindir
='${exec_prefix}/sbin'
944 libexecdir
='${exec_prefix}/libexec'
945 datarootdir
='${prefix}/share'
946 datadir
='${datarootdir}'
947 sysconfdir
='${prefix}/etc'
948 sharedstatedir
='${prefix}/com'
949 localstatedir
='${prefix}/var'
950 includedir
='${prefix}/include'
951 oldincludedir
='/usr/include'
952 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir
='${datarootdir}/info'
958 libdir
='${exec_prefix}/lib'
959 localedir
='${datarootdir}/locale'
960 mandir
='${datarootdir}/man'
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\
$ac_option
974 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 # Accept the important Cygnus configure options, so we can diagnose typos.
981 case $ac_dashdash$ac_option in
985 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
987 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
990 -build |
--build |
--buil |
--bui |
--bu)
991 ac_prev
=build_alias
;;
992 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
993 build_alias
=$ac_optarg ;;
995 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
996 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
997 ac_prev
=cache_file
;;
998 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
999 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1000 cache_file
=$ac_optarg ;;
1002 --config-cache |
-C)
1003 cache_file
=config.cache
;;
1005 -datadir |
--datadir |
--datadi |
--datad)
1007 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1008 datadir
=$ac_optarg ;;
1010 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1011 |
--dataroo |
--dataro |
--datar)
1012 ac_prev
=datarootdir
;;
1013 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1014 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1015 datarootdir
=$ac_optarg ;;
1017 -disable-* |
--disable-*)
1018 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1021 as_fn_error $?
"invalid feature name: $ac_useropt"
1022 ac_useropt_orig
=$ac_useropt
1023 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_
$ac_useropt"
1028 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep
=', ';;
1031 eval enable_
$ac_useropt=no
;;
1033 -docdir |
--docdir |
--docdi |
--doc |
--do)
1035 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1036 docdir
=$ac_optarg ;;
1038 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1040 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1041 dvidir
=$ac_optarg ;;
1043 -enable-* |
--enable-*)
1044 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1047 as_fn_error $?
"invalid feature name: $ac_useropt"
1048 ac_useropt_orig
=$ac_useropt
1049 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_
$ac_useropt"
1054 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055 ac_unrecognized_sep
=', ';;
1057 eval enable_
$ac_useropt=\
$ac_optarg ;;
1059 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1060 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1061 |
--exec |
--exe |
--ex)
1062 ac_prev
=exec_prefix
;;
1063 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1064 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1065 |
--exec=* |
--exe=* |
--ex=*)
1066 exec_prefix
=$ac_optarg ;;
1068 -gas |
--gas |
--ga |
--g)
1069 # Obsolete; use --with-gas.
1072 -help |
--help |
--hel |
--he |
-h)
1073 ac_init_help
=long
;;
1074 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1075 ac_init_help
=recursive
;;
1076 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1077 ac_init_help
=short
;;
1079 -host |
--host |
--hos |
--ho)
1080 ac_prev
=host_alias
;;
1081 -host=* |
--host=* |
--hos=* |
--ho=*)
1082 host_alias
=$ac_optarg ;;
1084 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1086 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1088 htmldir
=$ac_optarg ;;
1090 -includedir |
--includedir |
--includedi |
--included |
--include \
1091 |
--includ |
--inclu |
--incl |
--inc)
1092 ac_prev
=includedir
;;
1093 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1094 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1095 includedir
=$ac_optarg ;;
1097 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1099 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1100 infodir
=$ac_optarg ;;
1102 -libdir |
--libdir |
--libdi |
--libd)
1104 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1105 libdir
=$ac_optarg ;;
1107 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1108 |
--libexe |
--libex |
--libe)
1109 ac_prev
=libexecdir
;;
1110 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1111 |
--libexe=* |
--libex=* |
--libe=*)
1112 libexecdir
=$ac_optarg ;;
1114 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1115 ac_prev
=localedir
;;
1116 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1117 localedir
=$ac_optarg ;;
1119 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1120 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1121 ac_prev
=localstatedir
;;
1122 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1123 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1124 localstatedir
=$ac_optarg ;;
1126 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1128 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1129 mandir
=$ac_optarg ;;
1131 -nfp |
--nfp |
--nf)
1132 # Obsolete; use --without-fp.
1135 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1136 |
--no-cr |
--no-c |
-n)
1139 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1140 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1143 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1144 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1145 |
--oldin |
--oldi |
--old |
--ol |
--o)
1146 ac_prev
=oldincludedir
;;
1147 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1148 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1149 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1150 oldincludedir
=$ac_optarg ;;
1152 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1154 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1155 prefix
=$ac_optarg ;;
1157 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1158 |
--program-pre |
--program-pr |
--program-p)
1159 ac_prev
=program_prefix
;;
1160 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1161 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1162 program_prefix
=$ac_optarg ;;
1164 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1165 |
--program-suf |
--program-su |
--program-s)
1166 ac_prev
=program_suffix
;;
1167 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1168 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1169 program_suffix
=$ac_optarg ;;
1171 -program-transform-name |
--program-transform-name \
1172 |
--program-transform-nam |
--program-transform-na \
1173 |
--program-transform-n |
--program-transform- \
1174 |
--program-transform |
--program-transfor \
1175 |
--program-transfo |
--program-transf \
1176 |
--program-trans |
--program-tran \
1177 |
--progr-tra |
--program-tr |
--program-t)
1178 ac_prev
=program_transform_name
;;
1179 -program-transform-name=* |
--program-transform-name=* \
1180 |
--program-transform-nam=* |
--program-transform-na=* \
1181 |
--program-transform-n=* |
--program-transform-=* \
1182 |
--program-transform=* |
--program-transfor=* \
1183 |
--program-transfo=* |
--program-transf=* \
1184 |
--program-trans=* |
--program-tran=* \
1185 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1186 program_transform_name
=$ac_optarg ;;
1188 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1190 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1191 pdfdir
=$ac_optarg ;;
1193 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1195 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1198 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1199 |
-silent |
--silent |
--silen |
--sile |
--sil)
1202 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1204 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1206 sbindir
=$ac_optarg ;;
1208 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1209 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1210 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1212 ac_prev
=sharedstatedir
;;
1213 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1214 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1215 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1217 sharedstatedir
=$ac_optarg ;;
1219 -site |
--site |
--sit)
1221 -site=* |
--site=* |
--sit=*)
1224 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1226 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1227 srcdir
=$ac_optarg ;;
1229 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1230 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1231 ac_prev
=sysconfdir
;;
1232 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1233 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1234 sysconfdir
=$ac_optarg ;;
1236 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1237 ac_prev
=target_alias
;;
1238 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1239 target_alias
=$ac_optarg ;;
1241 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1244 -version |
--version |
--versio |
--versi |
--vers |
-V)
1245 ac_init_version
=: ;;
1248 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1251 as_fn_error $?
"invalid package name: $ac_useropt"
1252 ac_useropt_orig
=$ac_useropt
1253 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1258 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep
=', ';;
1261 eval with_
$ac_useropt=\
$ac_optarg ;;
1263 -without-* |
--without-*)
1264 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1267 as_fn_error $?
"invalid package name: $ac_useropt"
1268 ac_useropt_orig
=$ac_useropt
1269 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1274 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep
=', ';;
1277 eval with_
$ac_useropt=no
;;
1280 # Obsolete; use --with-x.
1283 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1284 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1285 ac_prev
=x_includes
;;
1286 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1287 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1288 x_includes
=$ac_optarg ;;
1290 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1291 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1292 ac_prev
=x_libraries
;;
1293 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1294 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1295 x_libraries
=$ac_optarg ;;
1297 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1298 Try \`$0 --help' for more information"
1302 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1306 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1308 eval $ac_envvar=\
$ac_optarg
1309 export $ac_envvar ;;
1312 # FIXME: should be removed in autoconf 3.0.
1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1322 if test -n "$ac_prev"; then
1323 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error $?
"missing argument to $ac_option"
1327 if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1330 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335 # Check all directory arguments for consistency.
1336 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
1341 eval ac_val
=\$
$ac_var
1342 # Remove trailing slashes.
1345 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\
$ac_val;;
1348 # Be sure to have absolute directory names.
1350 [\\/$
]* | ?
:[\\/]* ) continue;;
1351 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1353 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1361 target
=$target_alias
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x
; then
1365 if test "x$build_alias" = x
; then
1366 cross_compiling
=maybe
1367 elif test "x$build_alias" != "x$host_alias"; then
1373 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1375 test "$silent" = yes && exec 6>/dev
/null
1378 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di
=`ls -di .` &&
1380 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $?
"working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $?
"pwd does not report name of working directory"
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted
=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir
=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 $as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1418 ac_srcdir_defaulted
=no
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1422 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1424 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1436 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 for ac_var
in $ac_precious_vars; do
1439 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1441 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1452 \`configure' configures PostgreSQL 18devel to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1510 --build=BUILD configure
for building on BUILD
[guessed
]
1511 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1515 if test -n "$ac_init_help"; then
1516 case $ac_init_help in
1517 short | recursive
) echo "Configuration of PostgreSQL 18devel:";;
1522 --disable-option-checking ignore unrecognized
--enable/--with options
1523 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1524 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1525 --disable-integer-datetimes
1526 obsolete option
, no longer supported
1527 --enable-nls[=LANGUAGES
]
1528 enable Native Language Support
1529 --disable-rpath do not embed shared library search path
in
1531 --enable-debug build with debugging symbols
(-g)
1532 --enable-profiling build with profiling enabled
1533 --enable-coverage build with coverage testing instrumentation
1534 --enable-dtrace build with DTrace support
1535 --enable-tap-tests enable TAP tests
(requires Perl and IPC
::Run
)
1536 --enable-injection-points
1537 enable injection points
(for testing
)
1538 --enable-depend turn on automatic dependency tracking
1539 --enable-cassert enable assertion checks
(for debugging
)
1540 --disable-largefile omit support
for large files
1543 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1544 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1545 --with-extra-version=STRING
1546 append STRING to version
1547 --with-template=NAME override operating system template
1548 --with-includes=DIRS
look for additional header files
in DIRS
1549 --with-libraries=DIRS
look for additional libraries
in DIRS
1550 --with-libs=DIRS alternative spelling of
--with-libraries
1551 --with-pgport=PORTNUM
set default port number
[5432]
1552 --with-blocksize=BLOCKSIZE
1553 set table block size
in kB
[8]
1554 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1555 --with-segsize-blocks=SEGSIZE_BLOCKS
1556 set table segment size
in blocks
[0]
1557 --with-wal-blocksize=BLOCKSIZE
1558 set WAL block size
in kB
[8]
1559 --with-llvm build with LLVM based JIT support
1560 --without-icu build without ICU support
1561 --with-tcl build Tcl modules
(PL
/Tcl
)
1562 --with-tclconfig=DIR tclConfig.sh is
in DIR
1563 --with-perl build Perl modules
(PL
/Perl
)
1564 --with-python build Python modules
(PL
/Python
)
1565 --with-gssapi build with GSSAPI support
1566 --with-krb-srvnam=NAME default service principal name
in Kerberos
(GSSAPI
)
1568 --with-pam build with PAM support
1569 --with-bsd-auth build with BSD Authentication support
1570 --with-ldap build with LDAP support
1571 --with-bonjour build with Bonjour support
1572 --with-selinux build with SELinux support
1573 --with-systemd build with systemd support
1574 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1575 --with-libedit-preferred
1576 prefer BSD Libedit over GNU Readline
1577 --with-uuid=LIB build contrib
/uuid-ossp using LIB
(bsd
,e2fs
,ossp
)
1578 --with-ossp-uuid obsolete spelling of
--with-uuid=ossp
1579 --with-libxml build with XML support
1580 --with-libxslt use XSLT support when building contrib
/xml2
1581 --with-system-tzdata=DIR
1582 use system
time zone data
in DIR
1583 --without-zlib do not use Zlib
1584 --with-lz4 build with LZ4 support
1585 --with-zstd build with ZSTD support
1586 --with-ssl=LIB use LIB
for SSL
/TLS support
(openssl
)
1587 --with-openssl obsolete spelling of
--with-ssl=openssl
1589 Some influential environment variables
:
1590 CC C compiler
command
1591 CFLAGS C compiler flags
1592 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1593 nonstandard directory
<lib dir
>
1594 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1595 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1596 you have headers
in a nonstandard directory
<include dir
>
1597 CXX C
++ compiler
command
1598 CXXFLAGS C
++ compiler flags
1599 LLVM_CONFIG path to llvm-config
command
1600 CLANG path to clang compiler to generate bitcode
1602 PKG_CONFIG path to pkg-config utility
1604 directories to add to pkg-config
's search path
1606 path overriding pkg-config's built-in search path
1607 ICU_CFLAGS C compiler flags
for ICU
, overriding pkg-config
1608 ICU_LIBS linker flags
for ICU
, overriding pkg-config
1609 XML2_CONFIG path to xml2-config utility
1610 XML2_CFLAGS C compiler flags
for XML2
, overriding pkg-config
1611 XML2_LIBS linker flags
for XML2
, overriding pkg-config
1612 LZ4_CFLAGS C compiler flags
for LZ4
, overriding pkg-config
1613 LZ4_LIBS linker flags
for LZ4
, overriding pkg-config
1614 ZSTD_CFLAGS C compiler flags
for ZSTD
, overriding pkg-config
1615 ZSTD_LIBS linker flags
for ZSTD
, overriding pkg-config
1616 LDFLAGS_EX extra linker flags
for linking executables only
1617 LDFLAGS_SL extra linker flags
for linking shared libraries only
1619 PYTHON Python program
1620 MSGFMT msgfmt program
for NLS
1621 TCLSH Tcl interpreter program
(tclsh
)
1623 Use these variables to override the choices made by
`configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1626 Report bugs to <pgsql-bugs@lists.postgresql.org>.
1627 PostgreSQL home page: <https://www.postgresql.org/>.
1632 if test "$ac_init_help" = "recursive"; then
1633 # If there are subdirs, report their specific --help.
1634 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1635 test -d "$ac_dir" ||
1636 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1657 .) # We are building in place.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1681 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1690 PostgreSQL configure 18devel
1691 generated by GNU Autoconf 2.69
1693 Copyright (C) 2012 Free Software Foundation, Inc.
1694 This configure script is free software; the Free Software Foundation
1695 gives unlimited permission to copy, distribute and modify it.
1697 Copyright (c) 1996-2024, PostgreSQL Global Development Group
1702 ## ------------------------ ##
1703 ## Autoconf initialization. ##
1704 ## ------------------------ ##
1706 # ac_fn_c_try_compile LINENO
1707 # --------------------------
1708 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_compile ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext
1713 if { { ac_try="$ac_compile"
1715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1716 *) ac_try_echo
=$ac_try;;
1718 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_compile") 2>conftest.err
1722 if test -s conftest.err
; then
1723 grep -v '^ *+' conftest.err
>conftest.er1
1724 cat conftest.er1
>&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest.
$ac_objext; then :
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.
$ac_ext >&5
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status
$ac_retval
1742 } # ac_fn_c_try_compile
1744 # ac_fn_cxx_try_compile LINENO
1745 # ----------------------------
1746 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1747 ac_fn_cxx_try_compile
()
1749 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1750 rm -f conftest.
$ac_objext
1751 if { { ac_try
="$ac_compile"
1753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_compile") 2>conftest.err
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_cxx_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest.$ac_objext; then :
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1780 } # ac_fn_cxx_try_compile
1782 # ac_fn_c_try_link LINENO
1783 # -----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded.
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext conftest$ac_exeext
1789 if { { ac_try="$ac_link"
1791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1792 *) ac_try_echo
=$ac_try;;
1794 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>conftest.err
1798 if test -s conftest.err
; then
1799 grep -v '^ *+' conftest.err
>conftest.er1
1800 cat conftest.er1
>&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest
$ac_exeext && {
1808 test "$cross_compiling" = yes ||
1809 test -x conftest
$ac_exeext
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.
$ac_ext >&5
1818 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1819 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1820 # interfere with the next link command; also delete a directory that is
1821 # left behind by Apple's compiler. We do this before executing the actions.
1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status
$ac_retval
1826 } # ac_fn_c_try_link
1828 # ac_fn_c_try_cpp LINENO
1829 # ----------------------
1830 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1834 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } > conftest.i && {
1850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 as_fn_set_status $ac_retval
1865 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1868 # the include files in INCLUDES and setting the cache variable VAR
1870 ac_fn_c_check_header_mongrel ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if eval \${$3+:} false; then :
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1883 # Is the header compilable?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1885 $as_echo_n "checking $2 usability... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 ac_header_compiler=yes
1894 ac_header_compiler=no
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1898 $as_echo "$ac_header_compiler" >&6; }
1900 # Is the header present?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1902 $as_echo_n "checking $2 presence... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1907 if ac_fn_c_try_cpp "$LINENO"; then :
1908 ac_header_preproc=yes
1910 ac_header_preproc=no
1912 rm -f conftest.err conftest.i conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1914 $as_echo "$ac_header_preproc" >&6; }
1916 # So? What about this header?
1917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1920 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1926 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1928 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1930 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1932 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935 ( $as_echo "## ---------------------------------------------- ##
1936 ## Report this to pgsql-bugs@lists.postgresql.org ##
1937 ## ---------------------------------------------- ##"
1938 ) | sed "s/^/$as_me: WARNING: /" >&2
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1946 eval "$3=\$ac_header_compiler"
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } # ac_fn_c_check_header_mongrel
1956 # ac_fn_c_try_run LINENO
1957 # ----------------------
1958 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1959 # that executables *can* be run.
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if { { ac_try="$ac_link"
1965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1966 *) ac_try_echo
=$ac_try;;
1968 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_link") 2>&5
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1974 { { case "(($ac_try" in
1975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_try") 2>&5
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; }; }; then :
1986 $as_echo "$as_me: program exited with status $ac_status" >&5
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1990 ac_retval=$ac_status
1992 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 as_fn_set_status $ac_retval
1998 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1999 # -------------------------------------------------------
2000 # Tests whether HEADER exists and can be compiled using the include files in
2001 # INCLUDES, setting the cache variable VAR accordingly.
2002 ac_fn_c_check_header_compile ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if eval \${$3+:} false; then :
2008 $as_echo_n "(cached) " >&6
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2015 if ac_fn_c_try_compile "$LINENO"; then :
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 } # ac_fn_c_check_header_compile
2029 # ac_fn_c_check_func LINENO FUNC VAR
2030 # ----------------------------------
2031 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2032 ac_fn_c_check_func ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if eval \${$3+:} false; then :
2038 $as_echo_n "(cached) " >&6
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2044 #define $2 innocuous_$2
2046 /* System header to define __stub macros and hopefully few prototypes,
2047 which can conflict with char $2 (); below.
2048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2049 <limits.h> exists even on freestanding compilers. */
2052 # include <limits.h>
2054 # include <assert.h>
2059 /* Override any GCC internal prototype to avoid an error.
2060 Use char because int might match the return type of a GCC
2061 builtin and then its argument prototype would still apply. */
2066 /* The GNU C library defines this for functions which it implements
2067 to always fail with ENOSYS. Some functions are actually named
2068 something starting with __ and the normal name is an alias. */
2069 #if defined __stub_$2 || defined __stub___$2
2081 if ac_fn_c_try_link "$LINENO"; then :
2086 rm -f core conftest.err conftest.$ac_objext \
2087 conftest$ac_exeext conftest.$ac_ext
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094 } # ac_fn_c_check_func
2096 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2097 # -------------------------------------------
2098 # Tests whether TYPE exists after having included INCLUDES, setting cache
2099 # variable VAR accordingly.
2100 ac_fn_c_check_type ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2134 if ac_fn_c_try_compile "$LINENO"; then :
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 } # ac_fn_c_check_type
2150 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2151 # ----------------------------------------------------
2152 # Tries to find if the field MEMBER exists in type AGGR, after including
2153 # INCLUDES, setting cache variable VAR accordingly.
2154 ac_fn_c_check_member ()
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2158 $as_echo_n "checking for $2.$3... " >&6; }
2159 if eval \${$4+:} false; then :
2160 $as_echo_n "(cached) " >&6
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2175 if ac_fn_c_try_compile "$LINENO"; then :
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2185 if (sizeof ac_aggr.$3)
2191 if ac_fn_c_try_compile "$LINENO"; then :
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202 $as_echo "$ac_res" >&6; }
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 } # ac_fn_c_check_member
2207 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2208 # --------------------------------------------
2209 # Tries to find the compile-time value of EXPR in a program that includes
2210 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2212 ac_fn_c_compute_int ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 if test "$cross_compiling" = yes; then
2216 # Depending upon the size, compute the lo and hi bounds.
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2223 static int test_array [1 - 2 * !(($2) >= 0)];
2225 return test_array [0];
2231 if ac_fn_c_try_compile "$LINENO"; then :
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2240 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2242 return test_array [0];
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_hi=$ac_mid; break
2251 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2252 if test $ac_lo -le $ac_mid; then
2256 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2267 static int test_array [1 - 2 * !(($2) < 0)];
2269 return test_array [0];
2275 if ac_fn_c_try_compile "$LINENO"; then :
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2284 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2286 return test_array [0];
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293 ac_lo=$ac_mid; break
2295 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2296 if test $ac_mid -le $ac_hi; then
2300 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 # Binary search between lo and hi bounds.
2311 while test "x$ac_lo" != "x$ac_hi"; do
2312 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2319 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2321 return test_array [0];
2327 if ac_fn_c_try_compile "$LINENO"; then :
2330 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2342 static long int longval () { return $2; }
2343 static unsigned long int ulongval () { return $2; }
2350 FILE *f = fopen ("conftest.val", "w");
2355 long int i = longval ();
2358 fprintf (f, "%ld", i);
2362 unsigned long int i = ulongval ();
2365 fprintf (f, "%lu", i);
2367 /* Do not output a trailing newline, as this causes \r\n confusion
2368 on some platforms. */
2369 return ferror (f) || fclose (f) != 0;
2375 if ac_fn_c_try_run "$LINENO"; then :
2376 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2381 conftest.$ac_objext conftest.beam conftest.$ac_ext
2385 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2386 as_fn_set_status $ac_retval
2388 } # ac_fn_c_compute_int
2390 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2391 # ---------------------------------------------
2392 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2394 ac_fn_c_check_decl ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
2398 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2399 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2401 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2402 if eval \${$3+:} false; then :
2403 $as_echo_n "(cached) " >&6
2405 ac_save_werror_flag=$ac_c_werror_flag
2406 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2413 #ifndef $as_decl_name
2415 (void) $as_decl_use;
2417 (void) $as_decl_name;
2425 if ac_fn_c_try_compile "$LINENO"; then :
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 ac_c_werror_flag=$ac_save_werror_flag
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2438 } # ac_fn_c_check_decl
2439 cat >config.log <<_ACEOF
2440 This file contains any messages produced by compilers while
2441 running configure, to aid debugging if configure makes a mistake.
2443 It was created by PostgreSQL $as_me 18devel, which was
2444 generated by GNU Autoconf 2.69. Invocation command line was
2456 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2457 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2458 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2459 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2460 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2462 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2463 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2465 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2466 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2467 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2468 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2469 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2470 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2471 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 test -z "$as_dir" && as_dir=.
2480 $as_echo "PATH: $as_dir"
2496 # Keep a trace of the command line.
2497 # Strip out --no-create and --no-recursion so they do not pile up.
2498 # Strip out --silent because we don't want to record it for future runs.
2499 # Also quote any args containing shell meta-characters.
2500 # Make two passes to allow for proper duplicate-argument suppression.
2504 ac_must_keep_next=false
2510 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2512 | -silent | --silent | --silen | --sile | --sil)
2515 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2518 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2520 as_fn_append ac_configure_args1 " '$ac_arg'"
2521 if test $ac_must_keep_next = true; then
2522 ac_must_keep_next=false # Got value, back to normal.
2525 *=* | --config-cache | -C | -disable-* | --disable-* \
2526 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2527 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2528 | -with-* | --with-* | -without-* | --without-* | --x)
2529 case "$ac_configure_args0 " in
2530 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2533 -* ) ac_must_keep_next=true ;;
2536 as_fn_append ac_configure_args " '$ac_arg'"
2541 { ac_configure_args0=; unset ac_configure_args0;}
2542 { ac_configure_args1=; unset ac_configure_args1;}
2544 # When interrupted or exit'd, cleanup temporary files, and complete
2545 # config.log. We remove comments because anyway the quotes in there
2546 # would cause problems or look ugly.
2547 # WARNING: Use '\'' to represent an apostrophe within the trap.
2548 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2549 trap 'exit_status=$?
2550 # Save into config.log some information that might help in debugging.
2554 $as_echo "## ---------------- ##
2555 ## Cache variables. ##
2556 ## ---------------- ##"
2558 # The following way of writing the cache mishandles newlines in values,
2560 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2561 eval ac_val=\$$ac_var
2565 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2566 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2569 _ | IFS | as_nl) ;; #(
2570 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2571 *) { eval $ac_var=; unset $ac_var;} ;;
2576 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2577 *${as_nl}ac_space=\ *)
2579 "s/'\''/'\''\\\\'\'''\''/g;
2580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2590 $as_echo "## ----------------- ##
2591 ## Output variables. ##
2592 ## ----------------- ##"
2594 for ac_var in $ac_subst_vars
2596 eval ac_val=\$$ac_var
2598 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2600 $as_echo "$ac_var='\''$ac_val'\''"
2604 if test -n "$ac_subst_files"; then
2605 $as_echo "## ------------------- ##
2606 ## File substitutions. ##
2607 ## ------------------- ##"
2609 for ac_var in $ac_subst_files
2611 eval ac_val=\$$ac_var
2613 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2615 $as_echo "$ac_var='\''$ac_val'\''"
2620 if test -s confdefs.h; then
2621 $as_echo "## ----------- ##
2628 test "$ac_signal" != 0 &&
2629 $as_echo "$as_me: caught signal $ac_signal"
2630 $as_echo "$as_me: exit $exit_status"
2632 rm -f core *.core core.conftest.* &&
2633 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2636 for ac_signal in 1 2 13 15; do
2637 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2641 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2642 rm -f -r conftest* confdefs.h
2644 $as_echo "/* confdefs.h */" > confdefs.h
2646 # Predefined preprocessor variables.
2648 cat >>confdefs.h <<_ACEOF
2649 #define PACKAGE_NAME "$PACKAGE_NAME"
2652 cat >>confdefs.h <<_ACEOF
2653 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_STRING "$PACKAGE_STRING"
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2668 cat >>confdefs.h <<_ACEOF
2669 #define PACKAGE_URL "$PACKAGE_URL"
2673 # Let the site file select an alternate cache file if it wants to.
2674 # Prefer an explicitly selected file to automatically selected ones.
2677 if test -n "$CONFIG_SITE"; then
2678 # We do not want a PATH search for config.site.
2679 case $CONFIG_SITE in #((
2680 -*) ac_site_file1=./$CONFIG_SITE;;
2681 */*) ac_site_file1=$CONFIG_SITE;;
2682 *) ac_site_file1=./$CONFIG_SITE;;
2684 elif test "x$prefix" != xNONE; then
2685 ac_site_file1=$prefix/share/config.site
2686 ac_site_file2=$prefix/etc/config.site
2688 ac_site_file1=$ac_default_prefix/share/config.site
2689 ac_site_file2=$ac_default_prefix/etc/config.site
2691 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2693 test "x$ac_site_file" = xNONE && continue
2694 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2696 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2697 sed 's/^/| /' "$ac_site_file" >&5
2699 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 as_fn_error $? "failed to load site
script $ac_site_file
2702 See \
`config.log' for more details" "$LINENO" 5; }
2706 if test -r "$cache_file"; then
2707 # Some versions of bash will fail to source /dev/null (special files
2708 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2709 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2711 $as_echo "$as_me: loading cache $cache_file" >&6;}
2713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2714 *) . "./$cache_file";;
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2719 $as_echo "$as_me: creating cache $cache_file" >&6;}
2723 # Check that the precious variables saved in the cache have kept the same
2725 ac_cache_corrupted=false
2726 for ac_var in $ac_precious_vars; do
2727 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2728 eval ac_new_set=\$ac_env_${ac_var}_set
2729 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2730 eval ac_new_val=\$ac_env_${ac_var}_value
2731 case $ac_old_set,$ac_new_set in
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2734 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2735 ac_cache_corrupted=: ;;
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2738 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2739 ac_cache_corrupted=: ;;
2742 if test "x$ac_old_val" != "x$ac_new_val"; then
2743 # differences in whitespace do not lead to failure.
2744 ac_old_val_w=`echo x
$ac_old_val`
2745 ac_new_val_w=`echo x
$ac_new_val`
2746 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2748 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2749 ac_cache_corrupted=:
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2752 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2753 eval $ac_var=\$ac_old_val
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2756 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2758 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2761 # Pass precious variables to config.status.
2762 if test "$ac_new_set" = set; then
2764 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2765 *) ac_arg=$ac_var=$ac_new_val ;;
2767 case " $ac_configure_args " in
2768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2769 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2773 if $ac_cache_corrupted; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2777 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2778 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2780 ## -------------------- ##
2781 ## Main body of script. ##
2782 ## -------------------- ##
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 for ac_dir in config "$srcdir"/config; do
2797 if test -f "$ac_dir/install-sh"; then
2799 ac_install_sh="$ac_aux_dir/install-sh -c"
2801 elif test -f "$ac_dir/install.sh"; then
2803 ac_install_sh="$ac_aux_dir/install.sh -c"
2805 elif test -f "$ac_dir/shtool"; then
2807 ac_install_sh="$ac_aux_dir/shtool install -c"
2811 if test -z "$ac_aux_dir"; then
2812 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2815 # These three variables are undocumented and unsupported,
2816 # and are intended to be withdrawn in a future Autoconf release.
2817 # They can cause serious problems if a builder's source tree is in a directory
2818 # whose full name contains unusual characters.
2819 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2820 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2821 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2826 cat >>confdefs.h <<_ACEOF
2827 #define CONFIGURE_ARGS "$ac_configure_args"
2831 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2832 PG_MINORVERSION=`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'`
2833 test -n "$PG_MINORVERSION" || PG_MINORVERSION=0
2836 cat >>confdefs.h <<_ACEOF
2837 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2841 cat >>confdefs.h <<_ACEOF
2842 #define PG_MAJORVERSION_NUM $PG_MAJORVERSION
2846 cat >>confdefs.h <<_ACEOF
2847 #define PG_MINORVERSION_NUM $PG_MINORVERSION
2854 # Check whether --with-extra-version was given.
2855 if test "${with_extra_version+set}" = set; then :
2856 withval=$with_extra_version;
2859 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2862 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2865 PG_VERSION="$PACKAGE_VERSION$withval"
2870 PG_VERSION="$PACKAGE_VERSION"
2875 cat >>confdefs.h <<_ACEOF
2876 #define PG_VERSION "$PG_VERSION"
2880 # Make sure we can run config.sub.
2881 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2882 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2885 $as_echo_n "checking build system type... " >&6; }
2886 if ${ac_cv_build+:} false; then :
2887 $as_echo_n "(cached) " >&6
2889 ac_build_alias=$build_alias
2890 test "x$ac_build_alias" = x &&
2891 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2892 test "x$ac_build_alias" = x &&
2893 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2894 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2895 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2899 $as_echo "$ac_cv_build" >&6; }
2900 case $ac_cv_build in
2902 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2905 ac_save_IFS=$IFS; IFS='-'
2911 # Remember, the first character of IFS is used to create $*,
2912 # except with old shells:
2915 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2919 $as_echo_n "checking host system type... " >&6; }
2920 if ${ac_cv_host+:} false; then :
2921 $as_echo_n "(cached) " >&6
2923 if test "x$host_alias" = x; then
2924 ac_cv_host=$ac_cv_build
2926 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2927 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2932 $as_echo "$ac_cv_host" >&6; }
2935 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2938 ac_save_IFS=$IFS; IFS='-'
2944 # Remember, the first character of IFS is used to create $*,
2945 # except with old shells:
2948 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2954 $as_echo_n "checking which template to use... " >&6; }
2959 # Check whether --with-template was given.
2960 if test "${with_template+set}" = set; then :
2961 withval=$with_template;
2964 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2967 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2972 list) echo; ls "$srcdir/src/template"; exit;;
2973 *) if test -f "$srcdir/src/template/$with_template" ; then
2976 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2985 # --with-template not given
2988 cygwin*|msys*) template=cygwin ;;
2989 darwin*) template=darwin ;;
2990 dragonfly*) template=netbsd ;;
2991 freebsd*) template=freebsd ;;
2992 linux*|gnu*|k*bsd*-gnu)
2994 mingw*) template=win32 ;;
2995 netbsd*) template=netbsd ;;
2996 openbsd*) template=openbsd ;;
2997 solaris*) template=solaris ;;
3000 if test x"$template" = x"" ; then
3002 *******************************************************************
3003 PostgreSQL has apparently not been ported to your platform yet.
3004 To try a manual configuration, look into the src/template directory
3005 for a similar platform and use the '--with-template=' option.
3007 Please also contact <pgsql-bugs@lists.postgresql.org> to see about
3008 rectifying this. Include the above 'checking host system type...'
3010 *******************************************************************
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
3020 $as_echo "$template" >&6; }
3025 # Initialize default assumption that we do not need separate assembly code
3026 # for TAS (test-and-set). This can be overridden by the template file
3027 # when it's executed.
3031 # Default, works for most platforms, override in template file if needed
3037 ## Command line options
3041 # Add non-standard directories to the include path
3046 # Check whether --with-includes was given.
3047 if test "${with_includes+set}" = set; then :
3048 withval=$with_includes;
3051 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3054 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3067 # Add non-standard directories to the library search path
3072 # Check whether --with-libraries was given.
3073 if test "${with_libraries+set}" = set; then :
3074 withval=$with_libraries;
3077 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3080 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3083 LIBRARY_DIRS=$withval
3094 # Check whether --with-libs was given.
3095 if test "${with_libs+set}" = set; then :
3099 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3102 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3105 LIBRARY_DIRS=$withval
3115 # 64-bit integer date/time storage is now the only option, but to avoid
3116 # unnecessary breakage of build scripts, continue to accept an explicit
3117 # "--enable-integer-datetimes" switch.
3121 # Check whether --enable-integer-datetimes was given.
3122 if test "${enable_integer_datetimes+set}" = set; then :
3123 enableval=$enable_integer_datetimes;
3129 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3132 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3137 enable_integer_datetimes=yes
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3148 $as_echo_n "checking whether NLS is wanted... " >&6; }
3151 # Check whether --enable-nls was given.
3152 if test "${enable_nls+set}" = set; then :
3153 enableval=$enable_nls;
3163 WANTED_LANGUAGES=$enableval
3173 if test "$enable_nls" = yes; then
3175 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3180 $as_echo "$enable_nls" >&6; }
3185 # Default port number (--with-pgport), default 5432
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3188 $as_echo_n "checking for default port number... " >&6; }
3192 # Check whether --with-pgport was given.
3193 if test "${with_pgport+set}" = set; then :
3194 withval=$with_pgport;
3197 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3200 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3203 default_port=$withval
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3213 $as_echo "$default_port" >&6; }
3214 # Need both of these because some places want an integer and some a string
3216 cat >>confdefs.h <<_ACEOF
3217 #define DEF_PGPORT ${default_port}
3221 cat >>confdefs.h <<_ACEOF
3222 #define DEF_PGPORT_STR "${default_port}"
3227 # It's worth validating port; you can get very confusing errors otherwise
3228 if test x"$default_port" = x""; then
3229 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3230 elif test ! x`echo "$default_port" |
sed -e 's/[0-9]*//'` = x""; then
3231 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3232 elif test ! x`echo "$default_port" |
sed -e 's/^0.//'` = x"$default_port"; then
3233 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3234 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3235 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3239 # '-rpath'-like feature can be disabled
3243 # Check whether --enable-rpath was given.
3244 if test "${enable_rpath+set}" = set; then :
3245 enableval=$enable_rpath;
3254 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3267 # --enable-debug adds -g to compiler flags
3271 # Check whether --enable-debug was given.
3272 if test "${enable_debug+set}" = set; then :
3273 enableval=$enable_debug;
3282 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3295 # --enable-profiling enables gcc profiling
3299 # Check whether --enable-profiling was given.
3300 if test "${enable_profiling+set}" = set; then :
3301 enableval=$enable_profiling;
3310 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3322 # --enable-coverage enables generation of code coverage metrics with gcov
3326 # Check whether --enable-coverage was given.
3327 if test "${enable_coverage+set}" = set; then :
3328 enableval=$enable_coverage;
3331 if test -z "$GCOV"; then
3334 # Extract the first word of "$ac_prog", so it can be a program name with args.
3335 set dummy $ac_prog; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_path_GCOV+:} false; then :
3339 $as_echo_n "(cached) " >&6
3343 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 GCOV=$ac_cv_path_GCOV
3365 if test -n "$GCOV"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3367 $as_echo "$GCOV" >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3374 test -n "$GCOV" && break
3378 # Report the value of GCOV in configure's output in all cases.
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3380 $as_echo_n "checking for GCOV... " >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3382 $as_echo "$GCOV" >&6; }
3385 if test -z "$GCOV"; then
3386 as_fn_error $? "gcov not found" "$LINENO" 5
3388 if test -z "$LCOV"; 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_LCOV+:} false; then :
3396 $as_echo_n "(cached) " >&6
3400 ac_cv_path_LCOV="$LCOV" # 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_LCOV="$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 LCOV=$ac_cv_path_LCOV
3422 if test -n "$LCOV"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3424 $as_echo "$LCOV" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3431 test -n "$LCOV" && break
3435 # Report the value of LCOV in configure's output in all cases.
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3437 $as_echo_n "checking for LCOV... " >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3439 $as_echo "$LCOV" >&6; }
3442 if test -z "$LCOV"; then
3443 as_fn_error $? "lcov not found" "$LINENO" 5
3445 if test -z "$GENHTML"; then
3446 for ac_prog in genhtml
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_GENHTML+:} false; then :
3453 $as_echo_n "(cached) " >&6
3457 ac_cv_path_GENHTML="$GENHTML" # 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_GENHTML="$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 GENHTML=$ac_cv_path_GENHTML
3479 if test -n "$GENHTML"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3481 $as_echo "$GENHTML" >&6; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3488 test -n "$GENHTML" && break
3492 # Report the value of GENHTML in configure's output in all cases.
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3494 $as_echo_n "checking for GENHTML... " >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3496 $as_echo "$GENHTML" >&6; }
3499 if test -z "$GENHTML"; then
3500 as_fn_error $? "genhtml not found" "$LINENO" 5
3507 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3524 # Check whether --enable-dtrace was given.
3525 if test "${enable_dtrace+set}" = set; then :
3526 enableval=$enable_dtrace;
3529 if test -z "$DTRACE"; then
3530 for ac_prog in dtrace
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if ${ac_cv_path_DTRACE+:} false; then :
3537 $as_echo_n "(cached) " >&6
3541 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 DTRACE=$ac_cv_path_DTRACE
3563 if test -n "$DTRACE"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3565 $as_echo "$DTRACE" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3572 test -n "$DTRACE" && break
3576 # Report the value of DTRACE in configure's output in all cases.
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3578 $as_echo_n "checking for DTRACE... " >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3580 $as_echo "$DTRACE" >&6; }
3583 if test -z "$DTRACE"; then
3584 as_fn_error $? "dtrace not found" "$LINENO" 5
3592 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3609 # Check whether --enable-tap-tests was given.
3610 if test "${enable_tap_tests+set}" = set; then :
3611 enableval=$enable_tap_tests;
3620 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3637 # Check whether --enable-injection-points was given.
3638 if test "${enable_injection_points+set}" = set; then :
3639 enableval=$enable_injection_points;
3643 $as_echo "#define USE_INJECTION_POINTS 1" >>confdefs.h
3650 as_fn_error $? "no argument expected for --enable-injection-points option" "$LINENO" 5
3655 enable_injection_points=no
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3666 $as_echo_n "checking for block size... " >&6; }
3670 # Check whether --with-blocksize was given.
3671 if test "${with_blocksize+set}" = set; then :
3672 withval=$with_blocksize;
3675 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3678 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3690 case ${blocksize} in
3697 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3700 $as_echo "${blocksize}kB" >&6; }
3703 cat >>confdefs.h <<_ACEOF
3704 #define BLCKSZ ${BLCKSZ}
3709 # Relation segment size
3714 # Check whether --with-segsize was given.
3715 if test "${with_segsize+set}" = set; then :
3716 withval=$with_segsize;
3719 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3722 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3737 # Check whether --with-segsize-blocks was given.
3738 if test "${with_segsize_blocks+set}" = set; then :
3739 withval=$with_segsize_blocks;
3742 as_fn_error $? "argument required for --with-segsize-blocks option" "$LINENO" 5
3745 as_fn_error $? "argument required for --with-segsize-blocks option" "$LINENO" 5
3748 segsize_blocks=$withval
3758 # If --with-segsize-blocks is non-zero, it is used, --with-segsize
3759 # otherwise. segsize-blocks is only really useful for developers wanting to
3760 # test segment related code. Warn if both are used.
3761 if test $segsize_blocks -ne 0 -a $segsize -ne 1; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: both --with-segsize and --with-segsize-blocks specified, --with-segsize-blocks wins" >&5
3763 $as_echo "$as_me: WARNING: both --with-segsize and --with-segsize-blocks specified, --with-segsize-blocks wins" >&2;}
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3767 $as_echo_n "checking for segment size... " >&6; }
3768 if test $segsize_blocks -eq 0; then
3769 # this expression is set up to avoid unnecessary integer overflow
3770 # blocksize is already guaranteed to be a factor of 1024
3771 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3772 test $? -eq 0 || exit 1
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3774 $as_echo "${segsize}GB" >&6; }
3776 RELSEG_SIZE=$segsize_blocks
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RELSEG_SIZE} blocks" >&5
3778 $as_echo "${RELSEG_SIZE} blocks" >&6; }
3782 cat >>confdefs.h <<_ACEOF
3783 #define RELSEG_SIZE ${RELSEG_SIZE}
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3791 $as_echo_n "checking for WAL block size... " >&6; }
3795 # Check whether --with-wal-blocksize was given.
3796 if test "${with_wal_blocksize+set}" = set; then :
3797 withval=$with_wal_blocksize;
3800 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3803 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3806 wal_blocksize=$withval
3815 case ${wal_blocksize} in
3816 1) XLOG_BLCKSZ=1024;;
3817 2) XLOG_BLCKSZ=2048;;
3818 4) XLOG_BLCKSZ=4096;;
3819 8) XLOG_BLCKSZ=8192;;
3820 16) XLOG_BLCKSZ=16384;;
3821 32) XLOG_BLCKSZ=32768;;
3822 64) XLOG_BLCKSZ=65536;;
3823 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3826 $as_echo "${wal_blocksize}kB" >&6; }
3829 cat >>confdefs.h <<_ACEOF
3830 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3838 # If you don't specify a list of compilers to test, the AC_PROG_CC and
3839 # AC_PROG_CXX macros test for a long list of unsupported compilers.
3840 pgac_cc_list="gcc cc"
3841 pgac_cxx_list="g++ c++"
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848 if test -n "$ac_tool_prefix"; then
3849 for ac_prog in $pgac_cc_list
3851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 $as_echo_n "checking for $ac_word... " >&6; }
3855 if ${ac_cv_prog_CC+:} false; then :
3856 $as_echo_n "(cached) " >&6
3858 if test -n "$CC"; then
3859 ac_cv_prog_CC="$CC" # Let the user override the test.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 if test -n "$CC"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3881 $as_echo "$CC" >&6; }
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3888 test -n "$CC" && break
3891 if test -z "$CC"; then
3893 for ac_prog in $pgac_cc_list
3895 # Extract the first word of "$ac_prog", so it can be a program name with args.
3896 set dummy $ac_prog; ac_word=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3900 $as_echo_n "(cached) " >&6
3902 if test -n "$ac_ct_CC"; then
3903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_ac_ct_CC="$ac_prog"
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3923 if test -n "$ac_ct_CC"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3925 $as_echo "$ac_ct_CC" >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3932 test -n "$ac_ct_CC" && break
3935 if test "x$ac_ct_CC" = x; then
3938 case $cross_compiling:$ac_tool_warned in
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3942 ac_tool_warned=yes ;;
3949 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3952 See \
`config.log' for more details" "$LINENO" 5; }
3954 # Provide some information about the compiler.
3955 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3958 for ac_option in --version -v -V -qversion; do
3959 { { ac_try="$ac_compiler $ac_option >&5"
3961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3962 *) ac_try_echo
=$ac_try;;
3964 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 $as_echo "$ac_try_echo"; } >&5
3966 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3968 if test -s conftest.err
; then
3970 ... rest of stderr output deleted ...
3971 10q' conftest.err
>conftest.er1
3972 cat conftest.er1
>&5
3974 rm -f conftest.er1 conftest.err
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }
3979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3990 ac_clean_files_save
=$ac_clean_files
3991 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3992 # Try to create an executable without -o first, disregard a.out.
3993 # It will help us diagnose broken compilers, and finding out an intuition
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3996 $as_echo_n "checking whether the C compiler works... " >&6; }
3997 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3999 # The possible output files:
4000 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4003 for ac_file
in $ac_files
4006 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4007 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
4012 if { { ac_try
="$ac_link_default"
4014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 $as_echo "$ac_try_echo"; } >&5
4019 (eval "$ac_link_default") 2>&5
4021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }; then :
4023 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
4024 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
4025 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4026 # so that the user can short-circuit this test for compilers unknown to
4028 for ac_file in $ac_files ''
4030 test -f "$ac_file" || continue
4032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4035 # We found the default executable, but exeext='' is most
4039 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4043 # We set ac_cv_exeext here because the later test for it is not
4044 # safe: cross compilers may not add the suffix if given an `-o'
4045 # argument, so we may need to know it at that point already.
4046 # Even if this section looks crufty: it has the advantage of
4053 test "$ac_cv_exeext" = no && ac_cv_exeext=
4058 if test -z "$ac_file"; then :
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4061 $as_echo "$as_me: failed program was:" >&5
4062 sed 's
/^
/|
/' conftest.$ac_ext >&5
4064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
4066 as_fn_error 77 "C compiler cannot create executables
4067 See \`config.log
' for more details" "$LINENO" 5; }
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4070 $as_echo "yes" >&6; }
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4073 $as_echo_n "checking for C compiler default output file name... " >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4075 $as_echo "$ac_file" >&6; }
4076 ac_exeext=$ac_cv_exeext
4078 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4079 ac_clean_files=$ac_clean_files_save
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4081 $as_echo_n "checking for suffix of executables... " >&6; }
4082 if { { ac_try="$ac_link"
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088 $as_echo "$ac_try_echo"; } >&5
4089 (eval "$ac_link") 2>&5
4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092 test $ac_status = 0; }; then :
4093 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4094 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4095 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4097 for ac_file
in conftest.exe conftest conftest.
*; do
4098 test -f "$ac_file" ||
continue
4100 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4101 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4109 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4110 See \`config.log' for more details" "$LINENO" 5; }
4112 rm -f conftest conftest
$ac_cv_exeext
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4114 $as_echo "$ac_cv_exeext" >&6; }
4116 rm -f conftest.
$ac_ext
4117 EXEEXT
=$ac_cv_exeext
4119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4125 FILE *f = fopen ("conftest.out", "w");
4126 return ferror (f) || fclose (f) != 0;
4132 ac_clean_files
="$ac_clean_files conftest.out"
4133 # Check that the compiler produces executables we can run. If not, either
4134 # the compiler is broken, or we cross compile.
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4136 $as_echo_n "checking whether we are cross compiling... " >&6; }
4137 if test "$cross_compiling" != yes; then
4138 { { ac_try
="$ac_link"
4140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144 $as_echo "$ac_try_echo"; } >&5
4145 (eval "$ac_link") 2>&5
4147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148 test $ac_status = 0; }
4149 if { ac_try='./conftest$ac_cv_exeext'
4150 { { case "(($ac_try" in
4151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4152 *) ac_try_echo
=$ac_try;;
4154 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4155 $as_echo "$ac_try_echo"; } >&5
4156 (eval "$ac_try") 2>&5
4158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4159 test $ac_status = 0; }; }; then
4162 if test "$cross_compiling" = maybe
; then
4165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4167 as_fn_error $?
"cannot run C compiled programs.
4168 If you meant to cross compile, use \`--host'.
4169 See \`config.log' for more details" "$LINENO" 5; }
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4174 $as_echo "$cross_compiling" >&6; }
4176 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4177 ac_clean_files
=$ac_clean_files_save
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4179 $as_echo_n "checking for suffix of object files... " >&6; }
4180 if ${ac_cv_objext+:} false
; then :
4181 $as_echo_n "(cached) " >&6
4183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4194 rm -f conftest.o conftest.obj
4195 if { { ac_try
="$ac_compile"
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_compile") 2>&5
4204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4205 test $ac_status = 0; }; then :
4206 for ac_file in conftest.o conftest.obj conftest.*; do
4207 test -f "$ac_file" || continue;
4209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4210 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4215 $as_echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4220 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4221 See \
`config.log' for more details" "$LINENO" 5; }
4223 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4226 $as_echo "$ac_cv_objext" >&6; }
4227 OBJEXT=$ac_cv_objext
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4230 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4231 if ${ac_cv_c_compiler_gnu+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4248 if ac_fn_c_try_compile "$LINENO"; then :
4253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4258 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4259 if test $ac_compiler_gnu = yes; then
4264 ac_test_CFLAGS=${CFLAGS+set}
4265 ac_save_CFLAGS=$CFLAGS
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4267 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4268 if ${ac_cv_prog_cc_g+:} false; then :
4269 $as_echo_n "(cached) " >&6
4271 ac_save_c_werror_flag=$ac_c_werror_flag
4272 ac_c_werror_flag=yes
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4286 if ac_fn_c_try_compile "$LINENO"; then :
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4301 if ac_fn_c_try_compile "$LINENO"; then :
4304 ac_c_werror_flag=$ac_save_c_werror_flag
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4317 if ac_fn_c_try_compile "$LINENO"; then :
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 ac_c_werror_flag=$ac_save_c_werror_flag
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4328 $as_echo "$ac_cv_prog_cc_g" >&6; }
4329 if test "$ac_test_CFLAGS" = set; then
4330 CFLAGS=$ac_save_CFLAGS
4331 elif test $ac_cv_prog_cc_g = yes; then
4332 if test "$GCC" = yes; then
4338 if test "$GCC" = yes; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4345 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4346 if ${ac_cv_prog_cc_c89+:} false; then :
4347 $as_echo_n "(cached) " >&6
4349 ac_cv_prog_cc_c89=no
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4356 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4357 struct buf { int x; };
4358 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4359 static char *e (p, i)
4365 static char *f (char * (*g) (char **, int), char **p, ...)
4370 s = g (p, va_arg (v,int));
4375 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4376 function prototypes and stuff, but not '\xHH' hex character constants.
4377 These don't provoke an error unfortunately, instead are silently treated
4378 as 'x'. The following induces an error, until -std is added to get
4379 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4380 array size at least. It's necessary to write '\x00'==0 to get something
4381 that's true only with -std. */
4382 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4384 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4385 inside strings and character constants. */
4387 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4389 int test (int i, double x);
4390 struct s1 {int (*f) (int a);};
4391 struct s2 {int (*f) (double a);};
4392 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4398 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4403 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4404 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4406 CC="$ac_save_CC $ac_arg"
4407 if ac_fn_c_try_compile "$LINENO"; then :
4408 ac_cv_prog_cc_c89=$ac_arg
4410 rm -f core conftest.err conftest.$ac_objext
4411 test "x$ac_cv_prog_cc_c89" != "xno" && break
4413 rm -f conftest.$ac_ext
4418 case "x$ac_cv_prog_cc_c89" in
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4421 $as_echo "none needed" >&6; } ;;
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4424 $as_echo "unsupported" >&6; } ;;
4426 CC="$CC $ac_cv_prog_cc_c89"
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4428 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4430 if test "x$ac_cv_prog_cc_c89" != xno; then :
4435 ac_cpp='$CPP $CPPFLAGS'
4436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4441 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4442 if ${ac_cv_prog_cc_c99+:} false; then :
4443 $as_echo_n "(cached) " >&6
4445 ac_cv_prog_cc_c99=no
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4450 #include <stdbool.h>
4455 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4456 #define debug(...) fprintf (stderr, __VA_ARGS__)
4457 #define showlist(...) puts (#__VA_ARGS__)
4458 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4460 test_varargs_macros (void)
4465 debug ("X = %d\n", x);
4466 showlist (The first, second, and third items.);
4467 report (x>y, "x is %d but y is %d", x, y);
4470 // Check long long types.
4471 #define BIG64 18446744073709551615ull
4472 #define BIG32 4294967295ul
4473 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4475 your preprocessor is broken;
4479 your preprocessor is broken;
4481 static long long int bignum = -9223372036854775807LL;
4482 static unsigned long long int ubignum = BIG64;
4484 struct incomplete_array
4492 const wchar_t *name;
4496 typedef const char *ccp;
4499 test_restrict (ccp restrict text)
4501 // See if C++-style comments work.
4502 // Iterate through items via the restricted pointer.
4503 // Also check for declarations in for loops.
4504 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4509 // Check varargs and va_copy.
4511 test_varargs (const char *format, ...)
4514 va_start (args, format);
4516 va_copy (args_copy, args);
4527 str = va_arg (args_copy, const char *);
4530 number = va_arg (args_copy, int);
4533 fnumber = va_arg (args_copy, double);
4548 _Bool success = false;
4551 if (test_restrict ("String literal") == 0)
4553 char *restrict newvar = "Another string";
4556 test_varargs ("s, d' f .", "string", 65, 34.234);
4557 test_varargs_macros ();
4559 // Check flexible array members.
4560 struct incomplete_array *ia =
4561 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4563 for (int i = 0; i < ia->datasize; ++i)
4564 ia->data[i] = i * 1.234;
4566 // Check named initializers.
4567 struct named_init ni = {
4569 .name = L"Test wide string",
4570 .average = 543.34343,
4575 int dynamic_array[ni.number];
4576 dynamic_array[ni.number - 1] = 543;
4578 // work around unused variable warnings
4579 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4580 || dynamic_array[ni.number - 1] != 543);
4586 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4588 CC="$ac_save_CC $ac_arg"
4589 if ac_fn_c_try_compile "$LINENO"; then :
4590 ac_cv_prog_cc_c99=$ac_arg
4592 rm -f core conftest.err conftest.$ac_objext
4593 test "x$ac_cv_prog_cc_c99" != "xno" && break
4595 rm -f conftest.$ac_ext
4600 case "x$ac_cv_prog_cc_c99" in
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4603 $as_echo "none needed" >&6; } ;;
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4606 $as_echo "unsupported" >&6; } ;;
4608 CC="$CC $ac_cv_prog_cc_c99"
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4610 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4612 if test "x$ac_cv_prog_cc_c99" != xno; then :
4618 # Error out if the compiler does not support C99, as the codebase
4620 if test "$ac_cv_prog_cc_c99" = no; then
4621 as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
4625 ac_cpp='$CXXCPP $CPPFLAGS'
4626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4629 if test -z "$CXX"; then
4630 if test -n "$CCC"; then
4633 if test -n "$ac_tool_prefix"; then
4634 for ac_prog in $pgac_cxx_list
4636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_CXX+:} false; then :
4641 $as_echo_n "(cached) " >&6
4643 if test -n "$CXX"; then
4644 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 if test -n "$CXX"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4666 $as_echo "$CXX" >&6; }
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4673 test -n "$CXX" && break
4676 if test -z "$CXX"; then
4678 for ac_prog in $pgac_cxx_list
4680 # Extract the first word of "$ac_prog", so it can be a program name with args.
4681 set dummy $ac_prog; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4685 $as_echo_n "(cached) " >&6
4687 if test -n "$ac_ct_CXX"; then
4688 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697 ac_cv_prog_ac_ct_CXX="$ac_prog"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4708 if test -n "$ac_ct_CXX"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4710 $as_echo "$ac_ct_CXX" >&6; }
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4717 test -n "$ac_ct_CXX" && break
4720 if test "x$ac_ct_CXX" = x; then
4723 case $cross_compiling:$ac_tool_warned in
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4735 # Provide some information about the compiler.
4736 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4739 for ac_option in --version -v -V -qversion; do
4740 { { ac_try="$ac_compiler $ac_option >&5"
4742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4743 *) ac_try_echo
=$ac_try;;
4745 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4746 $as_echo "$ac_try_echo"; } >&5
4747 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4749 if test -s conftest.err
; then
4751 ... rest of stderr output deleted ...
4752 10q' conftest.err
>conftest.er1
4753 cat conftest.er1
>&5
4755 rm -f conftest.er1 conftest.err
4756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4757 test $ac_status = 0; }
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4761 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4762 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4763 $as_echo_n "(cached) " >&6
4765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4779 if ac_fn_cxx_try_compile
"$LINENO"; then :
4784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4785 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4789 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4790 if test $ac_compiler_gnu = yes; then
4795 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4796 ac_save_CXXFLAGS
=$CXXFLAGS
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4798 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4799 if ${ac_cv_prog_cxx_g+:} false
; then :
4800 $as_echo_n "(cached) " >&6
4802 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4803 ac_cxx_werror_flag
=yes
4806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4817 if ac_fn_cxx_try_compile
"$LINENO"; then :
4818 ac_cv_prog_cxx_g
=yes
4821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4832 if ac_fn_cxx_try_compile
"$LINENO"; then :
4835 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4848 if ac_fn_cxx_try_compile
"$LINENO"; then :
4849 ac_cv_prog_cxx_g
=yes
4851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4856 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4859 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4860 if test "$ac_test_CXXFLAGS" = set; then
4861 CXXFLAGS
=$ac_save_CXXFLAGS
4862 elif test $ac_cv_prog_cxx_g = yes; then
4863 if test "$GXX" = yes; then
4869 if test "$GXX" = yes; then
4876 ac_cpp
='$CPP $CPPFLAGS'
4877 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4882 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4883 # but has idiosyncrasies of its own. We assume icc will define
4884 # __INTEL_COMPILER regardless of CFLAGS.
4886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4892 #ifndef __INTEL_COMPILER
4899 if ac_fn_c_try_compile
"$LINENO"; then :
4904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4906 # Check if it's Sun Studio compiler. We assume that
4907 # __SUNPRO_C will be defined for Sun Studio compilers
4908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4921 if ac_fn_c_try_compile
"$LINENO"; then :
4926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4934 # Checked early because subsequent tests depend on it.
4938 # Check whether --with-llvm was given.
4939 if test "${with_llvm+set}" = set; then :
4944 $as_echo "#define USE_LLVM 1" >>confdefs.h
4951 as_fn_error $?
"no argument expected for --with-llvm option" "$LINENO" 5
4962 for ac_prog
in gawk mawk nawk
awk
4964 # Extract the first word of "$ac_prog", so it can be a program name with args.
4965 set dummy
$ac_prog; ac_word
=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_AWK+:} false
; then :
4969 $as_echo_n "(cached) " >&6
4971 if test -n "$AWK"; then
4972 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4978 test -z "$as_dir" && as_dir
=.
4979 for ac_exec_ext
in '' $ac_executable_extensions; do
4980 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4981 ac_cv_prog_AWK
="$ac_prog"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 if test -n "$AWK"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4994 $as_echo "$AWK" >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5001 test -n "$AWK" && break
5004 if test "$with_llvm" = yes; then :
5010 if test -z "$LLVM_CONFIG"; then
5011 for ac_prog
in llvm-config
5013 # Extract the first word of "$ac_prog", so it can be a program name with args.
5014 set dummy
$ac_prog; ac_word
=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_path_LLVM_CONFIG+:} false
; then :
5018 $as_echo_n "(cached) " >&6
5020 case $LLVM_CONFIG in
5022 ac_cv_path_LLVM_CONFIG
="$LLVM_CONFIG" # Let the user override the test with a path.
5025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5029 test -z "$as_dir" && as_dir
=.
5030 for ac_exec_ext
in '' $ac_executable_extensions; do
5031 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_path_LLVM_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 LLVM_CONFIG
=$ac_cv_path_LLVM_CONFIG
5044 if test -n "$LLVM_CONFIG"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5046 $as_echo "$LLVM_CONFIG" >&6; }
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5053 test -n "$LLVM_CONFIG" && break
5057 # Report the value of LLVM_CONFIG in configure's output in all cases.
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
5059 $as_echo_n "checking for LLVM_CONFIG... " >&6; }
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5061 $as_echo "$LLVM_CONFIG" >&6; }
5065 # no point continuing if llvm wasn't found
5066 if test -z "$LLVM_CONFIG"; then
5067 as_fn_error $?
"llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
5069 # check if detected $LLVM_CONFIG is executable
5070 pgac_llvm_version
="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
5071 if test "x$pgac_llvm_version" = "xno"; then
5072 as_fn_error $?
"$LLVM_CONFIG does not work" "$LINENO" 5
5074 # and whether the version is supported
5075 if echo $pgac_llvm_version |
$AWK -F '.' '{ if ($1 >= 10) exit 1; else exit 0;}';then
5076 as_fn_error $?
"$LLVM_CONFIG version is $pgac_llvm_version but at least 10 is required" "$LINENO" 5
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: using llvm $pgac_llvm_version" >&5
5079 $as_echo "$as_me: using llvm $pgac_llvm_version" >&6;}
5081 # need clang to create some bitcode files
5083 if test -z "$CLANG"; then
5084 for ac_prog
in clang
5086 # Extract the first word of "$ac_prog", so it can be a program name with args.
5087 set dummy
$ac_prog; ac_word
=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_path_CLANG+:} false
; then :
5091 $as_echo_n "(cached) " >&6
5095 ac_cv_path_CLANG
="$CLANG" # Let the user override the test with a path.
5098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir
=.
5103 for ac_exec_ext
in '' $ac_executable_extensions; do
5104 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_path_CLANG
="$as_dir/$ac_word$ac_exec_ext"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 CLANG
=$ac_cv_path_CLANG
5117 if test -n "$CLANG"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5119 $as_echo "$CLANG" >&6; }
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5126 test -n "$CLANG" && break
5130 # Report the value of CLANG in configure's output in all cases.
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
5132 $as_echo_n "checking for CLANG... " >&6; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5134 $as_echo "$CLANG" >&6; }
5137 if test -z "$CLANG"; then
5138 as_fn_error $?
"clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
5140 # make sure clang is executable
5141 if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
5142 as_fn_error $?
"$CLANG does not work" "$LINENO" 5
5144 # Could check clang version, but it doesn't seem that
5145 # important. Systems with a new enough LLVM version are usually
5146 # going to have a decent clang version too. It's also not entirely
5147 # clear what the minimum version is.
5149 # Collect compiler flags necessary to build the LLVM dependent
5151 for pgac_option
in `$LLVM_CONFIG --cppflags`; do
5152 case $pgac_option in
5153 -I*|
-D*) LLVM_CPPFLAGS
="$pgac_option $LLVM_CPPFLAGS";;
5157 for pgac_option
in `$LLVM_CONFIG --ldflags`; do
5158 case $pgac_option in
5159 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5163 # ABI influencing options, standard influencing options
5164 for pgac_option
in `$LLVM_CONFIG --cxxflags`; do
5165 case $pgac_option in
5166 -fno-rtti*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5167 -std=*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5171 # Look for components we're interested in, collect necessary
5172 # libs. As some components are optional, we can't just list all of
5173 # them as it'd raise an error.
5175 for pgac_component
in `$LLVM_CONFIG --components`; do
5176 case $pgac_component in
5177 engine
) pgac_components
="$pgac_components $pgac_component";;
5178 debuginfodwarf
) pgac_components
="$pgac_components $pgac_component";;
5179 orcjit
) pgac_components
="$pgac_components $pgac_component";;
5180 passes
) pgac_components
="$pgac_components $pgac_component";;
5181 native
) pgac_components
="$pgac_components $pgac_component";;
5182 perfjitevents
) pgac_components
="$pgac_components $pgac_component";;
5186 # And then get the libraries that need to be linked in for the
5187 # selected components. They're large libraries, we only want to
5188 # link them into the LLVM using shared library.
5189 for pgac_option
in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
5190 case $pgac_option in
5191 -l*) LLVM_LIBS
="$LLVM_LIBS $pgac_option";;
5195 LLVM_BINPATH
=`$LLVM_CONFIG --bindir`
5214 .
"$srcdir/src/template/$template" ||
exit
5216 # C[XX]FLAGS are selected so:
5217 # If the user specifies something in the environment, that is used.
5218 # else: If the template file set something, that is used.
5219 # else: If coverage was enabled, don't set anything.
5220 # else: If the compiler is GCC, then we use -O2.
5221 # else: If the compiler is something else, then we use -O, unless debugging.
5223 if test "$ac_env_CFLAGS_set" = set; then
5224 CFLAGS
=$ac_env_CFLAGS_value
5225 elif test "${CFLAGS+set}" = set; then
5226 : # (keep what template set)
5227 elif test "$enable_coverage" = yes; then
5228 : # no optimization by default
5229 elif test "$GCC" = yes; then
5232 # if the user selected debug mode, don't use -O
5233 if test "$enable_debug" != yes; then
5238 if test "$ac_env_CXXFLAGS_set" = set; then
5239 CXXFLAGS
=$ac_env_CXXFLAGS_value
5240 elif test "${CXXFLAGS+set}" = set; then
5241 : # (keep what template set)
5242 elif test "$enable_coverage" = yes; then
5243 : # no optimization by default
5244 elif test "$GCC" = yes; then
5247 # if the user selected debug mode, don't use -O
5248 if test "$enable_debug" != yes; then
5253 # When generating bitcode (for inlining) we always want to use -O2
5254 # even when --enable-debug is specified. The bitcode is not going to
5255 # be used for line-by-line debugging, and JIT inlining doesn't work
5256 # without at least -O1 (otherwise clang will emit 'noinline'
5257 # attributes everywhere), which is bad for testing. Still allow the
5258 # environment to override if done explicitly.
5259 if test "$ac_env_BITCODE_CFLAGS_set" = set; then
5260 BITCODE_CFLAGS
=$ac_env_BITCODE_CFLAGS_value
5262 BITCODE_CFLAGS
="-O2 $BITCODE_CFLAGS"
5264 if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
5265 BITCODE_CXXFLAGS
=$ac_env_BITCODE_CXXFLAGS_value
5267 BITCODE_CXXFLAGS
="-O2 $BITCODE_CXXFLAGS"
5270 # C[XX]FLAGS we determined above will be added back at the end
5273 user_CXXFLAGS
=$CXXFLAGS
5275 user_BITCODE_CFLAGS
=$BITCODE_CFLAGS
5277 user_BITCODE_CXXFLAGS
=$BITCODE_CXXFLAGS
5280 # set CFLAGS_UNROLL_LOOPS and CFLAGS_VECTORIZE from the environment, if present
5281 if test "$ac_env_CFLAGS_UNROLL_LOOPS_set" = set; then
5282 CFLAGS_UNROLL_LOOPS
=$ac_env_CFLAGS_UNROLL_LOOPS_value
5284 if test "$ac_env_CFLAGS_VECTORIZE_set" = set; then
5285 CFLAGS_VECTORIZE
=$ac_env_CFLAGS_VECTORIZE_value
5288 # Some versions of GCC support some additional useful warning flags.
5289 # Check whether they are supported, and add them to CFLAGS if so.
5290 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
5291 # but has its own. Also check other compiler-specific flags here.
5293 if test "$GCC" = yes -a "$ICC" = no
; then
5294 CFLAGS
="-Wall -Wmissing-prototypes -Wpointer-arith"
5295 CXXFLAGS
="-Wall -Wpointer-arith"
5296 # These work in some but not all gcc versions
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
5300 $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
5301 if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false
; then :
5302 $as_echo_n "(cached) " >&6
5304 pgac_save_CFLAGS
=$CFLAGS
5307 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5308 ac_save_c_werror_flag
=$ac_c_werror_flag
5309 ac_c_werror_flag
=yes
5310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5321 if ac_fn_c_try_compile
"$LINENO"; then :
5322 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=yes
5324 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=no
5326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5327 ac_c_werror_flag
=$ac_save_c_werror_flag
5328 CFLAGS
="$pgac_save_CFLAGS"
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5
5332 $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
5333 if test x
"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x
"yes"; then
5334 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5338 # -Wdeclaration-after-statement isn't applicable for C++. Specific C files
5339 # disable it, so AC_SUBST the negative form.
5340 PERMIT_DECLARATION_AFTER_STATEMENT
=
5341 if test x
"$save_CFLAGS" != x
"$CFLAGS"; then
5342 PERMIT_DECLARATION_AFTER_STATEMENT
=-Wno-declaration-after-statement
5345 # Really don't want VLAs to be used in our dialect of C
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5
5348 $as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; }
5349 if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false
; then :
5350 $as_echo_n "(cached) " >&6
5352 pgac_save_CFLAGS
=$CFLAGS
5355 CFLAGS
="${CFLAGS} -Werror=vla"
5356 ac_save_c_werror_flag
=$ac_c_werror_flag
5357 ac_c_werror_flag
=yes
5358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5369 if ac_fn_c_try_compile
"$LINENO"; then :
5370 pgac_cv_prog_CC_cflags__Werror_vla
=yes
5372 pgac_cv_prog_CC_cflags__Werror_vla
=no
5374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5375 ac_c_werror_flag
=$ac_save_c_werror_flag
5376 CFLAGS
="$pgac_save_CFLAGS"
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5
5380 $as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; }
5381 if test x
"$pgac_cv_prog_CC_cflags__Werror_vla" = x
"yes"; then
5382 CFLAGS
="${CFLAGS} -Werror=vla"
5386 # On macOS, complain about usage of symbols newer than the deployment target
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS" >&5
5389 $as_echo_n "checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS... " >&6; }
5390 if ${pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new+:} false
; then :
5391 $as_echo_n "(cached) " >&6
5393 pgac_save_CFLAGS
=$CFLAGS
5396 CFLAGS
="${CFLAGS} -Werror=unguarded-availability-new"
5397 ac_save_c_werror_flag
=$ac_c_werror_flag
5398 ac_c_werror_flag
=yes
5399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5410 if ac_fn_c_try_compile
"$LINENO"; then :
5411 pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new
=yes
5413 pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new
=no
5415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5416 ac_c_werror_flag
=$ac_save_c_werror_flag
5417 CFLAGS
="$pgac_save_CFLAGS"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&5
5421 $as_echo "$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&6; }
5422 if test x
"$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" = x
"yes"; then
5423 CFLAGS
="${CFLAGS} -Werror=unguarded-availability-new"
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS" >&5
5428 $as_echo_n "checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS... " >&6; }
5429 if ${pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new+:} false
; then :
5430 $as_echo_n "(cached) " >&6
5432 pgac_save_CXXFLAGS
=$CXXFLAGS
5435 CXXFLAGS
="${CXXFLAGS} -Werror=unguarded-availability-new"
5436 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5437 ac_cxx_werror_flag
=yes
5439 ac_cpp
='$CXXCPP $CPPFLAGS'
5440 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5455 if ac_fn_cxx_try_compile
"$LINENO"; then :
5456 pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new
=yes
5458 pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new
=no
5460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5462 ac_cpp
='$CPP $CPPFLAGS'
5463 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5464 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5465 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5467 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5468 CXXFLAGS
="$pgac_save_CXXFLAGS"
5469 CXX
="$pgac_save_CXX"
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&5
5472 $as_echo "$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&6; }
5473 if test x
"$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" = x
"yes"; then
5474 CXXFLAGS
="${CXXFLAGS} -Werror=unguarded-availability-new"
5478 # -Wvla is not applicable for C++
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
5481 $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
5482 if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false
; then :
5483 $as_echo_n "(cached) " >&6
5485 pgac_save_CFLAGS
=$CFLAGS
5488 CFLAGS
="${CFLAGS} -Wendif-labels"
5489 ac_save_c_werror_flag
=$ac_c_werror_flag
5490 ac_c_werror_flag
=yes
5491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5502 if ac_fn_c_try_compile
"$LINENO"; then :
5503 pgac_cv_prog_CC_cflags__Wendif_labels
=yes
5505 pgac_cv_prog_CC_cflags__Wendif_labels
=no
5507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5508 ac_c_werror_flag
=$ac_save_c_werror_flag
5509 CFLAGS
="$pgac_save_CFLAGS"
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
5513 $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
5514 if test x
"$pgac_cv_prog_CC_cflags__Wendif_labels" = x
"yes"; then
5515 CFLAGS
="${CFLAGS} -Wendif-labels"
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
5520 $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
5521 if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false
; then :
5522 $as_echo_n "(cached) " >&6
5524 pgac_save_CXXFLAGS
=$CXXFLAGS
5527 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5528 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5529 ac_cxx_werror_flag
=yes
5531 ac_cpp
='$CXXCPP $CPPFLAGS'
5532 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5547 if ac_fn_cxx_try_compile
"$LINENO"; then :
5548 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=yes
5550 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=no
5552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5554 ac_cpp
='$CPP $CPPFLAGS'
5555 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5559 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5560 CXXFLAGS
="$pgac_save_CXXFLAGS"
5561 CXX
="$pgac_save_CXX"
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
5564 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
5565 if test x
"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x
"yes"; then
5566 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
5572 $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
5573 if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false
; then :
5574 $as_echo_n "(cached) " >&6
5576 pgac_save_CFLAGS
=$CFLAGS
5579 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5580 ac_save_c_werror_flag
=$ac_c_werror_flag
5581 ac_c_werror_flag
=yes
5582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5593 if ac_fn_c_try_compile
"$LINENO"; then :
5594 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=yes
5596 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=no
5598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5599 ac_c_werror_flag
=$ac_save_c_werror_flag
5600 CFLAGS
="$pgac_save_CFLAGS"
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
5604 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
5605 if test x
"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x
"yes"; then
5606 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
5611 $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
5612 if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false
; then :
5613 $as_echo_n "(cached) " >&6
5615 pgac_save_CXXFLAGS
=$CXXFLAGS
5618 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5619 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5620 ac_cxx_werror_flag
=yes
5622 ac_cpp
='$CXXCPP $CPPFLAGS'
5623 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5638 if ac_fn_cxx_try_compile
"$LINENO"; then :
5639 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=yes
5641 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=no
5643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5645 ac_cpp
='$CPP $CPPFLAGS'
5646 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5650 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5651 CXXFLAGS
="$pgac_save_CXXFLAGS"
5652 CXX
="$pgac_save_CXX"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
5655 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
5656 if test x
"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x
"yes"; then
5657 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS" >&5
5663 $as_echo_n "checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS... " >&6; }
5664 if ${pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3+:} false
; then :
5665 $as_echo_n "(cached) " >&6
5667 pgac_save_CFLAGS
=$CFLAGS
5670 CFLAGS
="${CFLAGS} -Wimplicit-fallthrough=3"
5671 ac_save_c_werror_flag
=$ac_c_werror_flag
5672 ac_c_werror_flag
=yes
5673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5684 if ac_fn_c_try_compile
"$LINENO"; then :
5685 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3
=yes
5687 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3
=no
5689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5690 ac_c_werror_flag
=$ac_save_c_werror_flag
5691 CFLAGS
="$pgac_save_CFLAGS"
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&5
5695 $as_echo "$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&6; }
5696 if test x
"$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" = x
"yes"; then
5697 CFLAGS
="${CFLAGS} -Wimplicit-fallthrough=3"
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS" >&5
5702 $as_echo_n "checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS... " >&6; }
5703 if ${pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3+:} false
; then :
5704 $as_echo_n "(cached) " >&6
5706 pgac_save_CXXFLAGS
=$CXXFLAGS
5709 CXXFLAGS
="${CXXFLAGS} -Wimplicit-fallthrough=3"
5710 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5711 ac_cxx_werror_flag
=yes
5713 ac_cpp
='$CXXCPP $CPPFLAGS'
5714 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5715 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5716 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5729 if ac_fn_cxx_try_compile
"$LINENO"; then :
5730 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3
=yes
5732 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3
=no
5734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5736 ac_cpp
='$CPP $CPPFLAGS'
5737 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5741 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5742 CXXFLAGS
="$pgac_save_CXXFLAGS"
5743 CXX
="$pgac_save_CXX"
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&5
5746 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&6; }
5747 if test x
"$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" = x
"yes"; then
5748 CXXFLAGS
="${CXXFLAGS} -Wimplicit-fallthrough=3"
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcast-function-type, for CFLAGS" >&5
5754 $as_echo_n "checking whether ${CC} supports -Wcast-function-type, for CFLAGS... " >&6; }
5755 if ${pgac_cv_prog_CC_cflags__Wcast_function_type+:} false
; then :
5756 $as_echo_n "(cached) " >&6
5758 pgac_save_CFLAGS
=$CFLAGS
5761 CFLAGS
="${CFLAGS} -Wcast-function-type"
5762 ac_save_c_werror_flag
=$ac_c_werror_flag
5763 ac_c_werror_flag
=yes
5764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5775 if ac_fn_c_try_compile
"$LINENO"; then :
5776 pgac_cv_prog_CC_cflags__Wcast_function_type
=yes
5778 pgac_cv_prog_CC_cflags__Wcast_function_type
=no
5780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5781 ac_c_werror_flag
=$ac_save_c_werror_flag
5782 CFLAGS
="$pgac_save_CFLAGS"
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcast_function_type" >&5
5786 $as_echo "$pgac_cv_prog_CC_cflags__Wcast_function_type" >&6; }
5787 if test x
"$pgac_cv_prog_CC_cflags__Wcast_function_type" = x
"yes"; then
5788 CFLAGS
="${CFLAGS} -Wcast-function-type"
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS" >&5
5793 $as_echo_n "checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS... " >&6; }
5794 if ${pgac_cv_prog_CXX_cxxflags__Wcast_function_type+:} false
; then :
5795 $as_echo_n "(cached) " >&6
5797 pgac_save_CXXFLAGS
=$CXXFLAGS
5800 CXXFLAGS
="${CXXFLAGS} -Wcast-function-type"
5801 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5802 ac_cxx_werror_flag
=yes
5804 ac_cpp
='$CXXCPP $CPPFLAGS'
5805 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5820 if ac_fn_cxx_try_compile
"$LINENO"; then :
5821 pgac_cv_prog_CXX_cxxflags__Wcast_function_type
=yes
5823 pgac_cv_prog_CXX_cxxflags__Wcast_function_type
=no
5825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5827 ac_cpp
='$CPP $CPPFLAGS'
5828 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5832 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5833 CXXFLAGS
="$pgac_save_CXXFLAGS"
5834 CXX
="$pgac_save_CXX"
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&5
5837 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&6; }
5838 if test x
"$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" = x
"yes"; then
5839 CXXFLAGS
="${CXXFLAGS} -Wcast-function-type"
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wshadow=compatible-local, for CFLAGS" >&5
5845 $as_echo_n "checking whether ${CC} supports -Wshadow=compatible-local, for CFLAGS... " >&6; }
5846 if ${pgac_cv_prog_CC_cflags__Wshadow_compatible_local+:} false
; then :
5847 $as_echo_n "(cached) " >&6
5849 pgac_save_CFLAGS
=$CFLAGS
5852 CFLAGS
="${CFLAGS} -Wshadow=compatible-local"
5853 ac_save_c_werror_flag
=$ac_c_werror_flag
5854 ac_c_werror_flag
=yes
5855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5866 if ac_fn_c_try_compile
"$LINENO"; then :
5867 pgac_cv_prog_CC_cflags__Wshadow_compatible_local
=yes
5869 pgac_cv_prog_CC_cflags__Wshadow_compatible_local
=no
5871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5872 ac_c_werror_flag
=$ac_save_c_werror_flag
5873 CFLAGS
="$pgac_save_CFLAGS"
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wshadow_compatible_local" >&5
5877 $as_echo "$pgac_cv_prog_CC_cflags__Wshadow_compatible_local" >&6; }
5878 if test x
"$pgac_cv_prog_CC_cflags__Wshadow_compatible_local" = x
"yes"; then
5879 CFLAGS
="${CFLAGS} -Wshadow=compatible-local"
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wshadow=compatible-local, for CXXFLAGS" >&5
5884 $as_echo_n "checking whether ${CXX} supports -Wshadow=compatible-local, for CXXFLAGS... " >&6; }
5885 if ${pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local+:} false
; then :
5886 $as_echo_n "(cached) " >&6
5888 pgac_save_CXXFLAGS
=$CXXFLAGS
5891 CXXFLAGS
="${CXXFLAGS} -Wshadow=compatible-local"
5892 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5893 ac_cxx_werror_flag
=yes
5895 ac_cpp
='$CXXCPP $CPPFLAGS'
5896 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5897 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5898 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5911 if ac_fn_cxx_try_compile
"$LINENO"; then :
5912 pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local
=yes
5914 pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local
=no
5916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5918 ac_cpp
='$CPP $CPPFLAGS'
5919 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5920 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5923 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5924 CXXFLAGS
="$pgac_save_CXXFLAGS"
5925 CXX
="$pgac_save_CXX"
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" >&5
5928 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" >&6; }
5929 if test x
"$pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" = x
"yes"; then
5930 CXXFLAGS
="${CXXFLAGS} -Wshadow=compatible-local"
5934 # This was included in -Wall/-Wformat in older GCC versions
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
5937 $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
5938 if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false
; then :
5939 $as_echo_n "(cached) " >&6
5941 pgac_save_CFLAGS
=$CFLAGS
5944 CFLAGS
="${CFLAGS} -Wformat-security"
5945 ac_save_c_werror_flag
=$ac_c_werror_flag
5946 ac_c_werror_flag
=yes
5947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5958 if ac_fn_c_try_compile
"$LINENO"; then :
5959 pgac_cv_prog_CC_cflags__Wformat_security
=yes
5961 pgac_cv_prog_CC_cflags__Wformat_security
=no
5963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5964 ac_c_werror_flag
=$ac_save_c_werror_flag
5965 CFLAGS
="$pgac_save_CFLAGS"
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
5969 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
5970 if test x
"$pgac_cv_prog_CC_cflags__Wformat_security" = x
"yes"; then
5971 CFLAGS
="${CFLAGS} -Wformat-security"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
5976 $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
5977 if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false
; then :
5978 $as_echo_n "(cached) " >&6
5980 pgac_save_CXXFLAGS
=$CXXFLAGS
5983 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
5984 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5985 ac_cxx_werror_flag
=yes
5987 ac_cpp
='$CXXCPP $CPPFLAGS'
5988 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5989 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5990 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
6003 if ac_fn_cxx_try_compile
"$LINENO"; then :
6004 pgac_cv_prog_CXX_cxxflags__Wformat_security
=yes
6006 pgac_cv_prog_CXX_cxxflags__Wformat_security
=no
6008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6010 ac_cpp
='$CPP $CPPFLAGS'
6011 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6015 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6016 CXXFLAGS
="$pgac_save_CXXFLAGS"
6017 CXX
="$pgac_save_CXX"
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
6020 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
6021 if test x
"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x
"yes"; then
6022 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
6026 # gcc 14+, clang for a while
6027 # (Supported in C++ by clang but not gcc. For consistency, omit in C++.)
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-variable-declarations, for CFLAGS" >&5
6031 $as_echo_n "checking whether ${CC} supports -Wmissing-variable-declarations, for CFLAGS... " >&6; }
6032 if ${pgac_cv_prog_CC_cflags__Wmissing_variable_declarations+:} false
; then :
6033 $as_echo_n "(cached) " >&6
6035 pgac_save_CFLAGS
=$CFLAGS
6038 CFLAGS
="${CFLAGS} -Wmissing-variable-declarations"
6039 ac_save_c_werror_flag
=$ac_c_werror_flag
6040 ac_c_werror_flag
=yes
6041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6052 if ac_fn_c_try_compile
"$LINENO"; then :
6053 pgac_cv_prog_CC_cflags__Wmissing_variable_declarations
=yes
6055 pgac_cv_prog_CC_cflags__Wmissing_variable_declarations
=no
6057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6058 ac_c_werror_flag
=$ac_save_c_werror_flag
6059 CFLAGS
="$pgac_save_CFLAGS"
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_variable_declarations" >&5
6063 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_variable_declarations" >&6; }
6064 if test x
"$pgac_cv_prog_CC_cflags__Wmissing_variable_declarations" = x
"yes"; then
6065 CFLAGS
="${CFLAGS} -Wmissing-variable-declarations"
6069 PERMIT_MISSING_VARIABLE_DECLARATIONS
=
6070 if test x
"$save_CFLAGS" != x
"$CFLAGS"; then
6071 PERMIT_MISSING_VARIABLE_DECLARATIONS
=-Wno-missing-variable-declarations
6074 # Disable strict-aliasing rules; needed for gcc 3.3+
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6077 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6078 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
6079 $as_echo_n "(cached) " >&6
6081 pgac_save_CFLAGS
=$CFLAGS
6084 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6085 ac_save_c_werror_flag
=$ac_c_werror_flag
6086 ac_c_werror_flag
=yes
6087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6098 if ac_fn_c_try_compile
"$LINENO"; then :
6099 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
6101 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
6103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6104 ac_c_werror_flag
=$ac_save_c_werror_flag
6105 CFLAGS
="$pgac_save_CFLAGS"
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6109 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6110 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
6111 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6116 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6117 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
6118 $as_echo_n "(cached) " >&6
6120 pgac_save_CXXFLAGS
=$CXXFLAGS
6123 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6124 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6125 ac_cxx_werror_flag
=yes
6127 ac_cpp
='$CXXCPP $CPPFLAGS'
6128 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6143 if ac_fn_cxx_try_compile
"$LINENO"; then :
6144 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6146 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6150 ac_cpp
='$CPP $CPPFLAGS'
6151 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6155 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6156 CXXFLAGS
="$pgac_save_CXXFLAGS"
6157 CXX
="$pgac_save_CXX"
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6160 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6161 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6162 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6166 # Disable optimizations that assume no overflow; needed for gcc 4.3+
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5
6169 $as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; }
6170 if ${pgac_cv_prog_CC_cflags__fwrapv+:} false
; then :
6171 $as_echo_n "(cached) " >&6
6173 pgac_save_CFLAGS
=$CFLAGS
6176 CFLAGS
="${CFLAGS} -fwrapv"
6177 ac_save_c_werror_flag
=$ac_c_werror_flag
6178 ac_c_werror_flag
=yes
6179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6190 if ac_fn_c_try_compile
"$LINENO"; then :
6191 pgac_cv_prog_CC_cflags__fwrapv
=yes
6193 pgac_cv_prog_CC_cflags__fwrapv
=no
6195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6196 ac_c_werror_flag
=$ac_save_c_werror_flag
6197 CFLAGS
="$pgac_save_CFLAGS"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5
6201 $as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; }
6202 if test x
"$pgac_cv_prog_CC_cflags__fwrapv" = x
"yes"; then
6203 CFLAGS
="${CFLAGS} -fwrapv"
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5
6208 $as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; }
6209 if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false
; then :
6210 $as_echo_n "(cached) " >&6
6212 pgac_save_CXXFLAGS
=$CXXFLAGS
6215 CXXFLAGS
="${CXXFLAGS} -fwrapv"
6216 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6217 ac_cxx_werror_flag
=yes
6219 ac_cpp
='$CXXCPP $CPPFLAGS'
6220 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6221 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6222 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6235 if ac_fn_cxx_try_compile
"$LINENO"; then :
6236 pgac_cv_prog_CXX_cxxflags__fwrapv
=yes
6238 pgac_cv_prog_CXX_cxxflags__fwrapv
=no
6240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6242 ac_cpp
='$CPP $CPPFLAGS'
6243 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6247 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6248 CXXFLAGS
="$pgac_save_CXXFLAGS"
6249 CXX
="$pgac_save_CXX"
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5
6252 $as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; }
6253 if test x
"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x
"yes"; then
6254 CXXFLAGS
="${CXXFLAGS} -fwrapv"
6258 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5
6261 $as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; }
6262 if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false
; then :
6263 $as_echo_n "(cached) " >&6
6265 pgac_save_CFLAGS
=$CFLAGS
6268 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
6269 ac_save_c_werror_flag
=$ac_c_werror_flag
6270 ac_c_werror_flag
=yes
6271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6282 if ac_fn_c_try_compile
"$LINENO"; then :
6283 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=yes
6285 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=no
6287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6288 ac_c_werror_flag
=$ac_save_c_werror_flag
6289 CFLAGS
="$pgac_save_CFLAGS"
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&5
6293 $as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; }
6294 if test x
"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x
"yes"; then
6295 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5
6300 $as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; }
6301 if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false
; then :
6302 $as_echo_n "(cached) " >&6
6304 pgac_save_CXXFLAGS
=$CXXFLAGS
6307 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
6308 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6309 ac_cxx_werror_flag
=yes
6311 ac_cpp
='$CXXCPP $CPPFLAGS'
6312 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6313 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6314 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6327 if ac_fn_cxx_try_compile
"$LINENO"; then :
6328 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=yes
6330 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=no
6332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6334 ac_cpp
='$CPP $CPPFLAGS'
6335 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6339 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6340 CXXFLAGS
="$pgac_save_CXXFLAGS"
6341 CXX
="$pgac_save_CXX"
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5
6344 $as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; }
6345 if test x
"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
6346 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
6350 # Optimization flags for specific files that benefit from loop unrolling
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS" >&5
6352 $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS... " >&6; }
6353 if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false
; then :
6354 $as_echo_n "(cached) " >&6
6356 pgac_save_CFLAGS
=$CFLAGS
6359 CFLAGS
="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
6360 ac_save_c_werror_flag
=$ac_c_werror_flag
6361 ac_c_werror_flag
=yes
6362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6373 if ac_fn_c_try_compile
"$LINENO"; then :
6374 pgac_cv_prog_CC_cflags__funroll_loops
=yes
6376 pgac_cv_prog_CC_cflags__funroll_loops
=no
6378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6379 ac_c_werror_flag
=$ac_save_c_werror_flag
6380 CFLAGS
="$pgac_save_CFLAGS"
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
6384 $as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
6385 if test x
"$pgac_cv_prog_CC_cflags__funroll_loops" = x
"yes"; then
6386 CFLAGS_UNROLL_LOOPS
="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
6390 # Optimization flags for specific files that benefit from vectorization
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE" >&5
6392 $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE... " >&6; }
6393 if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false
; then :
6394 $as_echo_n "(cached) " >&6
6396 pgac_save_CFLAGS
=$CFLAGS
6399 CFLAGS
="${CFLAGS_VECTORIZE} -ftree-vectorize"
6400 ac_save_c_werror_flag
=$ac_c_werror_flag
6401 ac_c_werror_flag
=yes
6402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6413 if ac_fn_c_try_compile
"$LINENO"; then :
6414 pgac_cv_prog_CC_cflags__ftree_vectorize
=yes
6416 pgac_cv_prog_CC_cflags__ftree_vectorize
=no
6418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6419 ac_c_werror_flag
=$ac_save_c_werror_flag
6420 CFLAGS
="$pgac_save_CFLAGS"
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
6424 $as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
6425 if test x
"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x
"yes"; then
6426 CFLAGS_VECTORIZE
="${CFLAGS_VECTORIZE} -ftree-vectorize"
6431 # The following tests want to suppress various unhelpful warnings by adding
6432 # -Wno-foo switches. But gcc won't complain about unrecognized -Wno-foo
6433 # switches, so we have to test for the positive form and if that works,
6434 # add the negative form. Note that tests of this form typically need to
6435 # be duplicated in the BITCODE_CFLAGS setup stanza below.
6437 # Suppress clang's unhelpful unused-command-line-argument warnings.
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
6440 $as_echo_n "checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
6441 if ${pgac_cv_prog_CC_cflags__Wunused_command_line_argument+:} false
; then :
6442 $as_echo_n "(cached) " >&6
6444 pgac_save_CFLAGS
=$CFLAGS
6447 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6448 ac_save_c_werror_flag
=$ac_c_werror_flag
6449 ac_c_werror_flag
=yes
6450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6461 if ac_fn_c_try_compile
"$LINENO"; then :
6462 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=yes
6464 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=no
6466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6467 ac_c_werror_flag
=$ac_save_c_werror_flag
6468 CFLAGS
="$pgac_save_CFLAGS"
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&5
6472 $as_echo "$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&6; }
6473 if test x
"$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" = x
"yes"; then
6474 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6478 if test -n "$NOT_THE_CFLAGS"; then
6479 CFLAGS
="$CFLAGS -Wno-unused-command-line-argument"
6481 # Remove clang 12+'s compound-token-split-by-macro, as this causes a lot
6482 # of warnings when building plperl because of usages in the Perl headers.
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
6485 $as_echo_n "checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
6486 if ${pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro+:} false
; then :
6487 $as_echo_n "(cached) " >&6
6489 pgac_save_CFLAGS
=$CFLAGS
6492 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6493 ac_save_c_werror_flag
=$ac_c_werror_flag
6494 ac_c_werror_flag
=yes
6495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6506 if ac_fn_c_try_compile
"$LINENO"; then :
6507 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=yes
6509 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=no
6511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6512 ac_c_werror_flag
=$ac_save_c_werror_flag
6513 CFLAGS
="$pgac_save_CFLAGS"
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&5
6517 $as_echo "$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&6; }
6518 if test x
"$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
6519 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6523 if test -n "$NOT_THE_CFLAGS"; then
6524 CFLAGS
="$CFLAGS -Wno-compound-token-split-by-macro"
6526 # Similarly disable useless truncation warnings from gcc 8+
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
6529 $as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
6530 if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false
; then :
6531 $as_echo_n "(cached) " >&6
6533 pgac_save_CFLAGS
=$CFLAGS
6536 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6537 ac_save_c_werror_flag
=$ac_c_werror_flag
6538 ac_c_werror_flag
=yes
6539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6550 if ac_fn_c_try_compile
"$LINENO"; then :
6551 pgac_cv_prog_CC_cflags__Wformat_truncation
=yes
6553 pgac_cv_prog_CC_cflags__Wformat_truncation
=no
6555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6556 ac_c_werror_flag
=$ac_save_c_werror_flag
6557 CFLAGS
="$pgac_save_CFLAGS"
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5
6561 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; }
6562 if test x
"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x
"yes"; then
6563 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6567 if test -n "$NOT_THE_CFLAGS"; then
6568 CFLAGS
="$CFLAGS -Wno-format-truncation"
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
6572 $as_echo_n "checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
6573 if ${pgac_cv_prog_CC_cflags__Wstringop_truncation+:} false
; then :
6574 $as_echo_n "(cached) " >&6
6576 pgac_save_CFLAGS
=$CFLAGS
6579 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6580 ac_save_c_werror_flag
=$ac_c_werror_flag
6581 ac_c_werror_flag
=yes
6582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6593 if ac_fn_c_try_compile
"$LINENO"; then :
6594 pgac_cv_prog_CC_cflags__Wstringop_truncation
=yes
6596 pgac_cv_prog_CC_cflags__Wstringop_truncation
=no
6598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6599 ac_c_werror_flag
=$ac_save_c_werror_flag
6600 CFLAGS
="$pgac_save_CFLAGS"
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wstringop_truncation" >&5
6604 $as_echo "$pgac_cv_prog_CC_cflags__Wstringop_truncation" >&6; }
6605 if test x
"$pgac_cv_prog_CC_cflags__Wstringop_truncation" = x
"yes"; then
6606 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6610 if test -n "$NOT_THE_CFLAGS"; then
6611 CFLAGS
="$CFLAGS -Wno-stringop-truncation"
6613 # Suppress clang 16's strict warnings about function casts
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcast-function-type-strict, for NOT_THE_CFLAGS" >&5
6616 $as_echo_n "checking whether ${CC} supports -Wcast-function-type-strict, for NOT_THE_CFLAGS... " >&6; }
6617 if ${pgac_cv_prog_CC_cflags__Wcast_function_type_strict+:} false
; then :
6618 $as_echo_n "(cached) " >&6
6620 pgac_save_CFLAGS
=$CFLAGS
6623 CFLAGS
="${NOT_THE_CFLAGS} -Wcast-function-type-strict"
6624 ac_save_c_werror_flag
=$ac_c_werror_flag
6625 ac_c_werror_flag
=yes
6626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6637 if ac_fn_c_try_compile
"$LINENO"; then :
6638 pgac_cv_prog_CC_cflags__Wcast_function_type_strict
=yes
6640 pgac_cv_prog_CC_cflags__Wcast_function_type_strict
=no
6642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6643 ac_c_werror_flag
=$ac_save_c_werror_flag
6644 CFLAGS
="$pgac_save_CFLAGS"
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcast_function_type_strict" >&5
6648 $as_echo "$pgac_cv_prog_CC_cflags__Wcast_function_type_strict" >&6; }
6649 if test x
"$pgac_cv_prog_CC_cflags__Wcast_function_type_strict" = x
"yes"; then
6650 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcast-function-type-strict"
6654 if test -n "$NOT_THE_CFLAGS"; then
6655 CFLAGS
="$CFLAGS -Wno-cast-function-type-strict"
6657 elif test "$ICC" = yes; then
6658 # Intel's compiler has a bug/misoptimization in checking for
6659 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -mp1, for CFLAGS" >&5
6662 $as_echo_n "checking whether ${CC} supports -mp1, for CFLAGS... " >&6; }
6663 if ${pgac_cv_prog_CC_cflags__mp1+:} false
; then :
6664 $as_echo_n "(cached) " >&6
6666 pgac_save_CFLAGS
=$CFLAGS
6669 CFLAGS
="${CFLAGS} -mp1"
6670 ac_save_c_werror_flag
=$ac_c_werror_flag
6671 ac_c_werror_flag
=yes
6672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6683 if ac_fn_c_try_compile
"$LINENO"; then :
6684 pgac_cv_prog_CC_cflags__mp1
=yes
6686 pgac_cv_prog_CC_cflags__mp1
=no
6688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6689 ac_c_werror_flag
=$ac_save_c_werror_flag
6690 CFLAGS
="$pgac_save_CFLAGS"
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__mp1" >&5
6694 $as_echo "$pgac_cv_prog_CC_cflags__mp1" >&6; }
6695 if test x
"$pgac_cv_prog_CC_cflags__mp1" = x
"yes"; then
6696 CFLAGS
="${CFLAGS} -mp1"
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -mp1, for CXXFLAGS" >&5
6701 $as_echo_n "checking whether ${CXX} supports -mp1, for CXXFLAGS... " >&6; }
6702 if ${pgac_cv_prog_CXX_cxxflags__mp1+:} false
; then :
6703 $as_echo_n "(cached) " >&6
6705 pgac_save_CXXFLAGS
=$CXXFLAGS
6708 CXXFLAGS
="${CXXFLAGS} -mp1"
6709 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6710 ac_cxx_werror_flag
=yes
6712 ac_cpp
='$CXXCPP $CPPFLAGS'
6713 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6714 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6715 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6728 if ac_fn_cxx_try_compile
"$LINENO"; then :
6729 pgac_cv_prog_CXX_cxxflags__mp1
=yes
6731 pgac_cv_prog_CXX_cxxflags__mp1
=no
6733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6735 ac_cpp
='$CPP $CPPFLAGS'
6736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6740 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6741 CXXFLAGS
="$pgac_save_CXXFLAGS"
6742 CXX
="$pgac_save_CXX"
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__mp1" >&5
6745 $as_echo "$pgac_cv_prog_CXX_cxxflags__mp1" >&6; }
6746 if test x
"$pgac_cv_prog_CXX_cxxflags__mp1" = x
"yes"; then
6747 CXXFLAGS
="${CXXFLAGS} -mp1"
6751 # Make sure strict aliasing is off (though this is said to be the default)
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6754 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6755 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
6756 $as_echo_n "(cached) " >&6
6758 pgac_save_CFLAGS
=$CFLAGS
6761 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6762 ac_save_c_werror_flag
=$ac_c_werror_flag
6763 ac_c_werror_flag
=yes
6764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6775 if ac_fn_c_try_compile
"$LINENO"; then :
6776 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
6778 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
6780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6781 ac_c_werror_flag
=$ac_save_c_werror_flag
6782 CFLAGS
="$pgac_save_CFLAGS"
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6786 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6787 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
6788 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6793 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6794 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
6795 $as_echo_n "(cached) " >&6
6797 pgac_save_CXXFLAGS
=$CXXFLAGS
6800 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6801 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6802 ac_cxx_werror_flag
=yes
6804 ac_cpp
='$CXXCPP $CPPFLAGS'
6805 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6820 if ac_fn_cxx_try_compile
"$LINENO"; then :
6821 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6823 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6827 ac_cpp
='$CPP $CPPFLAGS'
6828 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6829 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6830 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6832 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6833 CXXFLAGS
="$pgac_save_CXXFLAGS"
6834 CXX
="$pgac_save_CXX"
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6837 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6838 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6839 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6845 # If the compiler knows how to hide symbols, add the switch needed for that to
6846 # CFLAGS_SL_MODULE and define HAVE_VISIBILITY_ATTRIBUTE.
6848 # This is done separately from the above because -fvisibility is supported by
6849 # quite a few different compilers, making the required repetition bothersome.
6851 # We might need to add a separate test to check if
6852 # __attribute__((visibility("hidden"))) is supported, if we encounter a
6853 # compiler that supports one of the supported variants of -fvisibility=hidden
6854 # but uses a different syntax to mark a symbol as exported.
6855 if test "$GCC" = yes -o "$SUN_STUDIO_CC" = yes ; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fvisibility=hidden, for CFLAGS_SL_MODULE" >&5
6857 $as_echo_n "checking whether ${CC} supports -fvisibility=hidden, for CFLAGS_SL_MODULE... " >&6; }
6858 if ${pgac_cv_prog_CC_cflags__fvisibility_hidden+:} false
; then :
6859 $as_echo_n "(cached) " >&6
6861 pgac_save_CFLAGS
=$CFLAGS
6864 CFLAGS
="${CFLAGS_SL_MODULE} -fvisibility=hidden"
6865 ac_save_c_werror_flag
=$ac_c_werror_flag
6866 ac_c_werror_flag
=yes
6867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6878 if ac_fn_c_try_compile
"$LINENO"; then :
6879 pgac_cv_prog_CC_cflags__fvisibility_hidden
=yes
6881 pgac_cv_prog_CC_cflags__fvisibility_hidden
=no
6883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6884 ac_c_werror_flag
=$ac_save_c_werror_flag
6885 CFLAGS
="$pgac_save_CFLAGS"
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fvisibility_hidden" >&5
6889 $as_echo "$pgac_cv_prog_CC_cflags__fvisibility_hidden" >&6; }
6890 if test x
"$pgac_cv_prog_CC_cflags__fvisibility_hidden" = x
"yes"; then
6891 CFLAGS_SL_MODULE
="${CFLAGS_SL_MODULE} -fvisibility=hidden"
6895 # For C++ we additionally want -fvisibility-inlines-hidden
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE" >&5
6897 $as_echo_n "checking whether ${CXX} supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE... " >&6; }
6898 if ${pgac_cv_prog_CXX_cxxflags__fvisibility_hidden+:} false
; then :
6899 $as_echo_n "(cached) " >&6
6901 pgac_save_CXXFLAGS
=$CXXFLAGS
6904 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -fvisibility=hidden"
6905 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6906 ac_cxx_werror_flag
=yes
6908 ac_cpp
='$CXXCPP $CPPFLAGS'
6909 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6910 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6911 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6924 if ac_fn_cxx_try_compile
"$LINENO"; then :
6925 pgac_cv_prog_CXX_cxxflags__fvisibility_hidden
=yes
6927 pgac_cv_prog_CXX_cxxflags__fvisibility_hidden
=no
6929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6931 ac_cpp
='$CPP $CPPFLAGS'
6932 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6933 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6934 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6936 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6937 CXXFLAGS
="$pgac_save_CXXFLAGS"
6938 CXX
="$pgac_save_CXX"
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" >&5
6941 $as_echo "$pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" >&6; }
6942 if test x
"$pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" = x
"yes"; then
6943 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -fvisibility=hidden"
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE" >&5
6947 $as_echo_n "checking whether ${CXX} supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE... " >&6; }
6948 if ${pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden+:} false
; then :
6949 $as_echo_n "(cached) " >&6
6951 pgac_save_CXXFLAGS
=$CXXFLAGS
6954 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -fvisibility-inlines-hidden"
6955 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6956 ac_cxx_werror_flag
=yes
6958 ac_cpp
='$CXXCPP $CPPFLAGS'
6959 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6974 if ac_fn_cxx_try_compile
"$LINENO"; then :
6975 pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden
=yes
6977 pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden
=no
6979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6981 ac_cpp
='$CPP $CPPFLAGS'
6982 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6986 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6987 CXXFLAGS
="$pgac_save_CXXFLAGS"
6988 CXX
="$pgac_save_CXX"
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" >&5
6991 $as_echo "$pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" >&6; }
6992 if test x
"$pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" = x
"yes"; then
6993 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -fvisibility-inlines-hidden"
6996 have_visibility_attribute
=$pgac_cv_prog_CC_cflags__fvisibility_hidden
6999 if test "$have_visibility_attribute" = "yes"; then
7001 $as_echo "#define HAVE_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
7010 # Determine flags used to emit bitcode for JIT inlining.
7011 # 1. We must duplicate any behaviour-changing compiler flags used above,
7012 # to keep compatibility with the compiler used for normal Postgres code.
7013 # 2. We don't bother to duplicate extra-warnings switches --- seeing a
7014 # warning in the main build is enough.
7015 # 3. But we must duplicate -Wno-warning flags, else we'll see those anyway.
7016 if test "$with_llvm" = yes ; then
7017 CLANGXX
="$CLANG -xc++"
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5
7020 $as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; }
7021 if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false
; then :
7022 $as_echo_n "(cached) " >&6
7024 pgac_save_CFLAGS
=$CFLAGS
7027 CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
7028 ac_save_c_werror_flag
=$ac_c_werror_flag
7029 ac_c_werror_flag
=yes
7030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7041 if ac_fn_c_try_compile
"$LINENO"; then :
7042 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=yes
7044 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=no
7046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7047 ac_c_werror_flag
=$ac_save_c_werror_flag
7048 CFLAGS
="$pgac_save_CFLAGS"
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5
7052 $as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; }
7053 if test x
"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x
"yes"; then
7054 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5
7058 $as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; }
7059 if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false
; then :
7060 $as_echo_n "(cached) " >&6
7062 pgac_save_CXXFLAGS
=$CXXFLAGS
7065 CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
7066 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7067 ac_cxx_werror_flag
=yes
7069 ac_cpp
='$CXXCPP $CPPFLAGS'
7070 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7085 if ac_fn_cxx_try_compile
"$LINENO"; then :
7086 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=yes
7088 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=no
7090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7092 ac_cpp
='$CPP $CPPFLAGS'
7093 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7097 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7098 CXXFLAGS
="$pgac_save_CXXFLAGS"
7099 CXX
="$pgac_save_CXX"
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5
7102 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; }
7103 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
7104 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5
7108 $as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; }
7109 if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false
; then :
7110 $as_echo_n "(cached) " >&6
7112 pgac_save_CFLAGS
=$CFLAGS
7115 CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
7116 ac_save_c_werror_flag
=$ac_c_werror_flag
7117 ac_c_werror_flag
=yes
7118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7129 if ac_fn_c_try_compile
"$LINENO"; then :
7130 pgac_cv_prog_CLANG_cflags__fwrapv
=yes
7132 pgac_cv_prog_CLANG_cflags__fwrapv
=no
7134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7135 ac_c_werror_flag
=$ac_save_c_werror_flag
7136 CFLAGS
="$pgac_save_CFLAGS"
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5
7140 $as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; }
7141 if test x
"$pgac_cv_prog_CLANG_cflags__fwrapv" = x
"yes"; then
7142 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5
7146 $as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; }
7147 if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false
; then :
7148 $as_echo_n "(cached) " >&6
7150 pgac_save_CXXFLAGS
=$CXXFLAGS
7153 CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
7154 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7155 ac_cxx_werror_flag
=yes
7157 ac_cpp
='$CXXCPP $CPPFLAGS'
7158 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7159 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7160 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7173 if ac_fn_cxx_try_compile
"$LINENO"; then :
7174 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=yes
7176 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=no
7178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7180 ac_cpp
='$CPP $CPPFLAGS'
7181 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7182 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7183 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7185 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7186 CXXFLAGS
="$pgac_save_CXXFLAGS"
7187 CXX
="$pgac_save_CXX"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5
7190 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; }
7191 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x
"yes"; then
7192 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5
7196 $as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; }
7197 if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false
; then :
7198 $as_echo_n "(cached) " >&6
7200 pgac_save_CFLAGS
=$CFLAGS
7203 CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
7204 ac_save_c_werror_flag
=$ac_c_werror_flag
7205 ac_c_werror_flag
=yes
7206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7217 if ac_fn_c_try_compile
"$LINENO"; then :
7218 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=yes
7220 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=no
7222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7223 ac_c_werror_flag
=$ac_save_c_werror_flag
7224 CFLAGS
="$pgac_save_CFLAGS"
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5
7228 $as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; }
7229 if test x
"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x
"yes"; then
7230 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5
7234 $as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; }
7235 if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false
; then :
7236 $as_echo_n "(cached) " >&6
7238 pgac_save_CXXFLAGS
=$CXXFLAGS
7241 CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
7242 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7243 ac_cxx_werror_flag
=yes
7245 ac_cpp
='$CXXCPP $CPPFLAGS'
7246 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7261 if ac_fn_cxx_try_compile
"$LINENO"; then :
7262 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=yes
7264 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=no
7266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7268 ac_cpp
='$CPP $CPPFLAGS'
7269 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7273 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7274 CXXFLAGS
="$pgac_save_CXXFLAGS"
7275 CXX
="$pgac_save_CXX"
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5
7278 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; }
7279 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
7280 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Xclang -no-opaque-pointers, for BITCODE_CFLAGS" >&5
7285 $as_echo_n "checking whether ${CLANG} supports -Xclang -no-opaque-pointers, for BITCODE_CFLAGS... " >&6; }
7286 if ${pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers+:} false
; then :
7287 $as_echo_n "(cached) " >&6
7289 pgac_save_CFLAGS
=$CFLAGS
7292 CFLAGS
="${BITCODE_CFLAGS} -Xclang -no-opaque-pointers"
7293 ac_save_c_werror_flag
=$ac_c_werror_flag
7294 ac_c_werror_flag
=yes
7295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7296 /* end confdefs.h. */
7306 if ac_fn_c_try_compile
"$LINENO"; then :
7307 pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers
=yes
7309 pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers
=no
7311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7312 ac_c_werror_flag
=$ac_save_c_werror_flag
7313 CFLAGS
="$pgac_save_CFLAGS"
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" >&5
7317 $as_echo "$pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" >&6; }
7318 if test x
"$pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" = x
"yes"; then
7319 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -Xclang -no-opaque-pointers"
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -Xclang -no-opaque-pointers, for BITCODE_CXXFLAGS" >&5
7323 $as_echo_n "checking whether ${CLANGXX} supports -Xclang -no-opaque-pointers, for BITCODE_CXXFLAGS... " >&6; }
7324 if ${pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers+:} false
; then :
7325 $as_echo_n "(cached) " >&6
7327 pgac_save_CXXFLAGS
=$CXXFLAGS
7330 CXXFLAGS
="${BITCODE_CXXFLAGS} -Xclang -no-opaque-pointers"
7331 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7332 ac_cxx_werror_flag
=yes
7334 ac_cpp
='$CXXCPP $CPPFLAGS'
7335 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7350 if ac_fn_cxx_try_compile
"$LINENO"; then :
7351 pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers
=yes
7353 pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers
=no
7355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7357 ac_cpp
='$CPP $CPPFLAGS'
7358 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7362 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7363 CXXFLAGS
="$pgac_save_CXXFLAGS"
7364 CXX
="$pgac_save_CXX"
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" >&5
7367 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" >&6; }
7368 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" = x
"yes"; then
7369 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -Xclang -no-opaque-pointers"
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
7375 $as_echo_n "checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
7376 if ${pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument+:} false
; then :
7377 $as_echo_n "(cached) " >&6
7379 pgac_save_CFLAGS
=$CFLAGS
7382 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7383 ac_save_c_werror_flag
=$ac_c_werror_flag
7384 ac_c_werror_flag
=yes
7385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7396 if ac_fn_c_try_compile
"$LINENO"; then :
7397 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=yes
7399 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=no
7401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7402 ac_c_werror_flag
=$ac_save_c_werror_flag
7403 CFLAGS
="$pgac_save_CFLAGS"
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&5
7407 $as_echo "$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&6; }
7408 if test x
"$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" = x
"yes"; then
7409 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7412 if test -n "$NOT_THE_CFLAGS"; then
7413 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-unused-command-line-argument"
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
7417 $as_echo_n "checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
7418 if ${pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro+:} false
; then :
7419 $as_echo_n "(cached) " >&6
7421 pgac_save_CFLAGS
=$CFLAGS
7424 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7425 ac_save_c_werror_flag
=$ac_c_werror_flag
7426 ac_c_werror_flag
=yes
7427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7438 if ac_fn_c_try_compile
"$LINENO"; then :
7439 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=yes
7441 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=no
7443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7444 ac_c_werror_flag
=$ac_save_c_werror_flag
7445 CFLAGS
="$pgac_save_CFLAGS"
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&5
7449 $as_echo "$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&6; }
7450 if test x
"$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
7451 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7454 if test -n "$NOT_THE_CFLAGS"; then
7455 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-compound-token-split-by-macro"
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
7459 $as_echo_n "checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
7460 if ${pgac_cv_prog_CLANG_cflags__Wformat_truncation+:} false
; then :
7461 $as_echo_n "(cached) " >&6
7463 pgac_save_CFLAGS
=$CFLAGS
7466 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7467 ac_save_c_werror_flag
=$ac_c_werror_flag
7468 ac_c_werror_flag
=yes
7469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7480 if ac_fn_c_try_compile
"$LINENO"; then :
7481 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=yes
7483 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=no
7485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7486 ac_c_werror_flag
=$ac_save_c_werror_flag
7487 CFLAGS
="$pgac_save_CFLAGS"
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&5
7491 $as_echo "$pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&6; }
7492 if test x
"$pgac_cv_prog_CLANG_cflags__Wformat_truncation" = x
"yes"; then
7493 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7496 if test -n "$NOT_THE_CFLAGS"; then
7497 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-format-truncation"
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
7501 $as_echo_n "checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
7502 if ${pgac_cv_prog_CLANG_cflags__Wstringop_truncation+:} false
; then :
7503 $as_echo_n "(cached) " >&6
7505 pgac_save_CFLAGS
=$CFLAGS
7508 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7509 ac_save_c_werror_flag
=$ac_c_werror_flag
7510 ac_c_werror_flag
=yes
7511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7522 if ac_fn_c_try_compile
"$LINENO"; then :
7523 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=yes
7525 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=no
7527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7528 ac_c_werror_flag
=$ac_save_c_werror_flag
7529 CFLAGS
="$pgac_save_CFLAGS"
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&5
7533 $as_echo "$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&6; }
7534 if test x
"$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" = x
"yes"; then
7535 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7538 if test -n "$NOT_THE_CFLAGS"; then
7539 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-stringop-truncation"
7543 # supply -g if --enable-debug
7544 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
7548 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
7549 CXXFLAGS
="$CXXFLAGS -g"
7552 # enable code coverage if --enable-coverage
7553 if test "$enable_coverage" = yes; then
7554 if test "$GCC" = yes; then
7555 CFLAGS
="$CFLAGS -fprofile-arcs -ftest-coverage"
7556 CXXFLAGS
="$CXXFLAGS -fprofile-arcs -ftest-coverage"
7558 as_fn_error $?
"--enable-coverage is supported only when using GCC" "$LINENO" 5
7562 # enable profiling if --enable-profiling
7563 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
7564 if test "$GCC" = yes; then
7566 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
7568 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7569 CXXFLAGS
="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7571 as_fn_error $?
"--enable-profiling is supported only when using GCC" "$LINENO" 5
7575 # On Solaris, we need this #define to get POSIX-conforming versions
7576 # of many interfaces (sigwait, getpwuid_r, ...).
7577 if test "$PORTNAME" = "solaris"; then
7578 CPPFLAGS
="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
7581 # We already have this in Makefile.win32, but configure needs it too
7582 if test "$PORTNAME" = "win32"; then
7583 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32"
7586 # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the
7587 # user-specified flags (if any) at the end. This lets users override
7588 # the automatic additions.
7589 CFLAGS
="$CFLAGS $user_CFLAGS"
7590 CXXFLAGS
="$CXXFLAGS $user_CXXFLAGS"
7591 BITCODE_CFLAGS
="$BITCODE_CFLAGS $user_BITCODE_CFLAGS"
7592 BITCODE_CXXFLAGS
="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS"
7597 # The template file must set up CFLAGS_SL; we don't support user override
7600 # Check if the compiler still works with the final flag settings
7601 # (note, we're not checking that for CXX, which is optional)
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
7603 $as_echo_n "checking whether the C compiler still works... " >&6; }
7604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7615 if ac_fn_c_try_link
"$LINENO"; then :
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7617 $as_echo "yes" >&6; }
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7621 as_fn_error $?
"cannot proceed" "$LINENO" 5
7623 rm -f core conftest.err conftest.
$ac_objext \
7624 conftest
$ac_exeext conftest.
$ac_ext
7626 # Defend against gcc -ffast-math
7627 if test "$GCC" = yes; then
7628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7634 #ifdef __FAST_MATH__
7641 if ac_fn_c_try_compile
"$LINENO"; then :
7644 as_fn_error $?
"do not put -ffast-math in CFLAGS" "$LINENO" 5
7646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7649 # Defend against clang being used on x86-32 without SSE2 enabled. As current
7650 # versions of clang do not understand -fexcess-precision=standard, the use of
7651 # x87 floating point operations leads to problems like isinf possibly returning
7652 # false for a value that is infinite when converted from the 80bit register to
7653 # the 8byte memory representation.
7655 # Only perform the test if the compiler doesn't understand
7656 # -fexcess-precision=standard, that way a potentially fixed compiler will work
7658 if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no
; then
7659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7666 #if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
7674 if ac_fn_c_try_compile
"$LINENO"; then :
7677 as_fn_error $?
"Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5
7679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7683 ac_cpp
='$CPP $CPPFLAGS'
7684 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7688 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7689 # On Suns, sometimes $CPP names a directory.
7690 if test -n "$CPP" && test -d "$CPP"; then
7693 if test -z "$CPP"; then
7694 if ${ac_cv_prog_CPP+:} false
; then :
7695 $as_echo_n "(cached) " >&6
7697 # Double quotes because CPP needs to be expanded
7698 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7701 for ac_c_preproc_warn_flag
in '' yes
7703 # Use a header file that comes with gcc, so configuring glibc
7704 # with a fresh cross-compiler works.
7705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706 # <limits.h> exists even on freestanding compilers.
7707 # On the NeXT, cc -E runs the code through the compiler's parser,
7708 # not just through cpp. "Syntax error" is here to catch this case.
7709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7712 # include <limits.h>
7714 # include <assert.h>
7718 if ac_fn_c_try_cpp
"$LINENO"; then :
7721 # Broken: fails on valid input.
7724 rm -f conftest.err conftest.i conftest.
$ac_ext
7726 # OK, works on sane cases. Now check whether nonexistent headers
7727 # can be detected and how.
7728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h. */
7730 #include <ac_nonexistent.h>
7732 if ac_fn_c_try_cpp
"$LINENO"; then :
7733 # Broken: success on invalid input.
7736 # Passes both tests.
7740 rm -f conftest.err conftest.i conftest.
$ac_ext
7743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7744 rm -f conftest.i conftest.err conftest.
$ac_ext
7745 if $ac_preproc_ok; then :
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7758 $as_echo "$CPP" >&6; }
7760 for ac_c_preproc_warn_flag
in '' yes
7762 # Use a header file that comes with gcc, so configuring glibc
7763 # with a fresh cross-compiler works.
7764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7765 # <limits.h> exists even on freestanding compilers.
7766 # On the NeXT, cc -E runs the code through the compiler's parser,
7767 # not just through cpp. "Syntax error" is here to catch this case.
7768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7771 # include <limits.h>
7773 # include <assert.h>
7777 if ac_fn_c_try_cpp
"$LINENO"; then :
7780 # Broken: fails on valid input.
7783 rm -f conftest.err conftest.i conftest.
$ac_ext
7785 # OK, works on sane cases. Now check whether nonexistent headers
7786 # can be detected and how.
7787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789 #include <ac_nonexistent.h>
7791 if ac_fn_c_try_cpp
"$LINENO"; then :
7792 # Broken: success on invalid input.
7795 # Passes both tests.
7799 rm -f conftest.err conftest.i conftest.
$ac_ext
7802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7803 rm -f conftest.i conftest.err conftest.
$ac_ext
7804 if $ac_preproc_ok; then :
7807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7809 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7810 See \`config.log' for more details" "$LINENO" 5; }
7814 ac_cpp
='$CPP $CPPFLAGS'
7815 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7816 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7817 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7823 # Set up TAS assembly code if needed; the template file has now had its
7824 # chance to request this.
7826 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
7829 if test "$need_tas" = yes ; then
7837 cat >>confdefs.h
<<_ACEOF
7838 #define DLSUFFIX "$DLSUFFIX"
7843 # Set up pkg_config in case we need it below
7852 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7853 if test -n "$ac_tool_prefix"; then
7854 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7855 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 $as_echo_n "checking for $ac_word... " >&6; }
7858 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7859 $as_echo_n "(cached) " >&6
7863 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7870 test -z "$as_dir" && as_dir
=.
7871 for ac_exec_ext
in '' $ac_executable_extensions; do
7872 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7873 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7885 if test -n "$PKG_CONFIG"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7887 $as_echo "$PKG_CONFIG" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7895 if test -z "$ac_cv_path_PKG_CONFIG"; then
7896 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7897 # Extract the first word of "pkg-config", so it can be a program name with args.
7898 set dummy pkg-config
; ac_word
=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
7902 $as_echo_n "(cached) " >&6
7904 case $ac_pt_PKG_CONFIG in
7906 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7913 test -z "$as_dir" && as_dir
=.
7914 for ac_exec_ext
in '' $ac_executable_extensions; do
7915 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7916 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7928 if test -n "$ac_pt_PKG_CONFIG"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7930 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7936 if test "x$ac_pt_PKG_CONFIG" = x
; then
7939 case $cross_compiling:$ac_tool_warned in
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7943 ac_tool_warned
=yes ;;
7945 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7948 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7952 if test -n "$PKG_CONFIG"; then
7953 _pkg_min_version
=0.9.0
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7955 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7956 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7958 $as_echo "yes" >&6; }
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7967 # Automatic dependency tracking
7971 # Check whether --enable-depend was given.
7972 if test "${enable_depend+set}" = set; then :
7973 enableval
=$enable_depend;
7982 as_fn_error $?
"no argument expected for --enable-depend option" "$LINENO" 5
7996 # Enable assert checks
8000 # Check whether --enable-cassert was given.
8001 if test "${enable_cassert+set}" = set; then :
8002 enableval
=$enable_cassert;
8006 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
8013 as_fn_error $?
"no argument expected for --enable-cassert option" "$LINENO" 5
8026 # Include directories
8029 IFS
="${IFS}${PATH_SEPARATOR}"
8030 # SRCH_INC comes from the template file
8031 for dir
in $with_includes $SRCH_INC; do
8032 if test -d "$dir"; then
8033 INCLUDES
="$INCLUDES -I$dir"
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
8036 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
8044 # Library directories
8047 IFS
="${IFS}${PATH_SEPARATOR}"
8048 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
8049 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
8050 if test -d "$dir"; then
8051 LIBDIRS
="$LIBDIRS -L$dir"
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
8054 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
8063 $as_echo_n "checking whether to build with ICU support... " >&6; }
8067 # Check whether --with-icu was given.
8068 if test "${with_icu+set}" = set; then :
8073 $as_echo "#define USE_ICU 1" >>confdefs.h
8080 as_fn_error $?
"no argument expected for --with-icu option" "$LINENO" 5
8087 $as_echo "#define USE_ICU 1" >>confdefs.h
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
8093 $as_echo "$with_icu" >&6; }
8096 if test "$with_icu" = yes; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
8100 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
8102 if test -n "$ICU_CFLAGS"; then
8103 pkg_cv_ICU_CFLAGS
="$ICU_CFLAGS"
8104 elif test -n "$PKG_CONFIG"; then
8105 if test -n "$PKG_CONFIG" && \
8106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
8107 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
8109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8110 test $ac_status = 0; }; then
8111 pkg_cv_ICU_CFLAGS
=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
8112 test "x$?" != "x0" && pkg_failed
=yes
8119 if test -n "$ICU_LIBS"; then
8120 pkg_cv_ICU_LIBS
="$ICU_LIBS"
8121 elif test -n "$PKG_CONFIG"; then
8122 if test -n "$PKG_CONFIG" && \
8123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
8124 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
8126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8127 test $ac_status = 0; }; then
8128 pkg_cv_ICU_LIBS
=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
8129 test "x$?" != "x0" && pkg_failed
=yes
8139 if test $pkg_failed = yes; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8143 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8144 _pkg_short_errors_supported
=yes
8146 _pkg_short_errors_supported
=no
8148 if test $_pkg_short_errors_supported = yes; then
8149 ICU_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
8151 ICU_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
8153 # Put the nasty error message in config.log where it belongs
8154 echo "$ICU_PKG_ERRORS" >&5
8156 as_fn_error $?
"Package requirements (icu-uc icu-i18n) were not met:
8160 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8161 installed software in a non-standard prefix.
8163 Alternatively, you may set the environment variables ICU_CFLAGS
8164 and ICU_LIBS to avoid the need to call pkg-config.
8165 See the pkg-config man page for more details." "$LINENO" 5
8166 elif test $pkg_failed = untried
; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 $as_echo "no" >&6; }
8169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8171 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8172 is in your PATH or set the PKG_CONFIG environment variable to the full
8175 Alternatively, you may set the environment variables ICU_CFLAGS
8176 and ICU_LIBS to avoid the need to call pkg-config.
8177 See the pkg-config man page for more details.
8179 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8180 See \`config.log' for more details" "$LINENO" 5; }
8182 ICU_CFLAGS
=$pkg_cv_ICU_CFLAGS
8183 ICU_LIBS
=$pkg_cv_ICU_LIBS
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8185 $as_echo "yes" >&6; }
8191 # Optionally build Tcl modules (PL/Tcl)
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
8194 $as_echo_n "checking whether to build with Tcl... " >&6; }
8198 # Check whether --with-tcl was given.
8199 if test "${with_tcl+set}" = set; then :
8209 as_fn_error $?
"no argument expected for --with-tcl option" "$LINENO" 5
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
8220 $as_echo "$with_tcl" >&6; }
8223 # We see if the path to the Tcl/Tk configuration scripts is specified.
8224 # This will override the use of tclsh to find the paths to search.
8229 # Check whether --with-tclconfig was given.
8230 if test "${with_tclconfig+set}" = set; then :
8231 withval
=$with_tclconfig;
8234 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
8237 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
8249 # Optionally build Perl modules (PL/Perl)
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
8252 $as_echo_n "checking whether to build Perl modules... " >&6; }
8256 # Check whether --with-perl was given.
8257 if test "${with_perl+set}" = set; then :
8267 as_fn_error $?
"no argument expected for --with-perl option" "$LINENO" 5
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
8278 $as_echo "$with_perl" >&6; }
8282 # Optionally build Python modules (PL/Python)
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
8285 $as_echo_n "checking whether to build Python modules... " >&6; }
8289 # Check whether --with-python was given.
8290 if test "${with_python+set}" = set; then :
8291 withval
=$with_python;
8300 as_fn_error $?
"no argument expected for --with-python option" "$LINENO" 5
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8311 $as_echo "$with_python" >&6; }
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
8318 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
8322 # Check whether --with-gssapi was given.
8323 if test "${with_gssapi+set}" = set; then :
8324 withval
=$with_gssapi;
8329 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
8331 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
8338 as_fn_error $?
"no argument expected for --with-gssapi option" "$LINENO" 5
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
8349 $as_echo "$with_gssapi" >&6; }
8357 # Kerberos configuration parameters
8362 # Check whether --with-krb-srvnam was given.
8363 if test "${with_krb_srvnam+set}" = set; then :
8364 withval
=$with_krb_srvnam;
8367 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8370 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8378 with_krb_srvnam
="postgres"
8384 cat >>confdefs.h
<<_ACEOF
8385 #define PG_KRB_SRVNAM "$with_krb_srvnam"
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
8394 $as_echo_n "checking whether to build with PAM support... " >&6; }
8398 # Check whether --with-pam was given.
8399 if test "${with_pam+set}" = set; then :
8404 $as_echo "#define USE_PAM 1" >>confdefs.h
8411 as_fn_error $?
"no argument expected for --with-pam option" "$LINENO" 5
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
8422 $as_echo "$with_pam" >&6; }
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
8429 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
8433 # Check whether --with-bsd-auth was given.
8434 if test "${with_bsd_auth+set}" = set; then :
8435 withval
=$with_bsd_auth;
8439 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
8446 as_fn_error $?
"no argument expected for --with-bsd-auth option" "$LINENO" 5
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
8457 $as_echo "$with_bsd_auth" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
8464 $as_echo_n "checking whether to build with LDAP support... " >&6; }
8468 # Check whether --with-ldap was given.
8469 if test "${with_ldap+set}" = set; then :
8474 $as_echo "#define USE_LDAP 1" >>confdefs.h
8481 as_fn_error $?
"no argument expected for --with-ldap option" "$LINENO" 5
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
8492 $as_echo "$with_ldap" >&6; }
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
8500 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
8504 # Check whether --with-bonjour was given.
8505 if test "${with_bonjour+set}" = set; then :
8506 withval
=$with_bonjour;
8510 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
8517 as_fn_error $?
"no argument expected for --with-bonjour option" "$LINENO" 5
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
8528 $as_echo "$with_bonjour" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
8535 $as_echo_n "checking whether to build with SELinux support... " >&6; }
8539 # Check whether --with-selinux was given.
8540 if test "${with_selinux+set}" = set; then :
8541 withval
=$with_selinux;
8550 as_fn_error $?
"no argument expected for --with-selinux option" "$LINENO" 5
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
8562 $as_echo "$with_selinux" >&6; }
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
8568 $as_echo_n "checking whether to build with systemd support... " >&6; }
8572 # Check whether --with-systemd was given.
8573 if test "${with_systemd+set}" = set; then :
8574 withval
=$with_systemd;
8578 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
8585 as_fn_error $?
"no argument expected for --with-systemd option" "$LINENO" 5
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
8597 $as_echo "$with_systemd" >&6; }
8605 # Check whether --with-readline was given.
8606 if test "${with_readline+set}" = set; then :
8607 withval
=$with_readline;
8616 as_fn_error $?
"no argument expected for --with-readline option" "$LINENO" 5
8626 # readline on MinGW has problems with backslashes in psql and other bugs.
8627 # This is particularly a problem with non-US code pages.
8628 # Therefore disable its use until we understand the cause. 2004-07-20
8629 if test "$PORTNAME" = "win32"; then
8630 if test "$with_readline" = yes; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
8632 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
8645 # Check whether --with-libedit-preferred was given.
8646 if test "${with_libedit_preferred+set}" = set; then :
8647 withval
=$with_libedit_preferred;
8656 as_fn_error $?
"no argument expected for --with-libedit-preferred option" "$LINENO" 5
8661 with_libedit_preferred
=no
8671 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
8672 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
8673 # UUID library. More than one of these might be present on a given platform,
8674 # so we make the user say which one she wants.
8679 # Check whether --with-uuid was given.
8680 if test "${with_uuid+set}" = set; then :
8684 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8687 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8697 if test x
"$with_uuid" = x
"" ; then
8703 # Check whether --with-ossp-uuid was given.
8704 if test "${with_ossp_uuid+set}" = set; then :
8705 withval
=$with_ossp_uuid;
8714 as_fn_error $?
"no argument expected for --with-ossp-uuid option" "$LINENO" 5
8724 if test "$with_ossp_uuid" = yes ; then
8728 if test "$with_uuid" != no
; then
8729 if test "$with_uuid" = bsd
; then
8731 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
8733 elif test "$with_uuid" = e2fs
; then
8735 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
8737 elif test "$with_uuid" = ossp
; then
8739 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
8742 as_fn_error $?
"--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with XML support" >&5
8752 $as_echo_n "checking whether to build with XML support... " >&6; }
8756 # Check whether --with-libxml was given.
8757 if test "${with_libxml+set}" = set; then :
8758 withval
=$with_libxml;
8762 $as_echo "#define USE_LIBXML 1" >>confdefs.h
8769 as_fn_error $?
"no argument expected for --with-libxml option" "$LINENO" 5
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libxml" >&5
8780 $as_echo "$with_libxml" >&6; }
8783 if test "$with_libxml" = yes ; then
8784 # Check pkg-config, then xml2-config. But for backwards compatibility,
8785 # setting XML2_CONFIG overrides pkg-config.
8786 have_libxml2_pkg_config
=no
8787 if test -z "$XML2_CONFIG" -a -n "$PKG_CONFIG"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.23" >&5
8791 $as_echo_n "checking for libxml-2.0 >= 2.6.23... " >&6; }
8793 if test -n "$XML2_CFLAGS"; then
8794 pkg_cv_XML2_CFLAGS
="$XML2_CFLAGS"
8795 elif test -n "$PKG_CONFIG"; then
8796 if test -n "$PKG_CONFIG" && \
8797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8798 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8801 test $ac_status = 0; }; then
8802 pkg_cv_XML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.23" 2>/dev/null`
8803 test "x$?" != "x0" && pkg_failed
=yes
8810 if test -n "$XML2_LIBS"; then
8811 pkg_cv_XML2_LIBS
="$XML2_LIBS"
8812 elif test -n "$PKG_CONFIG"; then
8813 if test -n "$PKG_CONFIG" && \
8814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8815 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8818 test $ac_status = 0; }; then
8819 pkg_cv_XML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.23" 2>/dev/null`
8820 test "x$?" != "x0" && pkg_failed
=yes
8830 if test $pkg_failed = yes; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832 $as_echo "no" >&6; }
8834 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8835 _pkg_short_errors_supported
=yes
8837 _pkg_short_errors_supported
=no
8839 if test $_pkg_short_errors_supported = yes; then
8840 XML2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8842 XML2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8844 # Put the nasty error message in config.log where it belongs
8845 echo "$XML2_PKG_ERRORS" >&5
8848 elif test $pkg_failed = untried
; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8853 XML2_CFLAGS
=$pkg_cv_XML2_CFLAGS
8854 XML2_LIBS
=$pkg_cv_XML2_LIBS
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8856 $as_echo "yes" >&6; }
8857 have_libxml2_pkg_config
=yes
8860 if test "$have_libxml2_pkg_config" = no
; then
8861 if test -z "$XML2_CONFIG"; then
8862 for ac_prog
in xml2-config
8864 # Extract the first word of "$ac_prog", so it can be a program name with args.
8865 set dummy
$ac_prog; ac_word
=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if ${ac_cv_path_XML2_CONFIG+:} false
; then :
8869 $as_echo_n "(cached) " >&6
8871 case $XML2_CONFIG in
8873 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
8876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8880 test -z "$as_dir" && as_dir
=.
8881 for ac_exec_ext
in '' $ac_executable_extensions; do
8882 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8883 ac_cv_path_XML2_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8894 XML2_CONFIG
=$ac_cv_path_XML2_CONFIG
8895 if test -n "$XML2_CONFIG"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8897 $as_echo "$XML2_CONFIG" >&6; }
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8904 test -n "$XML2_CONFIG" && break
8908 # Report the value of XML2_CONFIG in configure's output in all cases.
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
8910 $as_echo_n "checking for XML2_CONFIG... " >&6; }
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8912 $as_echo "$XML2_CONFIG" >&6; }
8915 if test -n "$XML2_CONFIG"; then
8916 XML2_CFLAGS
=`$XML2_CONFIG --cflags`
8917 XML2_LIBS
=`$XML2_CONFIG --libs`
8920 # Note the user could also set XML2_CFLAGS/XML2_LIBS directly
8921 for pgac_option
in $XML2_CFLAGS; do
8922 case $pgac_option in
8923 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
8926 for pgac_option
in $XML2_LIBS; do
8927 case $pgac_option in
8928 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
8940 # Check whether --with-libxslt was given.
8941 if test "${with_libxslt+set}" = set; then :
8942 withval
=$with_libxslt;
8946 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
8953 as_fn_error $?
"no argument expected for --with-libxslt option" "$LINENO" 5
8973 # Check whether --with-system-tzdata was given.
8974 if test "${with_system_tzdata+set}" = set; then :
8975 withval
=$with_system_tzdata;
8978 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8981 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8999 # Check whether --with-zlib was given.
9000 if test "${with_zlib+set}" = set; then :
9010 as_fn_error $?
"no argument expected for --with-zlib option" "$LINENO" 5
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LZ4 support" >&5
9026 $as_echo_n "checking whether to build with LZ4 support... " >&6; }
9030 # Check whether --with-lz4 was given.
9031 if test "${with_lz4+set}" = set; then :
9036 $as_echo "#define USE_LZ4 1" >>confdefs.h
9043 as_fn_error $?
"no argument expected for --with-lz4 option" "$LINENO" 5
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lz4" >&5
9054 $as_echo "$with_lz4" >&6; }
9057 if test "$with_lz4" = yes; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblz4" >&5
9061 $as_echo_n "checking for liblz4... " >&6; }
9063 if test -n "$LZ4_CFLAGS"; then
9064 pkg_cv_LZ4_CFLAGS
="$LZ4_CFLAGS"
9065 elif test -n "$PKG_CONFIG"; then
9066 if test -n "$PKG_CONFIG" && \
9067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
9068 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
9070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9071 test $ac_status = 0; }; then
9072 pkg_cv_LZ4_CFLAGS
=`$PKG_CONFIG --cflags "liblz4" 2>/dev/null`
9073 test "x$?" != "x0" && pkg_failed
=yes
9080 if test -n "$LZ4_LIBS"; then
9081 pkg_cv_LZ4_LIBS
="$LZ4_LIBS"
9082 elif test -n "$PKG_CONFIG"; then
9083 if test -n "$PKG_CONFIG" && \
9084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
9085 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
9087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9088 test $ac_status = 0; }; then
9089 pkg_cv_LZ4_LIBS
=`$PKG_CONFIG --libs "liblz4" 2>/dev/null`
9090 test "x$?" != "x0" && pkg_failed
=yes
9100 if test $pkg_failed = yes; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9105 _pkg_short_errors_supported
=yes
9107 _pkg_short_errors_supported
=no
9109 if test $_pkg_short_errors_supported = yes; then
9110 LZ4_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4" 2>&1`
9112 LZ4_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "liblz4" 2>&1`
9114 # Put the nasty error message in config.log where it belongs
9115 echo "$LZ4_PKG_ERRORS" >&5
9117 as_fn_error $?
"Package requirements (liblz4) were not met:
9121 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9122 installed software in a non-standard prefix.
9124 Alternatively, you may set the environment variables LZ4_CFLAGS
9125 and LZ4_LIBS to avoid the need to call pkg-config.
9126 See the pkg-config man page for more details." "$LINENO" 5
9127 elif test $pkg_failed = untried
; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9132 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9133 is in your PATH or set the PKG_CONFIG environment variable to the full
9136 Alternatively, you may set the environment variables LZ4_CFLAGS
9137 and LZ4_LIBS to avoid the need to call pkg-config.
9138 See the pkg-config man page for more details.
9140 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9141 See \`config.log' for more details" "$LINENO" 5; }
9143 LZ4_CFLAGS
=$pkg_cv_LZ4_CFLAGS
9144 LZ4_LIBS
=$pkg_cv_LZ4_LIBS
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9146 $as_echo "yes" >&6; }
9149 # We only care about -I, -D, and -L switches;
9150 # note that -llz4 will be added by AC_CHECK_LIB below.
9151 for pgac_option
in $LZ4_CFLAGS; do
9152 case $pgac_option in
9153 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9156 for pgac_option
in $LZ4_LIBS; do
9157 case $pgac_option in
9158 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ZSTD support" >&5
9167 $as_echo_n "checking whether to build with ZSTD support... " >&6; }
9171 # Check whether --with-zstd was given.
9172 if test "${with_zstd+set}" = set; then :
9177 $as_echo "#define USE_ZSTD 1" >>confdefs.h
9184 as_fn_error $?
"no argument expected for --with-zstd option" "$LINENO" 5
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zstd" >&5
9195 $as_echo "$with_zstd" >&6; }
9198 if test "$with_zstd" = yes; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
9202 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
9204 if test -n "$ZSTD_CFLAGS"; then
9205 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
9206 elif test -n "$PKG_CONFIG"; then
9207 if test -n "$PKG_CONFIG" && \
9208 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
9209 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9212 test $ac_status = 0; }; then
9213 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
9214 test "x$?" != "x0" && pkg_failed
=yes
9221 if test -n "$ZSTD_LIBS"; then
9222 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
9223 elif test -n "$PKG_CONFIG"; then
9224 if test -n "$PKG_CONFIG" && \
9225 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
9226 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9229 test $ac_status = 0; }; then
9230 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
9231 test "x$?" != "x0" && pkg_failed
=yes
9241 if test $pkg_failed = yes; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9245 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9246 _pkg_short_errors_supported
=yes
9248 _pkg_short_errors_supported
=no
9250 if test $_pkg_short_errors_supported = yes; then
9251 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9253 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9255 # Put the nasty error message in config.log where it belongs
9256 echo "$ZSTD_PKG_ERRORS" >&5
9258 as_fn_error $?
"Package requirements (libzstd >= 1.4.0) were not met:
9262 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9263 installed software in a non-standard prefix.
9265 Alternatively, you may set the environment variables ZSTD_CFLAGS
9266 and ZSTD_LIBS to avoid the need to call pkg-config.
9267 See the pkg-config man page for more details." "$LINENO" 5
9268 elif test $pkg_failed = untried
; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9273 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9274 is in your PATH or set the PKG_CONFIG environment variable to the full
9277 Alternatively, you may set the environment variables ZSTD_CFLAGS
9278 and ZSTD_LIBS to avoid the need to call pkg-config.
9279 See the pkg-config man page for more details.
9281 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9282 See \`config.log' for more details" "$LINENO" 5; }
9284 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
9285 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9287 $as_echo "yes" >&6; }
9290 # We only care about -I, -D, and -L switches;
9291 # note that -lzstd will be added by AC_CHECK_LIB below.
9292 for pgac_option
in $ZSTD_CFLAGS; do
9293 case $pgac_option in
9294 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9297 for pgac_option
in $ZSTD_LIBS; do
9298 case $pgac_option in
9299 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9307 CPPFLAGS
="$CPPFLAGS $INCLUDES"
9308 LDFLAGS
="$LDFLAGS $LIBDIRS"
9314 if test -n "$ac_tool_prefix"; then
9315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9316 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9318 $as_echo_n "checking for $ac_word... " >&6; }
9319 if ${ac_cv_prog_STRIP+:} false
; then :
9320 $as_echo_n "(cached) " >&6
9322 if test -n "$STRIP"; then
9323 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
9325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9329 test -z "$as_dir" && as_dir
=.
9330 for ac_exec_ext
in '' $ac_executable_extensions; do
9331 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9332 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
9333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9342 STRIP
=$ac_cv_prog_STRIP
9343 if test -n "$STRIP"; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9345 $as_echo "$STRIP" >&6; }
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9353 if test -z "$ac_cv_prog_STRIP"; then
9355 # Extract the first word of "strip", so it can be a program name with args.
9356 set dummy strip
; ac_word
=$2
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9358 $as_echo_n "checking for $ac_word... " >&6; }
9359 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
9360 $as_echo_n "(cached) " >&6
9362 if test -n "$ac_ct_STRIP"; then
9363 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
9365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9369 test -z "$as_dir" && as_dir
=.
9370 for ac_exec_ext
in '' $ac_executable_extensions; do
9371 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9372 ac_cv_prog_ac_ct_STRIP
="strip"
9373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9382 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
9383 if test -n "$ac_ct_STRIP"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9385 $as_echo "$ac_ct_STRIP" >&6; }
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9391 if test "x$ac_ct_STRIP" = x
; then
9394 case $cross_compiling:$ac_tool_warned in
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9398 ac_tool_warned
=yes ;;
9403 STRIP
="$ac_cv_prog_STRIP"
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
9408 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
9409 if test x
"$STRIP" != x
"" && "$STRIP" -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9410 STRIP_STATIC_LIB
="$STRIP --strip-unneeded"
9411 STRIP_SHARED_LIB
="$STRIP --strip-unneeded"
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9413 $as_echo "yes" >&6; }
9418 STRIP_STATIC_LIB
=$STRIP
9419 STRIP_SHARED_LIB
=$STRIP
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9421 $as_echo "yes" >&6; }
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427 $as_echo "no" >&6; }
9434 if test -n "$ac_tool_prefix"; then
9435 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9436 set dummy
${ac_tool_prefix}ar; ac_word
=$2
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438 $as_echo_n "checking for $ac_word... " >&6; }
9439 if ${ac_cv_prog_AR+:} false
; then :
9440 $as_echo_n "(cached) " >&6
9442 if test -n "$AR"; then
9443 ac_cv_prog_AR
="$AR" # Let the user override the test.
9445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9449 test -z "$as_dir" && as_dir
=.
9450 for ac_exec_ext
in '' $ac_executable_extensions; do
9451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9452 ac_cv_prog_AR
="${ac_tool_prefix}ar"
9453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9463 if test -n "$AR"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9465 $as_echo "$AR" >&6; }
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 $as_echo "no" >&6; }
9473 if test -z "$ac_cv_prog_AR"; then
9475 # Extract the first word of "ar", so it can be a program name with args.
9476 set dummy
ar; ac_word
=$2
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478 $as_echo_n "checking for $ac_word... " >&6; }
9479 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
9480 $as_echo_n "(cached) " >&6
9482 if test -n "$ac_ct_AR"; then
9483 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
9485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9489 test -z "$as_dir" && as_dir
=.
9490 for ac_exec_ext
in '' $ac_executable_extensions; do
9491 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9492 ac_cv_prog_ac_ct_AR
="ar"
9493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9502 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
9503 if test -n "$ac_ct_AR"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9505 $as_echo "$ac_ct_AR" >&6; }
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508 $as_echo "no" >&6; }
9511 if test "x$ac_ct_AR" = x
; then
9514 case $cross_compiling:$ac_tool_warned in
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9518 ac_tool_warned
=yes ;;
9526 if test "$PORTNAME" = "win32"; then
9527 if test -n "$ac_tool_prefix"; then
9528 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9529 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 $as_echo_n "checking for $ac_word... " >&6; }
9532 if ${ac_cv_prog_WINDRES+:} false
; then :
9533 $as_echo_n "(cached) " >&6
9535 if test -n "$WINDRES"; then
9536 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9542 test -z "$as_dir" && as_dir
=.
9543 for ac_exec_ext
in '' $ac_executable_extensions; do
9544 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9545 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9555 WINDRES
=$ac_cv_prog_WINDRES
9556 if test -n "$WINDRES"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9558 $as_echo "$WINDRES" >&6; }
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9566 if test -z "$ac_cv_prog_WINDRES"; then
9567 ac_ct_WINDRES
=$WINDRES
9568 # Extract the first word of "windres", so it can be a program name with args.
9569 set dummy windres
; ac_word
=$2
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571 $as_echo_n "checking for $ac_word... " >&6; }
9572 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
9573 $as_echo_n "(cached) " >&6
9575 if test -n "$ac_ct_WINDRES"; then
9576 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9582 test -z "$as_dir" && as_dir
=.
9583 for ac_exec_ext
in '' $ac_executable_extensions; do
9584 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9585 ac_cv_prog_ac_ct_WINDRES
="windres"
9586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9595 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9596 if test -n "$ac_ct_WINDRES"; then
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9598 $as_echo "$ac_ct_WINDRES" >&6; }
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601 $as_echo "no" >&6; }
9604 if test "x$ac_ct_WINDRES" = x
; then
9607 case $cross_compiling:$ac_tool_warned in
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9611 ac_tool_warned
=yes ;;
9613 WINDRES
=$ac_ct_WINDRES
9616 WINDRES
="$ac_cv_prog_WINDRES"
9621 # Find a good install program. We prefer a C program (faster),
9622 # so one script is as good as another. But avoid the broken or
9623 # incompatible versions:
9624 # SysV /etc/install, /usr/sbin/install
9625 # SunOS /usr/etc/install
9626 # IRIX /sbin/install
9628 # AmigaOS /C/install, which installs bootblocks on floppy discs
9629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9632 # OS/2's system install, which has a completely different semantic
9633 # ./install, which can be erroneously created by make from ./install.sh.
9634 # Reject install programs that cannot install multiple files.
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9636 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9637 if test -z "$INSTALL"; then
9638 if ${ac_cv_path_install+:} false
; then :
9639 $as_echo_n "(cached) " >&6
9641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9645 test -z "$as_dir" && as_dir
=.
9646 # Account for people who put trailing slashes in PATH elements.
9647 case $as_dir/ in #((
9648 .
/ | .
// |
/[cC
]/* | \
9649 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
9650 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
9653 # OSF1 and SCO ODT 3.0 have their own names for install.
9654 # Don't use installbsd from OSF since it installs stuff as root
9656 for ac_prog
in ginstall scoinst
install; do
9657 for ac_exec_ext
in '' $ac_executable_extensions; do
9658 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
9659 if test $ac_prog = install &&
9660 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9661 # AIX install. It has an incompatible calling convention.
9663 elif test $ac_prog = install &&
9664 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9665 # program-specific install script used by HP pwplus--don't use.
9668 rm -rf conftest.one conftest.two conftest.dir
9669 echo one
> conftest.one
9670 echo two
> conftest.two
9672 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
9673 test -s conftest.one
&& test -s conftest.two
&&
9674 test -s conftest.dir
/conftest.one
&&
9675 test -s conftest.dir
/conftest.two
9677 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
9690 rm -rf conftest.one conftest.two conftest.dir
9693 if test "${ac_cv_path_install+set}" = set; then
9694 INSTALL
=$ac_cv_path_install
9696 # As a last resort, use the slow shell script. Don't cache a
9697 # value for INSTALL within a source directory, because that will
9698 # break other packages using the cache if that directory is
9699 # removed, or if the value is a relative name.
9700 INSTALL
=$ac_install_sh
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9704 $as_echo "$INSTALL" >&6; }
9706 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9707 # It thinks the first close brace ends the variable substitution.
9708 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
9710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
9712 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
9714 # When Autoconf chooses install-sh as install program it tries to generate
9715 # a relative path to it in each makefile where it substitutes it. This clashes
9716 # with our Makefile.global concept. This workaround helps.
9718 *install-sh
*) install_bin
='';;
9719 *) install_bin
=$INSTALL;;
9723 if test -z "$TAR"; then
9726 # Extract the first word of "$ac_prog", so it can be a program name with args.
9727 set dummy
$ac_prog; ac_word
=$2
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9729 $as_echo_n "checking for $ac_word... " >&6; }
9730 if ${ac_cv_path_TAR+:} false
; then :
9731 $as_echo_n "(cached) " >&6
9735 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
9738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9742 test -z "$as_dir" && as_dir
=.
9743 for ac_exec_ext
in '' $ac_executable_extensions; do
9744 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9745 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9757 if test -n "$TAR"; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9759 $as_echo "$TAR" >&6; }
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762 $as_echo "no" >&6; }
9766 test -n "$TAR" && break
9770 # Report the value of TAR in configure's output in all cases.
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9772 $as_echo_n "checking for TAR... " >&6; }
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9774 $as_echo "$TAR" >&6; }
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9778 $as_echo_n "checking whether ln -s works... " >&6; }
9780 if test "$LN_S" = "ln -s"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9782 $as_echo "yes" >&6; }
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9785 $as_echo "no, using $LN_S" >&6; }
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9789 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9790 if test -z "$MKDIR_P"; then
9791 if ${ac_cv_path_mkdir+:} false
; then :
9792 $as_echo_n "(cached) " >&6
9794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9795 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
9798 test -z "$as_dir" && as_dir
=.
9799 for ac_prog
in mkdir gmkdir
; do
9800 for ac_exec_ext
in '' $ac_executable_extensions; do
9801 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
9802 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9803 'mkdir (GNU coreutils) '* | \
9804 'mkdir (coreutils) '* | \
9805 'mkdir (fileutils) '4.1*)
9806 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
9816 test -d .
/--version && rmdir .
/--version
9817 if test "${ac_cv_path_mkdir+set}" = set; then
9818 MKDIR_P
="$ac_cv_path_mkdir -p"
9820 # As a last resort, use the slow shell script. Don't cache a
9821 # value for MKDIR_P within a source directory, because that will
9822 # break other packages using the cache if that directory is
9823 # removed, or if the value is a relative name.
9824 MKDIR_P
="$ac_install_sh -d"
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9828 $as_echo "$MKDIR_P" >&6; }
9830 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
9831 # a relative path to it in each makefile where it substitutes it. This clashes
9832 # with our Makefile.global concept. This workaround helps.
9834 *install-sh
*) MKDIR_P
='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
9837 if test -z "$BISON"; then
9838 for ac_prog
in bison
9840 # Extract the first word of "$ac_prog", so it can be a program name with args.
9841 set dummy
$ac_prog; ac_word
=$2
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843 $as_echo_n "checking for $ac_word... " >&6; }
9844 if ${ac_cv_path_BISON+:} false
; then :
9845 $as_echo_n "(cached) " >&6
9849 ac_cv_path_BISON
="$BISON" # Let the user override the test with a path.
9852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9856 test -z "$as_dir" && as_dir
=.
9857 for ac_exec_ext
in '' $ac_executable_extensions; do
9858 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9859 ac_cv_path_BISON
="$as_dir/$ac_word$ac_exec_ext"
9860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870 BISON
=$ac_cv_path_BISON
9871 if test -n "$BISON"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9873 $as_echo "$BISON" >&6; }
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9880 test -n "$BISON" && break
9884 # Report the value of BISON in configure's output in all cases.
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
9886 $as_echo_n "checking for BISON... " >&6; }
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9888 $as_echo "$BISON" >&6; }
9892 if test "$BISON"; then
9893 pgac_bison_version
=`$BISON --version 2>/dev/null | sed q`
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
9895 $as_echo "$as_me: using $pgac_bison_version" >&6;}
9896 if echo "$pgac_bison_version" |
$AWK '{ if ($4 < 2.3) exit 0; else exit 1;}'
9899 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9900 *** Bison version 2.3 or later is required, but this is $pgac_bison_version." "$LINENO" 5
9902 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
9903 # of the now preferred %name-prefix "base_yy", but the latter
9904 # doesn't work with Bison 2.3 or less. So for now we silence the
9905 # deprecation warnings.
9906 if echo "$pgac_bison_version" |
$AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
9908 BISONFLAGS
="$BISONFLAGS -Wno-deprecated"
9912 if test -z "$BISON"; then
9913 as_fn_error $?
"bison not found" "$LINENO" 5
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
9918 $as_echo_n "checking for flex... " >&6; }
9919 if ${pgac_cv_path_flex+:} false
; then :
9920 $as_echo_n "(cached) " >&6
9922 # Let the user override the test
9923 if test -n "$FLEX"; then
9924 pgac_cv_path_flex
=$FLEX
9928 for pgac_dir
in $PATH; do
9930 if test -z "$pgac_dir" ||
test x
"$pgac_dir" = x
"."; then
9933 for pgac_prog
in flex
lex; do
9934 pgac_candidate
="$pgac_dir/$pgac_prog"
9935 if test -f "$pgac_candidate" \
9936 && $pgac_candidate --version </dev
/null
>/dev
/null
2>&1
9938 echo '%%' > conftest.l
9939 if $pgac_candidate -t conftest.l
2>/dev
/null |
grep FLEX_SCANNER
>/dev
/null
2>&1; then
9940 pgac_flex_version
=`$pgac_candidate --version 2>/dev/null`
9941 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;}'
9943 pgac_cv_path_flex
=$pgac_candidate
9947 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
9948 *** Flex version 2.5.35 or later is required, but this is $pgac_flex_version." "$LINENO" 5
9954 rm -f conftest.l
lex.yy.c
9955 : ${pgac_cv_path_flex=no}
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
9960 $as_echo "$pgac_cv_path_flex" >&6; }
9961 if test x
"$pgac_cv_path_flex" = x
"no"; then
9962 as_fn_error $?
"flex not found" "$LINENO" 5
9964 FLEX
=$pgac_cv_path_flex
9965 pgac_flex_version
=`$FLEX --version 2>/dev/null`
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
9967 $as_echo "$as_me: using $pgac_flex_version" >&6;}
9974 if test -z "$PERL"; then
9977 # Extract the first word of "$ac_prog", so it can be a program name with args.
9978 set dummy
$ac_prog; ac_word
=$2
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980 $as_echo_n "checking for $ac_word... " >&6; }
9981 if ${ac_cv_path_PERL+:} false
; then :
9982 $as_echo_n "(cached) " >&6
9986 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
9989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9993 test -z "$as_dir" && as_dir
=.
9994 for ac_exec_ext
in '' $ac_executable_extensions; do
9995 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9996 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
9997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10007 PERL
=$ac_cv_path_PERL
10008 if test -n "$PERL"; then
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10010 $as_echo "$PERL" >&6; }
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013 $as_echo "no" >&6; }
10017 test -n "$PERL" && break
10021 # Report the value of PERL in configure's output in all cases.
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
10023 $as_echo_n "checking for PERL... " >&6; }
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10025 $as_echo "$PERL" >&6; }
10029 if test "$PERL"; then
10030 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'`
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
10032 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
10033 if echo "$pgac_perl_version" |
sed 's/[.a-z_]/ /g' | \
10034 $AWK '{ if ($1 == 5 && ($2 >= 14)) exit 1; else exit 0;}'
10037 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
10038 *** Perl version 5.14 or later is required, but this is $pgac_perl_version." "$LINENO" 5
10042 if test -z "$PERL"; then
10043 as_fn_error $?
"Perl not found" "$LINENO" 5
10046 if test "$with_perl" = yes; then
10047 if test -z "$PERL"; then
10048 as_fn_error $?
"Perl not found" "$LINENO" 5
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
10052 $as_echo_n "checking for Perl archlibexp... " >&6; }
10053 perl_archlibexp
=`$PERL -MConfig -e 'print $Config{archlibexp}'`
10054 test "$PORTNAME" = "win32" && perl_archlibexp
=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
10056 $as_echo "$perl_archlibexp" >&6; }
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
10058 $as_echo_n "checking for Perl privlibexp... " >&6; }
10059 perl_privlibexp
=`$PERL -MConfig -e 'print $Config{privlibexp}'`
10060 test "$PORTNAME" = "win32" && perl_privlibexp
=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
10062 $as_echo "$perl_privlibexp" >&6; }
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
10064 $as_echo_n "checking for Perl useshrplib... " >&6; }
10065 perl_useshrplib
=`$PERL -MConfig -e 'print $Config{useshrplib}'`
10066 test "$PORTNAME" = "win32" && perl_useshrplib
=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
10068 $as_echo "$perl_useshrplib" >&6; }
10069 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true
; then
10070 as_fn_error $?
"cannot build PL/Perl because libperl is not a shared library
10071 You might have to rebuild your Perl installation. Refer to the
10072 documentation for details. Use --without-perl to disable building
10073 PL/Perl." "$LINENO" 5
10075 # On most platforms, archlibexp is also where the Perl include files live ...
10076 perl_includespec
="-I$perl_archlibexp/CORE"
10077 # ... but on newer macOS versions, we must use -iwithsysroot to look
10078 # under $PG_SYSROOT
10079 if test \
! -f "$perl_archlibexp/CORE/perl.h" ; then
10080 if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then
10081 perl_includespec
="-iwithsysroot $perl_archlibexp/CORE"
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
10086 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
10087 perl_ccflags
=`$PERL -MConfig -e 'print $Config{ccflags}'`
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
10089 $as_echo "$perl_ccflags" >&6; }
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
10091 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
10092 perl_embed_ccflags
=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
10094 $as_echo "$perl_embed_ccflags" >&6; }
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
10098 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
10099 if test "$PORTNAME" = "win32" ; then
10100 perl_lib
=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
10101 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then
10102 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10104 perl_lib
=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'`
10105 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then
10106 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10110 pgac_tmp1
=`$PERL -MExtUtils::Embed -e ldopts`
10111 pgac_tmp2
=`$PERL -MConfig -e 'print "$Config{ccdlflags} $Config{ldflags}"'`
10112 perl_embed_ldflags
=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%"`
10114 if test -z "$perl_embed_ldflags" ; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10117 as_fn_error $?
"could not determine flags for linking embedded Perl.
10118 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
10119 installed." "$LINENO" 5
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
10122 $as_echo "$perl_embed_ldflags" >&6; }
10127 if test "$with_python" = yes; then
10128 if test -z "$PYTHON"; then
10129 for ac_prog
in python3 python
10131 # Extract the first word of "$ac_prog", so it can be a program name with args.
10132 set dummy
$ac_prog; ac_word
=$2
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134 $as_echo_n "checking for $ac_word... " >&6; }
10135 if ${ac_cv_path_PYTHON+:} false
; then :
10136 $as_echo_n "(cached) " >&6
10140 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
10143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10144 for as_dir
in $PATH
10147 test -z "$as_dir" && as_dir
=.
10148 for ac_exec_ext
in '' $ac_executable_extensions; do
10149 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10150 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
10151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 PYTHON
=$ac_cv_path_PYTHON
10162 if test -n "$PYTHON"; then
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10164 $as_echo "$PYTHON" >&6; }
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10171 test -n "$PYTHON" && break
10175 # Report the value of PYTHON in configure's output in all cases.
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
10177 $as_echo_n "checking for PYTHON... " >&6; }
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10179 $as_echo "$PYTHON" >&6; }
10182 if test x
"$PYTHON" = x
""; then
10183 as_fn_error $?
"Python not found" "$LINENO" 5
10187 python_fullversion
=`${PYTHON} -c "import sys; print(sys.version)" | sed q`
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: using python $python_fullversion" >&5
10189 $as_echo "$as_me: using python $python_fullversion" >&6;}
10190 # python_fullversion is typically n.n.n plus some trailing junk
10191 python_majorversion
=`echo "$python_fullversion" | sed 's/^\([0-9]*\).*/\1/'`
10192 python_minorversion
=`echo "$python_fullversion" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'`
10193 python_version
=`echo "$python_fullversion" | sed 's/^\([0-9]*\.[0-9]*\).*/\1/'`
10194 # Reject unsupported Python versions as soon as practical.
10195 if test "$python_majorversion" -lt 3; then
10196 as_fn_error $?
"Python version $python_version is too old (version 3 or later is required)" "$LINENO" 5
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python sysconfig module" >&5
10200 $as_echo_n "checking for Python sysconfig module... " >&6; }
10201 if "${PYTHON}" -c 'import sysconfig' 2>&5
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10204 $as_echo "yes" >&6; }
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10208 as_fn_error $?
"sysconfig module not found" "$LINENO" 5
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
10212 $as_echo_n "checking Python configuration directory... " >&6; }
10213 python_configdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBPL'))))"`
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
10215 $as_echo "$python_configdir" >&6; }
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directory" >&5
10218 $as_echo_n "checking Python include directory... " >&6; }
10219 python_includespec
=`${PYTHON} -c "import sysconfig; print('-I' + sysconfig.get_config_var('INCLUDEPY'))"`
10220 if test "$PORTNAME" = win32
; then
10221 python_includespec
=`echo $python_includespec | sed 's,[\],/,g'`
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
10224 $as_echo "$python_includespec" >&6; }
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
10229 $as_echo_n "checking how to link an embedded Python application... " >&6; }
10231 python_libdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBDIR'))))"`
10232 python_ldlibrary
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDLIBRARY'))))"`
10234 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
10235 ldlibrary
=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
10236 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
10238 ldlibrary
=`echo "${ldlibrary}" | sed "s/^lib//"`
10241 # Otherwise, guess the base name of the shlib.
10242 # LDVERSION was added in Python 3.2, before that use VERSION,
10243 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
10244 python_ldversion
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDVERSION'))))"`
10245 if test x
"${python_ldversion}" != x
""; then
10246 ldlibrary
="python${python_ldversion}"
10248 python_version_var
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('VERSION'))))"`
10249 if test x
"${python_version_var}" != x
""; then
10250 ldlibrary
="python${python_version_var}"
10252 ldlibrary
="python${python_version}"
10255 # Search for a likely-looking file.
10257 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10259 if test -e "$d/lib${ldlibrary}${DLSUFFIX}"; then
10265 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
10266 # (".so.n.n") as well. However, check this only after failing to find
10267 # ".so" anywhere, because yet other platforms (Debian) put the .so
10268 # symlink in a different directory from the underlying versioned shlib.
10269 if test "$found_shlib" != 1; then
10270 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10272 for f
in "$d/lib${ldlibrary}.so."* ; do
10273 if test -e "$f"; then
10281 # As usual, Windows has its own ideas. Possible default library
10282 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
10283 # and the "lib" prefix might not be there.
10284 if test "$found_shlib" != 1 -a \
( "$PORTNAME" = win32
-o "$PORTNAME" = cygwin \
); then
10285 for d
in "${python_libdir}" "${python_configdir}" c
:/Windows
/System32
/usr
/bin
10287 for f
in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
10288 if test -e "$f"; then
10297 if test "$found_shlib" != 1; then
10298 as_fn_error $?
"could not find shared library for Python
10299 You might have to rebuild your Python installation. Refer to the
10300 documentation for details. Use --without-python to disable building
10301 PL/Python." "$LINENO" 5
10303 python_libspec
="-L${python_libdir} -l${ldlibrary}"
10305 python_additional_libs
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
10308 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
10314 if test x"$cross_compiling" = x"yes" && test -z "$with_system_tzdata"; then
10315 if test -z "$ZIC"; then
10318 # Extract the first word of "$ac_prog", so it can be a program name with args.
10319 set dummy $ac_prog; ac_word=$2
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10321 $as_echo_n "checking
for $ac_word...
" >&6; }
10322 if ${ac_cv_path_ZIC+:} false; then :
10323 $as_echo_n "(cached
) " >&6
10327 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
10330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331 for as_dir in $PATH
10334 test -z "$as_dir" && as_dir=.
10335 for ac_exec_ext in '' $ac_executable_extensions; do
10336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10337 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
10338 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10348 ZIC=$ac_cv_path_ZIC
10349 if test -n "$ZIC"; then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10351 $as_echo "$ZIC" >&6; }
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10354 $as_echo "no
" >&6; }
10358 test -n "$ZIC" && break
10362 # Report the value of ZIC in configure's output in all cases.
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ZIC
" >&5
10364 $as_echo_n "checking
for ZIC...
" >&6; }
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10366 $as_echo "$ZIC" >&6; }
10369 if test -z "$ZIC"; then
10371 When cross-compiling
, either use the option
--with-system-tzdata to use
10372 existing time-zone data
, or
set the environment variable ZIC to a zic
10373 program to use during the build.
" "$LINENO" 5
10380 # For each platform, we need to know about any special compile and link
10381 # libraries, and whether the normal C function names are thread-safe.
10382 # WIN32 doesn't need the pthread tests; it always uses threads
10384 # These tests are run before the library-tests, because linking with the
10385 # other libraries can pull in the pthread functions as a side-effect. We
10386 # want to use the -pthread or similar flags directly, and not rely on
10387 # the side-effects of linking with some other library.
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
10390 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
10391 if ${ac_cv_path_SED+:} false; then :
10392 $as_echo_n "(cached
) " >&6
10394 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10395 for ac_i in 1 2 3 4 5 6 7; do
10396 ac_script="$ac_script$as_nl$ac_script"
10398 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10399 { ac_script=; unset ac_script;}
10400 if test -z "$SED"; then
10401 ac_path_SED_found=false
10402 # Loop through the user's path and test for each of PROGNAME-LIST
10403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404 for as_dir in $PATH
10407 test -z "$as_dir" && as_dir=.
10408 for ac_prog in sed gsed; do
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10411 as_fn_executable_p "$ac_path_SED" || continue
10412 # Check for GNU ac_path_SED and select it if it is found.
10413 # Check for GNU $ac_path_SED
10414 case `"$ac_path_SED" --version 2>&1` in
10416 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10419 $as_echo_n 0123456789 >"conftest.
in"
10422 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10423 mv "conftest.tmp
" "conftest.
in"
10424 cp "conftest.
in" "conftest.
nl"
10425 $as_echo '' >> "conftest.
nl"
10426 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10427 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10428 as_fn_arith $ac_count + 1 && ac_count=$as_val
10429 if test $ac_count -gt ${ac_path_SED_max-0}; then
10430 # Best one so far, save it but keep looking for a better one
10431 ac_cv_path_SED="$ac_path_SED"
10432 ac_path_SED_max=$ac_count
10434 # 10*(2^10) chars as input seems more than enough
10435 test $ac_count -gt 10 && break
10437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10440 $ac_path_SED_found && break 3
10445 if test -z "$ac_cv_path_SED"; then
10446 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
10449 ac_cv_path_SED=$SED
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
10454 $as_echo "$ac_cv_path_SED" >&6; }
10455 SED="$ac_cv_path_SED"
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
10460 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
10461 if ${ac_cv_path_GREP+:} false; then :
10462 $as_echo_n "(cached
) " >&6
10464 if test -z "$GREP"; then
10465 ac_path_GREP_found=false
10466 # Loop through the user's path and test for each of PROGNAME-LIST
10467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10471 test -z "$as_dir" && as_dir=.
10472 for ac_prog in grep ggrep; do
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10475 as_fn_executable_p "$ac_path_GREP" || continue
10476 # Check for GNU ac_path_GREP and select it if it is found.
10477 # Check for GNU $ac_path_GREP
10478 case `"$ac_path_GREP" --version 2>&1` in
10480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10483 $as_echo_n 0123456789 >"conftest.
in"
10486 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10487 mv "conftest.tmp
" "conftest.
in"
10488 cp "conftest.
in" "conftest.
nl"
10489 $as_echo 'GREP' >> "conftest.
nl"
10490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10491 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10492 as_fn_arith $ac_count + 1 && ac_count=$as_val
10493 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10494 # Best one so far, save it but keep looking for a better one
10495 ac_cv_path_GREP="$ac_path_GREP"
10496 ac_path_GREP_max=$ac_count
10498 # 10*(2^10) chars as input seems more than enough
10499 test $ac_count -gt 10 && break
10501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10504 $ac_path_GREP_found && break 3
10509 if test -z "$ac_cv_path_GREP"; then
10510 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10513 ac_cv_path_GREP=$GREP
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
10518 $as_echo "$ac_cv_path_GREP" >&6; }
10519 GREP="$ac_cv_path_GREP"
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
10523 $as_echo_n "checking
for egrep...
" >&6; }
10524 if ${ac_cv_path_EGREP+:} false; then :
10525 $as_echo_n "(cached
) " >&6
10527 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10528 then ac_cv_path_EGREP="$GREP -E"
10530 if test -z "$EGREP"; then
10531 ac_path_EGREP_found=false
10532 # Loop through the user's path and test for each of PROGNAME-LIST
10533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10537 test -z "$as_dir" && as_dir=.
10538 for ac_prog in egrep; do
10539 for ac_exec_ext in '' $ac_executable_extensions; do
10540 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10541 as_fn_executable_p "$ac_path_EGREP" || continue
10542 # Check for GNU ac_path_EGREP and select it if it is found.
10543 # Check for GNU $ac_path_EGREP
10544 case `"$ac_path_EGREP" --version 2>&1` in
10546 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10549 $as_echo_n 0123456789 >"conftest.
in"
10552 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10553 mv "conftest.tmp
" "conftest.
in"
10554 cp "conftest.
in" "conftest.
nl"
10555 $as_echo 'EGREP' >> "conftest.
nl"
10556 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10557 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10558 as_fn_arith $ac_count + 1 && ac_count=$as_val
10559 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10560 # Best one so far, save it but keep looking for a better one
10561 ac_cv_path_EGREP="$ac_path_EGREP"
10562 ac_path_EGREP_max=$ac_count
10564 # 10*(2^10) chars as input seems more than enough
10565 test $ac_count -gt 10 && break
10567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10570 $ac_path_EGREP_found && break 3
10575 if test -z "$ac_cv_path_EGREP"; then
10576 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10579 ac_cv_path_EGREP=$EGREP
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
10585 $as_echo "$ac_cv_path_EGREP" >&6; }
10586 EGREP="$ac_cv_path_EGREP"
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
10590 $as_echo_n "checking
for ANSI C header files...
" >&6; }
10591 if ${ac_cv_header_stdc+:} false; then :
10592 $as_echo_n "(cached
) " >&6
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10596 #include <stdlib.h>
10597 #include <stdarg.h>
10598 #include <string.h>
10609 if ac_fn_c_try_compile "$LINENO"; then :
10610 ac_cv_header_stdc=yes
10612 ac_cv_header_stdc=no
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10616 if test $ac_cv_header_stdc = yes; then
10617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10620 #include <string.h>
10623 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10624 $EGREP "memchr
" >/dev/null 2>&1; then :
10627 ac_cv_header_stdc=no
10633 if test $ac_cv_header_stdc = yes; then
10634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10637 #include <stdlib.h>
10640 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10641 $EGREP "free
" >/dev/null 2>&1; then :
10644 ac_cv_header_stdc=no
10650 if test $ac_cv_header_stdc = yes; then
10651 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10652 if test "$cross_compiling" = yes; then :
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10658 #include <stdlib.h>
10659 #if ((' ' & 0x0FF) == 0x020)
10660 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10661 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10663 # define ISLOWER(c) \
10664 (('a' <= (c) && (c) <= 'i') \
10665 || ('j' <= (c) && (c) <= 'r') \
10666 || ('s' <= (c) && (c) <= 'z'))
10667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10675 for (i = 0; i < 256; i++)
10676 if (XOR (islower (i), ISLOWER (i))
10677 || toupper (i) != TOUPPER (i))
10682 if ac_fn_c_try_run "$LINENO"; then :
10685 ac_cv_header_stdc=no
10687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10688 conftest.$ac_objext conftest.beam conftest.$ac_ext
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
10694 $as_echo "$ac_cv_header_stdc" >&6; }
10695 if test $ac_cv_header_stdc = yes; then
10697 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10701 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10702 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
10703 inttypes.h stdint.h unistd.h
10705 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10706 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10708 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10709 cat >>confdefs.h
<<_ACEOF
10710 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10718 if test "$PORTNAME" != "win32"; then :
10725 ac_cpp
='$CPP $CPPFLAGS'
10726 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10727 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10728 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10732 # We used to check for pthread.h first, but this fails if pthread.h
10733 # requires special compiler flags (e.g. on Tru64 or Sequent).
10734 # It gets checked for in the link test anyway.
10736 # First of all, check if the user has set any of the PTHREAD_LIBS,
10737 # etcetera environment variables, and if threads linking works using
10739 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10740 ax_pthread_save_CC
="$CC"
10741 ax_pthread_save_CFLAGS
="$CFLAGS"
10742 ax_pthread_save_LIBS
="$LIBS"
10743 if test "x$PTHREAD_CC" != "x"; then :
10746 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10747 LIBS
="$PTHREAD_LIBS $LIBS"
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10749 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10753 /* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
10759 char pthread_join ();
10763 return pthread_join ();
10768 if ac_fn_c_try_link
"$LINENO"; then :
10771 rm -f core conftest.err conftest.
$ac_objext \
10772 conftest
$ac_exeext conftest.
$ac_ext
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10774 $as_echo "$ax_pthread_ok" >&6; }
10775 if test "x$ax_pthread_ok" = "xno"; then
10779 CC
="$ax_pthread_save_CC"
10780 CFLAGS
="$ax_pthread_save_CFLAGS"
10781 LIBS
="$ax_pthread_save_LIBS"
10784 # We must check for the threads library under a number of different
10785 # names; the ordering is very important because some systems
10786 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10787 # libraries is broken (non-POSIX).
10789 # Create a list of thread flags to try. Items starting with a "-" are
10790 # C compiler flags, and other items are library names, except for "none"
10791 # which indicates that we try without any flags at all, and "pthread-config"
10792 # which is a program returning the flags for the Pth emulation library.
10794 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10796 # The ordering *is* (sometimes) important. Some notes on the
10797 # individual items follow:
10799 # pthreads: AIX (must check this before -lpthread)
10800 # none: in case threads are in libc; should be tried before -Kthread and
10801 # other compiler flags to prevent continual compiler warnings
10802 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10803 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10804 # (Note: HP C rejects this with "bad form for `-t' option")
10805 # -pthreads: Solaris/gcc (Note: HP C also rejects)
10806 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10807 # doesn't hurt to check since this sometimes defines pthreads and
10808 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
10809 # is present but should not be used directly; and before -mthreads,
10810 # because the compiler interprets this as "-mt" + "-hreads")
10811 # -mthreads: Mingw32/gcc, Lynx/gcc
10812 # pthread: Linux, etcetera
10813 # --thread-safe: KAI C++
10814 # pthread-config: use pthread-config program (for GNU Pth library)
10820 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10821 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10823 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
10828 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10829 # multi-threading and also sets -lpthread."
10831 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
10836 # IBM z/OS requires a feature-test macro to be defined in order to
10837 # enable POSIX threads at all, so give the user a hint if this is
10838 # not set. (We don't define these ourselves, as they can affect
10839 # other portions of the system API in unpredictable ways.)
10841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h. */
10844 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10845 AX_PTHREAD_ZOS_MISSING
10849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10850 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10852 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10860 # On Solaris (at least, for some versions), libc contains stubbed
10861 # (non-functional) versions of the pthreads routines, so link-based
10862 # tests will erroneously succeed. (N.B.: The stubs are missing
10863 # pthread_cleanup_push, or rather a function called by this macro,
10864 # so we could check for that, but who knows whether they'll stub
10865 # that too in a future libc.) So we'll check first for the
10866 # standard Solaris way of linking pthreads (-mt -lpthread).
10868 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
10872 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10874 if test "x$GCC" = "xyes"; then :
10875 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
10878 # The presence of a feature test macro requesting re-entrant function
10879 # definitions is, on some systems, a strong hint that pthreads support is
10880 # correctly enabled
10883 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
10884 ax_pthread_check_macro
="_REENTRANT"
10888 ax_pthread_check_macro
="_THREAD_SAFE"
10892 ax_pthread_check_macro
="--"
10895 if test "x$ax_pthread_check_macro" = "x--"; then :
10896 ax_pthread_check_cond
=0
10898 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
10901 # Are we compiling with Clang?
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10904 $as_echo_n "checking whether $CC is Clang... " >&6; }
10905 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
10906 $as_echo_n "(cached) " >&6
10908 ax_cv_PTHREAD_CLANG
=no
10909 # Note that Autoconf sets GCC=yes for Clang as well as GCC
10910 if test "x$GCC" = "xyes"; then
10911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10913 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10914 # if defined(__clang__) && defined(__llvm__)
10915 AX_PTHREAD_CC_IS_CLANG
10919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10920 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
10921 ax_cv_PTHREAD_CLANG
=yes
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10929 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10930 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
10932 ax_pthread_clang_warning
=no
10934 # Clang needs special handling, because older versions handle the -pthread
10935 # option in a rather... idiosyncratic way
10937 if test "x$ax_pthread_clang" = "xyes"; then
10939 # Clang takes -pthread; it has never supported any other flag
10941 # (Note 1: This will need to be revisited if a system that Clang
10942 # supports has POSIX threads in a separate library. This tends not
10943 # to be the way of modern systems, but it's conceivable.)
10945 # (Note 2: On some systems, notably Darwin, -pthread is not needed
10946 # to get POSIX threads support; the API is always present and
10947 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
10948 # -pthread does define _REENTRANT, and while the Darwin headers
10949 # ignore this macro, third-party headers might not.)
10951 PTHREAD_CFLAGS
="-pthread"
10956 # However, older versions of Clang make a point of warning the user
10957 # that, in an invocation where only linking and no compilation is
10958 # taking place, the -pthread option has no effect ("argument unused
10959 # during compilation"). They expect -pthread to be passed in only
10960 # when source code is being compiled.
10962 # Problem is, this is at odds with the way Automake and most other
10963 # C build frameworks function, which is that the same flags used in
10964 # compilation (CFLAGS) are also used in linking. Many systems
10965 # supported by AX_PTHREAD require exactly this for POSIX threads
10966 # support, and in fact it is often not straightforward to specify a
10967 # flag that is used only in the compilation phase and not in
10968 # linking. Such a scenario is extremely rare in practice.
10970 # Even though use of the -pthread flag in linking would only print
10971 # a warning, this can be a nuisance for well-run software projects
10972 # that build with -Werror. So if the active version of Clang has
10973 # this misfeature, we search for an option to squash it.
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10976 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10977 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
10978 $as_echo_n "(cached) " >&6
10980 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
10981 # Create an alternate version of $ac_link that compiles and
10982 # links in two steps (.c -> .o, .o -> exe) instead of one
10983 # (.c -> exe), because the warning occurs only in the second
10985 ax_pthread_save_ac_link
="$ac_link"
10986 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10987 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10988 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10989 ax_pthread_save_CFLAGS
="$CFLAGS"
10990 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
10991 if test "x$ax_pthread_try" = "xunknown"; then :
10994 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10995 ac_link
="$ax_pthread_save_ac_link"
10996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10998 int main(void){return 0;}
11000 if ac_fn_c_try_link
"$LINENO"; then :
11001 ac_link
="$ax_pthread_2step_ac_link"
11002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h. */
11004 int main(void){return 0;}
11006 if ac_fn_c_try_link
"$LINENO"; then :
11009 rm -f core conftest.err conftest.
$ac_objext \
11010 conftest
$ac_exeext conftest.
$ac_ext
11013 rm -f core conftest.err conftest.
$ac_objext \
11014 conftest
$ac_exeext conftest.
$ac_ext
11016 ac_link
="$ax_pthread_save_ac_link"
11017 CFLAGS
="$ax_pthread_save_CFLAGS"
11018 if test "x$ax_pthread_try" = "x"; then :
11021 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
11025 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
11027 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
11029 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
11032 fi # $ax_pthread_clang = yes
11034 if test "x$ax_pthread_ok" = "xno"; then
11035 for ax_pthread_try_flag
in $ax_pthread_flags; do
11037 case $ax_pthread_try_flag in
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11040 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
11045 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
11046 PTHREAD_CFLAGS
="-mt"
11047 PTHREAD_LIBS
="-lpthread"
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
11052 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
11053 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
11057 # Extract the first word of "pthread-config", so it can be a program name with args.
11058 set dummy pthread-config
; ac_word
=$2
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060 $as_echo_n "checking for $ac_word... " >&6; }
11061 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
11062 $as_echo_n "(cached) " >&6
11064 if test -n "$ax_pthread_config"; then
11065 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
11067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11068 for as_dir
in $PATH
11071 test -z "$as_dir" && as_dir
=.
11072 for ac_exec_ext
in '' $ac_executable_extensions; do
11073 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11074 ac_cv_prog_ax_pthread_config
="yes"
11075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11082 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
11085 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
11086 if test -n "$ax_pthread_config"; then
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11088 $as_echo "$ax_pthread_config" >&6; }
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11095 if test "x$ax_pthread_config" = "xno"; then :
11098 PTHREAD_CFLAGS
="`pthread-config --cflags`"
11099 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11104 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11105 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
11109 ax_pthread_save_CFLAGS
="$CFLAGS"
11110 ax_pthread_save_LIBS
="$LIBS"
11111 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11112 LIBS
="$PTHREAD_LIBS $LIBS"
11114 # Check for various functions. We must include pthread.h,
11115 # since some functions may be macros. (On the Sequent, we
11116 # need a special flag -Kthread to make this header compile.)
11117 # We check for pthread_join because it is in -lpthread on IRIX
11118 # while pthread_create is in libc. We check for pthread_attr_init
11119 # due to DEC craziness with -lpthreads. We check for
11120 # pthread_cleanup_push because it is one of the few pthread
11121 # functions on Solaris that doesn't have a non-functional libc stub.
11122 # We try pthread_create on general principles.
11124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11126 #include <pthread.h>
11127 # if $ax_pthread_check_cond
11128 # error "$ax_pthread_check_macro must be defined"
11130 static void routine(void *a) { a = 0; }
11131 static void *start_routine(void *a) { return a; }
11135 pthread_t th; pthread_attr_t attr;
11136 pthread_create(&th, 0, start_routine, 0);
11137 pthread_join(th, 0);
11138 pthread_attr_init(&attr);
11139 pthread_cleanup_push(routine, 0);
11140 pthread_cleanup_pop(0) /* ; */
11145 if ac_fn_c_try_link
"$LINENO"; then :
11148 rm -f core conftest.err conftest.
$ac_objext \
11149 conftest
$ac_exeext conftest.
$ac_ext
11151 CFLAGS
="$ax_pthread_save_CFLAGS"
11152 LIBS
="$ax_pthread_save_LIBS"
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11155 $as_echo "$ax_pthread_ok" >&6; }
11156 if test "x$ax_pthread_ok" = "xyes"; then :
11165 # Various other checks:
11166 if test "x$ax_pthread_ok" = "xyes"; then
11167 ax_pthread_save_CFLAGS
="$CFLAGS"
11168 ax_pthread_save_LIBS
="$LIBS"
11169 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11170 LIBS
="$PTHREAD_LIBS $LIBS"
11172 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11174 $as_echo_n "checking for joinable pthread attribute... " >&6; }
11175 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
11176 $as_echo_n "(cached) " >&6
11178 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
11179 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
11180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11182 #include <pthread.h>
11186 int attr = $ax_pthread_attr; return attr /* ; */
11191 if ac_fn_c_try_link
"$LINENO"; then :
11192 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
11194 rm -f core conftest.err conftest.
$ac_objext \
11195 conftest
$ac_exeext conftest.
$ac_ext
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11200 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11201 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11202 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11203 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11205 cat >>confdefs.h
<<_ACEOF
11206 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11209 ax_pthread_joinable_attr_defined
=yes
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11214 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11215 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
11216 $as_echo_n "(cached) " >&6
11218 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
11221 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11227 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11228 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11229 test "x$ax_pthread_special_flags_added" != "xyes"; then :
11230 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11231 ax_pthread_special_flags_added
=yes
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11235 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11236 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
11237 $as_echo_n "(cached) " >&6
11239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11241 #include <pthread.h>
11245 int i = PTHREAD_PRIO_INHERIT;
11250 if ac_fn_c_try_link
"$LINENO"; then :
11251 ax_cv_PTHREAD_PRIO_INHERIT
=yes
11253 ax_cv_PTHREAD_PRIO_INHERIT
=no
11255 rm -f core conftest.err conftest.
$ac_objext \
11256 conftest
$ac_exeext conftest.
$ac_ext
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11260 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11261 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11262 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11264 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11266 ax_pthread_prio_inherit_defined
=yes
11270 CFLAGS
="$ax_pthread_save_CFLAGS"
11271 LIBS
="$ax_pthread_save_LIBS"
11273 # More AIX lossage: compile with *_r variant
11274 if test "x$GCC" != "xyes"; then
11278 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
11279 #handle absolute path differently from PATH based program lookup
11282 if as_fn_executable_p
${CC}_r
; then :
11283 PTHREAD_CC
="${CC}_r"
11286 for ac_prog
in ${CC}_r
11288 # Extract the first word of "$ac_prog", so it can be a program name with args.
11289 set dummy
$ac_prog; ac_word
=$2
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11291 $as_echo_n "checking for $ac_word... " >&6; }
11292 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
11293 $as_echo_n "(cached) " >&6
11295 if test -n "$PTHREAD_CC"; then
11296 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
11298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11299 for as_dir
in $PATH
11302 test -z "$as_dir" && as_dir
=.
11303 for ac_exec_ext
in '' $ac_executable_extensions; do
11304 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11305 ac_cv_prog_PTHREAD_CC
="$ac_prog"
11306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11315 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
11316 if test -n "$PTHREAD_CC"; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11318 $as_echo "$PTHREAD_CC" >&6; }
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11325 test -n "$PTHREAD_CC" && break
11327 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11338 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11344 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11345 if test "x$ax_pthread_ok" = "xyes"; then
11347 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11355 ac_cpp
='$CPP $CPPFLAGS'
11356 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11357 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11358 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11362 # Some platforms use these, so just define them. They can't hurt if they
11363 # are not supported.
11364 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE"
11366 # Check for *_r functions
11369 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11370 LIBS
="$LIBS $PTHREAD_LIBS"
11372 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11373 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11377 pthread.h not found" "$LINENO" 5
11382 for ac_func
in strerror_r
11384 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11385 if test "x$ac_cv_func_strerror_r" = xyes
; then :
11386 cat >>confdefs.h
<<_ACEOF
11387 #define HAVE_STRERROR_R 1
11394 # Do test here with the proper thread flags
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
11396 $as_echo_n "checking whether strerror_r returns int... " >&6; }
11397 if ${pgac_cv_func_strerror_r_int+:} false
; then :
11398 $as_echo_n "(cached) " >&6
11400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11402 #include <string.h>
11407 switch (strerror_r(1, buf, sizeof(buf)))
11408 { case 0: break; default: break; }
11414 if ac_fn_c_try_compile
"$LINENO"; then :
11415 pgac_cv_func_strerror_r_int
=yes
11417 pgac_cv_func_strerror_r_int
=no
11419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
11422 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
11423 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
11425 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
11436 # do not use values from template file
11449 ## Most libraries are included only if they demonstrably provide a function
11450 ## we need, but libm is an exception: always include it, because there are
11451 ## too many compilers that play cute optimization games that will break
11452 ## probes for standard functions such as pow().
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
11456 $as_echo_n "checking for main in -lm... " >&6; }
11457 if ${ac_cv_lib_m_main+:} false
; then :
11458 $as_echo_n "(cached) " >&6
11460 ac_check_lib_save_LIBS
=$LIBS
11462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11474 if ac_fn_c_try_link
"$LINENO"; then :
11475 ac_cv_lib_m_main
=yes
11477 ac_cv_lib_m_main
=no
11479 rm -f core conftest.err conftest.
$ac_objext \
11480 conftest
$ac_exeext conftest.
$ac_ext
11481 LIBS
=$ac_check_lib_save_LIBS
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
11484 $as_echo "$ac_cv_lib_m_main" >&6; }
11485 if test "x$ac_cv_lib_m_main" = xyes
; then :
11486 cat >>confdefs.h
<<_ACEOF
11487 #define HAVE_LIBM 1
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
11495 $as_echo_n "checking for library containing setproctitle... " >&6; }
11496 if ${ac_cv_search_setproctitle+:} false
; then :
11497 $as_echo_n "(cached) " >&6
11499 ac_func_search_save_LIBS
=$LIBS
11500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11503 /* Override any GCC internal prototype to avoid an error.
11504 Use char because int might match the return type of a GCC
11505 builtin and then its argument prototype would still apply. */
11509 char setproctitle ();
11513 return setproctitle ();
11518 for ac_lib
in '' util
; do
11519 if test -z "$ac_lib"; then
11520 ac_res
="none required"
11523 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11525 if ac_fn_c_try_link
"$LINENO"; then :
11526 ac_cv_search_setproctitle
=$ac_res
11528 rm -f core conftest.err conftest.
$ac_objext \
11530 if ${ac_cv_search_setproctitle+:} false
; then :
11534 if ${ac_cv_search_setproctitle+:} false
; then :
11537 ac_cv_search_setproctitle
=no
11539 rm conftest.
$ac_ext
11540 LIBS
=$ac_func_search_save_LIBS
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
11543 $as_echo "$ac_cv_search_setproctitle" >&6; }
11544 ac_res
=$ac_cv_search_setproctitle
11545 if test "$ac_res" != no
; then :
11546 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11550 # gcc/clang's sanitizer helper library provides dlopen but not dlsym, thus
11551 # when enabling asan the dlopen check doesn't notice that -ldl is actually
11552 # required. Just checking for dlsym() ought to suffice.
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11554 $as_echo_n "checking for library containing dlsym... " >&6; }
11555 if ${ac_cv_search_dlsym+:} false
; then :
11556 $as_echo_n "(cached) " >&6
11558 ac_func_search_save_LIBS
=$LIBS
11559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11562 /* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11577 for ac_lib
in '' dl
; do
11578 if test -z "$ac_lib"; then
11579 ac_res
="none required"
11582 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11584 if ac_fn_c_try_link
"$LINENO"; then :
11585 ac_cv_search_dlsym
=$ac_res
11587 rm -f core conftest.err conftest.
$ac_objext \
11589 if ${ac_cv_search_dlsym+:} false
; then :
11593 if ${ac_cv_search_dlsym+:} false
; then :
11596 ac_cv_search_dlsym
=no
11598 rm conftest.
$ac_ext
11599 LIBS
=$ac_func_search_save_LIBS
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11602 $as_echo "$ac_cv_search_dlsym" >&6; }
11603 ac_res
=$ac_cv_search_dlsym
11604 if test "$ac_res" != no
; then :
11605 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11610 $as_echo_n "checking for library containing socket... " >&6; }
11611 if ${ac_cv_search_socket+:} false
; then :
11612 $as_echo_n "(cached) " >&6
11614 ac_func_search_save_LIBS
=$LIBS
11615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11618 /* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
11633 for ac_lib
in '' socket ws2_32
; do
11634 if test -z "$ac_lib"; then
11635 ac_res
="none required"
11638 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11640 if ac_fn_c_try_link
"$LINENO"; then :
11641 ac_cv_search_socket
=$ac_res
11643 rm -f core conftest.err conftest.
$ac_objext \
11645 if ${ac_cv_search_socket+:} false
; then :
11649 if ${ac_cv_search_socket+:} false
; then :
11652 ac_cv_search_socket
=no
11654 rm conftest.
$ac_ext
11655 LIBS
=$ac_func_search_save_LIBS
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11658 $as_echo "$ac_cv_search_socket" >&6; }
11659 ac_res
=$ac_cv_search_socket
11660 if test "$ac_res" != no
; then :
11661 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
11666 $as_echo_n "checking for library containing getopt_long... " >&6; }
11667 if ${ac_cv_search_getopt_long+:} false
; then :
11668 $as_echo_n "(cached) " >&6
11670 ac_func_search_save_LIBS
=$LIBS
11671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11674 /* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11680 char getopt_long ();
11684 return getopt_long ();
11689 for ac_lib
in '' getopt gnugetopt
; do
11690 if test -z "$ac_lib"; then
11691 ac_res
="none required"
11694 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11696 if ac_fn_c_try_link
"$LINENO"; then :
11697 ac_cv_search_getopt_long
=$ac_res
11699 rm -f core conftest.err conftest.
$ac_objext \
11701 if ${ac_cv_search_getopt_long+:} false
; then :
11705 if ${ac_cv_search_getopt_long+:} false
; then :
11708 ac_cv_search_getopt_long
=no
11710 rm conftest.
$ac_ext
11711 LIBS
=$ac_func_search_save_LIBS
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
11714 $as_echo "$ac_cv_search_getopt_long" >&6; }
11715 ac_res
=$ac_cv_search_getopt_long
11716 if test "$ac_res" != no
; then :
11717 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
11722 $as_echo_n "checking for library containing shm_open... " >&6; }
11723 if ${ac_cv_search_shm_open+:} false
; then :
11724 $as_echo_n "(cached) " >&6
11726 ac_func_search_save_LIBS
=$LIBS
11727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11730 /* Override any GCC internal prototype to avoid an error.
11731 Use char because int might match the return type of a GCC
11732 builtin and then its argument prototype would still apply. */
11740 return shm_open ();
11745 for ac_lib
in '' rt
; do
11746 if test -z "$ac_lib"; then
11747 ac_res
="none required"
11750 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11752 if ac_fn_c_try_link
"$LINENO"; then :
11753 ac_cv_search_shm_open
=$ac_res
11755 rm -f core conftest.err conftest.
$ac_objext \
11757 if ${ac_cv_search_shm_open+:} false
; then :
11761 if ${ac_cv_search_shm_open+:} false
; then :
11764 ac_cv_search_shm_open
=no
11766 rm conftest.
$ac_ext
11767 LIBS
=$ac_func_search_save_LIBS
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
11770 $as_echo "$ac_cv_search_shm_open" >&6; }
11771 ac_res
=$ac_cv_search_shm_open
11772 if test "$ac_res" != no
; then :
11773 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
11778 $as_echo_n "checking for library containing shm_unlink... " >&6; }
11779 if ${ac_cv_search_shm_unlink+:} false
; then :
11780 $as_echo_n "(cached) " >&6
11782 ac_func_search_save_LIBS
=$LIBS
11783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11786 /* Override any GCC internal prototype to avoid an error.
11787 Use char because int might match the return type of a GCC
11788 builtin and then its argument prototype would still apply. */
11792 char shm_unlink ();
11796 return shm_unlink ();
11801 for ac_lib
in '' rt
; do
11802 if test -z "$ac_lib"; then
11803 ac_res
="none required"
11806 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11808 if ac_fn_c_try_link
"$LINENO"; then :
11809 ac_cv_search_shm_unlink
=$ac_res
11811 rm -f core conftest.err conftest.
$ac_objext \
11813 if ${ac_cv_search_shm_unlink+:} false
; then :
11817 if ${ac_cv_search_shm_unlink+:} false
; then :
11820 ac_cv_search_shm_unlink
=no
11822 rm conftest.
$ac_ext
11823 LIBS
=$ac_func_search_save_LIBS
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
11826 $as_echo "$ac_cv_search_shm_unlink" >&6; }
11827 ac_res
=$ac_cv_search_shm_unlink
11828 if test "$ac_res" != no
; then :
11829 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11834 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11835 if ${ac_cv_search_clock_gettime+:} false
; then :
11836 $as_echo_n "(cached) " >&6
11838 ac_func_search_save_LIBS
=$LIBS
11839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11842 /* Override any GCC internal prototype to avoid an error.
11843 Use char because int might match the return type of a GCC
11844 builtin and then its argument prototype would still apply. */
11848 char clock_gettime ();
11852 return clock_gettime ();
11857 for ac_lib
in '' rt
; do
11858 if test -z "$ac_lib"; then
11859 ac_res
="none required"
11862 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11864 if ac_fn_c_try_link
"$LINENO"; then :
11865 ac_cv_search_clock_gettime
=$ac_res
11867 rm -f core conftest.err conftest.
$ac_objext \
11869 if ${ac_cv_search_clock_gettime+:} false
; then :
11873 if ${ac_cv_search_clock_gettime+:} false
; then :
11876 ac_cv_search_clock_gettime
=no
11878 rm conftest.
$ac_ext
11879 LIBS
=$ac_func_search_save_LIBS
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11882 $as_echo "$ac_cv_search_clock_gettime" >&6; }
11883 ac_res
=$ac_cv_search_clock_gettime
11884 if test "$ac_res" != no
; then :
11885 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
11891 $as_echo_n "checking for library containing shmget... " >&6; }
11892 if ${ac_cv_search_shmget+:} false
; then :
11893 $as_echo_n "(cached) " >&6
11895 ac_func_search_save_LIBS
=$LIBS
11896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11899 /* Override any GCC internal prototype to avoid an error.
11900 Use char because int might match the return type of a GCC
11901 builtin and then its argument prototype would still apply. */
11914 for ac_lib
in '' cygipc
; do
11915 if test -z "$ac_lib"; then
11916 ac_res
="none required"
11919 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11921 if ac_fn_c_try_link
"$LINENO"; then :
11922 ac_cv_search_shmget
=$ac_res
11924 rm -f core conftest.err conftest.
$ac_objext \
11926 if ${ac_cv_search_shmget+:} false
; then :
11930 if ${ac_cv_search_shmget+:} false
; then :
11933 ac_cv_search_shmget
=no
11935 rm conftest.
$ac_ext
11936 LIBS
=$ac_func_search_save_LIBS
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
11939 $as_echo "$ac_cv_search_shmget" >&6; }
11940 ac_res
=$ac_cv_search_shmget
11941 if test "$ac_res" != no
; then :
11942 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5
11948 $as_echo_n "checking for library containing backtrace_symbols... " >&6; }
11949 if ${ac_cv_search_backtrace_symbols+:} false
; then :
11950 $as_echo_n "(cached) " >&6
11952 ac_func_search_save_LIBS
=$LIBS
11953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11956 /* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11962 char backtrace_symbols ();
11966 return backtrace_symbols ();
11971 for ac_lib
in '' execinfo
; do
11972 if test -z "$ac_lib"; then
11973 ac_res
="none required"
11976 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11978 if ac_fn_c_try_link
"$LINENO"; then :
11979 ac_cv_search_backtrace_symbols
=$ac_res
11981 rm -f core conftest.err conftest.
$ac_objext \
11983 if ${ac_cv_search_backtrace_symbols+:} false
; then :
11987 if ${ac_cv_search_backtrace_symbols+:} false
; then :
11990 ac_cv_search_backtrace_symbols
=no
11992 rm conftest.
$ac_ext
11993 LIBS
=$ac_func_search_save_LIBS
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5
11996 $as_echo "$ac_cv_search_backtrace_symbols" >&6; }
11997 ac_res
=$ac_cv_search_backtrace_symbols
11998 if test "$ac_res" != no
; then :
11999 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_barrier_wait" >&5
12005 $as_echo_n "checking for library containing pthread_barrier_wait... " >&6; }
12006 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12007 $as_echo_n "(cached) " >&6
12009 ac_func_search_save_LIBS
=$LIBS
12010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12013 /* Override any GCC internal prototype to avoid an error.
12014 Use char because int might match the return type of a GCC
12015 builtin and then its argument prototype would still apply. */
12019 char pthread_barrier_wait ();
12023 return pthread_barrier_wait ();
12028 for ac_lib
in '' pthread
; do
12029 if test -z "$ac_lib"; then
12030 ac_res
="none required"
12033 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12035 if ac_fn_c_try_link
"$LINENO"; then :
12036 ac_cv_search_pthread_barrier_wait
=$ac_res
12038 rm -f core conftest.err conftest.
$ac_objext \
12040 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12044 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12047 ac_cv_search_pthread_barrier_wait
=no
12049 rm conftest.
$ac_ext
12050 LIBS
=$ac_func_search_save_LIBS
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_barrier_wait" >&5
12053 $as_echo "$ac_cv_search_pthread_barrier_wait" >&6; }
12054 ac_res
=$ac_cv_search_pthread_barrier_wait
12055 if test "$ac_res" != no
; then :
12056 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12061 if test "$with_readline" = yes; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12065 $as_echo_n "checking for library containing readline... " >&6; }
12066 if ${pgac_cv_check_readline+:} false
; then :
12067 $as_echo_n "(cached) " >&6
12069 pgac_cv_check_readline
=no
12070 pgac_save_LIBS
=$LIBS
12071 if test x
"$with_libedit_preferred" != x
"yes"
12072 then READLINE_ORDER
="-lreadline -ledit"
12073 else READLINE_ORDER
="-ledit -lreadline"
12075 for pgac_rllib
in $READLINE_ORDER ; do
12076 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
12077 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
12078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12081 /* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12091 return readline ();
12096 if ac_fn_c_try_link
"$LINENO"; then :
12098 # Older NetBSD and OpenBSD have a broken linker that does not
12099 # recognize dependent libraries; assume curses is needed if we didn't
12100 # find any dependency.
12102 netbsd
* | openbsd
*)
12103 if test x
"$pgac_lib" = x
"" ; then
12104 pgac_lib
=" -lcurses"
12108 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
12112 rm -f core conftest.err conftest.
$ac_objext \
12113 conftest
$ac_exeext conftest.
$ac_ext
12115 if test "$pgac_cv_check_readline" != no
; then
12119 LIBS
=$pgac_save_LIBS
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
12123 $as_echo "$pgac_cv_check_readline" >&6; }
12124 if test "$pgac_cv_check_readline" != no
; then
12125 LIBS
="$pgac_cv_check_readline $LIBS"
12127 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
12132 if test x
"$pgac_cv_check_readline" = x
"no"; then
12133 as_fn_error $?
"readline library not found
12134 If you have readline already installed, see config.log for details on the
12135 failure. It is possible the compiler isn't looking in the proper directory.
12136 Use --without-readline to disable readline support." "$LINENO" 5
12140 if test "$with_zlib" = yes; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
12142 $as_echo_n "checking for inflate in -lz... " >&6; }
12143 if ${ac_cv_lib_z_inflate+:} false
; then :
12144 $as_echo_n "(cached) " >&6
12146 ac_check_lib_save_LIBS
=$LIBS
12148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12151 /* Override any GCC internal prototype to avoid an error.
12152 Use char because int might match the return type of a GCC
12153 builtin and then its argument prototype would still apply. */
12166 if ac_fn_c_try_link
"$LINENO"; then :
12167 ac_cv_lib_z_inflate
=yes
12169 ac_cv_lib_z_inflate
=no
12171 rm -f core conftest.err conftest.
$ac_objext \
12172 conftest
$ac_exeext conftest.
$ac_ext
12173 LIBS
=$ac_check_lib_save_LIBS
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12176 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12177 if test "x$ac_cv_lib_z_inflate" = xyes
; then :
12178 cat >>confdefs.h
<<_ACEOF
12179 #define HAVE_LIBZ 1
12185 as_fn_error $?
"zlib library not found
12186 If you have zlib already installed, see config.log for details on the
12187 failure. It is possible the compiler isn't looking in the proper directory.
12188 Use --without-zlib to disable zlib support." "$LINENO" 5
12193 if test "$with_gssapi" = yes ; then
12194 if test "$PORTNAME" != "win32"; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_store_cred_into" >&5
12196 $as_echo_n "checking for library containing gss_store_cred_into... " >&6; }
12197 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12198 $as_echo_n "(cached) " >&6
12200 ac_func_search_save_LIBS
=$LIBS
12201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12204 /* Override any GCC internal prototype to avoid an error.
12205 Use char because int might match the return type of a GCC
12206 builtin and then its argument prototype would still apply. */
12210 char gss_store_cred_into ();
12214 return gss_store_cred_into ();
12219 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
12220 if test -z "$ac_lib"; then
12221 ac_res
="none required"
12224 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12226 if ac_fn_c_try_link
"$LINENO"; then :
12227 ac_cv_search_gss_store_cred_into
=$ac_res
12229 rm -f core conftest.err conftest.
$ac_objext \
12231 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12235 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12238 ac_cv_search_gss_store_cred_into
=no
12240 rm conftest.
$ac_ext
12241 LIBS
=$ac_func_search_save_LIBS
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_store_cred_into" >&5
12244 $as_echo "$ac_cv_search_gss_store_cred_into" >&6; }
12245 ac_res
=$ac_cv_search_gss_store_cred_into
12246 if test "$ac_res" != no
; then :
12247 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12250 as_fn_error $?
"could not find function 'gss_store_cred_into' required for GSSAPI" "$LINENO" 5
12254 LIBS
="$LIBS -lgssapi32"
12261 # There is currently only one supported SSL/TLS library: OpenSSL.
12266 # Check whether --with-ssl was given.
12267 if test "${with_ssl+set}" = set; then :
12271 as_fn_error $?
"argument required for --with-ssl option" "$LINENO" 5
12274 as_fn_error $?
"argument required for --with-ssl option" "$LINENO" 5
12284 if test x
"$with_ssl" = x
"" ; then
12290 # Check whether --with-openssl was given.
12291 if test "${with_openssl+set}" = set; then :
12292 withval
=$with_openssl;
12301 as_fn_error $?
"no argument expected for --with-openssl option" "$LINENO" 5
12311 if test "$with_openssl" = yes ; then
12315 if test "$with_ssl" = openssl
; then
12316 # Minimum required OpenSSL version is 1.1.0
12318 $as_echo "#define OPENSSL_API_COMPAT 0x10100000L" >>confdefs.h
12320 if test "$PORTNAME" != "win32"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
12322 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
12323 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false
; then :
12324 $as_echo_n "(cached) " >&6
12326 ac_check_lib_save_LIBS
=$LIBS
12327 LIBS
="-lcrypto $LIBS"
12328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12331 /* Override any GCC internal prototype to avoid an error.
12332 Use char because int might match the return type of a GCC
12333 builtin and then its argument prototype would still apply. */
12337 char CRYPTO_new_ex_data ();
12341 return CRYPTO_new_ex_data ();
12346 if ac_fn_c_try_link
"$LINENO"; then :
12347 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
12349 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
12351 rm -f core conftest.err conftest.
$ac_objext \
12352 conftest
$ac_exeext conftest.
$ac_ext
12353 LIBS
=$ac_check_lib_save_LIBS
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
12356 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
12357 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes
; then :
12358 cat >>confdefs.h
<<_ACEOF
12359 #define HAVE_LIBCRYPTO 1
12362 LIBS
="-lcrypto $LIBS"
12365 as_fn_error $?
"library 'crypto' is required for OpenSSL" "$LINENO" 5
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
12369 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
12370 if ${ac_cv_lib_ssl_SSL_new+:} false
; then :
12371 $as_echo_n "(cached) " >&6
12373 ac_check_lib_save_LIBS
=$LIBS
12375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12378 /* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12393 if ac_fn_c_try_link
"$LINENO"; then :
12394 ac_cv_lib_ssl_SSL_new
=yes
12396 ac_cv_lib_ssl_SSL_new
=no
12398 rm -f core conftest.err conftest.
$ac_objext \
12399 conftest
$ac_exeext conftest.
$ac_ext
12400 LIBS
=$ac_check_lib_save_LIBS
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
12403 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
12404 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
; then :
12405 cat >>confdefs.h
<<_ACEOF
12406 #define HAVE_LIBSSL 1
12412 as_fn_error $?
"library 'ssl' is required for OpenSSL" "$LINENO" 5
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
12417 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
12418 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12419 $as_echo_n "(cached) " >&6
12421 ac_func_search_save_LIBS
=$LIBS
12422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h. */
12425 /* Override any GCC internal prototype to avoid an error.
12426 Use char because int might match the return type of a GCC
12427 builtin and then its argument prototype would still apply. */
12431 char CRYPTO_new_ex_data ();
12435 return CRYPTO_new_ex_data ();
12440 for ac_lib
in '' eay32 crypto
; do
12441 if test -z "$ac_lib"; then
12442 ac_res
="none required"
12445 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12447 if ac_fn_c_try_link
"$LINENO"; then :
12448 ac_cv_search_CRYPTO_new_ex_data
=$ac_res
12450 rm -f core conftest.err conftest.
$ac_objext \
12452 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12456 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12459 ac_cv_search_CRYPTO_new_ex_data
=no
12461 rm conftest.
$ac_ext
12462 LIBS
=$ac_func_search_save_LIBS
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
12465 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
12466 ac_res
=$ac_cv_search_CRYPTO_new_ex_data
12467 if test "$ac_res" != no
; then :
12468 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12471 as_fn_error $?
"library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12475 $as_echo_n "checking for library containing SSL_new... " >&6; }
12476 if ${ac_cv_search_SSL_new+:} false
; then :
12477 $as_echo_n "(cached) " >&6
12479 ac_func_search_save_LIBS
=$LIBS
12480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12483 /* Override any GCC internal prototype to avoid an error.
12484 Use char because int might match the return type of a GCC
12485 builtin and then its argument prototype would still apply. */
12498 for ac_lib
in '' ssleay32 ssl
; do
12499 if test -z "$ac_lib"; then
12500 ac_res
="none required"
12503 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12505 if ac_fn_c_try_link
"$LINENO"; then :
12506 ac_cv_search_SSL_new
=$ac_res
12508 rm -f core conftest.err conftest.
$ac_objext \
12510 if ${ac_cv_search_SSL_new+:} false
; then :
12514 if ${ac_cv_search_SSL_new+:} false
; then :
12517 ac_cv_search_SSL_new
=no
12519 rm conftest.
$ac_ext
12520 LIBS
=$ac_func_search_save_LIBS
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12523 $as_echo "$ac_cv_search_SSL_new" >&6; }
12524 ac_res
=$ac_cv_search_SSL_new
12525 if test "$ac_res" != no
; then :
12526 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12529 as_fn_error $?
"library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
12533 # Function introduced in OpenSSL 1.0.2, not in LibreSSL.
12534 for ac_func
in SSL_CTX_set_cert_cb
12536 ac_fn_c_check_func
"$LINENO" "SSL_CTX_set_cert_cb" "ac_cv_func_SSL_CTX_set_cert_cb"
12537 if test "x$ac_cv_func_SSL_CTX_set_cert_cb" = xyes
; then :
12538 cat >>confdefs.h
<<_ACEOF
12539 #define HAVE_SSL_CTX_SET_CERT_CB 1
12545 # Functions introduced in OpenSSL 1.1.0. We used to check for
12546 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
12547 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
12548 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
12550 for ac_func
in OPENSSL_init_ssl
12552 ac_fn_c_check_func
"$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
12553 if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes
; then :
12554 cat >>confdefs.h
<<_ACEOF
12555 #define HAVE_OPENSSL_INIT_SSL 1
12559 as_fn_error $?
"OpenSSL version >= 1.1.0 is required for SSL support" "$LINENO" 5
12563 # Function introduced in OpenSSL 1.1.1, not in LibreSSL.
12564 for ac_func
in X509_get_signature_info SSL_CTX_set_num_tickets
12566 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12567 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12568 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12569 cat >>confdefs.h
<<_ACEOF
12570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12577 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
12579 elif test "$with_ssl" != no
; then
12580 as_fn_error $?
"--with-ssl must specify openssl" "$LINENO" 5
12584 if test "$with_pam" = yes ; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
12586 $as_echo_n "checking for pam_start in -lpam... " >&6; }
12587 if ${ac_cv_lib_pam_pam_start+:} false
; then :
12588 $as_echo_n "(cached) " >&6
12590 ac_check_lib_save_LIBS
=$LIBS
12592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12595 /* Override any GCC internal prototype to avoid an error.
12596 Use char because int might match the return type of a GCC
12597 builtin and then its argument prototype would still apply. */
12605 return pam_start ();
12610 if ac_fn_c_try_link
"$LINENO"; then :
12611 ac_cv_lib_pam_pam_start
=yes
12613 ac_cv_lib_pam_pam_start
=no
12615 rm -f core conftest.err conftest.
$ac_objext \
12616 conftest
$ac_exeext conftest.
$ac_ext
12617 LIBS
=$ac_check_lib_save_LIBS
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
12620 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
12621 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
12622 cat >>confdefs.h
<<_ACEOF
12623 #define HAVE_LIBPAM 1
12629 as_fn_error $?
"library 'pam' is required for PAM" "$LINENO" 5
12634 if test "$with_libxml" = yes ; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
12636 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
12637 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false
; then :
12638 $as_echo_n "(cached) " >&6
12640 ac_check_lib_save_LIBS
=$LIBS
12641 LIBS
="-lxml2 $LIBS"
12642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12645 /* Override any GCC internal prototype to avoid an error.
12646 Use char because int might match the return type of a GCC
12647 builtin and then its argument prototype would still apply. */
12651 char xmlSaveToBuffer ();
12655 return xmlSaveToBuffer ();
12660 if ac_fn_c_try_link
"$LINENO"; then :
12661 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
12663 ac_cv_lib_xml2_xmlSaveToBuffer
=no
12665 rm -f core conftest.err conftest.
$ac_objext \
12666 conftest
$ac_exeext conftest.
$ac_ext
12667 LIBS
=$ac_check_lib_save_LIBS
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
12670 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
12671 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes
; then :
12672 cat >>confdefs.h
<<_ACEOF
12673 #define HAVE_LIBXML2 1
12676 LIBS
="-lxml2 $LIBS"
12679 as_fn_error $?
"library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
12684 if test "$with_libxslt" = yes ; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
12686 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
12687 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false
; then :
12688 $as_echo_n "(cached) " >&6
12690 ac_check_lib_save_LIBS
=$LIBS
12691 LIBS
="-lxslt $LIBS"
12692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h. */
12695 /* Override any GCC internal prototype to avoid an error.
12696 Use char because int might match the return type of a GCC
12697 builtin and then its argument prototype would still apply. */
12701 char xsltCleanupGlobals ();
12705 return xsltCleanupGlobals ();
12710 if ac_fn_c_try_link
"$LINENO"; then :
12711 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
12713 ac_cv_lib_xslt_xsltCleanupGlobals
=no
12715 rm -f core conftest.err conftest.
$ac_objext \
12716 conftest
$ac_exeext conftest.
$ac_ext
12717 LIBS
=$ac_check_lib_save_LIBS
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
12720 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
12721 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes
; then :
12722 cat >>confdefs.h
<<_ACEOF
12723 #define HAVE_LIBXSLT 1
12726 LIBS
="-lxslt $LIBS"
12729 as_fn_error $?
"library 'xslt' is required for XSLT support" "$LINENO" 5
12734 if test "$with_lz4" = yes ; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
12736 $as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
12737 if ${ac_cv_lib_lz4_LZ4_compress_default+:} false
; then :
12738 $as_echo_n "(cached) " >&6
12740 ac_check_lib_save_LIBS
=$LIBS
12742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12745 /* Override any GCC internal prototype to avoid an error.
12746 Use char because int might match the return type of a GCC
12747 builtin and then its argument prototype would still apply. */
12751 char LZ4_compress_default ();
12755 return LZ4_compress_default ();
12760 if ac_fn_c_try_link
"$LINENO"; then :
12761 ac_cv_lib_lz4_LZ4_compress_default
=yes
12763 ac_cv_lib_lz4_LZ4_compress_default
=no
12765 rm -f core conftest.err conftest.
$ac_objext \
12766 conftest
$ac_exeext conftest.
$ac_ext
12767 LIBS
=$ac_check_lib_save_LIBS
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
12770 $as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
12771 if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes
; then :
12772 cat >>confdefs.h
<<_ACEOF
12773 #define HAVE_LIBLZ4 1
12779 as_fn_error $?
"library 'lz4' is required for LZ4 support" "$LINENO" 5
12784 if test "$with_zstd" = yes ; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
12786 $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
12787 if ${ac_cv_lib_zstd_ZSTD_compress+:} false
; then :
12788 $as_echo_n "(cached) " >&6
12790 ac_check_lib_save_LIBS
=$LIBS
12791 LIBS
="-lzstd $LIBS"
12792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12795 /* Override any GCC internal prototype to avoid an error.
12796 Use char because int might match the return type of a GCC
12797 builtin and then its argument prototype would still apply. */
12801 char ZSTD_compress ();
12805 return ZSTD_compress ();
12810 if ac_fn_c_try_link
"$LINENO"; then :
12811 ac_cv_lib_zstd_ZSTD_compress
=yes
12813 ac_cv_lib_zstd_ZSTD_compress
=no
12815 rm -f core conftest.err conftest.
$ac_objext \
12816 conftest
$ac_exeext conftest.
$ac_ext
12817 LIBS
=$ac_check_lib_save_LIBS
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
12820 $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
12821 if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes
; then :
12822 cat >>confdefs.h
<<_ACEOF
12823 #define HAVE_LIBZSTD 1
12826 LIBS
="-lzstd $LIBS"
12829 as_fn_error $?
"library 'zstd' is required for ZSTD support" "$LINENO" 5
12834 # Note: We can test for libldap_r only after we know PTHREAD_LIBS
12835 if test "$with_ldap" = yes ; then
12837 if test "$PORTNAME" != "win32"; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
12839 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
12840 if ${ac_cv_lib_ldap_ldap_bind+:} false
; then :
12841 $as_echo_n "(cached) " >&6
12843 ac_check_lib_save_LIBS
=$LIBS
12844 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
12845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12848 /* Override any GCC internal prototype to avoid an error.
12849 Use char because int might match the return type of a GCC
12850 builtin and then its argument prototype would still apply. */
12858 return ldap_bind ();
12863 if ac_fn_c_try_link
"$LINENO"; then :
12864 ac_cv_lib_ldap_ldap_bind
=yes
12866 ac_cv_lib_ldap_ldap_bind
=no
12868 rm -f core conftest.err conftest.
$ac_objext \
12869 conftest
$ac_exeext conftest.
$ac_ext
12870 LIBS
=$ac_check_lib_save_LIBS
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
12873 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
12874 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes
; then :
12875 cat >>confdefs.h
<<_ACEOF
12876 #define HAVE_LIBLDAP 1
12879 LIBS
="-lldap $LIBS"
12882 as_fn_error $?
"library 'ldap' is required for LDAP" "$LINENO" 5
12885 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
12886 # This test is carried out against libldap.
12887 for ac_func
in ldap_initialize
12889 ac_fn_c_check_func
"$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
12890 if test "x$ac_cv_func_ldap_initialize" = xyes
; then :
12891 cat >>confdefs.h
<<_ACEOF
12892 #define HAVE_LDAP_INITIALIZE 1
12898 # The separate ldap_r library only exists in OpenLDAP < 2.5, and if we
12899 # have 2.5 or later, we shouldn't even probe for ldap_r (we might find a
12900 # library from a separate OpenLDAP installation). The most reliable
12901 # way to check that is to check for a function introduced in 2.5.
12902 ac_fn_c_check_func
"$LINENO" "ldap_verify_credentials" "ac_cv_func_ldap_verify_credentials"
12903 if test "x$ac_cv_func_ldap_verify_credentials" = xyes
; then :
12904 thread_safe_libldap
=yes
12906 thread_safe_libldap
=no
12909 if test "$thread_safe_libldap" = no
; then
12910 # Use ldap_r for FE if available, else assume ldap is thread-safe.
12911 # On some platforms ldap_r fails to link without PTHREAD_LIBS.
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap_r" >&5
12914 $as_echo_n "checking for ldap_bind in -lldap_r... " >&6; }
12915 if ${ac_cv_lib_ldap_r_ldap_bind+:} false
; then :
12916 $as_echo_n "(cached) " >&6
12918 ac_check_lib_save_LIBS
=$LIBS
12919 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12923 /* Override any GCC internal prototype to avoid an error.
12924 Use char because int might match the return type of a GCC
12925 builtin and then its argument prototype would still apply. */
12933 return ldap_bind ();
12938 if ac_fn_c_try_link
"$LINENO"; then :
12939 ac_cv_lib_ldap_r_ldap_bind
=yes
12941 ac_cv_lib_ldap_r_ldap_bind
=no
12943 rm -f core conftest.err conftest.
$ac_objext \
12944 conftest
$ac_exeext conftest.
$ac_ext
12945 LIBS
=$ac_check_lib_save_LIBS
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_bind" >&5
12948 $as_echo "$ac_cv_lib_ldap_r_ldap_bind" >&6; }
12949 if test "x$ac_cv_lib_ldap_r_ldap_bind" = xyes
; then :
12950 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
12952 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
12956 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12960 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12961 if ${ac_cv_lib_wldap32_ldap_bind+:} false
; then :
12962 $as_echo_n "(cached) " >&6
12964 ac_check_lib_save_LIBS
=$LIBS
12965 LIBS
="-lwldap32 $LIBS"
12966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12967 /* end confdefs.h. */
12969 /* Override any GCC internal prototype to avoid an error.
12970 Use char because int might match the return type of a GCC
12971 builtin and then its argument prototype would still apply. */
12979 return ldap_bind ();
12984 if ac_fn_c_try_link
"$LINENO"; then :
12985 ac_cv_lib_wldap32_ldap_bind
=yes
12987 ac_cv_lib_wldap32_ldap_bind
=no
12989 rm -f core conftest.err conftest.
$ac_objext \
12990 conftest
$ac_exeext conftest.
$ac_ext
12991 LIBS
=$ac_check_lib_save_LIBS
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
12994 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
12995 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes
; then :
12996 cat >>confdefs.h
<<_ACEOF
12997 #define HAVE_LIBWLDAP32 1
13000 LIBS
="-lwldap32 $LIBS"
13003 as_fn_error $?
"library 'wldap32' is required for LDAP" "$LINENO" 5
13006 LDAP_LIBS_FE
="-lwldap32"
13007 LDAP_LIBS_BE
="-lwldap32"
13014 # for contrib/sepgsql
13015 if test "$with_selinux" = yes; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
13017 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
13018 if ${ac_cv_lib_selinux_security_compute_create_name+:} false
; then :
13019 $as_echo_n "(cached) " >&6
13021 ac_check_lib_save_LIBS
=$LIBS
13022 LIBS
="-lselinux $LIBS"
13023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13026 /* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13032 char security_compute_create_name ();
13036 return security_compute_create_name ();
13041 if ac_fn_c_try_link
"$LINENO"; then :
13042 ac_cv_lib_selinux_security_compute_create_name
=yes
13044 ac_cv_lib_selinux_security_compute_create_name
=no
13046 rm -f core conftest.err conftest.
$ac_objext \
13047 conftest
$ac_exeext conftest.
$ac_ext
13048 LIBS
=$ac_check_lib_save_LIBS
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
13051 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
13052 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes
; then :
13053 cat >>confdefs.h
<<_ACEOF
13054 #define HAVE_LIBSELINUX 1
13057 LIBS
="-lselinux $LIBS"
13060 as_fn_error $?
"library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
13065 # for contrib/uuid-ossp
13066 if test "$with_uuid" = bsd
; then
13067 # On BSD, the UUID functions are in libc
13068 ac_fn_c_check_func
"$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
13069 if test "x$ac_cv_func_uuid_to_string" = xyes
; then :
13072 as_fn_error $?
"BSD UUID functions are not present" "$LINENO" 5
13075 elif test "$with_uuid" = e2fs
; then
13076 # On macOS, the UUID functions are in libc
13077 ac_fn_c_check_func
"$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
13078 if test "x$ac_cv_func_uuid_generate" = xyes
; then :
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
13082 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
13083 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
13084 $as_echo_n "(cached) " >&6
13086 ac_check_lib_save_LIBS
=$LIBS
13087 LIBS
="-luuid $LIBS"
13088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13091 /* Override any GCC internal prototype to avoid an error.
13092 Use char because int might match the return type of a GCC
13093 builtin and then its argument prototype would still apply. */
13097 char uuid_generate ();
13101 return uuid_generate ();
13106 if ac_fn_c_try_link
"$LINENO"; then :
13107 ac_cv_lib_uuid_uuid_generate
=yes
13109 ac_cv_lib_uuid_uuid_generate
=no
13111 rm -f core conftest.err conftest.
$ac_objext \
13112 conftest
$ac_exeext conftest.
$ac_ext
13113 LIBS
=$ac_check_lib_save_LIBS
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13116 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13117 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
13120 as_fn_error $?
"library 'uuid' is required for E2FS UUID" "$LINENO" 5
13125 elif test "$with_uuid" = ossp
; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
13127 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
13128 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false
; then :
13129 $as_echo_n "(cached) " >&6
13131 ac_check_lib_save_LIBS
=$LIBS
13132 LIBS
="-lossp-uuid $LIBS"
13133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13136 /* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13142 char uuid_export ();
13146 return uuid_export ();
13151 if ac_fn_c_try_link
"$LINENO"; then :
13152 ac_cv_lib_ossp_uuid_uuid_export
=yes
13154 ac_cv_lib_ossp_uuid_uuid_export
=no
13156 rm -f core conftest.err conftest.
$ac_objext \
13157 conftest
$ac_exeext conftest.
$ac_ext
13158 LIBS
=$ac_check_lib_save_LIBS
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
13161 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
13162 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes
; then :
13163 UUID_LIBS
="-lossp-uuid"
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
13166 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
13167 if ${ac_cv_lib_uuid_uuid_export+:} false
; then :
13168 $as_echo_n "(cached) " >&6
13170 ac_check_lib_save_LIBS
=$LIBS
13171 LIBS
="-luuid $LIBS"
13172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13175 /* Override any GCC internal prototype to avoid an error.
13176 Use char because int might match the return type of a GCC
13177 builtin and then its argument prototype would still apply. */
13181 char uuid_export ();
13185 return uuid_export ();
13190 if ac_fn_c_try_link
"$LINENO"; then :
13191 ac_cv_lib_uuid_uuid_export
=yes
13193 ac_cv_lib_uuid_uuid_export
=no
13195 rm -f core conftest.err conftest.
$ac_objext \
13196 conftest
$ac_exeext conftest.
$ac_ext
13197 LIBS
=$ac_check_lib_save_LIBS
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
13200 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
13201 if test "x$ac_cv_lib_uuid_uuid_export" = xyes
; then :
13204 as_fn_error $?
"library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13218 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13219 if ${ac_cv_header_stdbool_h+:} false
; then :
13220 $as_echo_n "(cached) " >&6
13222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13225 #include <stdbool.h>
13227 "error: bool is not defined"
13230 "error: false is not defined"
13233 "error: false is not 0"
13236 "error: true is not defined"
13239 "error: true is not 1"
13241 #ifndef __bool_true_false_are_defined
13242 "error: __bool_true_false_are_defined is not defined"
13245 struct s { _Bool s: 1; _Bool t; } s;
13247 char a[true == 1 ? 1 : -1];
13248 char b[false == 0 ? 1 : -1];
13249 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13250 char d[(bool) 0.5 == true ? 1 : -1];
13251 /* See body of main program for 'e'. */
13252 char f[(_Bool) 0.0 == false ? 1 : -1];
13254 char h[sizeof (_Bool)];
13255 char i[sizeof s.t];
13256 enum { j = false, k = true, l = false * true, m = true * 256 };
13257 /* The following fails for
13258 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13260 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13261 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13262 /* Catch a bug in an HP-UX C compiler. See
13263 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13264 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13276 /* Refer to every declared value, to avoid compiler optimizations. */
13277 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13278 + !m + !n + !o + !p + !q + !pq);
13284 if ac_fn_c_try_compile
"$LINENO"; then :
13285 ac_cv_header_stdbool_h
=yes
13287 ac_cv_header_stdbool_h
=no
13289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13292 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13293 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13294 if test "x$ac_cv_type__Bool" = xyes
; then :
13296 cat >>confdefs.h
<<_ACEOF
13297 #define HAVE__BOOL 1
13304 if test $ac_cv_header_stdbool_h = yes; then
13306 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
13311 for ac_header
in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.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
13313 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13314 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13315 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13316 cat >>confdefs.h
<<_ACEOF
13317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13325 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
13326 for ac_header
in readline
/readline.h
13328 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13329 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13330 cat >>confdefs.h
<<_ACEOF
13331 #define HAVE_READLINE_READLINE_H 1
13335 for ac_header
in readline.h
13337 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13338 if test "x$ac_cv_header_readline_h" = xyes
; then :
13339 cat >>confdefs.h
<<_ACEOF
13340 #define HAVE_READLINE_H 1
13344 as_fn_error $?
"readline header not found
13345 If you have readline already installed, see config.log for details on the
13346 failure. It is possible the compiler isn't looking in the proper directory.
13347 Use --without-readline to disable readline support." "$LINENO" 5
13356 for ac_header
in readline
/history.h
13358 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13359 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13360 cat >>confdefs.h
<<_ACEOF
13361 #define HAVE_READLINE_HISTORY_H 1
13365 for ac_header
in history.h
13367 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13368 if test "x$ac_cv_header_history_h" = xyes
; then :
13369 cat >>confdefs.h
<<_ACEOF
13370 #define HAVE_HISTORY_H 1
13374 as_fn_error $?
"history 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
13388 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
13389 # Some installations of libedit usurp /usr/include/readline/, which seems
13390 # bad practice, since in combined installations readline will have its headers
13391 # there. We might have to resort to AC_EGREP checks to make sure we found
13392 # the proper header...
13393 for ac_header
in editline
/readline.h
13395 ac_fn_c_check_header_mongrel
"$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13396 if test "x$ac_cv_header_editline_readline_h" = xyes
; then :
13397 cat >>confdefs.h
<<_ACEOF
13398 #define HAVE_EDITLINE_READLINE_H 1
13402 for ac_header
in readline.h
13404 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13405 if test "x$ac_cv_header_readline_h" = xyes
; then :
13406 cat >>confdefs.h
<<_ACEOF
13407 #define HAVE_READLINE_H 1
13411 for ac_header
in readline
/readline.h
13413 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13414 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13415 cat >>confdefs.h
<<_ACEOF
13416 #define HAVE_READLINE_READLINE_H 1
13420 as_fn_error $?
"readline header not found
13421 If you have libedit already installed, see config.log for details on the
13422 failure. It is possible the compiler isn't looking in the proper directory.
13423 Use --without-readline to disable libedit support." "$LINENO" 5
13436 # Note: in a libedit installation, history.h is sometimes a dummy, and may
13437 # not be there at all. Hence, don't complain if not found. We must check
13438 # though, since in yet other versions it is an independent header.
13439 for ac_header
in editline
/history.h
13441 ac_fn_c_check_header_mongrel
"$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
13442 if test "x$ac_cv_header_editline_history_h" = xyes
; then :
13443 cat >>confdefs.h
<<_ACEOF
13444 #define HAVE_EDITLINE_HISTORY_H 1
13448 for ac_header
in history.h
13450 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13451 if test "x$ac_cv_header_history_h" = xyes
; then :
13452 cat >>confdefs.h
<<_ACEOF
13453 #define HAVE_HISTORY_H 1
13457 for ac_header
in readline
/history.h
13459 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13460 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13461 cat >>confdefs.h
<<_ACEOF
13462 #define HAVE_READLINE_HISTORY_H 1
13479 if test "$with_zlib" = yes; then
13480 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13481 if test "x$ac_cv_header_zlib_h" = xyes
; then :
13484 as_fn_error $?
"zlib header not found
13485 If you have zlib already installed, see config.log for details on the
13486 failure. It is possible the compiler isn't looking in the proper directory.
13487 Use --without-zlib to disable zlib support." "$LINENO" 5
13493 if test -z "$LZ4"; then
13496 # Extract the first word of "$ac_prog", so it can be a program name with args.
13497 set dummy
$ac_prog; ac_word
=$2
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13499 $as_echo_n "checking for $ac_word... " >&6; }
13500 if ${ac_cv_path_LZ4+:} false
; then :
13501 $as_echo_n "(cached) " >&6
13505 ac_cv_path_LZ4
="$LZ4" # Let the user override the test with a path.
13508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13509 for as_dir
in $PATH
13512 test -z "$as_dir" && as_dir
=.
13513 for ac_exec_ext
in '' $ac_executable_extensions; do
13514 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13515 ac_cv_path_LZ4
="$as_dir/$ac_word$ac_exec_ext"
13516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13526 LZ4
=$ac_cv_path_LZ4
13527 if test -n "$LZ4"; then
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZ4" >&5
13529 $as_echo "$LZ4" >&6; }
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13532 $as_echo "no" >&6; }
13536 test -n "$LZ4" && break
13540 # Report the value of LZ4 in configure's output in all cases.
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4" >&5
13542 $as_echo_n "checking for LZ4... " >&6; }
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZ4" >&5
13544 $as_echo "$LZ4" >&6; }
13547 if test "$with_lz4" = yes; then
13548 ac_fn_c_check_header_mongrel
"$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
13549 if test "x$ac_cv_header_lz4_h" = xyes
; then :
13552 as_fn_error $?
"lz4.h header file is required for LZ4" "$LINENO" 5
13558 if test -z "$ZSTD"; then
13559 for ac_prog
in zstd
13561 # Extract the first word of "$ac_prog", so it can be a program name with args.
13562 set dummy
$ac_prog; ac_word
=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if ${ac_cv_path_ZSTD+:} false
; then :
13566 $as_echo_n "(cached) " >&6
13570 ac_cv_path_ZSTD
="$ZSTD" # Let the user override the test with a path.
13573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13574 for as_dir
in $PATH
13577 test -z "$as_dir" && as_dir
=.
13578 for ac_exec_ext
in '' $ac_executable_extensions; do
13579 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13580 ac_cv_path_ZSTD
="$as_dir/$ac_word$ac_exec_ext"
13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13591 ZSTD
=$ac_cv_path_ZSTD
13592 if test -n "$ZSTD"; then
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZSTD" >&5
13594 $as_echo "$ZSTD" >&6; }
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 $as_echo "no" >&6; }
13601 test -n "$ZSTD" && break
13605 # Report the value of ZSTD in configure's output in all cases.
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD" >&5
13607 $as_echo_n "checking for ZSTD... " >&6; }
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZSTD" >&5
13609 $as_echo "$ZSTD" >&6; }
13612 if test "$with_zstd" = yes; then
13613 ac_fn_c_check_header_mongrel
"$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
13614 if test "x$ac_cv_header_zstd_h" = xyes
; then :
13617 as_fn_error $?
"zstd.h header file is required for ZSTD" "$LINENO" 5
13623 if test "$with_gssapi" = yes ; then
13624 for ac_header
in gssapi
/gssapi.h
13626 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
13627 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
; then :
13628 cat >>confdefs.h
<<_ACEOF
13629 #define HAVE_GSSAPI_GSSAPI_H 1
13633 for ac_header
in gssapi.h
13635 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
13636 if test "x$ac_cv_header_gssapi_h" = xyes
; then :
13637 cat >>confdefs.h
<<_ACEOF
13638 #define HAVE_GSSAPI_H 1
13642 as_fn_error $?
"gssapi.h header file is required for GSSAPI" "$LINENO" 5
13651 for ac_header
in gssapi
/gssapi_ext.h
13653 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi_ext.h" "ac_cv_header_gssapi_gssapi_ext_h" "$ac_includes_default"
13654 if test "x$ac_cv_header_gssapi_gssapi_ext_h" = xyes
; then :
13655 cat >>confdefs.h
<<_ACEOF
13656 #define HAVE_GSSAPI_GSSAPI_EXT_H 1
13660 for ac_header
in gssapi_ext.h
13662 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi_ext.h" "ac_cv_header_gssapi_ext_h" "$ac_includes_default"
13663 if test "x$ac_cv_header_gssapi_ext_h" = xyes
; then :
13664 cat >>confdefs.h
<<_ACEOF
13665 #define HAVE_GSSAPI_EXT_H 1
13669 as_fn_error $?
"gssapi_ext.h header file is required for GSSAPI" "$LINENO" 5
13680 if test -z "$OPENSSL"; then
13681 for ac_prog
in openssl
13683 # Extract the first word of "$ac_prog", so it can be a program name with args.
13684 set dummy
$ac_prog; ac_word
=$2
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13686 $as_echo_n "checking for $ac_word... " >&6; }
13687 if ${ac_cv_path_OPENSSL+:} false
; then :
13688 $as_echo_n "(cached) " >&6
13692 ac_cv_path_OPENSSL
="$OPENSSL" # Let the user override the test with a path.
13695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13696 for as_dir
in $PATH
13699 test -z "$as_dir" && as_dir
=.
13700 for ac_exec_ext
in '' $ac_executable_extensions; do
13701 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13702 ac_cv_path_OPENSSL
="$as_dir/$ac_word$ac_exec_ext"
13703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13713 OPENSSL
=$ac_cv_path_OPENSSL
13714 if test -n "$OPENSSL"; then
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
13716 $as_echo "$OPENSSL" >&6; }
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719 $as_echo "no" >&6; }
13723 test -n "$OPENSSL" && break
13727 # Report the value of OPENSSL in configure's output in all cases.
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
13729 $as_echo_n "checking for OPENSSL... " >&6; }
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
13731 $as_echo "$OPENSSL" >&6; }
13734 pgac_openssl_version
="$($OPENSSL version 2> /dev/null || echo openssl not found)"
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: using openssl: $pgac_openssl_version" >&5
13736 $as_echo "$as_me: using openssl: $pgac_openssl_version" >&6;}
13737 if test "$with_ssl" = openssl
; then
13738 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
13739 if test "x$ac_cv_header_openssl_ssl_h" = xyes
; then :
13742 as_fn_error $?
"header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
13746 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
13747 if test "x$ac_cv_header_openssl_err_h" = xyes
; then :
13750 as_fn_error $?
"header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
13756 if test "$with_pam" = yes ; then
13757 for ac_header
in security
/pam_appl.h
13759 ac_fn_c_check_header_mongrel
"$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
13760 if test "x$ac_cv_header_security_pam_appl_h" = xyes
; then :
13761 cat >>confdefs.h
<<_ACEOF
13762 #define HAVE_SECURITY_PAM_APPL_H 1
13766 for ac_header
in pam
/pam_appl.h
13768 ac_fn_c_check_header_mongrel
"$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
13769 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
; then :
13770 cat >>confdefs.h
<<_ACEOF
13771 #define HAVE_PAM_PAM_APPL_H 1
13775 as_fn_error $?
"header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
13786 if test "$with_bsd_auth" = yes ; then
13787 ac_fn_c_check_header_mongrel
"$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
13788 if test "x$ac_cv_header_bsd_auth_h" = xyes
; then :
13791 as_fn_error $?
"header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
13797 if test "$with_systemd" = yes ; then
13798 ac_fn_c_check_header_mongrel
"$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
13799 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
; then :
13802 as_fn_error $?
"header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
13808 if test "$with_libxml" = yes ; then
13809 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
13810 if test "x$ac_cv_header_libxml_parser_h" = xyes
; then :
13813 as_fn_error $?
"header file <libxml/parser.h> is required for XML support" "$LINENO" 5
13819 if test "$with_libxslt" = yes ; then
13820 ac_fn_c_check_header_mongrel
"$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
13821 if test "x$ac_cv_header_libxslt_xslt_h" = xyes
; then :
13824 as_fn_error $?
"header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
13830 if test "$with_ldap" = yes ; then
13831 if test "$PORTNAME" != "win32"; then
13832 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13833 if test "x$ac_cv_header_ldap_h" = xyes
; then :
13836 as_fn_error $?
"header file <ldap.h> is required for LDAP" "$LINENO" 5
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
13841 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
13842 if ${pgac_cv_ldap_safe+:} false
; then :
13843 $as_echo_n "(cached) " >&6
13845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13848 #if !defined(LDAP_VENDOR_VERSION) || \
13849 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
13850 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
13861 if ac_fn_c_try_compile
"$LINENO"; then :
13862 pgac_cv_ldap_safe
=yes
13864 pgac_cv_ldap_safe
=no
13866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
13869 $as_echo "$pgac_cv_ldap_safe" >&6; }
13871 if test "$pgac_cv_ldap_safe" != yes; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13873 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13874 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13875 *** also uses LDAP will crash on exit." >&5
13876 $as_echo "$as_me: WARNING:
13877 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13878 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13879 *** also uses LDAP will crash on exit." >&2;}
13882 ac_fn_c_check_header_compile
"$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
13883 #include <windows.h>
13886 if test "x$ac_cv_header_winldap_h" = xyes
; then :
13889 as_fn_error $?
"header file <winldap.h> is required for LDAP" "$LINENO" 5
13896 if test "$with_bonjour" = yes ; then
13897 ac_fn_c_check_header_mongrel
"$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
13898 if test "x$ac_cv_header_dns_sd_h" = xyes
; then :
13901 as_fn_error $?
"header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
13907 # for contrib/uuid-ossp
13908 if test "$with_uuid" = bsd
; then
13909 for ac_header
in uuid.h
13911 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13912 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13913 cat >>confdefs.h
<<_ACEOF
13914 #define HAVE_UUID_H 1
13916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h. */
13921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13922 $EGREP "uuid_to_string" >/dev
/null
2>&1; then :
13925 as_fn_error $?
"header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
13930 as_fn_error $?
"header file <uuid.h> is required for BSD UUID" "$LINENO" 5
13935 elif test "$with_uuid" = e2fs
; then
13936 for ac_header
in uuid
/uuid.h
13938 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13939 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
13940 cat >>confdefs.h
<<_ACEOF
13941 #define HAVE_UUID_UUID_H 1
13943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13945 #include <uuid/uuid.h>
13948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13949 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
13952 as_fn_error $?
"header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
13957 for ac_header
in uuid.h
13959 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13960 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13961 cat >>confdefs.h
<<_ACEOF
13962 #define HAVE_UUID_H 1
13964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13965 /* end confdefs.h. */
13969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13970 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
13973 as_fn_error $?
"header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
13978 as_fn_error $?
"header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
13987 elif test "$with_uuid" = ossp
; then
13988 for ac_header
in ossp
/uuid.h
13990 ac_fn_c_check_header_mongrel
"$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
13991 if test "x$ac_cv_header_ossp_uuid_h" = xyes
; then :
13992 cat >>confdefs.h
<<_ACEOF
13993 #define HAVE_OSSP_UUID_H 1
13995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13997 #include <ossp/uuid.h>
14000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14001 $EGREP "uuid_export" >/dev
/null
2>&1; then :
14004 as_fn_error $?
"header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
14009 for ac_header
in uuid.h
14011 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
14012 if test "x$ac_cv_header_uuid_h" = xyes
; then :
14013 cat >>confdefs.h
<<_ACEOF
14014 #define HAVE_UUID_H 1
14016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14022 $EGREP "uuid_export" >/dev
/null
2>&1; then :
14025 as_fn_error $?
"header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
14030 as_fn_error $?
"header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
14041 if test "$PORTNAME" = "win32" ; then
14042 for ac_header
in crtdefs.h
14044 ac_fn_c_check_header_mongrel
"$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
14045 if test "x$ac_cv_header_crtdefs_h" = xyes
; then :
14046 cat >>confdefs.h
<<_ACEOF
14047 #define HAVE_CRTDEFS_H 1
14057 ## Types, structures, compiler characteristics
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14061 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14062 if ${ac_cv_c_bigendian+:} false
; then :
14063 $as_echo_n "(cached) " >&6
14065 ac_cv_c_bigendian
=unknown
14066 # See if we're dealing with a universal compiler.
14067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h. */
14069 #ifndef __APPLE_CC__
14070 not a universal capable compiler
14075 if ac_fn_c_try_compile
"$LINENO"; then :
14077 # Check for potential -arch flags. It is not universal unless
14078 # there are at least two -arch flags with different values.
14081 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14082 if test -n "$ac_prev"; then
14084 i?
86 | x86_64 | ppc | ppc64
)
14085 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
14088 ac_cv_c_bigendian
=universal
14094 elif test "x$ac_word" = "x-arch"; then
14099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14100 if test $ac_cv_c_bigendian = unknown
; then
14101 # See if sys/param.h defines the BYTE_ORDER macro.
14102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14104 #include <sys/types.h>
14105 #include <sys/param.h>
14110 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14111 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14113 bogus endian macros
14120 if ac_fn_c_try_compile
"$LINENO"; then :
14121 # It does; now see whether it defined to BIG_ENDIAN or not.
14122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14124 #include <sys/types.h>
14125 #include <sys/param.h>
14130 #if BYTE_ORDER != BIG_ENDIAN
14138 if ac_fn_c_try_compile
"$LINENO"; then :
14139 ac_cv_c_bigendian
=yes
14141 ac_cv_c_bigendian
=no
14143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14147 if test $ac_cv_c_bigendian = unknown
; then
14148 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151 #include <limits.h>
14156 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14157 bogus endian macros
14164 if ac_fn_c_try_compile
"$LINENO"; then :
14165 # It does; now see whether it defined to _BIG_ENDIAN or not.
14166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14168 #include <limits.h>
14173 #ifndef _BIG_ENDIAN
14181 if ac_fn_c_try_compile
"$LINENO"; then :
14182 ac_cv_c_bigendian
=yes
14184 ac_cv_c_bigendian
=no
14186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14190 if test $ac_cv_c_bigendian = unknown
; then
14191 # Compile a test program.
14192 if test "$cross_compiling" = yes; then :
14193 # Try to guess by grepping values from an object file.
14194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196 short int ascii_mm[] =
14197 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14198 short int ascii_ii[] =
14199 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14200 int use_ascii (int i) {
14201 return ascii_mm[i] + ascii_ii[i];
14203 short int ebcdic_ii[] =
14204 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14205 short int ebcdic_mm[] =
14206 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14207 int use_ebcdic (int i) {
14208 return ebcdic_mm[i] + ebcdic_ii[i];
14215 return use_ascii (foo) == use_ebcdic (foo);
14220 if ac_fn_c_try_compile
"$LINENO"; then :
14221 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14222 ac_cv_c_bigendian
=yes
14224 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14225 if test "$ac_cv_c_bigendian" = unknown
; then
14226 ac_cv_c_bigendian
=no
14228 # finding both strings is unlikely to happen, but who knows?
14229 ac_cv_c_bigendian
=unknown
14233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h. */
14237 $ac_includes_default
14242 /* Are we little or big endian? From Harbison&Steele. */
14246 char c[sizeof (long int)];
14249 return u.c[sizeof (long int) - 1] == 1;
14255 if ac_fn_c_try_run
"$LINENO"; then :
14256 ac_cv_c_bigendian
=no
14258 ac_cv_c_bigendian
=yes
14260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14261 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14267 $as_echo "$ac_cv_c_bigendian" >&6; }
14268 case $ac_cv_c_bigendian in #(
14270 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14276 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14280 as_fn_error $?
"unknown endianness
14281 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14285 $as_echo_n "checking for inline... " >&6; }
14286 if ${ac_cv_c_inline+:} false
; then :
14287 $as_echo_n "(cached) " >&6
14290 for ac_kw
in inline __inline__ __inline
; do
14291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14293 #ifndef __cplusplus
14295 static $ac_kw foo_t static_foo () {return 0; }
14296 $ac_kw foo_t foo () {return 0; }
14300 if ac_fn_c_try_compile
"$LINENO"; then :
14301 ac_cv_c_inline
=$ac_kw
14303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14304 test "$ac_cv_c_inline" != no
&& break
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14309 $as_echo "$ac_cv_c_inline" >&6; }
14311 case $ac_cv_c_inline in
14314 case $ac_cv_c_inline in
14316 *) ac_val
=$ac_cv_c_inline;;
14318 cat >>confdefs.h
<<_ACEOF
14319 #ifndef __cplusplus
14320 #define inline $ac_val
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
14327 $as_echo_n "checking for printf format archetype... " >&6; }
14328 if ${pgac_cv_printf_archetype+:} false
; then :
14329 $as_echo_n "(cached) " >&6
14331 pgac_cv_printf_archetype
=gnu_printf
14332 ac_save_c_werror_flag
=$ac_c_werror_flag
14333 ac_c_werror_flag
=yes
14334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14336 extern void pgac_write(int ignore, const char *fmt,...)
14337 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14341 pgac_write(0, "error %s: %m", "foo");
14346 if ac_fn_c_try_compile
"$LINENO"; then :
14347 ac_archetype_ok
=yes
14351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14352 ac_c_werror_flag
=$ac_save_c_werror_flag
14354 if [ "$ac_archetype_ok" = no
]; then
14355 pgac_cv_printf_archetype
=__syslog__
14356 ac_save_c_werror_flag
=$ac_c_werror_flag
14357 ac_c_werror_flag
=yes
14358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14360 extern void pgac_write(int ignore, const char *fmt,...)
14361 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14365 pgac_write(0, "error %s: %m", "foo");
14370 if ac_fn_c_try_compile
"$LINENO"; then :
14371 ac_archetype_ok
=yes
14375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14376 ac_c_werror_flag
=$ac_save_c_werror_flag
14378 if [ "$ac_archetype_ok" = no
]; then
14379 pgac_cv_printf_archetype
=printf
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
14384 $as_echo "$pgac_cv_printf_archetype" >&6; }
14386 cat >>confdefs.h
<<_ACEOF
14387 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
14392 $as_echo_n "checking for _Static_assert... " >&6; }
14393 if ${pgac_cv__static_assert+:} false
; then :
14394 $as_echo_n "(cached) " >&6
14396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14402 ({ _Static_assert(1, "foo"); })
14407 if ac_fn_c_try_link
"$LINENO"; then :
14408 pgac_cv__static_assert
=yes
14410 pgac_cv__static_assert
=no
14412 rm -f core conftest.err conftest.
$ac_objext \
14413 conftest
$ac_exeext conftest.
$ac_ext
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
14416 $as_echo "$pgac_cv__static_assert" >&6; }
14417 if test x
"$pgac_cv__static_assert" = xyes
; then
14419 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
14423 $as_echo_n "checking for typeof... " >&6; }
14424 if ${pgac_cv_c_typeof+:} false
; then :
14425 $as_echo_n "(cached) " >&6
14427 pgac_cv_c_typeof
=no
14428 for pgac_kw
in typeof __typeof__ decltype
; do
14429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14443 if ac_fn_c_try_compile
"$LINENO"; then :
14444 pgac_cv_c_typeof
=$pgac_kw
14446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14447 test "$pgac_cv_c_typeof" != no
&& break
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
14451 $as_echo "$pgac_cv_c_typeof" >&6; }
14452 if test "$pgac_cv_c_typeof" != no
; then
14454 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
14456 if test "$pgac_cv_c_typeof" != typeof
; then
14458 cat >>confdefs.h
<<_ACEOF
14459 #define typeof $pgac_cv_c_typeof
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
14465 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
14466 if ${pgac_cv__types_compatible+:} false
; then :
14467 $as_echo_n "(cached) " >&6
14469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14475 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
14480 if ac_fn_c_try_compile
"$LINENO"; then :
14481 pgac_cv__types_compatible
=yes
14483 pgac_cv__types_compatible
=no
14485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
14488 $as_echo "$pgac_cv__types_compatible" >&6; }
14489 if test x
"$pgac_cv__types_compatible" = xyes
; then
14491 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
14495 $as_echo_n "checking for __builtin_constant_p... " >&6; }
14496 if ${pgac_cv__builtin_constant_p+:} false
; then :
14497 $as_echo_n "(cached) " >&6
14499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h. */
14502 static int y[__builtin_constant_p(x) ? x : 1];
14503 static int z[__builtin_constant_p("string literal") ? 1 : x];
14507 if ac_fn_c_try_compile
"$LINENO"; then :
14508 pgac_cv__builtin_constant_p
=yes
14510 pgac_cv__builtin_constant_p
=no
14512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
14515 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
14516 if test x
"$pgac_cv__builtin_constant_p" = xyes
; then
14518 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
14522 $as_echo_n "checking for __builtin_unreachable... " >&6; }
14523 if ${pgac_cv__builtin_unreachable+:} false
; then :
14524 $as_echo_n "(cached) " >&6
14526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14532 __builtin_unreachable();
14537 if ac_fn_c_try_link
"$LINENO"; then :
14538 pgac_cv__builtin_unreachable
=yes
14540 pgac_cv__builtin_unreachable
=no
14542 rm -f core conftest.err conftest.
$ac_objext \
14543 conftest
$ac_exeext conftest.
$ac_ext
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
14546 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
14547 if test x
"$pgac_cv__builtin_unreachable" = xyes
; then
14549 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
14553 $as_echo_n "checking for computed goto support... " >&6; }
14554 if ${pgac_cv_computed_goto+:} false
; then :
14555 $as_echo_n "(cached) " >&6
14557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14563 void *labeladdrs[] = {&&my_label};
14564 goto *labeladdrs[0];
14572 if ac_fn_c_try_compile
"$LINENO"; then :
14573 pgac_cv_computed_goto
=yes
14575 pgac_cv_computed_goto
=no
14577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
14580 $as_echo "$pgac_cv_computed_goto" >&6; }
14581 if test x
"$pgac_cv_computed_goto" = xyes
; then
14583 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
14586 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
14590 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
14592 cat >>confdefs.h
<<_ACEOF
14593 #define HAVE_STRUCT_TM_TM_ZONE 1
14600 ac_fn_c_check_type
"$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
14601 #include <sys/ipc.h>
14602 #include <sys/sem.h>
14605 if test "x$ac_cv_type_union_semun" = xyes
; then :
14607 cat >>confdefs.h
<<_ACEOF
14608 #define HAVE_UNION_SEMUN 1
14614 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/socket.h>
14616 if test "x$ac_cv_type_socklen_t" = xyes
; then :
14618 cat >>confdefs.h
<<_ACEOF
14619 #define HAVE_SOCKLEN_T 1
14625 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14626 #include <sys/socket.h>
14629 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
14631 cat >>confdefs.h
<<_ACEOF
14632 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
14640 $as_echo_n "checking for locale_t... " >&6; }
14641 if ${pgac_cv_type_locale_t+:} false
; then :
14642 $as_echo_n "(cached) " >&6
14644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14646 #include <locale.h>
14656 if ac_fn_c_try_compile
"$LINENO"; then :
14657 pgac_cv_type_locale_t
=yes
14659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14661 #include <xlocale.h>
14671 if ac_fn_c_try_compile
"$LINENO"; then :
14672 pgac_cv_type_locale_t
='yes (in xlocale.h)'
14674 pgac_cv_type_locale_t
=no
14676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
14681 $as_echo "$pgac_cv_type_locale_t" >&6; }
14682 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
14684 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
14688 # MSVC doesn't cope well with defining restrict to __restrict, the
14689 # spelling it understands, because it conflicts with
14690 # __declspec(restrict). Therefore we define pg_restrict to the
14691 # appropriate definition, which presumably won't conflict.
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14693 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14694 if ${ac_cv_c_restrict+:} false
; then :
14695 $as_echo_n "(cached) " >&6
14697 ac_cv_c_restrict
=no
14698 # The order here caters to the fact that C++ does not require restrict.
14699 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14702 typedef int * int_ptr;
14703 int foo (int_ptr $ac_kw ip) {
14710 int * $ac_kw t = s;
14717 if ac_fn_c_try_compile
"$LINENO"; then :
14718 ac_cv_c_restrict
=$ac_kw
14720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14721 test "$ac_cv_c_restrict" != no
&& break
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14726 $as_echo "$ac_cv_c_restrict" >&6; }
14728 case $ac_cv_c_restrict in
14730 no
) $as_echo "#define restrict /**/" >>confdefs.h
14732 *) cat >>confdefs.h
<<_ACEOF
14733 #define restrict $ac_cv_c_restrict
14738 if test "$ac_cv_c_restrict" = "no"; then
14741 pg_restrict
="$ac_cv_c_restrict"
14744 cat >>confdefs.h
<<_ACEOF
14745 #define pg_restrict $pg_restrict
14749 ac_fn_c_check_type
"$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
14750 #include <getopt.h>
14753 if test "x$ac_cv_type_struct_option" = xyes
; then :
14755 cat >>confdefs.h
<<_ACEOF
14756 #define HAVE_STRUCT_OPTION 1
14765 # On x86_64, check if we can compile a popcntq instruction
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports x86_64 popcntq" >&5
14767 $as_echo_n "checking whether assembler supports x86_64 popcntq... " >&6; }
14768 if ${pgac_cv_have_x86_64_popcntq+:} false
; then :
14769 $as_echo_n "(cached) " >&6
14771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14777 long long x = 1; long long r;
14778 __asm__ __volatile__ (" popcntq %1,%0\n" : "=q"(r) : "rm"(x));
14783 if ac_fn_c_try_compile
"$LINENO"; then :
14784 pgac_cv_have_x86_64_popcntq
=yes
14786 pgac_cv_have_x86_64_popcntq
=no
14788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_x86_64_popcntq" >&5
14791 $as_echo "$pgac_cv_have_x86_64_popcntq" >&6; }
14792 if test x
"$pgac_cv_have_x86_64_popcntq" = xyes
; then
14794 $as_echo "#define HAVE_X86_64_POPCNTQ 1" >>confdefs.h
14799 # On PPC, check if compiler accepts "i"(x) when __builtin_constant_p(x).
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance" >&5
14801 $as_echo_n "checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance... " >&6; }
14802 if ${pgac_cv_have_i_constraint__builtin_constant_p+:} false
; then :
14803 $as_echo_n "(cached) " >&6
14805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14806 /* end confdefs.h. */
14808 addi(int ra, int si)
14811 if (__builtin_constant_p(si))
14812 __asm__ __volatile__(
14813 " addi %0,%1,%2\n" : "=r"(res) : "b"(ra), "i"(si));
14816 int test_adds(int x) { return addi(3, x) + addi(x, 5); }
14825 if ac_fn_c_try_compile
"$LINENO"; then :
14826 pgac_cv_have_i_constraint__builtin_constant_p
=yes
14828 pgac_cv_have_i_constraint__builtin_constant_p
=no
14830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_i_constraint__builtin_constant_p" >&5
14833 $as_echo "$pgac_cv_have_i_constraint__builtin_constant_p" >&6; }
14834 if test x
"$pgac_cv_have_i_constraint__builtin_constant_p" = xyes
; then
14836 $as_echo "#define HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P 1" >>confdefs.h
14842 # Check largefile support. You might think this is a system service not a
14843 # compiler characteristic, but you'd be wrong. We must check this before
14844 # probing existence of related functions such as fseeko, since the largefile
14845 # defines can affect what is generated for that.
14846 if test "$PORTNAME" != "win32"; then
14847 # Check whether --enable-largefile was given.
14848 if test "${enable_largefile+set}" = set; then :
14849 enableval
=$enable_largefile;
14852 if test "$enable_largefile" != no
; then
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14855 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14856 if ${ac_cv_sys_largefile_CC+:} false
; then :
14857 $as_echo_n "(cached) " >&6
14859 ac_cv_sys_largefile_CC
=no
14860 if test "$GCC" != yes; then
14863 # IRIX 6.2 and later do not support large files by default,
14864 # so use the C compiler's -n32 option if that helps.
14865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14867 #include <sys/types.h>
14868 /* Check that off_t can represent 2**63 - 1 correctly.
14869 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14870 since some C++ compilers masquerading as C compilers
14871 incorrectly reject 9223372036854775807. */
14872 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14873 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14874 && LARGE_OFF_T % 2147483647 == 1)
14884 if ac_fn_c_try_compile
"$LINENO"; then :
14887 rm -f core conftest.err conftest.
$ac_objext
14889 if ac_fn_c_try_compile
"$LINENO"; then :
14890 ac_cv_sys_largefile_CC
=' -n32'; break
14892 rm -f core conftest.err conftest.
$ac_objext
14896 rm -f conftest.
$ac_ext
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14900 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14901 if test "$ac_cv_sys_largefile_CC" != no
; then
14902 CC
=$CC$ac_cv_sys_largefile_CC
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14906 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14907 if ${ac_cv_sys_file_offset_bits+:} false
; then :
14908 $as_echo_n "(cached) " >&6
14911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14913 #include <sys/types.h>
14914 /* Check that off_t can represent 2**63 - 1 correctly.
14915 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14916 since some C++ compilers masquerading as C compilers
14917 incorrectly reject 9223372036854775807. */
14918 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14920 && LARGE_OFF_T % 2147483647 == 1)
14930 if ac_fn_c_try_compile
"$LINENO"; then :
14931 ac_cv_sys_file_offset_bits
=no
; break
14933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14936 #define _FILE_OFFSET_BITS 64
14937 #include <sys/types.h>
14938 /* Check that off_t can represent 2**63 - 1 correctly.
14939 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14940 since some C++ compilers masquerading as C compilers
14941 incorrectly reject 9223372036854775807. */
14942 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14943 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14944 && LARGE_OFF_T % 2147483647 == 1)
14954 if ac_fn_c_try_compile
"$LINENO"; then :
14955 ac_cv_sys_file_offset_bits
=64; break
14957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14958 ac_cv_sys_file_offset_bits
=unknown
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14963 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14964 case $ac_cv_sys_file_offset_bits in #(
14967 cat >>confdefs.h
<<_ACEOF
14968 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14973 if test $ac_cv_sys_file_offset_bits = unknown
; then
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14975 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14976 if ${ac_cv_sys_large_files+:} false
; then :
14977 $as_echo_n "(cached) " >&6
14980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h. */
14982 #include <sys/types.h>
14983 /* Check that off_t can represent 2**63 - 1 correctly.
14984 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14985 since some C++ compilers masquerading as C compilers
14986 incorrectly reject 9223372036854775807. */
14987 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14988 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14989 && LARGE_OFF_T % 2147483647 == 1)
14999 if ac_fn_c_try_compile
"$LINENO"; then :
15000 ac_cv_sys_large_files
=no
; break
15002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15005 #define _LARGE_FILES 1
15006 #include <sys/types.h>
15007 /* Check that off_t can represent 2**63 - 1 correctly.
15008 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15009 since some C++ compilers masquerading as C compilers
15010 incorrectly reject 9223372036854775807. */
15011 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15013 && LARGE_OFF_T % 2147483647 == 1)
15023 if ac_fn_c_try_compile
"$LINENO"; then :
15024 ac_cv_sys_large_files
=1; break
15026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15027 ac_cv_sys_large_files
=unknown
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15032 $as_echo "$ac_cv_sys_large_files" >&6; }
15033 case $ac_cv_sys_large_files in #(
15036 cat >>confdefs.h
<<_ACEOF
15037 #define _LARGE_FILES $ac_cv_sys_large_files
15050 # The cast to long int works around a bug in the HP C Compiler
15051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15053 # This bug is HP SR number 8606223364.
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15055 $as_echo_n "checking size of off_t... " >&6; }
15056 if ${ac_cv_sizeof_off_t+:} false
; then :
15057 $as_echo_n "(cached) " >&6
15059 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15062 if test "$ac_cv_type_off_t" = yes; then
15063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15065 as_fn_error
77 "cannot compute sizeof (off_t)
15066 See \`config.log' for more details" "$LINENO" 5; }
15068 ac_cv_sizeof_off_t
=0
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15074 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15078 cat >>confdefs.h
<<_ACEOF
15079 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15084 # If we don't have largefile support, can't handle segment size >= 2GB.
15085 if test "$ac_cv_sizeof_off_t" -lt 8; then
15086 if expr $RELSEG_SIZE '*' $blocksize '>=' 2 '*' 1024 '*' 1024; then
15087 as_fn_error $?
"Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
15091 # The cast to long int works around a bug in the HP C Compiler
15092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15094 # This bug is HP SR number 8606223364.
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
15096 $as_echo_n "checking size of bool... " >&6; }
15097 if ${ac_cv_sizeof_bool+:} false
; then :
15098 $as_echo_n "(cached) " >&6
15100 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
15101 #include <stdbool.h>
15106 if test "$ac_cv_type_bool" = yes; then
15107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15109 as_fn_error
77 "cannot compute sizeof (bool)
15110 See \`config.log' for more details" "$LINENO" 5; }
15112 ac_cv_sizeof_bool
=0
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
15118 $as_echo "$ac_cv_sizeof_bool" >&6; }
15122 cat >>confdefs.h
<<_ACEOF
15123 #define SIZEOF_BOOL $ac_cv_sizeof_bool
15128 if test "$ac_cv_header_stdbool_h" = yes -a "$ac_cv_sizeof_bool" = 1; then
15130 $as_echo "#define PG_USE_STDBOOL 1" >>confdefs.h
15136 ## Functions, global variables
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
15140 $as_echo_n "checking for int timezone... " >&6; }
15141 if ${pgac_cv_var_int_timezone+:} false
; then :
15142 $as_echo_n "(cached) " >&6
15144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15152 res = timezone / 60;
15154 res = _timezone / 60;
15160 if ac_fn_c_try_link
"$LINENO"; then :
15161 pgac_cv_var_int_timezone
=yes
15163 pgac_cv_var_int_timezone
=no
15165 rm -f core conftest.err conftest.
$ac_objext \
15166 conftest
$ac_exeext conftest.
$ac_ext
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
15169 $as_echo "$pgac_cv_var_int_timezone" >&6; }
15170 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
15172 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
15176 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
15177 if ${pgac_cv_func_wcstombs_l+:} false
; then :
15178 $as_echo_n "(cached) " >&6
15180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h. */
15182 #include <stdlib.h>
15183 #include <locale.h>
15194 if ac_fn_c_try_compile
"$LINENO"; then :
15195 pgac_cv_func_wcstombs_l
='yes'
15197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15198 /* end confdefs.h. */
15199 #include <stdlib.h>
15200 #include <locale.h>
15201 #include <xlocale.h>
15212 if ac_fn_c_try_compile
"$LINENO"; then :
15213 pgac_cv_func_wcstombs_l
='yes (in xlocale.h)'
15215 pgac_cv_func_wcstombs_l
='no'
15217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
15222 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
15223 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
15225 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
15229 # Some versions of libedit contain strlcpy(), setproctitle(), and other
15230 # symbols that that library has no business exposing to the world. Pending
15231 # acquisition of a clue by those developers, ignore libedit (including its
15232 # possible alias of libreadline) while checking for everything else.
15233 LIBS_including_readline
="$LIBS"
15234 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
15236 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
15238 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15239 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15240 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15241 cat >>confdefs.h
<<_ACEOF
15242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15249 # These typically are compiler builtins, for which AC_CHECK_FUNCS fails.
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
15251 $as_echo_n "checking for __builtin_bswap16... " >&6; }
15252 if ${pgac_cv__builtin_bswap16+:} false
; then :
15253 $as_echo_n "(cached) " >&6
15255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15259 call__builtin_bswap16(int x)
15261 return __builtin_bswap16(x);
15271 if ac_fn_c_try_link
"$LINENO"; then :
15272 pgac_cv__builtin_bswap16
=yes
15274 pgac_cv__builtin_bswap16
=no
15276 rm -f core conftest.err conftest.
$ac_objext \
15277 conftest
$ac_exeext conftest.
$ac_ext
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
15280 $as_echo "$pgac_cv__builtin_bswap16" >&6; }
15281 if test x
"${pgac_cv__builtin_bswap16}" = xyes
; then
15283 cat >>confdefs.h
<<_ACEOF
15284 #define HAVE__BUILTIN_BSWAP16 1
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
15289 $as_echo_n "checking for __builtin_bswap32... " >&6; }
15290 if ${pgac_cv__builtin_bswap32+:} false
; then :
15291 $as_echo_n "(cached) " >&6
15293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15297 call__builtin_bswap32(int x)
15299 return __builtin_bswap32(x);
15309 if ac_fn_c_try_link
"$LINENO"; then :
15310 pgac_cv__builtin_bswap32
=yes
15312 pgac_cv__builtin_bswap32
=no
15314 rm -f core conftest.err conftest.
$ac_objext \
15315 conftest
$ac_exeext conftest.
$ac_ext
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
15318 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
15319 if test x
"${pgac_cv__builtin_bswap32}" = xyes
; then
15321 cat >>confdefs.h
<<_ACEOF
15322 #define HAVE__BUILTIN_BSWAP32 1
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
15327 $as_echo_n "checking for __builtin_bswap64... " >&6; }
15328 if ${pgac_cv__builtin_bswap64+:} false
; then :
15329 $as_echo_n "(cached) " >&6
15331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15332 /* end confdefs.h. */
15335 call__builtin_bswap64(long int x)
15337 return __builtin_bswap64(x);
15347 if ac_fn_c_try_link
"$LINENO"; then :
15348 pgac_cv__builtin_bswap64
=yes
15350 pgac_cv__builtin_bswap64
=no
15352 rm -f core conftest.err conftest.
$ac_objext \
15353 conftest
$ac_exeext conftest.
$ac_ext
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
15356 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
15357 if test x
"${pgac_cv__builtin_bswap64}" = xyes
; then
15359 cat >>confdefs.h
<<_ACEOF
15360 #define HAVE__BUILTIN_BSWAP64 1
15364 # We assume that we needn't test all widths of these explicitly:
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
15366 $as_echo_n "checking for __builtin_clz... " >&6; }
15367 if ${pgac_cv__builtin_clz+:} false
; then :
15368 $as_echo_n "(cached) " >&6
15370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15374 call__builtin_clz(unsigned int x)
15376 return __builtin_clz(x);
15386 if ac_fn_c_try_link
"$LINENO"; then :
15387 pgac_cv__builtin_clz
=yes
15389 pgac_cv__builtin_clz
=no
15391 rm -f core conftest.err conftest.
$ac_objext \
15392 conftest
$ac_exeext conftest.
$ac_ext
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_clz" >&5
15395 $as_echo "$pgac_cv__builtin_clz" >&6; }
15396 if test x
"${pgac_cv__builtin_clz}" = xyes
; then
15398 cat >>confdefs.h
<<_ACEOF
15399 #define HAVE__BUILTIN_CLZ 1
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
15404 $as_echo_n "checking for __builtin_ctz... " >&6; }
15405 if ${pgac_cv__builtin_ctz+:} false
; then :
15406 $as_echo_n "(cached) " >&6
15408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15412 call__builtin_ctz(unsigned int x)
15414 return __builtin_ctz(x);
15424 if ac_fn_c_try_link
"$LINENO"; then :
15425 pgac_cv__builtin_ctz
=yes
15427 pgac_cv__builtin_ctz
=no
15429 rm -f core conftest.err conftest.
$ac_objext \
15430 conftest
$ac_exeext conftest.
$ac_ext
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_ctz" >&5
15433 $as_echo "$pgac_cv__builtin_ctz" >&6; }
15434 if test x
"${pgac_cv__builtin_ctz}" = xyes
; then
15436 cat >>confdefs.h
<<_ACEOF
15437 #define HAVE__BUILTIN_CTZ 1
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5
15442 $as_echo_n "checking for __builtin_popcount... " >&6; }
15443 if ${pgac_cv__builtin_popcount+:} false
; then :
15444 $as_echo_n "(cached) " >&6
15446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15450 call__builtin_popcount(unsigned int x)
15452 return __builtin_popcount(x);
15462 if ac_fn_c_try_link
"$LINENO"; then :
15463 pgac_cv__builtin_popcount
=yes
15465 pgac_cv__builtin_popcount
=no
15467 rm -f core conftest.err conftest.
$ac_objext \
15468 conftest
$ac_exeext conftest.
$ac_ext
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_popcount" >&5
15471 $as_echo "$pgac_cv__builtin_popcount" >&6; }
15472 if test x
"${pgac_cv__builtin_popcount}" = xyes
; then
15474 cat >>confdefs.h
<<_ACEOF
15475 #define HAVE__BUILTIN_POPCOUNT 1
15479 # __builtin_frame_address may draw a diagnostic for non-constant argument,
15480 # so it needs a different test function.
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_frame_address" >&5
15482 $as_echo_n "checking for __builtin_frame_address... " >&6; }
15483 if ${pgac_cv__builtin_frame_address+:} false
; then :
15484 $as_echo_n "(cached) " >&6
15486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15490 call__builtin_frame_address(void)
15492 return __builtin_frame_address(0);
15502 if ac_fn_c_try_link
"$LINENO"; then :
15503 pgac_cv__builtin_frame_address
=yes
15505 pgac_cv__builtin_frame_address
=no
15507 rm -f core conftest.err conftest.
$ac_objext \
15508 conftest
$ac_exeext conftest.
$ac_ext
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_frame_address" >&5
15511 $as_echo "$pgac_cv__builtin_frame_address" >&6; }
15512 if test x
"${pgac_cv__builtin_frame_address}" = xyes
; then
15514 cat >>confdefs.h
<<_ACEOF
15515 #define HAVE__BUILTIN_FRAME_ADDRESS 1
15520 # We require 64-bit fseeko() to be available, but run this check anyway
15521 # in case it finds that _LARGEFILE_SOURCE has to be #define'd for that.
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15523 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15524 if ${ac_cv_sys_largefile_source+:} false
; then :
15525 $as_echo_n "(cached) " >&6
15528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15530 #include <sys/types.h> /* for off_t */
15535 int (*fp) (FILE *, off_t, int) = fseeko;
15536 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15541 if ac_fn_c_try_link
"$LINENO"; then :
15542 ac_cv_sys_largefile_source
=no
; break
15544 rm -f core conftest.err conftest.
$ac_objext \
15545 conftest
$ac_exeext conftest.
$ac_ext
15546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15548 #define _LARGEFILE_SOURCE 1
15549 #include <sys/types.h> /* for off_t */
15554 int (*fp) (FILE *, off_t, int) = fseeko;
15555 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15560 if ac_fn_c_try_link
"$LINENO"; then :
15561 ac_cv_sys_largefile_source
=1; break
15563 rm -f core conftest.err conftest.
$ac_objext \
15564 conftest
$ac_exeext conftest.
$ac_ext
15565 ac_cv_sys_largefile_source
=unknown
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15570 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15571 case $ac_cv_sys_largefile_source in #(
15574 cat >>confdefs.h
<<_ACEOF
15575 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15581 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15582 # in glibc 2.1.3, but that breaks too many other things.
15583 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15584 if test $ac_cv_sys_largefile_source != unknown
; then
15586 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15591 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
15592 # by calling it, 2009-04-02
15593 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
15594 # The Clang compiler raises a warning for an undeclared identifier that matches
15595 # a compiler builtin function. All extant Clang versions are affected, as of
15596 # Clang 3.6.0. Test a builtin known to every version. This problem affects the
15597 # C and Objective C languages, but Clang does report an error under C++ and
15600 # Passing -fno-builtin to the compiler would suppress this problem. That
15601 # strategy would have the advantage of being insensitive to stray warnings, but
15602 # it would make tests less realistic.
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
15604 $as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; }
15605 if ${ac_cv_c_decl_report+:} false
; then :
15606 $as_echo_n "(cached) " >&6
15608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15609 /* end confdefs.h. */
15619 if ac_fn_c_try_compile
"$LINENO"; then :
15620 if test -s conftest.err
; then :
15621 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
15622 # valid AC_CHECK_DECL input. No library function is consistently available
15623 # on freestanding implementations, so test against a dummy declaration.
15624 # Include always-available headers on the off chance that they somehow
15626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h. */
15629 #include <limits.h>
15630 #include <stdarg.h>
15631 #include <stddef.h>
15632 extern void ac_decl (int, char *);
15637 (void) ac_decl ((int) 0, (char *) 0);
15647 if ac_fn_c_try_compile
"$LINENO"; then :
15648 if test -s conftest.err
; then :
15649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15651 as_fn_error $?
"cannot detect from compiler exit status or warnings
15652 See \`config.log' for more details" "$LINENO" 5; }
15654 ac_cv_c_decl_report
=warning
15657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15659 as_fn_error $?
"cannot compile a simple declaration test
15660 See \`config.log' for more details" "$LINENO" 5; }
15662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15666 as_fn_error $?
"compiler does not report undeclared identifiers
15667 See \`config.log' for more details" "$LINENO" 5; }
15670 ac_cv_c_decl_report
=error
15672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
15675 $as_echo "$ac_cv_c_decl_report" >&6; }
15677 case $ac_cv_c_decl_report in
15678 warning
) ac_c_decl_warn_flag
=yes ;;
15679 *) ac_c_decl_warn_flag
= ;;
15682 if test "$PORTNAME" != "solaris"; then :
15684 for ac_func
in posix_fadvise
15686 ac_fn_c_check_func
"$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
15687 if test "x$ac_cv_func_posix_fadvise" = xyes
; then :
15688 cat >>confdefs.h
<<_ACEOF
15689 #define HAVE_POSIX_FADVISE 1
15695 ac_fn_c_check_decl
"$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
15697 if test "x$ac_cv_have_decl_posix_fadvise" = xyes
; then :
15703 cat >>confdefs.h
<<_ACEOF
15704 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
15710 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
15712 if test "x$ac_cv_have_decl_fdatasync" = xyes
; then :
15718 cat >>confdefs.h
<<_ACEOF
15719 #define HAVE_DECL_FDATASYNC $ac_have_decl
15722 ac_fn_c_check_decl
"$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
15723 if test "x$ac_cv_have_decl_strlcat" = xyes
; then :
15729 cat >>confdefs.h
<<_ACEOF
15730 #define HAVE_DECL_STRLCAT $ac_have_decl
15732 ac_fn_c_check_decl
"$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
15733 if test "x$ac_cv_have_decl_strlcpy" = xyes
; then :
15739 cat >>confdefs.h
<<_ACEOF
15740 #define HAVE_DECL_STRLCPY $ac_have_decl
15742 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
15743 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
15749 cat >>confdefs.h
<<_ACEOF
15750 #define HAVE_DECL_STRNLEN $ac_have_decl
15752 ac_fn_c_check_decl
"$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default"
15753 if test "x$ac_cv_have_decl_strsep" = xyes
; then :
15759 cat >>confdefs.h
<<_ACEOF
15760 #define HAVE_DECL_STRSEP $ac_have_decl
15764 # We can't use AC_CHECK_FUNCS to detect these functions, because it
15765 # won't handle deployment target restrictions on macOS
15766 ac_fn_c_check_decl
"$LINENO" "preadv" "ac_cv_have_decl_preadv" "#include <sys/uio.h>
15768 if test "x$ac_cv_have_decl_preadv" = xyes
; then :
15774 cat >>confdefs.h
<<_ACEOF
15775 #define HAVE_DECL_PREADV $ac_have_decl
15778 ac_fn_c_check_decl
"$LINENO" "pwritev" "ac_cv_have_decl_pwritev" "#include <sys/uio.h>
15780 if test "x$ac_cv_have_decl_pwritev" = xyes
; then :
15786 cat >>confdefs.h
<<_ACEOF
15787 #define HAVE_DECL_PWRITEV $ac_have_decl
15791 # This is probably only present on macOS, but may as well check always
15792 ac_fn_c_check_decl
"$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
15794 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes
; then :
15800 cat >>confdefs.h
<<_ACEOF
15801 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
15805 ac_fn_c_check_func
"$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
15806 if test "x$ac_cv_func_explicit_bzero" = xyes
; then :
15807 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
15810 case " $LIBOBJS " in
15811 *" explicit_bzero.$ac_objext "* ) ;;
15812 *) LIBOBJS
="$LIBOBJS explicit_bzero.$ac_objext"
15818 ac_fn_c_check_func
"$LINENO" "getopt" "ac_cv_func_getopt"
15819 if test "x$ac_cv_func_getopt" = xyes
; then :
15820 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
15823 case " $LIBOBJS " in
15824 *" getopt.$ac_objext "* ) ;;
15825 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
15831 ac_fn_c_check_func
"$LINENO" "getpeereid" "ac_cv_func_getpeereid"
15832 if test "x$ac_cv_func_getpeereid" = xyes
; then :
15833 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
15836 case " $LIBOBJS " in
15837 *" getpeereid.$ac_objext "* ) ;;
15838 *) LIBOBJS
="$LIBOBJS getpeereid.$ac_objext"
15844 ac_fn_c_check_func
"$LINENO" "inet_aton" "ac_cv_func_inet_aton"
15845 if test "x$ac_cv_func_inet_aton" = xyes
; then :
15846 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
15849 case " $LIBOBJS " in
15850 *" inet_aton.$ac_objext "* ) ;;
15851 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
15857 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
15858 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
15859 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
15862 case " $LIBOBJS " in
15863 *" mkdtemp.$ac_objext "* ) ;;
15864 *) LIBOBJS
="$LIBOBJS mkdtemp.$ac_objext"
15870 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
15871 if test "x$ac_cv_func_strlcat" = xyes
; then :
15872 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
15875 case " $LIBOBJS " in
15876 *" strlcat.$ac_objext "* ) ;;
15877 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
15883 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15884 if test "x$ac_cv_func_strlcpy" = xyes
; then :
15885 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
15888 case " $LIBOBJS " in
15889 *" strlcpy.$ac_objext "* ) ;;
15890 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
15896 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
15897 if test "x$ac_cv_func_strnlen" = xyes
; then :
15898 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
15901 case " $LIBOBJS " in
15902 *" strnlen.$ac_objext "* ) ;;
15903 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
15909 ac_fn_c_check_func
"$LINENO" "strsep" "ac_cv_func_strsep"
15910 if test "x$ac_cv_func_strsep" = xyes
; then :
15911 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
15914 case " $LIBOBJS " in
15915 *" strsep.$ac_objext "* ) ;;
15916 *) LIBOBJS
="$LIBOBJS strsep.$ac_objext"
15924 ac_fn_c_check_func
"$LINENO" "pthread_barrier_wait" "ac_cv_func_pthread_barrier_wait"
15925 if test "x$ac_cv_func_pthread_barrier_wait" = xyes
; then :
15926 $as_echo "#define HAVE_PTHREAD_BARRIER_WAIT 1" >>confdefs.h
15929 case " $LIBOBJS " in
15930 *" pthread_barrier_wait.$ac_objext "* ) ;;
15931 *) LIBOBJS
="$LIBOBJS pthread_barrier_wait.$ac_objext"
15939 if test "$PORTNAME" = "win32" -o "$PORTNAME" = "cygwin"; then
15940 # Cygwin and (apparently, based on test results) Mingw both
15941 # have a broken strtof(), so substitute its implementation.
15942 # That's not a perfect fix, since it doesn't avoid double-rounding,
15943 # but we have no better options.
15944 case " $LIBOBJS " in
15945 *" strtof.$ac_objext "* ) ;;
15946 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: On $host_os we will use our strtof wrapper." >&5
15951 $as_echo "$as_me: On $host_os we will use our strtof wrapper." >&6;}
15954 # Similarly, use system's getopt_long() only if system provides struct option.
15955 if test x
"$ac_cv_type_struct_option" = xyes
; then
15956 ac_fn_c_check_func
"$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15957 if test "x$ac_cv_func_getopt_long" = xyes
; then :
15958 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
15961 case " $LIBOBJS " in
15962 *" getopt_long.$ac_objext "* ) ;;
15963 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
15971 case " $LIBOBJS " in
15972 *" getopt_long.$ac_objext "* ) ;;
15973 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
15979 # On OpenBSD and Solaris, getopt() doesn't do what we want for long options
15980 # (i.e., allow '-' as a flag character), so use our version on those platforms.
15981 if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then
15982 case " $LIBOBJS " in
15983 *" getopt.$ac_objext "* ) ;;
15984 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
15990 # mingw has adopted a GNU-centric interpretation of optind/optreset,
15991 # so always use our version on Windows.
15992 if test "$PORTNAME" = "win32"; then
15993 case " $LIBOBJS " in
15994 *" getopt.$ac_objext "* ) ;;
15995 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
15999 case " $LIBOBJS " in
16000 *" getopt_long.$ac_objext "* ) ;;
16001 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16007 # Win32 (really MinGW) support
16008 if test "$PORTNAME" = "win32"; then
16009 for ac_func
in _configthreadlocale
16011 ac_fn_c_check_func
"$LINENO" "_configthreadlocale" "ac_cv_func__configthreadlocale"
16012 if test "x$ac_cv_func__configthreadlocale" = xyes
; then :
16013 cat >>confdefs.h
<<_ACEOF
16014 #define HAVE__CONFIGTHREADLOCALE 1
16020 case " $LIBOBJS " in
16021 *" dirmod.$ac_objext "* ) ;;
16022 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16026 case " $LIBOBJS " in
16027 *" kill.$ac_objext "* ) ;;
16028 *) LIBOBJS
="$LIBOBJS kill.$ac_objext"
16032 case " $LIBOBJS " in
16033 *" open.$ac_objext "* ) ;;
16034 *) LIBOBJS
="$LIBOBJS open.$ac_objext"
16038 case " $LIBOBJS " in
16039 *" system.$ac_objext "* ) ;;
16040 *) LIBOBJS
="$LIBOBJS system.$ac_objext"
16044 case " $LIBOBJS " in
16045 *" win32common.$ac_objext "* ) ;;
16046 *) LIBOBJS
="$LIBOBJS win32common.$ac_objext"
16050 case " $LIBOBJS " in
16051 *" win32dlopen.$ac_objext "* ) ;;
16052 *) LIBOBJS
="$LIBOBJS win32dlopen.$ac_objext"
16056 case " $LIBOBJS " in
16057 *" win32env.$ac_objext "* ) ;;
16058 *) LIBOBJS
="$LIBOBJS win32env.$ac_objext"
16062 case " $LIBOBJS " in
16063 *" win32error.$ac_objext "* ) ;;
16064 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext"
16068 case " $LIBOBJS " in
16069 *" win32fdatasync.$ac_objext "* ) ;;
16070 *) LIBOBJS
="$LIBOBJS win32fdatasync.$ac_objext"
16074 case " $LIBOBJS " in
16075 *" win32gai_strerror.$ac_objext "* ) ;;
16076 *) LIBOBJS
="$LIBOBJS win32gai_strerror.$ac_objext"
16080 case " $LIBOBJS " in
16081 *" win32getrusage.$ac_objext "* ) ;;
16082 *) LIBOBJS
="$LIBOBJS win32getrusage.$ac_objext"
16086 case " $LIBOBJS " in
16087 *" win32link.$ac_objext "* ) ;;
16088 *) LIBOBJS
="$LIBOBJS win32link.$ac_objext"
16092 case " $LIBOBJS " in
16093 *" win32ntdll.$ac_objext "* ) ;;
16094 *) LIBOBJS
="$LIBOBJS win32ntdll.$ac_objext"
16098 case " $LIBOBJS " in
16099 *" win32pread.$ac_objext "* ) ;;
16100 *) LIBOBJS
="$LIBOBJS win32pread.$ac_objext"
16104 case " $LIBOBJS " in
16105 *" win32pwrite.$ac_objext "* ) ;;
16106 *) LIBOBJS
="$LIBOBJS win32pwrite.$ac_objext"
16110 case " $LIBOBJS " in
16111 *" win32security.$ac_objext "* ) ;;
16112 *) LIBOBJS
="$LIBOBJS win32security.$ac_objext"
16116 case " $LIBOBJS " in
16117 *" win32setlocale.$ac_objext "* ) ;;
16118 *) LIBOBJS
="$LIBOBJS win32setlocale.$ac_objext"
16122 case " $LIBOBJS " in
16123 *" win32stat.$ac_objext "* ) ;;
16124 *) LIBOBJS
="$LIBOBJS win32stat.$ac_objext"
16129 # Cygwin needs only a bit of that
16130 if test "$PORTNAME" = "cygwin"; then
16131 case " $LIBOBJS " in
16132 *" dirmod.$ac_objext "* ) ;;
16133 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16139 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
16140 if test "x$ac_cv_func_syslog" = xyes
; then :
16141 ac_fn_c_check_header_mongrel
"$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
16142 if test "x$ac_cv_header_syslog_h" = xyes
; then :
16144 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
16153 $as_echo_n "checking for opterr... " >&6; }
16154 if ${pgac_cv_var_int_opterr+:} false
; then :
16155 $as_echo_n "(cached) " >&6
16157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16159 #include <unistd.h>
16163 extern int opterr; opterr = 1;
16168 if ac_fn_c_try_link
"$LINENO"; then :
16169 pgac_cv_var_int_opterr
=yes
16171 pgac_cv_var_int_opterr
=no
16173 rm -f core conftest.err conftest.
$ac_objext \
16174 conftest
$ac_exeext conftest.
$ac_ext
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
16177 $as_echo "$pgac_cv_var_int_opterr" >&6; }
16178 if test x
"$pgac_cv_var_int_opterr" = x
"yes"; then
16180 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
16185 $as_echo_n "checking for optreset... " >&6; }
16186 if ${pgac_cv_var_int_optreset+:} false
; then :
16187 $as_echo_n "(cached) " >&6
16189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16190 /* end confdefs.h. */
16191 #include <unistd.h>
16195 extern int optreset; optreset = 1;
16200 if ac_fn_c_try_link
"$LINENO"; then :
16201 pgac_cv_var_int_optreset
=yes
16203 pgac_cv_var_int_optreset
=no
16205 rm -f core conftest.err conftest.
$ac_objext \
16206 conftest
$ac_exeext conftest.
$ac_ext
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
16209 $as_echo "$pgac_cv_var_int_optreset" >&6; }
16210 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
16212 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
16216 if test "$with_icu" = yes; then
16217 ac_save_CPPFLAGS
=$CPPFLAGS
16218 CPPFLAGS
="$ICU_CFLAGS $CPPFLAGS"
16220 # Verify we have ICU's header files
16221 ac_fn_c_check_header_mongrel
"$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
16222 if test "x$ac_cv_header_unicode_ucol_h" = xyes
; then :
16225 as_fn_error $?
"header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
16230 CPPFLAGS
=$ac_save_CPPFLAGS
16233 if test "$with_llvm" = yes; then
16235 # Check which functionality is present
16236 SAVE_CPPFLAGS
="$CPPFLAGS"
16237 CPPFLAGS
="$CPPFLAGS $LLVM_CPPFLAGS"
16238 ac_fn_c_check_decl
"$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h>
16240 if test "x$ac_cv_have_decl_LLVMCreateGDBRegistrationListener" = xyes
; then :
16246 cat >>confdefs.h
<<_ACEOF
16247 #define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER $ac_have_decl
16249 ac_fn_c_check_decl
"$LINENO" "LLVMCreatePerfJITEventListener" "ac_cv_have_decl_LLVMCreatePerfJITEventListener" "#include <llvm-c/ExecutionEngine.h>
16251 if test "x$ac_cv_have_decl_LLVMCreatePerfJITEventListener" = xyes
; then :
16257 cat >>confdefs.h
<<_ACEOF
16258 #define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER $ac_have_decl
16261 CPPFLAGS
="$SAVE_CPPFLAGS"
16265 # Lastly, restore full LIBS list and check for readline/libedit symbols
16266 LIBS
="$LIBS_including_readline"
16268 if test "$with_readline" = yes; then
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_suppress_quote" >&5
16270 $as_echo_n "checking for rl_completion_suppress_quote... " >&6; }
16271 if ${pgac_cv_var_rl_completion_suppress_quote+:} false
; then :
16272 $as_echo_n "(cached) " >&6
16274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16277 #if defined(HAVE_READLINE_READLINE_H)
16278 #include <readline/readline.h>
16279 #elif defined(HAVE_EDITLINE_READLINE_H)
16280 #include <editline/readline.h>
16281 #elif defined(HAVE_READLINE_H)
16282 #include <readline.h>
16288 rl_completion_suppress_quote = 1;
16293 if ac_fn_c_try_link
"$LINENO"; then :
16294 pgac_cv_var_rl_completion_suppress_quote
=yes
16296 pgac_cv_var_rl_completion_suppress_quote
=no
16298 rm -f core conftest.err conftest.
$ac_objext \
16299 conftest
$ac_exeext conftest.
$ac_ext
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_suppress_quote" >&5
16302 $as_echo "$pgac_cv_var_rl_completion_suppress_quote" >&6; }
16303 if test x
"$pgac_cv_var_rl_completion_suppress_quote" = x
"yes"; then
16305 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_QUOTE 1" >>confdefs.h
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quote_characters" >&5
16309 $as_echo_n "checking for rl_filename_quote_characters... " >&6; }
16310 if ${pgac_cv_var_rl_filename_quote_characters+:} false
; then :
16311 $as_echo_n "(cached) " >&6
16313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16314 /* end confdefs.h. */
16316 #if defined(HAVE_READLINE_READLINE_H)
16317 #include <readline/readline.h>
16318 #elif defined(HAVE_EDITLINE_READLINE_H)
16319 #include <editline/readline.h>
16320 #elif defined(HAVE_READLINE_H)
16321 #include <readline.h>
16327 rl_filename_quote_characters = "x";
16332 if ac_fn_c_try_link
"$LINENO"; then :
16333 pgac_cv_var_rl_filename_quote_characters
=yes
16335 pgac_cv_var_rl_filename_quote_characters
=no
16337 rm -f core conftest.err conftest.
$ac_objext \
16338 conftest
$ac_exeext conftest.
$ac_ext
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quote_characters" >&5
16341 $as_echo "$pgac_cv_var_rl_filename_quote_characters" >&6; }
16342 if test x
"$pgac_cv_var_rl_filename_quote_characters" = x
"yes"; then
16344 $as_echo "#define HAVE_RL_FILENAME_QUOTE_CHARACTERS 1" >>confdefs.h
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quoting_function" >&5
16348 $as_echo_n "checking for rl_filename_quoting_function... " >&6; }
16349 if ${pgac_cv_var_rl_filename_quoting_function+:} false
; then :
16350 $as_echo_n "(cached) " >&6
16352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16355 #if defined(HAVE_READLINE_READLINE_H)
16356 #include <readline/readline.h>
16357 #elif defined(HAVE_EDITLINE_READLINE_H)
16358 #include <editline/readline.h>
16359 #elif defined(HAVE_READLINE_H)
16360 #include <readline.h>
16366 rl_filename_quoting_function = 0;
16371 if ac_fn_c_try_link
"$LINENO"; then :
16372 pgac_cv_var_rl_filename_quoting_function
=yes
16374 pgac_cv_var_rl_filename_quoting_function
=no
16376 rm -f core conftest.err conftest.
$ac_objext \
16377 conftest
$ac_exeext conftest.
$ac_ext
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quoting_function" >&5
16380 $as_echo "$pgac_cv_var_rl_filename_quoting_function" >&6; }
16381 if test x
"$pgac_cv_var_rl_filename_quoting_function" = x
"yes"; then
16383 $as_echo "#define HAVE_RL_FILENAME_QUOTING_FUNCTION 1" >>confdefs.h
16387 for ac_func
in append_history history_truncate_file rl_completion_matches rl_filename_completion_function rl_reset_screen_size rl_variable_bind
16389 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16390 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16391 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16392 cat >>confdefs.h
<<_ACEOF
16393 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16402 # This test makes sure that run tests work at all. Sometimes a shared
16403 # library is found by the linker, but the runtime linker can't find it.
16404 # This check should come after all modifications of compiler or linker
16405 # variables, and before any other run tests.
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
16407 $as_echo_n "checking test program... " >&6; }
16408 if test "$cross_compiling" = yes; then :
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
16410 $as_echo "cross-compiling" >&6; }
16412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h. */
16414 int main() { return 0; }
16416 if ac_fn_c_try_run
"$LINENO"; then :
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16418 $as_echo "ok" >&6; }
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16421 $as_echo "failed" >&6; }
16423 Could not execute a simple test program. This may be a problem
16424 related to locating shared libraries. Check the file 'config.log'
16425 for the exact reason." "$LINENO" 5
16427 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16428 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16432 # --------------------
16433 # Run tests below here
16434 # --------------------
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
16438 $as_echo_n "checking whether long int is 64 bits... " >&6; }
16439 if ${pgac_cv_type_long_int_64+:} false
; then :
16440 $as_echo_n "(cached) " >&6
16442 if test "$cross_compiling" = yes; then :
16443 # If cross-compiling, check the size reported by the compiler and
16444 # trust that the arithmetic works.
16445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16451 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
16452 test_array [0] = 0;
16453 return test_array [0];
16459 if ac_fn_c_try_compile
"$LINENO"; then :
16460 pgac_cv_type_long_int_64
=yes
16462 pgac_cv_type_long_int_64
=no
16464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h. */
16468 typedef long int ac_int64;
16471 * These are globals to discourage the compiler from folding all the
16472 * arithmetic tests down to compile-time constants.
16474 ac_int64 a = 20000001;
16475 ac_int64 b = 40000005;
16477 int does_int64_work()
16481 if (sizeof(ac_int64) != 8)
16482 return 0; /* definitely not the right size */
16484 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16494 return (! does_int64_work());
16497 if ac_fn_c_try_run
"$LINENO"; then :
16498 pgac_cv_type_long_int_64
=yes
16500 pgac_cv_type_long_int_64
=no
16502 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16503 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
16508 $as_echo "$pgac_cv_type_long_int_64" >&6; }
16510 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
16511 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
16513 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
16518 if test x
"$HAVE_LONG_INT_64" = x
"yes" ; then
16519 pg_int64_type
="long int"
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
16522 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
16523 if ${pgac_cv_type_long_long_int_64+:} false
; then :
16524 $as_echo_n "(cached) " >&6
16526 if test "$cross_compiling" = yes; then :
16527 # If cross-compiling, check the size reported by the compiler and
16528 # trust that the arithmetic works.
16529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16530 /* end confdefs.h. */
16535 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
16536 test_array [0] = 0;
16537 return test_array [0];
16543 if ac_fn_c_try_compile
"$LINENO"; then :
16544 pgac_cv_type_long_long_int_64
=yes
16546 pgac_cv_type_long_long_int_64
=no
16548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552 typedef long long int ac_int64;
16555 * These are globals to discourage the compiler from folding all the
16556 * arithmetic tests down to compile-time constants.
16558 ac_int64 a = 20000001;
16559 ac_int64 b = 40000005;
16561 int does_int64_work()
16565 if (sizeof(ac_int64) != 8)
16566 return 0; /* definitely not the right size */
16568 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16578 return (! does_int64_work());
16581 if ac_fn_c_try_run
"$LINENO"; then :
16582 pgac_cv_type_long_long_int_64
=yes
16584 pgac_cv_type_long_long_int_64
=no
16586 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16587 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
16592 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
16594 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
16595 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
16597 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
16601 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
16602 pg_int64_type
="long long int"
16604 as_fn_error $?
"Cannot find a working 64-bit integer type." "$LINENO" 5
16609 cat >>confdefs.h
<<_ACEOF
16610 #define PG_INT64_TYPE $pg_int64_type
16614 # Select the printf length modifier that goes with that, too.
16615 if test x
"$pg_int64_type" = x
"long long int" ; then
16616 INT64_MODIFIER
='"ll"'
16618 INT64_MODIFIER
='"l"'
16622 cat >>confdefs.h
<<_ACEOF
16623 #define INT64_MODIFIER $INT64_MODIFIER
16627 # has to be down here, rather than with the other builtins, because
16628 # the test uses PG_INT64_TYPE.
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
16630 $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
16631 if ${pgac_cv__builtin_op_overflow+:} false
; then :
16632 $as_echo_n "(cached) " >&6
16634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h. */
16637 PG_INT64_TYPE a = 1;
16638 PG_INT64_TYPE b = 1;
16639 PG_INT64_TYPE result;
16645 oflo = __builtin_mul_overflow(a, b, &result);
16650 if ac_fn_c_try_link
"$LINENO"; then :
16651 pgac_cv__builtin_op_overflow
=yes
16653 pgac_cv__builtin_op_overflow
=no
16655 rm -f core conftest.err conftest.
$ac_objext \
16656 conftest
$ac_exeext conftest.
$ac_ext
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
16659 $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
16660 if test x
"$pgac_cv__builtin_op_overflow" = xyes
; then
16662 $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
16666 # Check size of void *, size_t (enables tweaks for > 32bit address space)
16667 # The cast to long int works around a bug in the HP C Compiler
16668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16670 # This bug is HP SR number 8606223364.
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16672 $as_echo_n "checking size of void *... " >&6; }
16673 if ${ac_cv_sizeof_void_p+:} false
; then :
16674 $as_echo_n "(cached) " >&6
16676 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16679 if test "$ac_cv_type_void_p" = yes; then
16680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16682 as_fn_error
77 "cannot compute sizeof (void *)
16683 See \`config.log' for more details" "$LINENO" 5; }
16685 ac_cv_sizeof_void_p
=0
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16691 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16695 cat >>confdefs.h
<<_ACEOF
16696 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16700 # The cast to long int works around a bug in the HP C Compiler
16701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16703 # This bug is HP SR number 8606223364.
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16705 $as_echo_n "checking size of size_t... " >&6; }
16706 if ${ac_cv_sizeof_size_t+:} false
; then :
16707 $as_echo_n "(cached) " >&6
16709 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
16712 if test "$ac_cv_type_size_t" = yes; then
16713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16715 as_fn_error
77 "cannot compute sizeof (size_t)
16716 See \`config.log' for more details" "$LINENO" 5; }
16718 ac_cv_sizeof_size_t
=0
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16724 $as_echo "$ac_cv_sizeof_size_t" >&6; }
16728 cat >>confdefs.h
<<_ACEOF
16729 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16733 # The cast to long int works around a bug in the HP C Compiler
16734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16736 # This bug is HP SR number 8606223364.
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16738 $as_echo_n "checking size of long... " >&6; }
16739 if ${ac_cv_sizeof_long+:} false
; then :
16740 $as_echo_n "(cached) " >&6
16742 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16745 if test "$ac_cv_type_long" = yes; then
16746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16748 as_fn_error
77 "cannot compute sizeof (long)
16749 See \`config.log' for more details" "$LINENO" 5; }
16751 ac_cv_sizeof_long
=0
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16757 $as_echo "$ac_cv_sizeof_long" >&6; }
16761 cat >>confdefs.h
<<_ACEOF
16762 #define SIZEOF_LONG $ac_cv_sizeof_long
16767 # Determine memory alignment requirements for the basic C data types.
16769 # The cast to long int works around a bug in the HP C Compiler,
16770 # see AC_CHECK_SIZEOF for more information.
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
16772 $as_echo_n "checking alignment of short... " >&6; }
16773 if ${ac_cv_alignof_short+:} false
; then :
16774 $as_echo_n "(cached) " >&6
16776 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
16778 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16780 typedef struct { char x; short y; } ac__type_alignof_;"; then :
16783 if test "$ac_cv_type_short" = yes; then
16784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16786 as_fn_error
77 "cannot compute alignment of short
16787 See \`config.log' for more details" "$LINENO" 5; }
16789 ac_cv_alignof_short
=0
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
16795 $as_echo "$ac_cv_alignof_short" >&6; }
16799 cat >>confdefs.h
<<_ACEOF
16800 #define ALIGNOF_SHORT $ac_cv_alignof_short
16804 # The cast to long int works around a bug in the HP C Compiler,
16805 # see AC_CHECK_SIZEOF for more information.
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
16807 $as_echo_n "checking alignment of int... " >&6; }
16808 if ${ac_cv_alignof_int+:} false
; then :
16809 $as_echo_n "(cached) " >&6
16811 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
16813 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16815 typedef struct { char x; int y; } ac__type_alignof_;"; then :
16818 if test "$ac_cv_type_int" = yes; then
16819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16821 as_fn_error
77 "cannot compute alignment of int
16822 See \`config.log' for more details" "$LINENO" 5; }
16824 ac_cv_alignof_int
=0
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
16830 $as_echo "$ac_cv_alignof_int" >&6; }
16834 cat >>confdefs.h
<<_ACEOF
16835 #define ALIGNOF_INT $ac_cv_alignof_int
16839 # The cast to long int works around a bug in the HP C Compiler,
16840 # see AC_CHECK_SIZEOF for more information.
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
16842 $as_echo_n "checking alignment of long... " >&6; }
16843 if ${ac_cv_alignof_long+:} false
; then :
16844 $as_echo_n "(cached) " >&6
16846 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
16848 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16850 typedef struct { char x; long y; } ac__type_alignof_;"; then :
16853 if test "$ac_cv_type_long" = yes; then
16854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16856 as_fn_error
77 "cannot compute alignment of long
16857 See \`config.log' for more details" "$LINENO" 5; }
16859 ac_cv_alignof_long
=0
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
16865 $as_echo "$ac_cv_alignof_long" >&6; }
16869 cat >>confdefs.h
<<_ACEOF
16870 #define ALIGNOF_LONG $ac_cv_alignof_long
16874 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
16875 # The cast to long int works around a bug in the HP C Compiler,
16876 # see AC_CHECK_SIZEOF for more information.
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
16878 $as_echo_n "checking alignment of long long int... " >&6; }
16879 if ${ac_cv_alignof_long_long_int+:} false
; then :
16880 $as_echo_n "(cached) " >&6
16882 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
16884 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16886 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
16889 if test "$ac_cv_type_long_long_int" = yes; then
16890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16892 as_fn_error
77 "cannot compute alignment of long long int
16893 See \`config.log' for more details" "$LINENO" 5; }
16895 ac_cv_alignof_long_long_int
=0
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
16901 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
16905 cat >>confdefs.h
<<_ACEOF
16906 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
16911 # The cast to long int works around a bug in the HP C Compiler,
16912 # see AC_CHECK_SIZEOF for more information.
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
16914 $as_echo_n "checking alignment of double... " >&6; }
16915 if ${ac_cv_alignof_double+:} false
; then :
16916 $as_echo_n "(cached) " >&6
16918 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
16920 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16922 typedef struct { char x; double y; } ac__type_alignof_;"; then :
16925 if test "$ac_cv_type_double" = yes; then
16926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16928 as_fn_error
77 "cannot compute alignment of double
16929 See \`config.log' for more details" "$LINENO" 5; }
16931 ac_cv_alignof_double
=0
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
16937 $as_echo "$ac_cv_alignof_double" >&6; }
16941 cat >>confdefs.h
<<_ACEOF
16942 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
16947 # Compute maximum alignment of any basic type.
16949 # We require 'double' to have the strictest alignment among the basic types,
16950 # because otherwise the C ABI might impose 8-byte alignment on some of the
16951 # other C types that correspond to TYPALIGN_DOUBLE SQL types. That could
16952 # cause a mismatch between the tuple layout and the C struct layout of a
16953 # catalog tuple. We used to carefully order catalog columns such that any
16954 # fixed-width, attalign=4 columns were at offsets divisible by 8 regardless
16955 # of MAXIMUM_ALIGNOF to avoid that, but we no longer support any platforms
16956 # where TYPALIGN_DOUBLE != MAXIMUM_ALIGNOF.
16958 # We assume without checking that long's alignment is at least as strong as
16959 # char, short, or int. Note that we intentionally do not consider any types
16960 # wider than 64 bits, as allowing MAXIMUM_ALIGNOF to exceed 8 would be too
16961 # much of a penalty for disk and memory space.
16963 MAX_ALIGNOF
=$ac_cv_alignof_double
16965 if test $ac_cv_alignof_long -gt $MAX_ALIGNOF ; then
16966 as_fn_error $?
"alignment of 'long' is greater than the alignment of 'double'" "$LINENO" 5
16968 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
&& test $ac_cv_alignof_long_long_int -gt $MAX_ALIGNOF ; then
16969 as_fn_error $?
"alignment of 'long long int' is greater than the alignment of 'double'" "$LINENO" 5
16972 cat >>confdefs.h
<<_ACEOF
16973 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16978 # Some platforms predefine the types int8, int16, etc. Only check
16979 # a (hopefully) representative subset.
16980 ac_fn_c_check_type
"$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
16982 if test "x$ac_cv_type_int8" = xyes
; then :
16984 cat >>confdefs.h
<<_ACEOF
16985 #define HAVE_INT8 1
16990 ac_fn_c_check_type
"$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
16992 if test "x$ac_cv_type_uint8" = xyes
; then :
16994 cat >>confdefs.h
<<_ACEOF
16995 #define HAVE_UINT8 1
17000 ac_fn_c_check_type
"$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
17002 if test "x$ac_cv_type_int64" = xyes
; then :
17004 cat >>confdefs.h
<<_ACEOF
17005 #define HAVE_INT64 1
17010 ac_fn_c_check_type
"$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
17012 if test "x$ac_cv_type_uint64" = xyes
; then :
17014 cat >>confdefs.h
<<_ACEOF
17015 #define HAVE_UINT64 1
17022 # Some compilers offer a 128-bit integer scalar type.
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
17024 $as_echo_n "checking for __int128... " >&6; }
17025 if ${pgac_cv__128bit_int+:} false
; then :
17026 $as_echo_n "(cached) " >&6
17028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17029 /* end confdefs.h. */
17032 * We don't actually run this test, just link it to verify that any support
17033 * functions needed for __int128 are present.
17035 * These are globals to discourage the compiler from folding all the
17036 * arithmetic tests down to compile-time constants. We do not have
17037 * convenient support for 128bit literals at this point...
17039 __int128 a = 48828125;
17040 __int128 b = 97656250;
17047 a = (a << 12) + 1; /* 200000000001 */
17048 b = (b << 12) + 5; /* 400000000005 */
17049 /* try the most relevant arithmetic ops */
17052 /* must use the results, else compiler may optimize arithmetic away */
17060 if ac_fn_c_try_link
"$LINENO"; then :
17061 pgac_cv__128bit_int
=yes
17063 pgac_cv__128bit_int
=no
17065 rm -f core conftest.err conftest.
$ac_objext \
17066 conftest
$ac_exeext conftest.
$ac_ext
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
17069 $as_echo "$pgac_cv__128bit_int" >&6; }
17070 if test x
"$pgac_cv__128bit_int" = xyes
; then
17071 # Use of non-default alignment with __int128 tickles bugs in some compilers.
17072 # If not cross-compiling, we can test for bugs and disable use of __int128
17073 # with buggy compilers. If cross-compiling, hope for the best.
17074 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5
17076 $as_echo_n "checking for __int128 alignment bug... " >&6; }
17077 if ${pgac_cv__128bit_int_bug+:} false
; then :
17078 $as_echo_n "(cached) " >&6
17080 if test "$cross_compiling" = yes; then :
17081 pgac_cv__128bit_int_bug
="assuming ok"
17083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17086 /* This must match the corresponding code in c.h: */
17087 #if defined(__GNUC__) || defined(__SUNPRO_C)
17088 #define pg_attribute_aligned(a) __attribute__((aligned(a)))
17089 #elif defined(_MSC_VER)
17090 #define pg_attribute_aligned(a) __declspec(align(a))
17092 typedef __int128 int128a
17093 #if defined(pg_attribute_aligned)
17094 pg_attribute_aligned(8)
17098 void pass_by_val(void *buffer, int128a par) { holder = par; }
17104 long int i64 = 97656225L << 12;
17106 pass_by_val(main, (int128a) i64);
17115 if ac_fn_c_try_run
"$LINENO"; then :
17116 pgac_cv__128bit_int_bug
=ok
17118 pgac_cv__128bit_int_bug
=broken
17120 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17121 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5
17126 $as_echo "$pgac_cv__128bit_int_bug" >&6; }
17127 if test x
"$pgac_cv__128bit_int_bug" != xbroken
; then
17129 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
17131 # The cast to long int works around a bug in the HP C Compiler,
17132 # see AC_CHECK_SIZEOF for more information.
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
17134 $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
17135 if ${ac_cv_alignof_PG_INT128_TYPE+:} false
; then :
17136 $as_echo_n "(cached) " >&6
17138 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
17140 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17142 typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
17145 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
17146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17148 as_fn_error
77 "cannot compute alignment of PG_INT128_TYPE
17149 See \`config.log' for more details" "$LINENO" 5; }
17151 ac_cv_alignof_PG_INT128_TYPE
=0
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
17157 $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
17161 cat >>confdefs.h
<<_ACEOF
17162 #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
17169 # Check for various atomic operations now that we have checked how to declare
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
17172 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
17173 if ${pgac_cv_gcc_sync_char_tas+:} false
; then :
17174 $as_echo_n "(cached) " >&6
17176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17177 /* end confdefs.h. */
17183 __sync_lock_test_and_set(&lock, 1);
17184 __sync_lock_release(&lock);
17189 if ac_fn_c_try_link
"$LINENO"; then :
17190 pgac_cv_gcc_sync_char_tas
="yes"
17192 pgac_cv_gcc_sync_char_tas
="no"
17194 rm -f core conftest.err conftest.
$ac_objext \
17195 conftest
$ac_exeext conftest.
$ac_ext
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
17198 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
17199 if test x
"$pgac_cv_gcc_sync_char_tas" = x
"yes"; then
17201 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
17205 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
17206 if ${pgac_cv_gcc_sync_int32_tas+:} false
; then :
17207 $as_echo_n "(cached) " >&6
17209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17210 /* end confdefs.h. */
17216 __sync_lock_test_and_set(&lock, 1);
17217 __sync_lock_release(&lock);
17222 if ac_fn_c_try_link
"$LINENO"; then :
17223 pgac_cv_gcc_sync_int32_tas
="yes"
17225 pgac_cv_gcc_sync_int32_tas
="no"
17227 rm -f core conftest.err conftest.
$ac_objext \
17228 conftest
$ac_exeext conftest.
$ac_ext
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
17231 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
17232 if test x
"$pgac_cv_gcc_sync_int32_tas" = x
"yes"; then
17234 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
17238 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
17239 if ${pgac_cv_gcc_sync_int32_cas+:} false
; then :
17240 $as_echo_n "(cached) " >&6
17242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17243 /* end confdefs.h. */
17249 __sync_val_compare_and_swap(&val, 0, 37);
17254 if ac_fn_c_try_link
"$LINENO"; then :
17255 pgac_cv_gcc_sync_int32_cas
="yes"
17257 pgac_cv_gcc_sync_int32_cas
="no"
17259 rm -f core conftest.err conftest.
$ac_objext \
17260 conftest
$ac_exeext conftest.
$ac_ext
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
17263 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
17264 if test x
"$pgac_cv_gcc_sync_int32_cas" = x
"yes"; then
17266 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
17270 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
17271 if ${pgac_cv_gcc_sync_int64_cas+:} false
; then :
17272 $as_echo_n "(cached) " >&6
17274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17275 /* end confdefs.h. */
17280 PG_INT64_TYPE lock = 0;
17281 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
17286 if ac_fn_c_try_link
"$LINENO"; then :
17287 pgac_cv_gcc_sync_int64_cas
="yes"
17289 pgac_cv_gcc_sync_int64_cas
="no"
17291 rm -f core conftest.err conftest.
$ac_objext \
17292 conftest
$ac_exeext conftest.
$ac_ext
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
17295 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
17296 if test x
"$pgac_cv_gcc_sync_int64_cas" = x
"yes"; then
17298 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
17302 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
17303 if ${pgac_cv_gcc_atomic_int32_cas+:} false
; then :
17304 $as_echo_n "(cached) " >&6
17306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17307 /* end confdefs.h. */
17314 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17319 if ac_fn_c_try_link
"$LINENO"; then :
17320 pgac_cv_gcc_atomic_int32_cas
="yes"
17322 pgac_cv_gcc_atomic_int32_cas
="no"
17324 rm -f core conftest.err conftest.
$ac_objext \
17325 conftest
$ac_exeext conftest.
$ac_ext
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
17328 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
17329 if test x
"$pgac_cv_gcc_atomic_int32_cas" = x
"yes"; then
17331 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
17335 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
17336 if ${pgac_cv_gcc_atomic_int64_cas+:} false
; then :
17337 $as_echo_n "(cached) " >&6
17339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17340 /* end confdefs.h. */
17345 PG_INT64_TYPE val = 0;
17346 PG_INT64_TYPE expect = 0;
17347 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17352 if ac_fn_c_try_link
"$LINENO"; then :
17353 pgac_cv_gcc_atomic_int64_cas
="yes"
17355 pgac_cv_gcc_atomic_int64_cas
="no"
17357 rm -f core conftest.err conftest.
$ac_objext \
17358 conftest
$ac_exeext conftest.
$ac_ext
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
17361 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
17362 if test x
"$pgac_cv_gcc_atomic_int64_cas" = x
"yes"; then
17364 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
17369 # Check for x86 cpuid instruction
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
17371 $as_echo_n "checking for __get_cpuid... " >&6; }
17372 if ${pgac_cv__get_cpuid+:} false
; then :
17373 $as_echo_n "(cached) " >&6
17375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h. */
17381 unsigned int exx[4] = {0, 0, 0, 0};
17382 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
17388 if ac_fn_c_try_link
"$LINENO"; then :
17389 pgac_cv__get_cpuid
="yes"
17391 pgac_cv__get_cpuid
="no"
17393 rm -f core conftest.err conftest.
$ac_objext \
17394 conftest
$ac_exeext conftest.
$ac_ext
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
17397 $as_echo "$pgac_cv__get_cpuid" >&6; }
17398 if test x
"$pgac_cv__get_cpuid" = x
"yes"; then
17400 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid_count" >&5
17405 $as_echo_n "checking for __get_cpuid_count... " >&6; }
17406 if ${pgac_cv__get_cpuid_count+:} false
; then :
17407 $as_echo_n "(cached) " >&6
17409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17410 /* end confdefs.h. */
17415 unsigned int exx[4] = {0, 0, 0, 0};
17416 __get_cpuid_count(7, 0, &exx[0], &exx[1], &exx[2], &exx[3]);
17422 if ac_fn_c_try_link
"$LINENO"; then :
17423 pgac_cv__get_cpuid_count
="yes"
17425 pgac_cv__get_cpuid_count
="no"
17427 rm -f core conftest.err conftest.
$ac_objext \
17428 conftest
$ac_exeext conftest.
$ac_ext
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid_count" >&5
17431 $as_echo "$pgac_cv__get_cpuid_count" >&6; }
17432 if test x
"$pgac_cv__get_cpuid_count" = x
"yes"; then
17434 $as_echo "#define HAVE__GET_CPUID_COUNT 1" >>confdefs.h
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
17439 $as_echo_n "checking for __cpuid... " >&6; }
17440 if ${pgac_cv__cpuid+:} false
; then :
17441 $as_echo_n "(cached) " >&6
17443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17445 #include <intrin.h>
17449 unsigned int exx[4] = {0, 0, 0, 0};
17450 __get_cpuid(exx[0], 1);
17456 if ac_fn_c_try_link
"$LINENO"; then :
17457 pgac_cv__cpuid
="yes"
17459 pgac_cv__cpuid
="no"
17461 rm -f core conftest.err conftest.
$ac_objext \
17462 conftest
$ac_exeext conftest.
$ac_ext
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
17465 $as_echo "$pgac_cv__cpuid" >&6; }
17466 if test x
"$pgac_cv__cpuid" = x
"yes"; then
17468 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuidex" >&5
17473 $as_echo_n "checking for __cpuidex... " >&6; }
17474 if ${pgac_cv__cpuidex+:} false
; then :
17475 $as_echo_n "(cached) " >&6
17477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17478 /* end confdefs.h. */
17479 #include <intrin.h>
17483 unsigned int exx[4] = {0, 0, 0, 0};
17484 __get_cpuidex(exx[0], 7, 0);
17490 if ac_fn_c_try_link
"$LINENO"; then :
17491 pgac_cv__cpuidex
="yes"
17493 pgac_cv__cpuidex
="no"
17495 rm -f core conftest.err conftest.
$ac_objext \
17496 conftest
$ac_exeext conftest.
$ac_ext
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuidex" >&5
17499 $as_echo "$pgac_cv__cpuidex" >&6; }
17500 if test x
"$pgac_cv__cpuidex" = x
"yes"; then
17502 $as_echo "#define HAVE__CPUIDEX 1" >>confdefs.h
17506 # Check for XSAVE intrinsics
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xgetbv with CFLAGS=" >&5
17510 $as_echo_n "checking for _xgetbv with CFLAGS=... " >&6; }
17511 if ${pgac_cv_xsave_intrinsics_+:} false
; then :
17512 $as_echo_n "(cached) " >&6
17514 pgac_save_CFLAGS
=$CFLAGS
17515 CFLAGS
="$pgac_save_CFLAGS "
17516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h. */
17518 #include <immintrin.h>
17522 return _xgetbv(0) & 0xe0;
17527 if ac_fn_c_try_link
"$LINENO"; then :
17528 pgac_cv_xsave_intrinsics_
=yes
17530 pgac_cv_xsave_intrinsics_
=no
17532 rm -f core conftest.err conftest.
$ac_objext \
17533 conftest
$ac_exeext conftest.
$ac_ext
17534 CFLAGS
="$pgac_save_CFLAGS"
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_xsave_intrinsics_" >&5
17537 $as_echo "$pgac_cv_xsave_intrinsics_" >&6; }
17538 if test x
"$pgac_cv_xsave_intrinsics_" = x
"yes"; then
17540 pgac_xsave_intrinsics
=yes
17543 if test x
"$pgac_xsave_intrinsics" != x
"yes"; then
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xgetbv with CFLAGS=-mxsave" >&5
17545 $as_echo_n "checking for _xgetbv with CFLAGS=-mxsave... " >&6; }
17546 if ${pgac_cv_xsave_intrinsics__mxsave+:} false
; then :
17547 $as_echo_n "(cached) " >&6
17549 pgac_save_CFLAGS
=$CFLAGS
17550 CFLAGS
="$pgac_save_CFLAGS -mxsave"
17551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17552 /* end confdefs.h. */
17553 #include <immintrin.h>
17557 return _xgetbv(0) & 0xe0;
17562 if ac_fn_c_try_link
"$LINENO"; then :
17563 pgac_cv_xsave_intrinsics__mxsave
=yes
17565 pgac_cv_xsave_intrinsics__mxsave
=no
17567 rm -f core conftest.err conftest.
$ac_objext \
17568 conftest
$ac_exeext conftest.
$ac_ext
17569 CFLAGS
="$pgac_save_CFLAGS"
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_xsave_intrinsics__mxsave" >&5
17572 $as_echo "$pgac_cv_xsave_intrinsics__mxsave" >&6; }
17573 if test x
"$pgac_cv_xsave_intrinsics__mxsave" = x
"yes"; then
17574 CFLAGS_XSAVE
="-mxsave"
17575 pgac_xsave_intrinsics
=yes
17579 if test x
"$pgac_xsave_intrinsics" = x
"yes"; then
17581 $as_echo "#define HAVE_XSAVE_INTRINSICS 1" >>confdefs.h
17586 # Check for AVX-512 popcount intrinsics
17590 if test x
"$host_cpu" = x
"x86_64"; then
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm512_popcnt_epi64 with CFLAGS=" >&5
17592 $as_echo_n "checking for _mm512_popcnt_epi64 with CFLAGS=... " >&6; }
17593 if ${pgac_cv_avx512_popcnt_intrinsics_+:} false
; then :
17594 $as_echo_n "(cached) " >&6
17596 pgac_save_CFLAGS
=$CFLAGS
17597 CFLAGS
="$pgac_save_CFLAGS "
17598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17599 /* end confdefs.h. */
17600 #include <immintrin.h>
17604 const char buf[sizeof(__m512i)];
17605 PG_INT64_TYPE popcnt = 0;
17606 __m512i accum = _mm512_setzero_si512();
17607 const __m512i val = _mm512_maskz_loadu_epi8((__mmask64) 0xf0f0f0f0f0f0f0f0, (const __m512i *) buf);
17608 const __m512i cnt = _mm512_popcnt_epi64(val);
17609 accum = _mm512_add_epi64(accum, cnt);
17610 popcnt = _mm512_reduce_add_epi64(accum);
17611 /* return computed value, to prevent the above being optimized away */
17612 return popcnt == 0;
17617 if ac_fn_c_try_link
"$LINENO"; then :
17618 pgac_cv_avx512_popcnt_intrinsics_
=yes
17620 pgac_cv_avx512_popcnt_intrinsics_
=no
17622 rm -f core conftest.err conftest.
$ac_objext \
17623 conftest
$ac_exeext conftest.
$ac_ext
17624 CFLAGS
="$pgac_save_CFLAGS"
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_avx512_popcnt_intrinsics_" >&5
17627 $as_echo "$pgac_cv_avx512_popcnt_intrinsics_" >&6; }
17628 if test x
"$pgac_cv_avx512_popcnt_intrinsics_" = x
"yes"; then
17630 pgac_avx512_popcnt_intrinsics
=yes
17633 if test x
"$pgac_avx512_popcnt_intrinsics" != x
"yes"; then
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm512_popcnt_epi64 with CFLAGS=-mavx512vpopcntdq -mavx512bw" >&5
17635 $as_echo_n "checking for _mm512_popcnt_epi64 with CFLAGS=-mavx512vpopcntdq -mavx512bw... " >&6; }
17636 if ${pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw+:} false
; then :
17637 $as_echo_n "(cached) " >&6
17639 pgac_save_CFLAGS
=$CFLAGS
17640 CFLAGS
="$pgac_save_CFLAGS -mavx512vpopcntdq -mavx512bw"
17641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17642 /* end confdefs.h. */
17643 #include <immintrin.h>
17647 const char buf[sizeof(__m512i)];
17648 PG_INT64_TYPE popcnt = 0;
17649 __m512i accum = _mm512_setzero_si512();
17650 const __m512i val = _mm512_maskz_loadu_epi8((__mmask64) 0xf0f0f0f0f0f0f0f0, (const __m512i *) buf);
17651 const __m512i cnt = _mm512_popcnt_epi64(val);
17652 accum = _mm512_add_epi64(accum, cnt);
17653 popcnt = _mm512_reduce_add_epi64(accum);
17654 /* return computed value, to prevent the above being optimized away */
17655 return popcnt == 0;
17660 if ac_fn_c_try_link
"$LINENO"; then :
17661 pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw
=yes
17663 pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw
=no
17665 rm -f core conftest.err conftest.
$ac_objext \
17666 conftest
$ac_exeext conftest.
$ac_ext
17667 CFLAGS
="$pgac_save_CFLAGS"
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw" >&5
17670 $as_echo "$pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw" >&6; }
17671 if test x
"$pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw" = x
"yes"; then
17672 CFLAGS_POPCNT
="-mavx512vpopcntdq -mavx512bw"
17673 pgac_avx512_popcnt_intrinsics
=yes
17677 if test x
"$pgac_avx512_popcnt_intrinsics" = x
"yes"; then
17678 PG_POPCNT_OBJS
="pg_popcount_avx512.o pg_popcount_avx512_choose.o"
17680 $as_echo "#define USE_AVX512_POPCNT_WITH_RUNTIME_CHECK 1" >>confdefs.h
17687 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
17689 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
17690 # with the default compiler flags. If not, check if adding the -msse4.2
17691 # flag helps. CFLAGS_CRC is set to -msse4.2 if that's required.
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
17693 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
17694 if ${pgac_cv_sse42_crc32_intrinsics_+:} false
; then :
17695 $as_echo_n "(cached) " >&6
17697 pgac_save_CFLAGS
=$CFLAGS
17698 CFLAGS
="$pgac_save_CFLAGS "
17699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h. */
17701 #include <nmmintrin.h>
17705 unsigned int crc = 0;
17706 crc = _mm_crc32_u8(crc, 0);
17707 crc = _mm_crc32_u32(crc, 0);
17708 /* return computed value, to prevent the above being optimized away */
17714 if ac_fn_c_try_link
"$LINENO"; then :
17715 pgac_cv_sse42_crc32_intrinsics_
=yes
17717 pgac_cv_sse42_crc32_intrinsics_
=no
17719 rm -f core conftest.err conftest.
$ac_objext \
17720 conftest
$ac_exeext conftest.
$ac_ext
17721 CFLAGS
="$pgac_save_CFLAGS"
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
17724 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
17725 if test x
"$pgac_cv_sse42_crc32_intrinsics_" = x
"yes"; then
17727 pgac_sse42_crc32_intrinsics
=yes
17730 if test x
"$pgac_sse42_crc32_intrinsics" != x
"yes"; then
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
17732 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
17733 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false
; then :
17734 $as_echo_n "(cached) " >&6
17736 pgac_save_CFLAGS
=$CFLAGS
17737 CFLAGS
="$pgac_save_CFLAGS -msse4.2"
17738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h. */
17740 #include <nmmintrin.h>
17744 unsigned int crc = 0;
17745 crc = _mm_crc32_u8(crc, 0);
17746 crc = _mm_crc32_u32(crc, 0);
17747 /* return computed value, to prevent the above being optimized away */
17753 if ac_fn_c_try_link
"$LINENO"; then :
17754 pgac_cv_sse42_crc32_intrinsics__msse4_2
=yes
17756 pgac_cv_sse42_crc32_intrinsics__msse4_2
=no
17758 rm -f core conftest.err conftest.
$ac_objext \
17759 conftest
$ac_exeext conftest.
$ac_ext
17760 CFLAGS
="$pgac_save_CFLAGS"
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
17763 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
17764 if test x
"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x
"yes"; then
17765 CFLAGS_CRC
="-msse4.2"
17766 pgac_sse42_crc32_intrinsics
=yes
17771 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
17772 # define __SSE4_2__ in that case.
17773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17781 #error __SSE4_2__ not defined
17788 if ac_fn_c_try_compile
"$LINENO"; then :
17791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17793 # Check for ARMv8 CRC Extension intrinsics to do CRC calculations.
17795 # First check if __crc32c* intrinsics can be used with the default compiler
17796 # flags. If not, check if adding -march=armv8-a+crc flag helps.
17797 # CFLAGS_CRC is set if the extra flag is required.
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5
17799 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; }
17800 if ${pgac_cv_armv8_crc32c_intrinsics_+:} false
; then :
17801 $as_echo_n "(cached) " >&6
17803 pgac_save_CFLAGS
=$CFLAGS
17804 CFLAGS
="$pgac_save_CFLAGS "
17805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17806 /* end confdefs.h. */
17807 #include <arm_acle.h>
17811 unsigned int crc = 0;
17812 crc = __crc32cb(crc, 0);
17813 crc = __crc32ch(crc, 0);
17814 crc = __crc32cw(crc, 0);
17815 crc = __crc32cd(crc, 0);
17816 /* return computed value, to prevent the above being optimized away */
17822 if ac_fn_c_try_link
"$LINENO"; then :
17823 pgac_cv_armv8_crc32c_intrinsics_
=yes
17825 pgac_cv_armv8_crc32c_intrinsics_
=no
17827 rm -f core conftest.err conftest.
$ac_objext \
17828 conftest
$ac_exeext conftest.
$ac_ext
17829 CFLAGS
="$pgac_save_CFLAGS"
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5
17832 $as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; }
17833 if test x
"$pgac_cv_armv8_crc32c_intrinsics_" = x
"yes"; then
17835 pgac_armv8_crc32c_intrinsics
=yes
17838 if test x
"$pgac_armv8_crc32c_intrinsics" != x
"yes"; then
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5
17840 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; }
17841 if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false
; then :
17842 $as_echo_n "(cached) " >&6
17844 pgac_save_CFLAGS
=$CFLAGS
17845 CFLAGS
="$pgac_save_CFLAGS -march=armv8-a+crc"
17846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17847 /* end confdefs.h. */
17848 #include <arm_acle.h>
17852 unsigned int crc = 0;
17853 crc = __crc32cb(crc, 0);
17854 crc = __crc32ch(crc, 0);
17855 crc = __crc32cw(crc, 0);
17856 crc = __crc32cd(crc, 0);
17857 /* return computed value, to prevent the above being optimized away */
17863 if ac_fn_c_try_link
"$LINENO"; then :
17864 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=yes
17866 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=no
17868 rm -f core conftest.err conftest.
$ac_objext \
17869 conftest
$ac_exeext conftest.
$ac_ext
17870 CFLAGS
="$pgac_save_CFLAGS"
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5
17873 $as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; }
17874 if test x
"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x
"yes"; then
17875 CFLAGS_CRC
="-march=armv8-a+crc"
17876 pgac_armv8_crc32c_intrinsics
=yes
17881 # Check for LoongArch CRC intrinsics to do CRC calculations.
17883 # Check if __builtin_loongarch_crcc_* intrinsics can be used
17884 # with the default compiler flags.
17885 { $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
17886 $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; }
17887 if ${pgac_cv_loongarch_crc32c_intrinsics+:} false
; then :
17888 $as_echo_n "(cached) " >&6
17890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17896 unsigned int crc = 0;
17897 crc = __builtin_loongarch_crcc_w_b_w(0, crc);
17898 crc = __builtin_loongarch_crcc_w_h_w(0, crc);
17899 crc = __builtin_loongarch_crcc_w_w_w(0, crc);
17900 crc = __builtin_loongarch_crcc_w_d_w(0, crc);
17901 /* return computed value, to prevent the above being optimized away */
17907 if ac_fn_c_try_link
"$LINENO"; then :
17908 pgac_cv_loongarch_crc32c_intrinsics
=yes
17910 pgac_cv_loongarch_crc32c_intrinsics
=no
17912 rm -f core conftest.err conftest.
$ac_objext \
17913 conftest
$ac_exeext conftest.
$ac_ext
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_loongarch_crc32c_intrinsics" >&5
17916 $as_echo "$pgac_cv_loongarch_crc32c_intrinsics" >&6; }
17917 if test x
"$pgac_cv_loongarch_crc32c_intrinsics" = x
"yes"; then
17918 pgac_loongarch_crc32c_intrinsics
=yes
17924 # Select CRC-32C implementation.
17926 # If we are targeting a processor that has Intel SSE 4.2 instructions, we can
17927 # use the special CRC instructions for calculating CRC-32C. If we're not
17928 # targeting such a processor, but we can nevertheless produce code that uses
17929 # the SSE intrinsics, perhaps with some extra CFLAGS, compile both
17930 # implementations and select which one to use at runtime, depending on whether
17931 # SSE 4.2 is supported by the processor we're running on.
17933 # Similarly, if we are targeting an ARM processor that has the CRC
17934 # instructions that are part of the ARMv8 CRC Extension, use them. And if
17935 # we're not targeting such a processor, but can nevertheless produce code that
17936 # uses the CRC instructions, compile both, and select at runtime.
17938 # You can skip the runtime check by setting the appropriate USE_*_CRC32 flag to 1
17939 # in the template or configure command line.
17941 # If we are targeting a LoongArch processor, CRC instructions are
17942 # always available (at least on 64 bit), so no runtime check is needed.
17943 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
17944 # Use Intel SSE 4.2 if available.
17945 if test x
"$pgac_sse42_crc32_intrinsics" = x
"yes" && test x
"$SSE4_2_TARGETED" = x
"1" ; then
17948 # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for
17949 # the runtime check.
17950 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
17951 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK
=1
17953 # Use ARM CRC Extension if available.
17954 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes" && test x
"$CFLAGS_CRC" = x
""; then
17957 # ARM CRC Extension, with runtime check?
17958 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes"; then
17959 USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK
=1
17961 # LoongArch CRCC instructions.
17962 if test x
"$pgac_loongarch_crc32c_intrinsics" = x
"yes"; then
17963 USE_LOONGARCH_CRC32C
=1
17965 # fall back to slicing-by-8 algorithm, which doesn't require any
17966 # special CPU support.
17967 USE_SLICING_BY_8_CRC32C
=1
17975 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
17977 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
17978 if test x
"$USE_SSE42_CRC32C" = x
"1"; then
17980 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
17982 PG_CRC32C_OBJS
="pg_crc32c_sse42.o"
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
17984 $as_echo "SSE 4.2" >&6; }
17986 if test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
17988 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
17990 PG_CRC32C_OBJS
="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o"
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
17992 $as_echo "SSE 4.2 with runtime check" >&6; }
17994 if test x
"$USE_ARMV8_CRC32C" = x
"1"; then
17996 $as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h
17998 PG_CRC32C_OBJS
="pg_crc32c_armv8.o"
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5
18000 $as_echo "ARMv8 CRC instructions" >&6; }
18002 if test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
18004 $as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
18006 PG_CRC32C_OBJS
="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o"
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5
18008 $as_echo "ARMv8 CRC instructions with runtime check" >&6; }
18010 if test x
"$USE_LOONGARCH_CRC32C" = x
"1"; then
18012 $as_echo "#define USE_LOONGARCH_CRC32C 1" >>confdefs.h
18014 PG_CRC32C_OBJS
="pg_crc32c_loongarch.o"
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LoongArch CRCC instructions" >&5
18016 $as_echo "LoongArch CRCC instructions" >&6; }
18019 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
18021 PG_CRC32C_OBJS
="pg_crc32c_sb8.o"
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
18023 $as_echo "slicing-by-8" >&6; }
18032 # Select semaphore implementation type.
18033 if test "$PORTNAME" != "win32"; then
18034 if test x
"$PREFERRED_SEMAPHORES" = x
"NAMED_POSIX" ; then
18035 # Need sem_open for this
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
18037 $as_echo_n "checking for library containing sem_open... " >&6; }
18038 if ${ac_cv_search_sem_open+:} false
; then :
18039 $as_echo_n "(cached) " >&6
18041 ac_func_search_save_LIBS
=$LIBS
18042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18043 /* end confdefs.h. */
18045 /* Override any GCC internal prototype to avoid an error.
18046 Use char because int might match the return type of a GCC
18047 builtin and then its argument prototype would still apply. */
18055 return sem_open ();
18060 for ac_lib
in '' rt pthread
; do
18061 if test -z "$ac_lib"; then
18062 ac_res
="none required"
18065 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18067 if ac_fn_c_try_link
"$LINENO"; then :
18068 ac_cv_search_sem_open
=$ac_res
18070 rm -f core conftest.err conftest.
$ac_objext \
18072 if ${ac_cv_search_sem_open+:} false
; then :
18076 if ${ac_cv_search_sem_open+:} false
; then :
18079 ac_cv_search_sem_open
=no
18081 rm conftest.
$ac_ext
18082 LIBS
=$ac_func_search_save_LIBS
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
18085 $as_echo "$ac_cv_search_sem_open" >&6; }
18086 ac_res
=$ac_cv_search_sem_open
18087 if test "$ac_res" != no
; then :
18088 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18089 USE_NAMED_POSIX_SEMAPHORES
=1
18093 if test x
"$PREFERRED_SEMAPHORES" = x
"UNNAMED_POSIX" ; then
18094 # Need sem_init for this
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
18096 $as_echo_n "checking for library containing sem_init... " >&6; }
18097 if ${ac_cv_search_sem_init+:} false
; then :
18098 $as_echo_n "(cached) " >&6
18100 ac_func_search_save_LIBS
=$LIBS
18101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18102 /* end confdefs.h. */
18104 /* Override any GCC internal prototype to avoid an error.
18105 Use char because int might match the return type of a GCC
18106 builtin and then its argument prototype would still apply. */
18114 return sem_init ();
18119 for ac_lib
in '' rt pthread
; do
18120 if test -z "$ac_lib"; then
18121 ac_res
="none required"
18124 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18126 if ac_fn_c_try_link
"$LINENO"; then :
18127 ac_cv_search_sem_init
=$ac_res
18129 rm -f core conftest.err conftest.
$ac_objext \
18131 if ${ac_cv_search_sem_init+:} false
; then :
18135 if ${ac_cv_search_sem_init+:} false
; then :
18138 ac_cv_search_sem_init
=no
18140 rm conftest.
$ac_ext
18141 LIBS
=$ac_func_search_save_LIBS
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
18144 $as_echo "$ac_cv_search_sem_init" >&6; }
18145 ac_res
=$ac_cv_search_sem_init
18146 if test "$ac_res" != no
; then :
18147 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18148 USE_UNNAMED_POSIX_SEMAPHORES
=1
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
18153 $as_echo_n "checking which semaphore API to use... " >&6; }
18154 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
18156 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18158 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18159 sematype
="named POSIX"
18161 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
18163 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18165 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18166 sematype
="unnamed POSIX"
18169 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
18171 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
18172 sematype
="System V"
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
18176 $as_echo "$sematype" >&6; }
18179 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
18181 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
18185 # Select shared-memory implementation type.
18186 if test "$PORTNAME" != "win32"; then
18188 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
18190 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
18193 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
18195 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
18198 # Select random number source. If a TLS library is used then it will be the
18199 # first choice, else the native platform sources (Windows API or /dev/urandom)
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
18202 $as_echo_n "checking which random number source to use... " >&6; }
18203 if test x
"$with_ssl" = x
"openssl" ; then
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
18205 $as_echo "OpenSSL" >&6; }
18206 elif test x
"$PORTNAME" = x
"win32" ; then
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
18208 $as_echo "Windows native" >&6; }
18209 elif test x
"$cross_compiling" = x
"yes"; then
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming /dev/urandom" >&5
18211 $as_echo "assuming /dev/urandom" >&6; }
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
18214 $as_echo "/dev/urandom" >&6; }
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
18216 $as_echo_n "checking for /dev/urandom... " >&6; }
18217 if ${ac_cv_file__dev_urandom+:} false
; then :
18218 $as_echo_n "(cached) " >&6
18220 test "$cross_compiling" = yes &&
18221 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
18222 if test -r "/dev/urandom"; then
18223 ac_cv_file__dev_urandom
=yes
18225 ac_cv_file__dev_urandom
=no
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
18229 $as_echo "$ac_cv_file__dev_urandom" >&6; }
18230 if test "x$ac_cv_file__dev_urandom" = xyes
; then :
18235 if test x
"$ac_cv_file__dev_urandom" = x
"no" ; then
18237 no source of strong random numbers was found
18238 PostgreSQL can use OpenSSL, native Windows API or /dev/urandom as a source of random numbers." "$LINENO" 5
18242 # If not set in template file, set bytes to use libc memset()
18243 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
18244 MEMSET_LOOP_LIMIT
=1024
18247 cat >>confdefs.h
<<_ACEOF
18248 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
18253 if test "$enable_nls" = yes ; then
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
18256 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
18257 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18258 $as_echo_n "(cached) " >&6
18260 ac_func_search_save_LIBS
=$LIBS
18261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18262 /* end confdefs.h. */
18264 /* Override any GCC internal prototype to avoid an error.
18265 Use char because int might match the return type of a GCC
18266 builtin and then its argument prototype would still apply. */
18270 char bind_textdomain_codeset ();
18274 return bind_textdomain_codeset ();
18279 for ac_lib
in '' intl
; do
18280 if test -z "$ac_lib"; then
18281 ac_res
="none required"
18284 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18286 if ac_fn_c_try_link
"$LINENO"; then :
18287 ac_cv_search_bind_textdomain_codeset
=$ac_res
18289 rm -f core conftest.err conftest.
$ac_objext \
18291 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18295 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18298 ac_cv_search_bind_textdomain_codeset
=no
18300 rm conftest.
$ac_ext
18301 LIBS
=$ac_func_search_save_LIBS
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
18304 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
18305 ac_res
=$ac_cv_search_bind_textdomain_codeset
18306 if test "$ac_res" != no
; then :
18307 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18310 as_fn_error $?
"a gettext implementation is required for NLS" "$LINENO" 5
18313 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18314 if test "x$ac_cv_header_libintl_h" = xyes
; then :
18317 as_fn_error $?
"header file <libintl.h> is required for NLS" "$LINENO" 5
18321 if test -z "$MSGFMT"; then
18322 for ac_prog
in msgfmt
18324 # Extract the first word of "$ac_prog", so it can be a program name with args.
18325 set dummy
$ac_prog; ac_word
=$2
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18327 $as_echo_n "checking for $ac_word... " >&6; }
18328 if ${ac_cv_path_MSGFMT+:} false
; then :
18329 $as_echo_n "(cached) " >&6
18333 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
18336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18337 for as_dir
in $PATH
18340 test -z "$as_dir" && as_dir
=.
18341 for ac_exec_ext
in '' $ac_executable_extensions; do
18342 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18343 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
18344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18354 MSGFMT
=$ac_cv_path_MSGFMT
18355 if test -n "$MSGFMT"; then
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18357 $as_echo "$MSGFMT" >&6; }
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18360 $as_echo "no" >&6; }
18364 test -n "$MSGFMT" && break
18368 # Report the value of MSGFMT in configure's output in all cases.
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
18370 $as_echo_n "checking for MSGFMT... " >&6; }
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18372 $as_echo "$MSGFMT" >&6; }
18375 if test -z "$MSGFMT"; then
18376 as_fn_error $?
"msgfmt is required for NLS" "$LINENO" 5
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
18379 $as_echo_n "checking for msgfmt flags... " >&6; }
18380 if ${pgac_cv_msgfmt_flags+:} false
; then :
18381 $as_echo_n "(cached) " >&6
18383 if test x
"$MSGFMT" != x
"" && "$MSGFMT" --version 2>&1 |
grep "GNU" >/dev
/null
; then
18384 pgac_cv_msgfmt_flags
=-c
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
18388 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
18389 MSGFMT_FLAGS
=$pgac_cv_msgfmt_flags
18391 if test -z "$MSGMERGE"; then
18392 for ac_prog
in msgmerge
18394 # Extract the first word of "$ac_prog", so it can be a program name with args.
18395 set dummy
$ac_prog; ac_word
=$2
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18397 $as_echo_n "checking for $ac_word... " >&6; }
18398 if ${ac_cv_path_MSGMERGE+:} false
; then :
18399 $as_echo_n "(cached) " >&6
18403 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
18406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18407 for as_dir
in $PATH
18410 test -z "$as_dir" && as_dir
=.
18411 for ac_exec_ext
in '' $ac_executable_extensions; do
18412 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18413 ac_cv_path_MSGMERGE
="$as_dir/$ac_word$ac_exec_ext"
18414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18424 MSGMERGE
=$ac_cv_path_MSGMERGE
18425 if test -n "$MSGMERGE"; then
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18427 $as_echo "$MSGMERGE" >&6; }
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18430 $as_echo "no" >&6; }
18434 test -n "$MSGMERGE" && break
18438 # Report the value of MSGMERGE in configure's output in all cases.
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
18440 $as_echo_n "checking for MSGMERGE... " >&6; }
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18442 $as_echo "$MSGMERGE" >&6; }
18445 if test -z "$XGETTEXT"; then
18446 for ac_prog
in xgettext
18448 # Extract the first word of "$ac_prog", so it can be a program name with args.
18449 set dummy
$ac_prog; ac_word
=$2
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18451 $as_echo_n "checking for $ac_word... " >&6; }
18452 if ${ac_cv_path_XGETTEXT+:} false
; then :
18453 $as_echo_n "(cached) " >&6
18457 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
18460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18461 for as_dir
in $PATH
18464 test -z "$as_dir" && as_dir
=.
18465 for ac_exec_ext
in '' $ac_executable_extensions; do
18466 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18467 ac_cv_path_XGETTEXT
="$as_dir/$ac_word$ac_exec_ext"
18468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18478 XGETTEXT
=$ac_cv_path_XGETTEXT
18479 if test -n "$XGETTEXT"; then
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18481 $as_echo "$XGETTEXT" >&6; }
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18484 $as_echo "no" >&6; }
18488 test -n "$XGETTEXT" && break
18492 # Report the value of XGETTEXT in configure's output in all cases.
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
18494 $as_echo_n "checking for XGETTEXT... " >&6; }
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18496 $as_echo "$XGETTEXT" >&6; }
18502 # Check for Tcl configuration script tclConfig.sh
18503 if test "$with_tcl" = yes; then
18504 if test -z "$TCLSH"; then
18505 for ac_prog
in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
18507 # Extract the first word of "$ac_prog", so it can be a program name with args.
18508 set dummy
$ac_prog; ac_word
=$2
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18510 $as_echo_n "checking for $ac_word... " >&6; }
18511 if ${ac_cv_path_TCLSH+:} false
; then :
18512 $as_echo_n "(cached) " >&6
18516 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
18519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18520 for as_dir
in $PATH
18523 test -z "$as_dir" && as_dir
=.
18524 for ac_exec_ext
in '' $ac_executable_extensions; do
18525 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18526 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
18527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18537 TCLSH
=$ac_cv_path_TCLSH
18538 if test -n "$TCLSH"; then
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18540 $as_echo "$TCLSH" >&6; }
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18543 $as_echo "no" >&6; }
18547 test -n "$TCLSH" && break
18551 # Report the value of TCLSH in configure's output in all cases.
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
18553 $as_echo_n "checking for TCLSH... " >&6; }
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18555 $as_echo "$TCLSH" >&6; }
18558 if test x
"$TCLSH" = x
""; then
18559 as_fn_error $?
"Tcl shell not found" "$LINENO" 5
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
18563 $as_echo_n "checking for tclConfig.sh... " >&6; }
18564 # Let user override test
18565 if test -z "$TCL_CONFIG_SH"; then
18566 pgac_test_dirs
="$with_tclconfig"
18568 set X
$pgac_test_dirs; shift
18569 if test $# -eq 0; then
18570 test -z "$TCLSH" && as_fn_error $?
"unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
18571 pgac_test_dirs
=`echo 'puts $auto_path' | $TCLSH`
18572 # On newer macOS, $auto_path frequently doesn't include the place
18573 # where tclConfig.sh actually lives. Append that to the end, so as not
18574 # to break cases where a non-default Tcl installation is being used.
18575 if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then
18576 pgac_test_dirs
="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework"
18578 set X
$pgac_test_dirs; shift
18582 if test -r "$pgac_dir/tclConfig.sh"; then
18583 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
18589 if test -z "$TCL_CONFIG_SH"; then
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18591 $as_echo "no" >&6; }
18592 as_fn_error $?
"file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
18595 $as_echo "$TCL_CONFIG_SH" >&6; }
18601 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
18602 eval TCL_LIBS
=\"$TCL_LIBS\"
18603 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
18604 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
18606 if test "$TCL_SHARED_BUILD" != 1; then
18607 as_fn_error $?
"cannot build PL/Tcl because Tcl is not a shared library
18608 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
18610 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
18611 ac_save_CPPFLAGS
=$CPPFLAGS
18612 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
18613 ac_fn_c_check_header_mongrel
"$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
18614 if test "x$ac_cv_header_tcl_h" = xyes
; then :
18617 as_fn_error $?
"header file <tcl.h> is required for Tcl" "$LINENO" 5
18621 CPPFLAGS
=$ac_save_CPPFLAGS
18624 # check for <perl.h>
18625 if test "$with_perl" = yes; then
18626 ac_save_CPPFLAGS
=$CPPFLAGS
18627 CPPFLAGS
="$CPPFLAGS $perl_includespec"
18628 ac_fn_c_check_header_compile
"$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
18630 if test "x$ac_cv_header_perl_h" = xyes
; then :
18633 as_fn_error $?
"header file <perl.h> is required for Perl" "$LINENO" 5
18637 # While we're at it, check that we can link to libperl.
18638 # On most platforms, if perl.h is there then libperl.so will be too, but at
18639 # this writing Debian packages them separately. There is no known reason to
18640 # waste cycles on separate probes for the Tcl or Python libraries, though.
18641 # On some Red Hat platforms, the link attempt can fail if we don't use
18642 # CFLAGS_SL while building the test program.
18643 ac_save_CFLAGS
=$CFLAGS
18644 CFLAGS
="$CFLAGS $CFLAGS_SL"
18645 pgac_save_LIBS
=$LIBS
18646 LIBS
="$perl_embed_ldflags"
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
18648 $as_echo_n "checking for libperl... " >&6; }
18649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18650 /* end confdefs.h. */
18652 #include <EXTERN.h>
18663 if ac_fn_c_try_link
"$LINENO"; then :
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18665 $as_echo "yes" >&6; }
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18668 $as_echo "no" >&6; }
18669 as_fn_error $?
"libperl library is required for Perl" "$LINENO" 5
18671 rm -f core conftest.err conftest.
$ac_objext \
18672 conftest
$ac_exeext conftest.
$ac_ext
18673 LIBS
=$pgac_save_LIBS
18674 CFLAGS
=$ac_save_CFLAGS
18675 CPPFLAGS
=$ac_save_CPPFLAGS
18678 # check for <Python.h>
18679 if test "$with_python" = yes; then
18680 ac_save_CPPFLAGS
=$CPPFLAGS
18681 CPPFLAGS
="$python_includespec $CPPFLAGS"
18682 ac_fn_c_check_header_mongrel
"$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
18683 if test "x$ac_cv_header_Python_h" = xyes
; then :
18686 as_fn_error $?
"header file <Python.h> is required for Python" "$LINENO" 5
18690 CPPFLAGS
=$ac_save_CPPFLAGS
18694 # Check for documentation-building tools
18696 if test -z "$XMLLINT"; then
18697 for ac_prog
in xmllint
18699 # Extract the first word of "$ac_prog", so it can be a program name with args.
18700 set dummy
$ac_prog; ac_word
=$2
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18702 $as_echo_n "checking for $ac_word... " >&6; }
18703 if ${ac_cv_path_XMLLINT+:} false
; then :
18704 $as_echo_n "(cached) " >&6
18708 ac_cv_path_XMLLINT
="$XMLLINT" # Let the user override the test with a path.
18711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18712 for as_dir
in $PATH
18715 test -z "$as_dir" && as_dir
=.
18716 for ac_exec_ext
in '' $ac_executable_extensions; do
18717 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18718 ac_cv_path_XMLLINT
="$as_dir/$ac_word$ac_exec_ext"
18719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18729 XMLLINT
=$ac_cv_path_XMLLINT
18730 if test -n "$XMLLINT"; then
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18732 $as_echo "$XMLLINT" >&6; }
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18735 $as_echo "no" >&6; }
18739 test -n "$XMLLINT" && break
18743 # Report the value of XMLLINT in configure's output in all cases.
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
18745 $as_echo_n "checking for XMLLINT... " >&6; }
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18747 $as_echo "$XMLLINT" >&6; }
18750 if test -z "$XSLTPROC"; then
18751 for ac_prog
in xsltproc
18753 # Extract the first word of "$ac_prog", so it can be a program name with args.
18754 set dummy
$ac_prog; ac_word
=$2
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18756 $as_echo_n "checking for $ac_word... " >&6; }
18757 if ${ac_cv_path_XSLTPROC+:} false
; then :
18758 $as_echo_n "(cached) " >&6
18762 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
18765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18766 for as_dir
in $PATH
18769 test -z "$as_dir" && as_dir
=.
18770 for ac_exec_ext
in '' $ac_executable_extensions; do
18771 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18772 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
18773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18783 XSLTPROC
=$ac_cv_path_XSLTPROC
18784 if test -n "$XSLTPROC"; then
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18786 $as_echo "$XSLTPROC" >&6; }
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18789 $as_echo "no" >&6; }
18793 test -n "$XSLTPROC" && break
18797 # Report the value of XSLTPROC in configure's output in all cases.
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
18799 $as_echo_n "checking for XSLTPROC... " >&6; }
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18801 $as_echo "$XSLTPROC" >&6; }
18804 if test -z "$FOP"; then
18807 # Extract the first word of "$ac_prog", so it can be a program name with args.
18808 set dummy
$ac_prog; ac_word
=$2
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18810 $as_echo_n "checking for $ac_word... " >&6; }
18811 if ${ac_cv_path_FOP+:} false
; then :
18812 $as_echo_n "(cached) " >&6
18816 ac_cv_path_FOP
="$FOP" # Let the user override the test with a path.
18819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18820 for as_dir
in $PATH
18823 test -z "$as_dir" && as_dir
=.
18824 for ac_exec_ext
in '' $ac_executable_extensions; do
18825 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18826 ac_cv_path_FOP
="$as_dir/$ac_word$ac_exec_ext"
18827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18837 FOP
=$ac_cv_path_FOP
18838 if test -n "$FOP"; then
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18840 $as_echo "$FOP" >&6; }
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18843 $as_echo "no" >&6; }
18847 test -n "$FOP" && break
18851 # Report the value of FOP in configure's output in all cases.
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
18853 $as_echo_n "checking for FOP... " >&6; }
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18855 $as_echo "$FOP" >&6; }
18858 if test -z "$DBTOEPUB"; then
18859 for ac_prog
in dbtoepub
18861 # Extract the first word of "$ac_prog", so it can be a program name with args.
18862 set dummy
$ac_prog; ac_word
=$2
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18864 $as_echo_n "checking for $ac_word... " >&6; }
18865 if ${ac_cv_path_DBTOEPUB+:} false
; then :
18866 $as_echo_n "(cached) " >&6
18870 ac_cv_path_DBTOEPUB
="$DBTOEPUB" # Let the user override the test with a path.
18873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18874 for as_dir
in $PATH
18877 test -z "$as_dir" && as_dir
=.
18878 for ac_exec_ext
in '' $ac_executable_extensions; do
18879 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18880 ac_cv_path_DBTOEPUB
="$as_dir/$ac_word$ac_exec_ext"
18881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18891 DBTOEPUB
=$ac_cv_path_DBTOEPUB
18892 if test -n "$DBTOEPUB"; then
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18894 $as_echo "$DBTOEPUB" >&6; }
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18897 $as_echo "no" >&6; }
18901 test -n "$DBTOEPUB" && break
18905 # Report the value of DBTOEPUB in configure's output in all cases.
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
18907 $as_echo_n "checking for DBTOEPUB... " >&6; }
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18909 $as_echo "$DBTOEPUB" >&6; }
18914 # Check for test tools
18916 if test "$enable_tap_tests" = yes; then
18917 # Make sure we know where prove is.
18918 if test -z "$PROVE"; then
18919 for ac_prog
in prove
18921 # Extract the first word of "$ac_prog", so it can be a program name with args.
18922 set dummy
$ac_prog; ac_word
=$2
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18924 $as_echo_n "checking for $ac_word... " >&6; }
18925 if ${ac_cv_path_PROVE+:} false
; then :
18926 $as_echo_n "(cached) " >&6
18930 ac_cv_path_PROVE
="$PROVE" # Let the user override the test with a path.
18933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18934 for as_dir
in $PATH
18937 test -z "$as_dir" && as_dir
=.
18938 for ac_exec_ext
in '' $ac_executable_extensions; do
18939 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18940 ac_cv_path_PROVE
="$as_dir/$ac_word$ac_exec_ext"
18941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18951 PROVE
=$ac_cv_path_PROVE
18952 if test -n "$PROVE"; then
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18954 $as_echo "$PROVE" >&6; }
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18957 $as_echo "no" >&6; }
18961 test -n "$PROVE" && break
18965 # Report the value of PROVE in configure's output in all cases.
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
18967 $as_echo_n "checking for PROVE... " >&6; }
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18969 $as_echo "$PROVE" >&6; }
18972 if test -z "$PROVE"; then
18973 as_fn_error $?
"prove not found" "$LINENO" 5
18975 # Check for necessary Perl modules. You might think we should use
18976 # AX_PROG_PERL_MODULES here, but prove might be part of a different Perl
18977 # installation than perl, eg on MSys, so we have to check using prove.
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl modules required for TAP tests" >&5
18979 $as_echo_n "checking for Perl modules required for TAP tests... " >&6; }
18980 __CONFIG_HOST_OS__
=$host_os; export __CONFIG_HOST_OS__
18981 modulestderr
=`"$PROVE" "$srcdir/config/check_modules.pl" 2>&1 >/dev/null`
18982 if test $?
-eq 0; then
18983 # log the module version details, but don't show them interactively
18984 echo "$modulestderr" >&5
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18986 $as_echo "yes" >&6; }
18988 # on failure, though, show the results to the user
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $modulestderr" >&5
18990 $as_echo "$modulestderr" >&6; }
18991 as_fn_error $?
"Additional Perl modules are required to run TAP tests" "$LINENO" 5
18995 # If compiler will take -Wl,--as-needed (or various platform-specific
18996 # spellings thereof) then add that to LDFLAGS. This is much easier than
18997 # trying to filter LIBS to the minimum for each executable.
18998 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
18999 # libreadline; therefore we postpone testing it until we know what library
19000 # dependencies readline has. The test code will try to link with $LIBS.
19001 if test "$with_readline" = yes; then
19002 link_test_func
=readline
19004 link_test_func
=exit
19007 if test "$PORTNAME" = "darwin"; then
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs, for LDFLAGS" >&5
19009 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs, for LDFLAGS... " >&6; }
19010 if ${pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs+:} false
; then :
19011 $as_echo_n "(cached) " >&6
19013 pgac_save_LDFLAGS
=$LDFLAGS
19014 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
19015 if test "$cross_compiling" = yes; then :
19016 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
="assuming no"
19018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19019 /* end confdefs.h. */
19020 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19029 if ac_fn_c_try_run
"$LINENO"; then :
19030 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
=yes
19032 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
=no
19034 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19035 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19038 LDFLAGS
="$pgac_save_LDFLAGS"
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" >&5
19041 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" >&6; }
19042 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" = x
"yes"; then
19043 LDFLAGS
="${LDFLAGS} -Wl,-dead_strip_dylibs"
19047 elif test "$PORTNAME" = "openbsd"; then
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic, for LDFLAGS" >&5
19049 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic, for LDFLAGS... " >&6; }
19050 if ${pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic+:} false
; then :
19051 $as_echo_n "(cached) " >&6
19053 pgac_save_LDFLAGS
=$LDFLAGS
19054 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-Bdynamic"
19055 if test "$cross_compiling" = yes; then :
19056 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
="assuming no"
19058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19059 /* end confdefs.h. */
19060 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19069 if ac_fn_c_try_run
"$LINENO"; then :
19070 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
=yes
19072 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
=no
19074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19075 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19078 LDFLAGS
="$pgac_save_LDFLAGS"
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" >&5
19081 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" >&6; }
19082 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" = x
"yes"; then
19083 LDFLAGS
="${LDFLAGS} -Wl,-Bdynamic"
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed, for LDFLAGS" >&5
19089 $as_echo_n "checking whether $CC supports -Wl,--as-needed, for LDFLAGS... " >&6; }
19090 if ${pgac_cv_prog_cc_LDFLAGS__Wl___as_needed+:} false
; then :
19091 $as_echo_n "(cached) " >&6
19093 pgac_save_LDFLAGS
=$LDFLAGS
19094 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
19095 if test "$cross_compiling" = yes; then :
19096 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
="assuming no"
19098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19099 /* end confdefs.h. */
19100 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19109 if ac_fn_c_try_run
"$LINENO"; then :
19110 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
=yes
19112 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
=no
19114 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19115 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19118 LDFLAGS
="$pgac_save_LDFLAGS"
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" >&5
19121 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" >&6; }
19122 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" = x
"yes"; then
19123 LDFLAGS
="${LDFLAGS} -Wl,--as-needed"
19129 # For linkers that understand --export-dynamic, add that to the LDFLAGS_EX_BE
19130 # (backend specific ldflags). One some platforms this will always fail (e.g.,
19131 # windows), but on others it depends on the choice of linker (e.g., solaris).
19132 # macOS uses -export_dynamic instead. (On macOS, the option is only
19133 # needed when also using -flto, but we add it anyway since it's
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--export-dynamic, for LDFLAGS_EX_BE" >&5
19136 $as_echo_n "checking whether $CC supports -Wl,--export-dynamic, for LDFLAGS_EX_BE... " >&6; }
19137 if ${pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic+:} false
; then :
19138 $as_echo_n "(cached) " >&6
19140 pgac_save_LDFLAGS
=$LDFLAGS
19141 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--export-dynamic"
19142 if test "$cross_compiling" = yes; then :
19143 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
="assuming no"
19145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19146 /* end confdefs.h. */
19147 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19156 if ac_fn_c_try_run
"$LINENO"; then :
19157 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
=yes
19159 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
=no
19161 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19162 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19165 LDFLAGS
="$pgac_save_LDFLAGS"
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" >&5
19168 $as_echo "$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" >&6; }
19169 if test x
"$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" = x
"yes"; then
19170 LDFLAGS_EX_BE
="${LDFLAGS_EX_BE} -Wl,--export-dynamic"
19173 if test x
"$LDFLAGS_EX_BE" = x
""; then
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-export_dynamic, for LDFLAGS_EX_BE" >&5
19175 $as_echo_n "checking whether $CC supports -Wl,-export_dynamic, for LDFLAGS_EX_BE... " >&6; }
19176 if ${pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic+:} false
; then :
19177 $as_echo_n "(cached) " >&6
19179 pgac_save_LDFLAGS
=$LDFLAGS
19180 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-export_dynamic"
19181 if test "$cross_compiling" = yes; then :
19182 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic
="assuming no"
19184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h. */
19186 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19195 if ac_fn_c_try_run
"$LINENO"; then :
19196 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic
=yes
19198 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic
=no
19200 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19201 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19204 LDFLAGS
="$pgac_save_LDFLAGS"
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic" >&5
19207 $as_echo "$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic" >&6; }
19208 if test x
"$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic" = x
"yes"; then
19209 LDFLAGS_EX_BE
="${LDFLAGS_EX_BE} -Wl,-export_dynamic"
19215 # Create compiler version string
19216 if test x
"$GCC" = x
"yes" ; then
19217 cc_string
=`${CC} --version | sed q`
19218 case $cc_string in [A-Za-z
]*) ;; *) cc_string
="GCC $cc_string";; esac
19219 elif test x
"$SUN_STUDIO_CC" = x
"yes" ; then
19220 cc_string
=`${CC} -V 2>&1 | sed q`
19226 cat >>confdefs.h
<<_ACEOF
19227 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
19231 # Supply a numeric version string for use by 3rd party add-ons
19232 # awk -F is a regex on some platforms, and not on others, so make "." a tab
19233 PG_VERSION_NUM
="`echo $PG_MAJORVERSION $PG_MINORVERSION |
19234 $AWK '{printf "%d
%04d
", $1, $2}'`"
19236 cat >>confdefs.h
<<_ACEOF
19237 #define PG_VERSION_NUM $PG_VERSION_NUM
19242 # If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not
19243 # literally, so that it's possible to override it at build time using
19244 # a command like "make ... PG_SYSROOT=path". This has to be done after
19245 # we've finished all configure checks that depend on CPPFLAGS.
19246 # The same for LDFLAGS, too.
19247 if test x
"$PG_SYSROOT" != x
; then
19248 CPPFLAGS
=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19249 LDFLAGS
=`echo "$LDFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19254 # Begin output steps
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
19257 $as_echo "$as_me: using compiler=$cc_string" >&6;}
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
19259 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
19261 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
19263 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
19264 # Currently only used when LLVM is used
19265 if test "$with_llvm" = yes ; then
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5
19267 $as_echo "$as_me: using CXX=$CXX" >&6;}
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5
19269 $as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5
19271 $as_echo "$as_me: using CLANG=$CLANG" >&6;}
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5
19273 $as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;}
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5
19275 $as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;}
19278 # prepare build tree if outside source tree
19279 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
19280 # Note 2: /bin/pwd might be better than shell's built-in at getting
19281 # a symlink-free name.
19282 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
19286 if test "$no_create" != yes; then
19287 $as_echo_n "preparing build tree... " >&6
19288 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
19289 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
19290 || as_fn_error $?
"failed" "$LINENO" 5
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19292 $as_echo "done" >&6; }
19298 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
19301 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}"
19304 if test "$PORTNAME" = "win32"; then
19305 ac_config_commands
="$ac_config_commands check_win32_symlinks"
19309 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
19312 ac_config_headers
="$ac_config_headers src/include/pg_config_ext.h"
19315 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
19318 cat >confcache
<<\_ACEOF
19319 # This file is a shell script that caches the results of configure
19320 # tests run on this system so they can be shared between configure
19321 # scripts and configure runs, see configure's option --config-cache.
19322 # It is not useful on other systems. If it contains results you don't
19323 # want to keep, you may remove or edit it.
19325 # config.status only pays attention to the cache file if you give it
19326 # the --recheck option to rerun configure.
19328 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19329 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19330 # following values.
19334 # The following way of writing the cache mishandles newlines in values,
19335 # but we know of no workaround that is simple, portable, and efficient.
19336 # So, we kill variables containing newlines.
19337 # Ultrix sh set writes to stderr and can't be redirected directly,
19338 # and sets the high bit in the cache file unless we assign to the vars.
19340 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19341 eval ac_val
=\$
$ac_var
19345 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19346 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19349 _ | IFS | as_nl
) ;; #(
19350 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19351 *) { eval $ac_var=; unset $ac_var;} ;;
19357 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19358 *${as_nl}ac_space
=\
*)
19359 # `set' does not quote correctly, so add quotes: double-quote
19360 # substitution turns \\\\ into \\, and sed turns \\ into \.
19363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19366 # `set' quotes correctly as required by POSIX, so do not add quotes.
19367 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19376 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19378 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19380 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19381 if test -w "$cache_file"; then
19382 if test "x$cache_file" != "x/dev/null"; then
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19384 $as_echo "$as_me: updating cache $cache_file" >&6;}
19385 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19386 cat confcache
>"$cache_file"
19388 case $cache_file in #(
19390 mv -f confcache
"$cache_file"$$
&&
19391 mv -f "$cache_file"$$
"$cache_file" ;; #(
19393 mv -f confcache
"$cache_file" ;;
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19399 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19404 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19405 # Let make expand exec_prefix.
19406 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19408 DEFS
=-DHAVE_CONFIG_H
19413 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19414 # 1. Remove the extension, and $U if already installed.
19415 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19416 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19417 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19418 # will be set to the directory where LIBOBJS objects are built.
19419 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19420 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19422 LIBOBJS
=$ac_libobjs
19424 LTLIBOBJS
=$ac_ltlibobjs
19429 : "${CONFIG_STATUS=./config.status}"
19431 ac_clean_files_save
=$ac_clean_files
19432 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19434 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19436 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19438 # Generated by $as_me.
19439 # Run this file to recreate the current configuration.
19440 # Compiler output produced by configure, useful for debugging
19441 # configure, is in config.log if it exists.
19444 ac_cs_recheck=false
19447 SHELL=\${CONFIG_SHELL-$SHELL}
19450 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19451 ## -------------------- ##
19452 ## M4sh Initialization. ##
19453 ## -------------------- ##
19455 # Be more Bourne compatible
19456 DUALCASE
=1; export DUALCASE
# for MKS sh
19457 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19460 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19461 # is contrary to our usage. Disable this feature.
19462 alias -g '${1+"$@"}'='"$@"'
19463 setopt NO_GLOB_SUBST
19465 case `(set -o) 2>/dev/null` in #(
19477 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19478 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19479 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19480 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19481 # Prefer a ksh shell builtin over an external printf program on Solaris,
19482 # but without wasting forks for bash or zsh.
19483 if test -z "$BASH_VERSION$ZSH_VERSION" \
19484 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19485 as_echo='print
-r --'
19486 as_echo_n='print
-rn --'
19487 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19488 as_echo='printf %s
\n'
19489 as_echo_n='printf %s
'
19491 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19492 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19493 as_echo_n='/usr
/ucb
/echo -n'
19495 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19496 as_echo_n_body='eval
19500 expr "X$arg" : "X\\(.*\\)$as_nl";
19501 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19503 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19505 export as_echo_n_body
19506 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19508 export as_echo_body
19509 as_echo='sh
-c $as_echo_body as_echo
'
19512 # The user is always right.
19513 if test "${PATH_SEPARATOR+set}" != set; then
19515 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19516 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19523 # We need space, tab and new line, in precisely that order. Quoting is
19524 # there to prevent editors from complaining about space-tab.
19525 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19526 # splitting by setting IFS to empty value.)
19529 # Find who we are. Look in the path if we contain no directory separator.
19532 *[\\/]* ) as_myself=$0 ;;
19533 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19534 for as_dir in $PATH
19537 test -z "$as_dir" && as_dir=.
19538 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19544 # We did not find ourselves, most probably we were run as `sh COMMAND'
19545 # in which case we are not to be found in the path.
19546 if test "x$as_myself" = x
; then
19549 if test ! -f "$as_myself"; then
19550 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19554 # Unset variables that we do not need and which cause bugs (e.g. in
19555 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19556 # suppresses any "Segmentation fault" message there. '((' could
19557 # trigger a bug in pdksh 5.2.14.
19558 for as_var
in BASH_ENV ENV MAIL MAILPATH
19559 do eval test x\
${$as_var+set} = xset \
19560 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19573 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19576 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19577 # ----------------------------------------
19578 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19579 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19580 # script with STATUS, using 1 if that was 0.
19583 as_status
=$1; test $as_status -eq 0 && as_status
=1
19585 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19586 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19588 $as_echo "$as_me: error: $2" >&2
19589 as_fn_exit
$as_status
19593 # as_fn_set_status STATUS
19594 # -----------------------
19595 # Set $? to STATUS, without forking.
19596 as_fn_set_status
()
19599 } # as_fn_set_status
19601 # as_fn_exit STATUS
19602 # -----------------
19603 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19607 as_fn_set_status
$1
19613 # Portably unset VAR.
19616 { eval $1=; unset $1;}
19618 as_unset
=as_fn_unset
19619 # as_fn_append VAR VALUE
19620 # ----------------------
19621 # Append the text in VALUE to the end of the definition contained in VAR. Take
19622 # advantage of any shell optimizations that allow amortized linear growth over
19623 # repeated appends, instead of the typical quadratic growth present in naive
19625 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19626 eval 'as_fn_append ()
19637 # as_fn_arith ARG...
19638 # ------------------
19639 # Perform arithmetic evaluation on the ARGs, and store the result in the
19640 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19641 # must be portable across $(()) and expr.
19642 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19643 eval 'as_fn_arith ()
19650 as_val
=`expr "$@" || test $? -eq 1`
19655 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19656 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19662 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19663 as_basename
=basename
19668 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19674 as_me
=`$as_basename -- "$0" ||
19675 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19676 X"$0" : 'X\(//\)$' \| \
19677 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19679 sed '/^.*\/\([^/][^/]*\)\/*$/{
19693 # Avoid depending upon Character Ranges.
19694 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19695 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19696 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19697 as_cr_digits
='0123456789'
19698 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19700 ECHO_C
= ECHO_N
= ECHO_T
=
19701 case `echo -n x` in #(((((
19703 case `echo 'xy\c'` in
19704 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19706 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19713 rm -f conf$$ conf$$.exe conf$$.
file
19714 if test -d conf$$.dir
; then
19715 rm -f conf$$.dir
/conf$$.
file
19718 mkdir conf$$.dir
2>/dev
/null
19720 if (echo >conf$$.
file) 2>/dev
/null
; then
19721 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19723 # ... but there are two gotchas:
19724 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19725 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19726 # In both cases, we have to default to `cp -pR'.
19727 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19729 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19737 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19738 rmdir conf$$.dir
2>/dev
/null
19743 # Create "$as_dir" as a directory, including parents if necessary.
19748 -*) as_dir
=.
/$as_dir;;
19750 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19754 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19755 *) as_qdir
=$as_dir;;
19757 as_dirs
="'$as_qdir' $as_dirs"
19758 as_dir
=`$as_dirname -- "$as_dir" ||
19759 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19760 X"$as_dir" : 'X\(//\)[^/]' \| \
19761 X"$as_dir" : 'X\(//\)$' \| \
19762 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19763 $as_echo X"$as_dir" |
19764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19768 /^X\(\/\/\)[^/].*/{
19781 test -d "$as_dir" && break
19783 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19784 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19788 if mkdir
-p .
2>/dev
/null
; then
19789 as_mkdir_p
='mkdir -p "$as_dir"'
19791 test -d .
/-p && rmdir .
/-p
19796 # as_fn_executable_p FILE
19797 # -----------------------
19798 # Test if FILE is an executable regular file.
19799 as_fn_executable_p
()
19801 test -f "$1" && test -x "$1"
19802 } # as_fn_executable_p
19803 as_test_x
='test -x'
19804 as_executable_p
=as_fn_executable_p
19806 # Sed expression to map a string onto a valid CPP name.
19807 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19809 # Sed expression to map a string onto a valid variable name.
19810 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19814 ## ----------------------------------- ##
19815 ## Main body of $CONFIG_STATUS script. ##
19816 ## ----------------------------------- ##
19818 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19821 # Save the log message, to keep $0 and so on meaningful, and to
19822 # report actual input values of CONFIG_FILES etc. instead of their
19823 # values after options handling.
19825 This file was extended by PostgreSQL $as_me 18devel, which was
19826 generated by GNU Autoconf 2.69. Invocation command line was
19828 CONFIG_FILES = $CONFIG_FILES
19829 CONFIG_HEADERS = $CONFIG_HEADERS
19830 CONFIG_LINKS = $CONFIG_LINKS
19831 CONFIG_COMMANDS = $CONFIG_COMMANDS
19834 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19839 case $ac_config_files in *"
19840 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19843 case $ac_config_headers in *"
19844 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19849 # Files that config.status was made for.
19850 config_files="$ac_config_files"
19851 config_headers="$ac_config_headers"
19852 config_links="$ac_config_links"
19853 config_commands="$ac_config_commands"
19857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19859 \`$as_me' instantiates files and other configuration actions
19860 from templates according to the current configuration. Unless the files
19861 and actions are specified as TAGs, all are instantiated by default.
19863 Usage: $0 [OPTION]... [TAG]...
19865 -h, --help print this help, then exit
19866 -V, --version print version number and configuration settings, then exit
19867 --config print configuration, then exit
19868 -q, --quiet, --silent
19869 do not print progress messages
19870 -d, --debug don't remove temporary files
19871 --recheck update $as_me by reconfiguring in the same conditions
19872 --file=FILE[:TEMPLATE]
19873 instantiate the configuration file FILE
19874 --header=FILE[:TEMPLATE]
19875 instantiate the configuration header FILE
19877 Configuration files:
19880 Configuration headers:
19883 Configuration links:
19886 Configuration commands:
19889 Report bugs to <pgsql-bugs@lists.postgresql.org>.
19890 PostgreSQL home page: <https://www.postgresql.org/>."
19893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19894 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19896 PostgreSQL config.status 18devel
19897 configured by $0, generated by GNU Autoconf 2.69,
19898 with options \\"\$ac_cs_config\\"
19900 Copyright (C) 2012 Free Software Foundation, Inc.
19901 This config.status script is free software; the Free Software Foundation
19902 gives unlimited permission to copy, distribute and modify it."
19909 test -n "\$AWK" || AWK=awk
19912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19913 # The default lists apply if the user does not specify any file.
19919 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19920 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19924 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19936 # Handling of the options.
19937 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19939 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19940 $as_echo "$ac_cs_version"; exit ;;
19941 --config |
--confi |
--conf |
--con |
--co |
--c )
19942 $as_echo "$ac_cs_config"; exit ;;
19943 --debug |
--debu |
--deb |
--de |
--d |
-d )
19945 --file |
--fil |
--fi |
--f )
19948 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19949 '') as_fn_error $?
"missing file argument" ;;
19951 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19952 ac_need_defaults
=false
;;
19953 --header |
--heade |
--head |
--hea )
19956 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19958 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19959 ac_need_defaults
=false
;;
19961 # Conflict between --help and --header
19962 as_fn_error $?
"ambiguous option: \`$1'
19963 Try \`$0 --help' for more information.";;
19964 --help |
--hel |
-h )
19965 $as_echo "$ac_cs_usage"; exit ;;
19966 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19967 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19970 # This is an error.
19971 -*) as_fn_error $?
"unrecognized option: \`$1'
19972 Try \`$0 --help' for more information." ;;
19974 *) as_fn_append ac_config_targets
" $1"
19975 ac_need_defaults
=false
;;
19981 ac_configure_extra_args
=
19983 if $ac_cs_silent; then
19985 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19990 if \$ac_cs_recheck; then
19991 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19993 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19994 CONFIG_SHELL='$SHELL'
19995 export CONFIG_SHELL
20000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20004 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20005 ## Running $as_me. ##
20011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20016 # Handling of arguments.
20017 for ac_config_target
in $ac_config_targets
20019 case $ac_config_target in
20020 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
20021 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
20022 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
20023 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
20024 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
20025 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
20026 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
20027 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
20028 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
20029 "src/include/pg_config_ext.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
20030 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
20032 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20037 # If the user did not use the arguments to specify the items to instantiate,
20038 # then the envvar interface is used. Set only those that are not.
20039 # We use the long form for the default assignment because of an extremely
20040 # bizarre bug on SunOS 4.1.3.
20041 if $ac_need_defaults; then
20042 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20043 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20044 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20045 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20048 # Have a temporary directory for convenience. Make it in the build tree
20049 # simply because there is no reason against having it here, and in addition,
20050 # creating and moving files from /tmp can sometimes cause problems.
20051 # Hook for its removal unless debugging.
20052 # Note that there is a small window in which the directory will not be cleaned:
20053 # after its creation but before its name has been assigned to `$tmp'.
20057 trap 'exit_status=$?
20058 : "${ac_tmp:=$tmp}"
20059 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20061 trap 'as_fn_exit 1' 1 2 13 15
20063 # Create a (secure) tmp directory for tmp files.
20066 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20070 tmp
=.
/conf$$
-$RANDOM
20071 (umask 077 && mkdir
"$tmp")
20072 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20075 # Set up the scripts for CONFIG_FILES section.
20076 # No need to generate them if there are no CONFIG_FILES.
20077 # This happens for instance with `./config.status config.h'.
20078 if test -n "$CONFIG_FILES"; then
20081 ac_cr
=`echo X | tr X '\015'`
20082 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20083 # But we know of no other shell where ac_cr would be empty at this
20084 # point, so we can use a bashism as a fallback.
20085 if test "x$ac_cr" = x
; then
20086 eval ac_cr
=\$
\'\\r
\'
20088 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20089 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20092 ac_cs_awk_cr
=$ac_cr
20095 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20100 echo "cat >conf$$subs.awk <<_ACEOF" &&
20101 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20103 } >conf$$subs.sh ||
20104 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20105 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20107 for ac_last_try in false false false false false :; do
20108 . ./conf$$subs.sh ||
20109 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20111 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20112 if test $ac_delim_n = $ac_delim_num; then
20114 elif $ac_last_try; then
20115 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20117 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20120 rm -f conf$$subs.sh
20122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20123 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20127 s/^/S["/; s
/!.
*/"]=/
20137 s/\(.\{148\}\)..*/\1/
20139 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20144 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20151 s/\(.\{148\}\)..*/\1/
20153 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20157 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20162 ' <conf$$subs.awk | sed '
20167 ' >>$CONFIG_STATUS || ac_write_fail=1
20168 rm -f conf$$subs.awk
20169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20171 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20172 for (key in S) S_is_set[key] = 1
20178 nfields = split(line, field, "@
")
20180 len = length(field[1])
20181 for (i = 2; i < nfields; i++) {
20183 keylen = length(key)
20184 if (S_is_set[key]) {
20186 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20187 len += length(value) + length(field[++i])
20198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20199 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20200 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20203 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20204 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20207 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20208 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20209 # trailing colons and then remove the whole line if VPATH becomes empty
20210 # (actually we leave an empty line to preserve line numbers).
20211 if test "x
$srcdir" = x.; then
20212 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20231 fi # test -n "$CONFIG_FILES"
20233 # Set up the scripts for CONFIG_HEADERS section.
20234 # No need to generate them if there are no CONFIG_HEADERS.
20235 # This happens for instance with `./config.status Makefile'.
20236 if test -n "$CONFIG_HEADERS"; then
20237 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20241 # Transform confdefs.h into an awk script `defines.awk', embedded as
20242 # here-document in config.status, that substitutes the proper values into
20243 # config.h.in to produce config.h.
20245 # Create a delimiter string that does not exist in confdefs.h, to ease
20246 # handling of long lines.
20248 for ac_last_try in false false :; do
20249 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20250 if test -z "$ac_tt"; then
20252 elif $ac_last_try; then
20253 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20255 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20259 # For the awk script, D is an array of macro values keyed by name,
20260 # likewise P contains macro parameters if any. Preserve backslash
20261 # newline sequences.
20263 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20265 s/.\{148\}/&'"$ac_delim"'/g
20268 s/^[ ]*#[ ]*define[ ][ ]*/ /
20275 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20277 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20281 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20282 D["\
1"]=" \
3\\\\\\n
"\\/p
20284 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20289 s/.\{148\}/&'"$ac_delim"'/g
20294 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20297 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20299 ' <confdefs.h | sed '
20300 s/'"$ac_delim"'/"\\\
20301 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20304 for (key in D) D_is_set[key] = 1
20307 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20309 split(line, arg, " ")
20310 if (arg[1] == "#") {
20314 defundef
= substr
(arg
[1], 2)
20317 split(mac1
, mac2
, "(") #)
20319 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20320 if (D_is_set
[macro
]) {
20321 # Preserve the white space surrounding the "#".
20322 print prefix
"define", macro P
[macro
] D
[macro
]
20325 # Replace #undef with comments. This is necessary, for example,
20326 # in the case of _POSIX_SOURCE, which is predefined and required
20327 # on some systems where configure will not decide to define it.
20328 if (defundef
== "undef") {
20329 print
"/*", prefix defundef
, macro
, "*/"
20337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20338 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20339 fi # test -n "$CONFIG_HEADERS"
20342 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20347 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20349 case $ac_mode$ac_tag in
20351 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20352 :[FH
]-) ac_tag
=-:-;;
20353 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20370 -) ac_f
="$ac_tmp/stdin";;
20371 *) # Look for the file first in the build tree, then in the source tree
20372 # (if the path is not absolute). The absolute path cannot be DOS-style,
20373 # because $ac_f cannot contain `:'.
20377 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20379 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20381 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20382 as_fn_append ac_file_inputs
" '$ac_f'"
20385 # Let's still pretend it is `configure' which instantiates (i.e., don't
20386 # use $as_me), people would be surprised to read:
20387 # /* config.h. Generated by config.status. */
20388 configure_input
='Generated from '`
20389 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20391 if test x
"$ac_file" != x-
; then
20392 configure_input
="$ac_file. $configure_input"
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20394 $as_echo "$as_me: creating $ac_file" >&6;}
20396 # Neutralize special characters interpreted by sed in replacement strings.
20397 case $configure_input in #(
20398 *\
&* |
*\|
* |
*\\* )
20399 ac_sed_conf_input
=`$as_echo "$configure_input" |
20400 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20401 *) ac_sed_conf_input
=$configure_input;;
20405 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20406 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20411 ac_dir
=`$as_dirname -- "$ac_file" ||
20412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20413 X"$ac_file" : 'X\(//\)[^/]' \| \
20414 X"$ac_file" : 'X\(//\)$' \| \
20415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20416 $as_echo X"$ac_file" |
20417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20421 /^X\(\/\/\)[^/].*/{
20434 as_dir
="$ac_dir"; as_fn_mkdir_p
20438 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20440 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20441 # A ".." for each directory in $ac_dir_suffix.
20442 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20443 case $ac_top_builddir_sub in
20444 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20445 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20448 ac_abs_top_builddir
=$ac_pwd
20449 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20450 # for backward compatibility:
20451 ac_top_builddir
=$ac_top_build_prefix
20454 .
) # We are building in place.
20456 ac_top_srcdir
=$ac_top_builddir_sub
20457 ac_abs_top_srcdir
=$ac_pwd ;;
20458 [\\/]* | ?
:[\\/]* ) # Absolute name.
20459 ac_srcdir
=$srcdir$ac_dir_suffix;
20460 ac_top_srcdir
=$srcdir
20461 ac_abs_top_srcdir
=$srcdir ;;
20462 *) # Relative name.
20463 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20464 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20465 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20467 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20477 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20478 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20480 ac_MKDIR_P
=$MKDIR_P
20482 [\\/$
]* | ?
:[\\/]* ) ;;
20483 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20488 # If the template does not know about datarootdir, expand it.
20489 # FIXME: This hack should be removed a few years after 2.60.
20490 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20501 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20502 *datarootdir
*) ac_datarootdir_seen
=yes;;
20503 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20505 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20508 ac_datarootdir_hack='
20509 s&@datadir@&$datadir&g
20510 s&@docdir@&$docdir&g
20511 s&@infodir@&$infodir&g
20512 s&@localedir@&$localedir&g
20513 s&@mandir@&$mandir&g
20514 s&\\\${datarootdir}&$datarootdir&g' ;;
20518 # Neutralize VPATH when `$srcdir' = `.'.
20519 # Shell code in configure.ac might set extrasub.
20520 # FIXME: do we really want to maintain this feature?
20521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20522 ac_sed_extra="$ac_vpsub
20525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20527 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20528 s|@configure_input@|
$ac_sed_conf_input|
;t t
20529 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20530 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20531 s
&@srcdir@
&$ac_srcdir&;t t
20532 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20533 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20534 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20535 s
&@builddir@
&$ac_builddir&;t t
20536 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20537 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20538 s
&@INSTALL@
&$ac_INSTALL&;t t
20539 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20540 $ac_datarootdir_hack
20542 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
20543 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20545 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20546 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20547 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20548 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20550 which seems to be undefined. Please make sure it is defined" >&5
20551 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20552 which seems to be undefined. Please make sure it is defined" >&2;}
20554 rm -f "$ac_tmp/stdin"
20556 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20557 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20565 if test x"$ac_file" != x-; then
20567 $as_echo "/* $configure_input */" \
20568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20569 } >"$ac_tmp/config.h" \
20570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20571 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20573 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20576 mv "$ac_tmp/config.h" "$ac_file" \
20577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20580 $as_echo "/* $configure_input */" \
20581 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20582 || as_fn_error $? "could not create -" "$LINENO" 5
20590 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20593 # Prefer the file from the source tree if names are identical.
20594 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20595 ac_source=$srcdir/$ac_source
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20599 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20601 if test ! -r "$ac_source"; then
20602 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20606 # Try a relative symlink, then a hard link, then a copy.
20608 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20609 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20611 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20612 ln "$ac_source" "$ac_file" 2>/dev/null ||
20613 cp -p "$ac_source" "$ac_file" ||
20614 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20617 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20618 $as_echo "$as_me: executing $ac_file commands" >&6;}
20623 case $ac_file$ac_mode in
20624 "check_win32_symlinks":C)
20625 # Links sometimes fail undetected on Mingw -
20626 # so here we detect it and warn the user
20627 for FILE in $CONFIG_LINKS
20629 # test -e works for symlinks in the MinGW console
20630 test -e `expr "$FILE" : '\
([^
:]*\
)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
20631 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
20634 "src/include/pg_config.h":H)
20635 # Update timestamp for pg_config.h (see Makefile.global)
20636 echo >src/include/stamp-h
20638 "src/include/pg_config_ext.h":H)
20639 # Update timestamp for pg_config_ext.h (see Makefile.global)
20640 echo >src/include/stamp-ext-h
20642 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
20650 ac_clean_files=$ac_clean_files_save
20652 test $ac_write_fail = 0 ||
20653 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20656 # configure is writing to config.log, and then calls config.status.
20657 # config.status does its own redirection, appending to config.log.
20658 # Unfortunately, on DOS this fails, as config.log is still kept open
20659 # by configure, so config.status won't be able to
write to it
; its
20660 # output is simply discarded. So we exec the FD to /dev/null,
20661 # effectively closing config.log, so it can be properly (re)opened and
20662 # appended to by config.status. When coming back to configure, we
20663 # need to make the FD available again.
20664 if test "$no_create" != yes; then
20666 ac_config_status_args
=
20667 test "$silent" = yes &&
20668 ac_config_status_args
="$ac_config_status_args --quiet"
20670 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20672 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20673 # would make configure fail if this is the last instruction.
20674 $ac_cs_success || as_fn_exit
1
20676 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20678 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20682 # Ensure that any meson build directories would reconfigure and see that
20683 # there's a conflicting in-tree build and can error out.
20684 if test "$vpath_build" = "no"; then