2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 12.11.
5 # Report bugs to <pgsql-bugs@lists.postgresql.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
14 # Copyright (c) 1996-2019, PostgreSQL Global Development Group
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
142 _as_can_reexec
=no
; export _as_can_reexec
;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
149 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
151 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec
=; unset _as_can_reexec
;}
164 if test "x$CONFIG_SHELL" = x
; then
165 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
173 case \`(set -o) 2>/dev/null\` in #(
181 as_required
="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
195 exitcode=1; echo positional parameters were not saved.
197 test x\$exitcode = x0 || exit 1
199 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test \$(( 1 + 1 )) = 2 || exit 1"
204 if (eval "$as_required") 2>/dev
/null
; then :
209 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
214 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
217 test -z "$as_dir" && as_dir
=.
221 for as_base
in sh bash ksh sh5
; do
222 # Try only shells that exist, to save several forks.
223 as_shell
=$as_dir/$as_base
224 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
225 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
226 CONFIG_SHELL
=$as_shell as_have_required
=yes
227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
235 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
236 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
237 CONFIG_SHELL
=$SHELL as_have_required
=yes
242 if test "x$CONFIG_SHELL" != x
; then :
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
250 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
252 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed `exec'.
260 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
264 if test x
$as_have_required = xno
; then :
265 $as_echo "$0: This script requires a shell more modern than all"
266 $as_echo "$0: the shells that I found on your system."
267 if test x
${ZSH_VERSION+set} = xset
; then
268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
271 $as_echo "$0: Please tell bug-autoconf@gnu.org and
272 $0: pgsql-bugs@lists.postgresql.org about your system,
273 $0: including any error possibly output before this
274 $0: message. Then install a modern shell, or manually run
275 $0: the script under such a shell if you do have one."
281 SHELL
=${CONFIG_SHELL-/bin/sh}
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE
= GREP_OPTIONS
=
285 unset CLICOLOR_FORCE GREP_OPTIONS
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
292 # Portably unset VAR.
295 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 # Create "$as_dir" as a directory, including parents if necessary.
324 -*) as_dir
=.
/$as_dir;;
326 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
330 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 as_dirs
="'$as_qdir' $as_dirs"
334 as_dir
=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 $as_echo X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 test -d "$as_dir" && break
359 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
360 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p
()
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
379 eval 'as_fn_append ()
392 # Perform arithmetic evaluation on the ARGs, and store the result in the
393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
394 # must be portable across $(()) and expr.
395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
403 as_val
=`expr "$@" || test $? -eq 1`
408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
409 # ----------------------------------------
410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412 # script with STATUS, using 1 if that was 0.
415 as_status
=$1; test $as_status -eq 0 && as_status
=1
417 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
420 $as_echo "$as_me: error: $2" >&2
421 as_fn_exit
$as_status
424 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
425 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
431 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
443 as_me
=`$as_basename -- "$0" ||
444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445 X"$0" : 'X\(//\)$' \| \
446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
448 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 # Avoid depending upon Character Ranges.
463 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
464 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
466 as_cr_digits
='0123456789'
467 as_cr_alnum
=$as_cr_Letters$as_cr_digits
470 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
471 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 chmod +x
"$as_me.lineno" ||
491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494 # already done that, so ensure we don't try to do so again and fall
495 # in an infinite loop. This has already happened in practice.
496 _as_can_reexec
=no
; export _as_can_reexec
497 # Don't try to exec as it changes $[0], causing all sort of problems
498 # (the dirname of $[0] is not the place where we might find the
499 # original and so on. Autoconf is especially sensitive to this).
501 # Exit status is that of the last command.
505 ECHO_C
= ECHO_N
= ECHO_T
=
506 case `echo -n x` in #(((((
508 case `echo 'xy\c'` in
509 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
511 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
518 rm -f conf$$ conf$$.exe conf$$.
file
519 if test -d conf$$.dir
; then
520 rm -f conf$$.dir
/conf$$.
file
523 mkdir conf$$.dir
2>/dev
/null
525 if (echo >conf$$.
file) 2>/dev
/null
; then
526 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
528 # ... but there are two gotchas:
529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
531 # In both cases, we have to default to `cp -pR'.
532 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
534 elif ln conf$$.
file conf$$
2>/dev
/null
; then
542 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
543 rmdir conf$$.dir
2>/dev
/null
545 if mkdir
-p .
2>/dev
/null
; then
546 as_mkdir_p
='mkdir -p "$as_dir"'
548 test -d .
/-p && rmdir .
/-p
553 as_executable_p
=as_fn_executable_p
555 # Sed expression to map a string onto a valid CPP name.
556 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558 # Sed expression to map a string onto a valid variable name.
559 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
566 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
567 # so uname gets run too.
568 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
573 ac_default_prefix
=/usr
/local
575 ac_config_libobj_dir
=.
582 # Identity of this package.
583 PACKAGE_NAME
='PostgreSQL'
584 PACKAGE_TARNAME
='postgresql'
585 PACKAGE_VERSION
='12.11'
586 PACKAGE_STRING
='PostgreSQL 12.11'
587 PACKAGE_BUGREPORT
='pgsql-bugs@lists.postgresql.org'
590 ac_unique_file
="src/backend/access/common/heaptuple.c"
591 ac_default_prefix
=/usr
/local
/pgsql
592 # Factoring default headers for most tests.
593 ac_includes_default
="\
595 #ifdef HAVE_SYS_TYPES_H
596 # include <sys/types.h>
598 #ifdef HAVE_SYS_STAT_H
599 # include <sys/stat.h>
605 # ifdef HAVE_STDLIB_H
610 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #ifdef HAVE_STRINGS_H
616 # include <strings.h>
618 #ifdef HAVE_INTTYPES_H
619 # include <inttypes.h>
628 ac_subst_vars
='LTLIBOBJS
662 python_additional_libs
737 PERMIT_DECLARATION_AFTER_STATEMENT
809 program_transform_name
822 enable_option_checking
828 enable_integer_datetimes
862 with_libedit_preferred
874 ac_precious_vars
='build_alias
904 # Initialize some variables set by options.
906 ac_init_version
=false
907 ac_unrecognized_opts
=
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
918 program_transform_name
=s
,x
,x
,
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir
='${exec_prefix}/bin'
933 sbindir
='${exec_prefix}/sbin'
934 libexecdir
='${exec_prefix}/libexec'
935 datarootdir
='${prefix}/share'
936 datadir
='${datarootdir}'
937 sysconfdir
='${prefix}/etc'
938 sharedstatedir
='${prefix}/com'
939 localstatedir
='${prefix}/var'
940 includedir
='${prefix}/include'
941 oldincludedir
='/usr/include'
942 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir
='${datarootdir}/info'
948 libdir
='${exec_prefix}/lib'
949 localedir
='${datarootdir}/locale'
950 mandir
='${datarootdir}/man'
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\
$ac_option
964 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 # Accept the important Cygnus configure options, so we can diagnose typos.
971 case $ac_dashdash$ac_option in
975 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
977 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
980 -build |
--build |
--buil |
--bui |
--bu)
981 ac_prev
=build_alias
;;
982 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
983 build_alias
=$ac_optarg ;;
985 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
986 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
987 ac_prev
=cache_file
;;
988 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
989 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
990 cache_file
=$ac_optarg ;;
993 cache_file
=config.cache
;;
995 -datadir |
--datadir |
--datadi |
--datad)
997 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
998 datadir
=$ac_optarg ;;
1000 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1001 |
--dataroo |
--dataro |
--datar)
1002 ac_prev
=datarootdir
;;
1003 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1004 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1005 datarootdir
=$ac_optarg ;;
1007 -disable-* |
--disable-*)
1008 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1011 as_fn_error $?
"invalid feature name: $ac_useropt"
1012 ac_useropt_orig
=$ac_useropt
1013 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_
$ac_useropt"
1018 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1019 ac_unrecognized_sep
=', ';;
1021 eval enable_
$ac_useropt=no
;;
1023 -docdir |
--docdir |
--docdi |
--doc |
--do)
1025 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1026 docdir
=$ac_optarg ;;
1028 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1030 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1031 dvidir
=$ac_optarg ;;
1033 -enable-* |
--enable-*)
1034 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1037 as_fn_error $?
"invalid feature name: $ac_useropt"
1038 ac_useropt_orig
=$ac_useropt
1039 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1042 "enable_
$ac_useropt"
1044 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045 ac_unrecognized_sep
=', ';;
1047 eval enable_
$ac_useropt=\
$ac_optarg ;;
1049 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1050 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1051 |
--exec |
--exe |
--ex)
1052 ac_prev
=exec_prefix
;;
1053 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1054 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1055 |
--exec=* |
--exe=* |
--ex=*)
1056 exec_prefix
=$ac_optarg ;;
1058 -gas |
--gas |
--ga |
--g)
1059 # Obsolete; use --with-gas.
1062 -help |
--help |
--hel |
--he |
-h)
1063 ac_init_help
=long
;;
1064 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1065 ac_init_help
=recursive
;;
1066 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1067 ac_init_help
=short
;;
1069 -host |
--host |
--hos |
--ho)
1070 ac_prev
=host_alias
;;
1071 -host=* |
--host=* |
--hos=* |
--ho=*)
1072 host_alias
=$ac_optarg ;;
1074 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1076 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1078 htmldir
=$ac_optarg ;;
1080 -includedir |
--includedir |
--includedi |
--included |
--include \
1081 |
--includ |
--inclu |
--incl |
--inc)
1082 ac_prev
=includedir
;;
1083 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1084 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1085 includedir
=$ac_optarg ;;
1087 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1089 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1090 infodir
=$ac_optarg ;;
1092 -libdir |
--libdir |
--libdi |
--libd)
1094 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1095 libdir
=$ac_optarg ;;
1097 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1098 |
--libexe |
--libex |
--libe)
1099 ac_prev
=libexecdir
;;
1100 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1101 |
--libexe=* |
--libex=* |
--libe=*)
1102 libexecdir
=$ac_optarg ;;
1104 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1105 ac_prev
=localedir
;;
1106 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1107 localedir
=$ac_optarg ;;
1109 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1110 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1111 ac_prev
=localstatedir
;;
1112 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1113 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1114 localstatedir
=$ac_optarg ;;
1116 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1118 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1119 mandir
=$ac_optarg ;;
1121 -nfp |
--nfp |
--nf)
1122 # Obsolete; use --without-fp.
1125 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1126 |
--no-cr |
--no-c |
-n)
1129 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1130 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1133 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1134 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1135 |
--oldin |
--oldi |
--old |
--ol |
--o)
1136 ac_prev
=oldincludedir
;;
1137 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1138 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1139 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1140 oldincludedir
=$ac_optarg ;;
1142 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1144 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1145 prefix
=$ac_optarg ;;
1147 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1148 |
--program-pre |
--program-pr |
--program-p)
1149 ac_prev
=program_prefix
;;
1150 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1151 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1152 program_prefix
=$ac_optarg ;;
1154 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1155 |
--program-suf |
--program-su |
--program-s)
1156 ac_prev
=program_suffix
;;
1157 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1158 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1159 program_suffix
=$ac_optarg ;;
1161 -program-transform-name |
--program-transform-name \
1162 |
--program-transform-nam |
--program-transform-na \
1163 |
--program-transform-n |
--program-transform- \
1164 |
--program-transform |
--program-transfor \
1165 |
--program-transfo |
--program-transf \
1166 |
--program-trans |
--program-tran \
1167 |
--progr-tra |
--program-tr |
--program-t)
1168 ac_prev
=program_transform_name
;;
1169 -program-transform-name=* |
--program-transform-name=* \
1170 |
--program-transform-nam=* |
--program-transform-na=* \
1171 |
--program-transform-n=* |
--program-transform-=* \
1172 |
--program-transform=* |
--program-transfor=* \
1173 |
--program-transfo=* |
--program-transf=* \
1174 |
--program-trans=* |
--program-tran=* \
1175 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1176 program_transform_name
=$ac_optarg ;;
1178 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1180 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1181 pdfdir
=$ac_optarg ;;
1183 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1185 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1188 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1189 |
-silent |
--silent |
--silen |
--sile |
--sil)
1192 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1194 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1196 sbindir
=$ac_optarg ;;
1198 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1199 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1200 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1202 ac_prev
=sharedstatedir
;;
1203 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1204 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1205 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1207 sharedstatedir
=$ac_optarg ;;
1209 -site |
--site |
--sit)
1211 -site=* |
--site=* |
--sit=*)
1214 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1216 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1217 srcdir
=$ac_optarg ;;
1219 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1220 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1221 ac_prev
=sysconfdir
;;
1222 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1223 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1224 sysconfdir
=$ac_optarg ;;
1226 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1227 ac_prev
=target_alias
;;
1228 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1229 target_alias
=$ac_optarg ;;
1231 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1234 -version |
--version |
--versio |
--versi |
--vers |
-V)
1235 ac_init_version
=: ;;
1238 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1241 as_fn_error $?
"invalid package name: $ac_useropt"
1242 ac_useropt_orig
=$ac_useropt
1243 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1248 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249 ac_unrecognized_sep
=', ';;
1251 eval with_
$ac_useropt=\
$ac_optarg ;;
1253 -without-* |
--without-*)
1254 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1257 as_fn_error $?
"invalid package name: $ac_useropt"
1258 ac_useropt_orig
=$ac_useropt
1259 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1265 ac_unrecognized_sep
=', ';;
1267 eval with_
$ac_useropt=no
;;
1270 # Obsolete; use --with-x.
1273 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1274 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1275 ac_prev
=x_includes
;;
1276 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1277 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1278 x_includes
=$ac_optarg ;;
1280 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1281 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1282 ac_prev
=x_libraries
;;
1283 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1284 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1285 x_libraries
=$ac_optarg ;;
1287 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1288 Try \`$0 --help' for more information"
1292 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 case $ac_envvar in #(
1295 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1296 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1298 eval $ac_envvar=\
$ac_optarg
1299 export $ac_envvar ;;
1302 # FIXME: should be removed in autoconf 3.0.
1303 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1305 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1312 if test -n "$ac_prev"; then
1313 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1314 as_fn_error $?
"missing argument to $ac_option"
1317 if test -n "$ac_unrecognized_opts"; then
1318 case $enable_option_checking in
1320 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1321 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 # Check all directory arguments for consistency.
1326 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 datadir sysconfdir sharedstatedir localstatedir includedir \
1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 libdir localedir mandir
1331 eval ac_val
=\$
$ac_var
1332 # Remove trailing slashes.
1335 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336 eval $ac_var=\
$ac_val;;
1338 # Be sure to have absolute directory names.
1340 [\\/$
]* | ?
:[\\/]* ) continue;;
1341 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1343 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1351 target
=$target_alias
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x
; then
1355 if test "x$build_alias" = x
; then
1356 cross_compiling
=maybe
1357 elif test "x$build_alias" != "x$host_alias"; then
1363 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1365 test "$silent" = yes && exec 6>/dev
/null
1368 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di
=`ls -di .` &&
1370 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error $?
"working directory cannot be determined"
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error $?
"pwd does not report name of working directory"
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378 ac_srcdir_defaulted
=yes
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir
=`$as_dirname -- "$as_myself" ||
1381 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385 $as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1408 ac_srcdir_defaulted
=no
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1412 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1414 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1426 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 for ac_var
in $ac_precious_vars; do
1429 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1431 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1436 # Report the --help message.
1438 if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1442 \`configure' configures PostgreSQL 12.11 to adapt to many kinds of systems.
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE. See below for descriptions of some of the useful variables.
1449 Defaults for the options are specified in brackets.
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking ...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462 Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
1464 [$ac_default_prefix]
1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1473 For better control, use the options below.
1475 Fine tuning of the installation directories:
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1500 --build=BUILD configure
for building on BUILD
[guessed
]
1501 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive
) echo "Configuration of PostgreSQL 12.11:";;
1512 --disable-option-checking ignore unrecognized
--enable/--with options
1513 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1514 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1515 --disable-integer-datetimes
1516 obsolete option
, no longer supported
1517 --enable-nls[=LANGUAGES
]
1518 enable Native Language Support
1519 --disable-rpath do not embed shared library search path
in
1521 --disable-spinlocks do not use spinlocks
1522 --disable-atomics do not use atomic operations
1523 --enable-debug build with debugging symbols
(-g)
1524 --enable-profiling build with profiling enabled
1525 --enable-coverage build with coverage testing instrumentation
1526 --enable-dtrace build with DTrace support
1527 --enable-tap-tests enable TAP tests
(requires Perl and IPC
::Run
)
1528 --enable-depend turn on automatic dependency tracking
1529 --enable-cassert enable assertion checks
(for debugging
)
1530 --disable-thread-safety disable thread-safety
in client libraries
1531 --disable-largefile omit support
for large files
1532 --disable-float4-byval disable float4 passed by value
1533 --disable-float8-byval disable float8 passed by value
1536 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1537 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1538 --with-extra-version=STRING
1539 append STRING to version
1540 --with-template=NAME override operating system template
1541 --with-includes=DIRS
look for additional header files
in DIRS
1542 --with-libraries=DIRS
look for additional libraries
in DIRS
1543 --with-libs=DIRS alternative spelling of
--with-libraries
1544 --with-pgport=PORTNUM
set default port number
[5432]
1545 --with-blocksize=BLOCKSIZE
1546 set table block size
in kB
[8]
1547 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1548 --with-wal-blocksize=BLOCKSIZE
1549 set WAL block size
in kB
[8]
1550 --with-CC=CMD
set compiler
(deprecated
)
1551 --with-llvm build with LLVM based JIT support
1552 --with-icu build with ICU support
1553 --with-tcl build Tcl modules
(PL
/Tcl
)
1554 --with-tclconfig=DIR tclConfig.sh is
in DIR
1555 --with-perl build Perl modules
(PL
/Perl
)
1556 --with-python build Python modules
(PL
/Python
)
1557 --with-gssapi build with GSSAPI support
1558 --with-krb-srvnam=NAME default service principal name
in Kerberos
(GSSAPI
)
1560 --with-pam build with PAM support
1561 --with-bsd-auth build with BSD Authentication support
1562 --with-ldap build with LDAP support
1563 --with-bonjour build with Bonjour support
1564 --with-openssl build with OpenSSL support
1565 --with-selinux build with SELinux support
1566 --with-systemd build with systemd support
1567 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1568 --with-libedit-preferred
1569 prefer BSD Libedit over GNU Readline
1570 --with-uuid=LIB build contrib
/uuid-ossp using LIB
(bsd
,e2fs
,ossp
)
1571 --with-ossp-uuid obsolete spelling of
--with-uuid=ossp
1572 --with-libxml build with XML support
1573 --with-libxslt use XSLT support when building contrib
/xml2
1574 --with-system-tzdata=DIR
1575 use system
time zone data
in DIR
1576 --without-zlib do not use Zlib
1577 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1579 Some influential environment variables
:
1580 CC C compiler
command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1583 nonstandard directory
<lib dir
>
1584 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1585 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1586 you have headers
in a nonstandard directory
<include dir
>
1587 CXX C
++ compiler
command
1588 CXXFLAGS C
++ compiler flags
1589 LLVM_CONFIG path to llvm-config
command
1590 CLANG path to clang compiler to generate bitcode
1592 PKG_CONFIG path to pkg-config utility
1594 directories to add to pkg-config
's search path
1596 path overriding pkg-config's built-in search path
1597 ICU_CFLAGS C compiler flags
for ICU
, overriding pkg-config
1598 ICU_LIBS linker flags
for ICU
, overriding pkg-config
1599 XML2_CONFIG path to xml2-config utility
1600 XML2_CFLAGS C compiler flags
for XML2
, overriding pkg-config
1601 XML2_LIBS linker flags
for XML2
, overriding pkg-config
1602 LDFLAGS_EX extra linker flags
for linking executables only
1603 LDFLAGS_SL extra linker flags
for linking shared libraries only
1605 PYTHON Python program
1606 MSGFMT msgfmt program
for NLS
1607 TCLSH Tcl interpreter program
(tclsh
)
1609 Use these variables to override the choices made by
`configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1612 Report bugs to <pgsql-bugs@lists.postgresql.org>.
1617 if test "$ac_init_help" = "recursive"; then
1618 # If there are subdirs, report their specific --help.
1619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620 test -d "$ac_dir" ||
1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1629 # A ".." for each directory in $ac_dir_suffix.
1630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1631 case $ac_top_builddir_sub in
1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636 ac_abs_top_builddir=$ac_pwd
1637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638 # for backward compatibility:
1639 ac_top_builddir=$ac_top_build_prefix
1642 .) # We are building in place.
1644 ac_top_srcdir=$ac_top_builddir_sub
1645 ac_abs_top_srcdir=$ac_pwd ;;
1646 [\\/]* | ?:[\\/]* ) # Absolute name.
1647 ac_srcdir=$srcdir$ac_dir_suffix;
1648 ac_top_srcdir=$srcdir
1649 ac_abs_top_srcdir=$srcdir ;;
1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652 ac_top_srcdir=$ac_top_build_prefix$srcdir
1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657 cd "$ac_dir" || { ac_status=$?; continue; }
1658 # Check for guested configure.
1659 if test -f "$ac_srcdir/configure.gnu"; then
1661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662 elif test -f "$ac_srcdir/configure"; then
1664 $SHELL "$ac_srcdir/configure" --help=recursive
1666 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1668 cd "$ac_pwd" || { ac_status=$?; break; }
1672 test -n "$ac_init_help" && exit $ac_status
1673 if $ac_init_version; then
1675 PostgreSQL configure 12.11
1676 generated by GNU Autoconf 2.69
1678 Copyright (C) 2012 Free Software Foundation, Inc.
1679 This configure script is free software; the Free Software Foundation
1680 gives unlimited permission to copy, distribute and modify it.
1682 Copyright (c) 1996-2019, PostgreSQL Global Development Group
1687 ## ------------------------ ##
1688 ## Autoconf initialization. ##
1689 ## ------------------------ ##
1691 # ac_fn_c_try_compile LINENO
1692 # --------------------------
1693 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_compile ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext
1698 if { { ac_try="$ac_compile"
1700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1701 *) ac_try_echo
=$ac_try;;
1703 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_compile") 2>conftest.err
1707 if test -s conftest.err
; then
1708 grep -v '^ *+' conftest.err
>conftest.er1
1709 cat conftest.er1
>&5
1710 mv -f conftest.er1 conftest.err
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest.
$ac_objext; then :
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.
$ac_ext >&5
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status
$ac_retval
1727 } # ac_fn_c_try_compile
1729 # ac_fn_cxx_try_compile LINENO
1730 # ----------------------------
1731 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_cxx_try_compile
()
1734 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1735 rm -f conftest.
$ac_objext
1736 if { { ac_try
="$ac_compile"
1738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_compile") 2>conftest.err
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_cxx_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest.$ac_objext; then :
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1765 } # ac_fn_cxx_try_compile
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1777 *) ac_try_echo
=$ac_try;;
1779 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1783 if test -s conftest.err
; then
1784 grep -v '^ *+' conftest.err
>conftest.er1
1785 cat conftest.er1
>&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest
$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 test -x conftest
$ac_exeext
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.
$ac_ext >&5
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status
$ac_retval
1811 } # ac_fn_c_try_link
1813 # ac_fn_c_try_cpp LINENO
1814 # ----------------------
1815 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1818 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1819 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } > conftest.i && {
1835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1850 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1853 # the include files in INCLUDES and setting the cache variable VAR
1855 ac_fn_c_check_header_mongrel ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if eval \${$3+:} false; then :
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1868 # Is the header compilable?
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1870 $as_echo_n "checking $2 usability... " >&6; }
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877 ac_header_compiler=yes
1879 ac_header_compiler=no
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1883 $as_echo "$ac_header_compiler" >&6; }
1885 # Is the header present?
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1887 $as_echo_n "checking $2 presence... " >&6; }
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1892 if ac_fn_c_try_cpp "$LINENO"; then :
1893 ac_header_preproc=yes
1895 ac_header_preproc=no
1897 rm -f conftest.err conftest.i conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1899 $as_echo "$ac_header_preproc" >&6; }
1901 # So? What about this header?
1902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1905 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1911 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1913 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1915 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1917 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1919 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1920 ( $as_echo "## ---------------------------------------------- ##
1921 ## Report this to pgsql-bugs@lists.postgresql.org ##
1922 ## ---------------------------------------------- ##"
1923 ) | sed "s/^/$as_me: WARNING: /" >&2
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1931 eval "$3=\$ac_header_compiler"
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_check_header_mongrel
1941 # ac_fn_c_try_run LINENO
1942 # ----------------------
1943 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1944 # that executables *can* be run.
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if { { ac_try="$ac_link"
1950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1951 *) ac_try_echo
=$ac_try;;
1953 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>&5
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1959 { { case "(($ac_try" in
1960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_try") 2>&5
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; }; }; then :
1971 $as_echo "$as_me: program exited with status $ac_status" >&5
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1975 ac_retval=$ac_status
1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status $ac_retval
1983 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1984 # -------------------------------------------------------
1985 # Tests whether HEADER exists and can be compiled using the include files in
1986 # INCLUDES, setting the cache variable VAR accordingly.
1987 ac_fn_c_check_header_compile ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993 $as_echo_n "(cached) " >&6
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
2000 if ac_fn_c_try_compile "$LINENO"; then :
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 } # ac_fn_c_check_header_compile
2014 # ac_fn_c_check_func LINENO FUNC VAR
2015 # ----------------------------------
2016 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2017 ac_fn_c_check_func ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2029 #define $2 innocuous_$2
2031 /* System header to define __stub macros and hopefully few prototypes,
2032 which can conflict with char $2 (); below.
2033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2034 <limits.h> exists even on freestanding compilers. */
2037 # include <limits.h>
2039 # include <assert.h>
2044 /* Override any GCC internal prototype to avoid an error.
2045 Use char because int might match the return type of a GCC
2046 builtin and then its argument prototype would still apply. */
2051 /* The GNU C library defines this for functions which it implements
2052 to always fail with ENOSYS. Some functions are actually named
2053 something starting with __ and the normal name is an alias. */
2054 #if defined __stub_$2 || defined __stub___$2
2066 if ac_fn_c_try_link "$LINENO"; then :
2071 rm -f core conftest.err conftest.$ac_objext \
2072 conftest$ac_exeext conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 } # ac_fn_c_check_func
2081 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082 # -------------------------------------------
2083 # Tests whether TYPE exists after having included INCLUDES, setting cache
2084 # variable VAR accordingly.
2085 ac_fn_c_check_type ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if eval \${$3+:} false; then :
2091 $as_echo_n "(cached) " >&6
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2119 if ac_fn_c_try_compile "$LINENO"; then :
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_type
2135 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2136 # ----------------------------------------------------
2137 # Tries to find if the field MEMBER exists in type AGGR, after including
2138 # INCLUDES, setting cache variable VAR accordingly.
2139 ac_fn_c_check_member ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2143 $as_echo_n "checking for $2.$3... " >&6; }
2144 if eval \${$4+:} false; then :
2145 $as_echo_n "(cached) " >&6
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2160 if ac_fn_c_try_compile "$LINENO"; then :
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2170 if (sizeof ac_aggr.$3)
2176 if ac_fn_c_try_compile "$LINENO"; then :
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190 } # ac_fn_c_check_member
2192 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2193 # --------------------------------------------
2194 # Tries to find the compile-time value of EXPR in a program that includes
2195 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2197 ac_fn_c_compute_int ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 if test "$cross_compiling" = yes; then
2201 # Depending upon the size, compute the lo and hi bounds.
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2208 static int test_array [1 - 2 * !(($2) >= 0)];
2210 return test_array [0];
2216 if ac_fn_c_try_compile "$LINENO"; then :
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2225 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2227 return test_array [0];
2233 if ac_fn_c_try_compile "$LINENO"; then :
2234 ac_hi=$ac_mid; break
2236 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2237 if test $ac_lo -le $ac_mid; then
2241 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2252 static int test_array [1 - 2 * !(($2) < 0)];
2254 return test_array [0];
2260 if ac_fn_c_try_compile "$LINENO"; then :
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2269 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2271 return test_array [0];
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278 ac_lo=$ac_mid; break
2280 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2281 if test $ac_mid -le $ac_hi; then
2285 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 # Binary search between lo and hi bounds.
2296 while test "x$ac_lo" != "x$ac_hi"; do
2297 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2304 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2306 return test_array [0];
2312 if ac_fn_c_try_compile "$LINENO"; then :
2315 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2327 static long int longval () { return $2; }
2328 static unsigned long int ulongval () { return $2; }
2335 FILE *f = fopen ("conftest.val", "w");
2340 long int i = longval ();
2343 fprintf (f, "%ld", i);
2347 unsigned long int i = ulongval ();
2350 fprintf (f, "%lu", i);
2352 /* Do not output a trailing newline, as this causes \r\n confusion
2353 on some platforms. */
2354 return ferror (f) || fclose (f) != 0;
2360 if ac_fn_c_try_run "$LINENO"; then :
2361 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2366 conftest.$ac_objext conftest.beam conftest.$ac_ext
2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371 as_fn_set_status $ac_retval
2373 } # ac_fn_c_compute_int
2375 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2376 # ---------------------------------------------
2377 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2379 ac_fn_c_check_decl ()
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
2383 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2384 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2386 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2387 if eval \${$3+:} false; then :
2388 $as_echo_n "(cached) " >&6
2390 ac_save_werror_flag=$ac_c_werror_flag
2391 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2398 #ifndef $as_decl_name
2400 (void) $as_decl_use;
2402 (void) $as_decl_name;
2410 if ac_fn_c_try_compile "$LINENO"; then :
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 ac_c_werror_flag=$ac_save_werror_flag
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2423 } # ac_fn_c_check_decl
2424 cat >config.log <<_ACEOF
2425 This file contains any messages produced by compilers while
2426 running configure, to aid debugging if configure makes a mistake.
2428 It was created by PostgreSQL $as_me 12.11, which was
2429 generated by GNU Autoconf 2.69. Invocation command line was
2441 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2442 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2443 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2444 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2445 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2447 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2448 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2450 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2451 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2452 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2453 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2454 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2455 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2456 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 $as_echo "PATH: $as_dir"
2481 # Keep a trace of the command line.
2482 # Strip out --no-create and --no-recursion so they do not pile up.
2483 # Strip out --silent because we don't want to record it for future runs.
2484 # Also quote any args containing shell meta-characters.
2485 # Make two passes to allow for proper duplicate-argument suppression.
2489 ac_must_keep_next=false
2495 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2497 | -silent | --silent | --silen | --sile | --sil)
2500 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2503 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2505 as_fn_append ac_configure_args1 " '$ac_arg'"
2506 if test $ac_must_keep_next = true; then
2507 ac_must_keep_next=false # Got value, back to normal.
2510 *=* | --config-cache | -C | -disable-* | --disable-* \
2511 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2512 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2513 | -with-* | --with-* | -without-* | --without-* | --x)
2514 case "$ac_configure_args0 " in
2515 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2518 -* ) ac_must_keep_next=true ;;
2521 as_fn_append ac_configure_args " '$ac_arg'"
2526 { ac_configure_args0=; unset ac_configure_args0;}
2527 { ac_configure_args1=; unset ac_configure_args1;}
2529 # When interrupted or exit'd, cleanup temporary files, and complete
2530 # config.log. We remove comments because anyway the quotes in there
2531 # would cause problems or look ugly.
2532 # WARNING: Use '\'' to represent an apostrophe within the trap.
2533 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2534 trap 'exit_status=$?
2535 # Save into config.log some information that might help in debugging.
2539 $as_echo "## ---------------- ##
2540 ## Cache variables. ##
2541 ## ---------------- ##"
2543 # The following way of writing the cache mishandles newlines in values,
2545 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2546 eval ac_val=\$$ac_var
2550 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2551 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2554 _ | IFS | as_nl) ;; #(
2555 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2556 *) { eval $ac_var=; unset $ac_var;} ;;
2561 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2562 *${as_nl}ac_space=\ *)
2564 "s/'\''/'\''\\\\'\'''\''/g;
2565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2575 $as_echo "## ----------------- ##
2576 ## Output variables. ##
2577 ## ----------------- ##"
2579 for ac_var in $ac_subst_vars
2581 eval ac_val=\$$ac_var
2583 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2585 $as_echo "$ac_var='\''$ac_val'\''"
2589 if test -n "$ac_subst_files"; then
2590 $as_echo "## ------------------- ##
2591 ## File substitutions. ##
2592 ## ------------------- ##"
2594 for ac_var in $ac_subst_files
2596 eval ac_val=\$$ac_var
2598 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2600 $as_echo "$ac_var='\''$ac_val'\''"
2605 if test -s confdefs.h; then
2606 $as_echo "## ----------- ##
2613 test "$ac_signal" != 0 &&
2614 $as_echo "$as_me: caught signal $ac_signal"
2615 $as_echo "$as_me: exit $exit_status"
2617 rm -f core *.core core.conftest.* &&
2618 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2621 for ac_signal in 1 2 13 15; do
2622 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2626 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2627 rm -f -r conftest* confdefs.h
2629 $as_echo "/* confdefs.h */" > confdefs.h
2631 # Predefined preprocessor variables.
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_NAME "$PACKAGE_NAME"
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2645 cat >>confdefs.h <<_ACEOF
2646 #define PACKAGE_STRING "$PACKAGE_STRING"
2649 cat >>confdefs.h <<_ACEOF
2650 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2653 cat >>confdefs.h <<_ACEOF
2654 #define PACKAGE_URL "$PACKAGE_URL"
2658 # Let the site file select an alternate cache file if it wants to.
2659 # Prefer an explicitly selected file to automatically selected ones.
2662 if test -n "$CONFIG_SITE"; then
2663 # We do not want a PATH search for config.site.
2664 case $CONFIG_SITE in #((
2665 -*) ac_site_file1=./$CONFIG_SITE;;
2666 */*) ac_site_file1=$CONFIG_SITE;;
2667 *) ac_site_file1=./$CONFIG_SITE;;
2669 elif test "x$prefix" != xNONE; then
2670 ac_site_file1=$prefix/share/config.site
2671 ac_site_file2=$prefix/etc/config.site
2673 ac_site_file1=$ac_default_prefix/share/config.site
2674 ac_site_file2=$ac_default_prefix/etc/config.site
2676 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2678 test "x$ac_site_file" = xNONE && continue
2679 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2681 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2682 sed 's/^/| /' "$ac_site_file" >&5
2684 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error $? "failed to load site
script $ac_site_file
2687 See \
`config.log' for more details" "$LINENO" 5; }
2691 if test -r "$cache_file"; then
2692 # Some versions of bash will fail to source /dev/null (special files
2693 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2694 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2696 $as_echo "$as_me: loading cache $cache_file" >&6;}
2698 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2699 *) . "./$cache_file";;
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2704 $as_echo "$as_me: creating cache $cache_file" >&6;}
2708 # Check that the precious variables saved in the cache have kept the same
2710 ac_cache_corrupted=false
2711 for ac_var in $ac_precious_vars; do
2712 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2713 eval ac_new_set=\$ac_env_${ac_var}_set
2714 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2715 eval ac_new_val=\$ac_env_${ac_var}_value
2716 case $ac_old_set,$ac_new_set in
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2719 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2720 ac_cache_corrupted=: ;;
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2723 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2724 ac_cache_corrupted=: ;;
2727 if test "x$ac_old_val" != "x$ac_new_val"; then
2728 # differences in whitespace do not lead to failure.
2729 ac_old_val_w=`echo x
$ac_old_val`
2730 ac_new_val_w=`echo x
$ac_new_val`
2731 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2733 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2734 ac_cache_corrupted=:
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2737 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2738 eval $ac_var=\$ac_old_val
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2741 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2743 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2746 # Pass precious variables to config.status.
2747 if test "$ac_new_set" = set; then
2749 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2750 *) ac_arg=$ac_var=$ac_new_val ;;
2752 case " $ac_configure_args " in
2753 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2754 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2758 if $ac_cache_corrupted; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2762 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2763 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2765 ## -------------------- ##
2766 ## Main body of script. ##
2767 ## -------------------- ##
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 for ac_dir in config "$srcdir"/config; do
2782 if test -f "$ac_dir/install-sh"; then
2784 ac_install_sh="$ac_aux_dir/install-sh -c"
2786 elif test -f "$ac_dir/install.sh"; then
2788 ac_install_sh="$ac_aux_dir/install.sh -c"
2790 elif test -f "$ac_dir/shtool"; then
2792 ac_install_sh="$ac_aux_dir/shtool install -c"
2796 if test -z "$ac_aux_dir"; then
2797 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2800 # These three variables are undocumented and unsupported,
2801 # and are intended to be withdrawn in a future Autoconf release.
2802 # They can cause serious problems if a builder's source tree is in a directory
2803 # whose full name contains unusual characters.
2804 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2805 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2806 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2810 configure_args=$ac_configure_args
2813 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2816 cat >>confdefs.h <<_ACEOF
2817 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2824 # Check whether --with-extra-version was given.
2825 if test "${with_extra_version+set}" = set; then :
2826 withval=$with_extra_version;
2829 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2832 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2835 PG_VERSION="$PACKAGE_VERSION$withval"
2840 PG_VERSION="$PACKAGE_VERSION"
2845 cat >>confdefs.h <<_ACEOF
2846 #define PG_VERSION "$PG_VERSION"
2850 # Make sure we can run config.sub.
2851 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2852 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2855 $as_echo_n "checking build system type... " >&6; }
2856 if ${ac_cv_build+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 ac_build_alias=$build_alias
2860 test "x$ac_build_alias" = x &&
2861 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2862 test "x$ac_build_alias" = x &&
2863 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2864 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2865 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2869 $as_echo "$ac_cv_build" >&6; }
2870 case $ac_cv_build in
2872 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2875 ac_save_IFS=$IFS; IFS='-'
2881 # Remember, the first character of IFS is used to create $*,
2882 # except with old shells:
2885 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2889 $as_echo_n "checking host system type... " >&6; }
2890 if ${ac_cv_host+:} false; then :
2891 $as_echo_n "(cached) " >&6
2893 if test "x$host_alias" = x; then
2894 ac_cv_host=$ac_cv_build
2896 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2897 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2902 $as_echo "$ac_cv_host" >&6; }
2905 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2908 ac_save_IFS=$IFS; IFS='-'
2914 # Remember, the first character of IFS is used to create $*,
2915 # except with old shells:
2918 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2924 $as_echo_n "checking which template to use... " >&6; }
2929 # Check whether --with-template was given.
2930 if test "${with_template+set}" = set; then :
2931 withval=$with_template;
2934 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2937 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2942 list) echo; ls "$srcdir/src/template"; exit;;
2943 *) if test -f "$srcdir/src/template/$with_template" ; then
2946 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2955 # --with-template not given
2958 aix*) template=aix ;;
2959 cygwin*) template=cygwin ;;
2960 darwin*) template=darwin ;;
2961 dragonfly*) template=netbsd ;;
2962 freebsd*) template=freebsd ;;
2963 hpux*) template=hpux ;;
2964 linux*|gnu*|k*bsd*-gnu)
2966 mingw*) template=win32 ;;
2967 netbsd*) template=netbsd ;;
2968 openbsd*) template=openbsd ;;
2969 solaris*) template=solaris ;;
2972 if test x"$template" = x"" ; then
2974 *******************************************************************
2975 PostgreSQL has apparently not been ported to your platform yet.
2976 To try a manual configuration, look into the src/template directory
2977 for a similar platform and use the '--with-template=' option.
2979 Please also contact <pgsql-bugs@lists.postgresql.org> to see about
2980 rectifying this. Include the above 'checking host system type...'
2982 *******************************************************************
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2992 $as_echo "$template" >&6; }
2997 # Initialize default assumption that we do not need separate assembly code
2998 # for TAS (test-and-set). This can be overridden by the template file
2999 # when it's executed.
3006 ## Command line options
3010 # Add non-standard directories to the include path
3015 # Check whether --with-includes was given.
3016 if test "${with_includes+set}" = set; then :
3017 withval=$with_includes;
3020 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3023 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3036 # Add non-standard directories to the library search path
3041 # Check whether --with-libraries was given.
3042 if test "${with_libraries+set}" = set; then :
3043 withval=$with_libraries;
3046 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3049 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3052 LIBRARY_DIRS=$withval
3063 # Check whether --with-libs was given.
3064 if test "${with_libs+set}" = set; then :
3068 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3071 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3074 LIBRARY_DIRS=$withval
3084 # 64-bit integer date/time storage is now the only option, but to avoid
3085 # unnecessary breakage of build scripts, continue to accept an explicit
3086 # "--enable-integer-datetimes" switch.
3090 # Check whether --enable-integer-datetimes was given.
3091 if test "${enable_integer_datetimes+set}" = set; then :
3092 enableval=$enable_integer_datetimes;
3098 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3101 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3106 enable_integer_datetimes=yes
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3117 $as_echo_n "checking whether NLS is wanted... " >&6; }
3120 # Check whether --enable-nls was given.
3121 if test "${enable_nls+set}" = set; then :
3122 enableval=$enable_nls;
3132 WANTED_LANGUAGES=$enableval
3142 if test "$enable_nls" = yes; then
3144 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3149 $as_echo "$enable_nls" >&6; }
3154 # Default port number (--with-pgport), default 5432
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3157 $as_echo_n "checking for default port number... " >&6; }
3161 # Check whether --with-pgport was given.
3162 if test "${with_pgport+set}" = set; then :
3163 withval=$with_pgport;
3166 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3169 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3172 default_port=$withval
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3182 $as_echo "$default_port" >&6; }
3183 # Need both of these because some places want an integer and some a string
3185 cat >>confdefs.h <<_ACEOF
3186 #define DEF_PGPORT ${default_port}
3190 cat >>confdefs.h <<_ACEOF
3191 #define DEF_PGPORT_STR "${default_port}"
3196 # It's worth validating port; you can get very confusing errors otherwise
3197 if test x"$default_port" = x""; then
3198 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3199 elif test ! x`echo "$default_port" |
sed -e 's/[0-9]*//'` = x""; then
3200 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3201 elif test ! x`echo "$default_port" |
sed -e 's/^0.//'` = x"$default_port"; then
3202 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3203 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3204 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3208 # '-rpath'-like feature can be disabled
3212 # Check whether --enable-rpath was given.
3213 if test "${enable_rpath+set}" = set; then :
3214 enableval=$enable_rpath;
3223 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3240 # Check whether --enable-spinlocks was given.
3241 if test "${enable_spinlocks+set}" = set; then :
3242 enableval=$enable_spinlocks;
3251 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3256 enable_spinlocks=yes
3267 # Check whether --enable-atomics was given.
3268 if test "${enable_atomics+set}" = set; then :
3269 enableval=$enable_atomics;
3278 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3290 # --enable-debug adds -g to compiler flags
3294 # Check whether --enable-debug was given.
3295 if test "${enable_debug+set}" = set; then :
3296 enableval=$enable_debug;
3305 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3318 # --enable-profiling enables gcc profiling
3322 # Check whether --enable-profiling was given.
3323 if test "${enable_profiling+set}" = set; then :
3324 enableval=$enable_profiling;
3333 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3345 # --enable-coverage enables generation of code coverage metrics with gcov
3349 # Check whether --enable-coverage was given.
3350 if test "${enable_coverage+set}" = set; then :
3351 enableval=$enable_coverage;
3354 if test -z "$GCOV"; then
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy $ac_prog; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_path_GCOV+:} false; then :
3362 $as_echo_n "(cached) " >&6
3366 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 GCOV=$ac_cv_path_GCOV
3388 if test -n "$GCOV"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3390 $as_echo "$GCOV" >&6; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3397 test -n "$GCOV" && break
3401 # Report the value of GCOV in configure's output in all cases.
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3403 $as_echo_n "checking for GCOV... " >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3405 $as_echo "$GCOV" >&6; }
3408 if test -z "$GCOV"; then
3409 as_fn_error $? "gcov not found" "$LINENO" 5
3411 if test -z "$LCOV"; then
3414 # Extract the first word of "$ac_prog", so it can be a program name with args.
3415 set dummy $ac_prog; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if ${ac_cv_path_LCOV+:} false; then :
3419 $as_echo_n "(cached) " >&6
3423 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 LCOV=$ac_cv_path_LCOV
3445 if test -n "$LCOV"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3447 $as_echo "$LCOV" >&6; }
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3454 test -n "$LCOV" && break
3458 # Report the value of LCOV in configure's output in all cases.
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3460 $as_echo_n "checking for LCOV... " >&6; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3462 $as_echo "$LCOV" >&6; }
3465 if test -z "$LCOV"; then
3466 as_fn_error $? "lcov not found" "$LINENO" 5
3468 if test -z "$GENHTML"; then
3469 for ac_prog in genhtml
3471 # Extract the first word of "$ac_prog", so it can be a program name with args.
3472 set dummy $ac_prog; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if ${ac_cv_path_GENHTML+:} false; then :
3476 $as_echo_n "(cached) " >&6
3480 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 GENHTML=$ac_cv_path_GENHTML
3502 if test -n "$GENHTML"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3504 $as_echo "$GENHTML" >&6; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3511 test -n "$GENHTML" && break
3515 # Report the value of GENHTML in configure's output in all cases.
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3517 $as_echo_n "checking for GENHTML... " >&6; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3519 $as_echo "$GENHTML" >&6; }
3522 if test -z "$GENHTML"; then
3523 as_fn_error $? "genhtml not found" "$LINENO" 5
3530 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3547 # Check whether --enable-dtrace was given.
3548 if test "${enable_dtrace+set}" = set; then :
3549 enableval=$enable_dtrace;
3552 if test -z "$DTRACE"; then
3553 for ac_prog in dtrace
3555 # Extract the first word of "$ac_prog", so it can be a program name with args.
3556 set dummy $ac_prog; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if ${ac_cv_path_DTRACE+:} false; then :
3560 $as_echo_n "(cached) " >&6
3564 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 DTRACE=$ac_cv_path_DTRACE
3586 if test -n "$DTRACE"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3588 $as_echo "$DTRACE" >&6; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3595 test -n "$DTRACE" && break
3599 # Report the value of DTRACE in configure's output in all cases.
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3601 $as_echo_n "checking for DTRACE... " >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3603 $as_echo "$DTRACE" >&6; }
3606 if test -z "$DTRACE"; then
3607 as_fn_error $? "dtrace not found" "$LINENO" 5
3615 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3632 # Check whether --enable-tap-tests was given.
3633 if test "${enable_tap_tests+set}" = set; then :
3634 enableval=$enable_tap_tests;
3643 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3659 $as_echo_n "checking for block size... " >&6; }
3663 # Check whether --with-blocksize was given.
3664 if test "${with_blocksize+set}" = set; then :
3665 withval=$with_blocksize;
3668 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3671 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3683 case ${blocksize} in
3690 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3693 $as_echo "${blocksize}kB" >&6; }
3696 cat >>confdefs.h <<_ACEOF
3697 #define BLCKSZ ${BLCKSZ}
3702 # Relation segment size
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3705 $as_echo_n "checking for segment size... " >&6; }
3709 # Check whether --with-segsize was given.
3710 if test "${with_segsize+set}" = set; then :
3711 withval=$with_segsize;
3714 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3717 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3729 # this expression is set up to avoid unnecessary integer overflow
3730 # blocksize is already guaranteed to be a factor of 1024
3731 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3732 test $? -eq 0 || exit 1
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3734 $as_echo "${segsize}GB" >&6; }
3737 cat >>confdefs.h <<_ACEOF
3738 #define RELSEG_SIZE ${RELSEG_SIZE}
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3746 $as_echo_n "checking for WAL block size... " >&6; }
3750 # Check whether --with-wal-blocksize was given.
3751 if test "${with_wal_blocksize+set}" = set; then :
3752 withval=$with_wal_blocksize;
3755 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3758 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3761 wal_blocksize=$withval
3770 case ${wal_blocksize} in
3771 1) XLOG_BLCKSZ=1024;;
3772 2) XLOG_BLCKSZ=2048;;
3773 4) XLOG_BLCKSZ=4096;;
3774 8) XLOG_BLCKSZ=8192;;
3775 16) XLOG_BLCKSZ=16384;;
3776 32) XLOG_BLCKSZ=32768;;
3777 64) XLOG_BLCKSZ=65536;;
3778 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3781 $as_echo "${wal_blocksize}kB" >&6; }
3784 cat >>confdefs.h <<_ACEOF
3785 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3793 # For historical reasons you can also use --with-CC to specify the C compiler
3794 # to use, although the standard way to do this is to set the CC environment
3799 # Check whether --with-CC was given.
3800 if test "${with_CC+set}" = set; then :
3804 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3807 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3819 aix) pgac_cc_list="gcc xlc"; pgac_cxx_list="g++ xlC";;
3820 *) pgac_cc_list="gcc cc"; pgac_cxx_list="g++ c++";;
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 if test -n "$ac_tool_prefix"; then
3829 for ac_prog in $pgac_cc_list
3831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if ${ac_cv_prog_CC+:} false; then :
3836 $as_echo_n "(cached) " >&6
3838 if test -n "$CC"; then
3839 ac_cv_prog_CC="$CC" # Let the user override the test.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 if test -n "$CC"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3861 $as_echo "$CC" >&6; }
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3868 test -n "$CC" && break
3871 if test -z "$CC"; then
3873 for ac_prog in $pgac_cc_list
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3880 $as_echo_n "(cached) " >&6
3882 if test -n "$ac_ct_CC"; then
3883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892 ac_cv_prog_ac_ct_CC="$ac_prog"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3903 if test -n "$ac_ct_CC"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3905 $as_echo "$ac_ct_CC" >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3912 test -n "$ac_ct_CC" && break
3915 if test "x$ac_ct_CC" = x; then
3918 case $cross_compiling:$ac_tool_warned in
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3922 ac_tool_warned=yes ;;
3929 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3932 See \
`config.log' for more details" "$LINENO" 5; }
3934 # Provide some information about the compiler.
3935 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3938 for ac_option in --version -v -V -qversion; do
3939 { { ac_try="$ac_compiler $ac_option >&5"
3941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3942 *) ac_try_echo
=$ac_try;;
3944 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3948 if test -s conftest.err
; then
3950 ... rest of stderr output deleted ...
3951 10q' conftest.err
>conftest.er1
3952 cat conftest.er1
>&5
3954 rm -f conftest.er1 conftest.err
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }
3959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3970 ac_clean_files_save
=$ac_clean_files
3971 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3972 # Try to create an executable without -o first, disregard a.out.
3973 # It will help us diagnose broken compilers, and finding out an intuition
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3976 $as_echo_n "checking whether the C compiler works... " >&6; }
3977 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3979 # The possible output files:
3980 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3983 for ac_file
in $ac_files
3986 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3987 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3992 if { { ac_try
="$ac_link_default"
3994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_link_default") 2>&5
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; then :
4003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
4004 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
4005 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4006 # so that the user can short-circuit this test for compilers unknown to
4008 for ac_file in $ac_files ''
4010 test -f "$ac_file" || continue
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4015 # We found the default executable, but exeext='' is most
4019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4023 # We set ac_cv_exeext here because the later test for it is not
4024 # safe: cross compilers may not add the suffix if given an `-o'
4025 # argument, so we may need to know it at that point already.
4026 # Even if this section looks crufty: it has the advantage of
4033 test "$ac_cv_exeext" = no && ac_cv_exeext=
4038 if test -z "$ac_file"; then :
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4041 $as_echo "$as_me: failed program was:" >&5
4042 sed 's
/^
/|
/' conftest.$ac_ext >&5
4044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
4046 as_fn_error 77 "C compiler cannot create executables
4047 See \`config.log
' for more details" "$LINENO" 5; }
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4050 $as_echo "yes" >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4053 $as_echo_n "checking for C compiler default output file name... " >&6; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4055 $as_echo "$ac_file" >&6; }
4056 ac_exeext=$ac_cv_exeext
4058 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4059 ac_clean_files=$ac_clean_files_save
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4061 $as_echo_n "checking for suffix of executables... " >&6; }
4062 if { { ac_try="$ac_link"
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 $as_echo "$ac_try_echo"; } >&5
4069 (eval "$ac_link") 2>&5
4071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072 test $ac_status = 0; }; then :
4073 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4074 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4075 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4077 for ac_file
in conftest.exe conftest conftest.
*; do
4078 test -f "$ac_file" ||
continue
4080 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4081 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4090 See \`config.log' for more details" "$LINENO" 5; }
4092 rm -f conftest conftest
$ac_cv_exeext
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4094 $as_echo "$ac_cv_exeext" >&6; }
4096 rm -f conftest.
$ac_ext
4097 EXEEXT
=$ac_cv_exeext
4099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4105 FILE *f = fopen ("conftest.out", "w");
4106 return ferror (f) || fclose (f) != 0;
4112 ac_clean_files
="$ac_clean_files conftest.out"
4113 # Check that the compiler produces executables we can run. If not, either
4114 # the compiler is broken, or we cross compile.
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4116 $as_echo_n "checking whether we are cross compiling... " >&6; }
4117 if test "$cross_compiling" != yes; then
4118 { { ac_try
="$ac_link"
4120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4124 $as_echo "$ac_try_echo"; } >&5
4125 (eval "$ac_link") 2>&5
4127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4128 test $ac_status = 0; }
4129 if { ac_try='./conftest$ac_cv_exeext'
4130 { { case "(($ac_try" in
4131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4132 *) ac_try_echo
=$ac_try;;
4134 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135 $as_echo "$ac_try_echo"; } >&5
4136 (eval "$ac_try") 2>&5
4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }; }; then
4142 if test "$cross_compiling" = maybe
; then
4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $?
"cannot run C compiled programs.
4148 If you meant to cross compile, use \`--host'.
4149 See \`config.log' for more details" "$LINENO" 5; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4154 $as_echo "$cross_compiling" >&6; }
4156 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4157 ac_clean_files
=$ac_clean_files_save
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4159 $as_echo_n "checking for suffix of object files... " >&6; }
4160 if ${ac_cv_objext+:} false
; then :
4161 $as_echo_n "(cached) " >&6
4163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4174 rm -f conftest.o conftest.obj
4175 if { { ac_try
="$ac_compile"
4177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_compile") 2>&5
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }; then :
4186 for ac_file in conftest.o conftest.obj conftest.*; do
4187 test -f "$ac_file" || continue;
4189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4195 $as_echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4201 See \
`config.log' for more details" "$LINENO" 5; }
4203 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4206 $as_echo "$ac_cv_objext" >&6; }
4207 OBJEXT=$ac_cv_objext
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4210 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4211 if ${ac_cv_c_compiler_gnu+:} false; then :
4212 $as_echo_n "(cached) " >&6
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4228 if ac_fn_c_try_compile "$LINENO"; then :
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4238 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4239 if test $ac_compiler_gnu = yes; then
4244 ac_test_CFLAGS=${CFLAGS+set}
4245 ac_save_CFLAGS=$CFLAGS
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4247 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4248 if ${ac_cv_prog_cc_g+:} false; then :
4249 $as_echo_n "(cached) " >&6
4251 ac_save_c_werror_flag=$ac_c_werror_flag
4252 ac_c_werror_flag=yes
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4266 if ac_fn_c_try_compile "$LINENO"; then :
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4281 if ac_fn_c_try_compile "$LINENO"; then :
4284 ac_c_werror_flag=$ac_save_c_werror_flag
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4297 if ac_fn_c_try_compile "$LINENO"; then :
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_c_werror_flag=$ac_save_c_werror_flag
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4308 $as_echo "$ac_cv_prog_cc_g" >&6; }
4309 if test "$ac_test_CFLAGS" = set; then
4310 CFLAGS=$ac_save_CFLAGS
4311 elif test $ac_cv_prog_cc_g = yes; then
4312 if test "$GCC" = yes; then
4318 if test "$GCC" = yes; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4325 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4326 if ${ac_cv_prog_cc_c89+:} false; then :
4327 $as_echo_n "(cached) " >&6
4329 ac_cv_prog_cc_c89=no
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4336 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4337 struct buf { int x; };
4338 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4339 static char *e (p, i)
4345 static char *f (char * (*g) (char **, int), char **p, ...)
4350 s = g (p, va_arg (v,int));
4355 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4356 function prototypes and stuff, but not '\xHH' hex character constants.
4357 These don't provoke an error unfortunately, instead are silently treated
4358 as 'x'. The following induces an error, until -std is added to get
4359 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4360 array size at least. It's necessary to write '\x00'==0 to get something
4361 that's true only with -std. */
4362 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4364 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4365 inside strings and character constants. */
4367 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4369 int test (int i, double x);
4370 struct s1 {int (*f) (int a);};
4371 struct s2 {int (*f) (double a);};
4372 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4378 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4383 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4384 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4386 CC="$ac_save_CC $ac_arg"
4387 if ac_fn_c_try_compile "$LINENO"; then :
4388 ac_cv_prog_cc_c89=$ac_arg
4390 rm -f core conftest.err conftest.$ac_objext
4391 test "x$ac_cv_prog_cc_c89" != "xno" && break
4393 rm -f conftest.$ac_ext
4398 case "x$ac_cv_prog_cc_c89" in
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4401 $as_echo "none needed" >&6; } ;;
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4404 $as_echo "unsupported" >&6; } ;;
4406 CC="$CC $ac_cv_prog_cc_c89"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4408 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4410 if test "x$ac_cv_prog_cc_c89" != xno; then :
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4421 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4422 if ${ac_cv_prog_cc_c99+:} false; then :
4423 $as_echo_n "(cached) " >&6
4425 ac_cv_prog_cc_c99=no
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4430 #include <stdbool.h>
4435 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4436 #define debug(...) fprintf (stderr, __VA_ARGS__)
4437 #define showlist(...) puts (#__VA_ARGS__)
4438 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4440 test_varargs_macros (void)
4445 debug ("X = %d\n", x);
4446 showlist (The first, second, and third items.);
4447 report (x>y, "x is %d but y is %d", x, y);
4450 // Check long long types.
4451 #define BIG64 18446744073709551615ull
4452 #define BIG32 4294967295ul
4453 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4455 your preprocessor is broken;
4459 your preprocessor is broken;
4461 static long long int bignum = -9223372036854775807LL;
4462 static unsigned long long int ubignum = BIG64;
4464 struct incomplete_array
4472 const wchar_t *name;
4476 typedef const char *ccp;
4479 test_restrict (ccp restrict text)
4481 // See if C++-style comments work.
4482 // Iterate through items via the restricted pointer.
4483 // Also check for declarations in for loops.
4484 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4489 // Check varargs and va_copy.
4491 test_varargs (const char *format, ...)
4494 va_start (args, format);
4496 va_copy (args_copy, args);
4507 str = va_arg (args_copy, const char *);
4510 number = va_arg (args_copy, int);
4513 fnumber = va_arg (args_copy, double);
4528 _Bool success = false;
4531 if (test_restrict ("String literal") == 0)
4533 char *restrict newvar = "Another string";
4536 test_varargs ("s, d' f .", "string", 65, 34.234);
4537 test_varargs_macros ();
4539 // Check flexible array members.
4540 struct incomplete_array *ia =
4541 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4543 for (int i = 0; i < ia->datasize; ++i)
4544 ia->data[i] = i * 1.234;
4546 // Check named initializers.
4547 struct named_init ni = {
4549 .name = L"Test wide string",
4550 .average = 543.34343,
4555 int dynamic_array[ni.number];
4556 dynamic_array[ni.number - 1] = 543;
4558 // work around unused variable warnings
4559 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4560 || dynamic_array[ni.number - 1] != 543);
4566 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4568 CC="$ac_save_CC $ac_arg"
4569 if ac_fn_c_try_compile "$LINENO"; then :
4570 ac_cv_prog_cc_c99=$ac_arg
4572 rm -f core conftest.err conftest.$ac_objext
4573 test "x$ac_cv_prog_cc_c99" != "xno" && break
4575 rm -f conftest.$ac_ext
4580 case "x$ac_cv_prog_cc_c99" in
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4583 $as_echo "none needed" >&6; } ;;
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4586 $as_echo "unsupported" >&6; } ;;
4588 CC="$CC $ac_cv_prog_cc_c99"
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4590 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4592 if test "x$ac_cv_prog_cc_c99" != xno; then :
4598 # Error out if the compiler does not support C99, as the codebase
4600 if test "$ac_cv_prog_cc_c99" = no; then
4601 as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
4605 ac_cpp='$CXXCPP $CPPFLAGS'
4606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4609 if test -z "$CXX"; then
4610 if test -n "$CCC"; then
4613 if test -n "$ac_tool_prefix"; then
4614 for ac_prog in $pgac_cxx_list
4616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if ${ac_cv_prog_CXX+:} false; then :
4621 $as_echo_n "(cached) " >&6
4623 if test -n "$CXX"; then
4624 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 if test -n "$CXX"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4646 $as_echo "$CXX" >&6; }
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4653 test -n "$CXX" && break
4656 if test -z "$CXX"; then
4658 for ac_prog in $pgac_cxx_list
4660 # Extract the first word of "$ac_prog", so it can be a program name with args.
4661 set dummy $ac_prog; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4665 $as_echo_n "(cached) " >&6
4667 if test -n "$ac_ct_CXX"; then
4668 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_ac_ct_CXX="$ac_prog"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4688 if test -n "$ac_ct_CXX"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4690 $as_echo "$ac_ct_CXX" >&6; }
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4697 test -n "$ac_ct_CXX" && break
4700 if test "x$ac_ct_CXX" = x; then
4703 case $cross_compiling:$ac_tool_warned in
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4707 ac_tool_warned=yes ;;
4715 # Provide some information about the compiler.
4716 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4719 for ac_option in --version -v -V -qversion; do
4720 { { ac_try="$ac_compiler $ac_option >&5"
4722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4723 *) ac_try_echo
=$ac_try;;
4725 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726 $as_echo "$ac_try_echo"; } >&5
4727 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4729 if test -s conftest.err
; then
4731 ... rest of stderr output deleted ...
4732 10q' conftest.err
>conftest.er1
4733 cat conftest.er1
>&5
4735 rm -f conftest.er1 conftest.err
4736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4737 test $ac_status = 0; }
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4741 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4742 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4743 $as_echo_n "(cached) " >&6
4745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4759 if ac_fn_cxx_try_compile
"$LINENO"; then :
4764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4765 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4769 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4770 if test $ac_compiler_gnu = yes; then
4775 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4776 ac_save_CXXFLAGS
=$CXXFLAGS
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4778 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4779 if ${ac_cv_prog_cxx_g+:} false
; then :
4780 $as_echo_n "(cached) " >&6
4782 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4783 ac_cxx_werror_flag
=yes
4786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4797 if ac_fn_cxx_try_compile
"$LINENO"; then :
4798 ac_cv_prog_cxx_g
=yes
4801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4812 if ac_fn_cxx_try_compile
"$LINENO"; then :
4815 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4828 if ac_fn_cxx_try_compile
"$LINENO"; then :
4829 ac_cv_prog_cxx_g
=yes
4831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4836 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4839 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4840 if test "$ac_test_CXXFLAGS" = set; then
4841 CXXFLAGS
=$ac_save_CXXFLAGS
4842 elif test $ac_cv_prog_cxx_g = yes; then
4843 if test "$GXX" = yes; then
4849 if test "$GXX" = yes; then
4856 ac_cpp
='$CPP $CPPFLAGS'
4857 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4862 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4863 # but has idiosyncrasies of its own. We assume icc will define
4864 # __INTEL_COMPILER regardless of CFLAGS.
4866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4872 #ifndef __INTEL_COMPILER
4879 if ac_fn_c_try_compile
"$LINENO"; then :
4884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4886 # Check if it's Sun Studio compiler. We assume that
4887 # __SUNPRO_C will be defined for Sun Studio compilers
4888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4901 if ac_fn_c_try_compile
"$LINENO"; then :
4906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4914 # Checked early because subsequent tests depend on it.
4918 # Check whether --with-llvm was given.
4919 if test "${with_llvm+set}" = set; then :
4924 $as_echo "#define USE_LLVM 1" >>confdefs.h
4931 as_fn_error $?
"no argument expected for --with-llvm option" "$LINENO" 5
4942 for ac_prog
in gawk mawk nawk
awk
4944 # Extract the first word of "$ac_prog", so it can be a program name with args.
4945 set dummy
$ac_prog; ac_word
=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if ${ac_cv_prog_AWK+:} false
; then :
4949 $as_echo_n "(cached) " >&6
4951 if test -n "$AWK"; then
4952 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir
=.
4959 for ac_exec_ext
in '' $ac_executable_extensions; do
4960 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4961 ac_cv_prog_AWK
="$ac_prog"
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 if test -n "$AWK"; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4974 $as_echo "$AWK" >&6; }
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4981 test -n "$AWK" && break
4984 if test "$with_llvm" = yes; then :
4990 if test -z "$LLVM_CONFIG"; then
4991 for ac_prog
in llvm-config llvm-config-7 llvm-config-6.0 llvm-config-5.0 llvm-config-4.0 llvm-config-3.9
4993 # Extract the first word of "$ac_prog", so it can be a program name with args.
4994 set dummy
$ac_prog; ac_word
=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if ${ac_cv_path_LLVM_CONFIG+:} false
; then :
4998 $as_echo_n "(cached) " >&6
5000 case $LLVM_CONFIG in
5002 ac_cv_path_LLVM_CONFIG
="$LLVM_CONFIG" # Let the user override the test with a path.
5005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5009 test -z "$as_dir" && as_dir
=.
5010 for ac_exec_ext
in '' $ac_executable_extensions; do
5011 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_path_LLVM_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 LLVM_CONFIG
=$ac_cv_path_LLVM_CONFIG
5024 if test -n "$LLVM_CONFIG"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5026 $as_echo "$LLVM_CONFIG" >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5033 test -n "$LLVM_CONFIG" && break
5037 # Report the value of LLVM_CONFIG in configure's output in all cases.
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
5039 $as_echo_n "checking for LLVM_CONFIG... " >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5041 $as_echo "$LLVM_CONFIG" >&6; }
5045 # no point continuing if llvm wasn't found
5046 if test -z "$LLVM_CONFIG"; then
5047 as_fn_error $?
"llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
5049 # check if detected $LLVM_CONFIG is executable
5050 pgac_llvm_version
="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
5051 if test "x$pgac_llvm_version" = "xno"; then
5052 as_fn_error $?
"$LLVM_CONFIG does not work" "$LINENO" 5
5054 # and whether the version is supported
5055 if echo $pgac_llvm_version |
$AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then
5056 as_fn_error $?
"$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5
5059 # need clang to create some bitcode files
5061 if test -z "$CLANG"; then
5062 for ac_prog
in clang clang-7 clang-6.0 clang-5.0 clang-4.0 clang-3.9
5064 # Extract the first word of "$ac_prog", so it can be a program name with args.
5065 set dummy
$ac_prog; ac_word
=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if ${ac_cv_path_CLANG+:} false
; then :
5069 $as_echo_n "(cached) " >&6
5073 ac_cv_path_CLANG
="$CLANG" # Let the user override the test with a path.
5076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir
=.
5081 for ac_exec_ext
in '' $ac_executable_extensions; do
5082 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5083 ac_cv_path_CLANG
="$as_dir/$ac_word$ac_exec_ext"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 CLANG
=$ac_cv_path_CLANG
5095 if test -n "$CLANG"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5097 $as_echo "$CLANG" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5104 test -n "$CLANG" && break
5108 # Report the value of CLANG in configure's output in all cases.
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
5110 $as_echo_n "checking for CLANG... " >&6; }
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5112 $as_echo "$CLANG" >&6; }
5115 if test -z "$CLANG"; then
5116 as_fn_error $?
"clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
5118 # make sure clang is executable
5119 if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
5120 as_fn_error $?
"$CLANG does not work" "$LINENO" 5
5122 # Could check clang version, but it doesn't seem that
5123 # important. Systems with a new enough LLVM version are usually
5124 # going to have a decent clang version too. It's also not entirely
5125 # clear what the minimum version is.
5127 # Collect compiler flags necessary to build the LLVM dependent
5129 for pgac_option
in `$LLVM_CONFIG --cppflags`; do
5130 case $pgac_option in
5131 -I*|
-D*) LLVM_CPPFLAGS
="$pgac_option $LLVM_CPPFLAGS";;
5135 for pgac_option
in `$LLVM_CONFIG --ldflags`; do
5136 case $pgac_option in
5137 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5141 # ABI influencing options, standard influencing options
5142 for pgac_option
in `$LLVM_CONFIG --cxxflags`; do
5143 case $pgac_option in
5144 -fno-rtti*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5145 -std=*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5149 # Look for components we're interested in, collect necessary
5150 # libs. As some components are optional, we can't just list all of
5151 # them as it'd raise an error.
5153 for pgac_component
in `$LLVM_CONFIG --components`; do
5154 case $pgac_component in
5155 engine
) pgac_components
="$pgac_components $pgac_component";;
5156 debuginfodwarf
) pgac_components
="$pgac_components $pgac_component";;
5157 orcjit
) pgac_components
="$pgac_components $pgac_component";;
5158 passes
) pgac_components
="$pgac_components $pgac_component";;
5159 native
) pgac_components
="$pgac_components $pgac_component";;
5160 perfjitevents
) pgac_components
="$pgac_components $pgac_component";;
5164 # And then get the libraries that need to be linked in for the
5165 # selected components. They're large libraries, we only want to
5166 # link them into the LLVM using shared library.
5167 for pgac_option
in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
5168 case $pgac_option in
5169 -l*) LLVM_LIBS
="$LLVM_LIBS $pgac_option";;
5173 LLVM_BINPATH
=`$LLVM_CONFIG --bindir`
5192 .
"$srcdir/src/template/$template" ||
exit
5194 # C[XX]FLAGS are selected so:
5195 # If the user specifies something in the environment, that is used.
5196 # else: If the template file set something, that is used.
5197 # else: If coverage was enabled, don't set anything.
5198 # else: If the compiler is GCC, then we use -O2.
5199 # else: If the compiler is something else, then we use -O, unless debugging.
5201 if test "$ac_env_CFLAGS_set" = set; then
5202 CFLAGS
=$ac_env_CFLAGS_value
5203 elif test "${CFLAGS+set}" = set; then
5204 : # (keep what template set)
5205 elif test "$enable_coverage" = yes; then
5206 : # no optimization by default
5207 elif test "$GCC" = yes; then
5210 # if the user selected debug mode, don't use -O
5211 if test "$enable_debug" != yes; then
5216 if test "$ac_env_CXXFLAGS_set" = set; then
5217 CXXFLAGS
=$ac_env_CXXFLAGS_value
5218 elif test "${CXXFLAGS+set}" = set; then
5219 : # (keep what template set)
5220 elif test "$enable_coverage" = yes; then
5221 : # no optimization by default
5222 elif test "$GCC" = yes; then
5225 # if the user selected debug mode, don't use -O
5226 if test "$enable_debug" != yes; then
5231 # When generating bitcode (for inlining) we always want to use -O2
5232 # even when --enable-debug is specified. The bitcode is not going to
5233 # be used for line-by-line debugging, and JIT inlining doesn't work
5234 # without at least -O1 (otherwise clang will emit 'noinline'
5235 # attributes everywhere), which is bad for testing. Still allow the
5236 # environment to override if done explicitly.
5237 if test "$ac_env_BITCODE_CFLAGS_set" = set; then
5238 BITCODE_CFLAGS
=$ac_env_BITCODE_CFLAGS_value
5240 BITCODE_CFLAGS
="-O2 $BITCODE_CFLAGS"
5242 if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
5243 BITCODE_CXXFLAGS
=$ac_env_BITCODE_CXXFLAGS_value
5245 BITCODE_CXXFLAGS
="-O2 $BITCODE_CXXFLAGS"
5248 # C[XX]FLAGS we determined above will be added back at the end
5251 user_CXXFLAGS
=$CXXFLAGS
5253 user_BITCODE_CFLAGS
=$BITCODE_CFLAGS
5255 user_BITCODE_CXXFLAGS
=$BITCODE_CXXFLAGS
5258 # set CFLAGS_VECTOR from the environment, if available
5259 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
5260 CFLAGS_VECTOR
=$ac_env_CFLAGS_VECTOR_value
5263 # Some versions of GCC support some additional useful warning flags.
5264 # Check whether they are supported, and add them to CFLAGS if so.
5265 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
5266 # but has its own. Also check other compiler-specific flags here.
5268 if test "$GCC" = yes -a "$ICC" = no
; then
5269 CFLAGS
="-Wall -Wmissing-prototypes -Wpointer-arith"
5270 CXXFLAGS
="-Wall -Wpointer-arith"
5271 # These work in some but not all gcc versions
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
5275 $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
5276 if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false
; then :
5277 $as_echo_n "(cached) " >&6
5279 pgac_save_CFLAGS
=$CFLAGS
5282 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5283 ac_save_c_werror_flag
=$ac_c_werror_flag
5284 ac_c_werror_flag
=yes
5285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5296 if ac_fn_c_try_compile
"$LINENO"; then :
5297 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=yes
5299 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=no
5301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5302 ac_c_werror_flag
=$ac_save_c_werror_flag
5303 CFLAGS
="$pgac_save_CFLAGS"
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5
5307 $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
5308 if test x
"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x
"yes"; then
5309 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5313 # -Wdeclaration-after-statement isn't applicable for C++. Specific C files
5314 # disable it, so AC_SUBST the negative form.
5315 PERMIT_DECLARATION_AFTER_STATEMENT
=
5316 if test x
"$save_CFLAGS" != x
"$CFLAGS"; then
5317 PERMIT_DECLARATION_AFTER_STATEMENT
=-Wno-declaration-after-statement
5320 # Really don't want VLAs to be used in our dialect of C
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5
5323 $as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; }
5324 if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false
; then :
5325 $as_echo_n "(cached) " >&6
5327 pgac_save_CFLAGS
=$CFLAGS
5330 CFLAGS
="${CFLAGS} -Werror=vla"
5331 ac_save_c_werror_flag
=$ac_c_werror_flag
5332 ac_c_werror_flag
=yes
5333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5344 if ac_fn_c_try_compile
"$LINENO"; then :
5345 pgac_cv_prog_CC_cflags__Werror_vla
=yes
5347 pgac_cv_prog_CC_cflags__Werror_vla
=no
5349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5350 ac_c_werror_flag
=$ac_save_c_werror_flag
5351 CFLAGS
="$pgac_save_CFLAGS"
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5
5355 $as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; }
5356 if test x
"$pgac_cv_prog_CC_cflags__Werror_vla" = x
"yes"; then
5357 CFLAGS
="${CFLAGS} -Werror=vla"
5361 # -Wvla is not applicable for C++
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
5364 $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
5365 if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false
; then :
5366 $as_echo_n "(cached) " >&6
5368 pgac_save_CFLAGS
=$CFLAGS
5371 CFLAGS
="${CFLAGS} -Wendif-labels"
5372 ac_save_c_werror_flag
=$ac_c_werror_flag
5373 ac_c_werror_flag
=yes
5374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5385 if ac_fn_c_try_compile
"$LINENO"; then :
5386 pgac_cv_prog_CC_cflags__Wendif_labels
=yes
5388 pgac_cv_prog_CC_cflags__Wendif_labels
=no
5390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5391 ac_c_werror_flag
=$ac_save_c_werror_flag
5392 CFLAGS
="$pgac_save_CFLAGS"
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
5396 $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
5397 if test x
"$pgac_cv_prog_CC_cflags__Wendif_labels" = x
"yes"; then
5398 CFLAGS
="${CFLAGS} -Wendif-labels"
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
5403 $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
5404 if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false
; then :
5405 $as_echo_n "(cached) " >&6
5407 pgac_save_CXXFLAGS
=$CXXFLAGS
5410 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5411 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5412 ac_cxx_werror_flag
=yes
5414 ac_cpp
='$CXXCPP $CPPFLAGS'
5415 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5430 if ac_fn_cxx_try_compile
"$LINENO"; then :
5431 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=yes
5433 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=no
5435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5437 ac_cpp
='$CPP $CPPFLAGS'
5438 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5442 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5443 CXXFLAGS
="$pgac_save_CXXFLAGS"
5444 CXX
="$pgac_save_CXX"
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
5447 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
5448 if test x
"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x
"yes"; then
5449 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
5455 $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
5456 if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false
; then :
5457 $as_echo_n "(cached) " >&6
5459 pgac_save_CFLAGS
=$CFLAGS
5462 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5463 ac_save_c_werror_flag
=$ac_c_werror_flag
5464 ac_c_werror_flag
=yes
5465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5476 if ac_fn_c_try_compile
"$LINENO"; then :
5477 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=yes
5479 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=no
5481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5482 ac_c_werror_flag
=$ac_save_c_werror_flag
5483 CFLAGS
="$pgac_save_CFLAGS"
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
5487 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
5488 if test x
"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x
"yes"; then
5489 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
5494 $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
5495 if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false
; then :
5496 $as_echo_n "(cached) " >&6
5498 pgac_save_CXXFLAGS
=$CXXFLAGS
5501 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5502 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5503 ac_cxx_werror_flag
=yes
5505 ac_cpp
='$CXXCPP $CPPFLAGS'
5506 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5521 if ac_fn_cxx_try_compile
"$LINENO"; then :
5522 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=yes
5524 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=no
5526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5528 ac_cpp
='$CPP $CPPFLAGS'
5529 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5530 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5531 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5533 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5534 CXXFLAGS
="$pgac_save_CXXFLAGS"
5535 CXX
="$pgac_save_CXX"
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
5538 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
5539 if test x
"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x
"yes"; then
5540 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5544 # This was included in -Wall/-Wformat in older GCC versions
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
5547 $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
5548 if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false
; then :
5549 $as_echo_n "(cached) " >&6
5551 pgac_save_CFLAGS
=$CFLAGS
5554 CFLAGS
="${CFLAGS} -Wformat-security"
5555 ac_save_c_werror_flag
=$ac_c_werror_flag
5556 ac_c_werror_flag
=yes
5557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5568 if ac_fn_c_try_compile
"$LINENO"; then :
5569 pgac_cv_prog_CC_cflags__Wformat_security
=yes
5571 pgac_cv_prog_CC_cflags__Wformat_security
=no
5573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5574 ac_c_werror_flag
=$ac_save_c_werror_flag
5575 CFLAGS
="$pgac_save_CFLAGS"
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
5579 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
5580 if test x
"$pgac_cv_prog_CC_cflags__Wformat_security" = x
"yes"; then
5581 CFLAGS
="${CFLAGS} -Wformat-security"
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
5586 $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
5587 if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false
; then :
5588 $as_echo_n "(cached) " >&6
5590 pgac_save_CXXFLAGS
=$CXXFLAGS
5593 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
5594 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5595 ac_cxx_werror_flag
=yes
5597 ac_cpp
='$CXXCPP $CPPFLAGS'
5598 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5613 if ac_fn_cxx_try_compile
"$LINENO"; then :
5614 pgac_cv_prog_CXX_cxxflags__Wformat_security
=yes
5616 pgac_cv_prog_CXX_cxxflags__Wformat_security
=no
5618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5620 ac_cpp
='$CPP $CPPFLAGS'
5621 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5625 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5626 CXXFLAGS
="$pgac_save_CXXFLAGS"
5627 CXX
="$pgac_save_CXX"
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
5630 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
5631 if test x
"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x
"yes"; then
5632 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
5636 # Disable strict-aliasing rules; needed for gcc 3.3+
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
5639 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
5640 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
5641 $as_echo_n "(cached) " >&6
5643 pgac_save_CFLAGS
=$CFLAGS
5646 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
5647 ac_save_c_werror_flag
=$ac_c_werror_flag
5648 ac_c_werror_flag
=yes
5649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5660 if ac_fn_c_try_compile
"$LINENO"; then :
5661 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
5663 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
5665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5666 ac_c_werror_flag
=$ac_save_c_werror_flag
5667 CFLAGS
="$pgac_save_CFLAGS"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
5671 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
5672 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
5673 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
5678 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
5679 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
5680 $as_echo_n "(cached) " >&6
5682 pgac_save_CXXFLAGS
=$CXXFLAGS
5685 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
5686 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5687 ac_cxx_werror_flag
=yes
5689 ac_cpp
='$CXXCPP $CPPFLAGS'
5690 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5705 if ac_fn_cxx_try_compile
"$LINENO"; then :
5706 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
5708 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
5710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5712 ac_cpp
='$CPP $CPPFLAGS'
5713 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5714 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5715 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5717 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5718 CXXFLAGS
="$pgac_save_CXXFLAGS"
5719 CXX
="$pgac_save_CXX"
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
5722 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
5723 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
5724 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
5728 # Disable optimizations that assume no overflow; needed for gcc 4.3+
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5
5731 $as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; }
5732 if ${pgac_cv_prog_CC_cflags__fwrapv+:} false
; then :
5733 $as_echo_n "(cached) " >&6
5735 pgac_save_CFLAGS
=$CFLAGS
5738 CFLAGS
="${CFLAGS} -fwrapv"
5739 ac_save_c_werror_flag
=$ac_c_werror_flag
5740 ac_c_werror_flag
=yes
5741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5752 if ac_fn_c_try_compile
"$LINENO"; then :
5753 pgac_cv_prog_CC_cflags__fwrapv
=yes
5755 pgac_cv_prog_CC_cflags__fwrapv
=no
5757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5758 ac_c_werror_flag
=$ac_save_c_werror_flag
5759 CFLAGS
="$pgac_save_CFLAGS"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5
5763 $as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; }
5764 if test x
"$pgac_cv_prog_CC_cflags__fwrapv" = x
"yes"; then
5765 CFLAGS
="${CFLAGS} -fwrapv"
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5
5770 $as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; }
5771 if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false
; then :
5772 $as_echo_n "(cached) " >&6
5774 pgac_save_CXXFLAGS
=$CXXFLAGS
5777 CXXFLAGS
="${CXXFLAGS} -fwrapv"
5778 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5779 ac_cxx_werror_flag
=yes
5781 ac_cpp
='$CXXCPP $CPPFLAGS'
5782 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5797 if ac_fn_cxx_try_compile
"$LINENO"; then :
5798 pgac_cv_prog_CXX_cxxflags__fwrapv
=yes
5800 pgac_cv_prog_CXX_cxxflags__fwrapv
=no
5802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5804 ac_cpp
='$CPP $CPPFLAGS'
5805 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5809 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5810 CXXFLAGS
="$pgac_save_CXXFLAGS"
5811 CXX
="$pgac_save_CXX"
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5
5814 $as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; }
5815 if test x
"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x
"yes"; then
5816 CXXFLAGS
="${CXXFLAGS} -fwrapv"
5820 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5
5823 $as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; }
5824 if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false
; then :
5825 $as_echo_n "(cached) " >&6
5827 pgac_save_CFLAGS
=$CFLAGS
5830 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
5831 ac_save_c_werror_flag
=$ac_c_werror_flag
5832 ac_c_werror_flag
=yes
5833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5844 if ac_fn_c_try_compile
"$LINENO"; then :
5845 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=yes
5847 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=no
5849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5850 ac_c_werror_flag
=$ac_save_c_werror_flag
5851 CFLAGS
="$pgac_save_CFLAGS"
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&5
5855 $as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; }
5856 if test x
"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x
"yes"; then
5857 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5
5862 $as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; }
5863 if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false
; then :
5864 $as_echo_n "(cached) " >&6
5866 pgac_save_CXXFLAGS
=$CXXFLAGS
5869 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
5870 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5871 ac_cxx_werror_flag
=yes
5873 ac_cpp
='$CXXCPP $CPPFLAGS'
5874 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5889 if ac_fn_cxx_try_compile
"$LINENO"; then :
5890 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=yes
5892 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=no
5894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5896 ac_cpp
='$CPP $CPPFLAGS'
5897 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5901 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5902 CXXFLAGS
="$pgac_save_CXXFLAGS"
5903 CXX
="$pgac_save_CXX"
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5
5906 $as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; }
5907 if test x
"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
5908 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
5912 # Optimization flags for specific files that benefit from vectorization
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR" >&5
5914 $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR... " >&6; }
5915 if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false
; then :
5916 $as_echo_n "(cached) " >&6
5918 pgac_save_CFLAGS
=$CFLAGS
5921 CFLAGS
="${CFLAGS_VECTOR} -funroll-loops"
5922 ac_save_c_werror_flag
=$ac_c_werror_flag
5923 ac_c_werror_flag
=yes
5924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5935 if ac_fn_c_try_compile
"$LINENO"; then :
5936 pgac_cv_prog_CC_cflags__funroll_loops
=yes
5938 pgac_cv_prog_CC_cflags__funroll_loops
=no
5940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5941 ac_c_werror_flag
=$ac_save_c_werror_flag
5942 CFLAGS
="$pgac_save_CFLAGS"
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
5946 $as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
5947 if test x
"$pgac_cv_prog_CC_cflags__funroll_loops" = x
"yes"; then
5948 CFLAGS_VECTOR
="${CFLAGS_VECTOR} -funroll-loops"
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR" >&5
5953 $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR... " >&6; }
5954 if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false
; then :
5955 $as_echo_n "(cached) " >&6
5957 pgac_save_CFLAGS
=$CFLAGS
5960 CFLAGS
="${CFLAGS_VECTOR} -ftree-vectorize"
5961 ac_save_c_werror_flag
=$ac_c_werror_flag
5962 ac_c_werror_flag
=yes
5963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5974 if ac_fn_c_try_compile
"$LINENO"; then :
5975 pgac_cv_prog_CC_cflags__ftree_vectorize
=yes
5977 pgac_cv_prog_CC_cflags__ftree_vectorize
=no
5979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5980 ac_c_werror_flag
=$ac_save_c_werror_flag
5981 CFLAGS
="$pgac_save_CFLAGS"
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
5985 $as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
5986 if test x
"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x
"yes"; then
5987 CFLAGS_VECTOR
="${CFLAGS_VECTOR} -ftree-vectorize"
5992 # The following tests want to suppress various unhelpful warnings by adding
5993 # -Wno-foo switches. But gcc won't complain about unrecognized -Wno-foo
5994 # switches, so we have to test for the positive form and if that works,
5995 # add the negative form. Note that tests of this form typically need to
5996 # be duplicated in the BITCODE_CFLAGS setup stanza below.
5998 # Suppress clang's unhelpful unused-command-line-argument warnings.
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
6001 $as_echo_n "checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
6002 if ${pgac_cv_prog_CC_cflags__Wunused_command_line_argument+:} false
; then :
6003 $as_echo_n "(cached) " >&6
6005 pgac_save_CFLAGS
=$CFLAGS
6008 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6009 ac_save_c_werror_flag
=$ac_c_werror_flag
6010 ac_c_werror_flag
=yes
6011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6022 if ac_fn_c_try_compile
"$LINENO"; then :
6023 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=yes
6025 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=no
6027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6028 ac_c_werror_flag
=$ac_save_c_werror_flag
6029 CFLAGS
="$pgac_save_CFLAGS"
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&5
6033 $as_echo "$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&6; }
6034 if test x
"$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" = x
"yes"; then
6035 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6039 if test -n "$NOT_THE_CFLAGS"; then
6040 CFLAGS
="$CFLAGS -Wno-unused-command-line-argument"
6042 # Remove clang 12+'s compound-token-split-by-macro, as this causes a lot
6043 # of warnings when building plperl because of usages in the Perl headers.
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
6046 $as_echo_n "checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
6047 if ${pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro+:} false
; then :
6048 $as_echo_n "(cached) " >&6
6050 pgac_save_CFLAGS
=$CFLAGS
6053 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6054 ac_save_c_werror_flag
=$ac_c_werror_flag
6055 ac_c_werror_flag
=yes
6056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6067 if ac_fn_c_try_compile
"$LINENO"; then :
6068 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=yes
6070 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=no
6072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6073 ac_c_werror_flag
=$ac_save_c_werror_flag
6074 CFLAGS
="$pgac_save_CFLAGS"
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&5
6078 $as_echo "$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&6; }
6079 if test x
"$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
6080 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6084 if test -n "$NOT_THE_CFLAGS"; then
6085 CFLAGS
="$CFLAGS -Wno-compound-token-split-by-macro"
6087 # Similarly disable useless truncation warnings from gcc 8+
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
6090 $as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
6091 if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false
; then :
6092 $as_echo_n "(cached) " >&6
6094 pgac_save_CFLAGS
=$CFLAGS
6097 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6098 ac_save_c_werror_flag
=$ac_c_werror_flag
6099 ac_c_werror_flag
=yes
6100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6111 if ac_fn_c_try_compile
"$LINENO"; then :
6112 pgac_cv_prog_CC_cflags__Wformat_truncation
=yes
6114 pgac_cv_prog_CC_cflags__Wformat_truncation
=no
6116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6117 ac_c_werror_flag
=$ac_save_c_werror_flag
6118 CFLAGS
="$pgac_save_CFLAGS"
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5
6122 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; }
6123 if test x
"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x
"yes"; then
6124 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6128 if test -n "$NOT_THE_CFLAGS"; then
6129 CFLAGS
="$CFLAGS -Wno-format-truncation"
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
6133 $as_echo_n "checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
6134 if ${pgac_cv_prog_CC_cflags__Wstringop_truncation+:} false
; then :
6135 $as_echo_n "(cached) " >&6
6137 pgac_save_CFLAGS
=$CFLAGS
6140 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6141 ac_save_c_werror_flag
=$ac_c_werror_flag
6142 ac_c_werror_flag
=yes
6143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6154 if ac_fn_c_try_compile
"$LINENO"; then :
6155 pgac_cv_prog_CC_cflags__Wstringop_truncation
=yes
6157 pgac_cv_prog_CC_cflags__Wstringop_truncation
=no
6159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6160 ac_c_werror_flag
=$ac_save_c_werror_flag
6161 CFLAGS
="$pgac_save_CFLAGS"
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wstringop_truncation" >&5
6165 $as_echo "$pgac_cv_prog_CC_cflags__Wstringop_truncation" >&6; }
6166 if test x
"$pgac_cv_prog_CC_cflags__Wstringop_truncation" = x
"yes"; then
6167 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6171 if test -n "$NOT_THE_CFLAGS"; then
6172 CFLAGS
="$CFLAGS -Wno-stringop-truncation"
6174 elif test "$ICC" = yes; then
6175 # Intel's compiler has a bug/misoptimization in checking for
6176 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -mp1, for CFLAGS" >&5
6179 $as_echo_n "checking whether ${CC} supports -mp1, for CFLAGS... " >&6; }
6180 if ${pgac_cv_prog_CC_cflags__mp1+:} false
; then :
6181 $as_echo_n "(cached) " >&6
6183 pgac_save_CFLAGS
=$CFLAGS
6186 CFLAGS
="${CFLAGS} -mp1"
6187 ac_save_c_werror_flag
=$ac_c_werror_flag
6188 ac_c_werror_flag
=yes
6189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6200 if ac_fn_c_try_compile
"$LINENO"; then :
6201 pgac_cv_prog_CC_cflags__mp1
=yes
6203 pgac_cv_prog_CC_cflags__mp1
=no
6205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6206 ac_c_werror_flag
=$ac_save_c_werror_flag
6207 CFLAGS
="$pgac_save_CFLAGS"
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__mp1" >&5
6211 $as_echo "$pgac_cv_prog_CC_cflags__mp1" >&6; }
6212 if test x
"$pgac_cv_prog_CC_cflags__mp1" = x
"yes"; then
6213 CFLAGS
="${CFLAGS} -mp1"
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -mp1, for CXXFLAGS" >&5
6218 $as_echo_n "checking whether ${CXX} supports -mp1, for CXXFLAGS... " >&6; }
6219 if ${pgac_cv_prog_CXX_cxxflags__mp1+:} false
; then :
6220 $as_echo_n "(cached) " >&6
6222 pgac_save_CXXFLAGS
=$CXXFLAGS
6225 CXXFLAGS
="${CXXFLAGS} -mp1"
6226 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6227 ac_cxx_werror_flag
=yes
6229 ac_cpp
='$CXXCPP $CPPFLAGS'
6230 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6231 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6232 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6245 if ac_fn_cxx_try_compile
"$LINENO"; then :
6246 pgac_cv_prog_CXX_cxxflags__mp1
=yes
6248 pgac_cv_prog_CXX_cxxflags__mp1
=no
6250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6252 ac_cpp
='$CPP $CPPFLAGS'
6253 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6254 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6255 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6257 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6258 CXXFLAGS
="$pgac_save_CXXFLAGS"
6259 CXX
="$pgac_save_CXX"
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__mp1" >&5
6262 $as_echo "$pgac_cv_prog_CXX_cxxflags__mp1" >&6; }
6263 if test x
"$pgac_cv_prog_CXX_cxxflags__mp1" = x
"yes"; then
6264 CXXFLAGS
="${CXXFLAGS} -mp1"
6268 # Make sure strict aliasing is off (though this is said to be the default)
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6271 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6272 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
6273 $as_echo_n "(cached) " >&6
6275 pgac_save_CFLAGS
=$CFLAGS
6278 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6279 ac_save_c_werror_flag
=$ac_c_werror_flag
6280 ac_c_werror_flag
=yes
6281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6292 if ac_fn_c_try_compile
"$LINENO"; then :
6293 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
6295 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
6297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6298 ac_c_werror_flag
=$ac_save_c_werror_flag
6299 CFLAGS
="$pgac_save_CFLAGS"
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6303 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6304 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
6305 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6310 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6311 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
6312 $as_echo_n "(cached) " >&6
6314 pgac_save_CXXFLAGS
=$CXXFLAGS
6317 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6318 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6319 ac_cxx_werror_flag
=yes
6321 ac_cpp
='$CXXCPP $CPPFLAGS'
6322 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6337 if ac_fn_cxx_try_compile
"$LINENO"; then :
6338 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6340 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6344 ac_cpp
='$CPP $CPPFLAGS'
6345 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6346 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6347 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6349 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6350 CXXFLAGS
="$pgac_save_CXXFLAGS"
6351 CXX
="$pgac_save_CXX"
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6354 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6355 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6356 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6360 elif test "$PORTNAME" = "aix"; then
6361 # AIX's xlc has to have strict aliasing turned off too
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qnoansialias, for CFLAGS" >&5
6364 $as_echo_n "checking whether ${CC} supports -qnoansialias, for CFLAGS... " >&6; }
6365 if ${pgac_cv_prog_CC_cflags__qnoansialias+:} false
; then :
6366 $as_echo_n "(cached) " >&6
6368 pgac_save_CFLAGS
=$CFLAGS
6371 CFLAGS
="${CFLAGS} -qnoansialias"
6372 ac_save_c_werror_flag
=$ac_c_werror_flag
6373 ac_c_werror_flag
=yes
6374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6385 if ac_fn_c_try_compile
"$LINENO"; then :
6386 pgac_cv_prog_CC_cflags__qnoansialias
=yes
6388 pgac_cv_prog_CC_cflags__qnoansialias
=no
6390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6391 ac_c_werror_flag
=$ac_save_c_werror_flag
6392 CFLAGS
="$pgac_save_CFLAGS"
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qnoansialias" >&5
6396 $as_echo "$pgac_cv_prog_CC_cflags__qnoansialias" >&6; }
6397 if test x
"$pgac_cv_prog_CC_cflags__qnoansialias" = x
"yes"; then
6398 CFLAGS
="${CFLAGS} -qnoansialias"
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qnoansialias, for CXXFLAGS" >&5
6403 $as_echo_n "checking whether ${CXX} supports -qnoansialias, for CXXFLAGS... " >&6; }
6404 if ${pgac_cv_prog_CXX_cxxflags__qnoansialias+:} false
; then :
6405 $as_echo_n "(cached) " >&6
6407 pgac_save_CXXFLAGS
=$CXXFLAGS
6410 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6411 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6412 ac_cxx_werror_flag
=yes
6414 ac_cpp
='$CXXCPP $CPPFLAGS'
6415 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6416 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6417 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6430 if ac_fn_cxx_try_compile
"$LINENO"; then :
6431 pgac_cv_prog_CXX_cxxflags__qnoansialias
=yes
6433 pgac_cv_prog_CXX_cxxflags__qnoansialias
=no
6435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6437 ac_cpp
='$CPP $CPPFLAGS'
6438 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6442 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6443 CXXFLAGS
="$pgac_save_CXXFLAGS"
6444 CXX
="$pgac_save_CXX"
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qnoansialias" >&5
6447 $as_echo "$pgac_cv_prog_CXX_cxxflags__qnoansialias" >&6; }
6448 if test x
"$pgac_cv_prog_CXX_cxxflags__qnoansialias" = x
"yes"; then
6449 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qlonglong, for CFLAGS" >&5
6455 $as_echo_n "checking whether ${CC} supports -qlonglong, for CFLAGS... " >&6; }
6456 if ${pgac_cv_prog_CC_cflags__qlonglong+:} false
; then :
6457 $as_echo_n "(cached) " >&6
6459 pgac_save_CFLAGS
=$CFLAGS
6462 CFLAGS
="${CFLAGS} -qlonglong"
6463 ac_save_c_werror_flag
=$ac_c_werror_flag
6464 ac_c_werror_flag
=yes
6465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6476 if ac_fn_c_try_compile
"$LINENO"; then :
6477 pgac_cv_prog_CC_cflags__qlonglong
=yes
6479 pgac_cv_prog_CC_cflags__qlonglong
=no
6481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6482 ac_c_werror_flag
=$ac_save_c_werror_flag
6483 CFLAGS
="$pgac_save_CFLAGS"
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qlonglong" >&5
6487 $as_echo "$pgac_cv_prog_CC_cflags__qlonglong" >&6; }
6488 if test x
"$pgac_cv_prog_CC_cflags__qlonglong" = x
"yes"; then
6489 CFLAGS
="${CFLAGS} -qlonglong"
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qlonglong, for CXXFLAGS" >&5
6494 $as_echo_n "checking whether ${CXX} supports -qlonglong, for CXXFLAGS... " >&6; }
6495 if ${pgac_cv_prog_CXX_cxxflags__qlonglong+:} false
; then :
6496 $as_echo_n "(cached) " >&6
6498 pgac_save_CXXFLAGS
=$CXXFLAGS
6501 CXXFLAGS
="${CXXFLAGS} -qlonglong"
6502 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6503 ac_cxx_werror_flag
=yes
6505 ac_cpp
='$CXXCPP $CPPFLAGS'
6506 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6521 if ac_fn_cxx_try_compile
"$LINENO"; then :
6522 pgac_cv_prog_CXX_cxxflags__qlonglong
=yes
6524 pgac_cv_prog_CXX_cxxflags__qlonglong
=no
6526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6528 ac_cpp
='$CPP $CPPFLAGS'
6529 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6530 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6531 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6533 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6534 CXXFLAGS
="$pgac_save_CXXFLAGS"
6535 CXX
="$pgac_save_CXX"
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qlonglong" >&5
6538 $as_echo "$pgac_cv_prog_CXX_cxxflags__qlonglong" >&6; }
6539 if test x
"$pgac_cv_prog_CXX_cxxflags__qlonglong" = x
"yes"; then
6540 CXXFLAGS
="${CXXFLAGS} -qlonglong"
6544 elif test "$PORTNAME" = "hpux"; then
6545 # On some versions of HP-UX, libm functions do not set errno by default.
6546 # Fix that by using +Olibmerrno if the compiler recognizes it.
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports +Olibmerrno, for CFLAGS" >&5
6549 $as_echo_n "checking whether ${CC} supports +Olibmerrno, for CFLAGS... " >&6; }
6550 if ${pgac_cv_prog_CC_cflags_pOlibmerrno+:} false
; then :
6551 $as_echo_n "(cached) " >&6
6553 pgac_save_CFLAGS
=$CFLAGS
6556 CFLAGS
="${CFLAGS} +Olibmerrno"
6557 ac_save_c_werror_flag
=$ac_c_werror_flag
6558 ac_c_werror_flag
=yes
6559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6570 if ac_fn_c_try_compile
"$LINENO"; then :
6571 pgac_cv_prog_CC_cflags_pOlibmerrno
=yes
6573 pgac_cv_prog_CC_cflags_pOlibmerrno
=no
6575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6576 ac_c_werror_flag
=$ac_save_c_werror_flag
6577 CFLAGS
="$pgac_save_CFLAGS"
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags_pOlibmerrno" >&5
6581 $as_echo "$pgac_cv_prog_CC_cflags_pOlibmerrno" >&6; }
6582 if test x
"$pgac_cv_prog_CC_cflags_pOlibmerrno" = x
"yes"; then
6583 CFLAGS
="${CFLAGS} +Olibmerrno"
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS" >&5
6588 $as_echo_n "checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS... " >&6; }
6589 if ${pgac_cv_prog_CXX_cxxflags_pOlibmerrno+:} false
; then :
6590 $as_echo_n "(cached) " >&6
6592 pgac_save_CXXFLAGS
=$CXXFLAGS
6595 CXXFLAGS
="${CXXFLAGS} +Olibmerrno"
6596 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6597 ac_cxx_werror_flag
=yes
6599 ac_cpp
='$CXXCPP $CPPFLAGS'
6600 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6615 if ac_fn_cxx_try_compile
"$LINENO"; then :
6616 pgac_cv_prog_CXX_cxxflags_pOlibmerrno
=yes
6618 pgac_cv_prog_CXX_cxxflags_pOlibmerrno
=no
6620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6622 ac_cpp
='$CPP $CPPFLAGS'
6623 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6627 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6628 CXXFLAGS
="$pgac_save_CXXFLAGS"
6629 CXX
="$pgac_save_CXX"
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&5
6632 $as_echo "$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&6; }
6633 if test x
"$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" = x
"yes"; then
6634 CXXFLAGS
="${CXXFLAGS} +Olibmerrno"
6642 # Determine flags used to emit bitcode for JIT inlining.
6643 # 1. We must duplicate any behaviour-changing compiler flags used above,
6644 # to keep compatibility with the compiler used for normal Postgres code.
6645 # 2. We don't bother to duplicate extra-warnings switches --- seeing a
6646 # warning in the main build is enough.
6647 # 3. But we must duplicate -Wno-warning flags, else we'll see those anyway.
6648 if test "$with_llvm" = yes ; then
6649 CLANGXX
="$CLANG -xc++"
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5
6652 $as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; }
6653 if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false
; then :
6654 $as_echo_n "(cached) " >&6
6656 pgac_save_CFLAGS
=$CFLAGS
6659 CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
6660 ac_save_c_werror_flag
=$ac_c_werror_flag
6661 ac_c_werror_flag
=yes
6662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6673 if ac_fn_c_try_compile
"$LINENO"; then :
6674 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=yes
6676 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=no
6678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6679 ac_c_werror_flag
=$ac_save_c_werror_flag
6680 CFLAGS
="$pgac_save_CFLAGS"
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5
6684 $as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; }
6685 if test x
"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x
"yes"; then
6686 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5
6690 $as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; }
6691 if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false
; then :
6692 $as_echo_n "(cached) " >&6
6694 pgac_save_CXXFLAGS
=$CXXFLAGS
6697 CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
6698 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6699 ac_cxx_werror_flag
=yes
6701 ac_cpp
='$CXXCPP $CPPFLAGS'
6702 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6703 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6704 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6717 if ac_fn_cxx_try_compile
"$LINENO"; then :
6718 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=yes
6720 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=no
6722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6724 ac_cpp
='$CPP $CPPFLAGS'
6725 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6729 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6730 CXXFLAGS
="$pgac_save_CXXFLAGS"
6731 CXX
="$pgac_save_CXX"
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5
6734 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; }
6735 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6736 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5
6740 $as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; }
6741 if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false
; then :
6742 $as_echo_n "(cached) " >&6
6744 pgac_save_CFLAGS
=$CFLAGS
6747 CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
6748 ac_save_c_werror_flag
=$ac_c_werror_flag
6749 ac_c_werror_flag
=yes
6750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6761 if ac_fn_c_try_compile
"$LINENO"; then :
6762 pgac_cv_prog_CLANG_cflags__fwrapv
=yes
6764 pgac_cv_prog_CLANG_cflags__fwrapv
=no
6766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6767 ac_c_werror_flag
=$ac_save_c_werror_flag
6768 CFLAGS
="$pgac_save_CFLAGS"
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5
6772 $as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; }
6773 if test x
"$pgac_cv_prog_CLANG_cflags__fwrapv" = x
"yes"; then
6774 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5
6778 $as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; }
6779 if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false
; then :
6780 $as_echo_n "(cached) " >&6
6782 pgac_save_CXXFLAGS
=$CXXFLAGS
6785 CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
6786 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6787 ac_cxx_werror_flag
=yes
6789 ac_cpp
='$CXXCPP $CPPFLAGS'
6790 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6791 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6805 if ac_fn_cxx_try_compile
"$LINENO"; then :
6806 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=yes
6808 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=no
6810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6812 ac_cpp
='$CPP $CPPFLAGS'
6813 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6814 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6817 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6818 CXXFLAGS
="$pgac_save_CXXFLAGS"
6819 CXX
="$pgac_save_CXX"
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5
6822 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; }
6823 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x
"yes"; then
6824 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5
6828 $as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; }
6829 if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false
; then :
6830 $as_echo_n "(cached) " >&6
6832 pgac_save_CFLAGS
=$CFLAGS
6835 CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
6836 ac_save_c_werror_flag
=$ac_c_werror_flag
6837 ac_c_werror_flag
=yes
6838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6849 if ac_fn_c_try_compile
"$LINENO"; then :
6850 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=yes
6852 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=no
6854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6855 ac_c_werror_flag
=$ac_save_c_werror_flag
6856 CFLAGS
="$pgac_save_CFLAGS"
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5
6860 $as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; }
6861 if test x
"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x
"yes"; then
6862 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5
6866 $as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; }
6867 if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false
; then :
6868 $as_echo_n "(cached) " >&6
6870 pgac_save_CXXFLAGS
=$CXXFLAGS
6873 CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
6874 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6875 ac_cxx_werror_flag
=yes
6877 ac_cpp
='$CXXCPP $CPPFLAGS'
6878 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6893 if ac_fn_cxx_try_compile
"$LINENO"; then :
6894 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=yes
6896 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=no
6898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6900 ac_cpp
='$CPP $CPPFLAGS'
6901 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6905 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6906 CXXFLAGS
="$pgac_save_CXXFLAGS"
6907 CXX
="$pgac_save_CXX"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5
6910 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; }
6911 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
6912 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
6918 $as_echo_n "checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
6919 if ${pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument+:} false
; then :
6920 $as_echo_n "(cached) " >&6
6922 pgac_save_CFLAGS
=$CFLAGS
6925 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6926 ac_save_c_werror_flag
=$ac_c_werror_flag
6927 ac_c_werror_flag
=yes
6928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6939 if ac_fn_c_try_compile
"$LINENO"; then :
6940 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=yes
6942 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=no
6944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6945 ac_c_werror_flag
=$ac_save_c_werror_flag
6946 CFLAGS
="$pgac_save_CFLAGS"
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&5
6950 $as_echo "$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&6; }
6951 if test x
"$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" = x
"yes"; then
6952 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6955 if test -n "$NOT_THE_CFLAGS"; then
6956 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-unused-command-line-argument"
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
6960 $as_echo_n "checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
6961 if ${pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro+:} false
; then :
6962 $as_echo_n "(cached) " >&6
6964 pgac_save_CFLAGS
=$CFLAGS
6967 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6968 ac_save_c_werror_flag
=$ac_c_werror_flag
6969 ac_c_werror_flag
=yes
6970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6981 if ac_fn_c_try_compile
"$LINENO"; then :
6982 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=yes
6984 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=no
6986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6987 ac_c_werror_flag
=$ac_save_c_werror_flag
6988 CFLAGS
="$pgac_save_CFLAGS"
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&5
6992 $as_echo "$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&6; }
6993 if test x
"$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
6994 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6997 if test -n "$NOT_THE_CFLAGS"; then
6998 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-compound-token-split-by-macro"
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
7002 $as_echo_n "checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
7003 if ${pgac_cv_prog_CLANG_cflags__Wformat_truncation+:} false
; then :
7004 $as_echo_n "(cached) " >&6
7006 pgac_save_CFLAGS
=$CFLAGS
7009 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7010 ac_save_c_werror_flag
=$ac_c_werror_flag
7011 ac_c_werror_flag
=yes
7012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7023 if ac_fn_c_try_compile
"$LINENO"; then :
7024 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=yes
7026 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=no
7028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7029 ac_c_werror_flag
=$ac_save_c_werror_flag
7030 CFLAGS
="$pgac_save_CFLAGS"
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&5
7034 $as_echo "$pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&6; }
7035 if test x
"$pgac_cv_prog_CLANG_cflags__Wformat_truncation" = x
"yes"; then
7036 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7039 if test -n "$NOT_THE_CFLAGS"; then
7040 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-format-truncation"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
7044 $as_echo_n "checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
7045 if ${pgac_cv_prog_CLANG_cflags__Wstringop_truncation+:} false
; then :
7046 $as_echo_n "(cached) " >&6
7048 pgac_save_CFLAGS
=$CFLAGS
7051 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7052 ac_save_c_werror_flag
=$ac_c_werror_flag
7053 ac_c_werror_flag
=yes
7054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7065 if ac_fn_c_try_compile
"$LINENO"; then :
7066 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=yes
7068 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=no
7070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7071 ac_c_werror_flag
=$ac_save_c_werror_flag
7072 CFLAGS
="$pgac_save_CFLAGS"
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&5
7076 $as_echo "$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&6; }
7077 if test x
"$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" = x
"yes"; then
7078 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7081 if test -n "$NOT_THE_CFLAGS"; then
7082 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-stringop-truncation"
7086 # supply -g if --enable-debug
7087 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
7091 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
7092 CXXFLAGS
="$CXXFLAGS -g"
7095 # enable code coverage if --enable-coverage
7096 if test "$enable_coverage" = yes; then
7097 if test "$GCC" = yes; then
7098 CFLAGS
="$CFLAGS -fprofile-arcs -ftest-coverage"
7099 CXXFLAGS
="$CXXFLAGS -fprofile-arcs -ftest-coverage"
7101 as_fn_error $?
"--enable-coverage is supported only when using GCC" "$LINENO" 5
7105 # enable profiling if --enable-profiling
7106 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
7107 if test "$GCC" = yes; then
7109 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
7111 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7112 CXXFLAGS
="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7114 as_fn_error $?
"--enable-profiling is supported only when using GCC" "$LINENO" 5
7118 # We already have this in Makefile.win32, but configure needs it too
7119 if test "$PORTNAME" = "win32"; then
7120 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
7123 # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the
7124 # user-specified flags (if any) at the end. This lets users override
7125 # the automatic additions.
7126 CFLAGS
="$CFLAGS $user_CFLAGS"
7127 CXXFLAGS
="$CXXFLAGS $user_CXXFLAGS"
7128 BITCODE_CFLAGS
="$BITCODE_CFLAGS $user_BITCODE_CFLAGS"
7129 BITCODE_CXXFLAGS
="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS"
7134 # The template file must set up CFLAGS_SL; we don't support user override
7137 # Check if the compiler still works with the final flag settings
7138 # (note, we're not checking that for CXX, which is optional)
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
7140 $as_echo_n "checking whether the C compiler still works... " >&6; }
7141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7152 if ac_fn_c_try_link
"$LINENO"; then :
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7154 $as_echo "yes" >&6; }
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7158 as_fn_error $?
"cannot proceed" "$LINENO" 5
7160 rm -f core conftest.err conftest.
$ac_objext \
7161 conftest
$ac_exeext conftest.
$ac_ext
7163 # Defend against gcc -ffast-math
7164 if test "$GCC" = yes; then
7165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7171 #ifdef __FAST_MATH__
7178 if ac_fn_c_try_compile
"$LINENO"; then :
7181 as_fn_error $?
"do not put -ffast-math in CFLAGS" "$LINENO" 5
7183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7186 # Defend against clang being used on x86-32 without SSE2 enabled. As current
7187 # versions of clang do not understand -fexcess-precision=standard, the use of
7188 # x87 floating point operations leads to problems like isinf possibly returning
7189 # false for a value that is infinite when converted from the 80bit register to
7190 # the 8byte memory representation.
7192 # Only perform the test if the compiler doesn't understand
7193 # -fexcess-precision=standard, that way a potentially fixed compiler will work
7195 if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no
; then
7196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7203 #if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
7211 if ac_fn_c_try_compile
"$LINENO"; then :
7214 as_fn_error $?
"Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5
7216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7220 ac_cpp
='$CPP $CPPFLAGS'
7221 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7225 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7226 # On Suns, sometimes $CPP names a directory.
7227 if test -n "$CPP" && test -d "$CPP"; then
7230 if test -z "$CPP"; then
7231 if ${ac_cv_prog_CPP+:} false
; then :
7232 $as_echo_n "(cached) " >&6
7234 # Double quotes because CPP needs to be expanded
7235 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7238 for ac_c_preproc_warn_flag
in '' yes
7240 # Use a header file that comes with gcc, so configuring glibc
7241 # with a fresh cross-compiler works.
7242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7243 # <limits.h> exists even on freestanding compilers.
7244 # On the NeXT, cc -E runs the code through the compiler's parser,
7245 # not just through cpp. "Syntax error" is here to catch this case.
7246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7249 # include <limits.h>
7251 # include <assert.h>
7255 if ac_fn_c_try_cpp
"$LINENO"; then :
7258 # Broken: fails on valid input.
7261 rm -f conftest.err conftest.i conftest.
$ac_ext
7263 # OK, works on sane cases. Now check whether nonexistent headers
7264 # can be detected and how.
7265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 #include <ac_nonexistent.h>
7269 if ac_fn_c_try_cpp
"$LINENO"; then :
7270 # Broken: success on invalid input.
7273 # Passes both tests.
7277 rm -f conftest.err conftest.i conftest.
$ac_ext
7280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7281 rm -f conftest.i conftest.err conftest.
$ac_ext
7282 if $ac_preproc_ok; then :
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7295 $as_echo "$CPP" >&6; }
7297 for ac_c_preproc_warn_flag
in '' yes
7299 # Use a header file that comes with gcc, so configuring glibc
7300 # with a fresh cross-compiler works.
7301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7302 # <limits.h> exists even on freestanding compilers.
7303 # On the NeXT, cc -E runs the code through the compiler's parser,
7304 # not just through cpp. "Syntax error" is here to catch this case.
7305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7308 # include <limits.h>
7310 # include <assert.h>
7314 if ac_fn_c_try_cpp
"$LINENO"; then :
7317 # Broken: fails on valid input.
7320 rm -f conftest.err conftest.i conftest.
$ac_ext
7322 # OK, works on sane cases. Now check whether nonexistent headers
7323 # can be detected and how.
7324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326 #include <ac_nonexistent.h>
7328 if ac_fn_c_try_cpp
"$LINENO"; then :
7329 # Broken: success on invalid input.
7332 # Passes both tests.
7336 rm -f conftest.err conftest.i conftest.
$ac_ext
7339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7340 rm -f conftest.i conftest.err conftest.
$ac_ext
7341 if $ac_preproc_ok; then :
7344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7346 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7347 See \`config.log' for more details" "$LINENO" 5; }
7351 ac_cpp
='$CPP $CPPFLAGS'
7352 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7360 # Set up TAS assembly code if needed; the template file has now had its
7361 # chance to request this.
7363 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
7366 if test "$need_tas" = yes ; then
7374 # Set up pkg_config in case we need it below
7383 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7384 if test -n "$ac_tool_prefix"; then
7385 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7386 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7390 $as_echo_n "(cached) " >&6
7394 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir
=.
7402 for ac_exec_ext
in '' $ac_executable_extensions; do
7403 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7416 if test -n "$PKG_CONFIG"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7418 $as_echo "$PKG_CONFIG" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7426 if test -z "$ac_cv_path_PKG_CONFIG"; then
7427 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7428 # Extract the first word of "pkg-config", so it can be a program name with args.
7429 set dummy pkg-config
; ac_word
=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
7433 $as_echo_n "(cached) " >&6
7435 case $ac_pt_PKG_CONFIG in
7437 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7444 test -z "$as_dir" && as_dir
=.
7445 for ac_exec_ext
in '' $ac_executable_extensions; do
7446 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7447 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7459 if test -n "$ac_pt_PKG_CONFIG"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7461 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7467 if test "x$ac_pt_PKG_CONFIG" = x
; then
7470 case $cross_compiling:$ac_tool_warned in
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7474 ac_tool_warned
=yes ;;
7476 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7479 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7483 if test -n "$PKG_CONFIG"; then
7484 _pkg_min_version
=0.9.0
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7486 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7487 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7489 $as_echo "yes" >&6; }
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7498 # Automatic dependency tracking
7502 # Check whether --enable-depend was given.
7503 if test "${enable_depend+set}" = set; then :
7504 enableval
=$enable_depend;
7513 as_fn_error $?
"no argument expected for --enable-depend option" "$LINENO" 5
7527 # Enable assert checks
7531 # Check whether --enable-cassert was given.
7532 if test "${enable_cassert+set}" = set; then :
7533 enableval
=$enable_cassert;
7537 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
7544 as_fn_error $?
"no argument expected for --enable-cassert option" "$LINENO" 5
7557 # Include directories
7560 IFS
="${IFS}${PATH_SEPARATOR}"
7561 # SRCH_INC comes from the template file
7562 for dir
in $with_includes $SRCH_INC; do
7563 if test -d "$dir"; then
7564 INCLUDES
="$INCLUDES -I$dir"
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
7567 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
7575 # Library directories
7578 IFS
="${IFS}${PATH_SEPARATOR}"
7579 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
7580 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
7581 if test -d "$dir"; then
7582 LIBDIRS
="$LIBDIRS -L$dir"
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
7585 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
7591 # Enable thread-safe client libraries
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
7594 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
7597 # Check whether --enable-thread-safety was given.
7598 if test "${enable_thread_safety+set}" = set; then :
7599 enableval
=$enable_thread_safety;
7608 as_fn_error $?
"no argument expected for --enable-thread-safety option" "$LINENO" 5
7613 enable_thread_safety
=yes
7618 if test "$enable_thread_safety" = yes; then
7620 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
7624 $as_echo "$enable_thread_safety" >&6; }
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
7631 $as_echo_n "checking whether to build with ICU support... " >&6; }
7635 # Check whether --with-icu was given.
7636 if test "${with_icu+set}" = set; then :
7641 $as_echo "#define USE_ICU 1" >>confdefs.h
7648 as_fn_error $?
"no argument expected for --with-icu option" "$LINENO" 5
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
7659 $as_echo "$with_icu" >&6; }
7662 if test "$with_icu" = yes; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
7666 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
7668 if test -n "$ICU_CFLAGS"; then
7669 pkg_cv_ICU_CFLAGS
="$ICU_CFLAGS"
7670 elif test -n "$PKG_CONFIG"; then
7671 if test -n "$PKG_CONFIG" && \
7672 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
7673 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
7675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7676 test $ac_status = 0; }; then
7677 pkg_cv_ICU_CFLAGS
=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
7678 test "x$?" != "x0" && pkg_failed
=yes
7685 if test -n "$ICU_LIBS"; then
7686 pkg_cv_ICU_LIBS
="$ICU_LIBS"
7687 elif test -n "$PKG_CONFIG"; then
7688 if test -n "$PKG_CONFIG" && \
7689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
7690 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
7692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7693 test $ac_status = 0; }; then
7694 pkg_cv_ICU_LIBS
=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
7695 test "x$?" != "x0" && pkg_failed
=yes
7705 if test $pkg_failed = yes; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7709 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7710 _pkg_short_errors_supported
=yes
7712 _pkg_short_errors_supported
=no
7714 if test $_pkg_short_errors_supported = yes; then
7715 ICU_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
7717 ICU_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
7719 # Put the nasty error message in config.log where it belongs
7720 echo "$ICU_PKG_ERRORS" >&5
7722 as_fn_error $?
"Package requirements (icu-uc icu-i18n) were not met:
7726 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7727 installed software in a non-standard prefix.
7729 Alternatively, you may set the environment variables ICU_CFLAGS
7730 and ICU_LIBS to avoid the need to call pkg-config.
7731 See the pkg-config man page for more details." "$LINENO" 5
7732 elif test $pkg_failed = untried
; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7737 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
7738 is in your PATH or set the PKG_CONFIG environment variable to the full
7741 Alternatively, you may set the environment variables ICU_CFLAGS
7742 and ICU_LIBS to avoid the need to call pkg-config.
7743 See the pkg-config man page for more details.
7745 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7746 See \`config.log' for more details" "$LINENO" 5; }
7748 ICU_CFLAGS
=$pkg_cv_ICU_CFLAGS
7749 ICU_LIBS
=$pkg_cv_ICU_LIBS
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7751 $as_echo "yes" >&6; }
7757 # Optionally build Tcl modules (PL/Tcl)
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
7760 $as_echo_n "checking whether to build with Tcl... " >&6; }
7764 # Check whether --with-tcl was given.
7765 if test "${with_tcl+set}" = set; then :
7775 as_fn_error $?
"no argument expected for --with-tcl option" "$LINENO" 5
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
7786 $as_echo "$with_tcl" >&6; }
7789 # We see if the path to the Tcl/Tk configuration scripts is specified.
7790 # This will override the use of tclsh to find the paths to search.
7795 # Check whether --with-tclconfig was given.
7796 if test "${with_tclconfig+set}" = set; then :
7797 withval
=$with_tclconfig;
7800 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
7803 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
7815 # Optionally build Perl modules (PL/Perl)
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
7818 $as_echo_n "checking whether to build Perl modules... " >&6; }
7822 # Check whether --with-perl was given.
7823 if test "${with_perl+set}" = set; then :
7833 as_fn_error $?
"no argument expected for --with-perl option" "$LINENO" 5
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
7844 $as_echo "$with_perl" >&6; }
7848 # Optionally build Python modules (PL/Python)
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
7851 $as_echo_n "checking whether to build Python modules... " >&6; }
7855 # Check whether --with-python was given.
7856 if test "${with_python+set}" = set; then :
7857 withval
=$with_python;
7866 as_fn_error $?
"no argument expected for --with-python option" "$LINENO" 5
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7877 $as_echo "$with_python" >&6; }
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
7884 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
7888 # Check whether --with-gssapi was given.
7889 if test "${with_gssapi+set}" = set; then :
7890 withval
=$with_gssapi;
7895 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
7897 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
7904 as_fn_error $?
"no argument expected for --with-gssapi option" "$LINENO" 5
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
7915 $as_echo "$with_gssapi" >&6; }
7923 # Kerberos configuration parameters
7928 # Check whether --with-krb-srvnam was given.
7929 if test "${with_krb_srvnam+set}" = set; then :
7930 withval
=$with_krb_srvnam;
7933 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
7936 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
7944 with_krb_srvnam
="postgres"
7950 cat >>confdefs.h
<<_ACEOF
7951 #define PG_KRB_SRVNAM "$with_krb_srvnam"
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
7960 $as_echo_n "checking whether to build with PAM support... " >&6; }
7964 # Check whether --with-pam was given.
7965 if test "${with_pam+set}" = set; then :
7970 $as_echo "#define USE_PAM 1" >>confdefs.h
7977 as_fn_error $?
"no argument expected for --with-pam option" "$LINENO" 5
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
7988 $as_echo "$with_pam" >&6; }
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
7995 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
7999 # Check whether --with-bsd-auth was given.
8000 if test "${with_bsd_auth+set}" = set; then :
8001 withval
=$with_bsd_auth;
8005 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
8012 as_fn_error $?
"no argument expected for --with-bsd-auth option" "$LINENO" 5
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
8023 $as_echo "$with_bsd_auth" >&6; }
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
8030 $as_echo_n "checking whether to build with LDAP support... " >&6; }
8034 # Check whether --with-ldap was given.
8035 if test "${with_ldap+set}" = set; then :
8040 $as_echo "#define USE_LDAP 1" >>confdefs.h
8047 as_fn_error $?
"no argument expected for --with-ldap option" "$LINENO" 5
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
8058 $as_echo "$with_ldap" >&6; }
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
8066 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
8070 # Check whether --with-bonjour was given.
8071 if test "${with_bonjour+set}" = set; then :
8072 withval
=$with_bonjour;
8076 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
8083 as_fn_error $?
"no argument expected for --with-bonjour option" "$LINENO" 5
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
8094 $as_echo "$with_bonjour" >&6; }
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
8101 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
8105 # Check whether --with-openssl was given.
8106 if test "${with_openssl+set}" = set; then :
8107 withval
=$with_openssl;
8111 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
8118 as_fn_error $?
"no argument expected for --with-openssl option" "$LINENO" 5
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
8129 $as_echo "$with_openssl" >&6; }
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
8136 $as_echo_n "checking whether to build with SELinux support... " >&6; }
8140 # Check whether --with-selinux was given.
8141 if test "${with_selinux+set}" = set; then :
8142 withval
=$with_selinux;
8151 as_fn_error $?
"no argument expected for --with-selinux option" "$LINENO" 5
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
8163 $as_echo "$with_selinux" >&6; }
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
8169 $as_echo_n "checking whether to build with systemd support... " >&6; }
8173 # Check whether --with-systemd was given.
8174 if test "${with_systemd+set}" = set; then :
8175 withval
=$with_systemd;
8179 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
8186 as_fn_error $?
"no argument expected for --with-systemd option" "$LINENO" 5
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
8198 $as_echo "$with_systemd" >&6; }
8206 # Check whether --with-readline was given.
8207 if test "${with_readline+set}" = set; then :
8208 withval
=$with_readline;
8217 as_fn_error $?
"no argument expected for --with-readline option" "$LINENO" 5
8227 # readline on MinGW has problems with backslashes in psql and other bugs.
8228 # This is particularly a problem with non-US code pages.
8229 # Therefore disable its use until we understand the cause. 2004-07-20
8230 if test "$PORTNAME" = "win32"; then
8231 if test "$with_readline" = yes; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
8233 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
8245 # Check whether --with-libedit-preferred was given.
8246 if test "${with_libedit_preferred+set}" = set; then :
8247 withval
=$with_libedit_preferred;
8256 as_fn_error $?
"no argument expected for --with-libedit-preferred option" "$LINENO" 5
8261 with_libedit_preferred
=no
8271 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
8272 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
8273 # UUID library. More than one of these might be present on a given platform,
8274 # so we make the user say which one she wants.
8279 # Check whether --with-uuid was given.
8280 if test "${with_uuid+set}" = set; then :
8284 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8287 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8297 if test x
"$with_uuid" = x
"" ; then
8303 # Check whether --with-ossp-uuid was given.
8304 if test "${with_ossp_uuid+set}" = set; then :
8305 withval
=$with_ossp_uuid;
8314 as_fn_error $?
"no argument expected for --with-ossp-uuid option" "$LINENO" 5
8324 if test "$with_ossp_uuid" = yes ; then
8328 if test "$with_uuid" = bsd
; then
8330 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
8332 UUID_EXTRA_OBJS
="md5.o sha1.o"
8333 elif test "$with_uuid" = e2fs
; then
8335 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
8337 UUID_EXTRA_OBJS
="md5.o sha1.o"
8338 elif test "$with_uuid" = ossp
; then
8340 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
8343 elif test "$with_uuid" = no
; then
8346 as_fn_error $?
"--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with XML support" >&5
8356 $as_echo_n "checking whether to build with XML support... " >&6; }
8360 # Check whether --with-libxml was given.
8361 if test "${with_libxml+set}" = set; then :
8362 withval
=$with_libxml;
8366 $as_echo "#define USE_LIBXML 1" >>confdefs.h
8373 as_fn_error $?
"no argument expected for --with-libxml option" "$LINENO" 5
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libxml" >&5
8384 $as_echo "$with_libxml" >&6; }
8387 if test "$with_libxml" = yes ; then
8388 # Check pkg-config, then xml2-config. But for backwards compatibility,
8389 # setting XML2_CONFIG overrides pkg-config.
8390 have_libxml2_pkg_config
=no
8391 if test -z "$XML2_CONFIG" -a -n "$PKG_CONFIG"; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.23" >&5
8395 $as_echo_n "checking for libxml-2.0 >= 2.6.23... " >&6; }
8397 if test -n "$XML2_CFLAGS"; then
8398 pkg_cv_XML2_CFLAGS
="$XML2_CFLAGS"
8399 elif test -n "$PKG_CONFIG"; then
8400 if test -n "$PKG_CONFIG" && \
8401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8402 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8405 test $ac_status = 0; }; then
8406 pkg_cv_XML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.23" 2>/dev/null`
8407 test "x$?" != "x0" && pkg_failed
=yes
8414 if test -n "$XML2_LIBS"; then
8415 pkg_cv_XML2_LIBS
="$XML2_LIBS"
8416 elif test -n "$PKG_CONFIG"; then
8417 if test -n "$PKG_CONFIG" && \
8418 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8419 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8422 test $ac_status = 0; }; then
8423 pkg_cv_XML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.23" 2>/dev/null`
8424 test "x$?" != "x0" && pkg_failed
=yes
8434 if test $pkg_failed = yes; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8438 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8439 _pkg_short_errors_supported
=yes
8441 _pkg_short_errors_supported
=no
8443 if test $_pkg_short_errors_supported = yes; then
8444 XML2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8446 XML2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8448 # Put the nasty error message in config.log where it belongs
8449 echo "$XML2_PKG_ERRORS" >&5
8452 elif test $pkg_failed = untried
; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8457 XML2_CFLAGS
=$pkg_cv_XML2_CFLAGS
8458 XML2_LIBS
=$pkg_cv_XML2_LIBS
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8460 $as_echo "yes" >&6; }
8461 have_libxml2_pkg_config
=yes
8464 if test "$have_libxml2_pkg_config" = no
; then
8465 if test -z "$XML2_CONFIG"; then
8466 for ac_prog
in xml2-config
8468 # Extract the first word of "$ac_prog", so it can be a program name with args.
8469 set dummy
$ac_prog; ac_word
=$2
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 $as_echo_n "checking for $ac_word... " >&6; }
8472 if ${ac_cv_path_XML2_CONFIG+:} false
; then :
8473 $as_echo_n "(cached) " >&6
8475 case $XML2_CONFIG in
8477 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
8480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8484 test -z "$as_dir" && as_dir
=.
8485 for ac_exec_ext
in '' $ac_executable_extensions; do
8486 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8487 ac_cv_path_XML2_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 XML2_CONFIG
=$ac_cv_path_XML2_CONFIG
8499 if test -n "$XML2_CONFIG"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8501 $as_echo "$XML2_CONFIG" >&6; }
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8508 test -n "$XML2_CONFIG" && break
8512 # Report the value of XML2_CONFIG in configure's output in all cases.
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
8514 $as_echo_n "checking for XML2_CONFIG... " >&6; }
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8516 $as_echo "$XML2_CONFIG" >&6; }
8519 if test -n "$XML2_CONFIG"; then
8520 XML2_CFLAGS
=`$XML2_CONFIG --cflags`
8521 XML2_LIBS
=`$XML2_CONFIG --libs`
8524 # Note the user could also set XML2_CFLAGS/XML2_LIBS directly
8525 for pgac_option
in $XML2_CFLAGS; do
8526 case $pgac_option in
8527 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
8530 for pgac_option
in $XML2_LIBS; do
8531 case $pgac_option in
8532 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
8544 # Check whether --with-libxslt was given.
8545 if test "${with_libxslt+set}" = set; then :
8546 withval
=$with_libxslt;
8550 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
8557 as_fn_error $?
"no argument expected for --with-libxslt option" "$LINENO" 5
8577 # Check whether --with-system-tzdata was given.
8578 if test "${with_system_tzdata+set}" = set; then :
8579 withval
=$with_system_tzdata;
8582 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8585 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8603 # Check whether --with-zlib was given.
8604 if test "${with_zlib+set}" = set; then :
8614 as_fn_error $?
"no argument expected for --with-zlib option" "$LINENO" 5
8630 # Assume system is ELF if it predefines __ELF__ as 1,
8631 # otherwise believe host_os based default.
8633 freebsd1
*|freebsd2
*) elf
=no
;;
8634 freebsd3
*|freebsd4
*) elf
=yes;;
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8639 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8640 if ${ac_cv_path_GREP+:} false
; then :
8641 $as_echo_n "(cached) " >&6
8643 if test -z "$GREP"; then
8644 ac_path_GREP_found
=false
8645 # Loop through the user's path and test for each of PROGNAME-LIST
8646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8647 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
8650 test -z "$as_dir" && as_dir
=.
8651 for ac_prog
in grep ggrep
; do
8652 for ac_exec_ext
in '' $ac_executable_extensions; do
8653 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
8654 as_fn_executable_p
"$ac_path_GREP" ||
continue
8655 # Check for GNU ac_path_GREP and select it if it is found.
8656 # Check for GNU $ac_path_GREP
8657 case `"$ac_path_GREP" --version 2>&1` in
8659 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
8662 $as_echo_n 0123456789 >"conftest.in"
8665 cat "conftest.in" "conftest.in" >"conftest.tmp"
8666 mv "conftest.tmp" "conftest.in"
8667 cp "conftest.in" "conftest.nl"
8668 $as_echo 'GREP' >> "conftest.nl"
8669 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
8670 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
8671 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
8672 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8673 # Best one so far, save it but keep looking for a better one
8674 ac_cv_path_GREP
="$ac_path_GREP"
8675 ac_path_GREP_max
=$ac_count
8677 # 10*(2^10) chars as input seems more than enough
8678 test $ac_count -gt 10 && break
8680 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
8683 $ac_path_GREP_found && break 3
8688 if test -z "$ac_cv_path_GREP"; then
8689 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8692 ac_cv_path_GREP
=$GREP
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8697 $as_echo "$ac_cv_path_GREP" >&6; }
8698 GREP
="$ac_cv_path_GREP"
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8702 $as_echo_n "checking for egrep... " >&6; }
8703 if ${ac_cv_path_EGREP+:} false
; then :
8704 $as_echo_n "(cached) " >&6
8706 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
8707 then ac_cv_path_EGREP
="$GREP -E"
8709 if test -z "$EGREP"; then
8710 ac_path_EGREP_found
=false
8711 # Loop through the user's path and test for each of PROGNAME-LIST
8712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8713 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
8716 test -z "$as_dir" && as_dir
=.
8717 for ac_prog
in egrep; do
8718 for ac_exec_ext
in '' $ac_executable_extensions; do
8719 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
8720 as_fn_executable_p
"$ac_path_EGREP" ||
continue
8721 # Check for GNU ac_path_EGREP and select it if it is found.
8722 # Check for GNU $ac_path_EGREP
8723 case `"$ac_path_EGREP" --version 2>&1` in
8725 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
8728 $as_echo_n 0123456789 >"conftest.in"
8731 cat "conftest.in" "conftest.in" >"conftest.tmp"
8732 mv "conftest.tmp" "conftest.in"
8733 cp "conftest.in" "conftest.nl"
8734 $as_echo 'EGREP' >> "conftest.nl"
8735 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
8736 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
8737 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
8738 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8739 # Best one so far, save it but keep looking for a better one
8740 ac_cv_path_EGREP
="$ac_path_EGREP"
8741 ac_path_EGREP_max
=$ac_count
8743 # 10*(2^10) chars as input seems more than enough
8744 test $ac_count -gt 10 && break
8746 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
8749 $ac_path_EGREP_found && break 3
8754 if test -z "$ac_cv_path_EGREP"; then
8755 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8758 ac_cv_path_EGREP
=$EGREP
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8764 $as_echo "$ac_cv_path_EGREP" >&6; }
8765 EGREP
="$ac_cv_path_EGREP"
8768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8776 $EGREP "yes" >/dev
/null
2>&1; then :
8779 if test "X$elf" = "Xyes" ; then
8793 CPPFLAGS
="$CPPFLAGS $INCLUDES"
8794 LDFLAGS
="$LDFLAGS $LIBDIRS"
8800 # Check whether --with-gnu-ld was given.
8801 if test "${with_gnu_ld+set}" = set; then :
8802 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8808 if test "$GCC" = yes; then
8809 # Check if gcc -print-prog-name=ld gives a path.
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8811 $as_echo_n "checking for ld used by GCC... " >&6; }
8814 # gcc leaves a trailing carriage return which upsets mingw
8815 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8817 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8820 # Accept absolute paths.
8821 [\\/]* |
[A-Za-z
]:[\\/]*)
8822 re_direlt
='/[^/][^/]*/\.\./'
8823 # Canonicalize the path of ld
8824 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8825 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8826 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8828 test -z "$LD" && LD
="$ac_prog"
8831 # If it fails, then pretend we aren't using GCC.
8835 # If it is relative, then search for the first ld in PATH.
8839 elif test "$with_gnu_ld" = yes; then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8841 $as_echo_n "checking for GNU ld... " >&6; }
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8844 $as_echo_n "checking for non-GNU ld... " >&6; }
8846 if ${ac_cv_path_LD+:} false
; then :
8847 $as_echo_n "(cached) " >&6
8849 if test -z "$LD"; then
8850 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8851 for ac_dir
in $PATH; do
8852 test -z "$ac_dir" && ac_dir
=.
8853 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8854 ac_cv_path_LD
="$ac_dir/$ac_prog"
8855 # Check to see if the program is GNU ld. I'd rather use --version,
8856 # but apparently some GNU ld's only accept -v.
8857 # Break only if it was the GNU/non-GNU ld that we prefer.
8858 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8859 test "$with_gnu_ld" != no
&& break
8861 test "$with_gnu_ld" != yes && break
8867 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
8872 if test -n "$LD"; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8874 $as_echo "$LD" >&6; }
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877 $as_echo "no" >&6; }
8879 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8881 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8882 if ${ac_cv_prog_gnu_ld+:} false
; then :
8883 $as_echo_n "(cached) " >&6
8885 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8886 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8887 ac_cv_prog_gnu_ld
=yes
8889 ac_cv_prog_gnu_ld
=no
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
8893 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
8894 with_gnu_ld
=$ac_cv_prog_gnu_ld
8899 if test -n "$ac_tool_prefix"; then
8900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8901 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if ${ac_cv_prog_RANLIB+:} false
; then :
8905 $as_echo_n "(cached) " >&6
8907 if test -n "$RANLIB"; then
8908 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8914 test -z "$as_dir" && as_dir
=.
8915 for ac_exec_ext
in '' $ac_executable_extensions; do
8916 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8917 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 RANLIB
=$ac_cv_prog_RANLIB
8928 if test -n "$RANLIB"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8930 $as_echo "$RANLIB" >&6; }
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8938 if test -z "$ac_cv_prog_RANLIB"; then
8939 ac_ct_RANLIB
=$RANLIB
8940 # Extract the first word of "ranlib", so it can be a program name with args.
8941 set dummy ranlib
; ac_word
=$2
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943 $as_echo_n "checking for $ac_word... " >&6; }
8944 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8945 $as_echo_n "(cached) " >&6
8947 if test -n "$ac_ct_RANLIB"; then
8948 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8954 test -z "$as_dir" && as_dir
=.
8955 for ac_exec_ext
in '' $ac_executable_extensions; do
8956 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8957 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8967 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8968 if test -n "$ac_ct_RANLIB"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8970 $as_echo "$ac_ct_RANLIB" >&6; }
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8976 if test "x$ac_ct_RANLIB" = x
; then
8979 case $cross_compiling:$ac_tool_warned in
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8983 ac_tool_warned
=yes ;;
8985 RANLIB
=$ac_ct_RANLIB
8988 RANLIB
="$ac_cv_prog_RANLIB"
8992 if test -n "$ac_tool_prefix"; then
8993 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8994 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996 $as_echo_n "checking for $ac_word... " >&6; }
8997 if ${ac_cv_prog_STRIP+:} false
; then :
8998 $as_echo_n "(cached) " >&6
9000 if test -n "$STRIP"; then
9001 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
9003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9007 test -z "$as_dir" && as_dir
=.
9008 for ac_exec_ext
in '' $ac_executable_extensions; do
9009 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9010 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
9011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9020 STRIP
=$ac_cv_prog_STRIP
9021 if test -n "$STRIP"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9023 $as_echo "$STRIP" >&6; }
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9031 if test -z "$ac_cv_prog_STRIP"; then
9033 # Extract the first word of "strip", so it can be a program name with args.
9034 set dummy strip
; ac_word
=$2
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9036 $as_echo_n "checking for $ac_word... " >&6; }
9037 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
9038 $as_echo_n "(cached) " >&6
9040 if test -n "$ac_ct_STRIP"; then
9041 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
9043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9047 test -z "$as_dir" && as_dir
=.
9048 for ac_exec_ext
in '' $ac_executable_extensions; do
9049 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9050 ac_cv_prog_ac_ct_STRIP
="strip"
9051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
9061 if test -n "$ac_ct_STRIP"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9063 $as_echo "$ac_ct_STRIP" >&6; }
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9069 if test "x$ac_ct_STRIP" = x
; then
9072 case $cross_compiling:$ac_tool_warned in
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9076 ac_tool_warned
=yes ;;
9081 STRIP
="$ac_cv_prog_STRIP"
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
9086 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
9087 if test x
"$STRIP" != x
"" && "$STRIP" -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9088 STRIP_STATIC_LIB
="$STRIP -x"
9089 STRIP_SHARED_LIB
="$STRIP --strip-unneeded"
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9091 $as_echo "yes" >&6; }
9096 STRIP_STATIC_LIB
=$STRIP
9097 STRIP_SHARED_LIB
=$STRIP
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9099 $as_echo "yes" >&6; }
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9112 if test -n "$ac_tool_prefix"; then
9113 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9114 set dummy
${ac_tool_prefix}ar; ac_word
=$2
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9116 $as_echo_n "checking for $ac_word... " >&6; }
9117 if ${ac_cv_prog_AR+:} false
; then :
9118 $as_echo_n "(cached) " >&6
9120 if test -n "$AR"; then
9121 ac_cv_prog_AR
="$AR" # Let the user override the test.
9123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9127 test -z "$as_dir" && as_dir
=.
9128 for ac_exec_ext
in '' $ac_executable_extensions; do
9129 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9130 ac_cv_prog_AR
="${ac_tool_prefix}ar"
9131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 if test -n "$AR"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9143 $as_echo "$AR" >&6; }
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9151 if test -z "$ac_cv_prog_AR"; then
9153 # Extract the first word of "ar", so it can be a program name with args.
9154 set dummy
ar; ac_word
=$2
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9156 $as_echo_n "checking for $ac_word... " >&6; }
9157 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
9158 $as_echo_n "(cached) " >&6
9160 if test -n "$ac_ct_AR"; then
9161 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
9163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9167 test -z "$as_dir" && as_dir
=.
9168 for ac_exec_ext
in '' $ac_executable_extensions; do
9169 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9170 ac_cv_prog_ac_ct_AR
="ar"
9171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9180 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
9181 if test -n "$ac_ct_AR"; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9183 $as_echo "$ac_ct_AR" >&6; }
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9189 if test "x$ac_ct_AR" = x
; then
9192 case $cross_compiling:$ac_tool_warned in
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9196 ac_tool_warned
=yes ;;
9204 if test "$PORTNAME" = "win32"; then
9205 if test -n "$ac_tool_prefix"; then
9206 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9207 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209 $as_echo_n "checking for $ac_word... " >&6; }
9210 if ${ac_cv_prog_DLLTOOL+:} false
; then :
9211 $as_echo_n "(cached) " >&6
9213 if test -n "$DLLTOOL"; then
9214 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
9216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9220 test -z "$as_dir" && as_dir
=.
9221 for ac_exec_ext
in '' $ac_executable_extensions; do
9222 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9223 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
9224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9233 DLLTOOL
=$ac_cv_prog_DLLTOOL
9234 if test -n "$DLLTOOL"; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9236 $as_echo "$DLLTOOL" >&6; }
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 $as_echo "no" >&6; }
9244 if test -z "$ac_cv_prog_DLLTOOL"; then
9245 ac_ct_DLLTOOL
=$DLLTOOL
9246 # Extract the first word of "dlltool", so it can be a program name with args.
9247 set dummy dlltool
; ac_word
=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
9251 $as_echo_n "(cached) " >&6
9253 if test -n "$ac_ct_DLLTOOL"; then
9254 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
9256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9260 test -z "$as_dir" && as_dir
=.
9261 for ac_exec_ext
in '' $ac_executable_extensions; do
9262 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9263 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9273 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
9274 if test -n "$ac_ct_DLLTOOL"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9276 $as_echo "$ac_ct_DLLTOOL" >&6; }
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 $as_echo "no" >&6; }
9282 if test "x$ac_ct_DLLTOOL" = x
; then
9285 case $cross_compiling:$ac_tool_warned in
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9289 ac_tool_warned
=yes ;;
9291 DLLTOOL
=$ac_ct_DLLTOOL
9294 DLLTOOL
="$ac_cv_prog_DLLTOOL"
9297 if test -n "$ac_tool_prefix"; then
9298 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9299 set dummy
${ac_tool_prefix}dllwrap
; ac_word
=$2
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9301 $as_echo_n "checking for $ac_word... " >&6; }
9302 if ${ac_cv_prog_DLLWRAP+:} false
; then :
9303 $as_echo_n "(cached) " >&6
9305 if test -n "$DLLWRAP"; then
9306 ac_cv_prog_DLLWRAP
="$DLLWRAP" # Let the user override the test.
9308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9312 test -z "$as_dir" && as_dir
=.
9313 for ac_exec_ext
in '' $ac_executable_extensions; do
9314 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9315 ac_cv_prog_DLLWRAP
="${ac_tool_prefix}dllwrap"
9316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9325 DLLWRAP
=$ac_cv_prog_DLLWRAP
9326 if test -n "$DLLWRAP"; then
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
9328 $as_echo "$DLLWRAP" >&6; }
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9331 $as_echo "no" >&6; }
9336 if test -z "$ac_cv_prog_DLLWRAP"; then
9337 ac_ct_DLLWRAP
=$DLLWRAP
9338 # Extract the first word of "dllwrap", so it can be a program name with args.
9339 set dummy dllwrap
; ac_word
=$2
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341 $as_echo_n "checking for $ac_word... " >&6; }
9342 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false
; then :
9343 $as_echo_n "(cached) " >&6
9345 if test -n "$ac_ct_DLLWRAP"; then
9346 ac_cv_prog_ac_ct_DLLWRAP
="$ac_ct_DLLWRAP" # Let the user override the test.
9348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9352 test -z "$as_dir" && as_dir
=.
9353 for ac_exec_ext
in '' $ac_executable_extensions; do
9354 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9355 ac_cv_prog_ac_ct_DLLWRAP
="dllwrap"
9356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9365 ac_ct_DLLWRAP
=$ac_cv_prog_ac_ct_DLLWRAP
9366 if test -n "$ac_ct_DLLWRAP"; then
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
9368 $as_echo "$ac_ct_DLLWRAP" >&6; }
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371 $as_echo "no" >&6; }
9374 if test "x$ac_ct_DLLWRAP" = x
; then
9377 case $cross_compiling:$ac_tool_warned in
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9381 ac_tool_warned
=yes ;;
9383 DLLWRAP
=$ac_ct_DLLWRAP
9386 DLLWRAP
="$ac_cv_prog_DLLWRAP"
9389 if test -n "$ac_tool_prefix"; then
9390 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9391 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9393 $as_echo_n "checking for $ac_word... " >&6; }
9394 if ${ac_cv_prog_WINDRES+:} false
; then :
9395 $as_echo_n "(cached) " >&6
9397 if test -n "$WINDRES"; then
9398 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9404 test -z "$as_dir" && as_dir
=.
9405 for ac_exec_ext
in '' $ac_executable_extensions; do
9406 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9407 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9417 WINDRES
=$ac_cv_prog_WINDRES
9418 if test -n "$WINDRES"; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9420 $as_echo "$WINDRES" >&6; }
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 $as_echo "no" >&6; }
9428 if test -z "$ac_cv_prog_WINDRES"; then
9429 ac_ct_WINDRES
=$WINDRES
9430 # Extract the first word of "windres", so it can be a program name with args.
9431 set dummy windres
; ac_word
=$2
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433 $as_echo_n "checking for $ac_word... " >&6; }
9434 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
9435 $as_echo_n "(cached) " >&6
9437 if test -n "$ac_ct_WINDRES"; then
9438 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9444 test -z "$as_dir" && as_dir
=.
9445 for ac_exec_ext
in '' $ac_executable_extensions; do
9446 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9447 ac_cv_prog_ac_ct_WINDRES
="windres"
9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9457 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9458 if test -n "$ac_ct_WINDRES"; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9460 $as_echo "$ac_ct_WINDRES" >&6; }
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463 $as_echo "no" >&6; }
9466 if test "x$ac_ct_WINDRES" = x
; then
9469 case $cross_compiling:$ac_tool_warned in
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9473 ac_tool_warned
=yes ;;
9475 WINDRES
=$ac_ct_WINDRES
9478 WINDRES
="$ac_cv_prog_WINDRES"
9483 # Find a good install program. We prefer a C program (faster),
9484 # so one script is as good as another. But avoid the broken or
9485 # incompatible versions:
9486 # SysV /etc/install, /usr/sbin/install
9487 # SunOS /usr/etc/install
9488 # IRIX /sbin/install
9490 # AmigaOS /C/install, which installs bootblocks on floppy discs
9491 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9492 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9493 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9494 # OS/2's system install, which has a completely different semantic
9495 # ./install, which can be erroneously created by make from ./install.sh.
9496 # Reject install programs that cannot install multiple files.
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9498 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9499 if test -z "$INSTALL"; then
9500 if ${ac_cv_path_install+:} false
; then :
9501 $as_echo_n "(cached) " >&6
9503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9507 test -z "$as_dir" && as_dir
=.
9508 # Account for people who put trailing slashes in PATH elements.
9509 case $as_dir/ in #((
9510 .
/ | .
// |
/[cC
]/* | \
9511 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
9512 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
9515 # OSF1 and SCO ODT 3.0 have their own names for install.
9516 # Don't use installbsd from OSF since it installs stuff as root
9518 for ac_prog
in ginstall scoinst
install; do
9519 for ac_exec_ext
in '' $ac_executable_extensions; do
9520 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
9521 if test $ac_prog = install &&
9522 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9523 # AIX install. It has an incompatible calling convention.
9525 elif test $ac_prog = install &&
9526 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9527 # program-specific install script used by HP pwplus--don't use.
9530 rm -rf conftest.one conftest.two conftest.dir
9531 echo one
> conftest.one
9532 echo two
> conftest.two
9534 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
9535 test -s conftest.one
&& test -s conftest.two
&&
9536 test -s conftest.dir
/conftest.one
&&
9537 test -s conftest.dir
/conftest.two
9539 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
9552 rm -rf conftest.one conftest.two conftest.dir
9555 if test "${ac_cv_path_install+set}" = set; then
9556 INSTALL
=$ac_cv_path_install
9558 # As a last resort, use the slow shell script. Don't cache a
9559 # value for INSTALL within a source directory, because that will
9560 # break other packages using the cache if that directory is
9561 # removed, or if the value is a relative name.
9562 INSTALL
=$ac_install_sh
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9566 $as_echo "$INSTALL" >&6; }
9568 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9569 # It thinks the first close brace ends the variable substitution.
9570 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
9572 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
9574 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
9576 # When Autoconf chooses install-sh as install program it tries to generate
9577 # a relative path to it in each makefile where it substitutes it. This clashes
9578 # with our Makefile.global concept. This workaround helps.
9580 *install-sh
*) install_bin
='';;
9581 *) install_bin
=$INSTALL;;
9585 if test -z "$TAR"; then
9588 # Extract the first word of "$ac_prog", so it can be a program name with args.
9589 set dummy
$ac_prog; ac_word
=$2
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9591 $as_echo_n "checking for $ac_word... " >&6; }
9592 if ${ac_cv_path_TAR+:} false
; then :
9593 $as_echo_n "(cached) " >&6
9597 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
9600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9604 test -z "$as_dir" && as_dir
=.
9605 for ac_exec_ext
in '' $ac_executable_extensions; do
9606 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9607 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
9608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 if test -n "$TAR"; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9621 $as_echo "$TAR" >&6; }
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624 $as_echo "no" >&6; }
9628 test -n "$TAR" && break
9632 # Report the value of TAR in configure's output in all cases.
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9634 $as_echo_n "checking for TAR... " >&6; }
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9636 $as_echo "$TAR" >&6; }
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9640 $as_echo_n "checking whether ln -s works... " >&6; }
9642 if test "$LN_S" = "ln -s"; then
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9644 $as_echo "yes" >&6; }
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9647 $as_echo "no, using $LN_S" >&6; }
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9651 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9652 if test -z "$MKDIR_P"; then
9653 if ${ac_cv_path_mkdir+:} false
; then :
9654 $as_echo_n "(cached) " >&6
9656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9657 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
9660 test -z "$as_dir" && as_dir
=.
9661 for ac_prog
in mkdir gmkdir
; do
9662 for ac_exec_ext
in '' $ac_executable_extensions; do
9663 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
9664 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9665 'mkdir (GNU coreutils) '* | \
9666 'mkdir (coreutils) '* | \
9667 'mkdir (fileutils) '4.1*)
9668 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
9678 test -d .
/--version && rmdir .
/--version
9679 if test "${ac_cv_path_mkdir+set}" = set; then
9680 MKDIR_P
="$ac_cv_path_mkdir -p"
9682 # As a last resort, use the slow shell script. Don't cache a
9683 # value for MKDIR_P within a source directory, because that will
9684 # break other packages using the cache if that directory is
9685 # removed, or if the value is a relative name.
9686 MKDIR_P
="$ac_install_sh -d"
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9690 $as_echo "$MKDIR_P" >&6; }
9692 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
9693 # a relative path to it in each makefile where it substitutes it. This clashes
9694 # with our Makefile.global concept. This workaround helps.
9696 *install-sh
*) MKDIR_P
='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
9699 if test -z "$BISON"; then
9700 for ac_prog
in bison
9702 # Extract the first word of "$ac_prog", so it can be a program name with args.
9703 set dummy
$ac_prog; ac_word
=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if ${ac_cv_path_BISON+:} false
; then :
9707 $as_echo_n "(cached) " >&6
9711 ac_cv_path_BISON
="$BISON" # Let the user override the test with a path.
9714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9718 test -z "$as_dir" && as_dir
=.
9719 for ac_exec_ext
in '' $ac_executable_extensions; do
9720 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9721 ac_cv_path_BISON
="$as_dir/$ac_word$ac_exec_ext"
9722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9732 BISON
=$ac_cv_path_BISON
9733 if test -n "$BISON"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9735 $as_echo "$BISON" >&6; }
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; }
9742 test -n "$BISON" && break
9746 # Report the value of BISON in configure's output in all cases.
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
9748 $as_echo_n "checking for BISON... " >&6; }
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9750 $as_echo "$BISON" >&6; }
9754 if test "$BISON"; then
9755 pgac_bison_version
=`$BISON --version 2>/dev/null | sed q`
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
9757 $as_echo "$as_me: using $pgac_bison_version" >&6;}
9758 if echo "$pgac_bison_version" |
$AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9761 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9762 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
9763 $as_echo "$as_me: WARNING:
9764 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9765 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
9768 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
9769 # of the now preferred %name-prefix "base_yy", but the latter
9770 # doesn't work with Bison 2.3 or less. So for now we silence the
9771 # deprecation warnings.
9772 if echo "$pgac_bison_version" |
$AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
9774 BISONFLAGS
="$BISONFLAGS -Wno-deprecated"
9778 if test -z "$BISON"; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9780 *** Without Bison you will not be able to build PostgreSQL from Git nor
9781 *** change any of the parser definition files. You can obtain Bison from
9782 *** a GNU mirror site. (If you are using the official distribution of
9783 *** PostgreSQL then you do not need to worry about this, because the Bison
9784 *** output is pre-generated.)" >&5
9785 $as_echo "$as_me: WARNING:
9786 *** Without Bison you will not be able to build PostgreSQL from Git nor
9787 *** change any of the parser definition files. You can obtain Bison from
9788 *** a GNU mirror site. (If you are using the official distribution of
9789 *** PostgreSQL then you do not need to worry about this, because the Bison
9790 *** output is pre-generated.)" >&2;}
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
9795 $as_echo_n "checking for flex... " >&6; }
9796 if ${pgac_cv_path_flex+:} false
; then :
9797 $as_echo_n "(cached) " >&6
9799 # Let the user override the test
9800 if test -n "$FLEX"; then
9801 pgac_cv_path_flex
=$FLEX
9805 for pgac_dir
in $PATH; do
9807 if test -z "$pgac_dir" ||
test x
"$pgac_dir" = x
"."; then
9810 for pgac_prog
in flex
lex; do
9811 pgac_candidate
="$pgac_dir/$pgac_prog"
9812 if test -f "$pgac_candidate" \
9813 && $pgac_candidate --version </dev
/null
>/dev
/null
2>&1
9815 echo '%%' > conftest.l
9816 if $pgac_candidate -t conftest.l
2>/dev
/null |
grep FLEX_SCANNER
>/dev
/null
2>&1; then
9817 pgac_flex_version
=`$pgac_candidate --version 2>/dev/null`
9818 if echo "$pgac_flex_version" |
sed 's/[.a-z]/ /g' |
$AWK '{ if ($1 == 2 && ($2 > 5 || ($2 == 5 && $3 >= 31))) exit 0; else exit 1;}'
9820 pgac_cv_path_flex
=$pgac_candidate
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9824 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
9825 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
9826 $as_echo "$as_me: WARNING:
9827 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
9828 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
9834 rm -f conftest.l
lex.yy.c
9835 : ${pgac_cv_path_flex=no}
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
9840 $as_echo "$pgac_cv_path_flex" >&6; }
9841 if test x
"$pgac_cv_path_flex" = x
"no"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9843 *** Without Flex you will not be able to build PostgreSQL from Git nor
9844 *** change any of the scanner definition files. You can obtain Flex from
9845 *** a GNU mirror site. (If you are using the official distribution of
9846 *** PostgreSQL then you do not need to worry about this because the Flex
9847 *** output is pre-generated.)" >&5
9848 $as_echo "$as_me: WARNING:
9849 *** Without Flex you will not be able to build PostgreSQL from Git nor
9850 *** change any of the scanner definition files. You can obtain Flex from
9851 *** a GNU mirror site. (If you are using the official distribution of
9852 *** PostgreSQL then you do not need to worry about this because the Flex
9853 *** output is pre-generated.)" >&2;}
9857 FLEX
=$pgac_cv_path_flex
9858 pgac_flex_version
=`$FLEX --version 2>/dev/null`
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
9860 $as_echo "$as_me: using $pgac_flex_version" >&6;}
9867 if test -z "$PERL"; then
9870 # Extract the first word of "$ac_prog", so it can be a program name with args.
9871 set dummy
$ac_prog; ac_word
=$2
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873 $as_echo_n "checking for $ac_word... " >&6; }
9874 if ${ac_cv_path_PERL+:} false
; then :
9875 $as_echo_n "(cached) " >&6
9879 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
9882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9886 test -z "$as_dir" && as_dir
=.
9887 for ac_exec_ext
in '' $ac_executable_extensions; do
9888 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9889 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
9890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 PERL
=$ac_cv_path_PERL
9901 if test -n "$PERL"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9903 $as_echo "$PERL" >&6; }
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9910 test -n "$PERL" && break
9914 # Report the value of PERL in configure's output in all cases.
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
9916 $as_echo_n "checking for PERL... " >&6; }
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9918 $as_echo "$PERL" >&6; }
9922 if test "$PERL"; then
9923 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'`
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
9925 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
9926 if echo "$pgac_perl_version" |
sed 's/[.a-z_]/ /g' | \
9927 $AWK '{ if ($1 == 5 && $2 >= 8) exit 1; else exit 0;}'
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9930 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
9931 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
9932 $as_echo "$as_me: WARNING:
9933 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
9934 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
9939 if test -z "$PERL"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9941 *** Without Perl you will not be able to build PostgreSQL from Git.
9942 *** You can obtain Perl from any CPAN mirror site.
9943 *** (If you are using the official distribution of PostgreSQL then you do not
9944 *** need to worry about this, because the Perl output is pre-generated.)" >&5
9945 $as_echo "$as_me: WARNING:
9946 *** Without Perl you will not be able to build PostgreSQL from Git.
9947 *** You can obtain Perl from any CPAN mirror site.
9948 *** (If you are using the official distribution of PostgreSQL then you do not
9949 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
9952 if test "$with_perl" = yes; then
9953 if test -z "$PERL"; then
9954 as_fn_error $?
"Perl not found" "$LINENO" 5
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
9958 $as_echo_n "checking for Perl archlibexp... " >&6; }
9959 perl_archlibexp
=`$PERL -MConfig -e 'print $Config{archlibexp}'`
9960 test "$PORTNAME" = "win32" && perl_archlibexp
=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
9962 $as_echo "$perl_archlibexp" >&6; }
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
9964 $as_echo_n "checking for Perl privlibexp... " >&6; }
9965 perl_privlibexp
=`$PERL -MConfig -e 'print $Config{privlibexp}'`
9966 test "$PORTNAME" = "win32" && perl_privlibexp
=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
9968 $as_echo "$perl_privlibexp" >&6; }
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
9970 $as_echo_n "checking for Perl useshrplib... " >&6; }
9971 perl_useshrplib
=`$PERL -MConfig -e 'print $Config{useshrplib}'`
9972 test "$PORTNAME" = "win32" && perl_useshrplib
=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
9974 $as_echo "$perl_useshrplib" >&6; }
9975 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true
; then
9976 as_fn_error $?
"cannot build PL/Perl because libperl is not a shared library
9977 You might have to rebuild your Perl installation. Refer to the
9978 documentation for details. Use --without-perl to disable building
9979 PL/Perl." "$LINENO" 5
9981 # On most platforms, archlibexp is also where the Perl include files live ...
9982 perl_includespec
="-I$perl_archlibexp/CORE"
9983 # ... but on newer macOS versions, we must use -iwithsysroot to look
9985 if test \
! -f "$perl_archlibexp/CORE/perl.h" ; then
9986 if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then
9987 perl_includespec
="-iwithsysroot $perl_archlibexp/CORE"
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
9992 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
9993 perl_ccflags
=`$PERL -MConfig -e 'print $Config{ccflags}'`
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
9995 $as_echo "$perl_ccflags" >&6; }
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
9997 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
9998 perl_embed_ccflags
=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
10000 $as_echo "$perl_embed_ccflags" >&6; }
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
10004 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
10005 if test "$PORTNAME" = "win32" ; then
10006 perl_lib
=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
10007 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then
10008 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10010 perl_lib
=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'`
10011 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then
10012 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10016 pgac_tmp1
=`$PERL -MExtUtils::Embed -e ldopts`
10017 pgac_tmp2
=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
10018 perl_embed_ldflags
=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
10020 if test -z "$perl_embed_ldflags" ; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022 $as_echo "no" >&6; }
10023 as_fn_error $?
"could not determine flags for linking embedded Perl.
10024 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
10025 installed." "$LINENO" 5
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
10028 $as_echo "$perl_embed_ldflags" >&6; }
10033 if test "$with_python" = yes; then
10034 if test -z "$PYTHON"; then
10035 for ac_prog
in python python3 python2
10037 # Extract the first word of "$ac_prog", so it can be a program name with args.
10038 set dummy
$ac_prog; ac_word
=$2
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040 $as_echo_n "checking for $ac_word... " >&6; }
10041 if ${ac_cv_path_PYTHON+:} false
; then :
10042 $as_echo_n "(cached) " >&6
10046 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
10049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10050 for as_dir
in $PATH
10053 test -z "$as_dir" && as_dir
=.
10054 for ac_exec_ext
in '' $ac_executable_extensions; do
10055 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10056 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
10057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 PYTHON
=$ac_cv_path_PYTHON
10068 if test -n "$PYTHON"; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10070 $as_echo "$PYTHON" >&6; }
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073 $as_echo "no" >&6; }
10077 test -n "$PYTHON" && break
10081 # Report the value of PYTHON in configure's output in all cases.
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
10083 $as_echo_n "checking for PYTHON... " >&6; }
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10085 $as_echo "$PYTHON" >&6; }
10088 if test x
"$PYTHON" = x
""; then
10089 as_fn_error $?
"Python not found" "$LINENO" 5
10093 python_fullversion
=`${PYTHON} -c "import sys; print(sys.version)" | sed q`
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: using python $python_fullversion" >&5
10095 $as_echo "$as_me: using python $python_fullversion" >&6;}
10096 # python_fullversion is typically n.n.n plus some trailing junk
10097 python_majorversion
=`echo "$python_fullversion" | sed 's/^\([0-9]*\).*/\1/'`
10098 python_minorversion
=`echo "$python_fullversion" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'`
10099 python_version
=`echo "$python_fullversion" | sed 's/^\([0-9]*\.[0-9]*\).*/\1/'`
10100 # Reject unsupported Python versions as soon as practical.
10101 if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 7; then
10102 as_fn_error $?
"Python version $python_version is too old (version 2.7 or later is required)" "$LINENO" 5
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python sysconfig module" >&5
10106 $as_echo_n "checking for Python sysconfig module... " >&6; }
10107 if "${PYTHON}" -c 'import sysconfig' 2>&5
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10110 $as_echo "yes" >&6; }
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10114 as_fn_error $?
"sysconfig module not found" "$LINENO" 5
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
10118 $as_echo_n "checking Python configuration directory... " >&6; }
10119 python_configdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBPL'))))"`
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
10121 $as_echo "$python_configdir" >&6; }
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directory" >&5
10124 $as_echo_n "checking Python include directory... " >&6; }
10125 python_includespec
=`${PYTHON} -c "import sysconfig; print('-I' + sysconfig.get_config_var('INCLUDEPY'))"`
10126 if test "$PORTNAME" = win32
; then
10127 python_includespec
=`echo $python_includespec | sed 's,[\],/,g'`
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
10130 $as_echo "$python_includespec" >&6; }
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
10135 $as_echo_n "checking how to link an embedded Python application... " >&6; }
10137 python_libdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBDIR'))))"`
10138 python_ldlibrary
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDLIBRARY'))))"`
10140 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
10141 ldlibrary
=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
10142 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
10144 ldlibrary
=`echo "${ldlibrary}" | sed "s/^lib//"`
10147 # Otherwise, guess the base name of the shlib.
10148 # LDVERSION was added in Python 3.2, before that use VERSION,
10149 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
10150 python_ldversion
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDVERSION'))))"`
10151 if test x
"${python_ldversion}" != x
""; then
10152 ldlibrary
="python${python_ldversion}"
10154 python_version_var
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('VERSION'))))"`
10155 if test x
"${python_version_var}" != x
""; then
10156 ldlibrary
="python${python_version_var}"
10158 ldlibrary
="python${python_version}"
10161 # Search for a likely-looking file.
10163 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10165 # We don't know the platform DLSUFFIX here, so check 'em all.
10166 for e
in .so .dll .dylib .sl
; do
10167 if test -e "$d/lib${ldlibrary}$e"; then
10174 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
10175 # (".so.n.n") as well. However, check this only after failing to find
10176 # ".so" anywhere, because yet other platforms (Debian) put the .so
10177 # symlink in a different directory from the underlying versioned shlib.
10178 if test "$found_shlib" != 1; then
10179 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10181 for f
in "$d/lib${ldlibrary}.so."* ; do
10182 if test -e "$f"; then
10190 # As usual, Windows has its own ideas. Possible default library
10191 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
10192 # and the "lib" prefix might not be there.
10193 if test "$found_shlib" != 1 -a \
( "$PORTNAME" = win32
-o "$PORTNAME" = cygwin \
); then
10194 for d
in "${python_libdir}" "${python_configdir}" c
:/Windows
/System32
/usr
/bin
10196 for f
in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
10197 if test -e "$f"; then
10206 if test "$found_shlib" != 1; then
10207 as_fn_error $?
"could not find shared library for Python
10208 You might have to rebuild your Python installation. Refer to the
10209 documentation for details. Use --without-python to disable building
10210 PL/Python." "$LINENO" 5
10212 python_libspec
="-L${python_libdir} -l${ldlibrary}"
10214 python_additional_libs
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
10217 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
10223 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
10224 if test -z "$ZIC"; then
10227 # Extract the first word of "$ac_prog", so it can be a program name with args.
10228 set dummy $ac_prog; ac_word=$2
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10230 $as_echo_n "checking
for $ac_word...
" >&6; }
10231 if ${ac_cv_path_ZIC+:} false; then :
10232 $as_echo_n "(cached
) " >&6
10236 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
10239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10240 for as_dir in $PATH
10243 test -z "$as_dir" && as_dir=.
10244 for ac_exec_ext in '' $ac_executable_extensions; do
10245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10246 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
10247 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10257 ZIC=$ac_cv_path_ZIC
10258 if test -n "$ZIC"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10260 $as_echo "$ZIC" >&6; }
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10263 $as_echo "no
" >&6; }
10267 test -n "$ZIC" && break
10271 # Report the value of ZIC in configure's output in all cases.
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ZIC
" >&5
10273 $as_echo_n "checking
for ZIC...
" >&6; }
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10275 $as_echo "$ZIC" >&6; }
10278 if test -z "$ZIC"; then
10280 When cross-compiling
, either use the option
--with-system-tzdata to use
10281 existing time-zone data
, or
set the environment variable ZIC to a zic
10282 program to use during the build.
" "$LINENO" 5
10289 # For each platform, we need to know about any special compile and link
10290 # libraries, and whether the normal C function names are thread-safe.
10291 # See the comment at the top of src/port/thread.c for more information.
10292 # WIN32 doesn't need the pthread tests; it always uses threads
10294 # These tests are run before the library-tests, because linking with the
10295 # other libraries can pull in the pthread functions as a side-effect. We
10296 # want to use the -pthread or similar flags directly, and not rely on
10297 # the side-effects of linking with some other library.
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
10300 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
10301 if ${ac_cv_path_SED+:} false; then :
10302 $as_echo_n "(cached
) " >&6
10304 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10305 for ac_i in 1 2 3 4 5 6 7; do
10306 ac_script="$ac_script$as_nl$ac_script"
10308 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10309 { ac_script=; unset ac_script;}
10310 if test -z "$SED"; then
10311 ac_path_SED_found=false
10312 # Loop through the user's path and test for each of PROGNAME-LIST
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10317 test -z "$as_dir" && as_dir=.
10318 for ac_prog in sed gsed; do
10319 for ac_exec_ext in '' $ac_executable_extensions; do
10320 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10321 as_fn_executable_p "$ac_path_SED" || continue
10322 # Check for GNU ac_path_SED and select it if it is found.
10323 # Check for GNU $ac_path_SED
10324 case `"$ac_path_SED" --version 2>&1` in
10326 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10329 $as_echo_n 0123456789 >"conftest.
in"
10332 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10333 mv "conftest.tmp
" "conftest.
in"
10334 cp "conftest.
in" "conftest.
nl"
10335 $as_echo '' >> "conftest.
nl"
10336 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10337 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10338 as_fn_arith $ac_count + 1 && ac_count=$as_val
10339 if test $ac_count -gt ${ac_path_SED_max-0}; then
10340 # Best one so far, save it but keep looking for a better one
10341 ac_cv_path_SED="$ac_path_SED"
10342 ac_path_SED_max=$ac_count
10344 # 10*(2^10) chars as input seems more than enough
10345 test $ac_count -gt 10 && break
10347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10350 $ac_path_SED_found && break 3
10355 if test -z "$ac_cv_path_SED"; then
10356 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
10359 ac_cv_path_SED=$SED
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
10364 $as_echo "$ac_cv_path_SED" >&6; }
10365 SED="$ac_cv_path_SED"
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
10369 $as_echo_n "checking
for ANSI C header files...
" >&6; }
10370 if ${ac_cv_header_stdc+:} false; then :
10371 $as_echo_n "(cached
) " >&6
10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h. */
10375 #include <stdlib.h>
10376 #include <stdarg.h>
10377 #include <string.h>
10388 if ac_fn_c_try_compile "$LINENO"; then :
10389 ac_cv_header_stdc=yes
10391 ac_cv_header_stdc=no
10393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10395 if test $ac_cv_header_stdc = yes; then
10396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10399 #include <string.h>
10402 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10403 $EGREP "memchr
" >/dev/null 2>&1; then :
10406 ac_cv_header_stdc=no
10412 if test $ac_cv_header_stdc = yes; then
10413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416 #include <stdlib.h>
10419 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10420 $EGREP "free
" >/dev/null 2>&1; then :
10423 ac_cv_header_stdc=no
10429 if test $ac_cv_header_stdc = yes; then
10430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10431 if test "$cross_compiling" = yes; then :
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10437 #include <stdlib.h>
10438 #if ((' ' & 0x0FF) == 0x020)
10439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10442 # define ISLOWER(c) \
10443 (('a' <= (c) && (c) <= 'i') \
10444 || ('j' <= (c) && (c) <= 'r') \
10445 || ('s' <= (c) && (c) <= 'z'))
10446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10454 for (i = 0; i < 256; i++)
10455 if (XOR (islower (i), ISLOWER (i))
10456 || toupper (i) != TOUPPER (i))
10461 if ac_fn_c_try_run "$LINENO"; then :
10464 ac_cv_header_stdc=no
10466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10467 conftest.$ac_objext conftest.beam conftest.$ac_ext
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
10473 $as_echo "$ac_cv_header_stdc" >&6; }
10474 if test $ac_cv_header_stdc = yes; then
10476 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10480 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10481 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
10482 inttypes.h stdint.h unistd.h
10484 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10485 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10487 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10488 cat >>confdefs.h
<<_ACEOF
10489 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10497 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
10504 ac_cpp
='$CPP $CPPFLAGS'
10505 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10506 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10507 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10511 # We used to check for pthread.h first, but this fails if pthread.h
10512 # requires special compiler flags (e.g. on Tru64 or Sequent).
10513 # It gets checked for in the link test anyway.
10515 # First of all, check if the user has set any of the PTHREAD_LIBS,
10516 # etcetera environment variables, and if threads linking works using
10518 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10519 ax_pthread_save_CC
="$CC"
10520 ax_pthread_save_CFLAGS
="$CFLAGS"
10521 ax_pthread_save_LIBS
="$LIBS"
10522 if test "x$PTHREAD_CC" != "x"; then :
10525 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10526 LIBS
="$PTHREAD_LIBS $LIBS"
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10528 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10532 /* Override any GCC internal prototype to avoid an error.
10533 Use char because int might match the return type of a GCC
10534 builtin and then its argument prototype would still apply. */
10538 char pthread_join ();
10542 return pthread_join ();
10547 if ac_fn_c_try_link
"$LINENO"; then :
10550 rm -f core conftest.err conftest.
$ac_objext \
10551 conftest
$ac_exeext conftest.
$ac_ext
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10553 $as_echo "$ax_pthread_ok" >&6; }
10554 if test "x$ax_pthread_ok" = "xno"; then
10558 CC
="$ax_pthread_save_CC"
10559 CFLAGS
="$ax_pthread_save_CFLAGS"
10560 LIBS
="$ax_pthread_save_LIBS"
10563 # We must check for the threads library under a number of different
10564 # names; the ordering is very important because some systems
10565 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10566 # libraries is broken (non-POSIX).
10568 # Create a list of thread flags to try. Items starting with a "-" are
10569 # C compiler flags, and other items are library names, except for "none"
10570 # which indicates that we try without any flags at all, and "pthread-config"
10571 # which is a program returning the flags for the Pth emulation library.
10573 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10575 # The ordering *is* (sometimes) important. Some notes on the
10576 # individual items follow:
10578 # pthreads: AIX (must check this before -lpthread)
10579 # none: in case threads are in libc; should be tried before -Kthread and
10580 # other compiler flags to prevent continual compiler warnings
10581 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10582 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10583 # (Note: HP C rejects this with "bad form for `-t' option")
10584 # -pthreads: Solaris/gcc (Note: HP C also rejects)
10585 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10586 # doesn't hurt to check since this sometimes defines pthreads and
10587 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
10588 # is present but should not be used directly; and before -mthreads,
10589 # because the compiler interprets this as "-mt" + "-hreads")
10590 # -mthreads: Mingw32/gcc, Lynx/gcc
10591 # pthread: Linux, etcetera
10592 # --thread-safe: KAI C++
10593 # pthread-config: use pthread-config program (for GNU Pth library)
10599 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10600 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10602 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
10607 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10608 # multi-threading and also sets -lpthread."
10610 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
10615 # IBM z/OS requires a feature-test macro to be defined in order to
10616 # enable POSIX threads at all, so give the user a hint if this is
10617 # not set. (We don't define these ourselves, as they can affect
10618 # other portions of the system API in unpredictable ways.)
10620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10623 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10624 AX_PTHREAD_ZOS_MISSING
10628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10629 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10631 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10639 # On Solaris (at least, for some versions), libc contains stubbed
10640 # (non-functional) versions of the pthreads routines, so link-based
10641 # tests will erroneously succeed. (N.B.: The stubs are missing
10642 # pthread_cleanup_push, or rather a function called by this macro,
10643 # so we could check for that, but who knows whether they'll stub
10644 # that too in a future libc.) So we'll check first for the
10645 # standard Solaris way of linking pthreads (-mt -lpthread).
10647 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
10651 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10653 if test "x$GCC" = "xyes"; then :
10654 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
10657 # The presence of a feature test macro requesting re-entrant function
10658 # definitions is, on some systems, a strong hint that pthreads support is
10659 # correctly enabled
10662 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
10663 ax_pthread_check_macro
="_REENTRANT"
10667 ax_pthread_check_macro
="_THREAD_SAFE"
10671 ax_pthread_check_macro
="--"
10674 if test "x$ax_pthread_check_macro" = "x--"; then :
10675 ax_pthread_check_cond
=0
10677 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
10680 # Are we compiling with Clang?
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10683 $as_echo_n "checking whether $CC is Clang... " >&6; }
10684 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
10685 $as_echo_n "(cached) " >&6
10687 ax_cv_PTHREAD_CLANG
=no
10688 # Note that Autoconf sets GCC=yes for Clang as well as GCC
10689 if test "x$GCC" = "xyes"; then
10690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10692 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10693 # if defined(__clang__) && defined(__llvm__)
10694 AX_PTHREAD_CC_IS_CLANG
10698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10699 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
10700 ax_cv_PTHREAD_CLANG
=yes
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10708 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10709 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
10711 ax_pthread_clang_warning
=no
10713 # Clang needs special handling, because older versions handle the -pthread
10714 # option in a rather... idiosyncratic way
10716 if test "x$ax_pthread_clang" = "xyes"; then
10718 # Clang takes -pthread; it has never supported any other flag
10720 # (Note 1: This will need to be revisited if a system that Clang
10721 # supports has POSIX threads in a separate library. This tends not
10722 # to be the way of modern systems, but it's conceivable.)
10724 # (Note 2: On some systems, notably Darwin, -pthread is not needed
10725 # to get POSIX threads support; the API is always present and
10726 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
10727 # -pthread does define _REENTRANT, and while the Darwin headers
10728 # ignore this macro, third-party headers might not.)
10730 PTHREAD_CFLAGS
="-pthread"
10735 # However, older versions of Clang make a point of warning the user
10736 # that, in an invocation where only linking and no compilation is
10737 # taking place, the -pthread option has no effect ("argument unused
10738 # during compilation"). They expect -pthread to be passed in only
10739 # when source code is being compiled.
10741 # Problem is, this is at odds with the way Automake and most other
10742 # C build frameworks function, which is that the same flags used in
10743 # compilation (CFLAGS) are also used in linking. Many systems
10744 # supported by AX_PTHREAD require exactly this for POSIX threads
10745 # support, and in fact it is often not straightforward to specify a
10746 # flag that is used only in the compilation phase and not in
10747 # linking. Such a scenario is extremely rare in practice.
10749 # Even though use of the -pthread flag in linking would only print
10750 # a warning, this can be a nuisance for well-run software projects
10751 # that build with -Werror. So if the active version of Clang has
10752 # this misfeature, we search for an option to squash it.
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10755 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10756 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
10757 $as_echo_n "(cached) " >&6
10759 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
10760 # Create an alternate version of $ac_link that compiles and
10761 # links in two steps (.c -> .o, .o -> exe) instead of one
10762 # (.c -> exe), because the warning occurs only in the second
10764 ax_pthread_save_ac_link
="$ac_link"
10765 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10766 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10767 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10768 ax_pthread_save_CFLAGS
="$CFLAGS"
10769 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
10770 if test "x$ax_pthread_try" = "xunknown"; then :
10773 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10774 ac_link
="$ax_pthread_save_ac_link"
10775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10777 int main(void){return 0;}
10779 if ac_fn_c_try_link
"$LINENO"; then :
10780 ac_link
="$ax_pthread_2step_ac_link"
10781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 int main(void){return 0;}
10785 if ac_fn_c_try_link
"$LINENO"; then :
10788 rm -f core conftest.err conftest.
$ac_objext \
10789 conftest
$ac_exeext conftest.
$ac_ext
10792 rm -f core conftest.err conftest.
$ac_objext \
10793 conftest
$ac_exeext conftest.
$ac_ext
10795 ac_link
="$ax_pthread_save_ac_link"
10796 CFLAGS
="$ax_pthread_save_CFLAGS"
10797 if test "x$ax_pthread_try" = "x"; then :
10800 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10804 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10806 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10808 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10811 fi # $ax_pthread_clang = yes
10813 if test "x$ax_pthread_ok" = "xno"; then
10814 for ax_pthread_try_flag
in $ax_pthread_flags; do
10816 case $ax_pthread_try_flag in
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10819 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10824 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10825 PTHREAD_CFLAGS
="-mt"
10826 PTHREAD_LIBS
="-lpthread"
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10831 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10832 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
10836 # Extract the first word of "pthread-config", so it can be a program name with args.
10837 set dummy pthread-config
; ac_word
=$2
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10839 $as_echo_n "checking for $ac_word... " >&6; }
10840 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
10841 $as_echo_n "(cached) " >&6
10843 if test -n "$ax_pthread_config"; then
10844 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
10846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10847 for as_dir
in $PATH
10850 test -z "$as_dir" && as_dir
=.
10851 for ac_exec_ext
in '' $ac_executable_extensions; do
10852 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10853 ac_cv_prog_ax_pthread_config
="yes"
10854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
10864 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
10865 if test -n "$ax_pthread_config"; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10867 $as_echo "$ax_pthread_config" >&6; }
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870 $as_echo "no" >&6; }
10874 if test "x$ax_pthread_config" = "xno"; then :
10877 PTHREAD_CFLAGS
="`pthread-config --cflags`"
10878 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10883 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10884 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
10888 ax_pthread_save_CFLAGS
="$CFLAGS"
10889 ax_pthread_save_LIBS
="$LIBS"
10890 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10891 LIBS
="$PTHREAD_LIBS $LIBS"
10893 # Check for various functions. We must include pthread.h,
10894 # since some functions may be macros. (On the Sequent, we
10895 # need a special flag -Kthread to make this header compile.)
10896 # We check for pthread_join because it is in -lpthread on IRIX
10897 # while pthread_create is in libc. We check for pthread_attr_init
10898 # due to DEC craziness with -lpthreads. We check for
10899 # pthread_cleanup_push because it is one of the few pthread
10900 # functions on Solaris that doesn't have a non-functional libc stub.
10901 # We try pthread_create on general principles.
10903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10905 #include <pthread.h>
10906 # if $ax_pthread_check_cond
10907 # error "$ax_pthread_check_macro must be defined"
10909 static void routine(void *a) { a = 0; }
10910 static void *start_routine(void *a) { return a; }
10914 pthread_t th; pthread_attr_t attr;
10915 pthread_create(&th, 0, start_routine, 0);
10916 pthread_join(th, 0);
10917 pthread_attr_init(&attr);
10918 pthread_cleanup_push(routine, 0);
10919 pthread_cleanup_pop(0) /* ; */
10924 if ac_fn_c_try_link
"$LINENO"; then :
10927 rm -f core conftest.err conftest.
$ac_objext \
10928 conftest
$ac_exeext conftest.
$ac_ext
10930 CFLAGS
="$ax_pthread_save_CFLAGS"
10931 LIBS
="$ax_pthread_save_LIBS"
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10934 $as_echo "$ax_pthread_ok" >&6; }
10935 if test "x$ax_pthread_ok" = "xyes"; then :
10944 # Various other checks:
10945 if test "x$ax_pthread_ok" = "xyes"; then
10946 ax_pthread_save_CFLAGS
="$CFLAGS"
10947 ax_pthread_save_LIBS
="$LIBS"
10948 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10949 LIBS
="$PTHREAD_LIBS $LIBS"
10951 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10953 $as_echo_n "checking for joinable pthread attribute... " >&6; }
10954 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
10955 $as_echo_n "(cached) " >&6
10957 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
10958 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
10959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10961 #include <pthread.h>
10965 int attr = $ax_pthread_attr; return attr /* ; */
10970 if ac_fn_c_try_link
"$LINENO"; then :
10971 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
10973 rm -f core conftest.err conftest.
$ac_objext \
10974 conftest
$ac_exeext conftest.
$ac_ext
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10979 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10980 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
10981 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
10982 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
10984 cat >>confdefs.h
<<_ACEOF
10985 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10988 ax_pthread_joinable_attr_defined
=yes
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
10993 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
10994 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
10995 $as_echo_n "(cached) " >&6
10997 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
11000 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11006 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11007 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11008 test "x$ax_pthread_special_flags_added" != "xyes"; then :
11009 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11010 ax_pthread_special_flags_added
=yes
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11014 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11015 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
11016 $as_echo_n "(cached) " >&6
11018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11020 #include <pthread.h>
11024 int i = PTHREAD_PRIO_INHERIT;
11029 if ac_fn_c_try_link
"$LINENO"; then :
11030 ax_cv_PTHREAD_PRIO_INHERIT
=yes
11032 ax_cv_PTHREAD_PRIO_INHERIT
=no
11034 rm -f core conftest.err conftest.
$ac_objext \
11035 conftest
$ac_exeext conftest.
$ac_ext
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11039 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11040 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11041 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11043 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11045 ax_pthread_prio_inherit_defined
=yes
11049 CFLAGS
="$ax_pthread_save_CFLAGS"
11050 LIBS
="$ax_pthread_save_LIBS"
11052 # More AIX lossage: compile with *_r variant
11053 if test "x$GCC" != "xyes"; then
11057 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
11058 #handle absolute path differently from PATH based program lookup
11061 if as_fn_executable_p
${CC}_r
; then :
11062 PTHREAD_CC
="${CC}_r"
11065 for ac_prog
in ${CC}_r
11067 # Extract the first word of "$ac_prog", so it can be a program name with args.
11068 set dummy
$ac_prog; ac_word
=$2
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11070 $as_echo_n "checking for $ac_word... " >&6; }
11071 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
11072 $as_echo_n "(cached) " >&6
11074 if test -n "$PTHREAD_CC"; then
11075 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
11077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11078 for as_dir
in $PATH
11081 test -z "$as_dir" && as_dir
=.
11082 for ac_exec_ext
in '' $ac_executable_extensions; do
11083 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11084 ac_cv_prog_PTHREAD_CC
="$ac_prog"
11085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11094 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
11095 if test -n "$PTHREAD_CC"; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11097 $as_echo "$PTHREAD_CC" >&6; }
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100 $as_echo "no" >&6; }
11104 test -n "$PTHREAD_CC" && break
11106 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11117 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11123 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11124 if test "x$ax_pthread_ok" = "xyes"; then
11126 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11134 ac_cpp
='$CPP $CPPFLAGS'
11135 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11136 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11137 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11141 # Some platforms use these, so just define them. They can't hurt if they
11142 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
11143 # enables 5-arg getpwuid_r, among other things.
11144 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
11146 # Check for *_r functions
11149 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11150 LIBS
="$LIBS $PTHREAD_LIBS"
11152 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11153 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11157 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
11162 for ac_func
in strerror_r getpwuid_r gethostbyname_r
11164 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11165 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11166 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11167 cat >>confdefs.h
<<_ACEOF
11168 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11175 # Do test here with the proper thread flags
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
11177 $as_echo_n "checking whether strerror_r returns int... " >&6; }
11178 if ${pgac_cv_func_strerror_r_int+:} false
; then :
11179 $as_echo_n "(cached) " >&6
11181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11183 #include <string.h>
11188 switch (strerror_r(1, buf, sizeof(buf)))
11189 { case 0: break; default: break; }
11195 if ac_fn_c_try_compile
"$LINENO"; then :
11196 pgac_cv_func_strerror_r_int
=yes
11198 pgac_cv_func_strerror_r_int
=no
11200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
11203 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
11204 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
11206 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
11217 # do not use values from template file
11230 ## Most libraries are included only if they demonstrably provide a function
11231 ## we need, but libm is an exception: always include it, because there are
11232 ## too many compilers that play cute optimization games that will break
11233 ## probes for standard functions such as pow().
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
11237 $as_echo_n "checking for main in -lm... " >&6; }
11238 if ${ac_cv_lib_m_main+:} false
; then :
11239 $as_echo_n "(cached) " >&6
11241 ac_check_lib_save_LIBS
=$LIBS
11243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11255 if ac_fn_c_try_link
"$LINENO"; then :
11256 ac_cv_lib_m_main
=yes
11258 ac_cv_lib_m_main
=no
11260 rm -f core conftest.err conftest.
$ac_objext \
11261 conftest
$ac_exeext conftest.
$ac_ext
11262 LIBS
=$ac_check_lib_save_LIBS
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
11265 $as_echo "$ac_cv_lib_m_main" >&6; }
11266 if test "x$ac_cv_lib_m_main" = xyes
; then :
11267 cat >>confdefs.h
<<_ACEOF
11268 #define HAVE_LIBM 1
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
11276 $as_echo_n "checking for library containing setproctitle... " >&6; }
11277 if ${ac_cv_search_setproctitle+:} false
; then :
11278 $as_echo_n "(cached) " >&6
11280 ac_func_search_save_LIBS
=$LIBS
11281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11284 /* Override any GCC internal prototype to avoid an error.
11285 Use char because int might match the return type of a GCC
11286 builtin and then its argument prototype would still apply. */
11290 char setproctitle ();
11294 return setproctitle ();
11299 for ac_lib
in '' util
; do
11300 if test -z "$ac_lib"; then
11301 ac_res
="none required"
11304 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11306 if ac_fn_c_try_link
"$LINENO"; then :
11307 ac_cv_search_setproctitle
=$ac_res
11309 rm -f core conftest.err conftest.
$ac_objext \
11311 if ${ac_cv_search_setproctitle+:} false
; then :
11315 if ${ac_cv_search_setproctitle+:} false
; then :
11318 ac_cv_search_setproctitle
=no
11320 rm conftest.
$ac_ext
11321 LIBS
=$ac_func_search_save_LIBS
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
11324 $as_echo "$ac_cv_search_setproctitle" >&6; }
11325 ac_res
=$ac_cv_search_setproctitle
11326 if test "$ac_res" != no
; then :
11327 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11331 # gcc/clang's sanitizer helper library provides dlopen but not dlsym, thus
11332 # when enabling asan the dlopen check doesn't notice that -ldl is actually
11333 # required. Just checking for dlsym() ought to suffice.
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11335 $as_echo_n "checking for library containing dlsym... " >&6; }
11336 if ${ac_cv_search_dlsym+:} false
; then :
11337 $as_echo_n "(cached) " >&6
11339 ac_func_search_save_LIBS
=$LIBS
11340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h. */
11343 /* Override any GCC internal prototype to avoid an error.
11344 Use char because int might match the return type of a GCC
11345 builtin and then its argument prototype would still apply. */
11358 for ac_lib
in '' dl
; do
11359 if test -z "$ac_lib"; then
11360 ac_res
="none required"
11363 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11365 if ac_fn_c_try_link
"$LINENO"; then :
11366 ac_cv_search_dlsym
=$ac_res
11368 rm -f core conftest.err conftest.
$ac_objext \
11370 if ${ac_cv_search_dlsym+:} false
; then :
11374 if ${ac_cv_search_dlsym+:} false
; then :
11377 ac_cv_search_dlsym
=no
11379 rm conftest.
$ac_ext
11380 LIBS
=$ac_func_search_save_LIBS
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11383 $as_echo "$ac_cv_search_dlsym" >&6; }
11384 ac_res
=$ac_cv_search_dlsym
11385 if test "$ac_res" != no
; then :
11386 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11391 $as_echo_n "checking for library containing socket... " >&6; }
11392 if ${ac_cv_search_socket+:} false
; then :
11393 $as_echo_n "(cached) " >&6
11395 ac_func_search_save_LIBS
=$LIBS
11396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11399 /* Override any GCC internal prototype to avoid an error.
11400 Use char because int might match the return type of a GCC
11401 builtin and then its argument prototype would still apply. */
11414 for ac_lib
in '' socket ws2_32
; do
11415 if test -z "$ac_lib"; then
11416 ac_res
="none required"
11419 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11421 if ac_fn_c_try_link
"$LINENO"; then :
11422 ac_cv_search_socket
=$ac_res
11424 rm -f core conftest.err conftest.
$ac_objext \
11426 if ${ac_cv_search_socket+:} false
; then :
11430 if ${ac_cv_search_socket+:} false
; then :
11433 ac_cv_search_socket
=no
11435 rm conftest.
$ac_ext
11436 LIBS
=$ac_func_search_save_LIBS
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11439 $as_echo "$ac_cv_search_socket" >&6; }
11440 ac_res
=$ac_cv_search_socket
11441 if test "$ac_res" != no
; then :
11442 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
11447 $as_echo_n "checking for library containing shl_load... " >&6; }
11448 if ${ac_cv_search_shl_load+:} false
; then :
11449 $as_echo_n "(cached) " >&6
11451 ac_func_search_save_LIBS
=$LIBS
11452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h. */
11455 /* Override any GCC internal prototype to avoid an error.
11456 Use char because int might match the return type of a GCC
11457 builtin and then its argument prototype would still apply. */
11465 return shl_load ();
11470 for ac_lib
in '' dld
; do
11471 if test -z "$ac_lib"; then
11472 ac_res
="none required"
11475 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11477 if ac_fn_c_try_link
"$LINENO"; then :
11478 ac_cv_search_shl_load
=$ac_res
11480 rm -f core conftest.err conftest.
$ac_objext \
11482 if ${ac_cv_search_shl_load+:} false
; then :
11486 if ${ac_cv_search_shl_load+:} false
; then :
11489 ac_cv_search_shl_load
=no
11491 rm conftest.
$ac_ext
11492 LIBS
=$ac_func_search_save_LIBS
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
11495 $as_echo "$ac_cv_search_shl_load" >&6; }
11496 ac_res
=$ac_cv_search_shl_load
11497 if test "$ac_res" != no
; then :
11498 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
11503 $as_echo_n "checking for library containing getopt_long... " >&6; }
11504 if ${ac_cv_search_getopt_long+:} false
; then :
11505 $as_echo_n "(cached) " >&6
11507 ac_func_search_save_LIBS
=$LIBS
11508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11511 /* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11517 char getopt_long ();
11521 return getopt_long ();
11526 for ac_lib
in '' getopt gnugetopt
; do
11527 if test -z "$ac_lib"; then
11528 ac_res
="none required"
11531 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11533 if ac_fn_c_try_link
"$LINENO"; then :
11534 ac_cv_search_getopt_long
=$ac_res
11536 rm -f core conftest.err conftest.
$ac_objext \
11538 if ${ac_cv_search_getopt_long+:} false
; then :
11542 if ${ac_cv_search_getopt_long+:} false
; then :
11545 ac_cv_search_getopt_long
=no
11547 rm conftest.
$ac_ext
11548 LIBS
=$ac_func_search_save_LIBS
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
11551 $as_echo "$ac_cv_search_getopt_long" >&6; }
11552 ac_res
=$ac_cv_search_getopt_long
11553 if test "$ac_res" != no
; then :
11554 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
11559 $as_echo_n "checking for library containing crypt... " >&6; }
11560 if ${ac_cv_search_crypt+:} false
; then :
11561 $as_echo_n "(cached) " >&6
11563 ac_func_search_save_LIBS
=$LIBS
11564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h. */
11567 /* Override any GCC internal prototype to avoid an error.
11568 Use char because int might match the return type of a GCC
11569 builtin and then its argument prototype would still apply. */
11582 for ac_lib
in '' crypt; do
11583 if test -z "$ac_lib"; then
11584 ac_res
="none required"
11587 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11589 if ac_fn_c_try_link
"$LINENO"; then :
11590 ac_cv_search_crypt
=$ac_res
11592 rm -f core conftest.err conftest.
$ac_objext \
11594 if ${ac_cv_search_crypt+:} false
; then :
11598 if ${ac_cv_search_crypt+:} false
; then :
11601 ac_cv_search_crypt
=no
11603 rm conftest.
$ac_ext
11604 LIBS
=$ac_func_search_save_LIBS
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
11607 $as_echo "$ac_cv_search_crypt" >&6; }
11608 ac_res
=$ac_cv_search_crypt
11609 if test "$ac_res" != no
; then :
11610 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
11615 $as_echo_n "checking for library containing shm_open... " >&6; }
11616 if ${ac_cv_search_shm_open+:} false
; then :
11617 $as_echo_n "(cached) " >&6
11619 ac_func_search_save_LIBS
=$LIBS
11620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11633 return shm_open ();
11638 for ac_lib
in '' rt
; do
11639 if test -z "$ac_lib"; then
11640 ac_res
="none required"
11643 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11645 if ac_fn_c_try_link
"$LINENO"; then :
11646 ac_cv_search_shm_open
=$ac_res
11648 rm -f core conftest.err conftest.
$ac_objext \
11650 if ${ac_cv_search_shm_open+:} false
; then :
11654 if ${ac_cv_search_shm_open+:} false
; then :
11657 ac_cv_search_shm_open
=no
11659 rm conftest.
$ac_ext
11660 LIBS
=$ac_func_search_save_LIBS
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
11663 $as_echo "$ac_cv_search_shm_open" >&6; }
11664 ac_res
=$ac_cv_search_shm_open
11665 if test "$ac_res" != no
; then :
11666 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
11671 $as_echo_n "checking for library containing shm_unlink... " >&6; }
11672 if ${ac_cv_search_shm_unlink+:} false
; then :
11673 $as_echo_n "(cached) " >&6
11675 ac_func_search_save_LIBS
=$LIBS
11676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11677 /* end confdefs.h. */
11679 /* Override any GCC internal prototype to avoid an error.
11680 Use char because int might match the return type of a GCC
11681 builtin and then its argument prototype would still apply. */
11685 char shm_unlink ();
11689 return shm_unlink ();
11694 for ac_lib
in '' rt
; do
11695 if test -z "$ac_lib"; then
11696 ac_res
="none required"
11699 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11701 if ac_fn_c_try_link
"$LINENO"; then :
11702 ac_cv_search_shm_unlink
=$ac_res
11704 rm -f core conftest.err conftest.
$ac_objext \
11706 if ${ac_cv_search_shm_unlink+:} false
; then :
11710 if ${ac_cv_search_shm_unlink+:} false
; then :
11713 ac_cv_search_shm_unlink
=no
11715 rm conftest.
$ac_ext
11716 LIBS
=$ac_func_search_save_LIBS
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
11719 $as_echo "$ac_cv_search_shm_unlink" >&6; }
11720 ac_res
=$ac_cv_search_shm_unlink
11721 if test "$ac_res" != no
; then :
11722 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11727 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11728 if ${ac_cv_search_clock_gettime+:} false
; then :
11729 $as_echo_n "(cached) " >&6
11731 ac_func_search_save_LIBS
=$LIBS
11732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11735 /* Override any GCC internal prototype to avoid an error.
11736 Use char because int might match the return type of a GCC
11737 builtin and then its argument prototype would still apply. */
11741 char clock_gettime ();
11745 return clock_gettime ();
11750 for ac_lib
in '' rt posix4
; do
11751 if test -z "$ac_lib"; then
11752 ac_res
="none required"
11755 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11757 if ac_fn_c_try_link
"$LINENO"; then :
11758 ac_cv_search_clock_gettime
=$ac_res
11760 rm -f core conftest.err conftest.
$ac_objext \
11762 if ${ac_cv_search_clock_gettime+:} false
; then :
11766 if ${ac_cv_search_clock_gettime+:} false
; then :
11769 ac_cv_search_clock_gettime
=no
11771 rm conftest.
$ac_ext
11772 LIBS
=$ac_func_search_save_LIBS
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11775 $as_echo "$ac_cv_search_clock_gettime" >&6; }
11776 ac_res
=$ac_cv_search_clock_gettime
11777 if test "$ac_res" != no
; then :
11778 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11784 $as_echo_n "checking for library containing fdatasync... " >&6; }
11785 if ${ac_cv_search_fdatasync+:} false
; then :
11786 $as_echo_n "(cached) " >&6
11788 ac_func_search_save_LIBS
=$LIBS
11789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11792 /* Override any GCC internal prototype to avoid an error.
11793 Use char because int might match the return type of a GCC
11794 builtin and then its argument prototype would still apply. */
11802 return fdatasync ();
11807 for ac_lib
in '' rt posix4
; do
11808 if test -z "$ac_lib"; then
11809 ac_res
="none required"
11812 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11814 if ac_fn_c_try_link
"$LINENO"; then :
11815 ac_cv_search_fdatasync
=$ac_res
11817 rm -f core conftest.err conftest.
$ac_objext \
11819 if ${ac_cv_search_fdatasync+:} false
; then :
11823 if ${ac_cv_search_fdatasync+:} false
; then :
11826 ac_cv_search_fdatasync
=no
11828 rm conftest.
$ac_ext
11829 LIBS
=$ac_func_search_save_LIBS
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11832 $as_echo "$ac_cv_search_fdatasync" >&6; }
11833 ac_res
=$ac_cv_search_fdatasync
11834 if test "$ac_res" != no
; then :
11835 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11839 # Required for thread_test.c on Solaris
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
11841 $as_echo_n "checking for library containing sched_yield... " >&6; }
11842 if ${ac_cv_search_sched_yield+:} false
; then :
11843 $as_echo_n "(cached) " >&6
11845 ac_func_search_save_LIBS
=$LIBS
11846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11849 /* Override any GCC internal prototype to avoid an error.
11850 Use char because int might match the return type of a GCC
11851 builtin and then its argument prototype would still apply. */
11855 char sched_yield ();
11859 return sched_yield ();
11864 for ac_lib
in '' rt
; do
11865 if test -z "$ac_lib"; then
11866 ac_res
="none required"
11869 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11871 if ac_fn_c_try_link
"$LINENO"; then :
11872 ac_cv_search_sched_yield
=$ac_res
11874 rm -f core conftest.err conftest.
$ac_objext \
11876 if ${ac_cv_search_sched_yield+:} false
; then :
11880 if ${ac_cv_search_sched_yield+:} false
; then :
11883 ac_cv_search_sched_yield
=no
11885 rm conftest.
$ac_ext
11886 LIBS
=$ac_func_search_save_LIBS
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
11889 $as_echo "$ac_cv_search_sched_yield" >&6; }
11890 ac_res
=$ac_cv_search_sched_yield
11891 if test "$ac_res" != no
; then :
11892 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11896 # Required for thread_test.c on Solaris 2.5:
11897 # Other ports use it too (HP-UX) so test unconditionally
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
11899 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
11900 if ${ac_cv_search_gethostbyname_r+:} false
; then :
11901 $as_echo_n "(cached) " >&6
11903 ac_func_search_save_LIBS
=$LIBS
11904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11907 /* Override any GCC internal prototype to avoid an error.
11908 Use char because int might match the return type of a GCC
11909 builtin and then its argument prototype would still apply. */
11913 char gethostbyname_r ();
11917 return gethostbyname_r ();
11922 for ac_lib
in '' nsl
; do
11923 if test -z "$ac_lib"; then
11924 ac_res
="none required"
11927 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11929 if ac_fn_c_try_link
"$LINENO"; then :
11930 ac_cv_search_gethostbyname_r
=$ac_res
11932 rm -f core conftest.err conftest.
$ac_objext \
11934 if ${ac_cv_search_gethostbyname_r+:} false
; then :
11938 if ${ac_cv_search_gethostbyname_r+:} false
; then :
11941 ac_cv_search_gethostbyname_r
=no
11943 rm conftest.
$ac_ext
11944 LIBS
=$ac_func_search_save_LIBS
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
11947 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
11948 ac_res
=$ac_cv_search_gethostbyname_r
11949 if test "$ac_res" != no
; then :
11950 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
11956 $as_echo_n "checking for library containing shmget... " >&6; }
11957 if ${ac_cv_search_shmget+:} false
; then :
11958 $as_echo_n "(cached) " >&6
11960 ac_func_search_save_LIBS
=$LIBS
11961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11964 /* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11979 for ac_lib
in '' cygipc
; do
11980 if test -z "$ac_lib"; then
11981 ac_res
="none required"
11984 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11986 if ac_fn_c_try_link
"$LINENO"; then :
11987 ac_cv_search_shmget
=$ac_res
11989 rm -f core conftest.err conftest.
$ac_objext \
11991 if ${ac_cv_search_shmget+:} false
; then :
11995 if ${ac_cv_search_shmget+:} false
; then :
11998 ac_cv_search_shmget
=no
12000 rm conftest.
$ac_ext
12001 LIBS
=$ac_func_search_save_LIBS
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
12004 $as_echo "$ac_cv_search_shmget" >&6; }
12005 ac_res
=$ac_cv_search_shmget
12006 if test "$ac_res" != no
; then :
12007 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12012 if test "$with_readline" = yes; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12016 $as_echo_n "checking for library containing readline... " >&6; }
12017 if ${pgac_cv_check_readline+:} false
; then :
12018 $as_echo_n "(cached) " >&6
12020 pgac_cv_check_readline
=no
12021 pgac_save_LIBS
=$LIBS
12022 if test x
"$with_libedit_preferred" != x
"yes"
12023 then READLINE_ORDER
="-lreadline -ledit"
12024 else READLINE_ORDER
="-ledit -lreadline"
12026 for pgac_rllib
in $READLINE_ORDER ; do
12027 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
12028 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
12029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12032 /* Override any GCC internal prototype to avoid an error.
12033 Use char because int might match the return type of a GCC
12034 builtin and then its argument prototype would still apply. */
12042 return readline ();
12047 if ac_fn_c_try_link
"$LINENO"; then :
12049 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
12050 # recognize dependent libraries; assume curses is needed if we didn't
12051 # find any dependency.
12053 netbsd
* | openbsd
* | irix
*)
12054 if test x
"$pgac_lib" = x
"" ; then
12055 pgac_lib
=" -lcurses"
12059 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
12063 rm -f core conftest.err conftest.
$ac_objext \
12064 conftest
$ac_exeext conftest.
$ac_ext
12066 if test "$pgac_cv_check_readline" != no
; then
12070 LIBS
=$pgac_save_LIBS
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
12074 $as_echo "$pgac_cv_check_readline" >&6; }
12075 if test "$pgac_cv_check_readline" != no
; then
12076 LIBS
="$pgac_cv_check_readline $LIBS"
12078 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
12083 if test x
"$pgac_cv_check_readline" = x
"no"; then
12084 as_fn_error $?
"readline library not found
12085 If you have readline already installed, see config.log for details on the
12086 failure. It is possible the compiler isn't looking in the proper directory.
12087 Use --without-readline to disable readline support." "$LINENO" 5
12091 if test "$with_zlib" = yes; then
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
12093 $as_echo_n "checking for inflate in -lz... " >&6; }
12094 if ${ac_cv_lib_z_inflate+:} false
; then :
12095 $as_echo_n "(cached) " >&6
12097 ac_check_lib_save_LIBS
=$LIBS
12099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12102 /* Override any GCC internal prototype to avoid an error.
12103 Use char because int might match the return type of a GCC
12104 builtin and then its argument prototype would still apply. */
12117 if ac_fn_c_try_link
"$LINENO"; then :
12118 ac_cv_lib_z_inflate
=yes
12120 ac_cv_lib_z_inflate
=no
12122 rm -f core conftest.err conftest.
$ac_objext \
12123 conftest
$ac_exeext conftest.
$ac_ext
12124 LIBS
=$ac_check_lib_save_LIBS
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12127 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12128 if test "x$ac_cv_lib_z_inflate" = xyes
; then :
12129 cat >>confdefs.h
<<_ACEOF
12130 #define HAVE_LIBZ 1
12136 as_fn_error $?
"zlib library not found
12137 If you have zlib already installed, see config.log for details on the
12138 failure. It is possible the compiler isn't looking in the proper directory.
12139 Use --without-zlib to disable zlib support." "$LINENO" 5
12144 if test "$enable_spinlocks" = yes; then
12146 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12150 *** Not using spinlocks will cause poor performance." >&5
12151 $as_echo "$as_me: WARNING:
12152 *** Not using spinlocks will cause poor performance." >&2;}
12155 if test "$enable_atomics" = yes; then
12157 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12161 *** Not using atomic operations will cause poor performance." >&5
12162 $as_echo "$as_me: WARNING:
12163 *** Not using atomic operations will cause poor performance." >&2;}
12166 if test "$with_gssapi" = yes ; then
12167 if test "$PORTNAME" != "win32"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
12169 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
12170 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
12171 $as_echo_n "(cached) " >&6
12173 ac_func_search_save_LIBS
=$LIBS
12174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12177 /* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
12183 char gss_init_sec_context ();
12187 return gss_init_sec_context ();
12192 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
12193 if test -z "$ac_lib"; then
12194 ac_res
="none required"
12197 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12199 if ac_fn_c_try_link
"$LINENO"; then :
12200 ac_cv_search_gss_init_sec_context
=$ac_res
12202 rm -f core conftest.err conftest.
$ac_objext \
12204 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
12208 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
12211 ac_cv_search_gss_init_sec_context
=no
12213 rm conftest.
$ac_ext
12214 LIBS
=$ac_func_search_save_LIBS
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
12217 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
12218 ac_res
=$ac_cv_search_gss_init_sec_context
12219 if test "$ac_res" != no
; then :
12220 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12223 as_fn_error $?
"could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
12227 LIBS
="$LIBS -lgssapi32"
12231 if test "$with_openssl" = yes ; then
12232 if test "$PORTNAME" != "win32"; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
12234 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
12235 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false
; then :
12236 $as_echo_n "(cached) " >&6
12238 ac_check_lib_save_LIBS
=$LIBS
12239 LIBS
="-lcrypto $LIBS"
12240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12249 char CRYPTO_new_ex_data ();
12253 return CRYPTO_new_ex_data ();
12258 if ac_fn_c_try_link
"$LINENO"; then :
12259 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
12261 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
12263 rm -f core conftest.err conftest.
$ac_objext \
12264 conftest
$ac_exeext conftest.
$ac_ext
12265 LIBS
=$ac_check_lib_save_LIBS
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
12268 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
12269 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes
; then :
12270 cat >>confdefs.h
<<_ACEOF
12271 #define HAVE_LIBCRYPTO 1
12274 LIBS
="-lcrypto $LIBS"
12277 as_fn_error $?
"library 'crypto' is required for OpenSSL" "$LINENO" 5
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
12281 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
12282 if ${ac_cv_lib_ssl_SSL_new+:} false
; then :
12283 $as_echo_n "(cached) " >&6
12285 ac_check_lib_save_LIBS
=$LIBS
12287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12290 /* Override any GCC internal prototype to avoid an error.
12291 Use char because int might match the return type of a GCC
12292 builtin and then its argument prototype would still apply. */
12305 if ac_fn_c_try_link
"$LINENO"; then :
12306 ac_cv_lib_ssl_SSL_new
=yes
12308 ac_cv_lib_ssl_SSL_new
=no
12310 rm -f core conftest.err conftest.
$ac_objext \
12311 conftest
$ac_exeext conftest.
$ac_ext
12312 LIBS
=$ac_check_lib_save_LIBS
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
12315 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
12316 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
; then :
12317 cat >>confdefs.h
<<_ACEOF
12318 #define HAVE_LIBSSL 1
12324 as_fn_error $?
"library 'ssl' is required for OpenSSL" "$LINENO" 5
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
12329 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
12330 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12331 $as_echo_n "(cached) " >&6
12333 ac_func_search_save_LIBS
=$LIBS
12334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12337 /* Override any GCC internal prototype to avoid an error.
12338 Use char because int might match the return type of a GCC
12339 builtin and then its argument prototype would still apply. */
12343 char CRYPTO_new_ex_data ();
12347 return CRYPTO_new_ex_data ();
12352 for ac_lib
in '' eay32 crypto
; do
12353 if test -z "$ac_lib"; then
12354 ac_res
="none required"
12357 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12359 if ac_fn_c_try_link
"$LINENO"; then :
12360 ac_cv_search_CRYPTO_new_ex_data
=$ac_res
12362 rm -f core conftest.err conftest.
$ac_objext \
12364 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12368 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12371 ac_cv_search_CRYPTO_new_ex_data
=no
12373 rm conftest.
$ac_ext
12374 LIBS
=$ac_func_search_save_LIBS
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
12377 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
12378 ac_res
=$ac_cv_search_CRYPTO_new_ex_data
12379 if test "$ac_res" != no
; then :
12380 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12383 as_fn_error $?
"library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12387 $as_echo_n "checking for library containing SSL_new... " >&6; }
12388 if ${ac_cv_search_SSL_new+:} false
; then :
12389 $as_echo_n "(cached) " >&6
12391 ac_func_search_save_LIBS
=$LIBS
12392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12395 /* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
12410 for ac_lib
in '' ssleay32 ssl
; do
12411 if test -z "$ac_lib"; then
12412 ac_res
="none required"
12415 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12417 if ac_fn_c_try_link
"$LINENO"; then :
12418 ac_cv_search_SSL_new
=$ac_res
12420 rm -f core conftest.err conftest.
$ac_objext \
12422 if ${ac_cv_search_SSL_new+:} false
; then :
12426 if ${ac_cv_search_SSL_new+:} false
; then :
12429 ac_cv_search_SSL_new
=no
12431 rm conftest.
$ac_ext
12432 LIBS
=$ac_func_search_save_LIBS
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12435 $as_echo "$ac_cv_search_SSL_new" >&6; }
12436 ac_res
=$ac_cv_search_SSL_new
12437 if test "$ac_res" != no
; then :
12438 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12441 as_fn_error $?
"library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
12445 for ac_func
in SSL_get_current_compression X509_get_signature_nid
12447 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12448 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12449 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12450 cat >>confdefs.h
<<_ACEOF
12451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12457 # Functions introduced in OpenSSL 1.1.0. We used to check for
12458 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
12459 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
12460 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
12462 for ac_func
in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data
12464 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12465 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12466 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12467 cat >>confdefs.h
<<_ACEOF
12468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12474 # OpenSSL versions before 1.1.0 required setting callback functions, for
12475 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
12476 # function was removed.
12477 for ac_func
in CRYPTO_lock
12479 ac_fn_c_check_func
"$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
12480 if test "x$ac_cv_func_CRYPTO_lock" = xyes
; then :
12481 cat >>confdefs.h
<<_ACEOF
12482 #define HAVE_CRYPTO_LOCK 1
12488 # SSL_clear_options is a macro in OpenSSL from 0.9.8 to 1.0.2, and
12489 # a function from 1.1.0 onwards so we cannot use AC_CHECK_FUNCS.
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_clear_options" >&5
12491 $as_echo_n "checking for SSL_clear_options... " >&6; }
12492 if ${ac_cv_func_ssl_clear_options+:} false
; then :
12493 $as_echo_n "(cached) " >&6
12495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12498 #include <openssl/ssl.h>
12499 #include <openssl/bio.h>
12505 return SSL_clear_options(ssl, 0);
12510 if ac_fn_c_try_link
"$LINENO"; then :
12511 ac_cv_func_ssl_clear_options
=yes
12513 ac_cv_func_ssl_clear_options
=no
12515 rm -f core conftest.err conftest.
$ac_objext \
12516 conftest
$ac_exeext conftest.
$ac_ext
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ssl_clear_options" >&5
12519 $as_echo "$ac_cv_func_ssl_clear_options" >&6; }
12520 if test $ac_cv_func_ssl_clear_options = yes ; then
12522 $as_echo "#define HAVE_SSL_CLEAR_OPTIONS 1" >>confdefs.h
12527 if test "$with_pam" = yes ; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
12529 $as_echo_n "checking for pam_start in -lpam... " >&6; }
12530 if ${ac_cv_lib_pam_pam_start+:} false
; then :
12531 $as_echo_n "(cached) " >&6
12533 ac_check_lib_save_LIBS
=$LIBS
12535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12538 /* Override any GCC internal prototype to avoid an error.
12539 Use char because int might match the return type of a GCC
12540 builtin and then its argument prototype would still apply. */
12548 return pam_start ();
12553 if ac_fn_c_try_link
"$LINENO"; then :
12554 ac_cv_lib_pam_pam_start
=yes
12556 ac_cv_lib_pam_pam_start
=no
12558 rm -f core conftest.err conftest.
$ac_objext \
12559 conftest
$ac_exeext conftest.
$ac_ext
12560 LIBS
=$ac_check_lib_save_LIBS
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
12563 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
12564 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
12565 cat >>confdefs.h
<<_ACEOF
12566 #define HAVE_LIBPAM 1
12572 as_fn_error $?
"library 'pam' is required for PAM" "$LINENO" 5
12577 if test "$with_libxml" = yes ; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
12579 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
12580 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false
; then :
12581 $as_echo_n "(cached) " >&6
12583 ac_check_lib_save_LIBS
=$LIBS
12584 LIBS
="-lxml2 $LIBS"
12585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12588 /* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
12594 char xmlSaveToBuffer ();
12598 return xmlSaveToBuffer ();
12603 if ac_fn_c_try_link
"$LINENO"; then :
12604 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
12606 ac_cv_lib_xml2_xmlSaveToBuffer
=no
12608 rm -f core conftest.err conftest.
$ac_objext \
12609 conftest
$ac_exeext conftest.
$ac_ext
12610 LIBS
=$ac_check_lib_save_LIBS
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
12613 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
12614 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes
; then :
12615 cat >>confdefs.h
<<_ACEOF
12616 #define HAVE_LIBXML2 1
12619 LIBS
="-lxml2 $LIBS"
12622 as_fn_error $?
"library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
12627 if test "$with_libxslt" = yes ; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
12629 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
12630 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false
; then :
12631 $as_echo_n "(cached) " >&6
12633 ac_check_lib_save_LIBS
=$LIBS
12634 LIBS
="-lxslt $LIBS"
12635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12638 /* Override any GCC internal prototype to avoid an error.
12639 Use char because int might match the return type of a GCC
12640 builtin and then its argument prototype would still apply. */
12644 char xsltCleanupGlobals ();
12648 return xsltCleanupGlobals ();
12653 if ac_fn_c_try_link
"$LINENO"; then :
12654 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
12656 ac_cv_lib_xslt_xsltCleanupGlobals
=no
12658 rm -f core conftest.err conftest.
$ac_objext \
12659 conftest
$ac_exeext conftest.
$ac_ext
12660 LIBS
=$ac_check_lib_save_LIBS
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
12663 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
12664 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes
; then :
12665 cat >>confdefs.h
<<_ACEOF
12666 #define HAVE_LIBXSLT 1
12669 LIBS
="-lxslt $LIBS"
12672 as_fn_error $?
"library 'xslt' is required for XSLT support" "$LINENO" 5
12677 # Note: We can test for libldap_r only after we know PTHREAD_LIBS;
12678 # also, on AIX, we may need to have openssl in LIBS for this step.
12679 if test "$with_ldap" = yes ; then
12681 if test "$PORTNAME" != "win32"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
12683 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
12684 if ${ac_cv_lib_ldap_ldap_bind+:} false
; then :
12685 $as_echo_n "(cached) " >&6
12687 ac_check_lib_save_LIBS
=$LIBS
12688 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
12689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12692 /* Override any GCC internal prototype to avoid an error.
12693 Use char because int might match the return type of a GCC
12694 builtin and then its argument prototype would still apply. */
12702 return ldap_bind ();
12707 if ac_fn_c_try_link
"$LINENO"; then :
12708 ac_cv_lib_ldap_ldap_bind
=yes
12710 ac_cv_lib_ldap_ldap_bind
=no
12712 rm -f core conftest.err conftest.
$ac_objext \
12713 conftest
$ac_exeext conftest.
$ac_ext
12714 LIBS
=$ac_check_lib_save_LIBS
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
12717 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
12718 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes
; then :
12719 cat >>confdefs.h
<<_ACEOF
12720 #define HAVE_LIBLDAP 1
12723 LIBS
="-lldap $LIBS"
12726 as_fn_error $?
"library 'ldap' is required for LDAP" "$LINENO" 5
12729 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
12730 # This test is carried out against libldap.
12731 for ac_func
in ldap_initialize
12733 ac_fn_c_check_func
"$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
12734 if test "x$ac_cv_func_ldap_initialize" = xyes
; then :
12735 cat >>confdefs.h
<<_ACEOF
12736 #define HAVE_LDAP_INITIALIZE 1
12742 # The separate ldap_r library only exists in OpenLDAP < 2.5, and if we
12743 # have 2.5 or later, we shouldn't even probe for ldap_r (we might find a
12744 # library from a separate OpenLDAP installation). The most reliable
12745 # way to check that is to check for a function introduced in 2.5.
12746 ac_fn_c_check_func
"$LINENO" "ldap_verify_credentials" "ac_cv_func_ldap_verify_credentials"
12747 if test "x$ac_cv_func_ldap_verify_credentials" = xyes
; then :
12748 thread_safe_libldap
=yes
12750 thread_safe_libldap
=no
12753 if test "$enable_thread_safety" = yes -a "$thread_safe_libldap" = no
; then
12754 # Use ldap_r for FE if available, else assume ldap is thread-safe.
12755 # On some platforms ldap_r fails to link without PTHREAD_LIBS.
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap_r" >&5
12758 $as_echo_n "checking for ldap_bind in -lldap_r... " >&6; }
12759 if ${ac_cv_lib_ldap_r_ldap_bind+:} false
; then :
12760 $as_echo_n "(cached) " >&6
12762 ac_check_lib_save_LIBS
=$LIBS
12763 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12767 /* Override any GCC internal prototype to avoid an error.
12768 Use char because int might match the return type of a GCC
12769 builtin and then its argument prototype would still apply. */
12777 return ldap_bind ();
12782 if ac_fn_c_try_link
"$LINENO"; then :
12783 ac_cv_lib_ldap_r_ldap_bind
=yes
12785 ac_cv_lib_ldap_r_ldap_bind
=no
12787 rm -f core conftest.err conftest.
$ac_objext \
12788 conftest
$ac_exeext conftest.
$ac_ext
12789 LIBS
=$ac_check_lib_save_LIBS
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_bind" >&5
12792 $as_echo "$ac_cv_lib_ldap_r_ldap_bind" >&6; }
12793 if test "x$ac_cv_lib_ldap_r_ldap_bind" = xyes
; then :
12794 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
12796 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
12800 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12804 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12805 if ${ac_cv_lib_wldap32_ldap_bind+:} false
; then :
12806 $as_echo_n "(cached) " >&6
12808 ac_check_lib_save_LIBS
=$LIBS
12809 LIBS
="-lwldap32 $LIBS"
12810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12813 /* Override any GCC internal prototype to avoid an error.
12814 Use char because int might match the return type of a GCC
12815 builtin and then its argument prototype would still apply. */
12823 return ldap_bind ();
12828 if ac_fn_c_try_link
"$LINENO"; then :
12829 ac_cv_lib_wldap32_ldap_bind
=yes
12831 ac_cv_lib_wldap32_ldap_bind
=no
12833 rm -f core conftest.err conftest.
$ac_objext \
12834 conftest
$ac_exeext conftest.
$ac_ext
12835 LIBS
=$ac_check_lib_save_LIBS
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
12838 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
12839 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes
; then :
12840 cat >>confdefs.h
<<_ACEOF
12841 #define HAVE_LIBWLDAP32 1
12844 LIBS
="-lwldap32 $LIBS"
12847 as_fn_error $?
"library 'wldap32' is required for LDAP" "$LINENO" 5
12850 LDAP_LIBS_FE
="-lwldap32"
12851 LDAP_LIBS_BE
="-lwldap32"
12858 # for contrib/sepgsql
12859 if test "$with_selinux" = yes; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
12861 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
12862 if ${ac_cv_lib_selinux_security_compute_create_name+:} false
; then :
12863 $as_echo_n "(cached) " >&6
12865 ac_check_lib_save_LIBS
=$LIBS
12866 LIBS
="-lselinux $LIBS"
12867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12870 /* Override any GCC internal prototype to avoid an error.
12871 Use char because int might match the return type of a GCC
12872 builtin and then its argument prototype would still apply. */
12876 char security_compute_create_name ();
12880 return security_compute_create_name ();
12885 if ac_fn_c_try_link
"$LINENO"; then :
12886 ac_cv_lib_selinux_security_compute_create_name
=yes
12888 ac_cv_lib_selinux_security_compute_create_name
=no
12890 rm -f core conftest.err conftest.
$ac_objext \
12891 conftest
$ac_exeext conftest.
$ac_ext
12892 LIBS
=$ac_check_lib_save_LIBS
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
12895 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
12896 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes
; then :
12897 cat >>confdefs.h
<<_ACEOF
12898 #define HAVE_LIBSELINUX 1
12901 LIBS
="-lselinux $LIBS"
12904 as_fn_error $?
"library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
12909 # for contrib/uuid-ossp
12910 if test "$with_uuid" = bsd
; then
12911 # On BSD, the UUID functions are in libc
12912 ac_fn_c_check_func
"$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
12913 if test "x$ac_cv_func_uuid_to_string" = xyes
; then :
12916 as_fn_error $?
"BSD UUID functions are not present" "$LINENO" 5
12919 elif test "$with_uuid" = e2fs
; then
12920 # On macOS, the UUID functions are in libc
12921 ac_fn_c_check_func
"$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
12922 if test "x$ac_cv_func_uuid_generate" = xyes
; then :
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
12926 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
12927 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
12928 $as_echo_n "(cached) " >&6
12930 ac_check_lib_save_LIBS
=$LIBS
12931 LIBS
="-luuid $LIBS"
12932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12933 /* end confdefs.h. */
12935 /* Override any GCC internal prototype to avoid an error.
12936 Use char because int might match the return type of a GCC
12937 builtin and then its argument prototype would still apply. */
12941 char uuid_generate ();
12945 return uuid_generate ();
12950 if ac_fn_c_try_link
"$LINENO"; then :
12951 ac_cv_lib_uuid_uuid_generate
=yes
12953 ac_cv_lib_uuid_uuid_generate
=no
12955 rm -f core conftest.err conftest.
$ac_objext \
12956 conftest
$ac_exeext conftest.
$ac_ext
12957 LIBS
=$ac_check_lib_save_LIBS
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
12960 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
12961 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
12964 as_fn_error $?
"library 'uuid' is required for E2FS UUID" "$LINENO" 5
12969 elif test "$with_uuid" = ossp
; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
12971 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
12972 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false
; then :
12973 $as_echo_n "(cached) " >&6
12975 ac_check_lib_save_LIBS
=$LIBS
12976 LIBS
="-lossp-uuid $LIBS"
12977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12980 /* Override any GCC internal prototype to avoid an error.
12981 Use char because int might match the return type of a GCC
12982 builtin and then its argument prototype would still apply. */
12986 char uuid_export ();
12990 return uuid_export ();
12995 if ac_fn_c_try_link
"$LINENO"; then :
12996 ac_cv_lib_ossp_uuid_uuid_export
=yes
12998 ac_cv_lib_ossp_uuid_uuid_export
=no
13000 rm -f core conftest.err conftest.
$ac_objext \
13001 conftest
$ac_exeext conftest.
$ac_ext
13002 LIBS
=$ac_check_lib_save_LIBS
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
13005 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
13006 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes
; then :
13007 UUID_LIBS
="-lossp-uuid"
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
13010 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
13011 if ${ac_cv_lib_uuid_uuid_export+:} false
; then :
13012 $as_echo_n "(cached) " >&6
13014 ac_check_lib_save_LIBS
=$LIBS
13015 LIBS
="-luuid $LIBS"
13016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13019 /* Override any GCC internal prototype to avoid an error.
13020 Use char because int might match the return type of a GCC
13021 builtin and then its argument prototype would still apply. */
13025 char uuid_export ();
13029 return uuid_export ();
13034 if ac_fn_c_try_link
"$LINENO"; then :
13035 ac_cv_lib_uuid_uuid_export
=yes
13037 ac_cv_lib_uuid_uuid_export
=no
13039 rm -f core conftest.err conftest.
$ac_objext \
13040 conftest
$ac_exeext conftest.
$ac_ext
13041 LIBS
=$ac_check_lib_save_LIBS
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
13044 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
13045 if test "x$ac_cv_lib_uuid_uuid_export" = xyes
; then :
13048 as_fn_error $?
"library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13062 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13063 if ${ac_cv_header_stdbool_h+:} false
; then :
13064 $as_echo_n "(cached) " >&6
13066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13069 #include <stdbool.h>
13071 "error: bool is not defined"
13074 "error: false is not defined"
13077 "error: false is not 0"
13080 "error: true is not defined"
13083 "error: true is not 1"
13085 #ifndef __bool_true_false_are_defined
13086 "error: __bool_true_false_are_defined is not defined"
13089 struct s { _Bool s: 1; _Bool t; } s;
13091 char a[true == 1 ? 1 : -1];
13092 char b[false == 0 ? 1 : -1];
13093 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13094 char d[(bool) 0.5 == true ? 1 : -1];
13095 /* See body of main program for 'e'. */
13096 char f[(_Bool) 0.0 == false ? 1 : -1];
13098 char h[sizeof (_Bool)];
13099 char i[sizeof s.t];
13100 enum { j = false, k = true, l = false * true, m = true * 256 };
13101 /* The following fails for
13102 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13104 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13105 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13106 /* Catch a bug in an HP-UX C compiler. See
13107 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13108 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13120 /* Refer to every declared value, to avoid compiler optimizations. */
13121 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13122 + !m + !n + !o + !p + !q + !pq);
13128 if ac_fn_c_try_compile
"$LINENO"; then :
13129 ac_cv_header_stdbool_h
=yes
13131 ac_cv_header_stdbool_h
=no
13133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13136 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13137 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13138 if test "x$ac_cv_type__Bool" = xyes
; then :
13140 cat >>confdefs.h
<<_ACEOF
13141 #define HAVE__BOOL 1
13148 if test $ac_cv_header_stdbool_h = yes; then
13150 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
13155 for ac_header
in atomic.h copyfile.h
crypt.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h sys
/epoll.h sys
/ipc.h sys
/prctl.h sys
/procctl.h sys
/pstat.h sys
/resource.h sys
/select.h sys
/sem.h sys
/shm.h sys
/sockio.h sys
/tas.h sys
/un.h termios.h ucred.h utime.h wchar.h wctype.h
13157 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13158 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13159 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13160 cat >>confdefs.h
<<_ACEOF
13161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13169 # On BSD, test for net/if.h will fail unless sys/socket.h
13170 # is included first.
13171 for ac_header
in net
/if.h
13173 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
13174 #include <sys/socket.h>
13177 if test "x$ac_cv_header_net_if_h" = xyes
; then :
13178 cat >>confdefs.h
<<_ACEOF
13179 #define HAVE_NET_IF_H 1
13187 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
13188 # is included first.
13189 for ac_header
in sys
/ucred.h
13191 ac_fn_c_check_header_compile
"$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
13192 #include <sys/param.h>
13195 if test "x$ac_cv_header_sys_ucred_h" = xyes
; then :
13196 cat >>confdefs.h
<<_ACEOF
13197 #define HAVE_SYS_UCRED_H 1
13205 # At least on IRIX, test for netinet/tcp.h will fail unless
13206 # netinet/in.h is included first.
13207 for ac_header
in netinet
/tcp.h
13209 ac_fn_c_check_header_compile
"$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
13210 #include <netinet/in.h>
13213 if test "x$ac_cv_header_netinet_tcp_h" = xyes
; then :
13214 cat >>confdefs.h
<<_ACEOF
13215 #define HAVE_NETINET_TCP_H 1
13223 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
13224 for ac_header
in readline
/readline.h
13226 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13227 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13228 cat >>confdefs.h
<<_ACEOF
13229 #define HAVE_READLINE_READLINE_H 1
13233 for ac_header
in readline.h
13235 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13236 if test "x$ac_cv_header_readline_h" = xyes
; then :
13237 cat >>confdefs.h
<<_ACEOF
13238 #define HAVE_READLINE_H 1
13242 as_fn_error $?
"readline header not found
13243 If you have readline already installed, see config.log for details on the
13244 failure. It is possible the compiler isn't looking in the proper directory.
13245 Use --without-readline to disable readline support." "$LINENO" 5
13254 for ac_header
in readline
/history.h
13256 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13257 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13258 cat >>confdefs.h
<<_ACEOF
13259 #define HAVE_READLINE_HISTORY_H 1
13263 for ac_header
in history.h
13265 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13266 if test "x$ac_cv_header_history_h" = xyes
; then :
13267 cat >>confdefs.h
<<_ACEOF
13268 #define HAVE_HISTORY_H 1
13272 as_fn_error $?
"history header not found
13273 If you have readline already installed, see config.log for details on the
13274 failure. It is possible the compiler isn't looking in the proper directory.
13275 Use --without-readline to disable readline support." "$LINENO" 5
13286 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
13287 # Some installations of libedit usurp /usr/include/readline/, which seems
13288 # bad practice, since in combined installations readline will have its headers
13289 # there. We might have to resort to AC_EGREP checks to make sure we found
13290 # the proper header...
13291 for ac_header
in editline
/readline.h
13293 ac_fn_c_check_header_mongrel
"$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13294 if test "x$ac_cv_header_editline_readline_h" = xyes
; then :
13295 cat >>confdefs.h
<<_ACEOF
13296 #define HAVE_EDITLINE_READLINE_H 1
13300 for ac_header
in readline.h
13302 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13303 if test "x$ac_cv_header_readline_h" = xyes
; then :
13304 cat >>confdefs.h
<<_ACEOF
13305 #define HAVE_READLINE_H 1
13309 for ac_header
in readline
/readline.h
13311 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13312 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13313 cat >>confdefs.h
<<_ACEOF
13314 #define HAVE_READLINE_READLINE_H 1
13318 as_fn_error $?
"readline header not found
13319 If you have libedit already installed, see config.log for details on the
13320 failure. It is possible the compiler isn't looking in the proper directory.
13321 Use --without-readline to disable libedit support." "$LINENO" 5
13334 # Note: in a libedit installation, history.h is sometimes a dummy, and may
13335 # not be there at all. Hence, don't complain if not found. We must check
13336 # though, since in yet other versions it is an independent header.
13337 for ac_header
in editline
/history.h
13339 ac_fn_c_check_header_mongrel
"$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
13340 if test "x$ac_cv_header_editline_history_h" = xyes
; then :
13341 cat >>confdefs.h
<<_ACEOF
13342 #define HAVE_EDITLINE_HISTORY_H 1
13346 for ac_header
in history.h
13348 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13349 if test "x$ac_cv_header_history_h" = xyes
; then :
13350 cat >>confdefs.h
<<_ACEOF
13351 #define HAVE_HISTORY_H 1
13355 for ac_header
in readline
/history.h
13357 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13358 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13359 cat >>confdefs.h
<<_ACEOF
13360 #define HAVE_READLINE_HISTORY_H 1
13377 if test "$with_zlib" = yes; then
13378 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13379 if test "x$ac_cv_header_zlib_h" = xyes
; then :
13382 as_fn_error $?
"zlib header not found
13383 If you have zlib already installed, see config.log for details on the
13384 failure. It is possible the compiler isn't looking in the proper directory.
13385 Use --without-zlib to disable zlib support." "$LINENO" 5
13391 if test "$with_gssapi" = yes ; then
13392 for ac_header
in gssapi
/gssapi.h
13394 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
13395 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
; then :
13396 cat >>confdefs.h
<<_ACEOF
13397 #define HAVE_GSSAPI_GSSAPI_H 1
13401 for ac_header
in gssapi.h
13403 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
13404 if test "x$ac_cv_header_gssapi_h" = xyes
; then :
13405 cat >>confdefs.h
<<_ACEOF
13406 #define HAVE_GSSAPI_H 1
13410 as_fn_error $?
"gssapi.h header file is required for GSSAPI" "$LINENO" 5
13421 if test "$with_openssl" = yes ; then
13422 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
13423 if test "x$ac_cv_header_openssl_ssl_h" = xyes
; then :
13426 as_fn_error $?
"header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
13430 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
13431 if test "x$ac_cv_header_openssl_err_h" = xyes
; then :
13434 as_fn_error $?
"header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
13440 if test "$with_pam" = yes ; then
13441 for ac_header
in security
/pam_appl.h
13443 ac_fn_c_check_header_mongrel
"$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
13444 if test "x$ac_cv_header_security_pam_appl_h" = xyes
; then :
13445 cat >>confdefs.h
<<_ACEOF
13446 #define HAVE_SECURITY_PAM_APPL_H 1
13450 for ac_header
in pam
/pam_appl.h
13452 ac_fn_c_check_header_mongrel
"$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
13453 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
; then :
13454 cat >>confdefs.h
<<_ACEOF
13455 #define HAVE_PAM_PAM_APPL_H 1
13459 as_fn_error $?
"header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
13470 if test "$with_bsd_auth" = yes ; then
13471 ac_fn_c_check_header_mongrel
"$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
13472 if test "x$ac_cv_header_bsd_auth_h" = xyes
; then :
13475 as_fn_error $?
"header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
13481 if test "$with_systemd" = yes ; then
13482 ac_fn_c_check_header_mongrel
"$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
13483 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
; then :
13486 as_fn_error $?
"header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
13492 if test "$with_libxml" = yes ; then
13493 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
13494 if test "x$ac_cv_header_libxml_parser_h" = xyes
; then :
13497 as_fn_error $?
"header file <libxml/parser.h> is required for XML support" "$LINENO" 5
13503 if test "$with_libxslt" = yes ; then
13504 ac_fn_c_check_header_mongrel
"$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
13505 if test "x$ac_cv_header_libxslt_xslt_h" = xyes
; then :
13508 as_fn_error $?
"header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
13514 if test "$with_ldap" = yes ; then
13515 if test "$PORTNAME" != "win32"; then
13516 for ac_header
in ldap.h
13518 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13519 if test "x$ac_cv_header_ldap_h" = xyes
; then :
13520 cat >>confdefs.h
<<_ACEOF
13521 #define HAVE_LDAP_H 1
13525 as_fn_error $?
"header file <ldap.h> is required for LDAP" "$LINENO" 5
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
13531 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
13532 if ${pgac_cv_ldap_safe+:} false
; then :
13533 $as_echo_n "(cached) " >&6
13535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13538 #if !defined(LDAP_VENDOR_VERSION) || \
13539 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
13540 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
13551 if ac_fn_c_try_compile
"$LINENO"; then :
13552 pgac_cv_ldap_safe
=yes
13554 pgac_cv_ldap_safe
=no
13556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
13559 $as_echo "$pgac_cv_ldap_safe" >&6; }
13561 if test "$pgac_cv_ldap_safe" != yes; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13563 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13564 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13565 *** also uses LDAP will crash on exit." >&5
13566 $as_echo "$as_me: WARNING:
13567 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13568 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13569 *** also uses LDAP will crash on exit." >&2;}
13572 for ac_header
in winldap.h
13574 ac_fn_c_check_header_compile
"$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
13575 #include <windows.h>
13578 if test "x$ac_cv_header_winldap_h" = xyes
; then :
13579 cat >>confdefs.h
<<_ACEOF
13580 #define HAVE_WINLDAP_H 1
13584 as_fn_error $?
"header file <winldap.h> is required for LDAP" "$LINENO" 5
13592 if test "$with_bonjour" = yes ; then
13593 ac_fn_c_check_header_mongrel
"$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
13594 if test "x$ac_cv_header_dns_sd_h" = xyes
; then :
13597 as_fn_error $?
"header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
13603 # for contrib/uuid-ossp
13604 if test "$with_uuid" = bsd
; then
13605 for ac_header
in uuid.h
13607 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13608 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13609 cat >>confdefs.h
<<_ACEOF
13610 #define HAVE_UUID_H 1
13612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13618 $EGREP "uuid_to_string" >/dev
/null
2>&1; then :
13621 as_fn_error $?
"header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
13626 as_fn_error $?
"header file <uuid.h> is required for BSD UUID" "$LINENO" 5
13631 elif test "$with_uuid" = e2fs
; then
13632 for ac_header
in uuid
/uuid.h
13634 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13635 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
13636 cat >>confdefs.h
<<_ACEOF
13637 #define HAVE_UUID_UUID_H 1
13639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13641 #include <uuid/uuid.h>
13644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13645 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
13648 as_fn_error $?
"header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
13653 for ac_header
in uuid.h
13655 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13656 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13657 cat >>confdefs.h
<<_ACEOF
13658 #define HAVE_UUID_H 1
13660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13666 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
13669 as_fn_error $?
"header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
13674 as_fn_error $?
"header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
13683 elif test "$with_uuid" = ossp
; then
13684 for ac_header
in ossp
/uuid.h
13686 ac_fn_c_check_header_mongrel
"$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
13687 if test "x$ac_cv_header_ossp_uuid_h" = xyes
; then :
13688 cat >>confdefs.h
<<_ACEOF
13689 #define HAVE_OSSP_UUID_H 1
13691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13693 #include <ossp/uuid.h>
13696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13697 $EGREP "uuid_export" >/dev
/null
2>&1; then :
13700 as_fn_error $?
"header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
13705 for ac_header
in uuid.h
13707 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13708 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13709 cat >>confdefs.h
<<_ACEOF
13710 #define HAVE_UUID_H 1
13712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h. */
13717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13718 $EGREP "uuid_export" >/dev
/null
2>&1; then :
13721 as_fn_error $?
"header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
13726 as_fn_error $?
"header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
13737 if test "$PORTNAME" = "win32" ; then
13738 for ac_header
in crtdefs.h
13740 ac_fn_c_check_header_mongrel
"$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
13741 if test "x$ac_cv_header_crtdefs_h" = xyes
; then :
13742 cat >>confdefs.h
<<_ACEOF
13743 #define HAVE_CRTDEFS_H 1
13753 ## Types, structures, compiler characteristics
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13757 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13758 if ${ac_cv_c_bigendian+:} false
; then :
13759 $as_echo_n "(cached) " >&6
13761 ac_cv_c_bigendian
=unknown
13762 # See if we're dealing with a universal compiler.
13763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13765 #ifndef __APPLE_CC__
13766 not a universal capable compiler
13771 if ac_fn_c_try_compile
"$LINENO"; then :
13773 # Check for potential -arch flags. It is not universal unless
13774 # there are at least two -arch flags with different values.
13777 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13778 if test -n "$ac_prev"; then
13780 i?
86 | x86_64 | ppc | ppc64
)
13781 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13784 ac_cv_c_bigendian
=universal
13790 elif test "x$ac_word" = "x-arch"; then
13795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13796 if test $ac_cv_c_bigendian = unknown
; then
13797 # See if sys/param.h defines the BYTE_ORDER macro.
13798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13800 #include <sys/types.h>
13801 #include <sys/param.h>
13806 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13807 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13809 bogus endian macros
13816 if ac_fn_c_try_compile
"$LINENO"; then :
13817 # It does; now see whether it defined to BIG_ENDIAN or not.
13818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13820 #include <sys/types.h>
13821 #include <sys/param.h>
13826 #if BYTE_ORDER != BIG_ENDIAN
13834 if ac_fn_c_try_compile
"$LINENO"; then :
13835 ac_cv_c_bigendian
=yes
13837 ac_cv_c_bigendian
=no
13839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13843 if test $ac_cv_c_bigendian = unknown
; then
13844 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13847 #include <limits.h>
13852 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13853 bogus endian macros
13860 if ac_fn_c_try_compile
"$LINENO"; then :
13861 # It does; now see whether it defined to _BIG_ENDIAN or not.
13862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h. */
13864 #include <limits.h>
13869 #ifndef _BIG_ENDIAN
13877 if ac_fn_c_try_compile
"$LINENO"; then :
13878 ac_cv_c_bigendian
=yes
13880 ac_cv_c_bigendian
=no
13882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13886 if test $ac_cv_c_bigendian = unknown
; then
13887 # Compile a test program.
13888 if test "$cross_compiling" = yes; then :
13889 # Try to guess by grepping values from an object file.
13890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13892 short int ascii_mm[] =
13893 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13894 short int ascii_ii[] =
13895 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13896 int use_ascii (int i) {
13897 return ascii_mm[i] + ascii_ii[i];
13899 short int ebcdic_ii[] =
13900 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13901 short int ebcdic_mm[] =
13902 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13903 int use_ebcdic (int i) {
13904 return ebcdic_mm[i] + ebcdic_ii[i];
13911 return use_ascii (foo) == use_ebcdic (foo);
13916 if ac_fn_c_try_compile
"$LINENO"; then :
13917 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13918 ac_cv_c_bigendian
=yes
13920 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13921 if test "$ac_cv_c_bigendian" = unknown
; then
13922 ac_cv_c_bigendian
=no
13924 # finding both strings is unlikely to happen, but who knows?
13925 ac_cv_c_bigendian
=unknown
13929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13932 /* end confdefs.h. */
13933 $ac_includes_default
13938 /* Are we little or big endian? From Harbison&Steele. */
13942 char c[sizeof (long int)];
13945 return u.c[sizeof (long int) - 1] == 1;
13951 if ac_fn_c_try_run
"$LINENO"; then :
13952 ac_cv_c_bigendian
=no
13954 ac_cv_c_bigendian
=yes
13956 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13957 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13963 $as_echo "$ac_cv_c_bigendian" >&6; }
13964 case $ac_cv_c_bigendian in #(
13966 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13972 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13976 as_fn_error $?
"unknown endianness
13977 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13981 $as_echo_n "checking for inline... " >&6; }
13982 if ${ac_cv_c_inline+:} false
; then :
13983 $as_echo_n "(cached) " >&6
13986 for ac_kw
in inline __inline__ __inline
; do
13987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 #ifndef __cplusplus
13991 static $ac_kw foo_t static_foo () {return 0; }
13992 $ac_kw foo_t foo () {return 0; }
13996 if ac_fn_c_try_compile
"$LINENO"; then :
13997 ac_cv_c_inline
=$ac_kw
13999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14000 test "$ac_cv_c_inline" != no
&& break
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14005 $as_echo "$ac_cv_c_inline" >&6; }
14007 case $ac_cv_c_inline in
14010 case $ac_cv_c_inline in
14012 *) ac_val
=$ac_cv_c_inline;;
14014 cat >>confdefs.h
<<_ACEOF
14015 #ifndef __cplusplus
14016 #define inline $ac_val
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
14023 $as_echo_n "checking for printf format archetype... " >&6; }
14024 if ${pgac_cv_printf_archetype+:} false
; then :
14025 $as_echo_n "(cached) " >&6
14027 pgac_cv_printf_archetype
=gnu_printf
14028 ac_save_c_werror_flag
=$ac_c_werror_flag
14029 ac_c_werror_flag
=yes
14030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14032 extern void pgac_write(int ignore, const char *fmt,...)
14033 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14037 pgac_write(0, "error %s: %m", "foo");
14042 if ac_fn_c_try_compile
"$LINENO"; then :
14043 ac_archetype_ok
=yes
14047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14048 ac_c_werror_flag
=$ac_save_c_werror_flag
14050 if [ "$ac_archetype_ok" = no
]; then
14051 pgac_cv_printf_archetype
=__syslog__
14052 ac_save_c_werror_flag
=$ac_c_werror_flag
14053 ac_c_werror_flag
=yes
14054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14056 extern void pgac_write(int ignore, const char *fmt,...)
14057 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14061 pgac_write(0, "error %s: %m", "foo");
14066 if ac_fn_c_try_compile
"$LINENO"; then :
14067 ac_archetype_ok
=yes
14071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14072 ac_c_werror_flag
=$ac_save_c_werror_flag
14074 if [ "$ac_archetype_ok" = no
]; then
14075 pgac_cv_printf_archetype
=printf
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
14080 $as_echo "$pgac_cv_printf_archetype" >&6; }
14082 cat >>confdefs.h
<<_ACEOF
14083 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
14089 $as_echo_n "checking for flexible array members... " >&6; }
14090 if ${ac_cv_c_flexmember+:} false
; then :
14091 $as_echo_n "(cached) " >&6
14093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14095 #include <stdlib.h>
14097 #include <stddef.h>
14098 struct s { int n; double d[]; };
14102 int m = getchar ();
14103 struct s *p = malloc (offsetof (struct s, d)
14104 + m * sizeof (double));
14106 return p->d != (double *) NULL;
14111 if ac_fn_c_try_compile
"$LINENO"; then :
14112 ac_cv_c_flexmember
=yes
14114 ac_cv_c_flexmember
=no
14116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
14119 $as_echo "$ac_cv_c_flexmember" >&6; }
14120 if test $ac_cv_c_flexmember = yes; then
14122 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
14125 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
14130 $as_echo_n "checking for signed types... " >&6; }
14131 if ${pgac_cv_c_signed+:} false
; then :
14132 $as_echo_n "(cached) " >&6
14134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14140 signed char c; signed short s; signed int i;
14145 if ac_fn_c_try_compile
"$LINENO"; then :
14146 pgac_cv_c_signed
=yes
14148 pgac_cv_c_signed
=no
14150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
14153 $as_echo "$pgac_cv_c_signed" >&6; }
14154 if test x
"$pgac_cv_c_signed" = xno
; then
14156 $as_echo "#define signed /**/" >>confdefs.h
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
14160 $as_echo_n "checking for __func__... " >&6; }
14161 if ${pgac_cv_funcname_func_support+:} false
; then :
14162 $as_echo_n "(cached) " >&6
14164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14170 printf("%s\n", __func__);
14175 if ac_fn_c_try_compile
"$LINENO"; then :
14176 pgac_cv_funcname_func_support
=yes
14178 pgac_cv_funcname_func_support
=no
14180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
14183 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14184 if test x
"$pgac_cv_funcname_func_support" = xyes
; then
14186 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
14190 $as_echo_n "checking for __FUNCTION__... " >&6; }
14191 if ${pgac_cv_funcname_function_support+:} false
; then :
14192 $as_echo_n "(cached) " >&6
14194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14200 printf("%s\n", __FUNCTION__);
14205 if ac_fn_c_try_compile
"$LINENO"; then :
14206 pgac_cv_funcname_function_support
=yes
14208 pgac_cv_funcname_function_support
=no
14210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
14213 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14214 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
14216 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
14221 $as_echo_n "checking for _Static_assert... " >&6; }
14222 if ${pgac_cv__static_assert+:} false
; then :
14223 $as_echo_n "(cached) " >&6
14225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14231 ({ _Static_assert(1, "foo"); })
14236 if ac_fn_c_try_link
"$LINENO"; then :
14237 pgac_cv__static_assert
=yes
14239 pgac_cv__static_assert
=no
14241 rm -f core conftest.err conftest.
$ac_objext \
14242 conftest
$ac_exeext conftest.
$ac_ext
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
14245 $as_echo "$pgac_cv__static_assert" >&6; }
14246 if test x
"$pgac_cv__static_assert" = xyes
; then
14248 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
14252 $as_echo_n "checking for typeof... " >&6; }
14253 if ${pgac_cv_c_typeof+:} false
; then :
14254 $as_echo_n "(cached) " >&6
14256 pgac_cv_c_typeof
=no
14257 for pgac_kw
in typeof __typeof__ decltype
; do
14258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14272 if ac_fn_c_try_compile
"$LINENO"; then :
14273 pgac_cv_c_typeof
=$pgac_kw
14275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14276 test "$pgac_cv_c_typeof" != no
&& break
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
14280 $as_echo "$pgac_cv_c_typeof" >&6; }
14281 if test "$pgac_cv_c_typeof" != no
; then
14283 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
14285 if test "$pgac_cv_c_typeof" != typeof
; then
14287 cat >>confdefs.h
<<_ACEOF
14288 #define typeof $pgac_cv_c_typeof
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
14294 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
14295 if ${pgac_cv__types_compatible+:} false
; then :
14296 $as_echo_n "(cached) " >&6
14298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14304 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
14309 if ac_fn_c_try_compile
"$LINENO"; then :
14310 pgac_cv__types_compatible
=yes
14312 pgac_cv__types_compatible
=no
14314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
14317 $as_echo "$pgac_cv__types_compatible" >&6; }
14318 if test x
"$pgac_cv__types_compatible" = xyes
; then
14320 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
14324 $as_echo_n "checking for __builtin_constant_p... " >&6; }
14325 if ${pgac_cv__builtin_constant_p+:} false
; then :
14326 $as_echo_n "(cached) " >&6
14328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h. */
14331 static int y[__builtin_constant_p(x) ? x : 1];
14332 static int z[__builtin_constant_p("string literal") ? 1 : x];
14336 if ac_fn_c_try_compile
"$LINENO"; then :
14337 pgac_cv__builtin_constant_p
=yes
14339 pgac_cv__builtin_constant_p
=no
14341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
14344 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
14345 if test x
"$pgac_cv__builtin_constant_p" = xyes
; then
14347 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
14351 $as_echo_n "checking for __builtin_unreachable... " >&6; }
14352 if ${pgac_cv__builtin_unreachable+:} false
; then :
14353 $as_echo_n "(cached) " >&6
14355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14361 __builtin_unreachable();
14366 if ac_fn_c_try_link
"$LINENO"; then :
14367 pgac_cv__builtin_unreachable
=yes
14369 pgac_cv__builtin_unreachable
=no
14371 rm -f core conftest.err conftest.
$ac_objext \
14372 conftest
$ac_exeext conftest.
$ac_ext
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
14375 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
14376 if test x
"$pgac_cv__builtin_unreachable" = xyes
; then
14378 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
14382 $as_echo_n "checking for computed goto support... " >&6; }
14383 if ${pgac_cv_computed_goto+:} false
; then :
14384 $as_echo_n "(cached) " >&6
14386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14392 void *labeladdrs[] = {&&my_label};
14393 goto *labeladdrs[0];
14401 if ac_fn_c_try_compile
"$LINENO"; then :
14402 pgac_cv_computed_goto
=yes
14404 pgac_cv_computed_goto
=no
14406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
14409 $as_echo "$pgac_cv_computed_goto" >&6; }
14410 if test x
"$pgac_cv_computed_goto" = xyes
; then
14412 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14416 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14417 if ${ac_cv_struct_tm+:} false
; then :
14418 $as_echo_n "(cached) " >&6
14420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14422 #include <sys/types.h>
14429 int *p = &tm.tm_sec;
14435 if ac_fn_c_try_compile
"$LINENO"; then :
14436 ac_cv_struct_tm
=time.h
14438 ac_cv_struct_tm
=sys
/time.h
14440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14443 $as_echo "$ac_cv_struct_tm" >&6; }
14444 if test $ac_cv_struct_tm = sys
/time.h
; then
14446 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
14450 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
14451 #include <$ac_cv_struct_tm>
14454 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
14456 cat >>confdefs.h
<<_ACEOF
14457 #define HAVE_STRUCT_TM_TM_ZONE 1
14463 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14465 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
14469 $as_echo_n "checking for tzname... " >&6; }
14470 if ${ac_cv_var_tzname+:} false
; then :
14471 $as_echo_n "(cached) " >&6
14473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14474 /* end confdefs.h. */
14475 #include <stdlib.h>
14477 #ifndef tzname /* For SGI. */
14478 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14489 if ac_fn_c_try_link
"$LINENO"; then :
14490 ac_cv_var_tzname
=yes
14492 ac_cv_var_tzname
=no
14494 rm -f core conftest.err conftest.
$ac_objext \
14495 conftest
$ac_exeext conftest.
$ac_ext
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
14498 $as_echo "$ac_cv_var_tzname" >&6; }
14499 if test $ac_cv_var_tzname = yes; then
14501 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
14505 ac_fn_c_check_type
"$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
14506 #ifdef HAVE_SYS_IPC_H
14507 #include <sys/ipc.h>
14509 #ifdef HAVE_SYS_SEM_H
14510 #include <sys/sem.h>
14513 if test "x$ac_cv_type_union_semun" = xyes
; then :
14515 cat >>confdefs.h
<<_ACEOF
14516 #define HAVE_UNION_SEMUN 1
14522 ac_fn_c_check_type
"$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
14523 #ifdef HAVE_SYS_UN_H
14524 #include <sys/un.h>
14528 if test "x$ac_cv_type_struct_sockaddr_un" = xyes
; then :
14530 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
14534 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
14535 #include <sys/socket.h>
14538 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
14540 cat >>confdefs.h
<<_ACEOF
14541 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14547 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14548 #include <sys/socket.h>
14551 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
14553 cat >>confdefs.h
<<_ACEOF
14554 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14559 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14560 #include <sys/socket.h>
14563 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
; then :
14565 cat >>confdefs.h
<<_ACEOF
14566 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14571 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
14572 #include <sys/socket.h>
14575 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes
; then :
14577 cat >>confdefs.h
<<_ACEOF
14578 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14583 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
14584 #include <sys/socket.h>
14587 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes
; then :
14589 cat >>confdefs.h
<<_ACEOF
14590 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14595 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14596 #include <sys/socket.h>
14599 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
14601 cat >>confdefs.h
<<_ACEOF
14602 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14608 ac_fn_c_check_type
"$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
14609 #include <sys/socket.h>
14613 if test "x$ac_cv_type_struct_addrinfo" = xyes
; then :
14615 cat >>confdefs.h
<<_ACEOF
14616 #define HAVE_STRUCT_ADDRINFO 1
14623 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14624 if test "x$ac_cv_type_intptr_t" = xyes
; then :
14626 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
14629 for ac_type
in 'int' 'long int' 'long long int'; do
14630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14632 $ac_includes_default
14636 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14637 test_array [0] = 0;
14638 return test_array [0];
14644 if ac_fn_c_try_compile
"$LINENO"; then :
14646 cat >>confdefs.h
<<_ACEOF
14647 #define intptr_t $ac_type
14652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14653 test -z "$ac_type" && break
14659 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14660 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
14662 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
14665 for ac_type
in 'unsigned int' 'unsigned long int' \
14666 'unsigned long long int'; do
14667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14669 $ac_includes_default
14673 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14674 test_array [0] = 0;
14675 return test_array [0];
14681 if ac_fn_c_try_compile
"$LINENO"; then :
14683 cat >>confdefs.h
<<_ACEOF
14684 #define uintptr_t $ac_type
14689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14690 test -z "$ac_type" && break
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14697 $as_echo_n "checking for unsigned long long int... " >&6; }
14698 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
14699 $as_echo_n "(cached) " >&6
14701 ac_cv_type_unsigned_long_long_int
=yes
14702 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14706 /* For now, do not test the preprocessor; as of 2007 there are too many
14707 implementations with broken preprocessors. Perhaps this can
14708 be revisited in 2012. In the meantime, code should not expect
14709 #if to work with literals wider than 32 bits. */
14710 /* Test literals. */
14711 long long int ll = 9223372036854775807ll;
14712 long long int nll = -9223372036854775807LL;
14713 unsigned long long int ull = 18446744073709551615ULL;
14714 /* Test constant expressions. */
14715 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14717 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14723 /* Test availability of runtime routines for shift and division. */
14724 long long int llmax = 9223372036854775807ll;
14725 unsigned long long int ullmax = 18446744073709551615ull;
14726 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14727 | (llmax / ll) | (llmax % ll)
14728 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14729 | (ullmax / ull) | (ullmax % ull));
14735 if ac_fn_c_try_link
"$LINENO"; then :
14738 ac_cv_type_unsigned_long_long_int
=no
14740 rm -f core conftest.err conftest.
$ac_objext \
14741 conftest
$ac_exeext conftest.
$ac_ext
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14745 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14746 if test $ac_cv_type_unsigned_long_long_int = yes; then
14748 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14755 $as_echo_n "checking for long long int... " >&6; }
14756 if ${ac_cv_type_long_long_int+:} false
; then :
14757 $as_echo_n "(cached) " >&6
14759 ac_cv_type_long_long_int
=yes
14760 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14761 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
14762 if test $ac_cv_type_long_long_int = yes; then
14763 if test "$cross_compiling" = yes; then :
14766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768 #include <limits.h>
14771 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14772 # define LLONG_MAX (HALF - 1 + HALF)
14777 long long int n = 1;
14781 long long int m = n << i;
14784 if (LLONG_MAX / 2 < m)
14792 if ac_fn_c_try_run
"$LINENO"; then :
14795 ac_cv_type_long_long_int
=no
14797 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14798 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14805 $as_echo "$ac_cv_type_long_long_int" >&6; }
14806 if test $ac_cv_type_long_long_int = yes; then
14808 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
14814 $as_echo_n "checking for locale_t... " >&6; }
14815 if ${pgac_cv_type_locale_t+:} false
; then :
14816 $as_echo_n "(cached) " >&6
14818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14820 #include <locale.h>
14830 if ac_fn_c_try_compile
"$LINENO"; then :
14831 pgac_cv_type_locale_t
=yes
14833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14835 #include <xlocale.h>
14845 if ac_fn_c_try_compile
"$LINENO"; then :
14846 pgac_cv_type_locale_t
='yes (in xlocale.h)'
14848 pgac_cv_type_locale_t
=no
14850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
14855 $as_echo "$pgac_cv_type_locale_t" >&6; }
14856 if test "$pgac_cv_type_locale_t" != no
; then
14858 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
14861 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
14863 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
14867 # MSVC doesn't cope well with defining restrict to __restrict, the
14868 # spelling it understands, because it conflicts with
14869 # __declspec(restrict). Therefore we define pg_restrict to the
14870 # appropriate definition, which presumably won't conflict.
14872 # Allow platforms with buggy compilers to force restrict to not be
14873 # used by setting $FORCE_DISABLE_RESTRICT=yes in the relevant
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14876 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14877 if ${ac_cv_c_restrict+:} false
; then :
14878 $as_echo_n "(cached) " >&6
14880 ac_cv_c_restrict
=no
14881 # The order here caters to the fact that C++ does not require restrict.
14882 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14885 typedef int * int_ptr;
14886 int foo (int_ptr $ac_kw ip) {
14893 int * $ac_kw t = s;
14900 if ac_fn_c_try_compile
"$LINENO"; then :
14901 ac_cv_c_restrict
=$ac_kw
14903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14904 test "$ac_cv_c_restrict" != no
&& break
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14909 $as_echo "$ac_cv_c_restrict" >&6; }
14911 case $ac_cv_c_restrict in
14913 no
) $as_echo "#define restrict /**/" >>confdefs.h
14915 *) cat >>confdefs.h
<<_ACEOF
14916 #define restrict $ac_cv_c_restrict
14921 if test "$ac_cv_c_restrict" = "no" -o "x$FORCE_DISABLE_RESTRICT" = "xyes"; then
14924 pg_restrict
="$ac_cv_c_restrict"
14927 cat >>confdefs.h
<<_ACEOF
14928 #define pg_restrict $pg_restrict
14932 ac_fn_c_check_type
"$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
14933 #include <sys/param.h>
14934 #ifdef HAVE_SYS_UCRED_H
14935 #include <sys/ucred.h>
14938 if test "x$ac_cv_type_struct_cmsgcred" = xyes
; then :
14940 cat >>confdefs.h
<<_ACEOF
14941 #define HAVE_STRUCT_CMSGCRED 1
14948 ac_fn_c_check_type
"$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
14949 #include <getopt.h>
14952 if test "x$ac_cv_type_struct_option" = xyes
; then :
14954 cat >>confdefs.h
<<_ACEOF
14955 #define HAVE_STRUCT_OPTION 1
14962 if test "$with_zlib" = yes; then
14963 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14964 # did not). While we could work around the lack of z_streamp, it
14965 # seems unwise to encourage people to use such old zlib versions...
14966 ac_fn_c_check_type
"$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
14968 if test "x$ac_cv_type_z_streamp" = xyes
; then :
14971 as_fn_error $?
"zlib version is too old
14972 Use --without-zlib to disable zlib support." "$LINENO" 5
14979 # On x86_64, check if we can compile a popcntq instruction
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports x86_64 popcntq" >&5
14981 $as_echo_n "checking whether assembler supports x86_64 popcntq... " >&6; }
14982 if ${pgac_cv_have_x86_64_popcntq+:} false
; then :
14983 $as_echo_n "(cached) " >&6
14985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14991 long long x = 1; long long r;
14992 __asm__ __volatile__ (" popcntq %1,%0\n" : "=q"(r) : "rm"(x));
14997 if ac_fn_c_try_compile
"$LINENO"; then :
14998 pgac_cv_have_x86_64_popcntq
=yes
15000 pgac_cv_have_x86_64_popcntq
=no
15002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_x86_64_popcntq" >&5
15005 $as_echo "$pgac_cv_have_x86_64_popcntq" >&6; }
15006 if test x
"$pgac_cv_have_x86_64_popcntq" = xyes
; then
15008 $as_echo "#define HAVE_X86_64_POPCNTQ 1" >>confdefs.h
15013 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
15015 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
15016 if ${pgac_cv_have_ppc_mutex_hint+:} false
; then :
15017 $as_echo_n "(cached) " >&6
15019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15025 int a = 0; int *p = &a; int r;
15026 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
15031 if ac_fn_c_try_compile
"$LINENO"; then :
15032 pgac_cv_have_ppc_mutex_hint
=yes
15034 pgac_cv_have_ppc_mutex_hint
=no
15036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
15039 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
15040 if test x
"$pgac_cv_have_ppc_mutex_hint" = xyes
; then
15042 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
15048 # Check largefile support. You might think this is a system service not a
15049 # compiler characteristic, but you'd be wrong. We must check this before
15050 # probing existence of related functions such as fseeko, since the largefile
15051 # defines can affect what is generated for that.
15052 if test "$PORTNAME" != "win32"; then
15053 # Check whether --enable-largefile was given.
15054 if test "${enable_largefile+set}" = set; then :
15055 enableval
=$enable_largefile;
15058 if test "$enable_largefile" != no
; then
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15061 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15062 if ${ac_cv_sys_largefile_CC+:} false
; then :
15063 $as_echo_n "(cached) " >&6
15065 ac_cv_sys_largefile_CC
=no
15066 if test "$GCC" != yes; then
15069 # IRIX 6.2 and later do not support large files by default,
15070 # so use the C compiler's -n32 option if that helps.
15071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15073 #include <sys/types.h>
15074 /* Check that off_t can represent 2**63 - 1 correctly.
15075 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15076 since some C++ compilers masquerading as C compilers
15077 incorrectly reject 9223372036854775807. */
15078 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15079 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15080 && LARGE_OFF_T % 2147483647 == 1)
15090 if ac_fn_c_try_compile
"$LINENO"; then :
15093 rm -f core conftest.err conftest.
$ac_objext
15095 if ac_fn_c_try_compile
"$LINENO"; then :
15096 ac_cv_sys_largefile_CC
=' -n32'; break
15098 rm -f core conftest.err conftest.
$ac_objext
15102 rm -f conftest.
$ac_ext
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15106 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15107 if test "$ac_cv_sys_largefile_CC" != no
; then
15108 CC
=$CC$ac_cv_sys_largefile_CC
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15112 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15113 if ${ac_cv_sys_file_offset_bits+:} false
; then :
15114 $as_echo_n "(cached) " >&6
15117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15119 #include <sys/types.h>
15120 /* Check that off_t can represent 2**63 - 1 correctly.
15121 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15122 since some C++ compilers masquerading as C compilers
15123 incorrectly reject 9223372036854775807. */
15124 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15125 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15126 && LARGE_OFF_T % 2147483647 == 1)
15136 if ac_fn_c_try_compile
"$LINENO"; then :
15137 ac_cv_sys_file_offset_bits
=no
; break
15139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15142 #define _FILE_OFFSET_BITS 64
15143 #include <sys/types.h>
15144 /* Check that off_t can represent 2**63 - 1 correctly.
15145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15146 since some C++ compilers masquerading as C compilers
15147 incorrectly reject 9223372036854775807. */
15148 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15150 && LARGE_OFF_T % 2147483647 == 1)
15160 if ac_fn_c_try_compile
"$LINENO"; then :
15161 ac_cv_sys_file_offset_bits
=64; break
15163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15164 ac_cv_sys_file_offset_bits
=unknown
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15169 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15170 case $ac_cv_sys_file_offset_bits in #(
15173 cat >>confdefs.h
<<_ACEOF
15174 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15179 if test $ac_cv_sys_file_offset_bits = unknown
; then
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15181 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15182 if ${ac_cv_sys_large_files+:} false
; then :
15183 $as_echo_n "(cached) " >&6
15186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15188 #include <sys/types.h>
15189 /* Check that off_t can represent 2**63 - 1 correctly.
15190 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15191 since some C++ compilers masquerading as C compilers
15192 incorrectly reject 9223372036854775807. */
15193 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15194 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15195 && LARGE_OFF_T % 2147483647 == 1)
15205 if ac_fn_c_try_compile
"$LINENO"; then :
15206 ac_cv_sys_large_files
=no
; break
15208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15211 #define _LARGE_FILES 1
15212 #include <sys/types.h>
15213 /* Check that off_t can represent 2**63 - 1 correctly.
15214 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15215 since some C++ compilers masquerading as C compilers
15216 incorrectly reject 9223372036854775807. */
15217 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15218 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15219 && LARGE_OFF_T % 2147483647 == 1)
15229 if ac_fn_c_try_compile
"$LINENO"; then :
15230 ac_cv_sys_large_files
=1; break
15232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15233 ac_cv_sys_large_files
=unknown
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15238 $as_echo "$ac_cv_sys_large_files" >&6; }
15239 case $ac_cv_sys_large_files in #(
15242 cat >>confdefs.h
<<_ACEOF
15243 #define _LARGE_FILES $ac_cv_sys_large_files
15256 # The cast to long int works around a bug in the HP C Compiler
15257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15259 # This bug is HP SR number 8606223364.
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15261 $as_echo_n "checking size of off_t... " >&6; }
15262 if ${ac_cv_sizeof_off_t+:} false
; then :
15263 $as_echo_n "(cached) " >&6
15265 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15268 if test "$ac_cv_type_off_t" = yes; then
15269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15271 as_fn_error
77 "cannot compute sizeof (off_t)
15272 See \`config.log' for more details" "$LINENO" 5; }
15274 ac_cv_sizeof_off_t
=0
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15280 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15284 cat >>confdefs.h
<<_ACEOF
15285 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15290 # If we don't have largefile support, can't handle segsize >= 2GB.
15291 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
15292 as_fn_error $?
"Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
15295 # The cast to long int works around a bug in the HP C Compiler
15296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15298 # This bug is HP SR number 8606223364.
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
15300 $as_echo_n "checking size of bool... " >&6; }
15301 if ${ac_cv_sizeof_bool+:} false
; then :
15302 $as_echo_n "(cached) " >&6
15304 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
15305 #include <stdbool.h>
15310 if test "$ac_cv_type_bool" = yes; then
15311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15313 as_fn_error
77 "cannot compute sizeof (bool)
15314 See \`config.log' for more details" "$LINENO" 5; }
15316 ac_cv_sizeof_bool
=0
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
15322 $as_echo "$ac_cv_sizeof_bool" >&6; }
15326 cat >>confdefs.h
<<_ACEOF
15327 #define SIZEOF_BOOL $ac_cv_sizeof_bool
15334 ## Functions, global variables
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
15338 $as_echo_n "checking for int timezone... " >&6; }
15339 if ${pgac_cv_var_int_timezone+:} false
; then :
15340 $as_echo_n "(cached) " >&6
15342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15350 res = timezone / 60;
15352 res = _timezone / 60;
15358 if ac_fn_c_try_link
"$LINENO"; then :
15359 pgac_cv_var_int_timezone
=yes
15361 pgac_cv_var_int_timezone
=no
15363 rm -f core conftest.err conftest.
$ac_objext \
15364 conftest
$ac_exeext conftest.
$ac_ext
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
15367 $as_echo "$pgac_cv_var_int_timezone" >&6; }
15368 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
15370 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
15374 $as_echo_n "checking types of arguments for accept()... " >&6; }
15375 if ${ac_cv_func_accept_return+:} false
; then :
15376 $as_echo_n "(cached) " >&6
15378 if ${ac_cv_func_accept_arg1+:} false
; then :
15379 $as_echo_n "(cached) " >&6
15381 if ${ac_cv_func_accept_arg2+:} false
; then :
15382 $as_echo_n "(cached) " >&6
15384 if ${ac_cv_func_accept_arg3+:} false
; then :
15385 $as_echo_n "(cached) " >&6
15387 for ac_cv_func_accept_return
in 'int' 'SOCKET WSAAPI' 'unsigned int PASCAL'; do
15388 for ac_cv_func_accept_arg1
in 'int' 'SOCKET' 'unsigned int'; do
15389 for ac_cv_func_accept_arg2
in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15390 for ac_cv_func_accept_arg3
in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15393 #include <sys/types.h>
15394 #include <sys/socket.h>
15395 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15397 if ac_fn_c_try_compile
"$LINENO"; then :
15398 ac_not_found
=no
; break 4
15402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15407 if test "$ac_not_found" = yes; then
15408 as_fn_error $?
"could not determine argument types" "$LINENO" 5
15410 if test "$ac_cv_func_accept_arg3" = "void"; then
15411 ac_cv_func_accept_arg3
=int
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
15422 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15424 cat >>confdefs.h
<<_ACEOF
15425 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15429 cat >>confdefs.h
<<_ACEOF
15430 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15434 cat >>confdefs.h
<<_ACEOF
15435 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15439 cat >>confdefs.h
<<_ACEOF
15440 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
15445 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
15446 if ${pgac_cv_func_gettimeofday_1arg+:} false
; then :
15447 $as_echo_n "(cached) " >&6
15449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15451 #include <sys/time.h>
15455 struct timeval *tp;
15456 struct timezone *tzp;
15457 gettimeofday(tp,tzp);
15462 if ac_fn_c_try_compile
"$LINENO"; then :
15463 pgac_cv_func_gettimeofday_1arg
=no
15465 pgac_cv_func_gettimeofday_1arg
=yes
15467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
15470 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
15471 if test x
"$pgac_cv_func_gettimeofday_1arg" = xyes
; then
15473 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
15478 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
15479 if ${pgac_cv_func_wcstombs_l+:} false
; then :
15480 $as_echo_n "(cached) " >&6
15482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15484 #include <stdlib.h>
15485 #include <locale.h>
15496 if ac_fn_c_try_compile
"$LINENO"; then :
15497 pgac_cv_func_wcstombs_l
='yes'
15499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15500 /* end confdefs.h. */
15501 #include <stdlib.h>
15502 #include <locale.h>
15503 #include <xlocale.h>
15514 if ac_fn_c_try_compile
"$LINENO"; then :
15515 pgac_cv_func_wcstombs_l
='yes (in xlocale.h)'
15517 pgac_cv_func_wcstombs_l
='no'
15519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
15524 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
15525 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
15527 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
15531 # Some versions of libedit contain strlcpy(), setproctitle(), and other
15532 # symbols that that library has no business exposing to the world. Pending
15533 # acquisition of a clue by those developers, ignore libedit (including its
15534 # possible alias of libreadline) while checking for everything else.
15535 LIBS_including_readline
="$LIBS"
15536 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
15538 for ac_func
in cbrt clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink sync_file_range uselocale utime utimes wcstombs_l
15540 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15541 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15542 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15543 cat >>confdefs.h
<<_ACEOF
15544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15551 # These typically are compiler builtins, for which AC_CHECK_FUNCS fails.
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
15553 $as_echo_n "checking for __builtin_bswap16... " >&6; }
15554 if ${pgac_cv__builtin_bswap16+:} false
; then :
15555 $as_echo_n "(cached) " >&6
15557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h. */
15561 call__builtin_bswap16(int x)
15563 return __builtin_bswap16(x);
15573 if ac_fn_c_try_link
"$LINENO"; then :
15574 pgac_cv__builtin_bswap16
=yes
15576 pgac_cv__builtin_bswap16
=no
15578 rm -f core conftest.err conftest.
$ac_objext \
15579 conftest
$ac_exeext conftest.
$ac_ext
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
15582 $as_echo "$pgac_cv__builtin_bswap16" >&6; }
15583 if test x
"${pgac_cv__builtin_bswap16}" = xyes
; then
15585 cat >>confdefs.h
<<_ACEOF
15586 #define HAVE__BUILTIN_BSWAP16 1
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
15591 $as_echo_n "checking for __builtin_bswap32... " >&6; }
15592 if ${pgac_cv__builtin_bswap32+:} false
; then :
15593 $as_echo_n "(cached) " >&6
15595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15596 /* end confdefs.h. */
15599 call__builtin_bswap32(int x)
15601 return __builtin_bswap32(x);
15611 if ac_fn_c_try_link
"$LINENO"; then :
15612 pgac_cv__builtin_bswap32
=yes
15614 pgac_cv__builtin_bswap32
=no
15616 rm -f core conftest.err conftest.
$ac_objext \
15617 conftest
$ac_exeext conftest.
$ac_ext
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
15620 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
15621 if test x
"${pgac_cv__builtin_bswap32}" = xyes
; then
15623 cat >>confdefs.h
<<_ACEOF
15624 #define HAVE__BUILTIN_BSWAP32 1
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
15629 $as_echo_n "checking for __builtin_bswap64... " >&6; }
15630 if ${pgac_cv__builtin_bswap64+:} false
; then :
15631 $as_echo_n "(cached) " >&6
15633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15637 call__builtin_bswap64(long int x)
15639 return __builtin_bswap64(x);
15649 if ac_fn_c_try_link
"$LINENO"; then :
15650 pgac_cv__builtin_bswap64
=yes
15652 pgac_cv__builtin_bswap64
=no
15654 rm -f core conftest.err conftest.
$ac_objext \
15655 conftest
$ac_exeext conftest.
$ac_ext
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
15658 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
15659 if test x
"${pgac_cv__builtin_bswap64}" = xyes
; then
15661 cat >>confdefs.h
<<_ACEOF
15662 #define HAVE__BUILTIN_BSWAP64 1
15666 # We assume that we needn't test all widths of these explicitly:
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
15668 $as_echo_n "checking for __builtin_clz... " >&6; }
15669 if ${pgac_cv__builtin_clz+:} false
; then :
15670 $as_echo_n "(cached) " >&6
15672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15673 /* end confdefs.h. */
15676 call__builtin_clz(unsigned int x)
15678 return __builtin_clz(x);
15688 if ac_fn_c_try_link
"$LINENO"; then :
15689 pgac_cv__builtin_clz
=yes
15691 pgac_cv__builtin_clz
=no
15693 rm -f core conftest.err conftest.
$ac_objext \
15694 conftest
$ac_exeext conftest.
$ac_ext
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_clz" >&5
15697 $as_echo "$pgac_cv__builtin_clz" >&6; }
15698 if test x
"${pgac_cv__builtin_clz}" = xyes
; then
15700 cat >>confdefs.h
<<_ACEOF
15701 #define HAVE__BUILTIN_CLZ 1
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
15706 $as_echo_n "checking for __builtin_ctz... " >&6; }
15707 if ${pgac_cv__builtin_ctz+:} false
; then :
15708 $as_echo_n "(cached) " >&6
15710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15714 call__builtin_ctz(unsigned int x)
15716 return __builtin_ctz(x);
15726 if ac_fn_c_try_link
"$LINENO"; then :
15727 pgac_cv__builtin_ctz
=yes
15729 pgac_cv__builtin_ctz
=no
15731 rm -f core conftest.err conftest.
$ac_objext \
15732 conftest
$ac_exeext conftest.
$ac_ext
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_ctz" >&5
15735 $as_echo "$pgac_cv__builtin_ctz" >&6; }
15736 if test x
"${pgac_cv__builtin_ctz}" = xyes
; then
15738 cat >>confdefs.h
<<_ACEOF
15739 #define HAVE__BUILTIN_CTZ 1
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5
15744 $as_echo_n "checking for __builtin_popcount... " >&6; }
15745 if ${pgac_cv__builtin_popcount+:} false
; then :
15746 $as_echo_n "(cached) " >&6
15748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15752 call__builtin_popcount(unsigned int x)
15754 return __builtin_popcount(x);
15764 if ac_fn_c_try_link
"$LINENO"; then :
15765 pgac_cv__builtin_popcount
=yes
15767 pgac_cv__builtin_popcount
=no
15769 rm -f core conftest.err conftest.
$ac_objext \
15770 conftest
$ac_exeext conftest.
$ac_ext
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_popcount" >&5
15773 $as_echo "$pgac_cv__builtin_popcount" >&6; }
15774 if test x
"${pgac_cv__builtin_popcount}" = xyes
; then
15776 cat >>confdefs.h
<<_ACEOF
15777 #define HAVE__BUILTIN_POPCOUNT 1
15781 # __builtin_frame_address may draw a diagnostic for non-constant argument,
15782 # so it needs a different test function.
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_frame_address" >&5
15784 $as_echo_n "checking for __builtin_frame_address... " >&6; }
15785 if ${pgac_cv__builtin_frame_address+:} false
; then :
15786 $as_echo_n "(cached) " >&6
15788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15792 call__builtin_frame_address(void)
15794 return __builtin_frame_address(0);
15804 if ac_fn_c_try_link
"$LINENO"; then :
15805 pgac_cv__builtin_frame_address
=yes
15807 pgac_cv__builtin_frame_address
=no
15809 rm -f core conftest.err conftest.
$ac_objext \
15810 conftest
$ac_exeext conftest.
$ac_ext
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_frame_address" >&5
15813 $as_echo "$pgac_cv__builtin_frame_address" >&6; }
15814 if test x
"${pgac_cv__builtin_frame_address}" = xyes
; then
15816 cat >>confdefs.h
<<_ACEOF
15817 #define HAVE__BUILTIN_FRAME_ADDRESS 1
15822 ac_fn_c_check_func
"$LINENO" "fseeko" "ac_cv_func_fseeko"
15823 if test "x$ac_cv_func_fseeko" = xyes
; then :
15824 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15827 case " $LIBOBJS " in
15828 *" fseeko.$ac_objext "* ) ;;
15829 *) LIBOBJS
="$LIBOBJS fseeko.$ac_objext"
15837 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
15838 # Mingw uses macros to access Win32 API calls
15841 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15843 ac_cv_func_fseeko
=yes;;
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15846 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15847 if ${ac_cv_sys_largefile_source+:} false
; then :
15848 $as_echo_n "(cached) " >&6
15851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15853 #include <sys/types.h> /* for off_t */
15858 int (*fp) (FILE *, off_t, int) = fseeko;
15859 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15864 if ac_fn_c_try_link
"$LINENO"; then :
15865 ac_cv_sys_largefile_source
=no
; break
15867 rm -f core conftest.err conftest.
$ac_objext \
15868 conftest
$ac_exeext conftest.
$ac_ext
15869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15871 #define _LARGEFILE_SOURCE 1
15872 #include <sys/types.h> /* for off_t */
15877 int (*fp) (FILE *, off_t, int) = fseeko;
15878 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15883 if ac_fn_c_try_link
"$LINENO"; then :
15884 ac_cv_sys_largefile_source
=1; break
15886 rm -f core conftest.err conftest.
$ac_objext \
15887 conftest
$ac_exeext conftest.
$ac_ext
15888 ac_cv_sys_largefile_source
=unknown
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15893 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15894 case $ac_cv_sys_largefile_source in #(
15897 cat >>confdefs.h
<<_ACEOF
15898 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15904 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15905 # in glibc 2.1.3, but that breaks too many other things.
15906 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15907 if test $ac_cv_sys_largefile_source != unknown
; then
15909 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15915 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
15916 # by calling it, 2009-04-02
15917 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
15918 # The Clang compiler raises a warning for an undeclared identifier that matches
15919 # a compiler builtin function. All extant Clang versions are affected, as of
15920 # Clang 3.6.0. Test a builtin known to every version. This problem affects the
15921 # C and Objective C languages, but Clang does report an error under C++ and
15924 # Passing -fno-builtin to the compiler would suppress this problem. That
15925 # strategy would have the advantage of being insensitive to stray warnings, but
15926 # it would make tests less realistic.
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
15928 $as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; }
15929 if ${ac_cv_c_decl_report+:} false
; then :
15930 $as_echo_n "(cached) " >&6
15932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h. */
15943 if ac_fn_c_try_compile
"$LINENO"; then :
15944 if test -s conftest.err
; then :
15945 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
15946 # valid AC_CHECK_DECL input. No library function is consistently available
15947 # on freestanding implementations, so test against a dummy declaration.
15948 # Include always-available headers on the off chance that they somehow
15950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15953 #include <limits.h>
15954 #include <stdarg.h>
15955 #include <stddef.h>
15956 extern void ac_decl (int, char *);
15961 (void) ac_decl ((int) 0, (char *) 0);
15971 if ac_fn_c_try_compile
"$LINENO"; then :
15972 if test -s conftest.err
; then :
15973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15975 as_fn_error $?
"cannot detect from compiler exit status or warnings
15976 See \`config.log' for more details" "$LINENO" 5; }
15978 ac_cv_c_decl_report
=warning
15981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15983 as_fn_error $?
"cannot compile a simple declaration test
15984 See \`config.log' for more details" "$LINENO" 5; }
15986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15990 as_fn_error $?
"compiler does not report undeclared identifiers
15991 See \`config.log' for more details" "$LINENO" 5; }
15994 ac_cv_c_decl_report
=error
15996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
15999 $as_echo "$ac_cv_c_decl_report" >&6; }
16001 case $ac_cv_c_decl_report in
16002 warning
) ac_c_decl_warn_flag
=yes ;;
16003 *) ac_c_decl_warn_flag
= ;;
16006 if test "$PORTNAME" != "solaris"; then :
16008 for ac_func
in posix_fadvise
16010 ac_fn_c_check_func
"$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
16011 if test "x$ac_cv_func_posix_fadvise" = xyes
; then :
16012 cat >>confdefs.h
<<_ACEOF
16013 #define HAVE_POSIX_FADVISE 1
16019 ac_fn_c_check_decl
"$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
16021 if test "x$ac_cv_have_decl_posix_fadvise" = xyes
; then :
16027 cat >>confdefs.h
<<_ACEOF
16028 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
16034 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
16036 if test "x$ac_cv_have_decl_fdatasync" = xyes
; then :
16042 cat >>confdefs.h
<<_ACEOF
16043 #define HAVE_DECL_FDATASYNC $ac_have_decl
16046 ac_fn_c_check_decl
"$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
16047 if test "x$ac_cv_have_decl_strlcat" = xyes
; then :
16053 cat >>confdefs.h
<<_ACEOF
16054 #define HAVE_DECL_STRLCAT $ac_have_decl
16056 ac_fn_c_check_decl
"$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
16057 if test "x$ac_cv_have_decl_strlcpy" = xyes
; then :
16063 cat >>confdefs.h
<<_ACEOF
16064 #define HAVE_DECL_STRLCPY $ac_have_decl
16066 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16067 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
16073 cat >>confdefs.h
<<_ACEOF
16074 #define HAVE_DECL_STRNLEN $ac_have_decl
16077 # This is probably only present on macOS, but may as well check always
16078 ac_fn_c_check_decl
"$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
16080 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes
; then :
16086 cat >>confdefs.h
<<_ACEOF
16087 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
16091 ac_fn_c_check_decl
"$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
16093 if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes
; then :
16099 cat >>confdefs.h
<<_ACEOF
16100 #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl
16102 ac_fn_c_check_decl
"$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
16104 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes
; then :
16110 cat >>confdefs.h
<<_ACEOF
16111 #define HAVE_DECL_RTLD_NOW $ac_have_decl
16115 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
16116 #include <netinet/in.h>
16118 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
16120 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
16126 $as_echo_n "checking for PS_STRINGS... " >&6; }
16127 if ${pgac_cv_var_PS_STRINGS+:} false
; then :
16128 $as_echo_n "(cached) " >&6
16130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h. */
16132 #include <machine/vmparam.h>
16133 #include <sys/exec.h>
16138 PS_STRINGS->ps_nargvstr = 1;
16139 PS_STRINGS->ps_argvstr = "foo";
16144 if ac_fn_c_try_link
"$LINENO"; then :
16145 pgac_cv_var_PS_STRINGS
=yes
16147 pgac_cv_var_PS_STRINGS
=no
16149 rm -f core conftest.err conftest.
$ac_objext \
16150 conftest
$ac_exeext conftest.
$ac_ext
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
16153 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
16154 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16156 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16162 $as_echo_n "checking for isinf... " >&6; }
16163 if ${ac_cv_func_isinf+:} false
; then :
16164 $as_echo_n "(cached) " >&6
16166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16167 /* end confdefs.h. */
16170 double glob_double;
16175 return isinf(glob_double) ? 0 : 1;
16180 if ac_fn_c_try_link
"$LINENO"; then :
16181 ac_cv_func_isinf
=yes
16183 ac_cv_func_isinf
=no
16185 rm -f core conftest.err conftest.
$ac_objext \
16186 conftest
$ac_exeext conftest.
$ac_ext
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
16189 $as_echo "$ac_cv_func_isinf" >&6; }
16191 if test $ac_cv_func_isinf = yes ; then
16193 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16196 case " $LIBOBJS " in
16197 *" isinf.$ac_objext "* ) ;;
16198 *) LIBOBJS
="$LIBOBJS isinf.$ac_objext"
16202 # Look for a way to implement a substitute for isinf()
16203 for ac_func
in fpclass fp_class fp_class_d class
16205 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16206 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16207 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16208 cat >>confdefs.h
<<_ACEOF
16209 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16217 ac_fn_c_check_func
"$LINENO" "crypt" "ac_cv_func_crypt"
16218 if test "x$ac_cv_func_crypt" = xyes
; then :
16219 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
16222 case " $LIBOBJS " in
16223 *" crypt.$ac_objext "* ) ;;
16224 *) LIBOBJS
="$LIBOBJS crypt.$ac_objext"
16230 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
16231 if test "x$ac_cv_func_dlopen" = xyes
; then :
16232 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
16235 case " $LIBOBJS " in
16236 *" dlopen.$ac_objext "* ) ;;
16237 *) LIBOBJS
="$LIBOBJS dlopen.$ac_objext"
16243 ac_fn_c_check_func
"$LINENO" "fls" "ac_cv_func_fls"
16244 if test "x$ac_cv_func_fls" = xyes
; then :
16245 $as_echo "#define HAVE_FLS 1" >>confdefs.h
16248 case " $LIBOBJS " in
16249 *" fls.$ac_objext "* ) ;;
16250 *) LIBOBJS
="$LIBOBJS fls.$ac_objext"
16256 ac_fn_c_check_func
"$LINENO" "getopt" "ac_cv_func_getopt"
16257 if test "x$ac_cv_func_getopt" = xyes
; then :
16258 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
16261 case " $LIBOBJS " in
16262 *" getopt.$ac_objext "* ) ;;
16263 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16269 ac_fn_c_check_func
"$LINENO" "getrusage" "ac_cv_func_getrusage"
16270 if test "x$ac_cv_func_getrusage" = xyes
; then :
16271 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
16274 case " $LIBOBJS " in
16275 *" getrusage.$ac_objext "* ) ;;
16276 *) LIBOBJS
="$LIBOBJS getrusage.$ac_objext"
16282 ac_fn_c_check_func
"$LINENO" "inet_aton" "ac_cv_func_inet_aton"
16283 if test "x$ac_cv_func_inet_aton" = xyes
; then :
16284 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
16287 case " $LIBOBJS " in
16288 *" inet_aton.$ac_objext "* ) ;;
16289 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
16295 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16296 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
16297 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
16300 case " $LIBOBJS " in
16301 *" mkdtemp.$ac_objext "* ) ;;
16302 *) LIBOBJS
="$LIBOBJS mkdtemp.$ac_objext"
16308 ac_fn_c_check_func
"$LINENO" "pread" "ac_cv_func_pread"
16309 if test "x$ac_cv_func_pread" = xyes
; then :
16310 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
16313 case " $LIBOBJS " in
16314 *" pread.$ac_objext "* ) ;;
16315 *) LIBOBJS
="$LIBOBJS pread.$ac_objext"
16321 ac_fn_c_check_func
"$LINENO" "pwrite" "ac_cv_func_pwrite"
16322 if test "x$ac_cv_func_pwrite" = xyes
; then :
16323 $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
16326 case " $LIBOBJS " in
16327 *" pwrite.$ac_objext "* ) ;;
16328 *) LIBOBJS
="$LIBOBJS pwrite.$ac_objext"
16334 ac_fn_c_check_func
"$LINENO" "random" "ac_cv_func_random"
16335 if test "x$ac_cv_func_random" = xyes
; then :
16336 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
16339 case " $LIBOBJS " in
16340 *" random.$ac_objext "* ) ;;
16341 *) LIBOBJS
="$LIBOBJS random.$ac_objext"
16347 ac_fn_c_check_func
"$LINENO" "rint" "ac_cv_func_rint"
16348 if test "x$ac_cv_func_rint" = xyes
; then :
16349 $as_echo "#define HAVE_RINT 1" >>confdefs.h
16352 case " $LIBOBJS " in
16353 *" rint.$ac_objext "* ) ;;
16354 *) LIBOBJS
="$LIBOBJS rint.$ac_objext"
16360 ac_fn_c_check_func
"$LINENO" "srandom" "ac_cv_func_srandom"
16361 if test "x$ac_cv_func_srandom" = xyes
; then :
16362 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
16365 case " $LIBOBJS " in
16366 *" srandom.$ac_objext "* ) ;;
16367 *) LIBOBJS
="$LIBOBJS srandom.$ac_objext"
16373 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
16374 if test "x$ac_cv_func_strlcat" = xyes
; then :
16375 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
16378 case " $LIBOBJS " in
16379 *" strlcat.$ac_objext "* ) ;;
16380 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
16386 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16387 if test "x$ac_cv_func_strlcpy" = xyes
; then :
16388 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
16391 case " $LIBOBJS " in
16392 *" strlcpy.$ac_objext "* ) ;;
16393 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
16399 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
16400 if test "x$ac_cv_func_strnlen" = xyes
; then :
16401 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16404 case " $LIBOBJS " in
16405 *" strnlen.$ac_objext "* ) ;;
16406 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
16412 ac_fn_c_check_func
"$LINENO" "strtof" "ac_cv_func_strtof"
16413 if test "x$ac_cv_func_strtof" = xyes
; then :
16414 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16417 case " $LIBOBJS " in
16418 *" strtof.$ac_objext "* ) ;;
16419 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
16428 # Cygwin and (apparently, based on test results) Mingw both
16429 # have a broken strtof(), so substitute the same replacement
16430 # code we use with VS2013. That's not a perfect fix, since
16431 # (unlike with VS2013) it doesn't avoid double-rounding, but
16432 # we have no better options. To get that, though, we have to
16433 # force the file to be compiled despite HAVE_STRTOF.
16435 case " $LIBOBJS " in
16436 *" strtof.$ac_objext "* ) ;;
16437 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: On $host_os we will use our strtof wrapper." >&5
16442 $as_echo "$as_me: On $host_os we will use our strtof wrapper." >&6;}
16448 # Windows uses a specialised env handler
16449 # and doesn't need a replacement getpeereid because it doesn't use
16453 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
16456 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
16459 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
16461 ac_cv_func_setenv
=yes
16462 ac_cv_func_unsetenv
=yes
16463 ac_cv_func_getpeereid
=yes;;
16465 ac_fn_c_check_func
"$LINENO" "setenv" "ac_cv_func_setenv"
16466 if test "x$ac_cv_func_setenv" = xyes
; then :
16467 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
16470 case " $LIBOBJS " in
16471 *" setenv.$ac_objext "* ) ;;
16472 *) LIBOBJS
="$LIBOBJS setenv.$ac_objext"
16478 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16479 if test "x$ac_cv_func_unsetenv" = xyes
; then :
16480 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
16483 case " $LIBOBJS " in
16484 *" unsetenv.$ac_objext "* ) ;;
16485 *) LIBOBJS
="$LIBOBJS unsetenv.$ac_objext"
16491 ac_fn_c_check_func
"$LINENO" "getpeereid" "ac_cv_func_getpeereid"
16492 if test "x$ac_cv_func_getpeereid" = xyes
; then :
16493 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
16496 case " $LIBOBJS " in
16497 *" getpeereid.$ac_objext "* ) ;;
16498 *) LIBOBJS
="$LIBOBJS getpeereid.$ac_objext"
16508 # System's version of getaddrinfo(), if any, may be used only if we found
16509 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16510 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
16511 if test x
"$ac_cv_type_struct_addrinfo" = xyes
&& \
16512 test "$PORTNAME" != "win32"; then
16513 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
16514 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
16515 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
16518 case " $LIBOBJS " in
16519 *" getaddrinfo.$ac_objext "* ) ;;
16520 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext"
16528 case " $LIBOBJS " in
16529 *" getaddrinfo.$ac_objext "* ) ;;
16530 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext"
16536 # Similarly, use system's getopt_long() only if system provides struct option.
16537 if test x
"$ac_cv_type_struct_option" = xyes
; then
16538 ac_fn_c_check_func
"$LINENO" "getopt_long" "ac_cv_func_getopt_long"
16539 if test "x$ac_cv_func_getopt_long" = xyes
; then :
16540 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
16543 case " $LIBOBJS " in
16544 *" getopt_long.$ac_objext "* ) ;;
16545 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16553 case " $LIBOBJS " in
16554 *" getopt_long.$ac_objext "* ) ;;
16555 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16561 # On OpenBSD and Solaris, getopt() doesn't do what we want for long options
16562 # (i.e., allow '-' as a flag character), so use our version on those platforms.
16563 if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then
16564 case " $LIBOBJS " in
16565 *" getopt.$ac_objext "* ) ;;
16566 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16572 # mingw has adopted a GNU-centric interpretation of optind/optreset,
16573 # so always use our version on Windows.
16574 if test "$PORTNAME" = "win32"; then
16575 case " $LIBOBJS " in
16576 *" getopt.$ac_objext "* ) ;;
16577 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16581 case " $LIBOBJS " in
16582 *" getopt_long.$ac_objext "* ) ;;
16583 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16589 # Win32 (really MinGW) support
16590 if test "$PORTNAME" = "win32"; then
16591 for ac_func
in _configthreadlocale
16593 ac_fn_c_check_func
"$LINENO" "_configthreadlocale" "ac_cv_func__configthreadlocale"
16594 if test "x$ac_cv_func__configthreadlocale" = xyes
; then :
16595 cat >>confdefs.h
<<_ACEOF
16596 #define HAVE__CONFIGTHREADLOCALE 1
16602 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16603 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
16604 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
16607 case " $LIBOBJS " in
16608 *" gettimeofday.$ac_objext "* ) ;;
16609 *) LIBOBJS
="$LIBOBJS gettimeofday.$ac_objext"
16616 case " $LIBOBJS " in
16617 *" dirmod.$ac_objext "* ) ;;
16618 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16622 case " $LIBOBJS " in
16623 *" kill.$ac_objext "* ) ;;
16624 *) LIBOBJS
="$LIBOBJS kill.$ac_objext"
16628 case " $LIBOBJS " in
16629 *" open.$ac_objext "* ) ;;
16630 *) LIBOBJS
="$LIBOBJS open.$ac_objext"
16634 case " $LIBOBJS " in
16635 *" system.$ac_objext "* ) ;;
16636 *) LIBOBJS
="$LIBOBJS system.$ac_objext"
16640 case " $LIBOBJS " in
16641 *" win32env.$ac_objext "* ) ;;
16642 *) LIBOBJS
="$LIBOBJS win32env.$ac_objext"
16646 case " $LIBOBJS " in
16647 *" win32error.$ac_objext "* ) ;;
16648 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext"
16652 case " $LIBOBJS " in
16653 *" win32security.$ac_objext "* ) ;;
16654 *) LIBOBJS
="$LIBOBJS win32security.$ac_objext"
16658 case " $LIBOBJS " in
16659 *" win32setlocale.$ac_objext "* ) ;;
16660 *) LIBOBJS
="$LIBOBJS win32setlocale.$ac_objext"
16665 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
16667 ac_fn_c_check_type
"$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
16668 #define WIN32_LEAN_AND_MEAN
16669 #include <windows.h>
16670 #include <string.h>
16671 #include <dbghelp.h>
16673 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes
; then :
16675 cat >>confdefs.h
<<_ACEOF
16676 #define HAVE_MINIDUMP_TYPE 1
16679 pgac_minidump_type
=yes
16681 pgac_minidump_type
=no
16685 if test x
"$pgac_minidump_type" = x
"yes" ; then
16686 have_win32_dbghelp
=yes
16689 have_win32_dbghelp
=no
16693 # Cygwin needs only a bit of that
16694 if test "$PORTNAME" = "cygwin"; then
16695 case " $LIBOBJS " in
16696 *" dirmod.$ac_objext "* ) ;;
16697 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16703 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
16704 if test "x$ac_cv_func_syslog" = xyes
; then :
16705 ac_fn_c_check_header_mongrel
"$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
16706 if test "x$ac_cv_header_syslog_h" = xyes
; then :
16708 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
16717 $as_echo_n "checking for opterr... " >&6; }
16718 if ${pgac_cv_var_int_opterr+:} false
; then :
16719 $as_echo_n "(cached) " >&6
16721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16723 #include <unistd.h>
16727 extern int opterr; opterr = 1;
16732 if ac_fn_c_try_link
"$LINENO"; then :
16733 pgac_cv_var_int_opterr
=yes
16735 pgac_cv_var_int_opterr
=no
16737 rm -f core conftest.err conftest.
$ac_objext \
16738 conftest
$ac_exeext conftest.
$ac_ext
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
16741 $as_echo "$pgac_cv_var_int_opterr" >&6; }
16742 if test x
"$pgac_cv_var_int_opterr" = x
"yes"; then
16744 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
16749 $as_echo_n "checking for optreset... " >&6; }
16750 if ${pgac_cv_var_int_optreset+:} false
; then :
16751 $as_echo_n "(cached) " >&6
16753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h. */
16755 #include <unistd.h>
16759 extern int optreset; optreset = 1;
16764 if ac_fn_c_try_link
"$LINENO"; then :
16765 pgac_cv_var_int_optreset
=yes
16767 pgac_cv_var_int_optreset
=no
16769 rm -f core conftest.err conftest.
$ac_objext \
16770 conftest
$ac_exeext conftest.
$ac_ext
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
16773 $as_echo "$pgac_cv_var_int_optreset" >&6; }
16774 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
16776 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
16780 for ac_func
in strtoll __strtoll strtoq
16782 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16783 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16784 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16785 cat >>confdefs.h
<<_ACEOF
16786 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16792 for ac_func
in strtoull __strtoull strtouq
16794 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16795 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16796 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16797 cat >>confdefs.h
<<_ACEOF
16798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16804 # strto[u]ll may exist but not be declared
16805 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
16806 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
16812 cat >>confdefs.h
<<_ACEOF
16813 #define HAVE_DECL_STRTOLL $ac_have_decl
16815 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
16816 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
16822 cat >>confdefs.h
<<_ACEOF
16823 #define HAVE_DECL_STRTOULL $ac_have_decl
16827 if test "$with_icu" = yes; then
16828 ac_save_CPPFLAGS
=$CPPFLAGS
16829 CPPFLAGS
="$ICU_CFLAGS $CPPFLAGS"
16831 # Verify we have ICU's header files
16832 ac_fn_c_check_header_mongrel
"$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
16833 if test "x$ac_cv_header_unicode_ucol_h" = xyes
; then :
16836 as_fn_error $?
"header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
16841 CPPFLAGS
=$ac_save_CPPFLAGS
16844 if test "$with_llvm" = yes; then
16846 # Check which functionality is present
16847 SAVE_CPPFLAGS
="$CPPFLAGS"
16848 CPPFLAGS
="$CPPFLAGS $LLVM_CPPFLAGS"
16849 ac_fn_c_check_decl
"$LINENO" "LLVMOrcGetSymbolAddressIn" "ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" "#include <llvm-c/OrcBindings.h>
16851 if test "x$ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" = xyes
; then :
16857 cat >>confdefs.h
<<_ACEOF
16858 #define HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN $ac_have_decl
16861 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUName" "ac_cv_have_decl_LLVMGetHostCPUName" "#include <llvm-c/TargetMachine.h>
16863 if test "x$ac_cv_have_decl_LLVMGetHostCPUName" = xyes
; then :
16869 cat >>confdefs.h
<<_ACEOF
16870 #define HAVE_DECL_LLVMGETHOSTCPUNAME $ac_have_decl
16872 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUFeatures" "ac_cv_have_decl_LLVMGetHostCPUFeatures" "#include <llvm-c/TargetMachine.h>
16874 if test "x$ac_cv_have_decl_LLVMGetHostCPUFeatures" = xyes
; then :
16880 cat >>confdefs.h
<<_ACEOF
16881 #define HAVE_DECL_LLVMGETHOSTCPUFEATURES $ac_have_decl
16884 ac_fn_c_check_decl
"$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h>
16886 if test "x$ac_cv_have_decl_LLVMCreateGDBRegistrationListener" = xyes
; then :
16892 cat >>confdefs.h
<<_ACEOF
16893 #define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER $ac_have_decl
16895 ac_fn_c_check_decl
"$LINENO" "LLVMCreatePerfJITEventListener" "ac_cv_have_decl_LLVMCreatePerfJITEventListener" "#include <llvm-c/ExecutionEngine.h>
16897 if test "x$ac_cv_have_decl_LLVMCreatePerfJITEventListener" = xyes
; then :
16903 cat >>confdefs.h
<<_ACEOF
16904 #define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER $ac_have_decl
16907 CPPFLAGS
="$SAVE_CPPFLAGS"
16911 # Lastly, restore full LIBS list and check for readline/libedit symbols
16912 LIBS
="$LIBS_including_readline"
16914 if test "$with_readline" = yes; then
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
16916 $as_echo_n "checking for rl_completion_append_character... " >&6; }
16917 if ${pgac_cv_var_rl_completion_append_character+:} false
; then :
16918 $as_echo_n "(cached) " >&6
16920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16921 /* end confdefs.h. */
16923 #ifdef HAVE_READLINE_READLINE_H
16924 # include <readline/readline.h>
16925 #elif defined(HAVE_READLINE_H)
16926 # include <readline.h>
16932 rl_completion_append_character = 'x';
16937 if ac_fn_c_try_link
"$LINENO"; then :
16938 pgac_cv_var_rl_completion_append_character
=yes
16940 pgac_cv_var_rl_completion_append_character
=no
16942 rm -f core conftest.err conftest.
$ac_objext \
16943 conftest
$ac_exeext conftest.
$ac_ext
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
16946 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
16947 if test x
"$pgac_cv_var_rl_completion_append_character" = x
"yes"; then
16949 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
16952 for ac_func
in rl_completion_matches rl_filename_completion_function rl_reset_screen_size
16954 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16955 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16956 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16957 cat >>confdefs.h
<<_ACEOF
16958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16964 for ac_func
in append_history history_truncate_file
16966 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16967 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16968 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16969 cat >>confdefs.h
<<_ACEOF
16970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16979 # This test makes sure that run tests work at all. Sometimes a shared
16980 # library is found by the linker, but the runtime linker can't find it.
16981 # This check should come after all modifications of compiler or linker
16982 # variables, and before any other run tests.
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
16984 $as_echo_n "checking test program... " >&6; }
16985 if test "$cross_compiling" = yes; then :
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
16987 $as_echo "cross-compiling" >&6; }
16989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16990 /* end confdefs.h. */
16991 int main() { return 0; }
16993 if ac_fn_c_try_run
"$LINENO"; then :
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16995 $as_echo "ok" >&6; }
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16998 $as_echo "failed" >&6; }
17000 Could not execute a simple test program. This may be a problem
17001 related to locating shared libraries. Check the file 'config.log'
17002 for the exact reason." "$LINENO" 5
17004 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17005 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17009 # --------------------
17010 # Run tests below here
17011 # --------------------
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
17015 $as_echo_n "checking whether long int is 64 bits... " >&6; }
17016 if ${pgac_cv_type_long_int_64+:} false
; then :
17017 $as_echo_n "(cached) " >&6
17019 if test "$cross_compiling" = yes; then :
17020 # If cross-compiling, check the size reported by the compiler and
17021 # trust that the arithmetic works.
17022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17023 /* end confdefs.h. */
17028 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
17029 test_array [0] = 0;
17030 return test_array [0];
17036 if ac_fn_c_try_compile
"$LINENO"; then :
17037 pgac_cv_type_long_int_64
=yes
17039 pgac_cv_type_long_int_64
=no
17041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17044 /* end confdefs.h. */
17045 typedef long int ac_int64;
17048 * These are globals to discourage the compiler from folding all the
17049 * arithmetic tests down to compile-time constants.
17051 ac_int64 a = 20000001;
17052 ac_int64 b = 40000005;
17054 int does_int64_work()
17058 if (sizeof(ac_int64) != 8)
17059 return 0; /* definitely not the right size */
17061 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17071 return (! does_int64_work());
17074 if ac_fn_c_try_run
"$LINENO"; then :
17075 pgac_cv_type_long_int_64
=yes
17077 pgac_cv_type_long_int_64
=no
17079 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17080 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
17085 $as_echo "$pgac_cv_type_long_int_64" >&6; }
17087 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
17088 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
17090 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
17095 if test x
"$HAVE_LONG_INT_64" = x
"yes" ; then
17096 pg_int64_type
="long int"
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
17099 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
17100 if ${pgac_cv_type_long_long_int_64+:} false
; then :
17101 $as_echo_n "(cached) " >&6
17103 if test "$cross_compiling" = yes; then :
17104 # If cross-compiling, check the size reported by the compiler and
17105 # trust that the arithmetic works.
17106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17107 /* end confdefs.h. */
17112 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
17113 test_array [0] = 0;
17114 return test_array [0];
17120 if ac_fn_c_try_compile
"$LINENO"; then :
17121 pgac_cv_type_long_long_int_64
=yes
17123 pgac_cv_type_long_long_int_64
=no
17125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17129 typedef long long int ac_int64;
17132 * These are globals to discourage the compiler from folding all the
17133 * arithmetic tests down to compile-time constants.
17135 ac_int64 a = 20000001;
17136 ac_int64 b = 40000005;
17138 int does_int64_work()
17142 if (sizeof(ac_int64) != 8)
17143 return 0; /* definitely not the right size */
17145 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17155 return (! does_int64_work());
17158 if ac_fn_c_try_run
"$LINENO"; then :
17159 pgac_cv_type_long_long_int_64
=yes
17161 pgac_cv_type_long_long_int_64
=no
17163 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17164 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
17169 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
17171 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
17172 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
17174 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
17178 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
17179 pg_int64_type
="long long int"
17181 as_fn_error $?
"Cannot find a working 64-bit integer type." "$LINENO" 5
17186 cat >>confdefs.h
<<_ACEOF
17187 #define PG_INT64_TYPE $pg_int64_type
17191 # Select the printf length modifier that goes with that, too.
17192 if test x
"$pg_int64_type" = x
"long long int" ; then
17193 INT64_MODIFIER
='"ll"'
17195 INT64_MODIFIER
='"l"'
17199 cat >>confdefs.h
<<_ACEOF
17200 #define INT64_MODIFIER $INT64_MODIFIER
17204 # has to be down here, rather than with the other builtins, because
17205 # the test uses PG_INT64_TYPE.
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
17207 $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
17208 if ${pgac_cv__builtin_op_overflow+:} false
; then :
17209 $as_echo_n "(cached) " >&6
17211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17212 /* end confdefs.h. */
17214 PG_INT64_TYPE a = 1;
17215 PG_INT64_TYPE b = 1;
17216 PG_INT64_TYPE result;
17222 oflo = __builtin_mul_overflow(a, b, &result);
17227 if ac_fn_c_try_link
"$LINENO"; then :
17228 pgac_cv__builtin_op_overflow
=yes
17230 pgac_cv__builtin_op_overflow
=no
17232 rm -f core conftest.err conftest.
$ac_objext \
17233 conftest
$ac_exeext conftest.
$ac_ext
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
17236 $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
17237 if test x
"$pgac_cv__builtin_op_overflow" = xyes
; then
17239 $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
17243 # Check size of void *, size_t (enables tweaks for > 32bit address space)
17244 # The cast to long int works around a bug in the HP C Compiler
17245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17247 # This bug is HP SR number 8606223364.
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17249 $as_echo_n "checking size of void *... " >&6; }
17250 if ${ac_cv_sizeof_void_p+:} false
; then :
17251 $as_echo_n "(cached) " >&6
17253 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17256 if test "$ac_cv_type_void_p" = yes; then
17257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17259 as_fn_error
77 "cannot compute sizeof (void *)
17260 See \`config.log' for more details" "$LINENO" 5; }
17262 ac_cv_sizeof_void_p
=0
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17268 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17272 cat >>confdefs.h
<<_ACEOF
17273 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17277 # The cast to long int works around a bug in the HP C Compiler
17278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17280 # This bug is HP SR number 8606223364.
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17282 $as_echo_n "checking size of size_t... " >&6; }
17283 if ${ac_cv_sizeof_size_t+:} false
; then :
17284 $as_echo_n "(cached) " >&6
17286 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
17289 if test "$ac_cv_type_size_t" = yes; then
17290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17292 as_fn_error
77 "cannot compute sizeof (size_t)
17293 See \`config.log' for more details" "$LINENO" 5; }
17295 ac_cv_sizeof_size_t
=0
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17301 $as_echo "$ac_cv_sizeof_size_t" >&6; }
17305 cat >>confdefs.h
<<_ACEOF
17306 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17310 # The cast to long int works around a bug in the HP C Compiler
17311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17313 # This bug is HP SR number 8606223364.
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17315 $as_echo_n "checking size of long... " >&6; }
17316 if ${ac_cv_sizeof_long+:} false
; then :
17317 $as_echo_n "(cached) " >&6
17319 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
17322 if test "$ac_cv_type_long" = yes; then
17323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17325 as_fn_error
77 "cannot compute sizeof (long)
17326 See \`config.log' for more details" "$LINENO" 5; }
17328 ac_cv_sizeof_long
=0
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17334 $as_echo "$ac_cv_sizeof_long" >&6; }
17338 cat >>confdefs.h
<<_ACEOF
17339 #define SIZEOF_LONG $ac_cv_sizeof_long
17344 # Decide whether float4 is passed by value: user-selectable, enabled by default
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
17346 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
17349 # Check whether --enable-float4-byval was given.
17350 if test "${enable_float4_byval+set}" = set; then :
17351 enableval
=$enable_float4_byval;
17355 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
17357 float4passbyval
=true
17360 float4passbyval
=false
17363 as_fn_error $?
"no argument expected for --enable-float4-byval option" "$LINENO" 5
17368 enable_float4_byval
=yes
17370 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
17372 float4passbyval
=true
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
17377 $as_echo "$enable_float4_byval" >&6; }
17379 cat >>confdefs.h
<<_ACEOF
17380 #define FLOAT4PASSBYVAL $float4passbyval
17384 # Decide whether float8 is passed by value.
17385 # Note: this setting also controls int8 and related types such as timestamp.
17386 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
17387 # If not, trying to select it is an error.
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
17389 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
17390 if test $ac_cv_sizeof_void_p -ge 8 ; then
17393 # Check whether --enable-float8-byval was given.
17394 if test "${enable_float8_byval+set}" = set; then :
17395 enableval
=$enable_float8_byval;
17404 as_fn_error $?
"no argument expected for --enable-float8-byval option" "$LINENO" 5
17409 enable_float8_byval
=yes
17417 # Check whether --enable-float8-byval was given.
17418 if test "${enable_float8_byval+set}" = set; then :
17419 enableval
=$enable_float8_byval;
17428 as_fn_error $?
"no argument expected for --enable-float8-byval option" "$LINENO" 5
17433 enable_float8_byval
=no
17438 if test "$enable_float8_byval" = yes ; then
17439 as_fn_error $?
"--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
17442 if test "$enable_float8_byval" = yes ; then
17444 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
17446 float8passbyval
=true
17448 float8passbyval
=false
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
17451 $as_echo "$enable_float8_byval" >&6; }
17453 cat >>confdefs.h
<<_ACEOF
17454 #define FLOAT8PASSBYVAL $float8passbyval
17458 # Determine memory alignment requirements for the basic C data types.
17460 # The cast to long int works around a bug in the HP C Compiler,
17461 # see AC_CHECK_SIZEOF for more information.
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
17463 $as_echo_n "checking alignment of short... " >&6; }
17464 if ${ac_cv_alignof_short+:} false
; then :
17465 $as_echo_n "(cached) " >&6
17467 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
17469 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17471 typedef struct { char x; short y; } ac__type_alignof_;"; then :
17474 if test "$ac_cv_type_short" = yes; then
17475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17477 as_fn_error
77 "cannot compute alignment of short
17478 See \`config.log' for more details" "$LINENO" 5; }
17480 ac_cv_alignof_short
=0
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
17486 $as_echo "$ac_cv_alignof_short" >&6; }
17490 cat >>confdefs.h
<<_ACEOF
17491 #define ALIGNOF_SHORT $ac_cv_alignof_short
17495 # The cast to long int works around a bug in the HP C Compiler,
17496 # see AC_CHECK_SIZEOF for more information.
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
17498 $as_echo_n "checking alignment of int... " >&6; }
17499 if ${ac_cv_alignof_int+:} false
; then :
17500 $as_echo_n "(cached) " >&6
17502 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
17504 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17506 typedef struct { char x; int y; } ac__type_alignof_;"; then :
17509 if test "$ac_cv_type_int" = yes; then
17510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17512 as_fn_error
77 "cannot compute alignment of int
17513 See \`config.log' for more details" "$LINENO" 5; }
17515 ac_cv_alignof_int
=0
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
17521 $as_echo "$ac_cv_alignof_int" >&6; }
17525 cat >>confdefs.h
<<_ACEOF
17526 #define ALIGNOF_INT $ac_cv_alignof_int
17530 # The cast to long int works around a bug in the HP C Compiler,
17531 # see AC_CHECK_SIZEOF for more information.
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
17533 $as_echo_n "checking alignment of long... " >&6; }
17534 if ${ac_cv_alignof_long+:} false
; then :
17535 $as_echo_n "(cached) " >&6
17537 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
17539 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17541 typedef struct { char x; long y; } ac__type_alignof_;"; then :
17544 if test "$ac_cv_type_long" = yes; then
17545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17547 as_fn_error
77 "cannot compute alignment of long
17548 See \`config.log' for more details" "$LINENO" 5; }
17550 ac_cv_alignof_long
=0
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
17556 $as_echo "$ac_cv_alignof_long" >&6; }
17560 cat >>confdefs.h
<<_ACEOF
17561 #define ALIGNOF_LONG $ac_cv_alignof_long
17565 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
17566 # The cast to long int works around a bug in the HP C Compiler,
17567 # see AC_CHECK_SIZEOF for more information.
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
17569 $as_echo_n "checking alignment of long long int... " >&6; }
17570 if ${ac_cv_alignof_long_long_int+:} false
; then :
17571 $as_echo_n "(cached) " >&6
17573 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
17575 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17577 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
17580 if test "$ac_cv_type_long_long_int" = yes; then
17581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17583 as_fn_error
77 "cannot compute alignment of long long int
17584 See \`config.log' for more details" "$LINENO" 5; }
17586 ac_cv_alignof_long_long_int
=0
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
17592 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
17596 cat >>confdefs.h
<<_ACEOF
17597 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
17602 # The cast to long int works around a bug in the HP C Compiler,
17603 # see AC_CHECK_SIZEOF for more information.
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
17605 $as_echo_n "checking alignment of double... " >&6; }
17606 if ${ac_cv_alignof_double+:} false
; then :
17607 $as_echo_n "(cached) " >&6
17609 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
17611 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17613 typedef struct { char x; double y; } ac__type_alignof_;"; then :
17616 if test "$ac_cv_type_double" = yes; then
17617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17619 as_fn_error
77 "cannot compute alignment of double
17620 See \`config.log' for more details" "$LINENO" 5; }
17622 ac_cv_alignof_double
=0
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
17628 $as_echo "$ac_cv_alignof_double" >&6; }
17632 cat >>confdefs.h
<<_ACEOF
17633 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
17638 # Compute maximum alignment of any basic type.
17639 # We assume long's alignment is at least as strong as char, short, or int;
17640 # but we must check long long (if it is being used for int64) and double.
17641 # Note that we intentionally do not consider any types wider than 64 bits,
17642 # as allowing MAXIMUM_ALIGNOF to exceed 8 would be too much of a penalty
17643 # for disk and memory space.
17645 MAX_ALIGNOF
=$ac_cv_alignof_long
17646 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
17647 MAX_ALIGNOF
=$ac_cv_alignof_double
17649 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
&& test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
17650 MAX_ALIGNOF
="$ac_cv_alignof_long_long_int"
17653 cat >>confdefs.h
<<_ACEOF
17654 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
17659 # Some platforms predefine the types int8, int16, etc. Only check
17660 # a (hopefully) representative subset.
17661 ac_fn_c_check_type
"$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
17663 if test "x$ac_cv_type_int8" = xyes
; then :
17665 cat >>confdefs.h
<<_ACEOF
17666 #define HAVE_INT8 1
17671 ac_fn_c_check_type
"$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
17673 if test "x$ac_cv_type_uint8" = xyes
; then :
17675 cat >>confdefs.h
<<_ACEOF
17676 #define HAVE_UINT8 1
17681 ac_fn_c_check_type
"$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
17683 if test "x$ac_cv_type_int64" = xyes
; then :
17685 cat >>confdefs.h
<<_ACEOF
17686 #define HAVE_INT64 1
17691 ac_fn_c_check_type
"$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
17693 if test "x$ac_cv_type_uint64" = xyes
; then :
17695 cat >>confdefs.h
<<_ACEOF
17696 #define HAVE_UINT64 1
17703 # Some compilers offer a 128-bit integer scalar type.
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
17705 $as_echo_n "checking for __int128... " >&6; }
17706 if ${pgac_cv__128bit_int+:} false
; then :
17707 $as_echo_n "(cached) " >&6
17709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17710 /* end confdefs.h. */
17713 * We don't actually run this test, just link it to verify that any support
17714 * functions needed for __int128 are present.
17716 * These are globals to discourage the compiler from folding all the
17717 * arithmetic tests down to compile-time constants. We do not have
17718 * convenient support for 128bit literals at this point...
17720 __int128 a = 48828125;
17721 __int128 b = 97656250;
17728 a = (a << 12) + 1; /* 200000000001 */
17729 b = (b << 12) + 5; /* 400000000005 */
17730 /* try the most relevant arithmetic ops */
17733 /* must use the results, else compiler may optimize arithmetic away */
17741 if ac_fn_c_try_link
"$LINENO"; then :
17742 pgac_cv__128bit_int
=yes
17744 pgac_cv__128bit_int
=no
17746 rm -f core conftest.err conftest.
$ac_objext \
17747 conftest
$ac_exeext conftest.
$ac_ext
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
17750 $as_echo "$pgac_cv__128bit_int" >&6; }
17751 if test x
"$pgac_cv__128bit_int" = xyes
; then
17752 # Use of non-default alignment with __int128 tickles bugs in some compilers.
17753 # If not cross-compiling, we can test for bugs and disable use of __int128
17754 # with buggy compilers. If cross-compiling, hope for the best.
17755 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5
17757 $as_echo_n "checking for __int128 alignment bug... " >&6; }
17758 if ${pgac_cv__128bit_int_bug+:} false
; then :
17759 $as_echo_n "(cached) " >&6
17761 if test "$cross_compiling" = yes; then :
17762 pgac_cv__128bit_int_bug
="assuming ok"
17764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17765 /* end confdefs.h. */
17767 /* This must match the corresponding code in c.h: */
17768 #if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__IBMC__)
17769 #define pg_attribute_aligned(a) __attribute__((aligned(a)))
17771 typedef __int128 int128a
17772 #if defined(pg_attribute_aligned)
17773 pg_attribute_aligned(8)
17777 void pass_by_val(void *buffer, int128a par) { holder = par; }
17783 long int i64 = 97656225L << 12;
17785 pass_by_val(main, (int128a) i64);
17794 if ac_fn_c_try_run
"$LINENO"; then :
17795 pgac_cv__128bit_int_bug
=ok
17797 pgac_cv__128bit_int_bug
=broken
17799 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17800 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5
17805 $as_echo "$pgac_cv__128bit_int_bug" >&6; }
17806 if test x
"$pgac_cv__128bit_int_bug" != xbroken
; then
17808 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
17810 # The cast to long int works around a bug in the HP C Compiler,
17811 # see AC_CHECK_SIZEOF for more information.
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
17813 $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
17814 if ${ac_cv_alignof_PG_INT128_TYPE+:} false
; then :
17815 $as_echo_n "(cached) " >&6
17817 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
17819 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17821 typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
17824 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
17825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17827 as_fn_error
77 "cannot compute alignment of PG_INT128_TYPE
17828 See \`config.log' for more details" "$LINENO" 5; }
17830 ac_cv_alignof_PG_INT128_TYPE
=0
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
17836 $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
17840 cat >>confdefs.h
<<_ACEOF
17841 #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
17848 # Check for various atomic operations now that we have checked how to declare
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
17851 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
17852 if ${pgac_cv_gcc_sync_char_tas+:} false
; then :
17853 $as_echo_n "(cached) " >&6
17855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17856 /* end confdefs.h. */
17862 __sync_lock_test_and_set(&lock, 1);
17863 __sync_lock_release(&lock);
17868 if ac_fn_c_try_link
"$LINENO"; then :
17869 pgac_cv_gcc_sync_char_tas
="yes"
17871 pgac_cv_gcc_sync_char_tas
="no"
17873 rm -f core conftest.err conftest.
$ac_objext \
17874 conftest
$ac_exeext conftest.
$ac_ext
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
17877 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
17878 if test x
"$pgac_cv_gcc_sync_char_tas" = x
"yes"; then
17880 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
17884 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
17885 if ${pgac_cv_gcc_sync_int32_tas+:} false
; then :
17886 $as_echo_n "(cached) " >&6
17888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17889 /* end confdefs.h. */
17895 __sync_lock_test_and_set(&lock, 1);
17896 __sync_lock_release(&lock);
17901 if ac_fn_c_try_link
"$LINENO"; then :
17902 pgac_cv_gcc_sync_int32_tas
="yes"
17904 pgac_cv_gcc_sync_int32_tas
="no"
17906 rm -f core conftest.err conftest.
$ac_objext \
17907 conftest
$ac_exeext conftest.
$ac_ext
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
17910 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
17911 if test x
"$pgac_cv_gcc_sync_int32_tas" = x
"yes"; then
17913 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
17917 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
17918 if ${pgac_cv_gcc_sync_int32_cas+:} false
; then :
17919 $as_echo_n "(cached) " >&6
17921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17922 /* end confdefs.h. */
17928 __sync_val_compare_and_swap(&val, 0, 37);
17933 if ac_fn_c_try_link
"$LINENO"; then :
17934 pgac_cv_gcc_sync_int32_cas
="yes"
17936 pgac_cv_gcc_sync_int32_cas
="no"
17938 rm -f core conftest.err conftest.
$ac_objext \
17939 conftest
$ac_exeext conftest.
$ac_ext
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
17942 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
17943 if test x
"$pgac_cv_gcc_sync_int32_cas" = x
"yes"; then
17945 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
17949 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
17950 if ${pgac_cv_gcc_sync_int64_cas+:} false
; then :
17951 $as_echo_n "(cached) " >&6
17953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17954 /* end confdefs.h. */
17959 PG_INT64_TYPE lock = 0;
17960 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
17965 if ac_fn_c_try_link
"$LINENO"; then :
17966 pgac_cv_gcc_sync_int64_cas
="yes"
17968 pgac_cv_gcc_sync_int64_cas
="no"
17970 rm -f core conftest.err conftest.
$ac_objext \
17971 conftest
$ac_exeext conftest.
$ac_ext
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
17974 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
17975 if test x
"$pgac_cv_gcc_sync_int64_cas" = x
"yes"; then
17977 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
17981 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
17982 if ${pgac_cv_gcc_atomic_int32_cas+:} false
; then :
17983 $as_echo_n "(cached) " >&6
17985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17986 /* end confdefs.h. */
17993 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17998 if ac_fn_c_try_link
"$LINENO"; then :
17999 pgac_cv_gcc_atomic_int32_cas
="yes"
18001 pgac_cv_gcc_atomic_int32_cas
="no"
18003 rm -f core conftest.err conftest.
$ac_objext \
18004 conftest
$ac_exeext conftest.
$ac_ext
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
18007 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
18008 if test x
"$pgac_cv_gcc_atomic_int32_cas" = x
"yes"; then
18010 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
18014 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
18015 if ${pgac_cv_gcc_atomic_int64_cas+:} false
; then :
18016 $as_echo_n "(cached) " >&6
18018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18024 PG_INT64_TYPE val = 0;
18025 PG_INT64_TYPE expect = 0;
18026 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
18031 if ac_fn_c_try_link
"$LINENO"; then :
18032 pgac_cv_gcc_atomic_int64_cas
="yes"
18034 pgac_cv_gcc_atomic_int64_cas
="no"
18036 rm -f core conftest.err conftest.
$ac_objext \
18037 conftest
$ac_exeext conftest.
$ac_ext
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
18040 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
18041 if test x
"$pgac_cv_gcc_atomic_int64_cas" = x
"yes"; then
18043 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
18048 # Check for x86 cpuid instruction
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
18050 $as_echo_n "checking for __get_cpuid... " >&6; }
18051 if ${pgac_cv__get_cpuid+:} false
; then :
18052 $as_echo_n "(cached) " >&6
18054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18060 unsigned int exx[4] = {0, 0, 0, 0};
18061 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
18067 if ac_fn_c_try_link
"$LINENO"; then :
18068 pgac_cv__get_cpuid
="yes"
18070 pgac_cv__get_cpuid
="no"
18072 rm -f core conftest.err conftest.
$ac_objext \
18073 conftest
$ac_exeext conftest.
$ac_ext
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
18076 $as_echo "$pgac_cv__get_cpuid" >&6; }
18077 if test x
"$pgac_cv__get_cpuid" = x
"yes"; then
18079 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
18084 $as_echo_n "checking for __cpuid... " >&6; }
18085 if ${pgac_cv__cpuid+:} false
; then :
18086 $as_echo_n "(cached) " >&6
18088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18089 /* end confdefs.h. */
18090 #include <intrin.h>
18094 unsigned int exx[4] = {0, 0, 0, 0};
18095 __get_cpuid(exx[0], 1);
18101 if ac_fn_c_try_link
"$LINENO"; then :
18102 pgac_cv__cpuid
="yes"
18104 pgac_cv__cpuid
="no"
18106 rm -f core conftest.err conftest.
$ac_objext \
18107 conftest
$ac_exeext conftest.
$ac_ext
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
18110 $as_echo "$pgac_cv__cpuid" >&6; }
18111 if test x
"$pgac_cv__cpuid" = x
"yes"; then
18113 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
18117 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
18119 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
18120 # with the default compiler flags. If not, check if adding the -msse4.2
18121 # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
18123 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
18124 if ${pgac_cv_sse42_crc32_intrinsics_+:} false
; then :
18125 $as_echo_n "(cached) " >&6
18127 pgac_save_CFLAGS
=$CFLAGS
18128 CFLAGS
="$pgac_save_CFLAGS "
18129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h. */
18131 #include <nmmintrin.h>
18135 unsigned int crc = 0;
18136 crc = _mm_crc32_u8(crc, 0);
18137 crc = _mm_crc32_u32(crc, 0);
18138 /* return computed value, to prevent the above being optimized away */
18144 if ac_fn_c_try_link
"$LINENO"; then :
18145 pgac_cv_sse42_crc32_intrinsics_
=yes
18147 pgac_cv_sse42_crc32_intrinsics_
=no
18149 rm -f core conftest.err conftest.
$ac_objext \
18150 conftest
$ac_exeext conftest.
$ac_ext
18151 CFLAGS
="$pgac_save_CFLAGS"
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
18154 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
18155 if test x
"$pgac_cv_sse42_crc32_intrinsics_" = x
"yes"; then
18157 pgac_sse42_crc32_intrinsics
=yes
18160 if test x
"$pgac_sse42_crc32_intrinsics" != x
"yes"; then
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
18162 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
18163 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false
; then :
18164 $as_echo_n "(cached) " >&6
18166 pgac_save_CFLAGS
=$CFLAGS
18167 CFLAGS
="$pgac_save_CFLAGS -msse4.2"
18168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18169 /* end confdefs.h. */
18170 #include <nmmintrin.h>
18174 unsigned int crc = 0;
18175 crc = _mm_crc32_u8(crc, 0);
18176 crc = _mm_crc32_u32(crc, 0);
18177 /* return computed value, to prevent the above being optimized away */
18183 if ac_fn_c_try_link
"$LINENO"; then :
18184 pgac_cv_sse42_crc32_intrinsics__msse4_2
=yes
18186 pgac_cv_sse42_crc32_intrinsics__msse4_2
=no
18188 rm -f core conftest.err conftest.
$ac_objext \
18189 conftest
$ac_exeext conftest.
$ac_ext
18190 CFLAGS
="$pgac_save_CFLAGS"
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
18193 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
18194 if test x
"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x
"yes"; then
18195 CFLAGS_SSE42
="-msse4.2"
18196 pgac_sse42_crc32_intrinsics
=yes
18202 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
18203 # define __SSE4_2__ in that case.
18204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18205 /* end confdefs.h. */
18212 #error __SSE4_2__ not defined
18219 if ac_fn_c_try_compile
"$LINENO"; then :
18222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18224 # Check for ARMv8 CRC Extension intrinsics to do CRC calculations.
18226 # First check if __crc32c* intrinsics can be used with the default compiler
18227 # flags. If not, check if adding -march=armv8-a+crc flag helps.
18228 # CFLAGS_ARMV8_CRC32C is set if the extra flag is required.
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5
18230 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; }
18231 if ${pgac_cv_armv8_crc32c_intrinsics_+:} false
; then :
18232 $as_echo_n "(cached) " >&6
18234 pgac_save_CFLAGS
=$CFLAGS
18235 CFLAGS
="$pgac_save_CFLAGS "
18236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18237 /* end confdefs.h. */
18238 #include <arm_acle.h>
18242 unsigned int crc = 0;
18243 crc = __crc32cb(crc, 0);
18244 crc = __crc32ch(crc, 0);
18245 crc = __crc32cw(crc, 0);
18246 crc = __crc32cd(crc, 0);
18247 /* return computed value, to prevent the above being optimized away */
18253 if ac_fn_c_try_link
"$LINENO"; then :
18254 pgac_cv_armv8_crc32c_intrinsics_
=yes
18256 pgac_cv_armv8_crc32c_intrinsics_
=no
18258 rm -f core conftest.err conftest.
$ac_objext \
18259 conftest
$ac_exeext conftest.
$ac_ext
18260 CFLAGS
="$pgac_save_CFLAGS"
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5
18263 $as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; }
18264 if test x
"$pgac_cv_armv8_crc32c_intrinsics_" = x
"yes"; then
18265 CFLAGS_ARMV8_CRC32C
=""
18266 pgac_armv8_crc32c_intrinsics
=yes
18269 if test x
"$pgac_armv8_crc32c_intrinsics" != x
"yes"; then
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5
18271 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; }
18272 if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false
; then :
18273 $as_echo_n "(cached) " >&6
18275 pgac_save_CFLAGS
=$CFLAGS
18276 CFLAGS
="$pgac_save_CFLAGS -march=armv8-a+crc"
18277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18278 /* end confdefs.h. */
18279 #include <arm_acle.h>
18283 unsigned int crc = 0;
18284 crc = __crc32cb(crc, 0);
18285 crc = __crc32ch(crc, 0);
18286 crc = __crc32cw(crc, 0);
18287 crc = __crc32cd(crc, 0);
18288 /* return computed value, to prevent the above being optimized away */
18294 if ac_fn_c_try_link
"$LINENO"; then :
18295 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=yes
18297 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=no
18299 rm -f core conftest.err conftest.
$ac_objext \
18300 conftest
$ac_exeext conftest.
$ac_ext
18301 CFLAGS
="$pgac_save_CFLAGS"
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5
18304 $as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; }
18305 if test x
"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x
"yes"; then
18306 CFLAGS_ARMV8_CRC32C
="-march=armv8-a+crc"
18307 pgac_armv8_crc32c_intrinsics
=yes
18313 # Select CRC-32C implementation.
18315 # If we are targeting a processor that has Intel SSE 4.2 instructions, we can
18316 # use the special CRC instructions for calculating CRC-32C. If we're not
18317 # targeting such a processor, but we can nevertheless produce code that uses
18318 # the SSE intrinsics, perhaps with some extra CFLAGS, compile both
18319 # implementations and select which one to use at runtime, depending on whether
18320 # SSE 4.2 is supported by the processor we're running on.
18322 # Similarly, if we are targeting an ARM processor that has the CRC
18323 # instructions that are part of the ARMv8 CRC Extension, use them. And if
18324 # we're not targeting such a processor, but can nevertheless produce code that
18325 # uses the CRC instructions, compile both, and select at runtime.
18327 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
18328 # in the template or configure command line.
18329 if test x
"$USE_SLICING_BY_8_CRC32C" = x
"" && test x
"$USE_SSE42_CRC32C" = x
"" && test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"" && test x
"$USE_ARMV8_CRC32C" = x
"" && test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
""; then
18330 # Use Intel SSE 4.2 if available.
18331 if test x
"$pgac_sse42_crc32_intrinsics" = x
"yes" && test x
"$SSE4_2_TARGETED" = x
"1" ; then
18334 # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for
18335 # the runtime check.
18336 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
18337 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK
=1
18339 # Use ARM CRC Extension if available.
18340 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes" && test x
"$CFLAGS_ARMV8_CRC32C" = x
""; then
18343 # ARM CRC Extension, with runtime check?
18344 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes"; then
18345 USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK
=1
18347 # fall back to slicing-by-8 algorithm, which doesn't require any
18348 # special CPU support.
18349 USE_SLICING_BY_8_CRC32C
=1
18356 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
18358 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
18359 if test x
"$USE_SSE42_CRC32C" = x
"1"; then
18361 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
18363 PG_CRC32C_OBJS
="pg_crc32c_sse42.o"
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
18365 $as_echo "SSE 4.2" >&6; }
18367 if test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
18369 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
18371 PG_CRC32C_OBJS
="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o"
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
18373 $as_echo "SSE 4.2 with runtime check" >&6; }
18375 if test x
"$USE_ARMV8_CRC32C" = x
"1"; then
18377 $as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h
18379 PG_CRC32C_OBJS
="pg_crc32c_armv8.o"
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5
18381 $as_echo "ARMv8 CRC instructions" >&6; }
18383 if test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
18385 $as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
18387 PG_CRC32C_OBJS
="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o"
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5
18389 $as_echo "ARMv8 CRC instructions with runtime check" >&6; }
18392 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
18394 PG_CRC32C_OBJS
="pg_crc32c_sb8.o"
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
18396 $as_echo "slicing-by-8" >&6; }
18404 # Select semaphore implementation type.
18405 if test "$PORTNAME" != "win32"; then
18406 if test x
"$PREFERRED_SEMAPHORES" = x
"NAMED_POSIX" ; then
18407 # Need sem_open for this
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
18409 $as_echo_n "checking for library containing sem_open... " >&6; }
18410 if ${ac_cv_search_sem_open+:} false
; then :
18411 $as_echo_n "(cached) " >&6
18413 ac_func_search_save_LIBS
=$LIBS
18414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18415 /* end confdefs.h. */
18417 /* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */
18427 return sem_open ();
18432 for ac_lib
in '' rt pthread
; do
18433 if test -z "$ac_lib"; then
18434 ac_res
="none required"
18437 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18439 if ac_fn_c_try_link
"$LINENO"; then :
18440 ac_cv_search_sem_open
=$ac_res
18442 rm -f core conftest.err conftest.
$ac_objext \
18444 if ${ac_cv_search_sem_open+:} false
; then :
18448 if ${ac_cv_search_sem_open+:} false
; then :
18451 ac_cv_search_sem_open
=no
18453 rm conftest.
$ac_ext
18454 LIBS
=$ac_func_search_save_LIBS
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
18457 $as_echo "$ac_cv_search_sem_open" >&6; }
18458 ac_res
=$ac_cv_search_sem_open
18459 if test "$ac_res" != no
; then :
18460 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18461 USE_NAMED_POSIX_SEMAPHORES
=1
18465 if test x
"$PREFERRED_SEMAPHORES" = x
"UNNAMED_POSIX" ; then
18466 # Need sem_init for this
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
18468 $as_echo_n "checking for library containing sem_init... " >&6; }
18469 if ${ac_cv_search_sem_init+:} false
; then :
18470 $as_echo_n "(cached) " >&6
18472 ac_func_search_save_LIBS
=$LIBS
18473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18474 /* end confdefs.h. */
18476 /* Override any GCC internal prototype to avoid an error.
18477 Use char because int might match the return type of a GCC
18478 builtin and then its argument prototype would still apply. */
18486 return sem_init ();
18491 for ac_lib
in '' rt pthread
; do
18492 if test -z "$ac_lib"; then
18493 ac_res
="none required"
18496 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18498 if ac_fn_c_try_link
"$LINENO"; then :
18499 ac_cv_search_sem_init
=$ac_res
18501 rm -f core conftest.err conftest.
$ac_objext \
18503 if ${ac_cv_search_sem_init+:} false
; then :
18507 if ${ac_cv_search_sem_init+:} false
; then :
18510 ac_cv_search_sem_init
=no
18512 rm conftest.
$ac_ext
18513 LIBS
=$ac_func_search_save_LIBS
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
18516 $as_echo "$ac_cv_search_sem_init" >&6; }
18517 ac_res
=$ac_cv_search_sem_init
18518 if test "$ac_res" != no
; then :
18519 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18520 USE_UNNAMED_POSIX_SEMAPHORES
=1
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
18525 $as_echo_n "checking which semaphore API to use... " >&6; }
18526 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
18528 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18530 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18531 sematype
="named POSIX"
18533 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
18535 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18537 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18538 sematype
="unnamed POSIX"
18541 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
18543 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
18544 sematype
="System V"
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
18548 $as_echo "$sematype" >&6; }
18551 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
18553 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
18557 # Select shared-memory implementation type.
18558 if test "$PORTNAME" != "win32"; then
18560 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
18562 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
18565 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
18567 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
18570 # Select random number source
18572 # You can override this logic by setting the appropriate USE_*RANDOM flag to 1
18573 # in the template or configure command line.
18575 # If not selected manually, try to select a source automatically.
18576 if test x
"$USE_OPENSSL_RANDOM" = x
"" && test x
"$USE_WIN32_RANDOM" = x
"" && test x
"$USE_DEV_URANDOM" = x
"" ; then
18577 if test x
"$with_openssl" = x
"yes" ; then
18578 USE_OPENSSL_RANDOM
=1
18579 elif test "$PORTNAME" = "win32" ; then
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
18583 $as_echo_n "checking for /dev/urandom... " >&6; }
18584 if ${ac_cv_file__dev_urandom+:} false
; then :
18585 $as_echo_n "(cached) " >&6
18587 test "$cross_compiling" = yes &&
18588 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
18589 if test -r "/dev/urandom"; then
18590 ac_cv_file__dev_urandom
=yes
18592 ac_cv_file__dev_urandom
=no
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
18596 $as_echo "$ac_cv_file__dev_urandom" >&6; }
18597 if test "x$ac_cv_file__dev_urandom" = xyes
; then :
18602 if test x
"$ac_cv_file__dev_urandom" = x
"yes" ; then
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
18609 $as_echo_n "checking which random number source to use... " >&6; }
18610 if test x
"$USE_OPENSSL_RANDOM" = x
"1" ; then
18612 $as_echo "#define USE_OPENSSL_RANDOM 1" >>confdefs.h
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
18615 $as_echo "OpenSSL" >&6; }
18616 elif test x
"$USE_WIN32_RANDOM" = x
"1" ; then
18618 $as_echo "#define USE_WIN32_RANDOM 1" >>confdefs.h
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
18621 $as_echo "Windows native" >&6; }
18622 elif test x
"$USE_DEV_URANDOM" = x
"1" ; then
18624 $as_echo "#define USE_DEV_URANDOM 1" >>confdefs.h
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
18627 $as_echo "/dev/urandom" >&6; }
18630 no source of strong random numbers was found
18631 PostgreSQL can use OpenSSL or /dev/urandom as a source of random numbers." "$LINENO" 5
18634 # If not set in template file, set bytes to use libc memset()
18635 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
18636 MEMSET_LOOP_LIMIT
=1024
18639 cat >>confdefs.h
<<_ACEOF
18640 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
18645 if test "$enable_nls" = yes ; then
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
18648 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
18649 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18650 $as_echo_n "(cached) " >&6
18652 ac_func_search_save_LIBS
=$LIBS
18653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18654 /* end confdefs.h. */
18656 /* Override any GCC internal prototype to avoid an error.
18657 Use char because int might match the return type of a GCC
18658 builtin and then its argument prototype would still apply. */
18662 char bind_textdomain_codeset ();
18666 return bind_textdomain_codeset ();
18671 for ac_lib
in '' intl
; do
18672 if test -z "$ac_lib"; then
18673 ac_res
="none required"
18676 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18678 if ac_fn_c_try_link
"$LINENO"; then :
18679 ac_cv_search_bind_textdomain_codeset
=$ac_res
18681 rm -f core conftest.err conftest.
$ac_objext \
18683 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18687 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18690 ac_cv_search_bind_textdomain_codeset
=no
18692 rm conftest.
$ac_ext
18693 LIBS
=$ac_func_search_save_LIBS
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
18696 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
18697 ac_res
=$ac_cv_search_bind_textdomain_codeset
18698 if test "$ac_res" != no
; then :
18699 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18702 as_fn_error $?
"a gettext implementation is required for NLS" "$LINENO" 5
18705 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18706 if test "x$ac_cv_header_libintl_h" = xyes
; then :
18709 as_fn_error $?
"header file <libintl.h> is required for NLS" "$LINENO" 5
18713 if test -z "$MSGFMT"; then
18714 for ac_prog
in msgfmt
18716 # Extract the first word of "$ac_prog", so it can be a program name with args.
18717 set dummy
$ac_prog; ac_word
=$2
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18719 $as_echo_n "checking for $ac_word... " >&6; }
18720 if ${ac_cv_path_MSGFMT+:} false
; then :
18721 $as_echo_n "(cached) " >&6
18725 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
18728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18729 for as_dir
in $PATH
18732 test -z "$as_dir" && as_dir
=.
18733 for ac_exec_ext
in '' $ac_executable_extensions; do
18734 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18735 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
18736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18746 MSGFMT
=$ac_cv_path_MSGFMT
18747 if test -n "$MSGFMT"; then
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18749 $as_echo "$MSGFMT" >&6; }
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752 $as_echo "no" >&6; }
18756 test -n "$MSGFMT" && break
18760 # Report the value of MSGFMT in configure's output in all cases.
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
18762 $as_echo_n "checking for MSGFMT... " >&6; }
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18764 $as_echo "$MSGFMT" >&6; }
18767 if test -z "$MSGFMT"; then
18768 as_fn_error $?
"msgfmt is required for NLS" "$LINENO" 5
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
18771 $as_echo_n "checking for msgfmt flags... " >&6; }
18772 if ${pgac_cv_msgfmt_flags+:} false
; then :
18773 $as_echo_n "(cached) " >&6
18775 if test x
"$MSGFMT" != x
"" && "$MSGFMT" --version 2>&1 |
grep "GNU" >/dev
/null
; then
18776 pgac_cv_msgfmt_flags
=-c
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
18780 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
18781 MSGFMT_FLAGS
=$pgac_cv_msgfmt_flags
18783 if test -z "$MSGMERGE"; then
18784 for ac_prog
in msgmerge
18786 # Extract the first word of "$ac_prog", so it can be a program name with args.
18787 set dummy
$ac_prog; ac_word
=$2
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18789 $as_echo_n "checking for $ac_word... " >&6; }
18790 if ${ac_cv_path_MSGMERGE+:} false
; then :
18791 $as_echo_n "(cached) " >&6
18795 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
18798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18799 for as_dir
in $PATH
18802 test -z "$as_dir" && as_dir
=.
18803 for ac_exec_ext
in '' $ac_executable_extensions; do
18804 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18805 ac_cv_path_MSGMERGE
="$as_dir/$ac_word$ac_exec_ext"
18806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18816 MSGMERGE
=$ac_cv_path_MSGMERGE
18817 if test -n "$MSGMERGE"; then
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18819 $as_echo "$MSGMERGE" >&6; }
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18822 $as_echo "no" >&6; }
18826 test -n "$MSGMERGE" && break
18830 # Report the value of MSGMERGE in configure's output in all cases.
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
18832 $as_echo_n "checking for MSGMERGE... " >&6; }
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18834 $as_echo "$MSGMERGE" >&6; }
18837 if test -z "$XGETTEXT"; then
18838 for ac_prog
in xgettext
18840 # Extract the first word of "$ac_prog", so it can be a program name with args.
18841 set dummy
$ac_prog; ac_word
=$2
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18843 $as_echo_n "checking for $ac_word... " >&6; }
18844 if ${ac_cv_path_XGETTEXT+:} false
; then :
18845 $as_echo_n "(cached) " >&6
18849 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
18852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18853 for as_dir
in $PATH
18856 test -z "$as_dir" && as_dir
=.
18857 for ac_exec_ext
in '' $ac_executable_extensions; do
18858 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18859 ac_cv_path_XGETTEXT
="$as_dir/$ac_word$ac_exec_ext"
18860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18870 XGETTEXT
=$ac_cv_path_XGETTEXT
18871 if test -n "$XGETTEXT"; then
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18873 $as_echo "$XGETTEXT" >&6; }
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18876 $as_echo "no" >&6; }
18880 test -n "$XGETTEXT" && break
18884 # Report the value of XGETTEXT in configure's output in all cases.
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
18886 $as_echo_n "checking for XGETTEXT... " >&6; }
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18888 $as_echo "$XGETTEXT" >&6; }
18894 # Check for Tcl configuration script tclConfig.sh
18895 if test "$with_tcl" = yes; then
18896 if test -z "$TCLSH"; then
18897 for ac_prog
in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
18899 # Extract the first word of "$ac_prog", so it can be a program name with args.
18900 set dummy
$ac_prog; ac_word
=$2
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18902 $as_echo_n "checking for $ac_word... " >&6; }
18903 if ${ac_cv_path_TCLSH+:} false
; then :
18904 $as_echo_n "(cached) " >&6
18908 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
18911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18912 for as_dir
in $PATH
18915 test -z "$as_dir" && as_dir
=.
18916 for ac_exec_ext
in '' $ac_executable_extensions; do
18917 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18918 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
18919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18929 TCLSH
=$ac_cv_path_TCLSH
18930 if test -n "$TCLSH"; then
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18932 $as_echo "$TCLSH" >&6; }
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18935 $as_echo "no" >&6; }
18939 test -n "$TCLSH" && break
18943 # Report the value of TCLSH in configure's output in all cases.
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
18945 $as_echo_n "checking for TCLSH... " >&6; }
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18947 $as_echo "$TCLSH" >&6; }
18950 if test x
"$TCLSH" = x
""; then
18951 as_fn_error $?
"Tcl shell not found" "$LINENO" 5
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
18955 $as_echo_n "checking for tclConfig.sh... " >&6; }
18956 # Let user override test
18957 if test -z "$TCL_CONFIG_SH"; then
18958 pgac_test_dirs
="$with_tclconfig"
18960 set X
$pgac_test_dirs; shift
18961 if test $# -eq 0; then
18962 test -z "$TCLSH" && as_fn_error $?
"unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
18963 pgac_test_dirs
=`echo 'puts $auto_path' | $TCLSH`
18964 # On newer macOS, $auto_path frequently doesn't include the place
18965 # where tclConfig.sh actually lives. Append that to the end, so as not
18966 # to break cases where a non-default Tcl installation is being used.
18967 if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then
18968 pgac_test_dirs
="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework"
18970 set X
$pgac_test_dirs; shift
18974 if test -r "$pgac_dir/tclConfig.sh"; then
18975 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
18981 if test -z "$TCL_CONFIG_SH"; then
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18983 $as_echo "no" >&6; }
18984 as_fn_error $?
"file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
18987 $as_echo "$TCL_CONFIG_SH" >&6; }
18993 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
18994 eval TCL_LIBS
=\"$TCL_LIBS\"
18995 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
18996 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
18998 if test "$TCL_SHARED_BUILD" != 1; then
18999 as_fn_error $?
"cannot build PL/Tcl because Tcl is not a shared library
19000 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
19002 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
19003 ac_save_CPPFLAGS
=$CPPFLAGS
19004 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
19005 ac_fn_c_check_header_mongrel
"$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
19006 if test "x$ac_cv_header_tcl_h" = xyes
; then :
19009 as_fn_error $?
"header file <tcl.h> is required for Tcl" "$LINENO" 5
19013 CPPFLAGS
=$ac_save_CPPFLAGS
19016 # check for <perl.h>
19017 if test "$with_perl" = yes; then
19018 ac_save_CPPFLAGS
=$CPPFLAGS
19019 CPPFLAGS
="$CPPFLAGS $perl_includespec"
19020 ac_fn_c_check_header_compile
"$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
19022 if test "x$ac_cv_header_perl_h" = xyes
; then :
19025 as_fn_error $?
"header file <perl.h> is required for Perl" "$LINENO" 5
19029 # While we're at it, check that we can link to libperl.
19030 # On most platforms, if perl.h is there then libperl.so will be too, but at
19031 # this writing Debian packages them separately. There is no known reason to
19032 # waste cycles on separate probes for the Tcl or Python libraries, though.
19033 # On some Red Hat platforms, the link attempt can fail if we don't use
19034 # CFLAGS_SL while building the test program.
19035 ac_save_CFLAGS
=$CFLAGS
19036 CFLAGS
="$CFLAGS $CFLAGS_SL"
19037 pgac_save_LIBS
=$LIBS
19038 LIBS
="$perl_embed_ldflags"
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
19040 $as_echo_n "checking for libperl... " >&6; }
19041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19044 #include <EXTERN.h>
19055 if ac_fn_c_try_link
"$LINENO"; then :
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19057 $as_echo "yes" >&6; }
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19060 $as_echo "no" >&6; }
19061 as_fn_error $?
"libperl library is required for Perl" "$LINENO" 5
19063 rm -f core conftest.err conftest.
$ac_objext \
19064 conftest
$ac_exeext conftest.
$ac_ext
19065 LIBS
=$pgac_save_LIBS
19066 CFLAGS
=$ac_save_CFLAGS
19067 CPPFLAGS
=$ac_save_CPPFLAGS
19070 # check for <Python.h>
19071 if test "$with_python" = yes; then
19072 ac_save_CPPFLAGS
=$CPPFLAGS
19073 CPPFLAGS
="$python_includespec $CPPFLAGS"
19074 ac_fn_c_check_header_mongrel
"$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
19075 if test "x$ac_cv_header_Python_h" = xyes
; then :
19078 as_fn_error $?
"header file <Python.h> is required for Python" "$LINENO" 5
19082 CPPFLAGS
=$ac_save_CPPFLAGS
19086 # Check for documentation-building tools
19088 if test -z "$XMLLINT"; then
19089 for ac_prog
in xmllint
19091 # Extract the first word of "$ac_prog", so it can be a program name with args.
19092 set dummy
$ac_prog; ac_word
=$2
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19094 $as_echo_n "checking for $ac_word... " >&6; }
19095 if ${ac_cv_path_XMLLINT+:} false
; then :
19096 $as_echo_n "(cached) " >&6
19100 ac_cv_path_XMLLINT
="$XMLLINT" # Let the user override the test with a path.
19103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19104 for as_dir
in $PATH
19107 test -z "$as_dir" && as_dir
=.
19108 for ac_exec_ext
in '' $ac_executable_extensions; do
19109 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19110 ac_cv_path_XMLLINT
="$as_dir/$ac_word$ac_exec_ext"
19111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19121 XMLLINT
=$ac_cv_path_XMLLINT
19122 if test -n "$XMLLINT"; then
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
19124 $as_echo "$XMLLINT" >&6; }
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19127 $as_echo "no" >&6; }
19131 test -n "$XMLLINT" && break
19135 # Report the value of XMLLINT in configure's output in all cases.
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
19137 $as_echo_n "checking for XMLLINT... " >&6; }
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
19139 $as_echo "$XMLLINT" >&6; }
19142 if test -z "$XSLTPROC"; then
19143 for ac_prog
in xsltproc
19145 # Extract the first word of "$ac_prog", so it can be a program name with args.
19146 set dummy
$ac_prog; ac_word
=$2
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19148 $as_echo_n "checking for $ac_word... " >&6; }
19149 if ${ac_cv_path_XSLTPROC+:} false
; then :
19150 $as_echo_n "(cached) " >&6
19154 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19158 for as_dir
in $PATH
19161 test -z "$as_dir" && as_dir
=.
19162 for ac_exec_ext
in '' $ac_executable_extensions; do
19163 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19164 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19175 XSLTPROC
=$ac_cv_path_XSLTPROC
19176 if test -n "$XSLTPROC"; then
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19178 $as_echo "$XSLTPROC" >&6; }
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19181 $as_echo "no" >&6; }
19185 test -n "$XSLTPROC" && break
19189 # Report the value of XSLTPROC in configure's output in all cases.
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
19191 $as_echo_n "checking for XSLTPROC... " >&6; }
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19193 $as_echo "$XSLTPROC" >&6; }
19196 if test -z "$FOP"; then
19199 # Extract the first word of "$ac_prog", so it can be a program name with args.
19200 set dummy
$ac_prog; ac_word
=$2
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19202 $as_echo_n "checking for $ac_word... " >&6; }
19203 if ${ac_cv_path_FOP+:} false
; then :
19204 $as_echo_n "(cached) " >&6
19208 ac_cv_path_FOP
="$FOP" # Let the user override the test with a path.
19211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19212 for as_dir
in $PATH
19215 test -z "$as_dir" && as_dir
=.
19216 for ac_exec_ext
in '' $ac_executable_extensions; do
19217 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19218 ac_cv_path_FOP
="$as_dir/$ac_word$ac_exec_ext"
19219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19229 FOP
=$ac_cv_path_FOP
19230 if test -n "$FOP"; then
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19232 $as_echo "$FOP" >&6; }
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19235 $as_echo "no" >&6; }
19239 test -n "$FOP" && break
19243 # Report the value of FOP in configure's output in all cases.
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
19245 $as_echo_n "checking for FOP... " >&6; }
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19247 $as_echo "$FOP" >&6; }
19250 if test -z "$DBTOEPUB"; then
19251 for ac_prog
in dbtoepub
19253 # Extract the first word of "$ac_prog", so it can be a program name with args.
19254 set dummy
$ac_prog; ac_word
=$2
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19256 $as_echo_n "checking for $ac_word... " >&6; }
19257 if ${ac_cv_path_DBTOEPUB+:} false
; then :
19258 $as_echo_n "(cached) " >&6
19262 ac_cv_path_DBTOEPUB
="$DBTOEPUB" # Let the user override the test with a path.
19265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19266 for as_dir
in $PATH
19269 test -z "$as_dir" && as_dir
=.
19270 for ac_exec_ext
in '' $ac_executable_extensions; do
19271 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19272 ac_cv_path_DBTOEPUB
="$as_dir/$ac_word$ac_exec_ext"
19273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19283 DBTOEPUB
=$ac_cv_path_DBTOEPUB
19284 if test -n "$DBTOEPUB"; then
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
19286 $as_echo "$DBTOEPUB" >&6; }
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19289 $as_echo "no" >&6; }
19293 test -n "$DBTOEPUB" && break
19297 # Report the value of DBTOEPUB in configure's output in all cases.
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
19299 $as_echo_n "checking for DBTOEPUB... " >&6; }
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
19301 $as_echo "$DBTOEPUB" >&6; }
19306 # Check for test tools
19308 if test "$enable_tap_tests" = yes; then
19309 # Make sure we know where prove is.
19310 if test -z "$PROVE"; then
19311 for ac_prog
in prove
19313 # Extract the first word of "$ac_prog", so it can be a program name with args.
19314 set dummy
$ac_prog; ac_word
=$2
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19316 $as_echo_n "checking for $ac_word... " >&6; }
19317 if ${ac_cv_path_PROVE+:} false
; then :
19318 $as_echo_n "(cached) " >&6
19322 ac_cv_path_PROVE
="$PROVE" # Let the user override the test with a path.
19325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19326 for as_dir
in $PATH
19329 test -z "$as_dir" && as_dir
=.
19330 for ac_exec_ext
in '' $ac_executable_extensions; do
19331 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19332 ac_cv_path_PROVE
="$as_dir/$ac_word$ac_exec_ext"
19333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19343 PROVE
=$ac_cv_path_PROVE
19344 if test -n "$PROVE"; then
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
19346 $as_echo "$PROVE" >&6; }
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19349 $as_echo "no" >&6; }
19353 test -n "$PROVE" && break
19357 # Report the value of PROVE in configure's output in all cases.
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
19359 $as_echo_n "checking for PROVE... " >&6; }
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
19361 $as_echo "$PROVE" >&6; }
19364 if test -z "$PROVE"; then
19365 as_fn_error $?
"prove not found" "$LINENO" 5
19367 # Check for necessary Perl modules. You might think we should use
19368 # AX_PROG_PERL_MODULES here, but prove might be part of a different Perl
19369 # installation than perl, eg on MSys, so we have to check using prove.
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl modules required for TAP tests" >&5
19371 $as_echo_n "checking for Perl modules required for TAP tests... " >&6; }
19372 modulestderr
=`"$PROVE" "$srcdir/config/check_modules.pl" 2>&1 >/dev/null`
19373 if test $?
-eq 0; then
19374 # log the module version details, but don't show them interactively
19375 echo "$modulestderr" >&5
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19377 $as_echo "yes" >&6; }
19379 # on failure, though, show the results to the user
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $modulestderr" >&5
19381 $as_echo "$modulestderr" >&6; }
19382 as_fn_error $?
"Additional Perl modules are required to run TAP tests" "$LINENO" 5
19388 # We have to run the thread test near the end so we have all our symbols
19389 # defined. Cross compiling throws a warning.
19391 if test "$enable_thread_safety" = yes; then
19392 if test "$PORTNAME" != "win32"
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
19395 $as_echo_n "checking thread safety of required library functions... " >&6; }
19399 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
19400 LIBS
="$LIBS $PTHREAD_LIBS"
19401 if test "$cross_compiling" = yes; then :
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
19403 $as_echo "maybe" >&6; }
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19405 *** Skipping thread test program because of cross-compile build.
19406 *** Run the program in src/test/thread on the target machine.
19408 $as_echo "$as_me: WARNING:
19409 *** Skipping thread test program because of cross-compile build.
19410 *** Run the program in src/test/thread on the target machine.
19413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19414 /* end confdefs.h. */
19415 #include "$srcdir/src/test/thread/thread_test.c"
19417 if ac_fn_c_try_run
"$LINENO"; then :
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19419 $as_echo "yes" >&6; }
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19422 $as_echo "no" >&6; }
19423 as_fn_error $?
"thread test program failed
19424 This platform is not thread-safe. Check the file 'config.log' or compile
19425 and run src/test/thread/thread_test for the exact reason.
19426 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
19428 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19429 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
19436 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
19440 # If compiler will take -Wl,--as-needed (or various platform-specific
19441 # spellings thereof) then add that to LDFLAGS. This is much easier than
19442 # trying to filter LIBS to the minimum for each executable.
19443 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
19444 # libreadline; therefore we postpone testing it until we know what library
19445 # dependencies readline has. The test code will try to link with $LIBS.
19446 if test "$with_readline" = yes; then
19447 link_test_func
=readline
19449 link_test_func
=exit
19452 if test "$PORTNAME" = "darwin"; then
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
19454 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
19455 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false
; then :
19456 $as_echo_n "(cached) " >&6
19458 pgac_save_LDFLAGS
=$LDFLAGS
19459 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
19460 if test "$cross_compiling" = yes; then :
19461 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
="assuming no"
19463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19464 /* end confdefs.h. */
19465 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19474 if ac_fn_c_try_run
"$LINENO"; then :
19475 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
=yes
19477 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
=no
19479 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19480 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19483 LDFLAGS
="$pgac_save_LDFLAGS"
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
19486 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
19487 if test x
"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x
"yes"; then
19488 LDFLAGS
="$LDFLAGS -Wl,-dead_strip_dylibs"
19491 elif test "$PORTNAME" = "openbsd"; then
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
19493 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
19494 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false
; then :
19495 $as_echo_n "(cached) " >&6
19497 pgac_save_LDFLAGS
=$LDFLAGS
19498 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-Bdynamic"
19499 if test "$cross_compiling" = yes; then :
19500 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
="assuming no"
19502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19504 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19513 if ac_fn_c_try_run
"$LINENO"; then :
19514 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
=yes
19516 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
=no
19518 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19519 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19522 LDFLAGS
="$pgac_save_LDFLAGS"
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
19525 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
19526 if test x
"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x
"yes"; then
19527 LDFLAGS
="$LDFLAGS -Wl,-Bdynamic"
19531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
19532 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
19533 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false
; then :
19534 $as_echo_n "(cached) " >&6
19536 pgac_save_LDFLAGS
=$LDFLAGS
19537 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
19538 if test "$cross_compiling" = yes; then :
19539 pgac_cv_prog_cc_ldflags__Wl___as_needed
="assuming no"
19541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19542 /* end confdefs.h. */
19543 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19552 if ac_fn_c_try_run
"$LINENO"; then :
19553 pgac_cv_prog_cc_ldflags__Wl___as_needed
=yes
19555 pgac_cv_prog_cc_ldflags__Wl___as_needed
=no
19557 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19558 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19561 LDFLAGS
="$pgac_save_LDFLAGS"
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
19564 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
19565 if test x
"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x
"yes"; then
19566 LDFLAGS
="$LDFLAGS -Wl,--as-needed"
19571 # Create compiler version string
19572 if test x
"$GCC" = x
"yes" ; then
19573 cc_string
=`${CC} --version | sed q`
19574 case $cc_string in [A-Za-z
]*) ;; *) cc_string
="GCC $cc_string";; esac
19575 elif test x
"$SUN_STUDIO_CC" = x
"yes" ; then
19576 cc_string
=`${CC} -V 2>&1 | sed q`
19582 cat >>confdefs.h
<<_ACEOF
19583 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
19587 # Supply a numeric version string for use by 3rd party add-ons
19588 # awk -F is a regex on some platforms, and not on others, so make "." a tab
19589 PG_VERSION_NUM
="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
19591 $AWK '{printf "%d
%04d
", $1, $2}'`"
19593 cat >>confdefs.h
<<_ACEOF
19594 #define PG_VERSION_NUM $PG_VERSION_NUM
19599 # If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not
19600 # literally, so that it's possible to override it at build time using
19601 # a command like "make ... PG_SYSROOT=path". This has to be done after
19602 # we've finished all configure checks that depend on CPPFLAGS.
19603 # The same for LDFLAGS, too.
19604 if test x
"$PG_SYSROOT" != x
; then
19605 CPPFLAGS
=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19606 LDFLAGS
=`echo "$LDFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19611 # Begin output steps
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
19614 $as_echo "$as_me: using compiler=$cc_string" >&6;}
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
19616 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
19618 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
19620 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
19621 # Currently only used when LLVM is used
19622 if test "$with_llvm" = yes ; then
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5
19624 $as_echo "$as_me: using CXX=$CXX" >&6;}
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5
19626 $as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5
19628 $as_echo "$as_me: using CLANG=$CLANG" >&6;}
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5
19630 $as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;}
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5
19632 $as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;}
19635 # prepare build tree if outside source tree
19636 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
19637 # Note 2: /bin/pwd might be better than shell's built-in at getting
19638 # a symlink-free name.
19639 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
19643 if test "$no_create" != yes; then
19644 $as_echo_n "preparing build tree... " >&6
19645 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
19646 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
19647 || as_fn_error $?
"failed" "$LINENO" 5
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19649 $as_echo "done" >&6; }
19655 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
19658 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}"
19661 if test "$PORTNAME" = "win32"; then
19662 ac_config_commands
="$ac_config_commands check_win32_symlinks"
19666 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
19669 ac_config_headers
="$ac_config_headers src/include/pg_config_ext.h"
19672 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
19675 cat >confcache
<<\_ACEOF
19676 # This file is a shell script that caches the results of configure
19677 # tests run on this system so they can be shared between configure
19678 # scripts and configure runs, see configure's option --config-cache.
19679 # It is not useful on other systems. If it contains results you don't
19680 # want to keep, you may remove or edit it.
19682 # config.status only pays attention to the cache file if you give it
19683 # the --recheck option to rerun configure.
19685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19687 # following values.
19691 # The following way of writing the cache mishandles newlines in values,
19692 # but we know of no workaround that is simple, portable, and efficient.
19693 # So, we kill variables containing newlines.
19694 # Ultrix sh set writes to stderr and can't be redirected directly,
19695 # and sets the high bit in the cache file unless we assign to the vars.
19697 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19698 eval ac_val
=\$
$ac_var
19702 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19703 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19706 _ | IFS | as_nl
) ;; #(
19707 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19708 *) { eval $ac_var=; unset $ac_var;} ;;
19714 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19715 *${as_nl}ac_space
=\
*)
19716 # `set' does not quote correctly, so add quotes: double-quote
19717 # substitution turns \\\\ into \\, and sed turns \\ into \.
19720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19723 # `set' quotes correctly as required by POSIX, so do not add quotes.
19724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19733 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19735 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19737 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19738 if test -w "$cache_file"; then
19739 if test "x$cache_file" != "x/dev/null"; then
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19741 $as_echo "$as_me: updating cache $cache_file" >&6;}
19742 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19743 cat confcache
>"$cache_file"
19745 case $cache_file in #(
19747 mv -f confcache
"$cache_file"$$
&&
19748 mv -f "$cache_file"$$
"$cache_file" ;; #(
19750 mv -f confcache
"$cache_file" ;;
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19756 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19761 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19762 # Let make expand exec_prefix.
19763 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19765 DEFS
=-DHAVE_CONFIG_H
19770 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19771 # 1. Remove the extension, and $U if already installed.
19772 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19773 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19774 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19775 # will be set to the directory where LIBOBJS objects are built.
19776 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19777 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19779 LIBOBJS
=$ac_libobjs
19781 LTLIBOBJS
=$ac_ltlibobjs
19786 : "${CONFIG_STATUS=./config.status}"
19788 ac_clean_files_save
=$ac_clean_files
19789 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19791 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19793 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19795 # Generated by $as_me.
19796 # Run this file to recreate the current configuration.
19797 # Compiler output produced by configure, useful for debugging
19798 # configure, is in config.log if it exists.
19801 ac_cs_recheck=false
19804 SHELL=\${CONFIG_SHELL-$SHELL}
19807 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19808 ## -------------------- ##
19809 ## M4sh Initialization. ##
19810 ## -------------------- ##
19812 # Be more Bourne compatible
19813 DUALCASE
=1; export DUALCASE
# for MKS sh
19814 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19817 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19818 # is contrary to our usage. Disable this feature.
19819 alias -g '${1+"$@"}'='"$@"'
19820 setopt NO_GLOB_SUBST
19822 case `(set -o) 2>/dev/null` in #(
19834 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19835 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19836 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19837 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19838 # Prefer a ksh shell builtin over an external printf program on Solaris,
19839 # but without wasting forks for bash or zsh.
19840 if test -z "$BASH_VERSION$ZSH_VERSION" \
19841 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19842 as_echo='print
-r --'
19843 as_echo_n='print
-rn --'
19844 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19845 as_echo='printf %s
\n'
19846 as_echo_n='printf %s
'
19848 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19849 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19850 as_echo_n='/usr
/ucb
/echo -n'
19852 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19853 as_echo_n_body='eval
19857 expr "X$arg" : "X\\(.*\\)$as_nl";
19858 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19860 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19862 export as_echo_n_body
19863 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19865 export as_echo_body
19866 as_echo='sh
-c $as_echo_body as_echo
'
19869 # The user is always right.
19870 if test "${PATH_SEPARATOR+set}" != set; then
19872 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19873 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19880 # We need space, tab and new line, in precisely that order. Quoting is
19881 # there to prevent editors from complaining about space-tab.
19882 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19883 # splitting by setting IFS to empty value.)
19886 # Find who we are. Look in the path if we contain no directory separator.
19889 *[\\/]* ) as_myself=$0 ;;
19890 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19891 for as_dir in $PATH
19894 test -z "$as_dir" && as_dir=.
19895 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19901 # We did not find ourselves, most probably we were run as `sh COMMAND'
19902 # in which case we are not to be found in the path.
19903 if test "x$as_myself" = x
; then
19906 if test ! -f "$as_myself"; then
19907 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19911 # Unset variables that we do not need and which cause bugs (e.g. in
19912 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19913 # suppresses any "Segmentation fault" message there. '((' could
19914 # trigger a bug in pdksh 5.2.14.
19915 for as_var
in BASH_ENV ENV MAIL MAILPATH
19916 do eval test x\
${$as_var+set} = xset \
19917 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19930 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19933 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19934 # ----------------------------------------
19935 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19936 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19937 # script with STATUS, using 1 if that was 0.
19940 as_status
=$1; test $as_status -eq 0 && as_status
=1
19942 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19943 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19945 $as_echo "$as_me: error: $2" >&2
19946 as_fn_exit
$as_status
19950 # as_fn_set_status STATUS
19951 # -----------------------
19952 # Set $? to STATUS, without forking.
19953 as_fn_set_status
()
19956 } # as_fn_set_status
19958 # as_fn_exit STATUS
19959 # -----------------
19960 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19964 as_fn_set_status
$1
19970 # Portably unset VAR.
19973 { eval $1=; unset $1;}
19975 as_unset
=as_fn_unset
19976 # as_fn_append VAR VALUE
19977 # ----------------------
19978 # Append the text in VALUE to the end of the definition contained in VAR. Take
19979 # advantage of any shell optimizations that allow amortized linear growth over
19980 # repeated appends, instead of the typical quadratic growth present in naive
19982 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19983 eval 'as_fn_append ()
19994 # as_fn_arith ARG...
19995 # ------------------
19996 # Perform arithmetic evaluation on the ARGs, and store the result in the
19997 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19998 # must be portable across $(()) and expr.
19999 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20000 eval 'as_fn_arith ()
20007 as_val
=`expr "$@" || test $? -eq 1`
20012 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20013 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20019 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20020 as_basename
=basename
20025 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20031 as_me
=`$as_basename -- "$0" ||
20032 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20033 X"$0" : 'X\(//\)$' \| \
20034 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20036 sed '/^.*\/\([^/][^/]*\)\/*$/{
20050 # Avoid depending upon Character Ranges.
20051 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20052 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20053 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20054 as_cr_digits
='0123456789'
20055 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20057 ECHO_C
= ECHO_N
= ECHO_T
=
20058 case `echo -n x` in #(((((
20060 case `echo 'xy\c'` in
20061 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20063 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20070 rm -f conf$$ conf$$.exe conf$$.
file
20071 if test -d conf$$.dir
; then
20072 rm -f conf$$.dir
/conf$$.
file
20075 mkdir conf$$.dir
2>/dev
/null
20077 if (echo >conf$$.
file) 2>/dev
/null
; then
20078 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20080 # ... but there are two gotchas:
20081 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20082 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20083 # In both cases, we have to default to `cp -pR'.
20084 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20086 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20094 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20095 rmdir conf$$.dir
2>/dev
/null
20100 # Create "$as_dir" as a directory, including parents if necessary.
20105 -*) as_dir
=.
/$as_dir;;
20107 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20111 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20112 *) as_qdir
=$as_dir;;
20114 as_dirs
="'$as_qdir' $as_dirs"
20115 as_dir
=`$as_dirname -- "$as_dir" ||
20116 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20117 X"$as_dir" : 'X\(//\)[^/]' \| \
20118 X"$as_dir" : 'X\(//\)$' \| \
20119 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20120 $as_echo X"$as_dir" |
20121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20125 /^X\(\/\/\)[^/].*/{
20138 test -d "$as_dir" && break
20140 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20141 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20145 if mkdir
-p .
2>/dev
/null
; then
20146 as_mkdir_p
='mkdir -p "$as_dir"'
20148 test -d .
/-p && rmdir .
/-p
20153 # as_fn_executable_p FILE
20154 # -----------------------
20155 # Test if FILE is an executable regular file.
20156 as_fn_executable_p
()
20158 test -f "$1" && test -x "$1"
20159 } # as_fn_executable_p
20160 as_test_x
='test -x'
20161 as_executable_p
=as_fn_executable_p
20163 # Sed expression to map a string onto a valid CPP name.
20164 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20166 # Sed expression to map a string onto a valid variable name.
20167 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20171 ## ----------------------------------- ##
20172 ## Main body of $CONFIG_STATUS script. ##
20173 ## ----------------------------------- ##
20175 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20178 # Save the log message, to keep $0 and so on meaningful, and to
20179 # report actual input values of CONFIG_FILES etc. instead of their
20180 # values after options handling.
20182 This file was extended by PostgreSQL $as_me 12.11, which was
20183 generated by GNU Autoconf 2.69. Invocation command line was
20185 CONFIG_FILES = $CONFIG_FILES
20186 CONFIG_HEADERS = $CONFIG_HEADERS
20187 CONFIG_LINKS = $CONFIG_LINKS
20188 CONFIG_COMMANDS = $CONFIG_COMMANDS
20191 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20196 case $ac_config_files in *"
20197 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20200 case $ac_config_headers in *"
20201 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20206 # Files that config.status was made for.
20207 config_files="$ac_config_files"
20208 config_headers="$ac_config_headers"
20209 config_links="$ac_config_links"
20210 config_commands="$ac_config_commands"
20214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20216 \`$as_me' instantiates files and other configuration actions
20217 from templates according to the current configuration. Unless the files
20218 and actions are specified as TAGs, all are instantiated by default.
20220 Usage: $0 [OPTION]... [TAG]...
20222 -h, --help print this help, then exit
20223 -V, --version print version number and configuration settings, then exit
20224 --config print configuration, then exit
20225 -q, --quiet, --silent
20226 do not print progress messages
20227 -d, --debug don't remove temporary files
20228 --recheck update $as_me by reconfiguring in the same conditions
20229 --file=FILE[:TEMPLATE]
20230 instantiate the configuration file FILE
20231 --header=FILE[:TEMPLATE]
20232 instantiate the configuration header FILE
20234 Configuration files:
20237 Configuration headers:
20240 Configuration links:
20243 Configuration commands:
20246 Report bugs to <pgsql-bugs@lists.postgresql.org>."
20249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20250 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20252 PostgreSQL config.status 12.11
20253 configured by $0, generated by GNU Autoconf 2.69,
20254 with options \\"\$ac_cs_config\\"
20256 Copyright (C) 2012 Free Software Foundation, Inc.
20257 This config.status script is free software; the Free Software Foundation
20258 gives unlimited permission to copy, distribute and modify it."
20265 test -n "\$AWK" || AWK=awk
20268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20269 # The default lists apply if the user does not specify any file.
20275 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20276 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20280 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20292 # Handling of the options.
20293 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20295 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20296 $as_echo "$ac_cs_version"; exit ;;
20297 --config |
--confi |
--conf |
--con |
--co |
--c )
20298 $as_echo "$ac_cs_config"; exit ;;
20299 --debug |
--debu |
--deb |
--de |
--d |
-d )
20301 --file |
--fil |
--fi |
--f )
20304 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20305 '') as_fn_error $?
"missing file argument" ;;
20307 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20308 ac_need_defaults
=false
;;
20309 --header |
--heade |
--head |
--hea )
20312 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20314 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20315 ac_need_defaults
=false
;;
20317 # Conflict between --help and --header
20318 as_fn_error $?
"ambiguous option: \`$1'
20319 Try \`$0 --help' for more information.";;
20320 --help |
--hel |
-h )
20321 $as_echo "$ac_cs_usage"; exit ;;
20322 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20323 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20326 # This is an error.
20327 -*) as_fn_error $?
"unrecognized option: \`$1'
20328 Try \`$0 --help' for more information." ;;
20330 *) as_fn_append ac_config_targets
" $1"
20331 ac_need_defaults
=false
;;
20337 ac_configure_extra_args
=
20339 if $ac_cs_silent; then
20341 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20346 if \$ac_cs_recheck; then
20347 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20349 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20350 CONFIG_SHELL='$SHELL'
20351 export CONFIG_SHELL
20356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20361 ## Running $as_me. ##
20367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20372 # Handling of arguments.
20373 for ac_config_target
in $ac_config_targets
20375 case $ac_config_target in
20376 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
20377 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
20378 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
20379 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
20380 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
20381 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
20382 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
20383 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
20384 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
20385 "src/include/pg_config_ext.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
20386 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
20388 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20393 # If the user did not use the arguments to specify the items to instantiate,
20394 # then the envvar interface is used. Set only those that are not.
20395 # We use the long form for the default assignment because of an extremely
20396 # bizarre bug on SunOS 4.1.3.
20397 if $ac_need_defaults; then
20398 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20399 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20400 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20401 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20404 # Have a temporary directory for convenience. Make it in the build tree
20405 # simply because there is no reason against having it here, and in addition,
20406 # creating and moving files from /tmp can sometimes cause problems.
20407 # Hook for its removal unless debugging.
20408 # Note that there is a small window in which the directory will not be cleaned:
20409 # after its creation but before its name has been assigned to `$tmp'.
20413 trap 'exit_status=$?
20414 : "${ac_tmp:=$tmp}"
20415 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20417 trap 'as_fn_exit 1' 1 2 13 15
20419 # Create a (secure) tmp directory for tmp files.
20422 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20426 tmp
=.
/conf$$
-$RANDOM
20427 (umask 077 && mkdir
"$tmp")
20428 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20431 # Set up the scripts for CONFIG_FILES section.
20432 # No need to generate them if there are no CONFIG_FILES.
20433 # This happens for instance with `./config.status config.h'.
20434 if test -n "$CONFIG_FILES"; then
20437 ac_cr
=`echo X | tr X '\015'`
20438 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20439 # But we know of no other shell where ac_cr would be empty at this
20440 # point, so we can use a bashism as a fallback.
20441 if test "x$ac_cr" = x
; then
20442 eval ac_cr
=\$
\'\\r
\'
20444 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20445 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20448 ac_cs_awk_cr
=$ac_cr
20451 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20456 echo "cat >conf$$subs.awk <<_ACEOF" &&
20457 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20459 } >conf$$subs.sh ||
20460 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20461 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20463 for ac_last_try in false false false false false :; do
20464 . ./conf$$subs.sh ||
20465 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20467 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20468 if test $ac_delim_n = $ac_delim_num; then
20470 elif $ac_last_try; then
20471 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20473 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20476 rm -f conf$$subs.sh
20478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20479 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20483 s/^/S["/; s
/!.
*/"]=/
20493 s/\(.\{148\}\)..*/\1/
20495 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20500 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20507 s/\(.\{148\}\)..*/\1/
20509 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20513 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20518 ' <conf$$subs.awk | sed '
20523 ' >>$CONFIG_STATUS || ac_write_fail=1
20524 rm -f conf$$subs.awk
20525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20527 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20528 for (key in S) S_is_set[key] = 1
20534 nfields = split(line, field, "@
")
20536 len = length(field[1])
20537 for (i = 2; i < nfields; i++) {
20539 keylen = length(key)
20540 if (S_is_set[key]) {
20542 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20543 len += length(value) + length(field[++i])
20554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20555 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20556 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20559 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20560 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20563 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20564 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20565 # trailing colons and then remove the whole line if VPATH becomes empty
20566 # (actually we leave an empty line to preserve line numbers).
20567 if test "x
$srcdir" = x.; then
20568 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20587 fi # test -n "$CONFIG_FILES"
20589 # Set up the scripts for CONFIG_HEADERS section.
20590 # No need to generate them if there are no CONFIG_HEADERS.
20591 # This happens for instance with `./config.status Makefile'.
20592 if test -n "$CONFIG_HEADERS"; then
20593 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20597 # Transform confdefs.h into an awk script `defines.awk', embedded as
20598 # here-document in config.status, that substitutes the proper values into
20599 # config.h.in to produce config.h.
20601 # Create a delimiter string that does not exist in confdefs.h, to ease
20602 # handling of long lines.
20604 for ac_last_try in false false :; do
20605 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20606 if test -z "$ac_tt"; then
20608 elif $ac_last_try; then
20609 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20611 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20615 # For the awk script, D is an array of macro values keyed by name,
20616 # likewise P contains macro parameters if any. Preserve backslash
20617 # newline sequences.
20619 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20621 s/.\{148\}/&'"$ac_delim"'/g
20624 s/^[ ]*#[ ]*define[ ][ ]*/ /
20631 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20633 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20637 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20638 D["\
1"]=" \
3\\\\\\n
"\\/p
20640 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20645 s/.\{148\}/&'"$ac_delim"'/g
20650 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20653 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20655 ' <confdefs.h | sed '
20656 s/'"$ac_delim"'/"\\\
20657 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20660 for (key in D) D_is_set[key] = 1
20663 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20665 split(line, arg, " ")
20666 if (arg[1] == "#") {
20670 defundef
= substr
(arg
[1], 2)
20673 split(mac1
, mac2
, "(") #)
20675 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20676 if (D_is_set
[macro
]) {
20677 # Preserve the white space surrounding the "#".
20678 print prefix
"define", macro P
[macro
] D
[macro
]
20681 # Replace #undef with comments. This is necessary, for example,
20682 # in the case of _POSIX_SOURCE, which is predefined and required
20683 # on some systems where configure will not decide to define it.
20684 if (defundef
== "undef") {
20685 print
"/*", prefix defundef
, macro
, "*/"
20693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20694 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20695 fi # test -n "$CONFIG_HEADERS"
20698 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20703 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20705 case $ac_mode$ac_tag in
20707 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20708 :[FH
]-) ac_tag
=-:-;;
20709 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20726 -) ac_f
="$ac_tmp/stdin";;
20727 *) # Look for the file first in the build tree, then in the source tree
20728 # (if the path is not absolute). The absolute path cannot be DOS-style,
20729 # because $ac_f cannot contain `:'.
20733 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20735 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20737 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20738 as_fn_append ac_file_inputs
" '$ac_f'"
20741 # Let's still pretend it is `configure' which instantiates (i.e., don't
20742 # use $as_me), people would be surprised to read:
20743 # /* config.h. Generated by config.status. */
20744 configure_input
='Generated from '`
20745 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20747 if test x
"$ac_file" != x-
; then
20748 configure_input
="$ac_file. $configure_input"
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20750 $as_echo "$as_me: creating $ac_file" >&6;}
20752 # Neutralize special characters interpreted by sed in replacement strings.
20753 case $configure_input in #(
20754 *\
&* |
*\|
* |
*\\* )
20755 ac_sed_conf_input
=`$as_echo "$configure_input" |
20756 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20757 *) ac_sed_conf_input
=$configure_input;;
20761 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20762 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20767 ac_dir
=`$as_dirname -- "$ac_file" ||
20768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20769 X"$ac_file" : 'X\(//\)[^/]' \| \
20770 X"$ac_file" : 'X\(//\)$' \| \
20771 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20772 $as_echo X"$ac_file" |
20773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20777 /^X\(\/\/\)[^/].*/{
20790 as_dir
="$ac_dir"; as_fn_mkdir_p
20794 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20796 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20797 # A ".." for each directory in $ac_dir_suffix.
20798 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20799 case $ac_top_builddir_sub in
20800 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20801 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20804 ac_abs_top_builddir
=$ac_pwd
20805 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20806 # for backward compatibility:
20807 ac_top_builddir
=$ac_top_build_prefix
20810 .
) # We are building in place.
20812 ac_top_srcdir
=$ac_top_builddir_sub
20813 ac_abs_top_srcdir
=$ac_pwd ;;
20814 [\\/]* | ?
:[\\/]* ) # Absolute name.
20815 ac_srcdir
=$srcdir$ac_dir_suffix;
20816 ac_top_srcdir
=$srcdir
20817 ac_abs_top_srcdir
=$srcdir ;;
20818 *) # Relative name.
20819 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20820 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20821 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20823 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20833 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20834 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20836 ac_MKDIR_P
=$MKDIR_P
20838 [\\/$
]* | ?
:[\\/]* ) ;;
20839 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20844 # If the template does not know about datarootdir, expand it.
20845 # FIXME: This hack should be removed a few years after 2.60.
20846 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20857 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20858 *datarootdir
*) ac_datarootdir_seen
=yes;;
20859 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20861 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20864 ac_datarootdir_hack='
20865 s&@datadir@&$datadir&g
20866 s&@docdir@&$docdir&g
20867 s&@infodir@&$infodir&g
20868 s&@localedir@&$localedir&g
20869 s&@mandir@&$mandir&g
20870 s&\\\${datarootdir}&$datarootdir&g' ;;
20874 # Neutralize VPATH when `$srcdir' = `.'.
20875 # Shell code in configure.ac might set extrasub.
20876 # FIXME: do we really want to maintain this feature?
20877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20878 ac_sed_extra="$ac_vpsub
20881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20883 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20884 s|@configure_input@|
$ac_sed_conf_input|
;t t
20885 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20886 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20887 s
&@srcdir@
&$ac_srcdir&;t t
20888 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20889 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20890 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20891 s
&@builddir@
&$ac_builddir&;t t
20892 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20893 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20894 s
&@INSTALL@
&$ac_INSTALL&;t t
20895 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20896 $ac_datarootdir_hack
20898 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
20899 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20901 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20902 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20903 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20904 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20906 which seems to be undefined. Please make sure it is defined" >&5
20907 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20908 which seems to be undefined. Please make sure it is defined" >&2;}
20910 rm -f "$ac_tmp/stdin"
20912 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20913 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20921 if test x"$ac_file" != x-; then
20923 $as_echo "/* $configure_input */" \
20924 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20925 } >"$ac_tmp/config.h" \
20926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20927 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20929 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20932 mv "$ac_tmp/config.h" "$ac_file" \
20933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20936 $as_echo "/* $configure_input */" \
20937 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20938 || as_fn_error $? "could not create -" "$LINENO" 5
20946 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20949 # Prefer the file from the source tree if names are identical.
20950 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20951 ac_source=$srcdir/$ac_source
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20955 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20957 if test ! -r "$ac_source"; then
20958 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20962 # Try a relative symlink, then a hard link, then a copy.
20964 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20965 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20967 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20968 ln "$ac_source" "$ac_file" 2>/dev/null ||
20969 cp -p "$ac_source" "$ac_file" ||
20970 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20973 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20974 $as_echo "$as_me: executing $ac_file commands" >&6;}
20979 case $ac_file$ac_mode in
20980 "check_win32_symlinks":C)
20981 # Links sometimes fail undetected on Mingw -
20982 # so here we detect it and warn the user
20983 for FILE in $CONFIG_LINKS
20985 # test -e works for symlinks in the MinGW console
20986 test -e `expr "$FILE" : '\
([^
:]*\
)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
20987 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
20990 "src/include/pg_config.h":H)
20991 # Update timestamp for pg_config.h (see Makefile.global)
20992 echo >src/include/stamp-h
20994 "src/include/pg_config_ext.h":H)
20995 # Update timestamp for pg_config_ext.h (see Makefile.global)
20996 echo >src/include/stamp-ext-h
20998 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
21006 ac_clean_files=$ac_clean_files_save
21008 test $ac_write_fail = 0 ||
21009 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21012 # configure is writing to config.log, and then calls config.status.
21013 # config.status does its own redirection, appending to config.log.
21014 # Unfortunately, on DOS this fails, as config.log is still kept open
21015 # by configure, so config.status won't be able to
write to it
; its
21016 # output is simply discarded. So we exec the FD to /dev/null,
21017 # effectively closing config.log, so it can be properly (re)opened and
21018 # appended to by config.status. When coming back to configure, we
21019 # need to make the FD available again.
21020 if test "$no_create" != yes; then
21022 ac_config_status_args
=
21023 test "$silent" = yes &&
21024 ac_config_status_args
="$ac_config_status_args --quiet"
21026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21029 # would make configure fail if this is the last instruction.
21030 $ac_cs_success || as_fn_exit
1
21032 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21034 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}