2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 13devel.
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
='13devel'
586 PACKAGE_STRING
='PostgreSQL 13devel'
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
665 python_additional_libs
735 PERMIT_DECLARATION_AFTER_STATEMENT
807 program_transform_name
820 enable_option_checking
826 enable_integer_datetimes
860 with_libedit_preferred
872 ac_precious_vars
='build_alias
900 # Initialize some variables set by options.
902 ac_init_version
=false
903 ac_unrecognized_opts
=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
914 program_transform_name
=s
,x
,x
,
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir
='${exec_prefix}/bin'
929 sbindir
='${exec_prefix}/sbin'
930 libexecdir
='${exec_prefix}/libexec'
931 datarootdir
='${prefix}/share'
932 datadir
='${datarootdir}'
933 sysconfdir
='${prefix}/etc'
934 sharedstatedir
='${prefix}/com'
935 localstatedir
='${prefix}/var'
936 includedir
='${prefix}/include'
937 oldincludedir
='/usr/include'
938 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir
='${datarootdir}/info'
944 libdir
='${exec_prefix}/lib'
945 localedir
='${datarootdir}/locale'
946 mandir
='${datarootdir}/man'
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\
$ac_option
960 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 # Accept the important Cygnus configure options, so we can diagnose typos.
967 case $ac_dashdash$ac_option in
971 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
973 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
976 -build |
--build |
--buil |
--bui |
--bu)
977 ac_prev
=build_alias
;;
978 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
979 build_alias
=$ac_optarg ;;
981 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
982 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
983 ac_prev
=cache_file
;;
984 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
985 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
986 cache_file
=$ac_optarg ;;
989 cache_file
=config.cache
;;
991 -datadir |
--datadir |
--datadi |
--datad)
993 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
994 datadir
=$ac_optarg ;;
996 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
997 |
--dataroo |
--dataro |
--datar)
998 ac_prev
=datarootdir
;;
999 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1000 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1001 datarootdir
=$ac_optarg ;;
1003 -disable-* |
--disable-*)
1004 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1007 as_fn_error $?
"invalid feature name: $ac_useropt"
1008 ac_useropt_orig
=$ac_useropt
1009 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_
$ac_useropt"
1014 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep
=', ';;
1017 eval enable_
$ac_useropt=no
;;
1019 -docdir |
--docdir |
--docdi |
--doc |
--do)
1021 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1022 docdir
=$ac_optarg ;;
1024 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1026 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1027 dvidir
=$ac_optarg ;;
1029 -enable-* |
--enable-*)
1030 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1033 as_fn_error $?
"invalid feature name: $ac_useropt"
1034 ac_useropt_orig
=$ac_useropt
1035 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1038 "enable_
$ac_useropt"
1040 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep
=', ';;
1043 eval enable_
$ac_useropt=\
$ac_optarg ;;
1045 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1046 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1047 |
--exec |
--exe |
--ex)
1048 ac_prev
=exec_prefix
;;
1049 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1050 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1051 |
--exec=* |
--exe=* |
--ex=*)
1052 exec_prefix
=$ac_optarg ;;
1054 -gas |
--gas |
--ga |
--g)
1055 # Obsolete; use --with-gas.
1058 -help |
--help |
--hel |
--he |
-h)
1059 ac_init_help
=long
;;
1060 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1061 ac_init_help
=recursive
;;
1062 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1063 ac_init_help
=short
;;
1065 -host |
--host |
--hos |
--ho)
1066 ac_prev
=host_alias
;;
1067 -host=* |
--host=* |
--hos=* |
--ho=*)
1068 host_alias
=$ac_optarg ;;
1070 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1072 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1074 htmldir
=$ac_optarg ;;
1076 -includedir |
--includedir |
--includedi |
--included |
--include \
1077 |
--includ |
--inclu |
--incl |
--inc)
1078 ac_prev
=includedir
;;
1079 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1080 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1081 includedir
=$ac_optarg ;;
1083 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1085 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1086 infodir
=$ac_optarg ;;
1088 -libdir |
--libdir |
--libdi |
--libd)
1090 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1091 libdir
=$ac_optarg ;;
1093 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1094 |
--libexe |
--libex |
--libe)
1095 ac_prev
=libexecdir
;;
1096 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1097 |
--libexe=* |
--libex=* |
--libe=*)
1098 libexecdir
=$ac_optarg ;;
1100 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1101 ac_prev
=localedir
;;
1102 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1103 localedir
=$ac_optarg ;;
1105 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1106 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1107 ac_prev
=localstatedir
;;
1108 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1109 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1110 localstatedir
=$ac_optarg ;;
1112 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1114 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1115 mandir
=$ac_optarg ;;
1117 -nfp |
--nfp |
--nf)
1118 # Obsolete; use --without-fp.
1121 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1122 |
--no-cr |
--no-c |
-n)
1125 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1126 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1129 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1130 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1131 |
--oldin |
--oldi |
--old |
--ol |
--o)
1132 ac_prev
=oldincludedir
;;
1133 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1134 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1135 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1136 oldincludedir
=$ac_optarg ;;
1138 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1140 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1141 prefix
=$ac_optarg ;;
1143 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1144 |
--program-pre |
--program-pr |
--program-p)
1145 ac_prev
=program_prefix
;;
1146 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1147 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1148 program_prefix
=$ac_optarg ;;
1150 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1151 |
--program-suf |
--program-su |
--program-s)
1152 ac_prev
=program_suffix
;;
1153 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1154 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1155 program_suffix
=$ac_optarg ;;
1157 -program-transform-name |
--program-transform-name \
1158 |
--program-transform-nam |
--program-transform-na \
1159 |
--program-transform-n |
--program-transform- \
1160 |
--program-transform |
--program-transfor \
1161 |
--program-transfo |
--program-transf \
1162 |
--program-trans |
--program-tran \
1163 |
--progr-tra |
--program-tr |
--program-t)
1164 ac_prev
=program_transform_name
;;
1165 -program-transform-name=* |
--program-transform-name=* \
1166 |
--program-transform-nam=* |
--program-transform-na=* \
1167 |
--program-transform-n=* |
--program-transform-=* \
1168 |
--program-transform=* |
--program-transfor=* \
1169 |
--program-transfo=* |
--program-transf=* \
1170 |
--program-trans=* |
--program-tran=* \
1171 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1172 program_transform_name
=$ac_optarg ;;
1174 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1176 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1177 pdfdir
=$ac_optarg ;;
1179 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1181 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1184 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1185 |
-silent |
--silent |
--silen |
--sile |
--sil)
1188 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1190 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1192 sbindir
=$ac_optarg ;;
1194 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1195 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1196 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1198 ac_prev
=sharedstatedir
;;
1199 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1200 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1201 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1203 sharedstatedir
=$ac_optarg ;;
1205 -site |
--site |
--sit)
1207 -site=* |
--site=* |
--sit=*)
1210 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1212 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1213 srcdir
=$ac_optarg ;;
1215 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1216 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1217 ac_prev
=sysconfdir
;;
1218 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1219 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1220 sysconfdir
=$ac_optarg ;;
1222 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1223 ac_prev
=target_alias
;;
1224 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1225 target_alias
=$ac_optarg ;;
1227 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1230 -version |
--version |
--versio |
--versi |
--vers |
-V)
1231 ac_init_version
=: ;;
1234 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1237 as_fn_error $?
"invalid package name: $ac_useropt"
1238 ac_useropt_orig
=$ac_useropt
1239 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1244 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245 ac_unrecognized_sep
=', ';;
1247 eval with_
$ac_useropt=\
$ac_optarg ;;
1249 -without-* |
--without-*)
1250 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1253 as_fn_error $?
"invalid package name: $ac_useropt"
1254 ac_useropt_orig
=$ac_useropt
1255 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1260 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261 ac_unrecognized_sep
=', ';;
1263 eval with_
$ac_useropt=no
;;
1266 # Obsolete; use --with-x.
1269 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1270 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1271 ac_prev
=x_includes
;;
1272 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1273 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1274 x_includes
=$ac_optarg ;;
1276 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1277 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1278 ac_prev
=x_libraries
;;
1279 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1280 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1281 x_libraries
=$ac_optarg ;;
1283 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1284 Try \`$0 --help' for more information"
1288 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
1290 case $ac_envvar in #(
1291 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1292 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1294 eval $ac_envvar=\
$ac_optarg
1295 export $ac_envvar ;;
1298 # FIXME: should be removed in autoconf 3.0.
1299 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1301 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 if test -n "$ac_prev"; then
1309 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1310 as_fn_error $?
"missing argument to $ac_option"
1313 if test -n "$ac_unrecognized_opts"; then
1314 case $enable_option_checking in
1316 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1317 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321 # Check all directory arguments for consistency.
1322 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
1327 eval ac_val
=\$
$ac_var
1328 # Remove trailing slashes.
1331 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332 eval $ac_var=\
$ac_val;;
1334 # Be sure to have absolute directory names.
1336 [\\/$
]* | ?
:[\\/]* ) continue;;
1337 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1339 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1347 target
=$target_alias
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x
; then
1351 if test "x$build_alias" = x
; then
1352 cross_compiling
=maybe
1353 elif test "x$build_alias" != "x$host_alias"; then
1359 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1361 test "$silent" = yes && exec 6>/dev
/null
1364 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1365 ac_ls_di
=`ls -di .` &&
1366 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1367 as_fn_error $?
"working directory cannot be determined"
1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369 as_fn_error $?
"pwd does not report name of working directory"
1372 # Find the source files, if location was not specified.
1373 if test -z "$srcdir"; then
1374 ac_srcdir_defaulted
=yes
1375 # Try the directory containing this script, then the parent directory.
1376 ac_confdir
=`$as_dirname -- "$as_myself" ||
1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381 $as_echo X"$as_myself" |
1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1404 ac_srcdir_defaulted
=no
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1408 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1410 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1422 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 for ac_var
in $ac_precious_vars; do
1425 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1427 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1432 # Report the --help message.
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1438 \`configure' configures PostgreSQL 13devel to adapt to many kinds of systems.
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1445 Defaults for the options are specified in brackets.
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking ...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1469 For better control, use the options below.
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1496 --build=BUILD configure
for building on BUILD
[guessed
]
1497 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive
) echo "Configuration of PostgreSQL 13devel:";;
1508 --disable-option-checking ignore unrecognized
--enable/--with options
1509 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1510 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1511 --disable-integer-datetimes
1512 obsolete option
, no longer supported
1513 --enable-nls[=LANGUAGES
]
1514 enable Native Language Support
1515 --disable-rpath do not embed shared library search path
in
1517 --disable-spinlocks do not use spinlocks
1518 --disable-atomics do not use atomic operations
1519 --enable-debug build with debugging symbols
(-g)
1520 --enable-profiling build with profiling enabled
1521 --enable-coverage build with coverage testing instrumentation
1522 --enable-dtrace build with DTrace support
1523 --enable-tap-tests enable TAP tests
(requires Perl and IPC
::Run
)
1524 --enable-depend turn on automatic dependency tracking
1525 --enable-cassert enable assertion checks
(for debugging
)
1526 --disable-thread-safety disable thread-safety
in client libraries
1527 --disable-largefile omit support
for large files
1528 --disable-float4-byval disable float4 passed by value
1529 --disable-float8-byval disable float8 passed by value
1532 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1533 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1534 --with-extra-version=STRING
1535 append STRING to version
1536 --with-template=NAME override operating system template
1537 --with-includes=DIRS
look for additional header files
in DIRS
1538 --with-libraries=DIRS
look for additional libraries
in DIRS
1539 --with-libs=DIRS alternative spelling of
--with-libraries
1540 --with-pgport=PORTNUM
set default port number
[5432]
1541 --with-blocksize=BLOCKSIZE
1542 set table block size
in kB
[8]
1543 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1544 --with-wal-blocksize=BLOCKSIZE
1545 set WAL block size
in kB
[8]
1546 --with-CC=CMD
set compiler
(deprecated
)
1547 --with-llvm build with LLVM based JIT support
1548 --with-icu build with ICU support
1549 --with-tcl build Tcl modules
(PL
/Tcl
)
1550 --with-tclconfig=DIR tclConfig.sh is
in DIR
1551 --with-perl build Perl modules
(PL
/Perl
)
1552 --with-python build Python modules
(PL
/Python
)
1553 --with-gssapi build with GSSAPI support
1554 --with-krb-srvnam=NAME default service principal name
in Kerberos
(GSSAPI
)
1556 --with-pam build with PAM support
1557 --with-bsd-auth build with BSD Authentication support
1558 --with-ldap build with LDAP support
1559 --with-bonjour build with Bonjour support
1560 --with-openssl build with OpenSSL support
1561 --with-selinux build with SELinux support
1562 --with-systemd build with systemd support
1563 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1564 --with-libedit-preferred
1565 prefer BSD Libedit over GNU Readline
1566 --with-uuid=LIB build contrib
/uuid-ossp using LIB
(bsd
,e2fs
,ossp
)
1567 --with-ossp-uuid obsolete spelling of
--with-uuid=ossp
1568 --with-libxml build with XML support
1569 --with-libxslt use XSLT support when building contrib
/xml2
1570 --with-system-tzdata=DIR
1571 use system
time zone data
in DIR
1572 --without-zlib do not use Zlib
1573 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1575 Some influential environment variables
:
1576 CC C compiler
command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1579 nonstandard directory
<lib dir
>
1580 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1581 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1582 you have headers
in a nonstandard directory
<include dir
>
1583 CXX C
++ compiler
command
1584 CXXFLAGS C
++ compiler flags
1585 LLVM_CONFIG path to llvm-config
command
1586 CLANG path to clang compiler to generate bitcode
1588 PKG_CONFIG path to pkg-config utility
1590 directories to add to pkg-config
's search path
1592 path overriding pkg-config's built-in search path
1593 ICU_CFLAGS C compiler flags
for ICU
, overriding pkg-config
1594 ICU_LIBS linker flags
for ICU
, overriding pkg-config
1595 XML2_CONFIG path to xml2-config utility
1596 LDFLAGS_EX extra linker flags
for linking executables only
1597 LDFLAGS_SL extra linker flags
for linking shared libraries only
1599 PYTHON Python program
1600 MSGFMT msgfmt program
for NLS
1601 TCLSH Tcl interpreter program
(tclsh
)
1603 Use these variables to override the choices made by
`configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1606 Report bugs to <pgsql-bugs@lists.postgresql.org>.
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" ||
1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1623 # A ".." for each directory in $ac_dir_suffix.
1624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1625 case $ac_top_builddir_sub in
1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630 ac_abs_top_builddir=$ac_pwd
1631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632 # for backward compatibility:
1633 ac_top_builddir=$ac_top_build_prefix
1636 .) # We are building in place.
1638 ac_top_srcdir=$ac_top_builddir_sub
1639 ac_abs_top_srcdir=$ac_pwd ;;
1640 [\\/]* | ?:[\\/]* ) # Absolute name.
1641 ac_srcdir=$srcdir$ac_dir_suffix;
1642 ac_top_srcdir=$srcdir
1643 ac_abs_top_srcdir=$srcdir ;;
1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646 ac_top_srcdir=$ac_top_build_prefix$srcdir
1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1651 cd "$ac_dir" || { ac_status=$?; continue; }
1652 # Check for guested configure.
1653 if test -f "$ac_srcdir/configure.gnu"; then
1655 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1656 elif test -f "$ac_srcdir/configure"; then
1658 $SHELL "$ac_srcdir/configure" --help=recursive
1660 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1662 cd "$ac_pwd" || { ac_status=$?; break; }
1666 test -n "$ac_init_help" && exit $ac_status
1667 if $ac_init_version; then
1669 PostgreSQL configure 13devel
1670 generated by GNU Autoconf 2.69
1672 Copyright (C) 2012 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1676 Copyright (c) 1996-2019, PostgreSQL Global Development Group
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext
1692 if { { ac_try="$ac_compile"
1694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1695 *) ac_try_echo
=$ac_try;;
1697 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1701 if test -s conftest.err
; then
1702 grep -v '^ *+' conftest.err
>conftest.er1
1703 cat conftest.er1
>&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.
$ac_objext; then :
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.
$ac_ext >&5
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status
$ac_retval
1721 } # ac_fn_c_try_compile
1723 # ac_fn_cxx_try_compile LINENO
1724 # ----------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_cxx_try_compile
()
1728 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1729 rm -f conftest.
$ac_objext
1730 if { { ac_try
="$ac_compile"
1732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_compile") 2>conftest.err
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_cxx_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest.$ac_objext; then :
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1759 } # ac_fn_cxx_try_compile
1761 # ac_fn_c_try_link LINENO
1762 # -----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext conftest$ac_exeext
1768 if { { ac_try="$ac_link"
1770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1771 *) ac_try_echo
=$ac_try;;
1773 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_link") 2>conftest.err
1777 if test -s conftest.err
; then
1778 grep -v '^ *+' conftest.err
>conftest.er1
1779 cat conftest.er1
>&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest
$ac_exeext && {
1787 test "$cross_compiling" = yes ||
1788 test -x conftest
$ac_exeext
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.
$ac_ext >&5
1797 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1798 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1799 # interfere with the next link command; also delete a directory that is
1800 # left behind by Apple's compiler. We do this before executing the actions.
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status
$ac_retval
1805 } # ac_fn_c_try_link
1807 # ac_fn_c_try_cpp LINENO
1808 # ----------------------
1809 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1813 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } > conftest.i && {
1829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1844 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1847 # the include files in INCLUDES and setting the cache variable VAR
1849 ac_fn_c_check_header_mongrel ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if eval \${$3+:} false; then :
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1862 # Is the header compilable?
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1864 $as_echo_n "checking $2 usability... " >&6; }
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871 ac_header_compiler=yes
1873 ac_header_compiler=no
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1877 $as_echo "$ac_header_compiler" >&6; }
1879 # Is the header present?
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1881 $as_echo_n "checking $2 presence... " >&6; }
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1886 if ac_fn_c_try_cpp "$LINENO"; then :
1887 ac_header_preproc=yes
1889 ac_header_preproc=no
1891 rm -f conftest.err conftest.i conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1893 $as_echo "$ac_header_preproc" >&6; }
1895 # So? What about this header?
1896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1899 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1905 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1907 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1909 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1911 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914 ( $as_echo "## ---------------------------------------------- ##
1915 ## Report this to pgsql-bugs@lists.postgresql.org ##
1916 ## ---------------------------------------------- ##"
1917 ) | sed "s/^/$as_me: WARNING: /" >&2
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1925 eval "$3=\$ac_header_compiler"
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 } # ac_fn_c_check_header_mongrel
1935 # ac_fn_c_try_run LINENO
1936 # ----------------------
1937 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1938 # that executables *can* be run.
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if { { ac_try="$ac_link"
1944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1945 *) ac_try_echo
=$ac_try;;
1947 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>&5
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1953 { { case "(($ac_try" in
1954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_try") 2>&5
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; }; }; then :
1965 $as_echo "$as_me: program exited with status $ac_status" >&5
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1969 ac_retval=$ac_status
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1977 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists and can be compiled using the include files in
1980 # INCLUDES, setting the cache variable VAR accordingly.
1981 ac_fn_c_check_header_compile ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1994 if ac_fn_c_try_compile "$LINENO"; then :
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 } # ac_fn_c_check_header_compile
2008 # ac_fn_c_check_func LINENO FUNC VAR
2009 # ----------------------------------
2010 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2011 ac_fn_c_check_func ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2023 #define $2 innocuous_$2
2025 /* System header to define __stub macros and hopefully few prototypes,
2026 which can conflict with char $2 (); below.
2027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2028 <limits.h> exists even on freestanding compilers. */
2031 # include <limits.h>
2033 # include <assert.h>
2038 /* Override any GCC internal prototype to avoid an error.
2039 Use char because int might match the return type of a GCC
2040 builtin and then its argument prototype would still apply. */
2045 /* The GNU C library defines this for functions which it implements
2046 to always fail with ENOSYS. Some functions are actually named
2047 something starting with __ and the normal name is an alias. */
2048 #if defined __stub_$2 || defined __stub___$2
2060 if ac_fn_c_try_link "$LINENO"; then :
2065 rm -f core conftest.err conftest.$ac_objext \
2066 conftest$ac_exeext conftest.$ac_ext
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 } # ac_fn_c_check_func
2075 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2076 # -------------------------------------------
2077 # Tests whether TYPE exists after having included INCLUDES, setting cache
2078 # variable VAR accordingly.
2079 ac_fn_c_check_type ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2113 if ac_fn_c_try_compile "$LINENO"; then :
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127 } # ac_fn_c_check_type
2129 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2130 # ----------------------------------------------------
2131 # Tries to find if the field MEMBER exists in type AGGR, after including
2132 # INCLUDES, setting cache variable VAR accordingly.
2133 ac_fn_c_check_member ()
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2137 $as_echo_n "checking for $2.$3... " >&6; }
2138 if eval \${$4+:} false; then :
2139 $as_echo_n "(cached) " >&6
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2154 if ac_fn_c_try_compile "$LINENO"; then :
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2164 if (sizeof ac_aggr.$3)
2170 if ac_fn_c_try_compile "$LINENO"; then :
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184 } # ac_fn_c_check_member
2186 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2187 # --------------------------------------------
2188 # Tries to find the compile-time value of EXPR in a program that includes
2189 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2191 ac_fn_c_compute_int ()
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 if test "$cross_compiling" = yes; then
2195 # Depending upon the size, compute the lo and hi bounds.
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2202 static int test_array [1 - 2 * !(($2) >= 0)];
2204 return test_array [0];
2210 if ac_fn_c_try_compile "$LINENO"; then :
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2219 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2221 return test_array [0];
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228 ac_hi=$ac_mid; break
2230 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2231 if test $ac_lo -le $ac_mid; then
2235 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2246 static int test_array [1 - 2 * !(($2) < 0)];
2248 return test_array [0];
2254 if ac_fn_c_try_compile "$LINENO"; then :
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2263 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2265 return test_array [0];
2271 if ac_fn_c_try_compile "$LINENO"; then :
2272 ac_lo=$ac_mid; break
2274 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2275 if test $ac_mid -le $ac_hi; then
2279 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 # Binary search between lo and hi bounds.
2290 while test "x$ac_lo" != "x$ac_hi"; do
2291 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2298 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2300 return test_array [0];
2306 if ac_fn_c_try_compile "$LINENO"; then :
2309 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2321 static long int longval () { return $2; }
2322 static unsigned long int ulongval () { return $2; }
2329 FILE *f = fopen ("conftest.val", "w");
2334 long int i = longval ();
2337 fprintf (f, "%ld", i);
2341 unsigned long int i = ulongval ();
2344 fprintf (f, "%lu", i);
2346 /* Do not output a trailing newline, as this causes \r\n confusion
2347 on some platforms. */
2348 return ferror (f) || fclose (f) != 0;
2354 if ac_fn_c_try_run "$LINENO"; then :
2355 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2360 conftest.$ac_objext conftest.beam conftest.$ac_ext
2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365 as_fn_set_status $ac_retval
2367 } # ac_fn_c_compute_int
2369 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2370 # ---------------------------------------------
2371 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2373 ac_fn_c_check_decl ()
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
2377 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2378 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2380 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2381 if eval \${$3+:} false; then :
2382 $as_echo_n "(cached) " >&6
2384 ac_save_werror_flag=$ac_c_werror_flag
2385 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2392 #ifndef $as_decl_name
2394 (void) $as_decl_use;
2396 (void) $as_decl_name;
2404 if ac_fn_c_try_compile "$LINENO"; then :
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 ac_c_werror_flag=$ac_save_werror_flag
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 } # ac_fn_c_check_decl
2418 cat >config.log <<_ACEOF
2419 This file contains any messages produced by compilers while
2420 running configure, to aid debugging if configure makes a mistake.
2422 It was created by PostgreSQL $as_me 13devel, which was
2423 generated by GNU Autoconf 2.69. Invocation command line was
2435 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2436 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2437 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2438 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2439 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2441 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2442 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2444 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2445 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2446 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2447 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2448 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2449 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2450 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir=.
2459 $as_echo "PATH: $as_dir"
2475 # Keep a trace of the command line.
2476 # Strip out --no-create and --no-recursion so they do not pile up.
2477 # Strip out --silent because we don't want to record it for future runs.
2478 # Also quote any args containing shell meta-characters.
2479 # Make two passes to allow for proper duplicate-argument suppression.
2483 ac_must_keep_next=false
2489 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2491 | -silent | --silent | --silen | --sile | --sil)
2494 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2497 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2499 as_fn_append ac_configure_args1 " '$ac_arg'"
2500 if test $ac_must_keep_next = true; then
2501 ac_must_keep_next=false # Got value, back to normal.
2504 *=* | --config-cache | -C | -disable-* | --disable-* \
2505 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2506 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2507 | -with-* | --with-* | -without-* | --without-* | --x)
2508 case "$ac_configure_args0 " in
2509 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2512 -* ) ac_must_keep_next=true ;;
2515 as_fn_append ac_configure_args " '$ac_arg'"
2520 { ac_configure_args0=; unset ac_configure_args0;}
2521 { ac_configure_args1=; unset ac_configure_args1;}
2523 # When interrupted or exit'd, cleanup temporary files, and complete
2524 # config.log. We remove comments because anyway the quotes in there
2525 # would cause problems or look ugly.
2526 # WARNING: Use '\'' to represent an apostrophe within the trap.
2527 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2528 trap 'exit_status=$?
2529 # Save into config.log some information that might help in debugging.
2533 $as_echo "## ---------------- ##
2534 ## Cache variables. ##
2535 ## ---------------- ##"
2537 # The following way of writing the cache mishandles newlines in values,
2539 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2540 eval ac_val=\$$ac_var
2544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2548 _ | IFS | as_nl) ;; #(
2549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2550 *) { eval $ac_var=; unset $ac_var;} ;;
2555 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2556 *${as_nl}ac_space=\ *)
2558 "s/'\''/'\''\\\\'\'''\''/g;
2559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2569 $as_echo "## ----------------- ##
2570 ## Output variables. ##
2571 ## ----------------- ##"
2573 for ac_var in $ac_subst_vars
2575 eval ac_val=\$$ac_var
2577 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2579 $as_echo "$ac_var='\''$ac_val'\''"
2583 if test -n "$ac_subst_files"; then
2584 $as_echo "## ------------------- ##
2585 ## File substitutions. ##
2586 ## ------------------- ##"
2588 for ac_var in $ac_subst_files
2590 eval ac_val=\$$ac_var
2592 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2594 $as_echo "$ac_var='\''$ac_val'\''"
2599 if test -s confdefs.h; then
2600 $as_echo "## ----------- ##
2607 test "$ac_signal" != 0 &&
2608 $as_echo "$as_me: caught signal $ac_signal"
2609 $as_echo "$as_me: exit $exit_status"
2611 rm -f core *.core core.conftest.* &&
2612 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2615 for ac_signal in 1 2 13 15; do
2616 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2621 rm -f -r conftest* confdefs.h
2623 $as_echo "/* confdefs.h */" > confdefs.h
2625 # Predefined preprocessor variables.
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE_NAME "$PACKAGE_NAME"
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_STRING "$PACKAGE_STRING"
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_URL "$PACKAGE_URL"
2652 # Let the site file select an alternate cache file if it wants to.
2653 # Prefer an explicitly selected file to automatically selected ones.
2656 if test -n "$CONFIG_SITE"; then
2657 # We do not want a PATH search for config.site.
2658 case $CONFIG_SITE in #((
2659 -*) ac_site_file1=./$CONFIG_SITE;;
2660 */*) ac_site_file1=$CONFIG_SITE;;
2661 *) ac_site_file1=./$CONFIG_SITE;;
2663 elif test "x$prefix" != xNONE; then
2664 ac_site_file1=$prefix/share/config.site
2665 ac_site_file2=$prefix/etc/config.site
2667 ac_site_file1=$ac_default_prefix/share/config.site
2668 ac_site_file2=$ac_default_prefix/etc/config.site
2670 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2672 test "x$ac_site_file" = xNONE && continue
2673 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2675 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2676 sed 's/^/| /' "$ac_site_file" >&5
2678 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 as_fn_error $? "failed to load site
script $ac_site_file
2681 See \
`config.log' for more details" "$LINENO" 5; }
2685 if test -r "$cache_file"; then
2686 # Some versions of bash will fail to source /dev/null (special files
2687 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2688 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2690 $as_echo "$as_me: loading cache $cache_file" >&6;}
2692 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2693 *) . "./$cache_file";;
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2698 $as_echo "$as_me: creating cache $cache_file" >&6;}
2702 # Check that the precious variables saved in the cache have kept the same
2704 ac_cache_corrupted=false
2705 for ac_var in $ac_precious_vars; do
2706 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2707 eval ac_new_set=\$ac_env_${ac_var}_set
2708 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2709 eval ac_new_val=\$ac_env_${ac_var}_value
2710 case $ac_old_set,$ac_new_set in
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2713 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2714 ac_cache_corrupted=: ;;
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2717 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2718 ac_cache_corrupted=: ;;
2721 if test "x$ac_old_val" != "x$ac_new_val"; then
2722 # differences in whitespace do not lead to failure.
2723 ac_old_val_w=`echo x
$ac_old_val`
2724 ac_new_val_w=`echo x
$ac_new_val`
2725 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2727 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2728 ac_cache_corrupted=:
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2731 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2732 eval $ac_var=\$ac_old_val
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2735 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2737 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2740 # Pass precious variables to config.status.
2741 if test "$ac_new_set" = set; then
2743 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2744 *) ac_arg=$ac_var=$ac_new_val ;;
2746 case " $ac_configure_args " in
2747 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2748 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2752 if $ac_cache_corrupted; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2756 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2757 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2759 ## -------------------- ##
2760 ## Main body of script. ##
2761 ## -------------------- ##
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 for ac_dir in config "$srcdir"/config; do
2776 if test -f "$ac_dir/install-sh"; then
2778 ac_install_sh="$ac_aux_dir/install-sh -c"
2780 elif test -f "$ac_dir/install.sh"; then
2782 ac_install_sh="$ac_aux_dir/install.sh -c"
2784 elif test -f "$ac_dir/shtool"; then
2786 ac_install_sh="$ac_aux_dir/shtool install -c"
2790 if test -z "$ac_aux_dir"; then
2791 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2794 # These three variables are undocumented and unsupported,
2795 # and are intended to be withdrawn in a future Autoconf release.
2796 # They can cause serious problems if a builder's source tree is in a directory
2797 # whose full name contains unusual characters.
2798 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2799 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2800 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2804 configure_args=$ac_configure_args
2807 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2810 cat >>confdefs.h <<_ACEOF
2811 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2818 # Check whether --with-extra-version was given.
2819 if test "${with_extra_version+set}" = set; then :
2820 withval=$with_extra_version;
2823 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2826 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2829 PG_VERSION="$PACKAGE_VERSION$withval"
2834 PG_VERSION="$PACKAGE_VERSION"
2839 cat >>confdefs.h <<_ACEOF
2840 #define PG_VERSION "$PG_VERSION"
2844 # Make sure we can run config.sub.
2845 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2846 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2849 $as_echo_n "checking build system type... " >&6; }
2850 if ${ac_cv_build+:} false; then :
2851 $as_echo_n "(cached) " >&6
2853 ac_build_alias=$build_alias
2854 test "x$ac_build_alias" = x &&
2855 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2856 test "x$ac_build_alias" = x &&
2857 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2858 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2859 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2863 $as_echo "$ac_cv_build" >&6; }
2864 case $ac_cv_build in
2866 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2869 ac_save_IFS=$IFS; IFS='-'
2875 # Remember, the first character of IFS is used to create $*,
2876 # except with old shells:
2879 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2883 $as_echo_n "checking host system type... " >&6; }
2884 if ${ac_cv_host+:} false; then :
2885 $as_echo_n "(cached) " >&6
2887 if test "x$host_alias" = x; then
2888 ac_cv_host=$ac_cv_build
2890 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2891 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2896 $as_echo "$ac_cv_host" >&6; }
2899 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2902 ac_save_IFS=$IFS; IFS='-'
2908 # Remember, the first character of IFS is used to create $*,
2909 # except with old shells:
2912 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2918 $as_echo_n "checking which template to use... " >&6; }
2923 # Check whether --with-template was given.
2924 if test "${with_template+set}" = set; then :
2925 withval=$with_template;
2928 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2931 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2936 list) echo; ls "$srcdir/src/template"; exit;;
2937 *) if test -f "$srcdir/src/template/$with_template" ; then
2940 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2949 # --with-template not given
2952 aix*) template=aix ;;
2953 cygwin*) template=cygwin ;;
2954 darwin*) template=darwin ;;
2955 dragonfly*) template=netbsd ;;
2956 freebsd*) template=freebsd ;;
2957 hpux*) template=hpux ;;
2958 linux*|gnu*|k*bsd*-gnu)
2960 mingw*) template=win32 ;;
2961 netbsd*) template=netbsd ;;
2962 openbsd*) template=openbsd ;;
2963 solaris*) template=solaris ;;
2966 if test x"$template" = x"" ; then
2968 *******************************************************************
2969 PostgreSQL has apparently not been ported to your platform yet.
2970 To try a manual configuration, look into the src/template directory
2971 for a similar platform and use the '--with-template=' option.
2973 Please also contact <pgsql-bugs@lists.postgresql.org> to see about
2974 rectifying this. Include the above 'checking host system type...'
2976 *******************************************************************
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2986 $as_echo "$template" >&6; }
2991 # Initialize default assumption that we do not need separate assembly code
2992 # for TAS (test-and-set). This can be overridden by the template file
2993 # when it's executed.
3000 ## Command line options
3004 # Add non-standard directories to the include path
3009 # Check whether --with-includes was given.
3010 if test "${with_includes+set}" = set; then :
3011 withval=$with_includes;
3014 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3017 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3030 # Add non-standard directories to the library search path
3035 # Check whether --with-libraries was given.
3036 if test "${with_libraries+set}" = set; then :
3037 withval=$with_libraries;
3040 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3043 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3046 LIBRARY_DIRS=$withval
3057 # Check whether --with-libs was given.
3058 if test "${with_libs+set}" = set; then :
3062 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3065 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3068 LIBRARY_DIRS=$withval
3078 # 64-bit integer date/time storage is now the only option, but to avoid
3079 # unnecessary breakage of build scripts, continue to accept an explicit
3080 # "--enable-integer-datetimes" switch.
3084 # Check whether --enable-integer-datetimes was given.
3085 if test "${enable_integer_datetimes+set}" = set; then :
3086 enableval=$enable_integer_datetimes;
3092 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3095 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3100 enable_integer_datetimes=yes
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3111 $as_echo_n "checking whether NLS is wanted... " >&6; }
3114 # Check whether --enable-nls was given.
3115 if test "${enable_nls+set}" = set; then :
3116 enableval=$enable_nls;
3126 WANTED_LANGUAGES=$enableval
3136 if test "$enable_nls" = yes; then
3138 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3143 $as_echo "$enable_nls" >&6; }
3148 # Default port number (--with-pgport), default 5432
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3151 $as_echo_n "checking for default port number... " >&6; }
3155 # Check whether --with-pgport was given.
3156 if test "${with_pgport+set}" = set; then :
3157 withval=$with_pgport;
3160 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3163 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3166 default_port=$withval
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3176 $as_echo "$default_port" >&6; }
3177 # Need both of these because some places want an integer and some a string
3179 cat >>confdefs.h <<_ACEOF
3180 #define DEF_PGPORT ${default_port}
3184 cat >>confdefs.h <<_ACEOF
3185 #define DEF_PGPORT_STR "${default_port}"
3190 # It's worth validating port; you can get very confusing errors otherwise
3191 if test x"$default_port" = x""; then
3192 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3193 elif test ! x`echo "$default_port" |
sed -e 's/[0-9]*//'` = x""; then
3194 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3195 elif test ! x`echo "$default_port" |
sed -e 's/^0.//'` = x"$default_port"; then
3196 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3197 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3198 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3202 # '-rpath'-like feature can be disabled
3206 # Check whether --enable-rpath was given.
3207 if test "${enable_rpath+set}" = set; then :
3208 enableval=$enable_rpath;
3217 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3234 # Check whether --enable-spinlocks was given.
3235 if test "${enable_spinlocks+set}" = set; then :
3236 enableval=$enable_spinlocks;
3245 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3250 enable_spinlocks=yes
3261 # Check whether --enable-atomics was given.
3262 if test "${enable_atomics+set}" = set; then :
3263 enableval=$enable_atomics;
3272 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3284 # --enable-debug adds -g to compiler flags
3288 # Check whether --enable-debug was given.
3289 if test "${enable_debug+set}" = set; then :
3290 enableval=$enable_debug;
3299 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3312 # --enable-profiling enables gcc profiling
3316 # Check whether --enable-profiling was given.
3317 if test "${enable_profiling+set}" = set; then :
3318 enableval=$enable_profiling;
3327 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3339 # --enable-coverage enables generation of code coverage metrics with gcov
3343 # Check whether --enable-coverage was given.
3344 if test "${enable_coverage+set}" = set; then :
3345 enableval=$enable_coverage;
3348 if test -z "$GCOV"; then
3351 # Extract the first word of "$ac_prog", so it can be a program name with args.
3352 set dummy $ac_prog; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_path_GCOV+:} false; then :
3356 $as_echo_n "(cached) " >&6
3360 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 GCOV=$ac_cv_path_GCOV
3382 if test -n "$GCOV"; then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3384 $as_echo "$GCOV" >&6; }
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3391 test -n "$GCOV" && break
3395 # Report the value of GCOV in configure's output in all cases.
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3397 $as_echo_n "checking for GCOV... " >&6; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3399 $as_echo "$GCOV" >&6; }
3402 if test -z "$GCOV"; then
3403 as_fn_error $? "gcov not found" "$LINENO" 5
3405 if test -z "$LCOV"; then
3408 # Extract the first word of "$ac_prog", so it can be a program name with args.
3409 set dummy $ac_prog; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_path_LCOV+:} false; then :
3413 $as_echo_n "(cached) " >&6
3417 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 LCOV=$ac_cv_path_LCOV
3439 if test -n "$LCOV"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3441 $as_echo "$LCOV" >&6; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3448 test -n "$LCOV" && break
3452 # Report the value of LCOV in configure's output in all cases.
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3454 $as_echo_n "checking for LCOV... " >&6; }
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3456 $as_echo "$LCOV" >&6; }
3459 if test -z "$LCOV"; then
3460 as_fn_error $? "lcov not found" "$LINENO" 5
3462 if test -z "$GENHTML"; then
3463 for ac_prog in genhtml
3465 # Extract the first word of "$ac_prog", so it can be a program name with args.
3466 set dummy $ac_prog; ac_word=$2
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468 $as_echo_n "checking for $ac_word... " >&6; }
3469 if ${ac_cv_path_GENHTML+:} false; then :
3470 $as_echo_n "(cached) " >&6
3474 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 GENHTML=$ac_cv_path_GENHTML
3496 if test -n "$GENHTML"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3498 $as_echo "$GENHTML" >&6; }
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3505 test -n "$GENHTML" && break
3509 # Report the value of GENHTML in configure's output in all cases.
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3511 $as_echo_n "checking for GENHTML... " >&6; }
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3513 $as_echo "$GENHTML" >&6; }
3516 if test -z "$GENHTML"; then
3517 as_fn_error $? "genhtml not found" "$LINENO" 5
3524 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3541 # Check whether --enable-dtrace was given.
3542 if test "${enable_dtrace+set}" = set; then :
3543 enableval=$enable_dtrace;
3546 if test -z "$DTRACE"; then
3547 for ac_prog in dtrace
3549 # Extract the first word of "$ac_prog", so it can be a program name with args.
3550 set dummy $ac_prog; ac_word=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if ${ac_cv_path_DTRACE+:} false; then :
3554 $as_echo_n "(cached) " >&6
3558 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 DTRACE=$ac_cv_path_DTRACE
3580 if test -n "$DTRACE"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3582 $as_echo "$DTRACE" >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3589 test -n "$DTRACE" && break
3593 # Report the value of DTRACE in configure's output in all cases.
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3595 $as_echo_n "checking for DTRACE... " >&6; }
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3597 $as_echo "$DTRACE" >&6; }
3600 if test -z "$DTRACE"; then
3601 as_fn_error $? "dtrace not found" "$LINENO" 5
3609 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3626 # Check whether --enable-tap-tests was given.
3627 if test "${enable_tap_tests+set}" = set; then :
3628 enableval=$enable_tap_tests;
3637 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3653 $as_echo_n "checking for block size... " >&6; }
3657 # Check whether --with-blocksize was given.
3658 if test "${with_blocksize+set}" = set; then :
3659 withval=$with_blocksize;
3662 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3665 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3677 case ${blocksize} in
3684 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3687 $as_echo "${blocksize}kB" >&6; }
3690 cat >>confdefs.h <<_ACEOF
3691 #define BLCKSZ ${BLCKSZ}
3696 # Relation segment size
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3699 $as_echo_n "checking for segment size... " >&6; }
3703 # Check whether --with-segsize was given.
3704 if test "${with_segsize+set}" = set; then :
3705 withval=$with_segsize;
3708 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3711 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3723 # this expression is set up to avoid unnecessary integer overflow
3724 # blocksize is already guaranteed to be a factor of 1024
3725 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3726 test $? -eq 0 || exit 1
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3728 $as_echo "${segsize}GB" >&6; }
3731 cat >>confdefs.h <<_ACEOF
3732 #define RELSEG_SIZE ${RELSEG_SIZE}
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3740 $as_echo_n "checking for WAL block size... " >&6; }
3744 # Check whether --with-wal-blocksize was given.
3745 if test "${with_wal_blocksize+set}" = set; then :
3746 withval=$with_wal_blocksize;
3749 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3752 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3755 wal_blocksize=$withval
3764 case ${wal_blocksize} in
3765 1) XLOG_BLCKSZ=1024;;
3766 2) XLOG_BLCKSZ=2048;;
3767 4) XLOG_BLCKSZ=4096;;
3768 8) XLOG_BLCKSZ=8192;;
3769 16) XLOG_BLCKSZ=16384;;
3770 32) XLOG_BLCKSZ=32768;;
3771 64) XLOG_BLCKSZ=65536;;
3772 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3775 $as_echo "${wal_blocksize}kB" >&6; }
3778 cat >>confdefs.h <<_ACEOF
3779 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3787 # For historical reasons you can also use --with-CC to specify the C compiler
3788 # to use, although the standard way to do this is to set the CC environment
3793 # Check whether --with-CC was given.
3794 if test "${with_CC+set}" = set; then :
3798 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3801 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3813 aix) pgac_cc_list="gcc xlc"; pgac_cxx_list="g++ xlC";;
3814 *) pgac_cc_list="gcc cc"; pgac_cxx_list="g++ c++";;
3818 ac_cpp='$CPP $CPPFLAGS'
3819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822 if test -n "$ac_tool_prefix"; then
3823 for ac_prog in $pgac_cc_list
3825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if ${ac_cv_prog_CC+:} false; then :
3830 $as_echo_n "(cached) " >&6
3832 if test -n "$CC"; then
3833 ac_cv_prog_CC="$CC" # Let the user override the test.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 if test -n "$CC"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3855 $as_echo "$CC" >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3862 test -n "$CC" && break
3865 if test -z "$CC"; then
3867 for ac_prog in $pgac_cc_list
3869 # Extract the first word of "$ac_prog", so it can be a program name with args.
3870 set dummy $ac_prog; ac_word=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3874 $as_echo_n "(cached) " >&6
3876 if test -n "$ac_ct_CC"; then
3877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_ac_ct_CC="$ac_prog"
3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3897 if test -n "$ac_ct_CC"; then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3899 $as_echo "$ac_ct_CC" >&6; }
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3906 test -n "$ac_ct_CC" && break
3909 if test "x$ac_ct_CC" = x; then
3912 case $cross_compiling:$ac_tool_warned in
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3916 ac_tool_warned=yes ;;
3923 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3926 See \
`config.log' for more details" "$LINENO" 5; }
3928 # Provide some information about the compiler.
3929 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3932 for ac_option in --version -v -V -qversion; do
3933 { { ac_try="$ac_compiler $ac_option >&5"
3935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3936 *) ac_try_echo
=$ac_try;;
3938 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 $as_echo "$ac_try_echo"; } >&5
3940 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3942 if test -s conftest.err
; then
3944 ... rest of stderr output deleted ...
3945 10q' conftest.err
>conftest.er1
3946 cat conftest.er1
>&5
3948 rm -f conftest.er1 conftest.err
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3964 ac_clean_files_save
=$ac_clean_files
3965 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3966 # Try to create an executable without -o first, disregard a.out.
3967 # It will help us diagnose broken compilers, and finding out an intuition
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3970 $as_echo_n "checking whether the C compiler works... " >&6; }
3971 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3973 # The possible output files:
3974 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3977 for ac_file
in $ac_files
3980 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3981 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3986 if { { ac_try
="$ac_link_default"
3988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 $as_echo "$ac_try_echo"; } >&5
3993 (eval "$ac_link_default") 2>&5
3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }; then :
3997 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3998 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3999 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4000 # so that the user can short-circuit this test for compilers unknown to
4002 for ac_file in $ac_files ''
4004 test -f "$ac_file" || continue
4006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4009 # We found the default executable, but exeext='' is most
4013 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4015 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4017 # We set ac_cv_exeext here because the later test for it is not
4018 # safe: cross compilers may not add the suffix if given an `-o'
4019 # argument, so we may need to know it at that point already.
4020 # Even if this section looks crufty: it has the advantage of
4027 test "$ac_cv_exeext" = no && ac_cv_exeext=
4032 if test -z "$ac_file"; then :
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034 $as_echo "no" >&6; }
4035 $as_echo "$as_me: failed program was:" >&5
4036 sed 's
/^
/|
/' conftest.$ac_ext >&5
4038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
4040 as_fn_error 77 "C compiler cannot create executables
4041 See \`config.log
' for more details" "$LINENO" 5; }
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4044 $as_echo "yes" >&6; }
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4047 $as_echo_n "checking for C compiler default output file name... " >&6; }
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4049 $as_echo "$ac_file" >&6; }
4050 ac_exeext=$ac_cv_exeext
4052 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4053 ac_clean_files=$ac_clean_files_save
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4055 $as_echo_n "checking for suffix of executables... " >&6; }
4056 if { { ac_try="$ac_link"
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_link") 2>&5
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }; then :
4067 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4068 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4069 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4071 for ac_file
in conftest.exe conftest conftest.
*; do
4072 test -f "$ac_file" ||
continue
4074 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4075 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4083 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4084 See \`config.log' for more details" "$LINENO" 5; }
4086 rm -f conftest conftest
$ac_cv_exeext
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4088 $as_echo "$ac_cv_exeext" >&6; }
4090 rm -f conftest.
$ac_ext
4091 EXEEXT
=$ac_cv_exeext
4093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4099 FILE *f = fopen ("conftest.out", "w");
4100 return ferror (f) || fclose (f) != 0;
4106 ac_clean_files
="$ac_clean_files conftest.out"
4107 # Check that the compiler produces executables we can run. If not, either
4108 # the compiler is broken, or we cross compile.
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4110 $as_echo_n "checking whether we are cross compiling... " >&6; }
4111 if test "$cross_compiling" != yes; then
4112 { { ac_try
="$ac_link"
4114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119 (eval "$ac_link") 2>&5
4121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }
4123 if { ac_try='./conftest$ac_cv_exeext'
4124 { { case "(($ac_try" in
4125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4126 *) ac_try_echo
=$ac_try;;
4128 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4129 $as_echo "$ac_try_echo"; } >&5
4130 (eval "$ac_try") 2>&5
4132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4133 test $ac_status = 0; }; }; then
4136 if test "$cross_compiling" = maybe
; then
4139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4141 as_fn_error $?
"cannot run C compiled programs.
4142 If you meant to cross compile, use \`--host'.
4143 See \`config.log' for more details" "$LINENO" 5; }
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4148 $as_echo "$cross_compiling" >&6; }
4150 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4151 ac_clean_files
=$ac_clean_files_save
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4153 $as_echo_n "checking for suffix of object files... " >&6; }
4154 if ${ac_cv_objext+:} false
; then :
4155 $as_echo_n "(cached) " >&6
4157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4168 rm -f conftest.o conftest.obj
4169 if { { ac_try
="$ac_compile"
4171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175 $as_echo "$ac_try_echo"; } >&5
4176 (eval "$ac_compile") 2>&5
4178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4179 test $ac_status = 0; }; then :
4180 for ac_file in conftest.o conftest.obj conftest.*; do
4181 test -f "$ac_file" || continue;
4183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4184 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4189 $as_echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4195 See \
`config.log' for more details" "$LINENO" 5; }
4197 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4200 $as_echo "$ac_cv_objext" >&6; }
4201 OBJEXT=$ac_cv_objext
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4204 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4205 if ${ac_cv_c_compiler_gnu+:} false; then :
4206 $as_echo_n "(cached) " >&6
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4222 if ac_fn_c_try_compile "$LINENO"; then :
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4232 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4233 if test $ac_compiler_gnu = yes; then
4238 ac_test_CFLAGS=${CFLAGS+set}
4239 ac_save_CFLAGS=$CFLAGS
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4241 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4242 if ${ac_cv_prog_cc_g+:} false; then :
4243 $as_echo_n "(cached) " >&6
4245 ac_save_c_werror_flag=$ac_c_werror_flag
4246 ac_c_werror_flag=yes
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4260 if ac_fn_c_try_compile "$LINENO"; then :
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4275 if ac_fn_c_try_compile "$LINENO"; then :
4278 ac_c_werror_flag=$ac_save_c_werror_flag
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4291 if ac_fn_c_try_compile "$LINENO"; then :
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4302 $as_echo "$ac_cv_prog_cc_g" >&6; }
4303 if test "$ac_test_CFLAGS" = set; then
4304 CFLAGS=$ac_save_CFLAGS
4305 elif test $ac_cv_prog_cc_g = yes; then
4306 if test "$GCC" = yes; then
4312 if test "$GCC" = yes; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4319 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4320 if ${ac_cv_prog_cc_c89+:} false; then :
4321 $as_echo_n "(cached) " >&6
4323 ac_cv_prog_cc_c89=no
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4330 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4331 struct buf { int x; };
4332 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4333 static char *e (p, i)
4339 static char *f (char * (*g) (char **, int), char **p, ...)
4344 s = g (p, va_arg (v,int));
4349 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4350 function prototypes and stuff, but not '\xHH' hex character constants.
4351 These don't provoke an error unfortunately, instead are silently treated
4352 as 'x'. The following induces an error, until -std is added to get
4353 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4354 array size at least. It's necessary to write '\x00'==0 to get something
4355 that's true only with -std. */
4356 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4358 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4359 inside strings and character constants. */
4361 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4363 int test (int i, double x);
4364 struct s1 {int (*f) (int a);};
4365 struct s2 {int (*f) (double a);};
4366 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4372 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4377 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4378 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4380 CC="$ac_save_CC $ac_arg"
4381 if ac_fn_c_try_compile "$LINENO"; then :
4382 ac_cv_prog_cc_c89=$ac_arg
4384 rm -f core conftest.err conftest.$ac_objext
4385 test "x$ac_cv_prog_cc_c89" != "xno" && break
4387 rm -f conftest.$ac_ext
4392 case "x$ac_cv_prog_cc_c89" in
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4395 $as_echo "none needed" >&6; } ;;
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4398 $as_echo "unsupported" >&6; } ;;
4400 CC="$CC $ac_cv_prog_cc_c89"
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4402 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4404 if test "x$ac_cv_prog_cc_c89" != xno; then :
4409 ac_cpp='$CPP $CPPFLAGS'
4410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4415 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4416 if ${ac_cv_prog_cc_c99+:} false; then :
4417 $as_echo_n "(cached) " >&6
4419 ac_cv_prog_cc_c99=no
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4424 #include <stdbool.h>
4429 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4430 #define debug(...) fprintf (stderr, __VA_ARGS__)
4431 #define showlist(...) puts (#__VA_ARGS__)
4432 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4434 test_varargs_macros (void)
4439 debug ("X = %d\n", x);
4440 showlist (The first, second, and third items.);
4441 report (x>y, "x is %d but y is %d", x, y);
4444 // Check long long types.
4445 #define BIG64 18446744073709551615ull
4446 #define BIG32 4294967295ul
4447 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4449 your preprocessor is broken;
4453 your preprocessor is broken;
4455 static long long int bignum = -9223372036854775807LL;
4456 static unsigned long long int ubignum = BIG64;
4458 struct incomplete_array
4466 const wchar_t *name;
4470 typedef const char *ccp;
4473 test_restrict (ccp restrict text)
4475 // See if C++-style comments work.
4476 // Iterate through items via the restricted pointer.
4477 // Also check for declarations in for loops.
4478 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4483 // Check varargs and va_copy.
4485 test_varargs (const char *format, ...)
4488 va_start (args, format);
4490 va_copy (args_copy, args);
4501 str = va_arg (args_copy, const char *);
4504 number = va_arg (args_copy, int);
4507 fnumber = va_arg (args_copy, double);
4522 _Bool success = false;
4525 if (test_restrict ("String literal") == 0)
4527 char *restrict newvar = "Another string";
4530 test_varargs ("s, d' f .", "string", 65, 34.234);
4531 test_varargs_macros ();
4533 // Check flexible array members.
4534 struct incomplete_array *ia =
4535 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4537 for (int i = 0; i < ia->datasize; ++i)
4538 ia->data[i] = i * 1.234;
4540 // Check named initializers.
4541 struct named_init ni = {
4543 .name = L"Test wide string",
4544 .average = 543.34343,
4549 int dynamic_array[ni.number];
4550 dynamic_array[ni.number - 1] = 543;
4552 // work around unused variable warnings
4553 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4554 || dynamic_array[ni.number - 1] != 543);
4560 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4562 CC="$ac_save_CC $ac_arg"
4563 if ac_fn_c_try_compile "$LINENO"; then :
4564 ac_cv_prog_cc_c99=$ac_arg
4566 rm -f core conftest.err conftest.$ac_objext
4567 test "x$ac_cv_prog_cc_c99" != "xno" && break
4569 rm -f conftest.$ac_ext
4574 case "x$ac_cv_prog_cc_c99" in
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4577 $as_echo "none needed" >&6; } ;;
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4580 $as_echo "unsupported" >&6; } ;;
4582 CC="$CC $ac_cv_prog_cc_c99"
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4584 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4586 if test "x$ac_cv_prog_cc_c99" != xno; then :
4592 # Error out if the compiler does not support C99, as the codebase
4594 if test "$ac_cv_prog_cc_c99" = no; then
4595 as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
4599 ac_cpp='$CXXCPP $CPPFLAGS'
4600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4603 if test -z "$CXX"; then
4604 if test -n "$CCC"; then
4607 if test -n "$ac_tool_prefix"; then
4608 for ac_prog in $pgac_cxx_list
4610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613 $as_echo_n "checking for $ac_word... " >&6; }
4614 if ${ac_cv_prog_CXX+:} false; then :
4615 $as_echo_n "(cached) " >&6
4617 if test -n "$CXX"; then
4618 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 if test -n "$CXX"; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4640 $as_echo "$CXX" >&6; }
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4647 test -n "$CXX" && break
4650 if test -z "$CXX"; then
4652 for ac_prog in $pgac_cxx_list
4654 # Extract the first word of "$ac_prog", so it can be a program name with args.
4655 set dummy $ac_prog; ac_word=$2
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 $as_echo_n "checking for $ac_word... " >&6; }
4658 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4659 $as_echo_n "(cached) " >&6
4661 if test -n "$ac_ct_CXX"; then
4662 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671 ac_cv_prog_ac_ct_CXX="$ac_prog"
4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4682 if test -n "$ac_ct_CXX"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4684 $as_echo "$ac_ct_CXX" >&6; }
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4691 test -n "$ac_ct_CXX" && break
4694 if test "x$ac_ct_CXX" = x; then
4697 case $cross_compiling:$ac_tool_warned in
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned=yes ;;
4709 # Provide some information about the compiler.
4710 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4713 for ac_option in --version -v -V -qversion; do
4714 { { ac_try="$ac_compiler $ac_option >&5"
4716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4717 *) ac_try_echo
=$ac_try;;
4719 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4720 $as_echo "$ac_try_echo"; } >&5
4721 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4723 if test -s conftest.err
; then
4725 ... rest of stderr output deleted ...
4726 10q' conftest.err
>conftest.er1
4727 cat conftest.er1
>&5
4729 rm -f conftest.er1 conftest.err
4730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731 test $ac_status = 0; }
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4735 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4736 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4737 $as_echo_n "(cached) " >&6
4739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4753 if ac_fn_cxx_try_compile
"$LINENO"; then :
4758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4759 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4763 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4764 if test $ac_compiler_gnu = yes; then
4769 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4770 ac_save_CXXFLAGS
=$CXXFLAGS
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4772 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4773 if ${ac_cv_prog_cxx_g+:} false
; then :
4774 $as_echo_n "(cached) " >&6
4776 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4777 ac_cxx_werror_flag
=yes
4780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4791 if ac_fn_cxx_try_compile
"$LINENO"; then :
4792 ac_cv_prog_cxx_g
=yes
4795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4806 if ac_fn_cxx_try_compile
"$LINENO"; then :
4809 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4822 if ac_fn_cxx_try_compile
"$LINENO"; then :
4823 ac_cv_prog_cxx_g
=yes
4825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4830 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4833 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4834 if test "$ac_test_CXXFLAGS" = set; then
4835 CXXFLAGS
=$ac_save_CXXFLAGS
4836 elif test $ac_cv_prog_cxx_g = yes; then
4837 if test "$GXX" = yes; then
4843 if test "$GXX" = yes; then
4850 ac_cpp
='$CPP $CPPFLAGS'
4851 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4856 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4857 # but has idiosyncrasies of its own. We assume icc will define
4858 # __INTEL_COMPILER regardless of CFLAGS.
4860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4866 #ifndef __INTEL_COMPILER
4873 if ac_fn_c_try_compile
"$LINENO"; then :
4878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4880 # Check if it's Sun Studio compiler. We assume that
4881 # __SUNPRO_C will be defined for Sun Studio compilers
4882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4895 if ac_fn_c_try_compile
"$LINENO"; then :
4900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4908 # Checked early because subsequent tests depend on it.
4912 # Check whether --with-llvm was given.
4913 if test "${with_llvm+set}" = set; then :
4918 $as_echo "#define USE_LLVM 1" >>confdefs.h
4925 as_fn_error $?
"no argument expected for --with-llvm option" "$LINENO" 5
4936 for ac_prog
in gawk mawk nawk
awk
4938 # Extract the first word of "$ac_prog", so it can be a program name with args.
4939 set dummy
$ac_prog; ac_word
=$2
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941 $as_echo_n "checking for $ac_word... " >&6; }
4942 if ${ac_cv_prog_AWK+:} false
; then :
4943 $as_echo_n "(cached) " >&6
4945 if test -n "$AWK"; then
4946 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir
=.
4953 for ac_exec_ext
in '' $ac_executable_extensions; do
4954 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4955 ac_cv_prog_AWK
="$ac_prog"
4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 if test -n "$AWK"; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4968 $as_echo "$AWK" >&6; }
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971 $as_echo "no" >&6; }
4975 test -n "$AWK" && break
4978 if test "$with_llvm" = yes; then :
4984 if test -z "$LLVM_CONFIG"; then
4985 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
4987 # Extract the first word of "$ac_prog", so it can be a program name with args.
4988 set dummy
$ac_prog; ac_word
=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_path_LLVM_CONFIG+:} false
; then :
4992 $as_echo_n "(cached) " >&6
4994 case $LLVM_CONFIG in
4996 ac_cv_path_LLVM_CONFIG
="$LLVM_CONFIG" # Let the user override the test with a path.
4999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir
=.
5004 for ac_exec_ext
in '' $ac_executable_extensions; do
5005 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_path_LLVM_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 LLVM_CONFIG
=$ac_cv_path_LLVM_CONFIG
5018 if test -n "$LLVM_CONFIG"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5020 $as_echo "$LLVM_CONFIG" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5027 test -n "$LLVM_CONFIG" && break
5031 # Report the value of LLVM_CONFIG in configure's output in all cases.
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
5033 $as_echo_n "checking for LLVM_CONFIG... " >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5035 $as_echo "$LLVM_CONFIG" >&6; }
5039 # no point continuing if llvm wasn't found
5040 if test -z "$LLVM_CONFIG"; then
5041 as_fn_error $?
"llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
5043 # check if detected $LLVM_CONFIG is executable
5044 pgac_llvm_version
="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
5045 if test "x$pgac_llvm_version" = "xno"; then
5046 as_fn_error $?
"$LLVM_CONFIG does not work" "$LINENO" 5
5048 # and whether the version is supported
5049 if echo $pgac_llvm_version |
$AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then
5050 as_fn_error $?
"$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5
5053 # need clang to create some bitcode files
5055 if test -z "$CLANG"; then
5056 for ac_prog
in clang clang-7 clang-6.0 clang-5.0 clang-4.0 clang-3.9
5058 # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy
$ac_prog; ac_word
=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_path_CLANG+:} false
; then :
5063 $as_echo_n "(cached) " >&6
5067 ac_cv_path_CLANG
="$CLANG" # Let the user override the test with a path.
5070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir
=.
5075 for ac_exec_ext
in '' $ac_executable_extensions; do
5076 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5077 ac_cv_path_CLANG
="$as_dir/$ac_word$ac_exec_ext"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 CLANG
=$ac_cv_path_CLANG
5089 if test -n "$CLANG"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5091 $as_echo "$CLANG" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5098 test -n "$CLANG" && break
5102 # Report the value of CLANG in configure's output in all cases.
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
5104 $as_echo_n "checking for CLANG... " >&6; }
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5106 $as_echo "$CLANG" >&6; }
5109 if test -z "$CLANG"; then
5110 as_fn_error $?
"clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
5112 # make sure clang is executable
5113 if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
5114 as_fn_error $?
"$CLANG does not work" "$LINENO" 5
5116 # Could check clang version, but it doesn't seem that
5117 # important. Systems with a new enough LLVM version are usually
5118 # going to have a decent clang version too. It's also not entirely
5119 # clear what the minimum version is.
5121 # Collect compiler flags necessary to build the LLVM dependent
5123 for pgac_option
in `$LLVM_CONFIG --cppflags`; do
5124 case $pgac_option in
5125 -I*|
-D*) LLVM_CPPFLAGS
="$pgac_option $LLVM_CPPFLAGS";;
5129 for pgac_option
in `$LLVM_CONFIG --ldflags`; do
5130 case $pgac_option in
5131 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5135 # ABI influencing options, standard influencing options
5136 for pgac_option
in `$LLVM_CONFIG --cxxflags`; do
5137 case $pgac_option in
5138 -fno-rtti*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5139 -std=*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5143 # Look for components we're interested in, collect necessary
5144 # libs. As some components are optional, we can't just list all of
5145 # them as it'd raise an error.
5147 for pgac_component
in `$LLVM_CONFIG --components`; do
5148 case $pgac_component in
5149 engine
) pgac_components
="$pgac_components $pgac_component";;
5150 debuginfodwarf
) pgac_components
="$pgac_components $pgac_component";;
5151 orcjit
) pgac_components
="$pgac_components $pgac_component";;
5152 passes
) pgac_components
="$pgac_components $pgac_component";;
5153 perfjitevents
) pgac_components
="$pgac_components $pgac_component";;
5157 # And then get the libraries that need to be linked in for the
5158 # selected components. They're large libraries, we only want to
5159 # link them into the LLVM using shared library.
5160 for pgac_option
in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
5161 case $pgac_option in
5162 -l*) LLVM_LIBS
="$LLVM_LIBS $pgac_option";;
5166 LLVM_BINPATH
=`$LLVM_CONFIG --bindir`
5185 .
"$srcdir/src/template/$template" ||
exit
5187 # C[XX]FLAGS are selected so:
5188 # If the user specifies something in the environment, that is used.
5189 # else: If the template file set something, that is used.
5190 # else: If coverage was enabled, don't set anything.
5191 # else: If the compiler is GCC, then we use -O2.
5192 # else: If the compiler is something else, then we use -O, unless debugging.
5194 if test "$ac_env_CFLAGS_set" = set; then
5195 CFLAGS
=$ac_env_CFLAGS_value
5196 elif test "${CFLAGS+set}" = set; then
5197 : # (keep what template set)
5198 elif test "$enable_coverage" = yes; then
5199 : # no optimization by default
5200 elif test "$GCC" = yes; then
5203 # if the user selected debug mode, don't use -O
5204 if test "$enable_debug" != yes; then
5209 if test "$ac_env_CXXFLAGS_set" = set; then
5210 CXXFLAGS
=$ac_env_CXXFLAGS_value
5211 elif test "${CXXFLAGS+set}" = set; then
5212 : # (keep what template set)
5213 elif test "$enable_coverage" = yes; then
5214 : # no optimization by default
5215 elif test "$GCC" = yes; then
5218 # if the user selected debug mode, don't use -O
5219 if test "$enable_debug" != yes; then
5224 # When generating bitcode (for inlining) we always want to use -O2
5225 # even when --enable-debug is specified. The bitcode it's not going to
5226 # be used for line-by-line debugging, and JIT inlining doesn't work
5227 # without at least -O1 (otherwise clang will emit 'noinline'
5228 # attributes everywhere), which is bad for testing. Still allow the
5229 # environment to override if done explicitly.
5230 if test "$ac_env_BITCODE_CFLAGS_set" = set; then
5231 BITCODE_CFLAGS
=$ac_env_BITCODE_CFLAGS_value
5233 BITCODE_CFLAGS
="-O2 $BITCODE_CFLAGS"
5235 if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
5236 BITCODE_CXXFLAGS
=$ac_env_BITCODE_CXXFLAGS_value
5238 BITCODE_CXXFLAGS
="-O2 $BITCODE_CXXFLAGS"
5241 # C[XX]FLAGS we determined above will be added back at the end
5244 user_CXXFLAGS
=$CXXFLAGS
5246 user_BITCODE_CFLAGS
=$BITCODE_CFLAGS
5248 user_BITCODE_CXXFLAGS
=$BITCODE_CXXFLAGS
5251 # set CFLAGS_VECTOR from the environment, if available
5252 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
5253 CFLAGS_VECTOR
=$ac_env_CFLAGS_VECTOR_value
5256 # Some versions of GCC support some additional useful warning flags.
5257 # Check whether they are supported, and add them to CFLAGS if so.
5258 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
5259 # but has its own. Also check other compiler-specific flags here.
5261 if test "$GCC" = yes -a "$ICC" = no
; then
5262 CFLAGS
="-Wall -Wmissing-prototypes -Wpointer-arith"
5263 CXXFLAGS
="-Wall -Wpointer-arith"
5264 # These work in some but not all gcc versions
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
5268 $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
5269 if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false
; then :
5270 $as_echo_n "(cached) " >&6
5272 pgac_save_CFLAGS
=$CFLAGS
5275 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5276 ac_save_c_werror_flag
=$ac_c_werror_flag
5277 ac_c_werror_flag
=yes
5278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5289 if ac_fn_c_try_compile
"$LINENO"; then :
5290 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=yes
5292 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=no
5294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5295 ac_c_werror_flag
=$ac_save_c_werror_flag
5296 CFLAGS
="$pgac_save_CFLAGS"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5
5300 $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
5301 if test x
"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x
"yes"; then
5302 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5306 # -Wdeclaration-after-statement isn't applicable for C++. Specific C files
5307 # disable it, so AC_SUBST the negative form.
5308 PERMIT_DECLARATION_AFTER_STATEMENT
=
5309 if test x
"$save_CFLAGS" != x
"$CFLAGS"; then
5310 PERMIT_DECLARATION_AFTER_STATEMENT
=-Wno-declaration-after-statement
5313 # Really don't want VLAs to be used in our dialect of C
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5
5316 $as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; }
5317 if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false
; then :
5318 $as_echo_n "(cached) " >&6
5320 pgac_save_CFLAGS
=$CFLAGS
5323 CFLAGS
="${CFLAGS} -Werror=vla"
5324 ac_save_c_werror_flag
=$ac_c_werror_flag
5325 ac_c_werror_flag
=yes
5326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5337 if ac_fn_c_try_compile
"$LINENO"; then :
5338 pgac_cv_prog_CC_cflags__Werror_vla
=yes
5340 pgac_cv_prog_CC_cflags__Werror_vla
=no
5342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5343 ac_c_werror_flag
=$ac_save_c_werror_flag
5344 CFLAGS
="$pgac_save_CFLAGS"
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5
5348 $as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; }
5349 if test x
"$pgac_cv_prog_CC_cflags__Werror_vla" = x
"yes"; then
5350 CFLAGS
="${CFLAGS} -Werror=vla"
5354 # -Wvla is not applicable for C++
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
5357 $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
5358 if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false
; then :
5359 $as_echo_n "(cached) " >&6
5361 pgac_save_CFLAGS
=$CFLAGS
5364 CFLAGS
="${CFLAGS} -Wendif-labels"
5365 ac_save_c_werror_flag
=$ac_c_werror_flag
5366 ac_c_werror_flag
=yes
5367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5378 if ac_fn_c_try_compile
"$LINENO"; then :
5379 pgac_cv_prog_CC_cflags__Wendif_labels
=yes
5381 pgac_cv_prog_CC_cflags__Wendif_labels
=no
5383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5384 ac_c_werror_flag
=$ac_save_c_werror_flag
5385 CFLAGS
="$pgac_save_CFLAGS"
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
5389 $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
5390 if test x
"$pgac_cv_prog_CC_cflags__Wendif_labels" = x
"yes"; then
5391 CFLAGS
="${CFLAGS} -Wendif-labels"
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
5396 $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
5397 if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false
; then :
5398 $as_echo_n "(cached) " >&6
5400 pgac_save_CXXFLAGS
=$CXXFLAGS
5403 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5404 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5405 ac_cxx_werror_flag
=yes
5407 ac_cpp
='$CXXCPP $CPPFLAGS'
5408 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5423 if ac_fn_cxx_try_compile
"$LINENO"; then :
5424 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=yes
5426 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=no
5428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5430 ac_cpp
='$CPP $CPPFLAGS'
5431 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5432 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5433 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5435 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5436 CXXFLAGS
="$pgac_save_CXXFLAGS"
5437 CXX
="$pgac_save_CXX"
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
5440 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
5441 if test x
"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x
"yes"; then
5442 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
5448 $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
5449 if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false
; then :
5450 $as_echo_n "(cached) " >&6
5452 pgac_save_CFLAGS
=$CFLAGS
5455 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5456 ac_save_c_werror_flag
=$ac_c_werror_flag
5457 ac_c_werror_flag
=yes
5458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5469 if ac_fn_c_try_compile
"$LINENO"; then :
5470 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=yes
5472 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=no
5474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5475 ac_c_werror_flag
=$ac_save_c_werror_flag
5476 CFLAGS
="$pgac_save_CFLAGS"
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
5480 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
5481 if test x
"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x
"yes"; then
5482 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
5487 $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
5488 if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false
; then :
5489 $as_echo_n "(cached) " >&6
5491 pgac_save_CXXFLAGS
=$CXXFLAGS
5494 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5495 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5496 ac_cxx_werror_flag
=yes
5498 ac_cpp
='$CXXCPP $CPPFLAGS'
5499 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5500 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5514 if ac_fn_cxx_try_compile
"$LINENO"; then :
5515 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=yes
5517 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=no
5519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5521 ac_cpp
='$CPP $CPPFLAGS'
5522 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5523 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5524 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5526 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5527 CXXFLAGS
="$pgac_save_CXXFLAGS"
5528 CXX
="$pgac_save_CXX"
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
5531 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
5532 if test x
"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x
"yes"; then
5533 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5537 # This was included in -Wall/-Wformat in older GCC versions
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
5540 $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
5541 if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false
; then :
5542 $as_echo_n "(cached) " >&6
5544 pgac_save_CFLAGS
=$CFLAGS
5547 CFLAGS
="${CFLAGS} -Wformat-security"
5548 ac_save_c_werror_flag
=$ac_c_werror_flag
5549 ac_c_werror_flag
=yes
5550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5561 if ac_fn_c_try_compile
"$LINENO"; then :
5562 pgac_cv_prog_CC_cflags__Wformat_security
=yes
5564 pgac_cv_prog_CC_cflags__Wformat_security
=no
5566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5567 ac_c_werror_flag
=$ac_save_c_werror_flag
5568 CFLAGS
="$pgac_save_CFLAGS"
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
5572 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
5573 if test x
"$pgac_cv_prog_CC_cflags__Wformat_security" = x
"yes"; then
5574 CFLAGS
="${CFLAGS} -Wformat-security"
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
5579 $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
5580 if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false
; then :
5581 $as_echo_n "(cached) " >&6
5583 pgac_save_CXXFLAGS
=$CXXFLAGS
5586 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
5587 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5588 ac_cxx_werror_flag
=yes
5590 ac_cpp
='$CXXCPP $CPPFLAGS'
5591 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5606 if ac_fn_cxx_try_compile
"$LINENO"; then :
5607 pgac_cv_prog_CXX_cxxflags__Wformat_security
=yes
5609 pgac_cv_prog_CXX_cxxflags__Wformat_security
=no
5611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5613 ac_cpp
='$CPP $CPPFLAGS'
5614 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5618 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5619 CXXFLAGS
="$pgac_save_CXXFLAGS"
5620 CXX
="$pgac_save_CXX"
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
5623 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
5624 if test x
"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x
"yes"; then
5625 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
5629 # Disable strict-aliasing rules; needed for gcc 3.3+
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
5632 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
5633 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
5634 $as_echo_n "(cached) " >&6
5636 pgac_save_CFLAGS
=$CFLAGS
5639 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
5640 ac_save_c_werror_flag
=$ac_c_werror_flag
5641 ac_c_werror_flag
=yes
5642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5653 if ac_fn_c_try_compile
"$LINENO"; then :
5654 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
5656 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
5658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5659 ac_c_werror_flag
=$ac_save_c_werror_flag
5660 CFLAGS
="$pgac_save_CFLAGS"
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
5664 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
5665 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
5666 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
5671 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
5672 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
5673 $as_echo_n "(cached) " >&6
5675 pgac_save_CXXFLAGS
=$CXXFLAGS
5678 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
5679 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5680 ac_cxx_werror_flag
=yes
5682 ac_cpp
='$CXXCPP $CPPFLAGS'
5683 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5698 if ac_fn_cxx_try_compile
"$LINENO"; then :
5699 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
5701 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
5703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5705 ac_cpp
='$CPP $CPPFLAGS'
5706 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5710 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5711 CXXFLAGS
="$pgac_save_CXXFLAGS"
5712 CXX
="$pgac_save_CXX"
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
5715 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
5716 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
5717 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
5721 # Disable optimizations that assume no overflow; needed for gcc 4.3+
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5
5724 $as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; }
5725 if ${pgac_cv_prog_CC_cflags__fwrapv+:} false
; then :
5726 $as_echo_n "(cached) " >&6
5728 pgac_save_CFLAGS
=$CFLAGS
5731 CFLAGS
="${CFLAGS} -fwrapv"
5732 ac_save_c_werror_flag
=$ac_c_werror_flag
5733 ac_c_werror_flag
=yes
5734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5745 if ac_fn_c_try_compile
"$LINENO"; then :
5746 pgac_cv_prog_CC_cflags__fwrapv
=yes
5748 pgac_cv_prog_CC_cflags__fwrapv
=no
5750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5751 ac_c_werror_flag
=$ac_save_c_werror_flag
5752 CFLAGS
="$pgac_save_CFLAGS"
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5
5756 $as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; }
5757 if test x
"$pgac_cv_prog_CC_cflags__fwrapv" = x
"yes"; then
5758 CFLAGS
="${CFLAGS} -fwrapv"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5
5763 $as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; }
5764 if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false
; then :
5765 $as_echo_n "(cached) " >&6
5767 pgac_save_CXXFLAGS
=$CXXFLAGS
5770 CXXFLAGS
="${CXXFLAGS} -fwrapv"
5771 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5772 ac_cxx_werror_flag
=yes
5774 ac_cpp
='$CXXCPP $CPPFLAGS'
5775 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5776 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5777 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5790 if ac_fn_cxx_try_compile
"$LINENO"; then :
5791 pgac_cv_prog_CXX_cxxflags__fwrapv
=yes
5793 pgac_cv_prog_CXX_cxxflags__fwrapv
=no
5795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5797 ac_cpp
='$CPP $CPPFLAGS'
5798 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5802 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5803 CXXFLAGS
="$pgac_save_CXXFLAGS"
5804 CXX
="$pgac_save_CXX"
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5
5807 $as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; }
5808 if test x
"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x
"yes"; then
5809 CXXFLAGS
="${CXXFLAGS} -fwrapv"
5813 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5
5816 $as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; }
5817 if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false
; then :
5818 $as_echo_n "(cached) " >&6
5820 pgac_save_CFLAGS
=$CFLAGS
5823 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
5824 ac_save_c_werror_flag
=$ac_c_werror_flag
5825 ac_c_werror_flag
=yes
5826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5837 if ac_fn_c_try_compile
"$LINENO"; then :
5838 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=yes
5840 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=no
5842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5843 ac_c_werror_flag
=$ac_save_c_werror_flag
5844 CFLAGS
="$pgac_save_CFLAGS"
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&5
5848 $as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; }
5849 if test x
"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x
"yes"; then
5850 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5
5855 $as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; }
5856 if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false
; then :
5857 $as_echo_n "(cached) " >&6
5859 pgac_save_CXXFLAGS
=$CXXFLAGS
5862 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
5863 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5864 ac_cxx_werror_flag
=yes
5866 ac_cpp
='$CXXCPP $CPPFLAGS'
5867 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5882 if ac_fn_cxx_try_compile
"$LINENO"; then :
5883 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=yes
5885 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=no
5887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5889 ac_cpp
='$CPP $CPPFLAGS'
5890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5894 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5895 CXXFLAGS
="$pgac_save_CXXFLAGS"
5896 CXX
="$pgac_save_CXX"
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5
5899 $as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; }
5900 if test x
"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
5901 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
5905 # Optimization flags for specific files that benefit from vectorization
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR" >&5
5907 $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR... " >&6; }
5908 if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false
; then :
5909 $as_echo_n "(cached) " >&6
5911 pgac_save_CFLAGS
=$CFLAGS
5914 CFLAGS
="${CFLAGS_VECTOR} -funroll-loops"
5915 ac_save_c_werror_flag
=$ac_c_werror_flag
5916 ac_c_werror_flag
=yes
5917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5928 if ac_fn_c_try_compile
"$LINENO"; then :
5929 pgac_cv_prog_CC_cflags__funroll_loops
=yes
5931 pgac_cv_prog_CC_cflags__funroll_loops
=no
5933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5934 ac_c_werror_flag
=$ac_save_c_werror_flag
5935 CFLAGS
="$pgac_save_CFLAGS"
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
5939 $as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
5940 if test x
"$pgac_cv_prog_CC_cflags__funroll_loops" = x
"yes"; then
5941 CFLAGS_VECTOR
="${CFLAGS_VECTOR} -funroll-loops"
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR" >&5
5946 $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR... " >&6; }
5947 if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false
; then :
5948 $as_echo_n "(cached) " >&6
5950 pgac_save_CFLAGS
=$CFLAGS
5953 CFLAGS
="${CFLAGS_VECTOR} -ftree-vectorize"
5954 ac_save_c_werror_flag
=$ac_c_werror_flag
5955 ac_c_werror_flag
=yes
5956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5967 if ac_fn_c_try_compile
"$LINENO"; then :
5968 pgac_cv_prog_CC_cflags__ftree_vectorize
=yes
5970 pgac_cv_prog_CC_cflags__ftree_vectorize
=no
5972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5973 ac_c_werror_flag
=$ac_save_c_werror_flag
5974 CFLAGS
="$pgac_save_CFLAGS"
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
5978 $as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
5979 if test x
"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x
"yes"; then
5980 CFLAGS_VECTOR
="${CFLAGS_VECTOR} -ftree-vectorize"
5984 # We want to suppress clang's unhelpful unused-command-line-argument warnings
5985 # but gcc won't complain about unrecognized -Wno-foo switches, so we have to
5986 # test for the positive form and if that works, add the negative form
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
5989 $as_echo_n "checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
5990 if ${pgac_cv_prog_CC_cflags__Wunused_command_line_argument+:} false
; then :
5991 $as_echo_n "(cached) " >&6
5993 pgac_save_CFLAGS
=$CFLAGS
5996 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
5997 ac_save_c_werror_flag
=$ac_c_werror_flag
5998 ac_c_werror_flag
=yes
5999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6010 if ac_fn_c_try_compile
"$LINENO"; then :
6011 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=yes
6013 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=no
6015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6016 ac_c_werror_flag
=$ac_save_c_werror_flag
6017 CFLAGS
="$pgac_save_CFLAGS"
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&5
6021 $as_echo "$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&6; }
6022 if test x
"$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" = x
"yes"; then
6023 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6027 if test -n "$NOT_THE_CFLAGS"; then
6028 CFLAGS
="$CFLAGS -Wno-unused-command-line-argument"
6030 # Similarly disable useless truncation warnings from gcc 8+
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
6033 $as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
6034 if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false
; then :
6035 $as_echo_n "(cached) " >&6
6037 pgac_save_CFLAGS
=$CFLAGS
6040 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6041 ac_save_c_werror_flag
=$ac_c_werror_flag
6042 ac_c_werror_flag
=yes
6043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6054 if ac_fn_c_try_compile
"$LINENO"; then :
6055 pgac_cv_prog_CC_cflags__Wformat_truncation
=yes
6057 pgac_cv_prog_CC_cflags__Wformat_truncation
=no
6059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6060 ac_c_werror_flag
=$ac_save_c_werror_flag
6061 CFLAGS
="$pgac_save_CFLAGS"
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5
6065 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; }
6066 if test x
"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x
"yes"; then
6067 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6071 if test -n "$NOT_THE_CFLAGS"; then
6072 CFLAGS
="$CFLAGS -Wno-format-truncation"
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
6076 $as_echo_n "checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
6077 if ${pgac_cv_prog_CC_cflags__Wstringop_truncation+:} false
; then :
6078 $as_echo_n "(cached) " >&6
6080 pgac_save_CFLAGS
=$CFLAGS
6083 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6084 ac_save_c_werror_flag
=$ac_c_werror_flag
6085 ac_c_werror_flag
=yes
6086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6097 if ac_fn_c_try_compile
"$LINENO"; then :
6098 pgac_cv_prog_CC_cflags__Wstringop_truncation
=yes
6100 pgac_cv_prog_CC_cflags__Wstringop_truncation
=no
6102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6103 ac_c_werror_flag
=$ac_save_c_werror_flag
6104 CFLAGS
="$pgac_save_CFLAGS"
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wstringop_truncation" >&5
6108 $as_echo "$pgac_cv_prog_CC_cflags__Wstringop_truncation" >&6; }
6109 if test x
"$pgac_cv_prog_CC_cflags__Wstringop_truncation" = x
"yes"; then
6110 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6114 if test -n "$NOT_THE_CFLAGS"; then
6115 CFLAGS
="$CFLAGS -Wno-stringop-truncation"
6117 elif test "$ICC" = yes; then
6118 # Intel's compiler has a bug/misoptimization in checking for
6119 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -mp1, for CFLAGS" >&5
6122 $as_echo_n "checking whether ${CC} supports -mp1, for CFLAGS... " >&6; }
6123 if ${pgac_cv_prog_CC_cflags__mp1+:} false
; then :
6124 $as_echo_n "(cached) " >&6
6126 pgac_save_CFLAGS
=$CFLAGS
6129 CFLAGS
="${CFLAGS} -mp1"
6130 ac_save_c_werror_flag
=$ac_c_werror_flag
6131 ac_c_werror_flag
=yes
6132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6143 if ac_fn_c_try_compile
"$LINENO"; then :
6144 pgac_cv_prog_CC_cflags__mp1
=yes
6146 pgac_cv_prog_CC_cflags__mp1
=no
6148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6149 ac_c_werror_flag
=$ac_save_c_werror_flag
6150 CFLAGS
="$pgac_save_CFLAGS"
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__mp1" >&5
6154 $as_echo "$pgac_cv_prog_CC_cflags__mp1" >&6; }
6155 if test x
"$pgac_cv_prog_CC_cflags__mp1" = x
"yes"; then
6156 CFLAGS
="${CFLAGS} -mp1"
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -mp1, for CXXFLAGS" >&5
6161 $as_echo_n "checking whether ${CXX} supports -mp1, for CXXFLAGS... " >&6; }
6162 if ${pgac_cv_prog_CXX_cxxflags__mp1+:} false
; then :
6163 $as_echo_n "(cached) " >&6
6165 pgac_save_CXXFLAGS
=$CXXFLAGS
6168 CXXFLAGS
="${CXXFLAGS} -mp1"
6169 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6170 ac_cxx_werror_flag
=yes
6172 ac_cpp
='$CXXCPP $CPPFLAGS'
6173 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6188 if ac_fn_cxx_try_compile
"$LINENO"; then :
6189 pgac_cv_prog_CXX_cxxflags__mp1
=yes
6191 pgac_cv_prog_CXX_cxxflags__mp1
=no
6193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6195 ac_cpp
='$CPP $CPPFLAGS'
6196 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6200 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6201 CXXFLAGS
="$pgac_save_CXXFLAGS"
6202 CXX
="$pgac_save_CXX"
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__mp1" >&5
6205 $as_echo "$pgac_cv_prog_CXX_cxxflags__mp1" >&6; }
6206 if test x
"$pgac_cv_prog_CXX_cxxflags__mp1" = x
"yes"; then
6207 CXXFLAGS
="${CXXFLAGS} -mp1"
6211 # Make sure strict aliasing is off (though this is said to be the default)
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6214 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6215 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
6216 $as_echo_n "(cached) " >&6
6218 pgac_save_CFLAGS
=$CFLAGS
6221 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6222 ac_save_c_werror_flag
=$ac_c_werror_flag
6223 ac_c_werror_flag
=yes
6224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6235 if ac_fn_c_try_compile
"$LINENO"; then :
6236 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
6238 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
6240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6241 ac_c_werror_flag
=$ac_save_c_werror_flag
6242 CFLAGS
="$pgac_save_CFLAGS"
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6246 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6247 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
6248 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6253 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6254 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
6255 $as_echo_n "(cached) " >&6
6257 pgac_save_CXXFLAGS
=$CXXFLAGS
6260 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6261 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6262 ac_cxx_werror_flag
=yes
6264 ac_cpp
='$CXXCPP $CPPFLAGS'
6265 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6280 if ac_fn_cxx_try_compile
"$LINENO"; then :
6281 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6283 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6287 ac_cpp
='$CPP $CPPFLAGS'
6288 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6292 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6293 CXXFLAGS
="$pgac_save_CXXFLAGS"
6294 CXX
="$pgac_save_CXX"
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6297 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6298 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6299 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6303 elif test "$PORTNAME" = "aix"; then
6304 # AIX's xlc has to have strict aliasing turned off too
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qnoansialias, for CFLAGS" >&5
6307 $as_echo_n "checking whether ${CC} supports -qnoansialias, for CFLAGS... " >&6; }
6308 if ${pgac_cv_prog_CC_cflags__qnoansialias+:} false
; then :
6309 $as_echo_n "(cached) " >&6
6311 pgac_save_CFLAGS
=$CFLAGS
6314 CFLAGS
="${CFLAGS} -qnoansialias"
6315 ac_save_c_werror_flag
=$ac_c_werror_flag
6316 ac_c_werror_flag
=yes
6317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6328 if ac_fn_c_try_compile
"$LINENO"; then :
6329 pgac_cv_prog_CC_cflags__qnoansialias
=yes
6331 pgac_cv_prog_CC_cflags__qnoansialias
=no
6333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6334 ac_c_werror_flag
=$ac_save_c_werror_flag
6335 CFLAGS
="$pgac_save_CFLAGS"
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qnoansialias" >&5
6339 $as_echo "$pgac_cv_prog_CC_cflags__qnoansialias" >&6; }
6340 if test x
"$pgac_cv_prog_CC_cflags__qnoansialias" = x
"yes"; then
6341 CFLAGS
="${CFLAGS} -qnoansialias"
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qnoansialias, for CXXFLAGS" >&5
6346 $as_echo_n "checking whether ${CXX} supports -qnoansialias, for CXXFLAGS... " >&6; }
6347 if ${pgac_cv_prog_CXX_cxxflags__qnoansialias+:} false
; then :
6348 $as_echo_n "(cached) " >&6
6350 pgac_save_CXXFLAGS
=$CXXFLAGS
6353 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6354 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6355 ac_cxx_werror_flag
=yes
6357 ac_cpp
='$CXXCPP $CPPFLAGS'
6358 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6359 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6360 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6373 if ac_fn_cxx_try_compile
"$LINENO"; then :
6374 pgac_cv_prog_CXX_cxxflags__qnoansialias
=yes
6376 pgac_cv_prog_CXX_cxxflags__qnoansialias
=no
6378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6380 ac_cpp
='$CPP $CPPFLAGS'
6381 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6382 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6383 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6385 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6386 CXXFLAGS
="$pgac_save_CXXFLAGS"
6387 CXX
="$pgac_save_CXX"
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qnoansialias" >&5
6390 $as_echo "$pgac_cv_prog_CXX_cxxflags__qnoansialias" >&6; }
6391 if test x
"$pgac_cv_prog_CXX_cxxflags__qnoansialias" = x
"yes"; then
6392 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qlonglong, for CFLAGS" >&5
6398 $as_echo_n "checking whether ${CC} supports -qlonglong, for CFLAGS... " >&6; }
6399 if ${pgac_cv_prog_CC_cflags__qlonglong+:} false
; then :
6400 $as_echo_n "(cached) " >&6
6402 pgac_save_CFLAGS
=$CFLAGS
6405 CFLAGS
="${CFLAGS} -qlonglong"
6406 ac_save_c_werror_flag
=$ac_c_werror_flag
6407 ac_c_werror_flag
=yes
6408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6419 if ac_fn_c_try_compile
"$LINENO"; then :
6420 pgac_cv_prog_CC_cflags__qlonglong
=yes
6422 pgac_cv_prog_CC_cflags__qlonglong
=no
6424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6425 ac_c_werror_flag
=$ac_save_c_werror_flag
6426 CFLAGS
="$pgac_save_CFLAGS"
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qlonglong" >&5
6430 $as_echo "$pgac_cv_prog_CC_cflags__qlonglong" >&6; }
6431 if test x
"$pgac_cv_prog_CC_cflags__qlonglong" = x
"yes"; then
6432 CFLAGS
="${CFLAGS} -qlonglong"
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qlonglong, for CXXFLAGS" >&5
6437 $as_echo_n "checking whether ${CXX} supports -qlonglong, for CXXFLAGS... " >&6; }
6438 if ${pgac_cv_prog_CXX_cxxflags__qlonglong+:} false
; then :
6439 $as_echo_n "(cached) " >&6
6441 pgac_save_CXXFLAGS
=$CXXFLAGS
6444 CXXFLAGS
="${CXXFLAGS} -qlonglong"
6445 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6446 ac_cxx_werror_flag
=yes
6448 ac_cpp
='$CXXCPP $CPPFLAGS'
6449 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6450 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6451 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6464 if ac_fn_cxx_try_compile
"$LINENO"; then :
6465 pgac_cv_prog_CXX_cxxflags__qlonglong
=yes
6467 pgac_cv_prog_CXX_cxxflags__qlonglong
=no
6469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6471 ac_cpp
='$CPP $CPPFLAGS'
6472 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6473 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6474 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6476 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6477 CXXFLAGS
="$pgac_save_CXXFLAGS"
6478 CXX
="$pgac_save_CXX"
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qlonglong" >&5
6481 $as_echo "$pgac_cv_prog_CXX_cxxflags__qlonglong" >&6; }
6482 if test x
"$pgac_cv_prog_CXX_cxxflags__qlonglong" = x
"yes"; then
6483 CXXFLAGS
="${CXXFLAGS} -qlonglong"
6487 elif test "$PORTNAME" = "hpux"; then
6488 # On some versions of HP-UX, libm functions do not set errno by default.
6489 # Fix that by using +Olibmerrno if the compiler recognizes it.
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports +Olibmerrno, for CFLAGS" >&5
6492 $as_echo_n "checking whether ${CC} supports +Olibmerrno, for CFLAGS... " >&6; }
6493 if ${pgac_cv_prog_CC_cflags_pOlibmerrno+:} false
; then :
6494 $as_echo_n "(cached) " >&6
6496 pgac_save_CFLAGS
=$CFLAGS
6499 CFLAGS
="${CFLAGS} +Olibmerrno"
6500 ac_save_c_werror_flag
=$ac_c_werror_flag
6501 ac_c_werror_flag
=yes
6502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6513 if ac_fn_c_try_compile
"$LINENO"; then :
6514 pgac_cv_prog_CC_cflags_pOlibmerrno
=yes
6516 pgac_cv_prog_CC_cflags_pOlibmerrno
=no
6518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6519 ac_c_werror_flag
=$ac_save_c_werror_flag
6520 CFLAGS
="$pgac_save_CFLAGS"
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags_pOlibmerrno" >&5
6524 $as_echo "$pgac_cv_prog_CC_cflags_pOlibmerrno" >&6; }
6525 if test x
"$pgac_cv_prog_CC_cflags_pOlibmerrno" = x
"yes"; then
6526 CFLAGS
="${CFLAGS} +Olibmerrno"
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS" >&5
6531 $as_echo_n "checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS... " >&6; }
6532 if ${pgac_cv_prog_CXX_cxxflags_pOlibmerrno+:} false
; then :
6533 $as_echo_n "(cached) " >&6
6535 pgac_save_CXXFLAGS
=$CXXFLAGS
6538 CXXFLAGS
="${CXXFLAGS} +Olibmerrno"
6539 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6540 ac_cxx_werror_flag
=yes
6542 ac_cpp
='$CXXCPP $CPPFLAGS'
6543 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6558 if ac_fn_cxx_try_compile
"$LINENO"; then :
6559 pgac_cv_prog_CXX_cxxflags_pOlibmerrno
=yes
6561 pgac_cv_prog_CXX_cxxflags_pOlibmerrno
=no
6563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6565 ac_cpp
='$CPP $CPPFLAGS'
6566 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6567 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6568 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6570 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6571 CXXFLAGS
="$pgac_save_CXXFLAGS"
6572 CXX
="$pgac_save_CXX"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&5
6575 $as_echo "$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&6; }
6576 if test x
"$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" = x
"yes"; then
6577 CXXFLAGS
="${CXXFLAGS} +Olibmerrno"
6585 # Determine flags used to emit bitcode for JIT inlining. Need to test
6586 # for behaviour changing compiler flags, to keep compatibility with
6587 # compiler used for normal postgres code.
6588 if test "$with_llvm" = yes ; then
6589 CLANGXX
="$CLANG -xc++"
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5
6592 $as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; }
6593 if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false
; then :
6594 $as_echo_n "(cached) " >&6
6596 pgac_save_CFLAGS
=$CFLAGS
6599 CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
6600 ac_save_c_werror_flag
=$ac_c_werror_flag
6601 ac_c_werror_flag
=yes
6602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6613 if ac_fn_c_try_compile
"$LINENO"; then :
6614 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=yes
6616 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=no
6618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6619 ac_c_werror_flag
=$ac_save_c_werror_flag
6620 CFLAGS
="$pgac_save_CFLAGS"
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5
6624 $as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; }
6625 if test x
"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x
"yes"; then
6626 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5
6630 $as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; }
6631 if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false
; then :
6632 $as_echo_n "(cached) " >&6
6634 pgac_save_CXXFLAGS
=$CXXFLAGS
6637 CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
6638 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6639 ac_cxx_werror_flag
=yes
6641 ac_cpp
='$CXXCPP $CPPFLAGS'
6642 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6643 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6644 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6657 if ac_fn_cxx_try_compile
"$LINENO"; then :
6658 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=yes
6660 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=no
6662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6664 ac_cpp
='$CPP $CPPFLAGS'
6665 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6669 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6670 CXXFLAGS
="$pgac_save_CXXFLAGS"
6671 CXX
="$pgac_save_CXX"
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5
6674 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; }
6675 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6676 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5
6680 $as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; }
6681 if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false
; then :
6682 $as_echo_n "(cached) " >&6
6684 pgac_save_CFLAGS
=$CFLAGS
6687 CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
6688 ac_save_c_werror_flag
=$ac_c_werror_flag
6689 ac_c_werror_flag
=yes
6690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6701 if ac_fn_c_try_compile
"$LINENO"; then :
6702 pgac_cv_prog_CLANG_cflags__fwrapv
=yes
6704 pgac_cv_prog_CLANG_cflags__fwrapv
=no
6706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6707 ac_c_werror_flag
=$ac_save_c_werror_flag
6708 CFLAGS
="$pgac_save_CFLAGS"
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5
6712 $as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; }
6713 if test x
"$pgac_cv_prog_CLANG_cflags__fwrapv" = x
"yes"; then
6714 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5
6718 $as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; }
6719 if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false
; then :
6720 $as_echo_n "(cached) " >&6
6722 pgac_save_CXXFLAGS
=$CXXFLAGS
6725 CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
6726 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6727 ac_cxx_werror_flag
=yes
6729 ac_cpp
='$CXXCPP $CPPFLAGS'
6730 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6731 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6732 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6745 if ac_fn_cxx_try_compile
"$LINENO"; then :
6746 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=yes
6748 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=no
6750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6752 ac_cpp
='$CPP $CPPFLAGS'
6753 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6754 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6755 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6757 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6758 CXXFLAGS
="$pgac_save_CXXFLAGS"
6759 CXX
="$pgac_save_CXX"
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5
6762 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; }
6763 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x
"yes"; then
6764 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5
6768 $as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; }
6769 if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false
; then :
6770 $as_echo_n "(cached) " >&6
6772 pgac_save_CFLAGS
=$CFLAGS
6775 CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
6776 ac_save_c_werror_flag
=$ac_c_werror_flag
6777 ac_c_werror_flag
=yes
6778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6789 if ac_fn_c_try_compile
"$LINENO"; then :
6790 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=yes
6792 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=no
6794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6795 ac_c_werror_flag
=$ac_save_c_werror_flag
6796 CFLAGS
="$pgac_save_CFLAGS"
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5
6800 $as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; }
6801 if test x
"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x
"yes"; then
6802 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5
6806 $as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; }
6807 if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false
; then :
6808 $as_echo_n "(cached) " >&6
6810 pgac_save_CXXFLAGS
=$CXXFLAGS
6813 CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
6814 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6815 ac_cxx_werror_flag
=yes
6817 ac_cpp
='$CXXCPP $CPPFLAGS'
6818 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6819 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6820 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6833 if ac_fn_cxx_try_compile
"$LINENO"; then :
6834 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=yes
6836 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=no
6838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6840 ac_cpp
='$CPP $CPPFLAGS'
6841 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6845 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6846 CXXFLAGS
="$pgac_save_CXXFLAGS"
6847 CXX
="$pgac_save_CXX"
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5
6850 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; }
6851 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
6852 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
6857 # supply -g if --enable-debug
6858 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
6862 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
6863 CXXFLAGS
="$CXXFLAGS -g"
6866 # enable code coverage if --enable-coverage
6867 if test "$enable_coverage" = yes; then
6868 if test "$GCC" = yes; then
6869 CFLAGS
="$CFLAGS -fprofile-arcs -ftest-coverage"
6870 CXXFLAGS
="$CXXFLAGS -fprofile-arcs -ftest-coverage"
6872 as_fn_error $?
"--enable-coverage is supported only when using GCC" "$LINENO" 5
6876 # enable profiling if --enable-profiling
6877 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
6878 if test "$GCC" = yes; then
6880 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
6882 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
6883 CXXFLAGS
="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS"
6885 as_fn_error $?
"--enable-profiling is supported only when using GCC" "$LINENO" 5
6889 # We already have this in Makefile.win32, but configure needs it too
6890 if test "$PORTNAME" = "win32"; then
6891 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
6894 # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the
6895 # user-specified flags (if any) at the end. This lets users override
6896 # the automatic additions.
6897 CFLAGS
="$CFLAGS $user_CFLAGS"
6898 CXXFLAGS
="$CXXFLAGS $user_CXXFLAGS"
6899 BITCODE_CFLAGS
="$BITCODE_CFLAGS $user_BITCODE_CFLAGS"
6900 BITCODE_CXXFLAGS
="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS"
6905 # The template file must set up CFLAGS_SL; we don't support user override
6908 # Check if the compiler still works with the final flag settings
6909 # (note, we're not checking that for CXX, which is optional)
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
6911 $as_echo_n "checking whether the C compiler still works... " >&6; }
6912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6923 if ac_fn_c_try_link
"$LINENO"; then :
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6925 $as_echo "yes" >&6; }
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6929 as_fn_error $?
"cannot proceed" "$LINENO" 5
6931 rm -f core conftest.err conftest.
$ac_objext \
6932 conftest
$ac_exeext conftest.
$ac_ext
6934 # Defend against gcc -ffast-math
6935 if test "$GCC" = yes; then
6936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6942 #ifdef __FAST_MATH__
6949 if ac_fn_c_try_compile
"$LINENO"; then :
6952 as_fn_error $?
"do not put -ffast-math in CFLAGS" "$LINENO" 5
6954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6957 # Defend against clang being used on x86-32 without SSE2 enabled. As current
6958 # versions of clang do not understand -fexcess-precision=standard, the use of
6959 # x87 floating point operations leads to problems like isinf possibly returning
6960 # false for a value that is infinite when converted from the 80bit register to
6961 # the 8byte memory representation.
6963 # Only perform the test if the compiler doesn't understand
6964 # -fexcess-precision=standard, that way a potentially fixed compiler will work
6966 if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no
; then
6967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6974 #if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
6982 if ac_fn_c_try_compile
"$LINENO"; then :
6985 as_fn_error $?
"Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5
6987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6991 ac_cpp
='$CPP $CPPFLAGS'
6992 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6993 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6994 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6996 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6997 # On Suns, sometimes $CPP names a directory.
6998 if test -n "$CPP" && test -d "$CPP"; then
7001 if test -z "$CPP"; then
7002 if ${ac_cv_prog_CPP+:} false
; then :
7003 $as_echo_n "(cached) " >&6
7005 # Double quotes because CPP needs to be expanded
7006 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7009 for ac_c_preproc_warn_flag
in '' yes
7011 # Use a header file that comes with gcc, so configuring glibc
7012 # with a fresh cross-compiler works.
7013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7014 # <limits.h> exists even on freestanding compilers.
7015 # On the NeXT, cc -E runs the code through the compiler's parser,
7016 # not just through cpp. "Syntax error" is here to catch this case.
7017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7020 # include <limits.h>
7022 # include <assert.h>
7026 if ac_fn_c_try_cpp
"$LINENO"; then :
7029 # Broken: fails on valid input.
7032 rm -f conftest.err conftest.i conftest.
$ac_ext
7034 # OK, works on sane cases. Now check whether nonexistent headers
7035 # can be detected and how.
7036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 #include <ac_nonexistent.h>
7040 if ac_fn_c_try_cpp
"$LINENO"; then :
7041 # Broken: success on invalid input.
7044 # Passes both tests.
7048 rm -f conftest.err conftest.i conftest.
$ac_ext
7051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7052 rm -f conftest.i conftest.err conftest.
$ac_ext
7053 if $ac_preproc_ok; then :
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7066 $as_echo "$CPP" >&6; }
7068 for ac_c_preproc_warn_flag
in '' yes
7070 # Use a header file that comes with gcc, so configuring glibc
7071 # with a fresh cross-compiler works.
7072 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7073 # <limits.h> exists even on freestanding compilers.
7074 # On the NeXT, cc -E runs the code through the compiler's parser,
7075 # not just through cpp. "Syntax error" is here to catch this case.
7076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7079 # include <limits.h>
7081 # include <assert.h>
7085 if ac_fn_c_try_cpp
"$LINENO"; then :
7088 # Broken: fails on valid input.
7091 rm -f conftest.err conftest.i conftest.
$ac_ext
7093 # OK, works on sane cases. Now check whether nonexistent headers
7094 # can be detected and how.
7095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 #include <ac_nonexistent.h>
7099 if ac_fn_c_try_cpp
"$LINENO"; then :
7100 # Broken: success on invalid input.
7103 # Passes both tests.
7107 rm -f conftest.err conftest.i conftest.
$ac_ext
7110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7111 rm -f conftest.i conftest.err conftest.
$ac_ext
7112 if $ac_preproc_ok; then :
7115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7117 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7118 See \`config.log' for more details" "$LINENO" 5; }
7122 ac_cpp
='$CPP $CPPFLAGS'
7123 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7131 # Set up TAS assembly code if needed; the template file has now had its
7132 # chance to request this.
7134 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
7137 if test "$need_tas" = yes ; then
7146 # Automatic dependency tracking
7150 # Check whether --enable-depend was given.
7151 if test "${enable_depend+set}" = set; then :
7152 enableval
=$enable_depend;
7161 as_fn_error $?
"no argument expected for --enable-depend option" "$LINENO" 5
7175 # Enable assert checks
7179 # Check whether --enable-cassert was given.
7180 if test "${enable_cassert+set}" = set; then :
7181 enableval
=$enable_cassert;
7185 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
7192 as_fn_error $?
"no argument expected for --enable-cassert option" "$LINENO" 5
7205 # Include directories
7208 IFS
="${IFS}${PATH_SEPARATOR}"
7209 # SRCH_INC comes from the template file
7210 for dir
in $with_includes $SRCH_INC; do
7211 if test -d "$dir"; then
7212 INCLUDES
="$INCLUDES -I$dir"
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
7215 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
7223 # Library directories
7226 IFS
="${IFS}${PATH_SEPARATOR}"
7227 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
7228 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
7229 if test -d "$dir"; then
7230 LIBDIRS
="$LIBDIRS -L$dir"
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
7233 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
7239 # Enable thread-safe client libraries
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
7242 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
7245 # Check whether --enable-thread-safety was given.
7246 if test "${enable_thread_safety+set}" = set; then :
7247 enableval
=$enable_thread_safety;
7256 as_fn_error $?
"no argument expected for --enable-thread-safety option" "$LINENO" 5
7261 enable_thread_safety
=yes
7266 if test "$enable_thread_safety" = yes; then
7268 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
7272 $as_echo "$enable_thread_safety" >&6; }
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
7279 $as_echo_n "checking whether to build with ICU support... " >&6; }
7283 # Check whether --with-icu was given.
7284 if test "${with_icu+set}" = set; then :
7289 $as_echo "#define USE_ICU 1" >>confdefs.h
7296 as_fn_error $?
"no argument expected for --with-icu option" "$LINENO" 5
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
7307 $as_echo "$with_icu" >&6; }
7310 if test "$with_icu" = yes; then
7318 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7321 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7325 $as_echo_n "(cached) " >&6
7329 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7336 test -z "$as_dir" && as_dir
=.
7337 for ac_exec_ext
in '' $ac_executable_extensions; do
7338 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7339 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7351 if test -n "$PKG_CONFIG"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7353 $as_echo "$PKG_CONFIG" >&6; }
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7361 if test -z "$ac_cv_path_PKG_CONFIG"; then
7362 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7363 # Extract the first word of "pkg-config", so it can be a program name with args.
7364 set dummy pkg-config
; ac_word
=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
7368 $as_echo_n "(cached) " >&6
7370 case $ac_pt_PKG_CONFIG in
7372 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7379 test -z "$as_dir" && as_dir
=.
7380 for ac_exec_ext
in '' $ac_executable_extensions; do
7381 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7382 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7394 if test -n "$ac_pt_PKG_CONFIG"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7396 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7402 if test "x$ac_pt_PKG_CONFIG" = x
; then
7405 case $cross_compiling:$ac_tool_warned in
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7409 ac_tool_warned
=yes ;;
7411 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7414 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7418 if test -n "$PKG_CONFIG"; then
7419 _pkg_min_version
=0.9.0
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7421 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7422 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7424 $as_echo "yes" >&6; }
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
7434 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
7436 if test -n "$ICU_CFLAGS"; then
7437 pkg_cv_ICU_CFLAGS
="$ICU_CFLAGS"
7438 elif test -n "$PKG_CONFIG"; then
7439 if test -n "$PKG_CONFIG" && \
7440 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
7441 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
7443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7444 test $ac_status = 0; }; then
7445 pkg_cv_ICU_CFLAGS
=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
7446 test "x$?" != "x0" && pkg_failed
=yes
7453 if test -n "$ICU_LIBS"; then
7454 pkg_cv_ICU_LIBS
="$ICU_LIBS"
7455 elif test -n "$PKG_CONFIG"; then
7456 if test -n "$PKG_CONFIG" && \
7457 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
7458 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
7460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7461 test $ac_status = 0; }; then
7462 pkg_cv_ICU_LIBS
=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
7463 test "x$?" != "x0" && pkg_failed
=yes
7473 if test $pkg_failed = yes; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7477 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7478 _pkg_short_errors_supported
=yes
7480 _pkg_short_errors_supported
=no
7482 if test $_pkg_short_errors_supported = yes; then
7483 ICU_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
7485 ICU_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
7487 # Put the nasty error message in config.log where it belongs
7488 echo "$ICU_PKG_ERRORS" >&5
7490 as_fn_error $?
"Package requirements (icu-uc icu-i18n) were not met:
7494 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7495 installed software in a non-standard prefix.
7497 Alternatively, you may set the environment variables ICU_CFLAGS
7498 and ICU_LIBS to avoid the need to call pkg-config.
7499 See the pkg-config man page for more details." "$LINENO" 5
7500 elif test $pkg_failed = untried
; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7505 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
7506 is in your PATH or set the PKG_CONFIG environment variable to the full
7509 Alternatively, you may set the environment variables ICU_CFLAGS
7510 and ICU_LIBS to avoid the need to call pkg-config.
7511 See the pkg-config man page for more details.
7513 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7514 See \`config.log' for more details" "$LINENO" 5; }
7516 ICU_CFLAGS
=$pkg_cv_ICU_CFLAGS
7517 ICU_LIBS
=$pkg_cv_ICU_LIBS
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7519 $as_echo "yes" >&6; }
7525 # Optionally build Tcl modules (PL/Tcl)
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
7528 $as_echo_n "checking whether to build with Tcl... " >&6; }
7532 # Check whether --with-tcl was given.
7533 if test "${with_tcl+set}" = set; then :
7543 as_fn_error $?
"no argument expected for --with-tcl option" "$LINENO" 5
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
7554 $as_echo "$with_tcl" >&6; }
7557 # We see if the path to the Tcl/Tk configuration scripts is specified.
7558 # This will override the use of tclsh to find the paths to search.
7563 # Check whether --with-tclconfig was given.
7564 if test "${with_tclconfig+set}" = set; then :
7565 withval
=$with_tclconfig;
7568 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
7571 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
7583 # Optionally build Perl modules (PL/Perl)
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
7586 $as_echo_n "checking whether to build Perl modules... " >&6; }
7590 # Check whether --with-perl was given.
7591 if test "${with_perl+set}" = set; then :
7601 as_fn_error $?
"no argument expected for --with-perl option" "$LINENO" 5
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
7612 $as_echo "$with_perl" >&6; }
7616 # Optionally build Python modules (PL/Python)
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
7619 $as_echo_n "checking whether to build Python modules... " >&6; }
7623 # Check whether --with-python was given.
7624 if test "${with_python+set}" = set; then :
7625 withval
=$with_python;
7634 as_fn_error $?
"no argument expected for --with-python option" "$LINENO" 5
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7645 $as_echo "$with_python" >&6; }
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
7652 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
7656 # Check whether --with-gssapi was given.
7657 if test "${with_gssapi+set}" = set; then :
7658 withval
=$with_gssapi;
7663 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
7665 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
7672 as_fn_error $?
"no argument expected for --with-gssapi option" "$LINENO" 5
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
7683 $as_echo "$with_gssapi" >&6; }
7691 # Kerberos configuration parameters
7696 # Check whether --with-krb-srvnam was given.
7697 if test "${with_krb_srvnam+set}" = set; then :
7698 withval
=$with_krb_srvnam;
7701 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
7704 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
7712 with_krb_srvnam
="postgres"
7718 cat >>confdefs.h
<<_ACEOF
7719 #define PG_KRB_SRVNAM "$with_krb_srvnam"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
7728 $as_echo_n "checking whether to build with PAM support... " >&6; }
7732 # Check whether --with-pam was given.
7733 if test "${with_pam+set}" = set; then :
7738 $as_echo "#define USE_PAM 1" >>confdefs.h
7745 as_fn_error $?
"no argument expected for --with-pam option" "$LINENO" 5
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
7756 $as_echo "$with_pam" >&6; }
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
7763 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
7767 # Check whether --with-bsd-auth was given.
7768 if test "${with_bsd_auth+set}" = set; then :
7769 withval
=$with_bsd_auth;
7773 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
7780 as_fn_error $?
"no argument expected for --with-bsd-auth option" "$LINENO" 5
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
7791 $as_echo "$with_bsd_auth" >&6; }
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
7798 $as_echo_n "checking whether to build with LDAP support... " >&6; }
7802 # Check whether --with-ldap was given.
7803 if test "${with_ldap+set}" = set; then :
7808 $as_echo "#define USE_LDAP 1" >>confdefs.h
7815 as_fn_error $?
"no argument expected for --with-ldap option" "$LINENO" 5
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
7826 $as_echo "$with_ldap" >&6; }
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
7834 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
7838 # Check whether --with-bonjour was given.
7839 if test "${with_bonjour+set}" = set; then :
7840 withval
=$with_bonjour;
7844 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
7851 as_fn_error $?
"no argument expected for --with-bonjour option" "$LINENO" 5
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
7862 $as_echo "$with_bonjour" >&6; }
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
7869 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
7873 # Check whether --with-openssl was given.
7874 if test "${with_openssl+set}" = set; then :
7875 withval
=$with_openssl;
7879 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
7886 as_fn_error $?
"no argument expected for --with-openssl option" "$LINENO" 5
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
7897 $as_echo "$with_openssl" >&6; }
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
7904 $as_echo_n "checking whether to build with SELinux support... " >&6; }
7908 # Check whether --with-selinux was given.
7909 if test "${with_selinux+set}" = set; then :
7910 withval
=$with_selinux;
7919 as_fn_error $?
"no argument expected for --with-selinux option" "$LINENO" 5
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
7931 $as_echo "$with_selinux" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
7937 $as_echo_n "checking whether to build with systemd support... " >&6; }
7941 # Check whether --with-systemd was given.
7942 if test "${with_systemd+set}" = set; then :
7943 withval
=$with_systemd;
7947 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
7954 as_fn_error $?
"no argument expected for --with-systemd option" "$LINENO" 5
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
7966 $as_echo "$with_systemd" >&6; }
7974 # Check whether --with-readline was given.
7975 if test "${with_readline+set}" = set; then :
7976 withval
=$with_readline;
7985 as_fn_error $?
"no argument expected for --with-readline option" "$LINENO" 5
7995 # readline on MinGW has problems with backslashes in psql and other bugs.
7996 # This is particularly a problem with non-US code pages.
7997 # Therefore disable its use until we understand the cause. 2004-07-20
7998 if test "$PORTNAME" = "win32"; then
7999 if test "$with_readline" = yes; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
8001 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
8013 # Check whether --with-libedit-preferred was given.
8014 if test "${with_libedit_preferred+set}" = set; then :
8015 withval
=$with_libedit_preferred;
8024 as_fn_error $?
"no argument expected for --with-libedit-preferred option" "$LINENO" 5
8029 with_libedit_preferred
=no
8039 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
8040 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
8041 # UUID library. More than one of these might be present on a given platform,
8042 # so we make the user say which one she wants.
8047 # Check whether --with-uuid was given.
8048 if test "${with_uuid+set}" = set; then :
8052 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8055 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8065 if test x
"$with_uuid" = x
"" ; then
8071 # Check whether --with-ossp-uuid was given.
8072 if test "${with_ossp_uuid+set}" = set; then :
8073 withval
=$with_ossp_uuid;
8082 as_fn_error $?
"no argument expected for --with-ossp-uuid option" "$LINENO" 5
8092 if test "$with_ossp_uuid" = yes ; then
8096 if test "$with_uuid" = bsd
; then
8098 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
8100 UUID_EXTRA_OBJS
="md5.o sha1.o"
8101 elif test "$with_uuid" = e2fs
; then
8103 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
8105 UUID_EXTRA_OBJS
="md5.o sha1.o"
8106 elif test "$with_uuid" = ossp
; then
8108 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
8111 elif test "$with_uuid" = no
; then
8114 as_fn_error $?
"--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
8126 # Check whether --with-libxml was given.
8127 if test "${with_libxml+set}" = set; then :
8128 withval
=$with_libxml;
8132 $as_echo "#define USE_LIBXML 1" >>confdefs.h
8139 as_fn_error $?
"no argument expected for --with-libxml option" "$LINENO" 5
8150 if test "$with_libxml" = yes ; then
8151 if test -z "$XML2_CONFIG"; then
8152 for ac_prog
in xml2-config
8154 # Extract the first word of "$ac_prog", so it can be a program name with args.
8155 set dummy
$ac_prog; ac_word
=$2
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157 $as_echo_n "checking for $ac_word... " >&6; }
8158 if ${ac_cv_path_XML2_CONFIG+:} false
; then :
8159 $as_echo_n "(cached) " >&6
8161 case $XML2_CONFIG in
8163 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
8166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8170 test -z "$as_dir" && as_dir
=.
8171 for ac_exec_ext
in '' $ac_executable_extensions; do
8172 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8173 ac_cv_path_XML2_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 XML2_CONFIG
=$ac_cv_path_XML2_CONFIG
8185 if test -n "$XML2_CONFIG"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8187 $as_echo "$XML2_CONFIG" >&6; }
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8194 test -n "$XML2_CONFIG" && break
8198 # Report the value of XML2_CONFIG in configure's output in all cases.
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
8200 $as_echo_n "checking for XML2_CONFIG... " >&6; }
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8202 $as_echo "$XML2_CONFIG" >&6; }
8205 if test -n "$XML2_CONFIG"; then
8206 for pgac_option
in `$XML2_CONFIG --cflags`; do
8207 case $pgac_option in
8208 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
8211 for pgac_option
in `$XML2_CONFIG --libs`; do
8212 case $pgac_option in
8213 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
8227 # Check whether --with-libxslt was given.
8228 if test "${with_libxslt+set}" = set; then :
8229 withval
=$with_libxslt;
8233 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
8240 as_fn_error $?
"no argument expected for --with-libxslt option" "$LINENO" 5
8260 # Check whether --with-system-tzdata was given.
8261 if test "${with_system_tzdata+set}" = set; then :
8262 withval
=$with_system_tzdata;
8265 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8268 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8286 # Check whether --with-zlib was given.
8287 if test "${with_zlib+set}" = set; then :
8297 as_fn_error $?
"no argument expected for --with-zlib option" "$LINENO" 5
8313 CPPFLAGS
="$CPPFLAGS $INCLUDES"
8314 LDFLAGS
="$LDFLAGS $LIBDIRS"
8320 # Check whether --with-gnu-ld was given.
8321 if test "${with_gnu_ld+set}" = set; then :
8322 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8328 if test "$GCC" = yes; then
8329 # Check if gcc -print-prog-name=ld gives a path.
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8331 $as_echo_n "checking for ld used by GCC... " >&6; }
8334 # gcc leaves a trailing carriage return which upsets mingw
8335 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8337 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8340 # Accept absolute paths.
8341 [\\/]* |
[A-Za-z
]:[\\/]*)
8342 re_direlt
='/[^/][^/]*/\.\./'
8343 # Canonicalize the path of ld
8344 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8345 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8346 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8348 test -z "$LD" && LD
="$ac_prog"
8351 # If it fails, then pretend we aren't using GCC.
8355 # If it is relative, then search for the first ld in PATH.
8359 elif test "$with_gnu_ld" = yes; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8361 $as_echo_n "checking for GNU ld... " >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8364 $as_echo_n "checking for non-GNU ld... " >&6; }
8366 if ${ac_cv_path_LD+:} false
; then :
8367 $as_echo_n "(cached) " >&6
8369 if test -z "$LD"; then
8370 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8371 for ac_dir
in $PATH; do
8372 test -z "$ac_dir" && ac_dir
=.
8373 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8374 ac_cv_path_LD
="$ac_dir/$ac_prog"
8375 # Check to see if the program is GNU ld. I'd rather use --version,
8376 # but apparently some GNU ld's only accept -v.
8377 # Break only if it was the GNU/non-GNU ld that we prefer.
8378 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8379 test "$with_gnu_ld" != no
&& break
8381 test "$with_gnu_ld" != yes && break
8387 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
8392 if test -n "$LD"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8394 $as_echo "$LD" >&6; }
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8399 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8401 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8402 if ${ac_cv_prog_gnu_ld+:} false
; then :
8403 $as_echo_n "(cached) " >&6
8405 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8406 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8407 ac_cv_prog_gnu_ld
=yes
8409 ac_cv_prog_gnu_ld
=no
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
8413 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
8414 with_gnu_ld
=$ac_cv_prog_gnu_ld
8419 if test -n "$ac_tool_prefix"; then
8420 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8421 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if ${ac_cv_prog_RANLIB+:} false
; then :
8425 $as_echo_n "(cached) " >&6
8427 if test -n "$RANLIB"; then
8428 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8434 test -z "$as_dir" && as_dir
=.
8435 for ac_exec_ext
in '' $ac_executable_extensions; do
8436 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8437 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 RANLIB
=$ac_cv_prog_RANLIB
8448 if test -n "$RANLIB"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8450 $as_echo "$RANLIB" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8458 if test -z "$ac_cv_prog_RANLIB"; then
8459 ac_ct_RANLIB
=$RANLIB
8460 # Extract the first word of "ranlib", so it can be a program name with args.
8461 set dummy ranlib
; ac_word
=$2
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8465 $as_echo_n "(cached) " >&6
8467 if test -n "$ac_ct_RANLIB"; then
8468 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8474 test -z "$as_dir" && as_dir
=.
8475 for ac_exec_ext
in '' $ac_executable_extensions; do
8476 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8477 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8488 if test -n "$ac_ct_RANLIB"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8490 $as_echo "$ac_ct_RANLIB" >&6; }
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8496 if test "x$ac_ct_RANLIB" = x
; then
8499 case $cross_compiling:$ac_tool_warned in
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8503 ac_tool_warned
=yes ;;
8505 RANLIB
=$ac_ct_RANLIB
8508 RANLIB
="$ac_cv_prog_RANLIB"
8512 if test -n "$ac_tool_prefix"; then
8513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8514 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516 $as_echo_n "checking for $ac_word... " >&6; }
8517 if ${ac_cv_prog_STRIP+:} false
; then :
8518 $as_echo_n "(cached) " >&6
8520 if test -n "$STRIP"; then
8521 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
8523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8527 test -z "$as_dir" && as_dir
=.
8528 for ac_exec_ext
in '' $ac_executable_extensions; do
8529 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8530 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
8531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 STRIP
=$ac_cv_prog_STRIP
8541 if test -n "$STRIP"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8543 $as_echo "$STRIP" >&6; }
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8551 if test -z "$ac_cv_prog_STRIP"; then
8553 # Extract the first word of "strip", so it can be a program name with args.
8554 set dummy strip
; ac_word
=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
8558 $as_echo_n "(cached) " >&6
8560 if test -n "$ac_ct_STRIP"; then
8561 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
8563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8567 test -z "$as_dir" && as_dir
=.
8568 for ac_exec_ext
in '' $ac_executable_extensions; do
8569 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8570 ac_cv_prog_ac_ct_STRIP
="strip"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
8581 if test -n "$ac_ct_STRIP"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8583 $as_echo "$ac_ct_STRIP" >&6; }
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8589 if test "x$ac_ct_STRIP" = x
; then
8592 case $cross_compiling:$ac_tool_warned in
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8596 ac_tool_warned
=yes ;;
8601 STRIP
="$ac_cv_prog_STRIP"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
8606 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
8607 if test x
"$STRIP" != x
"" && "$STRIP" -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8608 STRIP_STATIC_LIB
="$STRIP -x"
8609 STRIP_SHARED_LIB
="$STRIP --strip-unneeded"
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8611 $as_echo "yes" >&6; }
8616 STRIP_STATIC_LIB
=$STRIP
8617 STRIP_SHARED_LIB
=$STRIP
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8619 $as_echo "yes" >&6; }
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8632 if test -n "$ac_tool_prefix"; then
8633 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8634 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636 $as_echo_n "checking for $ac_word... " >&6; }
8637 if ${ac_cv_prog_AR+:} false
; then :
8638 $as_echo_n "(cached) " >&6
8640 if test -n "$AR"; then
8641 ac_cv_prog_AR
="$AR" # Let the user override the test.
8643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8647 test -z "$as_dir" && as_dir
=.
8648 for ac_exec_ext
in '' $ac_executable_extensions; do
8649 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8650 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 if test -n "$AR"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8663 $as_echo "$AR" >&6; }
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8671 if test -z "$ac_cv_prog_AR"; then
8673 # Extract the first word of "ar", so it can be a program name with args.
8674 set dummy
ar; ac_word
=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
8678 $as_echo_n "(cached) " >&6
8680 if test -n "$ac_ct_AR"; then
8681 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8687 test -z "$as_dir" && as_dir
=.
8688 for ac_exec_ext
in '' $ac_executable_extensions; do
8689 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_prog_ac_ct_AR
="ar"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8701 if test -n "$ac_ct_AR"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8703 $as_echo "$ac_ct_AR" >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8709 if test "x$ac_ct_AR" = x
; then
8712 case $cross_compiling:$ac_tool_warned in
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8716 ac_tool_warned
=yes ;;
8724 if test "$PORTNAME" = "win32"; then
8725 if test -n "$ac_tool_prefix"; then
8726 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8727 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_prog_DLLTOOL+:} false
; then :
8731 $as_echo_n "(cached) " >&6
8733 if test -n "$DLLTOOL"; then
8734 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8740 test -z "$as_dir" && as_dir
=.
8741 for ac_exec_ext
in '' $ac_executable_extensions; do
8742 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8743 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 DLLTOOL
=$ac_cv_prog_DLLTOOL
8754 if test -n "$DLLTOOL"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8756 $as_echo "$DLLTOOL" >&6; }
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759 $as_echo "no" >&6; }
8764 if test -z "$ac_cv_prog_DLLTOOL"; then
8765 ac_ct_DLLTOOL
=$DLLTOOL
8766 # Extract the first word of "dlltool", so it can be a program name with args.
8767 set dummy dlltool
; ac_word
=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
8771 $as_echo_n "(cached) " >&6
8773 if test -n "$ac_ct_DLLTOOL"; then
8774 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8780 test -z "$as_dir" && as_dir
=.
8781 for ac_exec_ext
in '' $ac_executable_extensions; do
8782 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8783 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8794 if test -n "$ac_ct_DLLTOOL"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8796 $as_echo "$ac_ct_DLLTOOL" >&6; }
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8802 if test "x$ac_ct_DLLTOOL" = x
; then
8805 case $cross_compiling:$ac_tool_warned in
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8809 ac_tool_warned
=yes ;;
8811 DLLTOOL
=$ac_ct_DLLTOOL
8814 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8817 if test -n "$ac_tool_prefix"; then
8818 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
8819 set dummy
${ac_tool_prefix}dllwrap
; ac_word
=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_prog_DLLWRAP+:} false
; then :
8823 $as_echo_n "(cached) " >&6
8825 if test -n "$DLLWRAP"; then
8826 ac_cv_prog_DLLWRAP
="$DLLWRAP" # Let the user override the test.
8828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8832 test -z "$as_dir" && as_dir
=.
8833 for ac_exec_ext
in '' $ac_executable_extensions; do
8834 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_DLLWRAP
="${ac_tool_prefix}dllwrap"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 DLLWRAP
=$ac_cv_prog_DLLWRAP
8846 if test -n "$DLLWRAP"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
8848 $as_echo "$DLLWRAP" >&6; }
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8856 if test -z "$ac_cv_prog_DLLWRAP"; then
8857 ac_ct_DLLWRAP
=$DLLWRAP
8858 # Extract the first word of "dllwrap", so it can be a program name with args.
8859 set dummy dllwrap
; ac_word
=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false
; then :
8863 $as_echo_n "(cached) " >&6
8865 if test -n "$ac_ct_DLLWRAP"; then
8866 ac_cv_prog_ac_ct_DLLWRAP
="$ac_ct_DLLWRAP" # Let the user override the test.
8868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8872 test -z "$as_dir" && as_dir
=.
8873 for ac_exec_ext
in '' $ac_executable_extensions; do
8874 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8875 ac_cv_prog_ac_ct_DLLWRAP
="dllwrap"
8876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 ac_ct_DLLWRAP
=$ac_cv_prog_ac_ct_DLLWRAP
8886 if test -n "$ac_ct_DLLWRAP"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
8888 $as_echo "$ac_ct_DLLWRAP" >&6; }
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8894 if test "x$ac_ct_DLLWRAP" = x
; then
8897 case $cross_compiling:$ac_tool_warned in
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8901 ac_tool_warned
=yes ;;
8903 DLLWRAP
=$ac_ct_DLLWRAP
8906 DLLWRAP
="$ac_cv_prog_DLLWRAP"
8909 if test -n "$ac_tool_prefix"; then
8910 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8911 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913 $as_echo_n "checking for $ac_word... " >&6; }
8914 if ${ac_cv_prog_WINDRES+:} false
; then :
8915 $as_echo_n "(cached) " >&6
8917 if test -n "$WINDRES"; then
8918 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8924 test -z "$as_dir" && as_dir
=.
8925 for ac_exec_ext
in '' $ac_executable_extensions; do
8926 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8927 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 WINDRES
=$ac_cv_prog_WINDRES
8938 if test -n "$WINDRES"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8940 $as_echo "$WINDRES" >&6; }
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8948 if test -z "$ac_cv_prog_WINDRES"; then
8949 ac_ct_WINDRES
=$WINDRES
8950 # Extract the first word of "windres", so it can be a program name with args.
8951 set dummy windres
; ac_word
=$2
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8953 $as_echo_n "checking for $ac_word... " >&6; }
8954 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
8955 $as_echo_n "(cached) " >&6
8957 if test -n "$ac_ct_WINDRES"; then
8958 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
8960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8964 test -z "$as_dir" && as_dir
=.
8965 for ac_exec_ext
in '' $ac_executable_extensions; do
8966 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8967 ac_cv_prog_ac_ct_WINDRES
="windres"
8968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
8978 if test -n "$ac_ct_WINDRES"; then
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8980 $as_echo "$ac_ct_WINDRES" >&6; }
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983 $as_echo "no" >&6; }
8986 if test "x$ac_ct_WINDRES" = x
; then
8989 case $cross_compiling:$ac_tool_warned in
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8993 ac_tool_warned
=yes ;;
8995 WINDRES
=$ac_ct_WINDRES
8998 WINDRES
="$ac_cv_prog_WINDRES"
9003 # Find a good install program. We prefer a C program (faster),
9004 # so one script is as good as another. But avoid the broken or
9005 # incompatible versions:
9006 # SysV /etc/install, /usr/sbin/install
9007 # SunOS /usr/etc/install
9008 # IRIX /sbin/install
9010 # AmigaOS /C/install, which installs bootblocks on floppy discs
9011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9014 # OS/2's system install, which has a completely different semantic
9015 # ./install, which can be erroneously created by make from ./install.sh.
9016 # Reject install programs that cannot install multiple files.
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9018 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9019 if test -z "$INSTALL"; then
9020 if ${ac_cv_path_install+:} false
; then :
9021 $as_echo_n "(cached) " >&6
9023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9027 test -z "$as_dir" && as_dir
=.
9028 # Account for people who put trailing slashes in PATH elements.
9029 case $as_dir/ in #((
9030 .
/ | .
// |
/[cC
]/* | \
9031 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
9032 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
9035 # OSF1 and SCO ODT 3.0 have their own names for install.
9036 # Don't use installbsd from OSF since it installs stuff as root
9038 for ac_prog
in ginstall scoinst
install; do
9039 for ac_exec_ext
in '' $ac_executable_extensions; do
9040 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
9041 if test $ac_prog = install &&
9042 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9043 # AIX install. It has an incompatible calling convention.
9045 elif test $ac_prog = install &&
9046 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9047 # program-specific install script used by HP pwplus--don't use.
9050 rm -rf conftest.one conftest.two conftest.dir
9051 echo one
> conftest.one
9052 echo two
> conftest.two
9054 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
9055 test -s conftest.one
&& test -s conftest.two
&&
9056 test -s conftest.dir
/conftest.one
&&
9057 test -s conftest.dir
/conftest.two
9059 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
9072 rm -rf conftest.one conftest.two conftest.dir
9075 if test "${ac_cv_path_install+set}" = set; then
9076 INSTALL
=$ac_cv_path_install
9078 # As a last resort, use the slow shell script. Don't cache a
9079 # value for INSTALL within a source directory, because that will
9080 # break other packages using the cache if that directory is
9081 # removed, or if the value is a relative name.
9082 INSTALL
=$ac_install_sh
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9086 $as_echo "$INSTALL" >&6; }
9088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9089 # It thinks the first close brace ends the variable substitution.
9090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
9092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
9094 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
9096 # When Autoconf chooses install-sh as install program it tries to generate
9097 # a relative path to it in each makefile where it substitutes it. This clashes
9098 # with our Makefile.global concept. This workaround helps.
9100 *install-sh
*) install_bin
='';;
9101 *) install_bin
=$INSTALL;;
9105 if test -z "$TAR"; then
9108 # Extract the first word of "$ac_prog", so it can be a program name with args.
9109 set dummy
$ac_prog; ac_word
=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if ${ac_cv_path_TAR+:} false
; then :
9113 $as_echo_n "(cached) " >&6
9117 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
9120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9124 test -z "$as_dir" && as_dir
=.
9125 for ac_exec_ext
in '' $ac_executable_extensions; do
9126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9127 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9139 if test -n "$TAR"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9141 $as_echo "$TAR" >&6; }
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9148 test -n "$TAR" && break
9152 # Report the value of TAR in configure's output in all cases.
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9154 $as_echo_n "checking for TAR... " >&6; }
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9156 $as_echo "$TAR" >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9160 $as_echo_n "checking whether ln -s works... " >&6; }
9162 if test "$LN_S" = "ln -s"; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9164 $as_echo "yes" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9167 $as_echo "no, using $LN_S" >&6; }
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9171 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9172 if test -z "$MKDIR_P"; then
9173 if ${ac_cv_path_mkdir+:} false
; then :
9174 $as_echo_n "(cached) " >&6
9176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9177 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
9180 test -z "$as_dir" && as_dir
=.
9181 for ac_prog
in mkdir gmkdir
; do
9182 for ac_exec_ext
in '' $ac_executable_extensions; do
9183 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
9184 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9185 'mkdir (GNU coreutils) '* | \
9186 'mkdir (coreutils) '* | \
9187 'mkdir (fileutils) '4.1*)
9188 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
9198 test -d .
/--version && rmdir .
/--version
9199 if test "${ac_cv_path_mkdir+set}" = set; then
9200 MKDIR_P
="$ac_cv_path_mkdir -p"
9202 # As a last resort, use the slow shell script. Don't cache a
9203 # value for MKDIR_P within a source directory, because that will
9204 # break other packages using the cache if that directory is
9205 # removed, or if the value is a relative name.
9206 MKDIR_P
="$ac_install_sh -d"
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9210 $as_echo "$MKDIR_P" >&6; }
9212 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
9213 # a relative path to it in each makefile where it substitutes it. This clashes
9214 # with our Makefile.global concept. This workaround helps.
9216 *install-sh
*) MKDIR_P
='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
9219 if test -z "$BISON"; then
9220 for ac_prog
in bison
9222 # Extract the first word of "$ac_prog", so it can be a program name with args.
9223 set dummy
$ac_prog; ac_word
=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if ${ac_cv_path_BISON+:} false
; then :
9227 $as_echo_n "(cached) " >&6
9231 ac_cv_path_BISON
="$BISON" # Let the user override the test with a path.
9234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9238 test -z "$as_dir" && as_dir
=.
9239 for ac_exec_ext
in '' $ac_executable_extensions; do
9240 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9241 ac_cv_path_BISON
="$as_dir/$ac_word$ac_exec_ext"
9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9252 BISON
=$ac_cv_path_BISON
9253 if test -n "$BISON"; then
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9255 $as_echo "$BISON" >&6; }
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258 $as_echo "no" >&6; }
9262 test -n "$BISON" && break
9266 # Report the value of BISON in configure's output in all cases.
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
9268 $as_echo_n "checking for BISON... " >&6; }
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9270 $as_echo "$BISON" >&6; }
9274 if test "$BISON"; then
9275 pgac_bison_version
=`$BISON --version 2>/dev/null | sed q`
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
9277 $as_echo "$as_me: using $pgac_bison_version" >&6;}
9278 if echo "$pgac_bison_version" |
$AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9281 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9282 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
9283 $as_echo "$as_me: WARNING:
9284 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9285 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
9288 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
9289 # of the now preferred %name-prefix "base_yy", but the latter
9290 # doesn't work with Bison 2.3 or less. So for now we silence the
9291 # deprecation warnings.
9292 if echo "$pgac_bison_version" |
$AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
9294 BISONFLAGS
="$BISONFLAGS -Wno-deprecated"
9298 if test -z "$BISON"; then
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9300 *** Without Bison you will not be able to build PostgreSQL from Git nor
9301 *** change any of the parser definition files. You can obtain Bison from
9302 *** a GNU mirror site. (If you are using the official distribution of
9303 *** PostgreSQL then you do not need to worry about this, because the Bison
9304 *** output is pre-generated.)" >&5
9305 $as_echo "$as_me: WARNING:
9306 *** Without Bison you will not be able to build PostgreSQL from Git nor
9307 *** change any of the parser definition files. You can obtain Bison from
9308 *** a GNU mirror site. (If you are using the official distribution of
9309 *** PostgreSQL then you do not need to worry about this, because the Bison
9310 *** output is pre-generated.)" >&2;}
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
9315 $as_echo_n "checking for flex... " >&6; }
9316 if ${pgac_cv_path_flex+:} false
; then :
9317 $as_echo_n "(cached) " >&6
9319 # Let the user override the test
9320 if test -n "$FLEX"; then
9321 pgac_cv_path_flex
=$FLEX
9325 for pgac_dir
in $PATH; do
9327 if test -z "$pgac_dir" ||
test x
"$pgac_dir" = x
"."; then
9330 for pgac_prog
in flex
lex; do
9331 pgac_candidate
="$pgac_dir/$pgac_prog"
9332 if test -f "$pgac_candidate" \
9333 && $pgac_candidate --version </dev
/null
>/dev
/null
2>&1
9335 echo '%%' > conftest.l
9336 if $pgac_candidate -t conftest.l
2>/dev
/null |
grep FLEX_SCANNER
>/dev
/null
2>&1; then
9337 pgac_flex_version
=`$pgac_candidate --version 2>/dev/null`
9338 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;}'
9340 pgac_cv_path_flex
=$pgac_candidate
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9344 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
9345 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
9346 $as_echo "$as_me: WARNING:
9347 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
9348 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
9354 rm -f conftest.l
lex.yy.c
9355 : ${pgac_cv_path_flex=no}
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
9360 $as_echo "$pgac_cv_path_flex" >&6; }
9361 if test x
"$pgac_cv_path_flex" = x
"no"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9363 *** Without Flex you will not be able to build PostgreSQL from Git nor
9364 *** change any of the scanner definition files. You can obtain Flex from
9365 *** a GNU mirror site. (If you are using the official distribution of
9366 *** PostgreSQL then you do not need to worry about this because the Flex
9367 *** output is pre-generated.)" >&5
9368 $as_echo "$as_me: WARNING:
9369 *** Without Flex you will not be able to build PostgreSQL from Git nor
9370 *** change any of the scanner definition files. You can obtain Flex from
9371 *** a GNU mirror site. (If you are using the official distribution of
9372 *** PostgreSQL then you do not need to worry about this because the Flex
9373 *** output is pre-generated.)" >&2;}
9377 FLEX
=$pgac_cv_path_flex
9378 pgac_flex_version
=`$FLEX --version 2>/dev/null`
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
9380 $as_echo "$as_me: using $pgac_flex_version" >&6;}
9387 if test -z "$PERL"; then
9390 # Extract the first word of "$ac_prog", so it can be a program name with args.
9391 set dummy
$ac_prog; 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_path_PERL+:} false
; then :
9395 $as_echo_n "(cached) " >&6
9399 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
9402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9406 test -z "$as_dir" && as_dir
=.
9407 for ac_exec_ext
in '' $ac_executable_extensions; do
9408 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9409 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
9410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9420 PERL
=$ac_cv_path_PERL
9421 if test -n "$PERL"; then
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9423 $as_echo "$PERL" >&6; }
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426 $as_echo "no" >&6; }
9430 test -n "$PERL" && break
9434 # Report the value of PERL in configure's output in all cases.
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
9436 $as_echo_n "checking for PERL... " >&6; }
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9438 $as_echo "$PERL" >&6; }
9442 if test "$PERL"; then
9443 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'`
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
9445 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
9446 if echo "$pgac_perl_version" |
sed 's/[.a-z_]/ /g' | \
9447 $AWK '{ if ($1 == 5 && $2 >= 8) exit 1; else exit 0;}'
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9450 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
9451 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
9452 $as_echo "$as_me: WARNING:
9453 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
9454 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
9459 if test -z "$PERL"; then
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9461 *** Without Perl you will not be able to build PostgreSQL from Git.
9462 *** You can obtain Perl from any CPAN mirror site.
9463 *** (If you are using the official distribution of PostgreSQL then you do not
9464 *** need to worry about this, because the Perl output is pre-generated.)" >&5
9465 $as_echo "$as_me: WARNING:
9466 *** Without Perl you will not be able to build PostgreSQL from Git.
9467 *** You can obtain Perl from any CPAN mirror site.
9468 *** (If you are using the official distribution of PostgreSQL then you do not
9469 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
9472 if test "$with_perl" = yes; then
9473 if test -z "$PERL"; then
9474 as_fn_error $?
"Perl not found" "$LINENO" 5
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
9478 $as_echo_n "checking for Perl archlibexp... " >&6; }
9479 perl_archlibexp
=`$PERL -MConfig -e 'print $Config{archlibexp}'`
9480 test "$PORTNAME" = "win32" && perl_archlibexp
=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
9482 $as_echo "$perl_archlibexp" >&6; }
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
9484 $as_echo_n "checking for Perl privlibexp... " >&6; }
9485 perl_privlibexp
=`$PERL -MConfig -e 'print $Config{privlibexp}'`
9486 test "$PORTNAME" = "win32" && perl_privlibexp
=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
9488 $as_echo "$perl_privlibexp" >&6; }
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
9490 $as_echo_n "checking for Perl useshrplib... " >&6; }
9491 perl_useshrplib
=`$PERL -MConfig -e 'print $Config{useshrplib}'`
9492 test "$PORTNAME" = "win32" && perl_useshrplib
=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
9494 $as_echo "$perl_useshrplib" >&6; }
9495 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true
; then
9496 as_fn_error $?
"cannot build PL/Perl because libperl is not a shared library
9497 You might have to rebuild your Perl installation. Refer to the
9498 documentation for details. Use --without-perl to disable building
9499 PL/Perl." "$LINENO" 5
9501 # On most platforms, archlibexp is also where the Perl include files live ...
9502 perl_includespec
="-I$perl_archlibexp/CORE"
9503 # ... but on newer macOS versions, we must use -iwithsysroot to look
9505 if test \
! -f "$perl_archlibexp/CORE/perl.h" ; then
9506 if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then
9507 perl_includespec
="-iwithsysroot $perl_archlibexp/CORE"
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
9512 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
9513 perl_ccflags
=`$PERL -MConfig -e 'print $Config{ccflags}'`
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
9515 $as_echo "$perl_ccflags" >&6; }
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
9517 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
9518 perl_embed_ccflags
=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
9520 $as_echo "$perl_embed_ccflags" >&6; }
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
9524 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
9525 if test "$PORTNAME" = "win32" ; then
9526 perl_lib
=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
9527 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then
9528 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
9530 perl_lib
=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'`
9531 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then
9532 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
9536 pgac_tmp1
=`$PERL -MExtUtils::Embed -e ldopts`
9537 pgac_tmp2
=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
9538 perl_embed_ldflags
=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
9540 if test -z "$perl_embed_ldflags" ; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9543 as_fn_error $?
"could not determine flags for linking embedded Perl.
9544 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
9545 installed." "$LINENO" 5
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
9548 $as_echo "$perl_embed_ldflags" >&6; }
9553 if test "$with_python" = yes; then
9554 if test -z "$PYTHON"; then
9555 for ac_prog
in python python3 python2
9557 # Extract the first word of "$ac_prog", so it can be a program name with args.
9558 set dummy
$ac_prog; ac_word
=$2
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560 $as_echo_n "checking for $ac_word... " >&6; }
9561 if ${ac_cv_path_PYTHON+:} false
; then :
9562 $as_echo_n "(cached) " >&6
9566 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
9569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9573 test -z "$as_dir" && as_dir
=.
9574 for ac_exec_ext
in '' $ac_executable_extensions; do
9575 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9576 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
9577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9587 PYTHON
=$ac_cv_path_PYTHON
9588 if test -n "$PYTHON"; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9590 $as_echo "$PYTHON" >&6; }
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593 $as_echo "no" >&6; }
9597 test -n "$PYTHON" && break
9601 # Report the value of PYTHON in configure's output in all cases.
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
9603 $as_echo_n "checking for PYTHON... " >&6; }
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9605 $as_echo "$PYTHON" >&6; }
9608 if test x
"$PYTHON" = x
""; then
9609 as_fn_error $?
"Python not found" "$LINENO" 5
9613 python_fullversion
=`${PYTHON} -c "import sys; print(sys.version)" | sed q`
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: using python $python_fullversion" >&5
9615 $as_echo "$as_me: using python $python_fullversion" >&6;}
9616 # python_fullversion is typically n.n.n plus some trailing junk
9617 python_majorversion
=`echo "$python_fullversion" | sed 's/^\([0-9]*\).*/\1/'`
9618 python_minorversion
=`echo "$python_fullversion" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'`
9619 python_version
=`echo "$python_fullversion" | sed 's/^\([0-9]*\.[0-9]*\).*/\1/'`
9620 # Reject unsupported Python versions as soon as practical.
9621 if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 4; then
9622 as_fn_error $?
"Python version $python_version is too old (version 2.4 or later is required)" "$LINENO" 5
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
9626 $as_echo_n "checking for Python distutils module... " >&6; }
9627 if "${PYTHON}" -c 'import distutils' 2>&5
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9630 $as_echo "yes" >&6; }
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9634 as_fn_error $?
"distutils module not found" "$LINENO" 5
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
9638 $as_echo_n "checking Python configuration directory... " >&6; }
9639 python_configdir
=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
9641 $as_echo "$python_configdir" >&6; }
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
9644 $as_echo_n "checking Python include directories... " >&6; }
9645 python_includespec
=`${PYTHON} -c "
9646 import distutils.sysconfig
9647 a = '-I' + distutils.sysconfig.get_python_inc(False)
9648 b = '-I' + distutils.sysconfig.get_python_inc(True)
9652 print(a + ' ' + b)"`
9653 if test "$PORTNAME" = win32
; then
9654 python_includespec
=`echo $python_includespec | sed 's,[\],/,g'`
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
9657 $as_echo "$python_includespec" >&6; }
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
9662 $as_echo_n "checking how to link an embedded Python application... " >&6; }
9664 python_libdir
=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
9665 python_ldlibrary
=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
9667 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
9668 ldlibrary
=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
9669 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
9671 ldlibrary
=`echo "${ldlibrary}" | sed "s/^lib//"`
9674 # Otherwise, guess the base name of the shlib.
9675 # LDVERSION was added in Python 3.2, before that use VERSION,
9676 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
9677 python_ldversion
=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
9678 if test x
"${python_ldversion}" != x
""; then
9679 ldlibrary
="python${python_ldversion}"
9681 python_version_var
=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('VERSION'))))"`
9682 if test x
"${python_version_var}" != x
""; then
9683 ldlibrary
="python${python_version_var}"
9685 ldlibrary
="python${python_version}"
9688 # Search for a likely-looking file.
9690 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
9692 # We don't know the platform DLSUFFIX here, so check 'em all.
9693 for e
in .so .dll .dylib .sl
; do
9694 if test -e "$d/lib${ldlibrary}$e"; then
9701 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
9702 # (".so.n.n") as well. However, check this only after failing to find
9703 # ".so" anywhere, because yet other platforms (Debian) put the .so
9704 # symlink in a different directory from the underlying versioned shlib.
9705 if test "$found_shlib" != 1; then
9706 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
9708 for f
in "$d/lib${ldlibrary}.so."* ; do
9709 if test -e "$f"; then
9717 # As usual, Windows has its own ideas. Possible default library
9718 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
9719 # and the "lib" prefix might not be there.
9720 if test "$found_shlib" != 1 -a \
( "$PORTNAME" = win32
-o "$PORTNAME" = cygwin \
); then
9721 for d
in "${python_libdir}" "${python_configdir}" c
:/Windows
/System32
/usr
/bin
9723 for f
in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
9724 if test -e "$f"; then
9733 if test "$found_shlib" != 1; then
9734 as_fn_error $?
"could not find shared library for Python
9735 You might have to rebuild your Python installation. Refer to the
9736 documentation for details. Use --without-python to disable building
9737 PL/Python." "$LINENO" 5
9739 python_libspec
="-L${python_libdir} -l${ldlibrary}"
9741 python_additional_libs
=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
9744 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
9750 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
9751 if test -z "$ZIC"; then
9754 # Extract the first word of "$ac_prog", so it can be a program name with args.
9755 set dummy $ac_prog; ac_word=$2
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9757 $as_echo_n "checking
for $ac_word...
" >&6; }
9758 if ${ac_cv_path_ZIC+:} false; then :
9759 $as_echo_n "(cached
) " >&6
9763 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9773 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
9774 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9785 if test -n "$ZIC"; then
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
9787 $as_echo "$ZIC" >&6; }
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9790 $as_echo "no
" >&6; }
9794 test -n "$ZIC" && break
9798 # Report the value of ZIC in configure's output in all cases.
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ZIC
" >&5
9800 $as_echo_n "checking
for ZIC...
" >&6; }
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
9802 $as_echo "$ZIC" >&6; }
9805 if test -z "$ZIC"; then
9807 When cross-compiling
, either use the option
--with-system-tzdata to use
9808 existing time-zone data
, or
set the environment variable ZIC to a zic
9809 program to use during the build.
" "$LINENO" 5
9816 # For each platform, we need to know about any special compile and link
9817 # libraries, and whether the normal C function names are thread-safe.
9818 # See the comment at the top of src/port/thread.c for more information.
9819 # WIN32 doesn't need the pthread tests; it always uses threads
9821 # These tests are run before the library-tests, because linking with the
9822 # other libraries can pull in the pthread functions as a side-effect. We
9823 # want to use the -pthread or similar flags directly, and not rely on
9824 # the side-effects of linking with some other library.
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
9827 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
9828 if ${ac_cv_path_SED+:} false; then :
9829 $as_echo_n "(cached
) " >&6
9831 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9832 for ac_i in 1 2 3 4 5 6 7; do
9833 ac_script="$ac_script$as_nl$ac_script"
9835 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9836 { ac_script=; unset ac_script;}
9837 if test -z "$SED"; then
9838 ac_path_SED_found=false
9839 # Loop through the user's path and test for each of PROGNAME-LIST
9840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844 test -z "$as_dir" && as_dir=.
9845 for ac_prog in sed gsed; do
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9848 as_fn_executable_p "$ac_path_SED" || continue
9849 # Check for GNU ac_path_SED and select it if it is found.
9850 # Check for GNU $ac_path_SED
9851 case `"$ac_path_SED" --version 2>&1` in
9853 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9856 $as_echo_n 0123456789 >"conftest.
in"
9859 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
9860 mv "conftest.tmp
" "conftest.
in"
9861 cp "conftest.
in" "conftest.
nl"
9862 $as_echo '' >> "conftest.
nl"
9863 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
9864 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
9865 as_fn_arith $ac_count + 1 && ac_count=$as_val
9866 if test $ac_count -gt ${ac_path_SED_max-0}; then
9867 # Best one so far, save it but keep looking for a better one
9868 ac_cv_path_SED="$ac_path_SED"
9869 ac_path_SED_max=$ac_count
9871 # 10*(2^10) chars as input seems more than enough
9872 test $ac_count -gt 10 && break
9874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9877 $ac_path_SED_found && break 3
9882 if test -z "$ac_cv_path_SED"; then
9883 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
9891 $as_echo "$ac_cv_path_SED" >&6; }
9892 SED="$ac_cv_path_SED"
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
9897 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
9898 if ${ac_cv_path_GREP+:} false; then :
9899 $as_echo_n "(cached
) " >&6
9901 if test -z "$GREP"; then
9902 ac_path_GREP_found=false
9903 # Loop through the user's path and test for each of PROGNAME-LIST
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9908 test -z "$as_dir" && as_dir=.
9909 for ac_prog in grep ggrep; do
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9912 as_fn_executable_p "$ac_path_GREP" || continue
9913 # Check for GNU ac_path_GREP and select it if it is found.
9914 # Check for GNU $ac_path_GREP
9915 case `"$ac_path_GREP" --version 2>&1` in
9917 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9920 $as_echo_n 0123456789 >"conftest.
in"
9923 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
9924 mv "conftest.tmp
" "conftest.
in"
9925 cp "conftest.
in" "conftest.
nl"
9926 $as_echo 'GREP' >> "conftest.
nl"
9927 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
9928 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
9929 as_fn_arith $ac_count + 1 && ac_count=$as_val
9930 if test $ac_count -gt ${ac_path_GREP_max-0}; then
9931 # Best one so far, save it but keep looking for a better one
9932 ac_cv_path_GREP="$ac_path_GREP"
9933 ac_path_GREP_max=$ac_count
9935 # 10*(2^10) chars as input seems more than enough
9936 test $ac_count -gt 10 && break
9938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9941 $ac_path_GREP_found && break 3
9946 if test -z "$ac_cv_path_GREP"; then
9947 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
9950 ac_cv_path_GREP=$GREP
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
9955 $as_echo "$ac_cv_path_GREP" >&6; }
9956 GREP="$ac_cv_path_GREP"
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
9960 $as_echo_n "checking
for egrep...
" >&6; }
9961 if ${ac_cv_path_EGREP+:} false; then :
9962 $as_echo_n "(cached
) " >&6
9964 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9965 then ac_cv_path_EGREP="$GREP -E"
9967 if test -z "$EGREP"; then
9968 ac_path_EGREP_found=false
9969 # Loop through the user's path and test for each of PROGNAME-LIST
9970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9974 test -z "$as_dir" && as_dir=.
9975 for ac_prog in egrep; do
9976 for ac_exec_ext in '' $ac_executable_extensions; do
9977 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9978 as_fn_executable_p "$ac_path_EGREP" || continue
9979 # Check for GNU ac_path_EGREP and select it if it is found.
9980 # Check for GNU $ac_path_EGREP
9981 case `"$ac_path_EGREP" --version 2>&1` in
9983 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9986 $as_echo_n 0123456789 >"conftest.
in"
9989 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
9990 mv "conftest.tmp
" "conftest.
in"
9991 cp "conftest.
in" "conftest.
nl"
9992 $as_echo 'EGREP' >> "conftest.
nl"
9993 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
9994 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
9995 as_fn_arith $ac_count + 1 && ac_count=$as_val
9996 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9997 # Best one so far, save it but keep looking for a better one
9998 ac_cv_path_EGREP="$ac_path_EGREP"
9999 ac_path_EGREP_max=$ac_count
10001 # 10*(2^10) chars as input seems more than enough
10002 test $ac_count -gt 10 && break
10004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10007 $ac_path_EGREP_found && break 3
10012 if test -z "$ac_cv_path_EGREP"; then
10013 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10016 ac_cv_path_EGREP=$EGREP
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
10022 $as_echo "$ac_cv_path_EGREP" >&6; }
10023 EGREP="$ac_cv_path_EGREP"
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
10027 $as_echo_n "checking
for ANSI C header files...
" >&6; }
10028 if ${ac_cv_header_stdc+:} false; then :
10029 $as_echo_n "(cached
) " >&6
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 #include <stdlib.h>
10034 #include <stdarg.h>
10035 #include <string.h>
10046 if ac_fn_c_try_compile "$LINENO"; then :
10047 ac_cv_header_stdc=yes
10049 ac_cv_header_stdc=no
10051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 if test $ac_cv_header_stdc = yes; then
10054 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056 /* end confdefs.h. */
10057 #include <string.h>
10060 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10061 $EGREP "memchr
" >/dev/null 2>&1; then :
10064 ac_cv_header_stdc=no
10070 if test $ac_cv_header_stdc = yes; then
10071 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10074 #include <stdlib.h>
10077 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10078 $EGREP "free
" >/dev/null 2>&1; then :
10081 ac_cv_header_stdc=no
10087 if test $ac_cv_header_stdc = yes; then
10088 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10089 if test "$cross_compiling" = yes; then :
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10095 #include <stdlib.h>
10096 #if ((' ' & 0x0FF) == 0x020)
10097 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10098 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10100 # define ISLOWER(c) \
10101 (('a' <= (c) && (c) <= 'i') \
10102 || ('j' <= (c) && (c) <= 'r') \
10103 || ('s' <= (c) && (c) <= 'z'))
10104 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10107 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10112 for (i = 0; i < 256; i++)
10113 if (XOR (islower (i), ISLOWER (i))
10114 || toupper (i) != TOUPPER (i))
10119 if ac_fn_c_try_run "$LINENO"; then :
10122 ac_cv_header_stdc=no
10124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10125 conftest.$ac_objext conftest.beam conftest.$ac_ext
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
10131 $as_echo "$ac_cv_header_stdc" >&6; }
10132 if test $ac_cv_header_stdc = yes; then
10134 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10138 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10139 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
10140 inttypes.h stdint.h unistd.h
10142 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10143 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10145 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10146 cat >>confdefs.h
<<_ACEOF
10147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10155 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
10162 ac_cpp
='$CPP $CPPFLAGS'
10163 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10164 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10165 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10169 # We used to check for pthread.h first, but this fails if pthread.h
10170 # requires special compiler flags (e.g. on Tru64 or Sequent).
10171 # It gets checked for in the link test anyway.
10173 # First of all, check if the user has set any of the PTHREAD_LIBS,
10174 # etcetera environment variables, and if threads linking works using
10176 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10177 ax_pthread_save_CC
="$CC"
10178 ax_pthread_save_CFLAGS
="$CFLAGS"
10179 ax_pthread_save_LIBS
="$LIBS"
10180 if test "x$PTHREAD_CC" != "x"; then :
10183 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10184 LIBS
="$PTHREAD_LIBS $LIBS"
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10186 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10190 /* Override any GCC internal prototype to avoid an error.
10191 Use char because int might match the return type of a GCC
10192 builtin and then its argument prototype would still apply. */
10196 char pthread_join ();
10200 return pthread_join ();
10205 if ac_fn_c_try_link
"$LINENO"; then :
10208 rm -f core conftest.err conftest.
$ac_objext \
10209 conftest
$ac_exeext conftest.
$ac_ext
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10211 $as_echo "$ax_pthread_ok" >&6; }
10212 if test "x$ax_pthread_ok" = "xno"; then
10216 CC
="$ax_pthread_save_CC"
10217 CFLAGS
="$ax_pthread_save_CFLAGS"
10218 LIBS
="$ax_pthread_save_LIBS"
10221 # We must check for the threads library under a number of different
10222 # names; the ordering is very important because some systems
10223 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10224 # libraries is broken (non-POSIX).
10226 # Create a list of thread flags to try. Items starting with a "-" are
10227 # C compiler flags, and other items are library names, except for "none"
10228 # which indicates that we try without any flags at all, and "pthread-config"
10229 # which is a program returning the flags for the Pth emulation library.
10231 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10233 # The ordering *is* (sometimes) important. Some notes on the
10234 # individual items follow:
10236 # pthreads: AIX (must check this before -lpthread)
10237 # none: in case threads are in libc; should be tried before -Kthread and
10238 # other compiler flags to prevent continual compiler warnings
10239 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10240 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10241 # (Note: HP C rejects this with "bad form for `-t' option")
10242 # -pthreads: Solaris/gcc (Note: HP C also rejects)
10243 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10244 # doesn't hurt to check since this sometimes defines pthreads and
10245 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
10246 # is present but should not be used directly; and before -mthreads,
10247 # because the compiler interprets this as "-mt" + "-hreads")
10248 # -mthreads: Mingw32/gcc, Lynx/gcc
10249 # pthread: Linux, etcetera
10250 # --thread-safe: KAI C++
10251 # pthread-config: use pthread-config program (for GNU Pth library)
10257 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10258 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10260 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
10265 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10266 # multi-threading and also sets -lpthread."
10268 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
10273 # IBM z/OS requires a feature-test macro to be defined in order to
10274 # enable POSIX threads at all, so give the user a hint if this is
10275 # not set. (We don't define these ourselves, as they can affect
10276 # other portions of the system API in unpredictable ways.)
10278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10281 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10282 AX_PTHREAD_ZOS_MISSING
10286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10287 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10289 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10297 # On Solaris (at least, for some versions), libc contains stubbed
10298 # (non-functional) versions of the pthreads routines, so link-based
10299 # tests will erroneously succeed. (N.B.: The stubs are missing
10300 # pthread_cleanup_push, or rather a function called by this macro,
10301 # so we could check for that, but who knows whether they'll stub
10302 # that too in a future libc.) So we'll check first for the
10303 # standard Solaris way of linking pthreads (-mt -lpthread).
10305 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
10309 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10311 if test "x$GCC" = "xyes"; then :
10312 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
10315 # The presence of a feature test macro requesting re-entrant function
10316 # definitions is, on some systems, a strong hint that pthreads support is
10317 # correctly enabled
10320 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
10321 ax_pthread_check_macro
="_REENTRANT"
10325 ax_pthread_check_macro
="_THREAD_SAFE"
10329 ax_pthread_check_macro
="--"
10332 if test "x$ax_pthread_check_macro" = "x--"; then :
10333 ax_pthread_check_cond
=0
10335 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
10338 # Are we compiling with Clang?
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10341 $as_echo_n "checking whether $CC is Clang... " >&6; }
10342 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
10343 $as_echo_n "(cached) " >&6
10345 ax_cv_PTHREAD_CLANG
=no
10346 # Note that Autoconf sets GCC=yes for Clang as well as GCC
10347 if test "x$GCC" = "xyes"; then
10348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10350 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10351 # if defined(__clang__) && defined(__llvm__)
10352 AX_PTHREAD_CC_IS_CLANG
10356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10357 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
10358 ax_cv_PTHREAD_CLANG
=yes
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10366 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10367 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
10369 ax_pthread_clang_warning
=no
10371 # Clang needs special handling, because older versions handle the -pthread
10372 # option in a rather... idiosyncratic way
10374 if test "x$ax_pthread_clang" = "xyes"; then
10376 # Clang takes -pthread; it has never supported any other flag
10378 # (Note 1: This will need to be revisited if a system that Clang
10379 # supports has POSIX threads in a separate library. This tends not
10380 # to be the way of modern systems, but it's conceivable.)
10382 # (Note 2: On some systems, notably Darwin, -pthread is not needed
10383 # to get POSIX threads support; the API is always present and
10384 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
10385 # -pthread does define _REENTRANT, and while the Darwin headers
10386 # ignore this macro, third-party headers might not.)
10388 PTHREAD_CFLAGS
="-pthread"
10393 # However, older versions of Clang make a point of warning the user
10394 # that, in an invocation where only linking and no compilation is
10395 # taking place, the -pthread option has no effect ("argument unused
10396 # during compilation"). They expect -pthread to be passed in only
10397 # when source code is being compiled.
10399 # Problem is, this is at odds with the way Automake and most other
10400 # C build frameworks function, which is that the same flags used in
10401 # compilation (CFLAGS) are also used in linking. Many systems
10402 # supported by AX_PTHREAD require exactly this for POSIX threads
10403 # support, and in fact it is often not straightforward to specify a
10404 # flag that is used only in the compilation phase and not in
10405 # linking. Such a scenario is extremely rare in practice.
10407 # Even though use of the -pthread flag in linking would only print
10408 # a warning, this can be a nuisance for well-run software projects
10409 # that build with -Werror. So if the active version of Clang has
10410 # this misfeature, we search for an option to squash it.
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10413 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10414 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
10415 $as_echo_n "(cached) " >&6
10417 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
10418 # Create an alternate version of $ac_link that compiles and
10419 # links in two steps (.c -> .o, .o -> exe) instead of one
10420 # (.c -> exe), because the warning occurs only in the second
10422 ax_pthread_save_ac_link
="$ac_link"
10423 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10424 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10425 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10426 ax_pthread_save_CFLAGS
="$CFLAGS"
10427 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
10428 if test "x$ax_pthread_try" = "xunknown"; then :
10431 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10432 ac_link
="$ax_pthread_save_ac_link"
10433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10435 int main(void){return 0;}
10437 if ac_fn_c_try_link
"$LINENO"; then :
10438 ac_link
="$ax_pthread_2step_ac_link"
10439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10441 int main(void){return 0;}
10443 if ac_fn_c_try_link
"$LINENO"; then :
10446 rm -f core conftest.err conftest.
$ac_objext \
10447 conftest
$ac_exeext conftest.
$ac_ext
10450 rm -f core conftest.err conftest.
$ac_objext \
10451 conftest
$ac_exeext conftest.
$ac_ext
10453 ac_link
="$ax_pthread_save_ac_link"
10454 CFLAGS
="$ax_pthread_save_CFLAGS"
10455 if test "x$ax_pthread_try" = "x"; then :
10458 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10462 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10464 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10466 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10469 fi # $ax_pthread_clang = yes
10471 if test "x$ax_pthread_ok" = "xno"; then
10472 for ax_pthread_try_flag
in $ax_pthread_flags; do
10474 case $ax_pthread_try_flag in
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10477 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10482 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10483 PTHREAD_CFLAGS
="-mt"
10484 PTHREAD_LIBS
="-lpthread"
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10489 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10490 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
10494 # Extract the first word of "pthread-config", so it can be a program name with args.
10495 set dummy pthread-config
; ac_word
=$2
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10497 $as_echo_n "checking for $ac_word... " >&6; }
10498 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
10499 $as_echo_n "(cached) " >&6
10501 if test -n "$ax_pthread_config"; then
10502 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
10504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10505 for as_dir
in $PATH
10508 test -z "$as_dir" && as_dir
=.
10509 for ac_exec_ext
in '' $ac_executable_extensions; do
10510 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_prog_ax_pthread_config
="yes"
10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
10522 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
10523 if test -n "$ax_pthread_config"; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10525 $as_echo "$ax_pthread_config" >&6; }
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10532 if test "x$ax_pthread_config" = "xno"; then :
10535 PTHREAD_CFLAGS
="`pthread-config --cflags`"
10536 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10541 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10542 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
10546 ax_pthread_save_CFLAGS
="$CFLAGS"
10547 ax_pthread_save_LIBS
="$LIBS"
10548 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10549 LIBS
="$PTHREAD_LIBS $LIBS"
10551 # Check for various functions. We must include pthread.h,
10552 # since some functions may be macros. (On the Sequent, we
10553 # need a special flag -Kthread to make this header compile.)
10554 # We check for pthread_join because it is in -lpthread on IRIX
10555 # while pthread_create is in libc. We check for pthread_attr_init
10556 # due to DEC craziness with -lpthreads. We check for
10557 # pthread_cleanup_push because it is one of the few pthread
10558 # functions on Solaris that doesn't have a non-functional libc stub.
10559 # We try pthread_create on general principles.
10561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 #include <pthread.h>
10564 # if $ax_pthread_check_cond
10565 # error "$ax_pthread_check_macro must be defined"
10567 static void routine(void *a) { a = 0; }
10568 static void *start_routine(void *a) { return a; }
10572 pthread_t th; pthread_attr_t attr;
10573 pthread_create(&th, 0, start_routine, 0);
10574 pthread_join(th, 0);
10575 pthread_attr_init(&attr);
10576 pthread_cleanup_push(routine, 0);
10577 pthread_cleanup_pop(0) /* ; */
10582 if ac_fn_c_try_link
"$LINENO"; then :
10585 rm -f core conftest.err conftest.
$ac_objext \
10586 conftest
$ac_exeext conftest.
$ac_ext
10588 CFLAGS
="$ax_pthread_save_CFLAGS"
10589 LIBS
="$ax_pthread_save_LIBS"
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10592 $as_echo "$ax_pthread_ok" >&6; }
10593 if test "x$ax_pthread_ok" = "xyes"; then :
10602 # Various other checks:
10603 if test "x$ax_pthread_ok" = "xyes"; then
10604 ax_pthread_save_CFLAGS
="$CFLAGS"
10605 ax_pthread_save_LIBS
="$LIBS"
10606 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10607 LIBS
="$PTHREAD_LIBS $LIBS"
10609 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10611 $as_echo_n "checking for joinable pthread attribute... " >&6; }
10612 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
10613 $as_echo_n "(cached) " >&6
10615 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
10616 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
10617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h. */
10619 #include <pthread.h>
10623 int attr = $ax_pthread_attr; return attr /* ; */
10628 if ac_fn_c_try_link
"$LINENO"; then :
10629 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
10631 rm -f core conftest.err conftest.
$ac_objext \
10632 conftest
$ac_exeext conftest.
$ac_ext
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10637 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10638 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
10639 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
10640 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
10642 cat >>confdefs.h
<<_ACEOF
10643 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10646 ax_pthread_joinable_attr_defined
=yes
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
10651 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
10652 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
10653 $as_echo_n "(cached) " >&6
10655 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
10658 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
10664 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
10665 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
10666 test "x$ax_pthread_special_flags_added" != "xyes"; then :
10667 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
10668 ax_pthread_special_flags_added
=yes
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10672 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10673 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
10674 $as_echo_n "(cached) " >&6
10676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10678 #include <pthread.h>
10682 int i = PTHREAD_PRIO_INHERIT;
10687 if ac_fn_c_try_link
"$LINENO"; then :
10688 ax_cv_PTHREAD_PRIO_INHERIT
=yes
10690 ax_cv_PTHREAD_PRIO_INHERIT
=no
10692 rm -f core conftest.err conftest.
$ac_objext \
10693 conftest
$ac_exeext conftest.
$ac_ext
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10697 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10698 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
10699 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
10701 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10703 ax_pthread_prio_inherit_defined
=yes
10707 CFLAGS
="$ax_pthread_save_CFLAGS"
10708 LIBS
="$ax_pthread_save_LIBS"
10710 # More AIX lossage: compile with *_r variant
10711 if test "x$GCC" != "xyes"; then
10715 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
10716 #handle absolute path differently from PATH based program lookup
10719 if as_fn_executable_p
${CC}_r
; then :
10720 PTHREAD_CC
="${CC}_r"
10723 for ac_prog
in ${CC}_r
10725 # Extract the first word of "$ac_prog", so it can be a program name with args.
10726 set dummy
$ac_prog; ac_word
=$2
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728 $as_echo_n "checking for $ac_word... " >&6; }
10729 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
10730 $as_echo_n "(cached) " >&6
10732 if test -n "$PTHREAD_CC"; then
10733 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
10735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10736 for as_dir
in $PATH
10739 test -z "$as_dir" && as_dir
=.
10740 for ac_exec_ext
in '' $ac_executable_extensions; do
10741 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10742 ac_cv_prog_PTHREAD_CC
="$ac_prog"
10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10752 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
10753 if test -n "$PTHREAD_CC"; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10755 $as_echo "$PTHREAD_CC" >&6; }
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758 $as_echo "no" >&6; }
10762 test -n "$PTHREAD_CC" && break
10764 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
10775 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
10781 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10782 if test "x$ax_pthread_ok" = "xyes"; then
10784 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10792 ac_cpp
='$CPP $CPPFLAGS'
10793 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10794 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10795 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10799 # Some platforms use these, so just define them. They can't hurt if they
10800 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
10801 # enables 5-arg getpwuid_r, among other things.
10802 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
10804 # Check for *_r functions
10807 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10808 LIBS
="$LIBS $PTHREAD_LIBS"
10810 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10811 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10815 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
10820 for ac_func
in strerror_r getpwuid_r gethostbyname_r
10822 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10823 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10824 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10825 cat >>confdefs.h
<<_ACEOF
10826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10833 # Do test here with the proper thread flags
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
10835 $as_echo_n "checking whether strerror_r returns int... " >&6; }
10836 if ${pgac_cv_func_strerror_r_int+:} false
; then :
10837 $as_echo_n "(cached) " >&6
10839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10841 #include <string.h>
10846 switch (strerror_r(1, buf, sizeof(buf)))
10847 { case 0: break; default: break; }
10853 if ac_fn_c_try_compile
"$LINENO"; then :
10854 pgac_cv_func_strerror_r_int
=yes
10856 pgac_cv_func_strerror_r_int
=no
10858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
10861 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
10862 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
10864 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
10875 # do not use values from template file
10888 ## Most libraries are included only if they demonstrably provide a function
10889 ## we need, but libm is an exception: always include it, because there are
10890 ## too many compilers that play cute optimization games that will break
10891 ## probes for standard functions such as pow().
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
10895 $as_echo_n "checking for main in -lm... " >&6; }
10896 if ${ac_cv_lib_m_main+:} false
; then :
10897 $as_echo_n "(cached) " >&6
10899 ac_check_lib_save_LIBS
=$LIBS
10901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10913 if ac_fn_c_try_link
"$LINENO"; then :
10914 ac_cv_lib_m_main
=yes
10916 ac_cv_lib_m_main
=no
10918 rm -f core conftest.err conftest.
$ac_objext \
10919 conftest
$ac_exeext conftest.
$ac_ext
10920 LIBS
=$ac_check_lib_save_LIBS
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
10923 $as_echo "$ac_cv_lib_m_main" >&6; }
10924 if test "x$ac_cv_lib_m_main" = xyes
; then :
10925 cat >>confdefs.h
<<_ACEOF
10926 #define HAVE_LIBM 1
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
10934 $as_echo_n "checking for library containing setproctitle... " >&6; }
10935 if ${ac_cv_search_setproctitle+:} false
; then :
10936 $as_echo_n "(cached) " >&6
10938 ac_func_search_save_LIBS
=$LIBS
10939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10942 /* Override any GCC internal prototype to avoid an error.
10943 Use char because int might match the return type of a GCC
10944 builtin and then its argument prototype would still apply. */
10948 char setproctitle ();
10952 return setproctitle ();
10957 for ac_lib
in '' util
; do
10958 if test -z "$ac_lib"; then
10959 ac_res
="none required"
10962 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10964 if ac_fn_c_try_link
"$LINENO"; then :
10965 ac_cv_search_setproctitle
=$ac_res
10967 rm -f core conftest.err conftest.
$ac_objext \
10969 if ${ac_cv_search_setproctitle+:} false
; then :
10973 if ${ac_cv_search_setproctitle+:} false
; then :
10976 ac_cv_search_setproctitle
=no
10978 rm conftest.
$ac_ext
10979 LIBS
=$ac_func_search_save_LIBS
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
10982 $as_echo "$ac_cv_search_setproctitle" >&6; }
10983 ac_res
=$ac_cv_search_setproctitle
10984 if test "$ac_res" != no
; then :
10985 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10990 $as_echo_n "checking for library containing dlopen... " >&6; }
10991 if ${ac_cv_search_dlopen+:} false
; then :
10992 $as_echo_n "(cached) " >&6
10994 ac_func_search_save_LIBS
=$LIBS
10995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10998 /* Override any GCC internal prototype to avoid an error.
10999 Use char because int might match the return type of a GCC
11000 builtin and then its argument prototype would still apply. */
11013 for ac_lib
in '' dl
; do
11014 if test -z "$ac_lib"; then
11015 ac_res
="none required"
11018 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11020 if ac_fn_c_try_link
"$LINENO"; then :
11021 ac_cv_search_dlopen
=$ac_res
11023 rm -f core conftest.err conftest.
$ac_objext \
11025 if ${ac_cv_search_dlopen+:} false
; then :
11029 if ${ac_cv_search_dlopen+:} false
; then :
11032 ac_cv_search_dlopen
=no
11034 rm conftest.
$ac_ext
11035 LIBS
=$ac_func_search_save_LIBS
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11038 $as_echo "$ac_cv_search_dlopen" >&6; }
11039 ac_res
=$ac_cv_search_dlopen
11040 if test "$ac_res" != no
; then :
11041 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11046 $as_echo_n "checking for library containing socket... " >&6; }
11047 if ${ac_cv_search_socket+:} false
; then :
11048 $as_echo_n "(cached) " >&6
11050 ac_func_search_save_LIBS
=$LIBS
11051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11054 /* Override any GCC internal prototype to avoid an error.
11055 Use char because int might match the return type of a GCC
11056 builtin and then its argument prototype would still apply. */
11069 for ac_lib
in '' socket ws2_32
; do
11070 if test -z "$ac_lib"; then
11071 ac_res
="none required"
11074 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11076 if ac_fn_c_try_link
"$LINENO"; then :
11077 ac_cv_search_socket
=$ac_res
11079 rm -f core conftest.err conftest.
$ac_objext \
11081 if ${ac_cv_search_socket+:} false
; then :
11085 if ${ac_cv_search_socket+:} false
; then :
11088 ac_cv_search_socket
=no
11090 rm conftest.
$ac_ext
11091 LIBS
=$ac_func_search_save_LIBS
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11094 $as_echo "$ac_cv_search_socket" >&6; }
11095 ac_res
=$ac_cv_search_socket
11096 if test "$ac_res" != no
; then :
11097 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
11102 $as_echo_n "checking for library containing shl_load... " >&6; }
11103 if ${ac_cv_search_shl_load+:} false
; then :
11104 $as_echo_n "(cached) " >&6
11106 ac_func_search_save_LIBS
=$LIBS
11107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11110 /* Override any GCC internal prototype to avoid an error.
11111 Use char because int might match the return type of a GCC
11112 builtin and then its argument prototype would still apply. */
11120 return shl_load ();
11125 for ac_lib
in '' dld
; do
11126 if test -z "$ac_lib"; then
11127 ac_res
="none required"
11130 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11132 if ac_fn_c_try_link
"$LINENO"; then :
11133 ac_cv_search_shl_load
=$ac_res
11135 rm -f core conftest.err conftest.
$ac_objext \
11137 if ${ac_cv_search_shl_load+:} false
; then :
11141 if ${ac_cv_search_shl_load+:} false
; then :
11144 ac_cv_search_shl_load
=no
11146 rm conftest.
$ac_ext
11147 LIBS
=$ac_func_search_save_LIBS
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
11150 $as_echo "$ac_cv_search_shl_load" >&6; }
11151 ac_res
=$ac_cv_search_shl_load
11152 if test "$ac_res" != no
; then :
11153 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
11158 $as_echo_n "checking for library containing getopt_long... " >&6; }
11159 if ${ac_cv_search_getopt_long+:} false
; then :
11160 $as_echo_n "(cached) " >&6
11162 ac_func_search_save_LIBS
=$LIBS
11163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h. */
11166 /* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11172 char getopt_long ();
11176 return getopt_long ();
11181 for ac_lib
in '' getopt gnugetopt
; do
11182 if test -z "$ac_lib"; then
11183 ac_res
="none required"
11186 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11188 if ac_fn_c_try_link
"$LINENO"; then :
11189 ac_cv_search_getopt_long
=$ac_res
11191 rm -f core conftest.err conftest.
$ac_objext \
11193 if ${ac_cv_search_getopt_long+:} false
; then :
11197 if ${ac_cv_search_getopt_long+:} false
; then :
11200 ac_cv_search_getopt_long
=no
11202 rm conftest.
$ac_ext
11203 LIBS
=$ac_func_search_save_LIBS
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
11206 $as_echo "$ac_cv_search_getopt_long" >&6; }
11207 ac_res
=$ac_cv_search_getopt_long
11208 if test "$ac_res" != no
; then :
11209 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
11214 $as_echo_n "checking for library containing shm_open... " >&6; }
11215 if ${ac_cv_search_shm_open+:} false
; then :
11216 $as_echo_n "(cached) " >&6
11218 ac_func_search_save_LIBS
=$LIBS
11219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11222 /* Override any GCC internal prototype to avoid an error.
11223 Use char because int might match the return type of a GCC
11224 builtin and then its argument prototype would still apply. */
11232 return shm_open ();
11237 for ac_lib
in '' rt
; do
11238 if test -z "$ac_lib"; then
11239 ac_res
="none required"
11242 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11244 if ac_fn_c_try_link
"$LINENO"; then :
11245 ac_cv_search_shm_open
=$ac_res
11247 rm -f core conftest.err conftest.
$ac_objext \
11249 if ${ac_cv_search_shm_open+:} false
; then :
11253 if ${ac_cv_search_shm_open+:} false
; then :
11256 ac_cv_search_shm_open
=no
11258 rm conftest.
$ac_ext
11259 LIBS
=$ac_func_search_save_LIBS
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
11262 $as_echo "$ac_cv_search_shm_open" >&6; }
11263 ac_res
=$ac_cv_search_shm_open
11264 if test "$ac_res" != no
; then :
11265 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
11270 $as_echo_n "checking for library containing shm_unlink... " >&6; }
11271 if ${ac_cv_search_shm_unlink+:} false
; then :
11272 $as_echo_n "(cached) " >&6
11274 ac_func_search_save_LIBS
=$LIBS
11275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11278 /* Override any GCC internal prototype to avoid an error.
11279 Use char because int might match the return type of a GCC
11280 builtin and then its argument prototype would still apply. */
11284 char shm_unlink ();
11288 return shm_unlink ();
11293 for ac_lib
in '' rt
; do
11294 if test -z "$ac_lib"; then
11295 ac_res
="none required"
11298 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11300 if ac_fn_c_try_link
"$LINENO"; then :
11301 ac_cv_search_shm_unlink
=$ac_res
11303 rm -f core conftest.err conftest.
$ac_objext \
11305 if ${ac_cv_search_shm_unlink+:} false
; then :
11309 if ${ac_cv_search_shm_unlink+:} false
; then :
11312 ac_cv_search_shm_unlink
=no
11314 rm conftest.
$ac_ext
11315 LIBS
=$ac_func_search_save_LIBS
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
11318 $as_echo "$ac_cv_search_shm_unlink" >&6; }
11319 ac_res
=$ac_cv_search_shm_unlink
11320 if test "$ac_res" != no
; then :
11321 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11326 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11327 if ${ac_cv_search_clock_gettime+:} false
; then :
11328 $as_echo_n "(cached) " >&6
11330 ac_func_search_save_LIBS
=$LIBS
11331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11334 /* Override any GCC internal prototype to avoid an error.
11335 Use char because int might match the return type of a GCC
11336 builtin and then its argument prototype would still apply. */
11340 char clock_gettime ();
11344 return clock_gettime ();
11349 for ac_lib
in '' rt posix4
; do
11350 if test -z "$ac_lib"; then
11351 ac_res
="none required"
11354 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11356 if ac_fn_c_try_link
"$LINENO"; then :
11357 ac_cv_search_clock_gettime
=$ac_res
11359 rm -f core conftest.err conftest.
$ac_objext \
11361 if ${ac_cv_search_clock_gettime+:} false
; then :
11365 if ${ac_cv_search_clock_gettime+:} false
; then :
11368 ac_cv_search_clock_gettime
=no
11370 rm conftest.
$ac_ext
11371 LIBS
=$ac_func_search_save_LIBS
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11374 $as_echo "$ac_cv_search_clock_gettime" >&6; }
11375 ac_res
=$ac_cv_search_clock_gettime
11376 if test "$ac_res" != no
; then :
11377 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11383 $as_echo_n "checking for library containing fdatasync... " >&6; }
11384 if ${ac_cv_search_fdatasync+:} false
; then :
11385 $as_echo_n "(cached) " >&6
11387 ac_func_search_save_LIBS
=$LIBS
11388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11391 /* Override any GCC internal prototype to avoid an error.
11392 Use char because int might match the return type of a GCC
11393 builtin and then its argument prototype would still apply. */
11401 return fdatasync ();
11406 for ac_lib
in '' rt posix4
; do
11407 if test -z "$ac_lib"; then
11408 ac_res
="none required"
11411 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11413 if ac_fn_c_try_link
"$LINENO"; then :
11414 ac_cv_search_fdatasync
=$ac_res
11416 rm -f core conftest.err conftest.
$ac_objext \
11418 if ${ac_cv_search_fdatasync+:} false
; then :
11422 if ${ac_cv_search_fdatasync+:} false
; then :
11425 ac_cv_search_fdatasync
=no
11427 rm conftest.
$ac_ext
11428 LIBS
=$ac_func_search_save_LIBS
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11431 $as_echo "$ac_cv_search_fdatasync" >&6; }
11432 ac_res
=$ac_cv_search_fdatasync
11433 if test "$ac_res" != no
; then :
11434 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11438 # Required for thread_test.c on Solaris
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
11440 $as_echo_n "checking for library containing sched_yield... " >&6; }
11441 if ${ac_cv_search_sched_yield+:} false
; then :
11442 $as_echo_n "(cached) " >&6
11444 ac_func_search_save_LIBS
=$LIBS
11445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11448 /* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
11454 char sched_yield ();
11458 return sched_yield ();
11463 for ac_lib
in '' rt
; do
11464 if test -z "$ac_lib"; then
11465 ac_res
="none required"
11468 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11470 if ac_fn_c_try_link
"$LINENO"; then :
11471 ac_cv_search_sched_yield
=$ac_res
11473 rm -f core conftest.err conftest.
$ac_objext \
11475 if ${ac_cv_search_sched_yield+:} false
; then :
11479 if ${ac_cv_search_sched_yield+:} false
; then :
11482 ac_cv_search_sched_yield
=no
11484 rm conftest.
$ac_ext
11485 LIBS
=$ac_func_search_save_LIBS
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
11488 $as_echo "$ac_cv_search_sched_yield" >&6; }
11489 ac_res
=$ac_cv_search_sched_yield
11490 if test "$ac_res" != no
; then :
11491 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11495 # Required for thread_test.c on Solaris 2.5:
11496 # Other ports use it too (HP-UX) so test unconditionally
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
11498 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
11499 if ${ac_cv_search_gethostbyname_r+:} false
; then :
11500 $as_echo_n "(cached) " >&6
11502 ac_func_search_save_LIBS
=$LIBS
11503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11506 /* Override any GCC internal prototype to avoid an error.
11507 Use char because int might match the return type of a GCC
11508 builtin and then its argument prototype would still apply. */
11512 char gethostbyname_r ();
11516 return gethostbyname_r ();
11521 for ac_lib
in '' nsl
; do
11522 if test -z "$ac_lib"; then
11523 ac_res
="none required"
11526 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11528 if ac_fn_c_try_link
"$LINENO"; then :
11529 ac_cv_search_gethostbyname_r
=$ac_res
11531 rm -f core conftest.err conftest.
$ac_objext \
11533 if ${ac_cv_search_gethostbyname_r+:} false
; then :
11537 if ${ac_cv_search_gethostbyname_r+:} false
; then :
11540 ac_cv_search_gethostbyname_r
=no
11542 rm conftest.
$ac_ext
11543 LIBS
=$ac_func_search_save_LIBS
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
11546 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
11547 ac_res
=$ac_cv_search_gethostbyname_r
11548 if test "$ac_res" != no
; then :
11549 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
11555 $as_echo_n "checking for library containing shmget... " >&6; }
11556 if ${ac_cv_search_shmget+:} false
; then :
11557 $as_echo_n "(cached) " >&6
11559 ac_func_search_save_LIBS
=$LIBS
11560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11563 /* Override any GCC internal prototype to avoid an error.
11564 Use char because int might match the return type of a GCC
11565 builtin and then its argument prototype would still apply. */
11578 for ac_lib
in '' cygipc
; do
11579 if test -z "$ac_lib"; then
11580 ac_res
="none required"
11583 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11585 if ac_fn_c_try_link
"$LINENO"; then :
11586 ac_cv_search_shmget
=$ac_res
11588 rm -f core conftest.err conftest.
$ac_objext \
11590 if ${ac_cv_search_shmget+:} false
; then :
11594 if ${ac_cv_search_shmget+:} false
; then :
11597 ac_cv_search_shmget
=no
11599 rm conftest.
$ac_ext
11600 LIBS
=$ac_func_search_save_LIBS
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
11603 $as_echo "$ac_cv_search_shmget" >&6; }
11604 ac_res
=$ac_cv_search_shmget
11605 if test "$ac_res" != no
; then :
11606 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11611 if test "$with_readline" = yes; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
11615 $as_echo_n "checking for library containing readline... " >&6; }
11616 if ${pgac_cv_check_readline+:} false
; then :
11617 $as_echo_n "(cached) " >&6
11619 pgac_cv_check_readline
=no
11620 pgac_save_LIBS
=$LIBS
11621 if test x
"$with_libedit_preferred" != x
"yes"
11622 then READLINE_ORDER
="-lreadline -ledit"
11623 else READLINE_ORDER
="-ledit -lreadline"
11625 for pgac_rllib
in $READLINE_ORDER ; do
11626 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
11627 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
11628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11629 /* end confdefs.h. */
11631 /* Override any GCC internal prototype to avoid an error.
11632 Use char because int might match the return type of a GCC
11633 builtin and then its argument prototype would still apply. */
11641 return readline ();
11646 if ac_fn_c_try_link
"$LINENO"; then :
11648 # Older NetBSD and OpenBSD have a broken linker that does not
11649 # recognize dependent libraries; assume curses is needed if we didn't
11650 # find any dependency.
11652 netbsd
* | openbsd
*)
11653 if test x
"$pgac_lib" = x
"" ; then
11654 pgac_lib
=" -lcurses"
11658 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
11662 rm -f core conftest.err conftest.
$ac_objext \
11663 conftest
$ac_exeext conftest.
$ac_ext
11665 if test "$pgac_cv_check_readline" != no
; then
11669 LIBS
=$pgac_save_LIBS
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
11673 $as_echo "$pgac_cv_check_readline" >&6; }
11674 if test "$pgac_cv_check_readline" != no
; then
11675 LIBS
="$pgac_cv_check_readline $LIBS"
11677 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11682 if test x
"$pgac_cv_check_readline" = x
"no"; then
11683 as_fn_error $?
"readline library not found
11684 If you have readline already installed, see config.log for details on the
11685 failure. It is possible the compiler isn't looking in the proper directory.
11686 Use --without-readline to disable readline support." "$LINENO" 5
11690 if test "$with_zlib" = yes; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11692 $as_echo_n "checking for inflate in -lz... " >&6; }
11693 if ${ac_cv_lib_z_inflate+:} false
; then :
11694 $as_echo_n "(cached) " >&6
11696 ac_check_lib_save_LIBS
=$LIBS
11698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h. */
11701 /* Override any GCC internal prototype to avoid an error.
11702 Use char because int might match the return type of a GCC
11703 builtin and then its argument prototype would still apply. */
11716 if ac_fn_c_try_link
"$LINENO"; then :
11717 ac_cv_lib_z_inflate
=yes
11719 ac_cv_lib_z_inflate
=no
11721 rm -f core conftest.err conftest.
$ac_objext \
11722 conftest
$ac_exeext conftest.
$ac_ext
11723 LIBS
=$ac_check_lib_save_LIBS
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11726 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11727 if test "x$ac_cv_lib_z_inflate" = xyes
; then :
11728 cat >>confdefs.h
<<_ACEOF
11729 #define HAVE_LIBZ 1
11735 as_fn_error $?
"zlib library not found
11736 If you have zlib already installed, see config.log for details on the
11737 failure. It is possible the compiler isn't looking in the proper directory.
11738 Use --without-zlib to disable zlib support." "$LINENO" 5
11743 if test "$enable_spinlocks" = yes; then
11745 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11749 *** Not using spinlocks will cause poor performance." >&5
11750 $as_echo "$as_me: WARNING:
11751 *** Not using spinlocks will cause poor performance." >&2;}
11754 if test "$enable_atomics" = yes; then
11756 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11760 *** Not using atomic operations will cause poor performance." >&5
11761 $as_echo "$as_me: WARNING:
11762 *** Not using atomic operations will cause poor performance." >&2;}
11765 if test "$with_gssapi" = yes ; then
11766 if test "$PORTNAME" != "win32"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
11768 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
11769 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
11770 $as_echo_n "(cached) " >&6
11772 ac_func_search_save_LIBS
=$LIBS
11773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11776 /* Override any GCC internal prototype to avoid an error.
11777 Use char because int might match the return type of a GCC
11778 builtin and then its argument prototype would still apply. */
11782 char gss_init_sec_context ();
11786 return gss_init_sec_context ();
11791 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
11792 if test -z "$ac_lib"; then
11793 ac_res
="none required"
11796 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11798 if ac_fn_c_try_link
"$LINENO"; then :
11799 ac_cv_search_gss_init_sec_context
=$ac_res
11801 rm -f core conftest.err conftest.
$ac_objext \
11803 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
11807 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
11810 ac_cv_search_gss_init_sec_context
=no
11812 rm conftest.
$ac_ext
11813 LIBS
=$ac_func_search_save_LIBS
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
11816 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
11817 ac_res
=$ac_cv_search_gss_init_sec_context
11818 if test "$ac_res" != no
; then :
11819 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11822 as_fn_error $?
"could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
11826 LIBS
="$LIBS -lgssapi32"
11830 if test "$with_openssl" = yes ; then
11831 if test "$PORTNAME" != "win32"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
11833 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
11834 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false
; then :
11835 $as_echo_n "(cached) " >&6
11837 ac_check_lib_save_LIBS
=$LIBS
11838 LIBS
="-lcrypto $LIBS"
11839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11842 /* Override any GCC internal prototype to avoid an error.
11843 Use char because int might match the return type of a GCC
11844 builtin and then its argument prototype would still apply. */
11848 char CRYPTO_new_ex_data ();
11852 return CRYPTO_new_ex_data ();
11857 if ac_fn_c_try_link
"$LINENO"; then :
11858 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
11860 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
11862 rm -f core conftest.err conftest.
$ac_objext \
11863 conftest
$ac_exeext conftest.
$ac_ext
11864 LIBS
=$ac_check_lib_save_LIBS
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
11867 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
11868 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes
; then :
11869 cat >>confdefs.h
<<_ACEOF
11870 #define HAVE_LIBCRYPTO 1
11873 LIBS
="-lcrypto $LIBS"
11876 as_fn_error $?
"library 'crypto' is required for OpenSSL" "$LINENO" 5
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
11880 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
11881 if ${ac_cv_lib_ssl_SSL_new+:} false
; then :
11882 $as_echo_n "(cached) " >&6
11884 ac_check_lib_save_LIBS
=$LIBS
11886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11889 /* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11904 if ac_fn_c_try_link
"$LINENO"; then :
11905 ac_cv_lib_ssl_SSL_new
=yes
11907 ac_cv_lib_ssl_SSL_new
=no
11909 rm -f core conftest.err conftest.
$ac_objext \
11910 conftest
$ac_exeext conftest.
$ac_ext
11911 LIBS
=$ac_check_lib_save_LIBS
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
11914 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
11915 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
; then :
11916 cat >>confdefs.h
<<_ACEOF
11917 #define HAVE_LIBSSL 1
11923 as_fn_error $?
"library 'ssl' is required for OpenSSL" "$LINENO" 5
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
11928 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
11929 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
11930 $as_echo_n "(cached) " >&6
11932 ac_func_search_save_LIBS
=$LIBS
11933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11942 char CRYPTO_new_ex_data ();
11946 return CRYPTO_new_ex_data ();
11951 for ac_lib
in '' eay32 crypto
; do
11952 if test -z "$ac_lib"; then
11953 ac_res
="none required"
11956 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11958 if ac_fn_c_try_link
"$LINENO"; then :
11959 ac_cv_search_CRYPTO_new_ex_data
=$ac_res
11961 rm -f core conftest.err conftest.
$ac_objext \
11963 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
11967 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
11970 ac_cv_search_CRYPTO_new_ex_data
=no
11972 rm conftest.
$ac_ext
11973 LIBS
=$ac_func_search_save_LIBS
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
11976 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
11977 ac_res
=$ac_cv_search_CRYPTO_new_ex_data
11978 if test "$ac_res" != no
; then :
11979 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11982 as_fn_error $?
"library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
11986 $as_echo_n "checking for library containing SSL_new... " >&6; }
11987 if ${ac_cv_search_SSL_new+:} false
; then :
11988 $as_echo_n "(cached) " >&6
11990 ac_func_search_save_LIBS
=$LIBS
11991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11994 /* Override any GCC internal prototype to avoid an error.
11995 Use char because int might match the return type of a GCC
11996 builtin and then its argument prototype would still apply. */
12009 for ac_lib
in '' ssleay32 ssl
; do
12010 if test -z "$ac_lib"; then
12011 ac_res
="none required"
12014 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12016 if ac_fn_c_try_link
"$LINENO"; then :
12017 ac_cv_search_SSL_new
=$ac_res
12019 rm -f core conftest.err conftest.
$ac_objext \
12021 if ${ac_cv_search_SSL_new+:} false
; then :
12025 if ${ac_cv_search_SSL_new+:} false
; then :
12028 ac_cv_search_SSL_new
=no
12030 rm conftest.
$ac_ext
12031 LIBS
=$ac_func_search_save_LIBS
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12034 $as_echo "$ac_cv_search_SSL_new" >&6; }
12035 ac_res
=$ac_cv_search_SSL_new
12036 if test "$ac_res" != no
; then :
12037 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12040 as_fn_error $?
"library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
12044 for ac_func
in SSL_clear_options SSL_get_current_compression X509_get_signature_nid
12046 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12047 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12048 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12049 cat >>confdefs.h
<<_ACEOF
12050 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12056 # Functions introduced in OpenSSL 1.1.0. We used to check for
12057 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
12058 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
12059 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
12061 for ac_func
in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data
12063 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12064 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12065 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12066 cat >>confdefs.h
<<_ACEOF
12067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12073 # OpenSSL versions before 1.1.0 required setting callback functions, for
12074 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
12075 # function was removed.
12076 for ac_func
in CRYPTO_lock
12078 ac_fn_c_check_func
"$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
12079 if test "x$ac_cv_func_CRYPTO_lock" = xyes
; then :
12080 cat >>confdefs.h
<<_ACEOF
12081 #define HAVE_CRYPTO_LOCK 1
12089 if test "$with_pam" = yes ; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
12091 $as_echo_n "checking for pam_start in -lpam... " >&6; }
12092 if ${ac_cv_lib_pam_pam_start+:} false
; then :
12093 $as_echo_n "(cached) " >&6
12095 ac_check_lib_save_LIBS
=$LIBS
12097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12110 return pam_start ();
12115 if ac_fn_c_try_link
"$LINENO"; then :
12116 ac_cv_lib_pam_pam_start
=yes
12118 ac_cv_lib_pam_pam_start
=no
12120 rm -f core conftest.err conftest.
$ac_objext \
12121 conftest
$ac_exeext conftest.
$ac_ext
12122 LIBS
=$ac_check_lib_save_LIBS
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
12125 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
12126 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
12127 cat >>confdefs.h
<<_ACEOF
12128 #define HAVE_LIBPAM 1
12134 as_fn_error $?
"library 'pam' is required for PAM" "$LINENO" 5
12139 if test "$with_libxml" = yes ; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
12141 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
12142 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false
; then :
12143 $as_echo_n "(cached) " >&6
12145 ac_check_lib_save_LIBS
=$LIBS
12146 LIBS
="-lxml2 $LIBS"
12147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12150 /* Override any GCC internal prototype to avoid an error.
12151 Use char because int might match the return type of a GCC
12152 builtin and then its argument prototype would still apply. */
12156 char xmlSaveToBuffer ();
12160 return xmlSaveToBuffer ();
12165 if ac_fn_c_try_link
"$LINENO"; then :
12166 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
12168 ac_cv_lib_xml2_xmlSaveToBuffer
=no
12170 rm -f core conftest.err conftest.
$ac_objext \
12171 conftest
$ac_exeext conftest.
$ac_ext
12172 LIBS
=$ac_check_lib_save_LIBS
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
12175 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
12176 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes
; then :
12177 cat >>confdefs.h
<<_ACEOF
12178 #define HAVE_LIBXML2 1
12181 LIBS
="-lxml2 $LIBS"
12184 as_fn_error $?
"library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
12189 if test "$with_libxslt" = yes ; then
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
12191 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
12192 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false
; then :
12193 $as_echo_n "(cached) " >&6
12195 ac_check_lib_save_LIBS
=$LIBS
12196 LIBS
="-lxslt $LIBS"
12197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12198 /* end confdefs.h. */
12200 /* Override any GCC internal prototype to avoid an error.
12201 Use char because int might match the return type of a GCC
12202 builtin and then its argument prototype would still apply. */
12206 char xsltCleanupGlobals ();
12210 return xsltCleanupGlobals ();
12215 if ac_fn_c_try_link
"$LINENO"; then :
12216 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
12218 ac_cv_lib_xslt_xsltCleanupGlobals
=no
12220 rm -f core conftest.err conftest.
$ac_objext \
12221 conftest
$ac_exeext conftest.
$ac_ext
12222 LIBS
=$ac_check_lib_save_LIBS
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
12225 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
12226 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes
; then :
12227 cat >>confdefs.h
<<_ACEOF
12228 #define HAVE_LIBXSLT 1
12231 LIBS
="-lxslt $LIBS"
12234 as_fn_error $?
"library 'xslt' is required for XSLT support" "$LINENO" 5
12239 # Note: We can test for libldap_r only after we know PTHREAD_LIBS
12240 if test "$with_ldap" = yes ; then
12242 if test "$PORTNAME" != "win32"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
12244 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
12245 if ${ac_cv_lib_ldap_ldap_bind+:} false
; then :
12246 $as_echo_n "(cached) " >&6
12248 ac_check_lib_save_LIBS
=$LIBS
12249 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
12250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12253 /* Override any GCC internal prototype to avoid an error.
12254 Use char because int might match the return type of a GCC
12255 builtin and then its argument prototype would still apply. */
12263 return ldap_bind ();
12268 if ac_fn_c_try_link
"$LINENO"; then :
12269 ac_cv_lib_ldap_ldap_bind
=yes
12271 ac_cv_lib_ldap_ldap_bind
=no
12273 rm -f core conftest.err conftest.
$ac_objext \
12274 conftest
$ac_exeext conftest.
$ac_ext
12275 LIBS
=$ac_check_lib_save_LIBS
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
12278 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
12279 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes
; then :
12280 cat >>confdefs.h
<<_ACEOF
12281 #define HAVE_LIBLDAP 1
12284 LIBS
="-lldap $LIBS"
12287 as_fn_error $?
"library 'ldap' is required for LDAP" "$LINENO" 5
12290 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
12291 if test "$enable_thread_safety" = yes; then
12292 # on some platforms ldap_r fails to link without PTHREAD_LIBS
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
12294 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
12295 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false
; then :
12296 $as_echo_n "(cached) " >&6
12298 ac_check_lib_save_LIBS
=$LIBS
12299 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12303 /* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
12309 char ldap_simple_bind ();
12313 return ldap_simple_bind ();
12318 if ac_fn_c_try_link
"$LINENO"; then :
12319 ac_cv_lib_ldap_r_ldap_simple_bind
=yes
12321 ac_cv_lib_ldap_r_ldap_simple_bind
=no
12323 rm -f core conftest.err conftest.
$ac_objext \
12324 conftest
$ac_exeext conftest.
$ac_ext
12325 LIBS
=$ac_check_lib_save_LIBS
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
12328 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
12329 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes
; then :
12330 cat >>confdefs.h
<<_ACEOF
12331 #define HAVE_LIBLDAP_R 1
12334 LIBS
="-lldap_r $LIBS"
12337 as_fn_error $?
"library 'ldap_r' is required for LDAP" "$LINENO" 5
12340 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
12342 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
12344 for ac_func
in ldap_initialize
12346 ac_fn_c_check_func
"$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
12347 if test "x$ac_cv_func_ldap_initialize" = xyes
; then :
12348 cat >>confdefs.h
<<_ACEOF
12349 #define HAVE_LDAP_INITIALIZE 1
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12357 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12358 if ${ac_cv_lib_wldap32_ldap_bind+:} false
; then :
12359 $as_echo_n "(cached) " >&6
12361 ac_check_lib_save_LIBS
=$LIBS
12362 LIBS
="-lwldap32 $LIBS"
12363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12366 /* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12376 return ldap_bind ();
12381 if ac_fn_c_try_link
"$LINENO"; then :
12382 ac_cv_lib_wldap32_ldap_bind
=yes
12384 ac_cv_lib_wldap32_ldap_bind
=no
12386 rm -f core conftest.err conftest.
$ac_objext \
12387 conftest
$ac_exeext conftest.
$ac_ext
12388 LIBS
=$ac_check_lib_save_LIBS
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
12391 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
12392 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes
; then :
12393 cat >>confdefs.h
<<_ACEOF
12394 #define HAVE_LIBWLDAP32 1
12397 LIBS
="-lwldap32 $LIBS"
12400 as_fn_error $?
"library 'wldap32' is required for LDAP" "$LINENO" 5
12403 LDAP_LIBS_FE
="-lwldap32"
12404 LDAP_LIBS_BE
="-lwldap32"
12411 # for contrib/sepgsql
12412 if test "$with_selinux" = yes; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
12414 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
12415 if ${ac_cv_lib_selinux_security_compute_create_name+:} false
; then :
12416 $as_echo_n "(cached) " >&6
12418 ac_check_lib_save_LIBS
=$LIBS
12419 LIBS
="-lselinux $LIBS"
12420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12423 /* Override any GCC internal prototype to avoid an error.
12424 Use char because int might match the return type of a GCC
12425 builtin and then its argument prototype would still apply. */
12429 char security_compute_create_name ();
12433 return security_compute_create_name ();
12438 if ac_fn_c_try_link
"$LINENO"; then :
12439 ac_cv_lib_selinux_security_compute_create_name
=yes
12441 ac_cv_lib_selinux_security_compute_create_name
=no
12443 rm -f core conftest.err conftest.
$ac_objext \
12444 conftest
$ac_exeext conftest.
$ac_ext
12445 LIBS
=$ac_check_lib_save_LIBS
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
12448 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
12449 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes
; then :
12450 cat >>confdefs.h
<<_ACEOF
12451 #define HAVE_LIBSELINUX 1
12454 LIBS
="-lselinux $LIBS"
12457 as_fn_error $?
"library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
12462 # for contrib/uuid-ossp
12463 if test "$with_uuid" = bsd
; then
12464 # On BSD, the UUID functions are in libc
12465 ac_fn_c_check_func
"$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
12466 if test "x$ac_cv_func_uuid_to_string" = xyes
; then :
12469 as_fn_error $?
"BSD UUID functions are not present" "$LINENO" 5
12472 elif test "$with_uuid" = e2fs
; then
12473 # On macOS, the UUID functions are in libc
12474 ac_fn_c_check_func
"$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
12475 if test "x$ac_cv_func_uuid_generate" = xyes
; then :
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
12479 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
12480 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
12481 $as_echo_n "(cached) " >&6
12483 ac_check_lib_save_LIBS
=$LIBS
12484 LIBS
="-luuid $LIBS"
12485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12488 /* Override any GCC internal prototype to avoid an error.
12489 Use char because int might match the return type of a GCC
12490 builtin and then its argument prototype would still apply. */
12494 char uuid_generate ();
12498 return uuid_generate ();
12503 if ac_fn_c_try_link
"$LINENO"; then :
12504 ac_cv_lib_uuid_uuid_generate
=yes
12506 ac_cv_lib_uuid_uuid_generate
=no
12508 rm -f core conftest.err conftest.
$ac_objext \
12509 conftest
$ac_exeext conftest.
$ac_ext
12510 LIBS
=$ac_check_lib_save_LIBS
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
12513 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
12514 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
12517 as_fn_error $?
"library 'uuid' is required for E2FS UUID" "$LINENO" 5
12522 elif test "$with_uuid" = ossp
; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
12524 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
12525 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false
; then :
12526 $as_echo_n "(cached) " >&6
12528 ac_check_lib_save_LIBS
=$LIBS
12529 LIBS
="-lossp-uuid $LIBS"
12530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h. */
12533 /* Override any GCC internal prototype to avoid an error.
12534 Use char because int might match the return type of a GCC
12535 builtin and then its argument prototype would still apply. */
12539 char uuid_export ();
12543 return uuid_export ();
12548 if ac_fn_c_try_link
"$LINENO"; then :
12549 ac_cv_lib_ossp_uuid_uuid_export
=yes
12551 ac_cv_lib_ossp_uuid_uuid_export
=no
12553 rm -f core conftest.err conftest.
$ac_objext \
12554 conftest
$ac_exeext conftest.
$ac_ext
12555 LIBS
=$ac_check_lib_save_LIBS
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
12558 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
12559 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes
; then :
12560 UUID_LIBS
="-lossp-uuid"
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
12563 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
12564 if ${ac_cv_lib_uuid_uuid_export+:} false
; then :
12565 $as_echo_n "(cached) " >&6
12567 ac_check_lib_save_LIBS
=$LIBS
12568 LIBS
="-luuid $LIBS"
12569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12572 /* Override any GCC internal prototype to avoid an error.
12573 Use char because int might match the return type of a GCC
12574 builtin and then its argument prototype would still apply. */
12578 char uuid_export ();
12582 return uuid_export ();
12587 if ac_fn_c_try_link
"$LINENO"; then :
12588 ac_cv_lib_uuid_uuid_export
=yes
12590 ac_cv_lib_uuid_uuid_export
=no
12592 rm -f core conftest.err conftest.
$ac_objext \
12593 conftest
$ac_exeext conftest.
$ac_ext
12594 LIBS
=$ac_check_lib_save_LIBS
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
12597 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
12598 if test "x$ac_cv_lib_uuid_uuid_export" = xyes
; then :
12601 as_fn_error $?
"library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12615 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12616 if ${ac_cv_header_stdbool_h+:} false
; then :
12617 $as_echo_n "(cached) " >&6
12619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12622 #include <stdbool.h>
12624 "error: bool is not defined"
12627 "error: false is not defined"
12630 "error: false is not 0"
12633 "error: true is not defined"
12636 "error: true is not 1"
12638 #ifndef __bool_true_false_are_defined
12639 "error: __bool_true_false_are_defined is not defined"
12642 struct s { _Bool s: 1; _Bool t; } s;
12644 char a[true == 1 ? 1 : -1];
12645 char b[false == 0 ? 1 : -1];
12646 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12647 char d[(bool) 0.5 == true ? 1 : -1];
12648 /* See body of main program for 'e'. */
12649 char f[(_Bool) 0.0 == false ? 1 : -1];
12651 char h[sizeof (_Bool)];
12652 char i[sizeof s.t];
12653 enum { j = false, k = true, l = false * true, m = true * 256 };
12654 /* The following fails for
12655 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12657 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12658 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12659 /* Catch a bug in an HP-UX C compiler. See
12660 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12661 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12673 /* Refer to every declared value, to avoid compiler optimizations. */
12674 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12675 + !m + !n + !o + !p + !q + !pq);
12681 if ac_fn_c_try_compile
"$LINENO"; then :
12682 ac_cv_header_stdbool_h
=yes
12684 ac_cv_header_stdbool_h
=no
12686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12689 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12690 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12691 if test "x$ac_cv_type__Bool" = xyes
; then :
12693 cat >>confdefs.h
<<_ACEOF
12694 #define HAVE__BOOL 1
12701 if test $ac_cv_header_stdbool_h = yes; then
12703 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12708 for ac_header
in atomic.h copyfile.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
12710 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12711 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12712 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12713 cat >>confdefs.h
<<_ACEOF
12714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12722 # On BSD, test for net/if.h will fail unless sys/socket.h
12723 # is included first.
12724 for ac_header
in net
/if.h
12726 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
12727 #include <sys/socket.h>
12730 if test "x$ac_cv_header_net_if_h" = xyes
; then :
12731 cat >>confdefs.h
<<_ACEOF
12732 #define HAVE_NET_IF_H 1
12740 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
12741 # is included first.
12742 for ac_header
in sys
/ucred.h
12744 ac_fn_c_check_header_compile
"$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
12745 #include <sys/param.h>
12748 if test "x$ac_cv_header_sys_ucred_h" = xyes
; then :
12749 cat >>confdefs.h
<<_ACEOF
12750 #define HAVE_SYS_UCRED_H 1
12758 # At least on IRIX, test for netinet/tcp.h will fail unless
12759 # netinet/in.h is included first.
12760 for ac_header
in netinet
/tcp.h
12762 ac_fn_c_check_header_compile
"$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
12763 #include <netinet/in.h>
12766 if test "x$ac_cv_header_netinet_tcp_h" = xyes
; then :
12767 cat >>confdefs.h
<<_ACEOF
12768 #define HAVE_NETINET_TCP_H 1
12776 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
12777 for ac_header
in readline
/readline.h
12779 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
12780 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
12781 cat >>confdefs.h
<<_ACEOF
12782 #define HAVE_READLINE_READLINE_H 1
12786 for ac_header
in readline.h
12788 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
12789 if test "x$ac_cv_header_readline_h" = xyes
; then :
12790 cat >>confdefs.h
<<_ACEOF
12791 #define HAVE_READLINE_H 1
12795 as_fn_error $?
"readline header not found
12796 If you have readline already installed, see config.log for details on the
12797 failure. It is possible the compiler isn't looking in the proper directory.
12798 Use --without-readline to disable readline support." "$LINENO" 5
12807 for ac_header
in readline
/history.h
12809 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
12810 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
12811 cat >>confdefs.h
<<_ACEOF
12812 #define HAVE_READLINE_HISTORY_H 1
12816 for ac_header
in history.h
12818 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
12819 if test "x$ac_cv_header_history_h" = xyes
; then :
12820 cat >>confdefs.h
<<_ACEOF
12821 #define HAVE_HISTORY_H 1
12825 as_fn_error $?
"history header not found
12826 If you have readline already installed, see config.log for details on the
12827 failure. It is possible the compiler isn't looking in the proper directory.
12828 Use --without-readline to disable readline support." "$LINENO" 5
12839 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
12840 # Some installations of libedit usurp /usr/include/readline/, which seems
12841 # bad practice, since in combined installations readline will have its headers
12842 # there. We might have to resort to AC_EGREP checks to make sure we found
12843 # the proper header...
12844 for ac_header
in editline
/readline.h
12846 ac_fn_c_check_header_mongrel
"$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
12847 if test "x$ac_cv_header_editline_readline_h" = xyes
; then :
12848 cat >>confdefs.h
<<_ACEOF
12849 #define HAVE_EDITLINE_READLINE_H 1
12853 for ac_header
in readline.h
12855 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
12856 if test "x$ac_cv_header_readline_h" = xyes
; then :
12857 cat >>confdefs.h
<<_ACEOF
12858 #define HAVE_READLINE_H 1
12862 for ac_header
in readline
/readline.h
12864 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
12865 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
12866 cat >>confdefs.h
<<_ACEOF
12867 #define HAVE_READLINE_READLINE_H 1
12871 as_fn_error $?
"readline header not found
12872 If you have libedit already installed, see config.log for details on the
12873 failure. It is possible the compiler isn't looking in the proper directory.
12874 Use --without-readline to disable libedit support." "$LINENO" 5
12887 # Note: in a libedit installation, history.h is sometimes a dummy, and may
12888 # not be there at all. Hence, don't complain if not found. We must check
12889 # though, since in yet other versions it is an independent header.
12890 for ac_header
in editline
/history.h
12892 ac_fn_c_check_header_mongrel
"$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
12893 if test "x$ac_cv_header_editline_history_h" = xyes
; then :
12894 cat >>confdefs.h
<<_ACEOF
12895 #define HAVE_EDITLINE_HISTORY_H 1
12899 for ac_header
in history.h
12901 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
12902 if test "x$ac_cv_header_history_h" = xyes
; then :
12903 cat >>confdefs.h
<<_ACEOF
12904 #define HAVE_HISTORY_H 1
12908 for ac_header
in readline
/history.h
12910 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
12911 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
12912 cat >>confdefs.h
<<_ACEOF
12913 #define HAVE_READLINE_HISTORY_H 1
12930 if test "$with_zlib" = yes; then
12931 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12932 if test "x$ac_cv_header_zlib_h" = xyes
; then :
12935 as_fn_error $?
"zlib header not found
12936 If you have zlib already installed, see config.log for details on the
12937 failure. It is possible the compiler isn't looking in the proper directory.
12938 Use --without-zlib to disable zlib support." "$LINENO" 5
12944 if test "$with_gssapi" = yes ; then
12945 for ac_header
in gssapi
/gssapi.h
12947 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
12948 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
; then :
12949 cat >>confdefs.h
<<_ACEOF
12950 #define HAVE_GSSAPI_GSSAPI_H 1
12954 for ac_header
in gssapi.h
12956 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
12957 if test "x$ac_cv_header_gssapi_h" = xyes
; then :
12958 cat >>confdefs.h
<<_ACEOF
12959 #define HAVE_GSSAPI_H 1
12963 as_fn_error $?
"gssapi.h header file is required for GSSAPI" "$LINENO" 5
12974 if test "$with_openssl" = yes ; then
12975 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
12976 if test "x$ac_cv_header_openssl_ssl_h" = xyes
; then :
12979 as_fn_error $?
"header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
12983 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
12984 if test "x$ac_cv_header_openssl_err_h" = xyes
; then :
12987 as_fn_error $?
"header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
12993 if test "$with_pam" = yes ; then
12994 for ac_header
in security
/pam_appl.h
12996 ac_fn_c_check_header_mongrel
"$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
12997 if test "x$ac_cv_header_security_pam_appl_h" = xyes
; then :
12998 cat >>confdefs.h
<<_ACEOF
12999 #define HAVE_SECURITY_PAM_APPL_H 1
13003 for ac_header
in pam
/pam_appl.h
13005 ac_fn_c_check_header_mongrel
"$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
13006 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
; then :
13007 cat >>confdefs.h
<<_ACEOF
13008 #define HAVE_PAM_PAM_APPL_H 1
13012 as_fn_error $?
"header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
13023 if test "$with_bsd_auth" = yes ; then
13024 ac_fn_c_check_header_mongrel
"$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
13025 if test "x$ac_cv_header_bsd_auth_h" = xyes
; then :
13028 as_fn_error $?
"header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
13034 if test "$with_systemd" = yes ; then
13035 ac_fn_c_check_header_mongrel
"$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
13036 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
; then :
13039 as_fn_error $?
"header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
13045 if test "$with_libxml" = yes ; then
13046 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
13047 if test "x$ac_cv_header_libxml_parser_h" = xyes
; then :
13050 as_fn_error $?
"header file <libxml/parser.h> is required for XML support" "$LINENO" 5
13056 if test "$with_libxslt" = yes ; then
13057 ac_fn_c_check_header_mongrel
"$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
13058 if test "x$ac_cv_header_libxslt_xslt_h" = xyes
; then :
13061 as_fn_error $?
"header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
13067 if test "$with_ldap" = yes ; then
13068 if test "$PORTNAME" != "win32"; then
13069 for ac_header
in ldap.h
13071 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13072 if test "x$ac_cv_header_ldap_h" = xyes
; then :
13073 cat >>confdefs.h
<<_ACEOF
13074 #define HAVE_LDAP_H 1
13078 as_fn_error $?
"header file <ldap.h> is required for LDAP" "$LINENO" 5
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
13084 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
13085 if ${pgac_cv_ldap_safe+:} false
; then :
13086 $as_echo_n "(cached) " >&6
13088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13091 #if !defined(LDAP_VENDOR_VERSION) || \
13092 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
13093 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
13104 if ac_fn_c_try_compile
"$LINENO"; then :
13105 pgac_cv_ldap_safe
=yes
13107 pgac_cv_ldap_safe
=no
13109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
13112 $as_echo "$pgac_cv_ldap_safe" >&6; }
13114 if test "$pgac_cv_ldap_safe" != yes; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13116 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13117 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13118 *** also uses LDAP will crash on exit." >&5
13119 $as_echo "$as_me: WARNING:
13120 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13121 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13122 *** also uses LDAP will crash on exit." >&2;}
13125 for ac_header
in winldap.h
13127 ac_fn_c_check_header_compile
"$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
13128 #include <windows.h>
13131 if test "x$ac_cv_header_winldap_h" = xyes
; then :
13132 cat >>confdefs.h
<<_ACEOF
13133 #define HAVE_WINLDAP_H 1
13137 as_fn_error $?
"header file <winldap.h> is required for LDAP" "$LINENO" 5
13145 if test "$with_bonjour" = yes ; then
13146 ac_fn_c_check_header_mongrel
"$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
13147 if test "x$ac_cv_header_dns_sd_h" = xyes
; then :
13150 as_fn_error $?
"header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
13156 # for contrib/uuid-ossp
13157 if test "$with_uuid" = bsd
; then
13158 for ac_header
in uuid.h
13160 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13161 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13162 cat >>confdefs.h
<<_ACEOF
13163 #define HAVE_UUID_H 1
13165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13171 $EGREP "uuid_to_string" >/dev
/null
2>&1; then :
13174 as_fn_error $?
"header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
13179 as_fn_error $?
"header file <uuid.h> is required for BSD UUID" "$LINENO" 5
13184 elif test "$with_uuid" = e2fs
; then
13185 for ac_header
in uuid
/uuid.h
13187 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13188 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
13189 cat >>confdefs.h
<<_ACEOF
13190 #define HAVE_UUID_UUID_H 1
13192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13194 #include <uuid/uuid.h>
13197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13198 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
13201 as_fn_error $?
"header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
13206 for ac_header
in uuid.h
13208 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13209 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13210 cat >>confdefs.h
<<_ACEOF
13211 #define HAVE_UUID_H 1
13213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13214 /* end confdefs.h. */
13218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13219 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
13222 as_fn_error $?
"header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
13227 as_fn_error $?
"header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
13236 elif test "$with_uuid" = ossp
; then
13237 for ac_header
in ossp
/uuid.h
13239 ac_fn_c_check_header_mongrel
"$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
13240 if test "x$ac_cv_header_ossp_uuid_h" = xyes
; then :
13241 cat >>confdefs.h
<<_ACEOF
13242 #define HAVE_OSSP_UUID_H 1
13244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13246 #include <ossp/uuid.h>
13249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13250 $EGREP "uuid_export" >/dev
/null
2>&1; then :
13253 as_fn_error $?
"header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
13258 for ac_header
in uuid.h
13260 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13261 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13262 cat >>confdefs.h
<<_ACEOF
13263 #define HAVE_UUID_H 1
13265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13271 $EGREP "uuid_export" >/dev
/null
2>&1; then :
13274 as_fn_error $?
"header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
13279 as_fn_error $?
"header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
13290 if test "$PORTNAME" = "win32" ; then
13291 for ac_header
in crtdefs.h
13293 ac_fn_c_check_header_mongrel
"$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
13294 if test "x$ac_cv_header_crtdefs_h" = xyes
; then :
13295 cat >>confdefs.h
<<_ACEOF
13296 #define HAVE_CRTDEFS_H 1
13306 ## Types, structures, compiler characteristics
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13310 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13311 if ${ac_cv_c_bigendian+:} false
; then :
13312 $as_echo_n "(cached) " >&6
13314 ac_cv_c_bigendian
=unknown
13315 # See if we're dealing with a universal compiler.
13316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318 #ifndef __APPLE_CC__
13319 not a universal capable compiler
13324 if ac_fn_c_try_compile
"$LINENO"; then :
13326 # Check for potential -arch flags. It is not universal unless
13327 # there are at least two -arch flags with different values.
13330 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13331 if test -n "$ac_prev"; then
13333 i?
86 | x86_64 | ppc | ppc64
)
13334 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13337 ac_cv_c_bigendian
=universal
13343 elif test "x$ac_word" = "x-arch"; then
13348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13349 if test $ac_cv_c_bigendian = unknown
; then
13350 # See if sys/param.h defines the BYTE_ORDER macro.
13351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13353 #include <sys/types.h>
13354 #include <sys/param.h>
13359 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13360 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13362 bogus endian macros
13369 if ac_fn_c_try_compile
"$LINENO"; then :
13370 # It does; now see whether it defined to BIG_ENDIAN or not.
13371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h. */
13373 #include <sys/types.h>
13374 #include <sys/param.h>
13379 #if BYTE_ORDER != BIG_ENDIAN
13387 if ac_fn_c_try_compile
"$LINENO"; then :
13388 ac_cv_c_bigendian
=yes
13390 ac_cv_c_bigendian
=no
13392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13396 if test $ac_cv_c_bigendian = unknown
; then
13397 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400 #include <limits.h>
13405 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13406 bogus endian macros
13413 if ac_fn_c_try_compile
"$LINENO"; then :
13414 # It does; now see whether it defined to _BIG_ENDIAN or not.
13415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13416 /* end confdefs.h. */
13417 #include <limits.h>
13422 #ifndef _BIG_ENDIAN
13430 if ac_fn_c_try_compile
"$LINENO"; then :
13431 ac_cv_c_bigendian
=yes
13433 ac_cv_c_bigendian
=no
13435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13439 if test $ac_cv_c_bigendian = unknown
; then
13440 # Compile a test program.
13441 if test "$cross_compiling" = yes; then :
13442 # Try to guess by grepping values from an object file.
13443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h. */
13445 short int ascii_mm[] =
13446 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13447 short int ascii_ii[] =
13448 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13449 int use_ascii (int i) {
13450 return ascii_mm[i] + ascii_ii[i];
13452 short int ebcdic_ii[] =
13453 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13454 short int ebcdic_mm[] =
13455 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13456 int use_ebcdic (int i) {
13457 return ebcdic_mm[i] + ebcdic_ii[i];
13464 return use_ascii (foo) == use_ebcdic (foo);
13469 if ac_fn_c_try_compile
"$LINENO"; then :
13470 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13471 ac_cv_c_bigendian
=yes
13473 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13474 if test "$ac_cv_c_bigendian" = unknown
; then
13475 ac_cv_c_bigendian
=no
13477 # finding both strings is unlikely to happen, but who knows?
13478 ac_cv_c_bigendian
=unknown
13482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13486 $ac_includes_default
13491 /* Are we little or big endian? From Harbison&Steele. */
13495 char c[sizeof (long int)];
13498 return u.c[sizeof (long int) - 1] == 1;
13504 if ac_fn_c_try_run
"$LINENO"; then :
13505 ac_cv_c_bigendian
=no
13507 ac_cv_c_bigendian
=yes
13509 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13510 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13516 $as_echo "$ac_cv_c_bigendian" >&6; }
13517 case $ac_cv_c_bigendian in #(
13519 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13525 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13529 as_fn_error $?
"unknown endianness
13530 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13534 $as_echo_n "checking for inline... " >&6; }
13535 if ${ac_cv_c_inline+:} false
; then :
13536 $as_echo_n "(cached) " >&6
13539 for ac_kw
in inline __inline__ __inline
; do
13540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13542 #ifndef __cplusplus
13544 static $ac_kw foo_t static_foo () {return 0; }
13545 $ac_kw foo_t foo () {return 0; }
13549 if ac_fn_c_try_compile
"$LINENO"; then :
13550 ac_cv_c_inline
=$ac_kw
13552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13553 test "$ac_cv_c_inline" != no
&& break
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13558 $as_echo "$ac_cv_c_inline" >&6; }
13560 case $ac_cv_c_inline in
13563 case $ac_cv_c_inline in
13565 *) ac_val
=$ac_cv_c_inline;;
13567 cat >>confdefs.h
<<_ACEOF
13568 #ifndef __cplusplus
13569 #define inline $ac_val
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
13576 $as_echo_n "checking for printf format archetype... " >&6; }
13577 if ${pgac_cv_printf_archetype+:} false
; then :
13578 $as_echo_n "(cached) " >&6
13580 pgac_cv_printf_archetype
=gnu_printf
13581 ac_save_c_werror_flag
=$ac_c_werror_flag
13582 ac_c_werror_flag
=yes
13583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 extern void pgac_write(int ignore, const char *fmt,...)
13586 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
13590 pgac_write(0, "error %s: %m", "foo");
13595 if ac_fn_c_try_compile
"$LINENO"; then :
13596 ac_archetype_ok
=yes
13600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13601 ac_c_werror_flag
=$ac_save_c_werror_flag
13603 if [ "$ac_archetype_ok" = no
]; then
13604 pgac_cv_printf_archetype
=__syslog__
13605 ac_save_c_werror_flag
=$ac_c_werror_flag
13606 ac_c_werror_flag
=yes
13607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 extern void pgac_write(int ignore, const char *fmt,...)
13610 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
13614 pgac_write(0, "error %s: %m", "foo");
13619 if ac_fn_c_try_compile
"$LINENO"; then :
13620 ac_archetype_ok
=yes
13624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13625 ac_c_werror_flag
=$ac_save_c_werror_flag
13627 if [ "$ac_archetype_ok" = no
]; then
13628 pgac_cv_printf_archetype
=printf
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
13633 $as_echo "$pgac_cv_printf_archetype" >&6; }
13635 cat >>confdefs.h
<<_ACEOF
13636 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
13642 $as_echo_n "checking for flexible array members... " >&6; }
13643 if ${ac_cv_c_flexmember+:} false
; then :
13644 $as_echo_n "(cached) " >&6
13646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13648 #include <stdlib.h>
13650 #include <stddef.h>
13651 struct s { int n; double d[]; };
13655 int m = getchar ();
13656 struct s *p = malloc (offsetof (struct s, d)
13657 + m * sizeof (double));
13659 return p->d != (double *) NULL;
13664 if ac_fn_c_try_compile
"$LINENO"; then :
13665 ac_cv_c_flexmember
=yes
13667 ac_cv_c_flexmember
=no
13669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
13672 $as_echo "$ac_cv_c_flexmember" >&6; }
13673 if test $ac_cv_c_flexmember = yes; then
13675 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
13678 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
13683 $as_echo_n "checking for signed types... " >&6; }
13684 if ${pgac_cv_c_signed+:} false
; then :
13685 $as_echo_n "(cached) " >&6
13687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13693 signed char c; signed short s; signed int i;
13698 if ac_fn_c_try_compile
"$LINENO"; then :
13699 pgac_cv_c_signed
=yes
13701 pgac_cv_c_signed
=no
13703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
13706 $as_echo "$pgac_cv_c_signed" >&6; }
13707 if test x
"$pgac_cv_c_signed" = xno
; then
13709 $as_echo "#define signed /**/" >>confdefs.h
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
13713 $as_echo_n "checking for __func__... " >&6; }
13714 if ${pgac_cv_funcname_func_support+:} false
; then :
13715 $as_echo_n "(cached) " >&6
13717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13723 printf("%s\n", __func__);
13728 if ac_fn_c_try_compile
"$LINENO"; then :
13729 pgac_cv_funcname_func_support
=yes
13731 pgac_cv_funcname_func_support
=no
13733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
13736 $as_echo "$pgac_cv_funcname_func_support" >&6; }
13737 if test x
"$pgac_cv_funcname_func_support" = xyes
; then
13739 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
13743 $as_echo_n "checking for __FUNCTION__... " >&6; }
13744 if ${pgac_cv_funcname_function_support+:} false
; then :
13745 $as_echo_n "(cached) " >&6
13747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13753 printf("%s\n", __FUNCTION__);
13758 if ac_fn_c_try_compile
"$LINENO"; then :
13759 pgac_cv_funcname_function_support
=yes
13761 pgac_cv_funcname_function_support
=no
13763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
13766 $as_echo "$pgac_cv_funcname_function_support" >&6; }
13767 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
13769 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
13774 $as_echo_n "checking for _Static_assert... " >&6; }
13775 if ${pgac_cv__static_assert+:} false
; then :
13776 $as_echo_n "(cached) " >&6
13778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13784 ({ _Static_assert(1, "foo"); })
13789 if ac_fn_c_try_link
"$LINENO"; then :
13790 pgac_cv__static_assert
=yes
13792 pgac_cv__static_assert
=no
13794 rm -f core conftest.err conftest.
$ac_objext \
13795 conftest
$ac_exeext conftest.
$ac_ext
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
13798 $as_echo "$pgac_cv__static_assert" >&6; }
13799 if test x
"$pgac_cv__static_assert" = xyes
; then
13801 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
13805 $as_echo_n "checking for typeof... " >&6; }
13806 if ${pgac_cv_c_typeof+:} false
; then :
13807 $as_echo_n "(cached) " >&6
13809 pgac_cv_c_typeof
=no
13810 for pgac_kw
in typeof __typeof__ decltype
; do
13811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13825 if ac_fn_c_try_compile
"$LINENO"; then :
13826 pgac_cv_c_typeof
=$pgac_kw
13828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13829 test "$pgac_cv_c_typeof" != no
&& break
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
13833 $as_echo "$pgac_cv_c_typeof" >&6; }
13834 if test "$pgac_cv_c_typeof" != no
; then
13836 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
13838 if test "$pgac_cv_c_typeof" != typeof
; then
13840 cat >>confdefs.h
<<_ACEOF
13841 #define typeof $pgac_cv_c_typeof
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
13847 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
13848 if ${pgac_cv__types_compatible+:} false
; then :
13849 $as_echo_n "(cached) " >&6
13851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13857 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
13862 if ac_fn_c_try_compile
"$LINENO"; then :
13863 pgac_cv__types_compatible
=yes
13865 pgac_cv__types_compatible
=no
13867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
13870 $as_echo "$pgac_cv__types_compatible" >&6; }
13871 if test x
"$pgac_cv__types_compatible" = xyes
; then
13873 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
13877 $as_echo_n "checking for __builtin_constant_p... " >&6; }
13878 if ${pgac_cv__builtin_constant_p+:} false
; then :
13879 $as_echo_n "(cached) " >&6
13881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13884 static int y[__builtin_constant_p(x) ? x : 1];
13885 static int z[__builtin_constant_p("string literal") ? 1 : x];
13889 if ac_fn_c_try_compile
"$LINENO"; then :
13890 pgac_cv__builtin_constant_p
=yes
13892 pgac_cv__builtin_constant_p
=no
13894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
13897 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
13898 if test x
"$pgac_cv__builtin_constant_p" = xyes
; then
13900 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
13904 $as_echo_n "checking for __builtin_unreachable... " >&6; }
13905 if ${pgac_cv__builtin_unreachable+:} false
; then :
13906 $as_echo_n "(cached) " >&6
13908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13914 __builtin_unreachable();
13919 if ac_fn_c_try_link
"$LINENO"; then :
13920 pgac_cv__builtin_unreachable
=yes
13922 pgac_cv__builtin_unreachable
=no
13924 rm -f core conftest.err conftest.
$ac_objext \
13925 conftest
$ac_exeext conftest.
$ac_ext
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
13928 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
13929 if test x
"$pgac_cv__builtin_unreachable" = xyes
; then
13931 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
13935 $as_echo_n "checking for computed goto support... " >&6; }
13936 if ${pgac_cv_computed_goto+:} false
; then :
13937 $as_echo_n "(cached) " >&6
13939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13945 void *labeladdrs[] = {&&my_label};
13946 goto *labeladdrs[0];
13954 if ac_fn_c_try_compile
"$LINENO"; then :
13955 pgac_cv_computed_goto
=yes
13957 pgac_cv_computed_goto
=no
13959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
13962 $as_echo "$pgac_cv_computed_goto" >&6; }
13963 if test x
"$pgac_cv_computed_goto" = xyes
; then
13965 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
13968 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13972 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
13974 cat >>confdefs.h
<<_ACEOF
13975 #define HAVE_STRUCT_TM_TM_ZONE 1
13982 ac_fn_c_check_type
"$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
13983 #ifdef HAVE_SYS_IPC_H
13984 #include <sys/ipc.h>
13986 #ifdef HAVE_SYS_SEM_H
13987 #include <sys/sem.h>
13990 if test "x$ac_cv_type_union_semun" = xyes
; then :
13992 cat >>confdefs.h
<<_ACEOF
13993 #define HAVE_UNION_SEMUN 1
13999 ac_fn_c_check_type
"$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
14000 #ifdef HAVE_SYS_UN_H
14001 #include <sys/un.h>
14005 if test "x$ac_cv_type_struct_sockaddr_un" = xyes
; then :
14007 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
14011 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
14012 #include <sys/socket.h>
14015 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
14017 cat >>confdefs.h
<<_ACEOF
14018 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14024 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14025 #include <sys/socket.h>
14028 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
14030 cat >>confdefs.h
<<_ACEOF
14031 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14036 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14037 #include <sys/socket.h>
14040 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
; then :
14042 cat >>confdefs.h
<<_ACEOF
14043 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14048 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
14049 #include <sys/socket.h>
14052 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes
; then :
14054 cat >>confdefs.h
<<_ACEOF
14055 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14060 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
14061 #include <sys/socket.h>
14064 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes
; then :
14066 cat >>confdefs.h
<<_ACEOF
14067 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14072 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14073 #include <sys/socket.h>
14076 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
14078 cat >>confdefs.h
<<_ACEOF
14079 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14085 ac_fn_c_check_type
"$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
14086 #include <sys/socket.h>
14090 if test "x$ac_cv_type_struct_addrinfo" = xyes
; then :
14092 cat >>confdefs.h
<<_ACEOF
14093 #define HAVE_STRUCT_ADDRINFO 1
14100 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14101 if test "x$ac_cv_type_intptr_t" = xyes
; then :
14103 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
14106 for ac_type
in 'int' 'long int' 'long long int'; do
14107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14109 $ac_includes_default
14113 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14114 test_array [0] = 0;
14115 return test_array [0];
14121 if ac_fn_c_try_compile
"$LINENO"; then :
14123 cat >>confdefs.h
<<_ACEOF
14124 #define intptr_t $ac_type
14129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14130 test -z "$ac_type" && break
14136 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14137 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
14139 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
14142 for ac_type
in 'unsigned int' 'unsigned long int' \
14143 'unsigned long long int'; do
14144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 $ac_includes_default
14150 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14151 test_array [0] = 0;
14152 return test_array [0];
14158 if ac_fn_c_try_compile
"$LINENO"; then :
14160 cat >>confdefs.h
<<_ACEOF
14161 #define uintptr_t $ac_type
14166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14167 test -z "$ac_type" && break
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14174 $as_echo_n "checking for unsigned long long int... " >&6; }
14175 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
14176 $as_echo_n "(cached) " >&6
14178 ac_cv_type_unsigned_long_long_int
=yes
14179 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14183 /* For now, do not test the preprocessor; as of 2007 there are too many
14184 implementations with broken preprocessors. Perhaps this can
14185 be revisited in 2012. In the meantime, code should not expect
14186 #if to work with literals wider than 32 bits. */
14187 /* Test literals. */
14188 long long int ll = 9223372036854775807ll;
14189 long long int nll = -9223372036854775807LL;
14190 unsigned long long int ull = 18446744073709551615ULL;
14191 /* Test constant expressions. */
14192 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14194 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14200 /* Test availability of runtime routines for shift and division. */
14201 long long int llmax = 9223372036854775807ll;
14202 unsigned long long int ullmax = 18446744073709551615ull;
14203 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14204 | (llmax / ll) | (llmax % ll)
14205 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14206 | (ullmax / ull) | (ullmax % ull));
14212 if ac_fn_c_try_link
"$LINENO"; then :
14215 ac_cv_type_unsigned_long_long_int
=no
14217 rm -f core conftest.err conftest.
$ac_objext \
14218 conftest
$ac_exeext conftest.
$ac_ext
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14222 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14223 if test $ac_cv_type_unsigned_long_long_int = yes; then
14225 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14232 $as_echo_n "checking for long long int... " >&6; }
14233 if ${ac_cv_type_long_long_int+:} false
; then :
14234 $as_echo_n "(cached) " >&6
14236 ac_cv_type_long_long_int
=yes
14237 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14238 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
14239 if test $ac_cv_type_long_long_int = yes; then
14240 if test "$cross_compiling" = yes; then :
14243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14245 #include <limits.h>
14248 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14249 # define LLONG_MAX (HALF - 1 + HALF)
14254 long long int n = 1;
14258 long long int m = n << i;
14261 if (LLONG_MAX / 2 < m)
14269 if ac_fn_c_try_run
"$LINENO"; then :
14272 ac_cv_type_long_long_int
=no
14274 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14275 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14282 $as_echo "$ac_cv_type_long_long_int" >&6; }
14283 if test $ac_cv_type_long_long_int = yes; then
14285 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
14291 $as_echo_n "checking for locale_t... " >&6; }
14292 if ${pgac_cv_type_locale_t+:} false
; then :
14293 $as_echo_n "(cached) " >&6
14295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h. */
14297 #include <locale.h>
14307 if ac_fn_c_try_compile
"$LINENO"; then :
14308 pgac_cv_type_locale_t
=yes
14310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h. */
14312 #include <xlocale.h>
14322 if ac_fn_c_try_compile
"$LINENO"; then :
14323 pgac_cv_type_locale_t
='yes (in xlocale.h)'
14325 pgac_cv_type_locale_t
=no
14327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
14332 $as_echo "$pgac_cv_type_locale_t" >&6; }
14333 if test "$pgac_cv_type_locale_t" != no
; then
14335 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
14338 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
14340 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
14344 # MSVC doesn't cope well with defining restrict to __restrict, the
14345 # spelling it understands, because it conflicts with
14346 # __declspec(restrict). Therefore we define pg_restrict to the
14347 # appropriate definition, which presumably won't conflict.
14349 # Allow platforms with buggy compilers to force restrict to not be
14350 # used by setting $FORCE_DISABLE_RESTRICT=yes in the relevant
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14353 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14354 if ${ac_cv_c_restrict+:} false
; then :
14355 $as_echo_n "(cached) " >&6
14357 ac_cv_c_restrict
=no
14358 # The order here caters to the fact that C++ does not require restrict.
14359 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14362 typedef int * int_ptr;
14363 int foo (int_ptr $ac_kw ip) {
14370 int * $ac_kw t = s;
14377 if ac_fn_c_try_compile
"$LINENO"; then :
14378 ac_cv_c_restrict
=$ac_kw
14380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14381 test "$ac_cv_c_restrict" != no
&& break
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14386 $as_echo "$ac_cv_c_restrict" >&6; }
14388 case $ac_cv_c_restrict in
14390 no
) $as_echo "#define restrict /**/" >>confdefs.h
14392 *) cat >>confdefs.h
<<_ACEOF
14393 #define restrict $ac_cv_c_restrict
14398 if test "$ac_cv_c_restrict" = "no" -o "x$FORCE_DISABLE_RESTRICT" = "xyes"; then
14401 pg_restrict
="$ac_cv_c_restrict"
14404 cat >>confdefs.h
<<_ACEOF
14405 #define pg_restrict $pg_restrict
14409 ac_fn_c_check_type
"$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
14410 #include <sys/param.h>
14411 #ifdef HAVE_SYS_UCRED_H
14412 #include <sys/ucred.h>
14415 if test "x$ac_cv_type_struct_cmsgcred" = xyes
; then :
14417 cat >>confdefs.h
<<_ACEOF
14418 #define HAVE_STRUCT_CMSGCRED 1
14425 ac_fn_c_check_type
"$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
14426 #include <getopt.h>
14429 if test "x$ac_cv_type_struct_option" = xyes
; then :
14431 cat >>confdefs.h
<<_ACEOF
14432 #define HAVE_STRUCT_OPTION 1
14439 if test "$with_zlib" = yes; then
14440 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14441 # did not). While we could work around the lack of z_streamp, it
14442 # seems unwise to encourage people to use such old zlib versions...
14443 ac_fn_c_check_type
"$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
14445 if test "x$ac_cv_type_z_streamp" = xyes
; then :
14448 as_fn_error $?
"zlib version is too old
14449 Use --without-zlib to disable zlib support." "$LINENO" 5
14456 # On x86_64, check if we can compile a popcntq instruction
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports x86_64 popcntq" >&5
14458 $as_echo_n "checking whether assembler supports x86_64 popcntq... " >&6; }
14459 if ${pgac_cv_have_x86_64_popcntq+:} false
; then :
14460 $as_echo_n "(cached) " >&6
14462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h. */
14468 long long x = 1; long long r;
14469 __asm__ __volatile__ (" popcntq %1,%0\n" : "=q"(r) : "rm"(x));
14474 if ac_fn_c_try_compile
"$LINENO"; then :
14475 pgac_cv_have_x86_64_popcntq
=yes
14477 pgac_cv_have_x86_64_popcntq
=no
14479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_x86_64_popcntq" >&5
14482 $as_echo "$pgac_cv_have_x86_64_popcntq" >&6; }
14483 if test x
"$pgac_cv_have_x86_64_popcntq" = xyes
; then
14485 $as_echo "#define HAVE_X86_64_POPCNTQ 1" >>confdefs.h
14490 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
14492 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
14493 if ${pgac_cv_have_ppc_mutex_hint+:} false
; then :
14494 $as_echo_n "(cached) " >&6
14496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14502 int a = 0; int *p = &a; int r;
14503 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
14508 if ac_fn_c_try_compile
"$LINENO"; then :
14509 pgac_cv_have_ppc_mutex_hint
=yes
14511 pgac_cv_have_ppc_mutex_hint
=no
14513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
14516 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
14517 if test x
"$pgac_cv_have_ppc_mutex_hint" = xyes
; then
14519 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
14522 # Check if compiler accepts "i"(x) when __builtin_constant_p(x).
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance" >&5
14524 $as_echo_n "checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance... " >&6; }
14525 if ${pgac_cv_have_i_constraint__builtin_constant_p+:} false
; then :
14526 $as_echo_n "(cached) " >&6
14528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14531 addi(int ra, int si)
14534 if (__builtin_constant_p(si))
14535 __asm__ __volatile__(
14536 " addi %0,%1,%2\n" : "=r"(res) : "b"(ra), "i"(si));
14539 int test_adds(int x) { return addi(3, x) + addi(x, 5); }
14548 if ac_fn_c_try_compile
"$LINENO"; then :
14549 pgac_cv_have_i_constraint__builtin_constant_p
=yes
14551 pgac_cv_have_i_constraint__builtin_constant_p
=no
14553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_i_constraint__builtin_constant_p" >&5
14556 $as_echo "$pgac_cv_have_i_constraint__builtin_constant_p" >&6; }
14557 if test x
"$pgac_cv_have_i_constraint__builtin_constant_p" = xyes
; then
14559 $as_echo "#define HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P 1" >>confdefs.h
14565 # Check largefile support. You might think this is a system service not a
14566 # compiler characteristic, but you'd be wrong. We must check this before
14567 # probing existence of related functions such as fseeko, since the largefile
14568 # defines can affect what is generated for that.
14569 if test "$PORTNAME" != "win32"; then
14570 # Check whether --enable-largefile was given.
14571 if test "${enable_largefile+set}" = set; then :
14572 enableval
=$enable_largefile;
14575 if test "$enable_largefile" != no
; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14578 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14579 if ${ac_cv_sys_largefile_CC+:} false
; then :
14580 $as_echo_n "(cached) " >&6
14582 ac_cv_sys_largefile_CC
=no
14583 if test "$GCC" != yes; then
14586 # IRIX 6.2 and later do not support large files by default,
14587 # so use the C compiler's -n32 option if that helps.
14588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14590 #include <sys/types.h>
14591 /* Check that off_t can represent 2**63 - 1 correctly.
14592 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14593 since some C++ compilers masquerading as C compilers
14594 incorrectly reject 9223372036854775807. */
14595 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14596 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14597 && LARGE_OFF_T % 2147483647 == 1)
14607 if ac_fn_c_try_compile
"$LINENO"; then :
14610 rm -f core conftest.err conftest.
$ac_objext
14612 if ac_fn_c_try_compile
"$LINENO"; then :
14613 ac_cv_sys_largefile_CC
=' -n32'; break
14615 rm -f core conftest.err conftest.
$ac_objext
14619 rm -f conftest.
$ac_ext
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14623 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14624 if test "$ac_cv_sys_largefile_CC" != no
; then
14625 CC
=$CC$ac_cv_sys_largefile_CC
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14629 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14630 if ${ac_cv_sys_file_offset_bits+:} false
; then :
14631 $as_echo_n "(cached) " >&6
14634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14636 #include <sys/types.h>
14637 /* Check that off_t can represent 2**63 - 1 correctly.
14638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14639 since some C++ compilers masquerading as C compilers
14640 incorrectly reject 9223372036854775807. */
14641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14643 && LARGE_OFF_T % 2147483647 == 1)
14653 if ac_fn_c_try_compile
"$LINENO"; then :
14654 ac_cv_sys_file_offset_bits
=no
; break
14656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h. */
14659 #define _FILE_OFFSET_BITS 64
14660 #include <sys/types.h>
14661 /* Check that off_t can represent 2**63 - 1 correctly.
14662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14663 since some C++ compilers masquerading as C compilers
14664 incorrectly reject 9223372036854775807. */
14665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14667 && LARGE_OFF_T % 2147483647 == 1)
14677 if ac_fn_c_try_compile
"$LINENO"; then :
14678 ac_cv_sys_file_offset_bits
=64; break
14680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14681 ac_cv_sys_file_offset_bits
=unknown
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14686 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14687 case $ac_cv_sys_file_offset_bits in #(
14690 cat >>confdefs.h
<<_ACEOF
14691 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14696 if test $ac_cv_sys_file_offset_bits = unknown
; then
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14698 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14699 if ${ac_cv_sys_large_files+:} false
; then :
14700 $as_echo_n "(cached) " >&6
14703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14705 #include <sys/types.h>
14706 /* Check that off_t can represent 2**63 - 1 correctly.
14707 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14708 since some C++ compilers masquerading as C compilers
14709 incorrectly reject 9223372036854775807. */
14710 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14711 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14712 && LARGE_OFF_T % 2147483647 == 1)
14722 if ac_fn_c_try_compile
"$LINENO"; then :
14723 ac_cv_sys_large_files
=no
; break
14725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728 #define _LARGE_FILES 1
14729 #include <sys/types.h>
14730 /* Check that off_t can represent 2**63 - 1 correctly.
14731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14732 since some C++ compilers masquerading as C compilers
14733 incorrectly reject 9223372036854775807. */
14734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14736 && LARGE_OFF_T % 2147483647 == 1)
14746 if ac_fn_c_try_compile
"$LINENO"; then :
14747 ac_cv_sys_large_files
=1; break
14749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14750 ac_cv_sys_large_files
=unknown
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14755 $as_echo "$ac_cv_sys_large_files" >&6; }
14756 case $ac_cv_sys_large_files in #(
14759 cat >>confdefs.h
<<_ACEOF
14760 #define _LARGE_FILES $ac_cv_sys_large_files
14773 # The cast to long int works around a bug in the HP C Compiler
14774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14776 # This bug is HP SR number 8606223364.
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14778 $as_echo_n "checking size of off_t... " >&6; }
14779 if ${ac_cv_sizeof_off_t+:} false
; then :
14780 $as_echo_n "(cached) " >&6
14782 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
14785 if test "$ac_cv_type_off_t" = yes; then
14786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14788 as_fn_error
77 "cannot compute sizeof (off_t)
14789 See \`config.log' for more details" "$LINENO" 5; }
14791 ac_cv_sizeof_off_t
=0
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14797 $as_echo "$ac_cv_sizeof_off_t" >&6; }
14801 cat >>confdefs.h
<<_ACEOF
14802 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14807 # If we don't have largefile support, can't handle segsize >= 2GB.
14808 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
14809 as_fn_error $?
"Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
14812 # The cast to long int works around a bug in the HP C Compiler
14813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14815 # This bug is HP SR number 8606223364.
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
14817 $as_echo_n "checking size of bool... " >&6; }
14818 if ${ac_cv_sizeof_bool+:} false
; then :
14819 $as_echo_n "(cached) " >&6
14821 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
14822 #include <stdbool.h>
14827 if test "$ac_cv_type_bool" = yes; then
14828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14830 as_fn_error
77 "cannot compute sizeof (bool)
14831 See \`config.log' for more details" "$LINENO" 5; }
14833 ac_cv_sizeof_bool
=0
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
14839 $as_echo "$ac_cv_sizeof_bool" >&6; }
14843 cat >>confdefs.h
<<_ACEOF
14844 #define SIZEOF_BOOL $ac_cv_sizeof_bool
14851 ## Functions, global variables
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
14855 $as_echo_n "checking for int timezone... " >&6; }
14856 if ${pgac_cv_var_int_timezone+:} false
; then :
14857 $as_echo_n "(cached) " >&6
14859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14867 res = timezone / 60;
14869 res = _timezone / 60;
14875 if ac_fn_c_try_link
"$LINENO"; then :
14876 pgac_cv_var_int_timezone
=yes
14878 pgac_cv_var_int_timezone
=no
14880 rm -f core conftest.err conftest.
$ac_objext \
14881 conftest
$ac_exeext conftest.
$ac_ext
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
14884 $as_echo "$pgac_cv_var_int_timezone" >&6; }
14885 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
14887 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
14891 $as_echo_n "checking types of arguments for accept()... " >&6; }
14892 if ${ac_cv_func_accept_return+:} false
; then :
14893 $as_echo_n "(cached) " >&6
14895 if ${ac_cv_func_accept_arg1+:} false
; then :
14896 $as_echo_n "(cached) " >&6
14898 if ${ac_cv_func_accept_arg2+:} false
; then :
14899 $as_echo_n "(cached) " >&6
14901 if ${ac_cv_func_accept_arg3+:} false
; then :
14902 $as_echo_n "(cached) " >&6
14904 for ac_cv_func_accept_return
in 'int' 'SOCKET WSAAPI' 'unsigned int PASCAL'; do
14905 for ac_cv_func_accept_arg1
in 'int' 'SOCKET' 'unsigned int'; do
14906 for ac_cv_func_accept_arg2
in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
14907 for ac_cv_func_accept_arg3
in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
14908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14910 #include <sys/types.h>
14911 #include <sys/socket.h>
14912 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
14914 if ac_fn_c_try_compile
"$LINENO"; then :
14915 ac_not_found
=no
; break 4
14919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14924 if test "$ac_not_found" = yes; then
14925 as_fn_error $?
"could not determine argument types" "$LINENO" 5
14927 if test "$ac_cv_func_accept_arg3" = "void"; then
14928 ac_cv_func_accept_arg3
=int
14938 { $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
14939 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
14941 cat >>confdefs.h
<<_ACEOF
14942 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
14946 cat >>confdefs.h
<<_ACEOF
14947 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
14951 cat >>confdefs.h
<<_ACEOF
14952 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
14956 cat >>confdefs.h
<<_ACEOF
14957 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
14962 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
14963 if ${pgac_cv_func_gettimeofday_1arg+:} false
; then :
14964 $as_echo_n "(cached) " >&6
14966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968 #include <sys/time.h>
14972 struct timeval *tp;
14973 struct timezone *tzp;
14974 gettimeofday(tp,tzp);
14979 if ac_fn_c_try_compile
"$LINENO"; then :
14980 pgac_cv_func_gettimeofday_1arg
=no
14982 pgac_cv_func_gettimeofday_1arg
=yes
14984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
14987 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
14988 if test x
"$pgac_cv_func_gettimeofday_1arg" = xyes
; then
14990 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
14995 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
14996 if ${pgac_cv_func_wcstombs_l+:} false
; then :
14997 $as_echo_n "(cached) " >&6
14999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15001 #include <stdlib.h>
15002 #include <locale.h>
15013 if ac_fn_c_try_compile
"$LINENO"; then :
15014 pgac_cv_func_wcstombs_l
='yes'
15016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15018 #include <stdlib.h>
15019 #include <locale.h>
15020 #include <xlocale.h>
15031 if ac_fn_c_try_compile
"$LINENO"; then :
15032 pgac_cv_func_wcstombs_l
='yes (in xlocale.h)'
15034 pgac_cv_func_wcstombs_l
='no'
15036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
15041 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
15042 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
15044 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
15048 # Some versions of libedit contain strlcpy(), setproctitle(), and other
15049 # symbols that that library has no business exposing to the world. Pending
15050 # acquisition of a clue by those developers, ignore libedit (including its
15051 # possible alias of libreadline) while checking for everything else.
15052 LIBS_including_readline
="$LIBS"
15053 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
15055 for ac_func
in cbrt clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memset_s 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
15057 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15058 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15059 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15060 cat >>confdefs.h
<<_ACEOF
15061 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15068 # These typically are compiler builtins, for which AC_CHECK_FUNCS fails.
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
15070 $as_echo_n "checking for __builtin_bswap16... " >&6; }
15071 if ${pgac_cv__builtin_bswap16+:} false
; then :
15072 $as_echo_n "(cached) " >&6
15074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15078 call__builtin_bswap16(int x)
15080 return __builtin_bswap16(x);
15090 if ac_fn_c_try_link
"$LINENO"; then :
15091 pgac_cv__builtin_bswap16
=yes
15093 pgac_cv__builtin_bswap16
=no
15095 rm -f core conftest.err conftest.
$ac_objext \
15096 conftest
$ac_exeext conftest.
$ac_ext
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
15099 $as_echo "$pgac_cv__builtin_bswap16" >&6; }
15100 if test x
"${pgac_cv__builtin_bswap16}" = xyes
; then
15102 cat >>confdefs.h
<<_ACEOF
15103 #define HAVE__BUILTIN_BSWAP16 1
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
15108 $as_echo_n "checking for __builtin_bswap32... " >&6; }
15109 if ${pgac_cv__builtin_bswap32+:} false
; then :
15110 $as_echo_n "(cached) " >&6
15112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h. */
15116 call__builtin_bswap32(int x)
15118 return __builtin_bswap32(x);
15128 if ac_fn_c_try_link
"$LINENO"; then :
15129 pgac_cv__builtin_bswap32
=yes
15131 pgac_cv__builtin_bswap32
=no
15133 rm -f core conftest.err conftest.
$ac_objext \
15134 conftest
$ac_exeext conftest.
$ac_ext
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
15137 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
15138 if test x
"${pgac_cv__builtin_bswap32}" = xyes
; then
15140 cat >>confdefs.h
<<_ACEOF
15141 #define HAVE__BUILTIN_BSWAP32 1
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
15146 $as_echo_n "checking for __builtin_bswap64... " >&6; }
15147 if ${pgac_cv__builtin_bswap64+:} false
; then :
15148 $as_echo_n "(cached) " >&6
15150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15151 /* end confdefs.h. */
15154 call__builtin_bswap64(long int x)
15156 return __builtin_bswap64(x);
15166 if ac_fn_c_try_link
"$LINENO"; then :
15167 pgac_cv__builtin_bswap64
=yes
15169 pgac_cv__builtin_bswap64
=no
15171 rm -f core conftest.err conftest.
$ac_objext \
15172 conftest
$ac_exeext conftest.
$ac_ext
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
15175 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
15176 if test x
"${pgac_cv__builtin_bswap64}" = xyes
; then
15178 cat >>confdefs.h
<<_ACEOF
15179 #define HAVE__BUILTIN_BSWAP64 1
15183 # We assume that we needn't test all widths of these explicitly:
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
15185 $as_echo_n "checking for __builtin_clz... " >&6; }
15186 if ${pgac_cv__builtin_clz+:} false
; then :
15187 $as_echo_n "(cached) " >&6
15189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15193 call__builtin_clz(unsigned int x)
15195 return __builtin_clz(x);
15205 if ac_fn_c_try_link
"$LINENO"; then :
15206 pgac_cv__builtin_clz
=yes
15208 pgac_cv__builtin_clz
=no
15210 rm -f core conftest.err conftest.
$ac_objext \
15211 conftest
$ac_exeext conftest.
$ac_ext
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_clz" >&5
15214 $as_echo "$pgac_cv__builtin_clz" >&6; }
15215 if test x
"${pgac_cv__builtin_clz}" = xyes
; then
15217 cat >>confdefs.h
<<_ACEOF
15218 #define HAVE__BUILTIN_CLZ 1
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
15223 $as_echo_n "checking for __builtin_ctz... " >&6; }
15224 if ${pgac_cv__builtin_ctz+:} false
; then :
15225 $as_echo_n "(cached) " >&6
15227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15231 call__builtin_ctz(unsigned int x)
15233 return __builtin_ctz(x);
15243 if ac_fn_c_try_link
"$LINENO"; then :
15244 pgac_cv__builtin_ctz
=yes
15246 pgac_cv__builtin_ctz
=no
15248 rm -f core conftest.err conftest.
$ac_objext \
15249 conftest
$ac_exeext conftest.
$ac_ext
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_ctz" >&5
15252 $as_echo "$pgac_cv__builtin_ctz" >&6; }
15253 if test x
"${pgac_cv__builtin_ctz}" = xyes
; then
15255 cat >>confdefs.h
<<_ACEOF
15256 #define HAVE__BUILTIN_CTZ 1
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5
15261 $as_echo_n "checking for __builtin_popcount... " >&6; }
15262 if ${pgac_cv__builtin_popcount+:} false
; then :
15263 $as_echo_n "(cached) " >&6
15265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15269 call__builtin_popcount(unsigned int x)
15271 return __builtin_popcount(x);
15281 if ac_fn_c_try_link
"$LINENO"; then :
15282 pgac_cv__builtin_popcount
=yes
15284 pgac_cv__builtin_popcount
=no
15286 rm -f core conftest.err conftest.
$ac_objext \
15287 conftest
$ac_exeext conftest.
$ac_ext
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_popcount" >&5
15290 $as_echo "$pgac_cv__builtin_popcount" >&6; }
15291 if test x
"${pgac_cv__builtin_popcount}" = xyes
; then
15293 cat >>confdefs.h
<<_ACEOF
15294 #define HAVE__BUILTIN_POPCOUNT 1
15299 ac_fn_c_check_func
"$LINENO" "fseeko" "ac_cv_func_fseeko"
15300 if test "x$ac_cv_func_fseeko" = xyes
; then :
15301 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15304 case " $LIBOBJS " in
15305 *" fseeko.$ac_objext "* ) ;;
15306 *) LIBOBJS
="$LIBOBJS fseeko.$ac_objext"
15314 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
15315 # Mingw uses macros to access Win32 API calls
15318 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15320 ac_cv_func_fseeko
=yes;;
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15323 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15324 if ${ac_cv_sys_largefile_source+:} false
; then :
15325 $as_echo_n "(cached) " >&6
15328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15330 #include <sys/types.h> /* for off_t */
15335 int (*fp) (FILE *, off_t, int) = fseeko;
15336 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15341 if ac_fn_c_try_link
"$LINENO"; then :
15342 ac_cv_sys_largefile_source
=no
; break
15344 rm -f core conftest.err conftest.
$ac_objext \
15345 conftest
$ac_exeext conftest.
$ac_ext
15346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15348 #define _LARGEFILE_SOURCE 1
15349 #include <sys/types.h> /* for off_t */
15354 int (*fp) (FILE *, off_t, int) = fseeko;
15355 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15360 if ac_fn_c_try_link
"$LINENO"; then :
15361 ac_cv_sys_largefile_source
=1; break
15363 rm -f core conftest.err conftest.
$ac_objext \
15364 conftest
$ac_exeext conftest.
$ac_ext
15365 ac_cv_sys_largefile_source
=unknown
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15370 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15371 case $ac_cv_sys_largefile_source in #(
15374 cat >>confdefs.h
<<_ACEOF
15375 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15381 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15382 # in glibc 2.1.3, but that breaks too many other things.
15383 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15384 if test $ac_cv_sys_largefile_source != unknown
; then
15386 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15392 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
15393 # by calling it, 2009-04-02
15394 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
15395 # The Clang compiler raises a warning for an undeclared identifier that matches
15396 # a compiler builtin function. All extant Clang versions are affected, as of
15397 # Clang 3.6.0. Test a builtin known to every version. This problem affects the
15398 # C and Objective C languages, but Clang does report an error under C++ and
15401 # Passing -fno-builtin to the compiler would suppress this problem. That
15402 # strategy would have the advantage of being insensitive to stray warnings, but
15403 # it would make tests less realistic.
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
15405 $as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; }
15406 if ${ac_cv_c_decl_report+:} false
; then :
15407 $as_echo_n "(cached) " >&6
15409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15420 if ac_fn_c_try_compile
"$LINENO"; then :
15421 if test -s conftest.err
; then :
15422 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
15423 # valid AC_CHECK_DECL input. No library function is consistently available
15424 # on freestanding implementations, so test against a dummy declaration.
15425 # Include always-available headers on the off chance that they somehow
15427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15430 #include <limits.h>
15431 #include <stdarg.h>
15432 #include <stddef.h>
15433 extern void ac_decl (int, char *);
15438 (void) ac_decl ((int) 0, (char *) 0);
15448 if ac_fn_c_try_compile
"$LINENO"; then :
15449 if test -s conftest.err
; then :
15450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15452 as_fn_error $?
"cannot detect from compiler exit status or warnings
15453 See \`config.log' for more details" "$LINENO" 5; }
15455 ac_cv_c_decl_report
=warning
15458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15460 as_fn_error $?
"cannot compile a simple declaration test
15461 See \`config.log' for more details" "$LINENO" 5; }
15463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15467 as_fn_error $?
"compiler does not report undeclared identifiers
15468 See \`config.log' for more details" "$LINENO" 5; }
15471 ac_cv_c_decl_report
=error
15473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
15476 $as_echo "$ac_cv_c_decl_report" >&6; }
15478 case $ac_cv_c_decl_report in
15479 warning
) ac_c_decl_warn_flag
=yes ;;
15480 *) ac_c_decl_warn_flag
= ;;
15483 if test "$PORTNAME" != "solaris"; then :
15485 for ac_func
in posix_fadvise
15487 ac_fn_c_check_func
"$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
15488 if test "x$ac_cv_func_posix_fadvise" = xyes
; then :
15489 cat >>confdefs.h
<<_ACEOF
15490 #define HAVE_POSIX_FADVISE 1
15496 ac_fn_c_check_decl
"$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
15498 if test "x$ac_cv_have_decl_posix_fadvise" = xyes
; then :
15504 cat >>confdefs.h
<<_ACEOF
15505 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
15511 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
15513 if test "x$ac_cv_have_decl_fdatasync" = xyes
; then :
15519 cat >>confdefs.h
<<_ACEOF
15520 #define HAVE_DECL_FDATASYNC $ac_have_decl
15523 ac_fn_c_check_decl
"$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
15524 if test "x$ac_cv_have_decl_strlcat" = xyes
; then :
15530 cat >>confdefs.h
<<_ACEOF
15531 #define HAVE_DECL_STRLCAT $ac_have_decl
15533 ac_fn_c_check_decl
"$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
15534 if test "x$ac_cv_have_decl_strlcpy" = xyes
; then :
15540 cat >>confdefs.h
<<_ACEOF
15541 #define HAVE_DECL_STRLCPY $ac_have_decl
15543 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
15544 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
15550 cat >>confdefs.h
<<_ACEOF
15551 #define HAVE_DECL_STRNLEN $ac_have_decl
15554 # This is probably only present on macOS, but may as well check always
15555 ac_fn_c_check_decl
"$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
15557 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes
; then :
15563 cat >>confdefs.h
<<_ACEOF
15564 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
15568 ac_fn_c_check_decl
"$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
15570 if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes
; then :
15576 cat >>confdefs.h
<<_ACEOF
15577 #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl
15579 ac_fn_c_check_decl
"$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
15581 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes
; then :
15587 cat >>confdefs.h
<<_ACEOF
15588 #define HAVE_DECL_RTLD_NOW $ac_have_decl
15592 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
15593 #include <netinet/in.h>
15595 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
15597 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
15603 $as_echo_n "checking for PS_STRINGS... " >&6; }
15604 if ${pgac_cv_var_PS_STRINGS+:} false
; then :
15605 $as_echo_n "(cached) " >&6
15607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15608 /* end confdefs.h. */
15609 #include <machine/vmparam.h>
15610 #include <sys/exec.h>
15615 PS_STRINGS->ps_nargvstr = 1;
15616 PS_STRINGS->ps_argvstr = "foo";
15621 if ac_fn_c_try_link
"$LINENO"; then :
15622 pgac_cv_var_PS_STRINGS
=yes
15624 pgac_cv_var_PS_STRINGS
=no
15626 rm -f core conftest.err conftest.
$ac_objext \
15627 conftest
$ac_exeext conftest.
$ac_ext
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
15630 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
15631 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
15633 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
15639 $as_echo_n "checking for isinf... " >&6; }
15640 if ${ac_cv_func_isinf+:} false
; then :
15641 $as_echo_n "(cached) " >&6
15643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15647 double glob_double;
15652 return isinf(glob_double) ? 0 : 1;
15657 if ac_fn_c_try_link
"$LINENO"; then :
15658 ac_cv_func_isinf
=yes
15660 ac_cv_func_isinf
=no
15662 rm -f core conftest.err conftest.
$ac_objext \
15663 conftest
$ac_exeext conftest.
$ac_ext
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
15666 $as_echo "$ac_cv_func_isinf" >&6; }
15668 if test $ac_cv_func_isinf = yes ; then
15670 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
15673 case " $LIBOBJS " in
15674 *" isinf.$ac_objext "* ) ;;
15675 *) LIBOBJS
="$LIBOBJS isinf.$ac_objext"
15679 # Look for a way to implement a substitute for isinf()
15680 for ac_func
in fpclass fp_class fp_class_d class
15682 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15683 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15684 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15685 cat >>confdefs.h
<<_ACEOF
15686 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15694 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
15695 if test "x$ac_cv_func_dlopen" = xyes
; then :
15696 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
15699 case " $LIBOBJS " in
15700 *" dlopen.$ac_objext "* ) ;;
15701 *) LIBOBJS
="$LIBOBJS dlopen.$ac_objext"
15707 ac_fn_c_check_func
"$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
15708 if test "x$ac_cv_func_explicit_bzero" = xyes
; then :
15709 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
15712 case " $LIBOBJS " in
15713 *" explicit_bzero.$ac_objext "* ) ;;
15714 *) LIBOBJS
="$LIBOBJS explicit_bzero.$ac_objext"
15720 ac_fn_c_check_func
"$LINENO" "fls" "ac_cv_func_fls"
15721 if test "x$ac_cv_func_fls" = xyes
; then :
15722 $as_echo "#define HAVE_FLS 1" >>confdefs.h
15725 case " $LIBOBJS " in
15726 *" fls.$ac_objext "* ) ;;
15727 *) LIBOBJS
="$LIBOBJS fls.$ac_objext"
15733 ac_fn_c_check_func
"$LINENO" "getopt" "ac_cv_func_getopt"
15734 if test "x$ac_cv_func_getopt" = xyes
; then :
15735 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
15738 case " $LIBOBJS " in
15739 *" getopt.$ac_objext "* ) ;;
15740 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
15746 ac_fn_c_check_func
"$LINENO" "getrusage" "ac_cv_func_getrusage"
15747 if test "x$ac_cv_func_getrusage" = xyes
; then :
15748 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
15751 case " $LIBOBJS " in
15752 *" getrusage.$ac_objext "* ) ;;
15753 *) LIBOBJS
="$LIBOBJS getrusage.$ac_objext"
15759 ac_fn_c_check_func
"$LINENO" "inet_aton" "ac_cv_func_inet_aton"
15760 if test "x$ac_cv_func_inet_aton" = xyes
; then :
15761 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
15764 case " $LIBOBJS " in
15765 *" inet_aton.$ac_objext "* ) ;;
15766 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
15772 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
15773 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
15774 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
15777 case " $LIBOBJS " in
15778 *" mkdtemp.$ac_objext "* ) ;;
15779 *) LIBOBJS
="$LIBOBJS mkdtemp.$ac_objext"
15785 ac_fn_c_check_func
"$LINENO" "pread" "ac_cv_func_pread"
15786 if test "x$ac_cv_func_pread" = xyes
; then :
15787 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
15790 case " $LIBOBJS " in
15791 *" pread.$ac_objext "* ) ;;
15792 *) LIBOBJS
="$LIBOBJS pread.$ac_objext"
15798 ac_fn_c_check_func
"$LINENO" "pwrite" "ac_cv_func_pwrite"
15799 if test "x$ac_cv_func_pwrite" = xyes
; then :
15800 $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
15803 case " $LIBOBJS " in
15804 *" pwrite.$ac_objext "* ) ;;
15805 *) LIBOBJS
="$LIBOBJS pwrite.$ac_objext"
15811 ac_fn_c_check_func
"$LINENO" "random" "ac_cv_func_random"
15812 if test "x$ac_cv_func_random" = xyes
; then :
15813 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
15816 case " $LIBOBJS " in
15817 *" random.$ac_objext "* ) ;;
15818 *) LIBOBJS
="$LIBOBJS random.$ac_objext"
15824 ac_fn_c_check_func
"$LINENO" "rint" "ac_cv_func_rint"
15825 if test "x$ac_cv_func_rint" = xyes
; then :
15826 $as_echo "#define HAVE_RINT 1" >>confdefs.h
15829 case " $LIBOBJS " in
15830 *" rint.$ac_objext "* ) ;;
15831 *) LIBOBJS
="$LIBOBJS rint.$ac_objext"
15837 ac_fn_c_check_func
"$LINENO" "srandom" "ac_cv_func_srandom"
15838 if test "x$ac_cv_func_srandom" = xyes
; then :
15839 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
15842 case " $LIBOBJS " in
15843 *" srandom.$ac_objext "* ) ;;
15844 *) LIBOBJS
="$LIBOBJS srandom.$ac_objext"
15850 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
15851 if test "x$ac_cv_func_strlcat" = xyes
; then :
15852 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
15855 case " $LIBOBJS " in
15856 *" strlcat.$ac_objext "* ) ;;
15857 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
15863 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15864 if test "x$ac_cv_func_strlcpy" = xyes
; then :
15865 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
15868 case " $LIBOBJS " in
15869 *" strlcpy.$ac_objext "* ) ;;
15870 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
15876 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
15877 if test "x$ac_cv_func_strnlen" = xyes
; then :
15878 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
15881 case " $LIBOBJS " in
15882 *" strnlen.$ac_objext "* ) ;;
15883 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
15889 ac_fn_c_check_func
"$LINENO" "strtof" "ac_cv_func_strtof"
15890 if test "x$ac_cv_func_strtof" = xyes
; then :
15891 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
15894 case " $LIBOBJS " in
15895 *" strtof.$ac_objext "* ) ;;
15896 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
15905 # Cygwin and (apparently, based on test results) Mingw both
15906 # have a broken strtof(), so substitute the same replacement
15907 # code we use with VS2013. That's not a perfect fix, since
15908 # (unlike with VS2013) it doesn't avoid double-rounding, but
15909 # we have no better options. To get that, though, we have to
15910 # force the file to be compiled despite HAVE_STRTOF.
15912 case " $LIBOBJS " in
15913 *" strtof.$ac_objext "* ) ;;
15914 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: On $host_os we will use our strtof wrapper." >&5
15919 $as_echo "$as_me: On $host_os we will use our strtof wrapper." >&6;}
15925 # Windows uses a specialised env handler
15926 # and doesn't need a replacement getpeereid because it doesn't use
15930 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
15933 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
15935 ac_cv_func_unsetenv
=yes
15936 ac_cv_func_getpeereid
=yes;;
15938 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15939 if test "x$ac_cv_func_unsetenv" = xyes
; then :
15940 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
15943 case " $LIBOBJS " in
15944 *" unsetenv.$ac_objext "* ) ;;
15945 *) LIBOBJS
="$LIBOBJS unsetenv.$ac_objext"
15951 ac_fn_c_check_func
"$LINENO" "getpeereid" "ac_cv_func_getpeereid"
15952 if test "x$ac_cv_func_getpeereid" = xyes
; then :
15953 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
15956 case " $LIBOBJS " in
15957 *" getpeereid.$ac_objext "* ) ;;
15958 *) LIBOBJS
="$LIBOBJS getpeereid.$ac_objext"
15968 # System's version of getaddrinfo(), if any, may be used only if we found
15969 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
15970 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
15971 if test x
"$ac_cv_type_struct_addrinfo" = xyes
&& \
15972 test "$PORTNAME" != "win32"; then
15973 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15974 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
15975 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
15978 case " $LIBOBJS " in
15979 *" getaddrinfo.$ac_objext "* ) ;;
15980 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext"
15988 case " $LIBOBJS " in
15989 *" getaddrinfo.$ac_objext "* ) ;;
15990 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext"
15996 # Similarly, use system's getopt_long() only if system provides struct option.
15997 if test x
"$ac_cv_type_struct_option" = xyes
; then
15998 ac_fn_c_check_func
"$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15999 if test "x$ac_cv_func_getopt_long" = xyes
; then :
16000 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
16003 case " $LIBOBJS " in
16004 *" getopt_long.$ac_objext "* ) ;;
16005 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16013 case " $LIBOBJS " in
16014 *" getopt_long.$ac_objext "* ) ;;
16015 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16021 # On OpenBSD and Solaris, getopt() doesn't do what we want for long options
16022 # (i.e., allow '-' as a flag character), so use our version on those platforms.
16023 if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then
16024 case " $LIBOBJS " in
16025 *" getopt.$ac_objext "* ) ;;
16026 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16032 # mingw has adopted a GNU-centric interpretation of optind/optreset,
16033 # so always use our version on Windows.
16034 if test "$PORTNAME" = "win32"; then
16035 case " $LIBOBJS " in
16036 *" getopt.$ac_objext "* ) ;;
16037 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16041 case " $LIBOBJS " in
16042 *" getopt_long.$ac_objext "* ) ;;
16043 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16049 # Win32 (really MinGW) support
16050 if test "$PORTNAME" = "win32"; then
16051 for ac_func
in _configthreadlocale
16053 ac_fn_c_check_func
"$LINENO" "_configthreadlocale" "ac_cv_func__configthreadlocale"
16054 if test "x$ac_cv_func__configthreadlocale" = xyes
; then :
16055 cat >>confdefs.h
<<_ACEOF
16056 #define HAVE__CONFIGTHREADLOCALE 1
16062 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16063 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
16064 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
16067 case " $LIBOBJS " in
16068 *" gettimeofday.$ac_objext "* ) ;;
16069 *) LIBOBJS
="$LIBOBJS gettimeofday.$ac_objext"
16076 case " $LIBOBJS " in
16077 *" dirmod.$ac_objext "* ) ;;
16078 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16082 case " $LIBOBJS " in
16083 *" kill.$ac_objext "* ) ;;
16084 *) LIBOBJS
="$LIBOBJS kill.$ac_objext"
16088 case " $LIBOBJS " in
16089 *" open.$ac_objext "* ) ;;
16090 *) LIBOBJS
="$LIBOBJS open.$ac_objext"
16094 case " $LIBOBJS " in
16095 *" system.$ac_objext "* ) ;;
16096 *) LIBOBJS
="$LIBOBJS system.$ac_objext"
16100 case " $LIBOBJS " in
16101 *" win32env.$ac_objext "* ) ;;
16102 *) LIBOBJS
="$LIBOBJS win32env.$ac_objext"
16106 case " $LIBOBJS " in
16107 *" win32error.$ac_objext "* ) ;;
16108 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext"
16112 case " $LIBOBJS " in
16113 *" win32security.$ac_objext "* ) ;;
16114 *) LIBOBJS
="$LIBOBJS win32security.$ac_objext"
16118 case " $LIBOBJS " in
16119 *" win32setlocale.$ac_objext "* ) ;;
16120 *) LIBOBJS
="$LIBOBJS win32setlocale.$ac_objext"
16125 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
16127 ac_fn_c_check_type
"$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
16128 #define WIN32_LEAN_AND_MEAN
16129 #include <windows.h>
16130 #include <string.h>
16131 #include <dbghelp.h>
16133 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes
; then :
16135 cat >>confdefs.h
<<_ACEOF
16136 #define HAVE_MINIDUMP_TYPE 1
16139 pgac_minidump_type
=yes
16141 pgac_minidump_type
=no
16145 if test x
"$pgac_minidump_type" = x
"yes" ; then
16146 have_win32_dbghelp
=yes
16149 have_win32_dbghelp
=no
16153 # Cygwin needs only a bit of that
16154 if test "$PORTNAME" = "cygwin"; then
16155 case " $LIBOBJS " in
16156 *" dirmod.$ac_objext "* ) ;;
16157 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16163 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
16164 if test "x$ac_cv_func_syslog" = xyes
; then :
16165 ac_fn_c_check_header_mongrel
"$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
16166 if test "x$ac_cv_header_syslog_h" = xyes
; then :
16168 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
16177 $as_echo_n "checking for opterr... " >&6; }
16178 if ${pgac_cv_var_int_opterr+:} false
; then :
16179 $as_echo_n "(cached) " >&6
16181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16182 /* end confdefs.h. */
16183 #include <unistd.h>
16187 extern int opterr; opterr = 1;
16192 if ac_fn_c_try_link
"$LINENO"; then :
16193 pgac_cv_var_int_opterr
=yes
16195 pgac_cv_var_int_opterr
=no
16197 rm -f core conftest.err conftest.
$ac_objext \
16198 conftest
$ac_exeext conftest.
$ac_ext
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
16201 $as_echo "$pgac_cv_var_int_opterr" >&6; }
16202 if test x
"$pgac_cv_var_int_opterr" = x
"yes"; then
16204 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
16209 $as_echo_n "checking for optreset... " >&6; }
16210 if ${pgac_cv_var_int_optreset+:} false
; then :
16211 $as_echo_n "(cached) " >&6
16213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16215 #include <unistd.h>
16219 extern int optreset; optreset = 1;
16224 if ac_fn_c_try_link
"$LINENO"; then :
16225 pgac_cv_var_int_optreset
=yes
16227 pgac_cv_var_int_optreset
=no
16229 rm -f core conftest.err conftest.
$ac_objext \
16230 conftest
$ac_exeext conftest.
$ac_ext
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
16233 $as_echo "$pgac_cv_var_int_optreset" >&6; }
16234 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
16236 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
16240 for ac_func
in strtoll __strtoll strtoq
16242 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16243 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16244 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16245 cat >>confdefs.h
<<_ACEOF
16246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16252 for ac_func
in strtoull __strtoull strtouq
16254 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16255 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16256 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16257 cat >>confdefs.h
<<_ACEOF
16258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16264 # strto[u]ll may exist but not be declared
16265 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
16266 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
16272 cat >>confdefs.h
<<_ACEOF
16273 #define HAVE_DECL_STRTOLL $ac_have_decl
16275 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
16276 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
16282 cat >>confdefs.h
<<_ACEOF
16283 #define HAVE_DECL_STRTOULL $ac_have_decl
16287 if test "$with_icu" = yes; then
16288 ac_save_CPPFLAGS
=$CPPFLAGS
16289 CPPFLAGS
="$ICU_CFLAGS $CPPFLAGS"
16291 # Verify we have ICU's header files
16292 ac_fn_c_check_header_mongrel
"$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
16293 if test "x$ac_cv_header_unicode_ucol_h" = xyes
; then :
16296 as_fn_error $?
"header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
16301 CPPFLAGS
=$ac_save_CPPFLAGS
16304 if test "$with_llvm" = yes; then
16306 # Check which functionality is present
16307 SAVE_CPPFLAGS
="$CPPFLAGS"
16308 CPPFLAGS
="$CPPFLAGS $LLVM_CPPFLAGS"
16309 ac_fn_c_check_decl
"$LINENO" "LLVMOrcGetSymbolAddressIn" "ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" "#include <llvm-c/OrcBindings.h>
16311 if test "x$ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" = xyes
; then :
16317 cat >>confdefs.h
<<_ACEOF
16318 #define HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN $ac_have_decl
16321 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUName" "ac_cv_have_decl_LLVMGetHostCPUName" "#include <llvm-c/TargetMachine.h>
16323 if test "x$ac_cv_have_decl_LLVMGetHostCPUName" = xyes
; then :
16329 cat >>confdefs.h
<<_ACEOF
16330 #define HAVE_DECL_LLVMGETHOSTCPUNAME $ac_have_decl
16332 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUFeatures" "ac_cv_have_decl_LLVMGetHostCPUFeatures" "#include <llvm-c/TargetMachine.h>
16334 if test "x$ac_cv_have_decl_LLVMGetHostCPUFeatures" = xyes
; then :
16340 cat >>confdefs.h
<<_ACEOF
16341 #define HAVE_DECL_LLVMGETHOSTCPUFEATURES $ac_have_decl
16344 ac_fn_c_check_decl
"$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h>
16346 if test "x$ac_cv_have_decl_LLVMCreateGDBRegistrationListener" = xyes
; then :
16352 cat >>confdefs.h
<<_ACEOF
16353 #define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER $ac_have_decl
16355 ac_fn_c_check_decl
"$LINENO" "LLVMCreatePerfJITEventListener" "ac_cv_have_decl_LLVMCreatePerfJITEventListener" "#include <llvm-c/ExecutionEngine.h>
16357 if test "x$ac_cv_have_decl_LLVMCreatePerfJITEventListener" = xyes
; then :
16363 cat >>confdefs.h
<<_ACEOF
16364 #define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER $ac_have_decl
16367 CPPFLAGS
="$SAVE_CPPFLAGS"
16371 # Lastly, restore full LIBS list and check for readline/libedit symbols
16372 LIBS
="$LIBS_including_readline"
16374 if test "$with_readline" = yes; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
16376 $as_echo_n "checking for rl_completion_append_character... " >&6; }
16377 if ${pgac_cv_var_rl_completion_append_character+:} false
; then :
16378 $as_echo_n "(cached) " >&6
16380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16381 /* end confdefs.h. */
16383 #ifdef HAVE_READLINE_READLINE_H
16384 # include <readline/readline.h>
16385 #elif defined(HAVE_READLINE_H)
16386 # include <readline.h>
16392 rl_completion_append_character = 'x';
16397 if ac_fn_c_try_link
"$LINENO"; then :
16398 pgac_cv_var_rl_completion_append_character
=yes
16400 pgac_cv_var_rl_completion_append_character
=no
16402 rm -f core conftest.err conftest.
$ac_objext \
16403 conftest
$ac_exeext conftest.
$ac_ext
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
16406 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
16407 if test x
"$pgac_cv_var_rl_completion_append_character" = x
"yes"; then
16409 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
16412 for ac_func
in rl_completion_matches rl_filename_completion_function rl_reset_screen_size
16414 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16415 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16416 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16417 cat >>confdefs.h
<<_ACEOF
16418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16424 for ac_func
in append_history history_truncate_file
16426 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16427 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16428 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16429 cat >>confdefs.h
<<_ACEOF
16430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16439 # This test makes sure that run tests work at all. Sometimes a shared
16440 # library is found by the linker, but the runtime linker can't find it.
16441 # This check should come after all modifications of compiler or linker
16442 # variables, and before any other run tests.
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
16444 $as_echo_n "checking test program... " >&6; }
16445 if test "$cross_compiling" = yes; then :
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
16447 $as_echo "cross-compiling" >&6; }
16449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16450 /* end confdefs.h. */
16451 int main() { return 0; }
16453 if ac_fn_c_try_run
"$LINENO"; then :
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16455 $as_echo "ok" >&6; }
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16458 $as_echo "failed" >&6; }
16460 Could not execute a simple test program. This may be a problem
16461 related to locating shared libraries. Check the file 'config.log'
16462 for the exact reason." "$LINENO" 5
16464 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16465 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16469 # --------------------
16470 # Run tests below here
16471 # --------------------
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
16475 $as_echo_n "checking whether long int is 64 bits... " >&6; }
16476 if ${pgac_cv_type_long_int_64+:} false
; then :
16477 $as_echo_n "(cached) " >&6
16479 if test "$cross_compiling" = yes; then :
16480 # If cross-compiling, check the size reported by the compiler and
16481 # trust that the arithmetic works.
16482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16488 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
16489 test_array [0] = 0;
16490 return test_array [0];
16496 if ac_fn_c_try_compile
"$LINENO"; then :
16497 pgac_cv_type_long_int_64
=yes
16499 pgac_cv_type_long_int_64
=no
16501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16504 /* end confdefs.h. */
16505 typedef long int ac_int64;
16508 * These are globals to discourage the compiler from folding all the
16509 * arithmetic tests down to compile-time constants.
16511 ac_int64 a = 20000001;
16512 ac_int64 b = 40000005;
16514 int does_int64_work()
16518 if (sizeof(ac_int64) != 8)
16519 return 0; /* definitely not the right size */
16521 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16531 return (! does_int64_work());
16534 if ac_fn_c_try_run
"$LINENO"; then :
16535 pgac_cv_type_long_int_64
=yes
16537 pgac_cv_type_long_int_64
=no
16539 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16540 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
16545 $as_echo "$pgac_cv_type_long_int_64" >&6; }
16547 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
16548 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
16550 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
16555 if test x
"$HAVE_LONG_INT_64" = x
"yes" ; then
16556 pg_int64_type
="long int"
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
16559 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
16560 if ${pgac_cv_type_long_long_int_64+:} false
; then :
16561 $as_echo_n "(cached) " >&6
16563 if test "$cross_compiling" = yes; then :
16564 # If cross-compiling, check the size reported by the compiler and
16565 # trust that the arithmetic works.
16566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h. */
16572 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
16573 test_array [0] = 0;
16574 return test_array [0];
16580 if ac_fn_c_try_compile
"$LINENO"; then :
16581 pgac_cv_type_long_long_int_64
=yes
16583 pgac_cv_type_long_long_int_64
=no
16585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16589 typedef long long int ac_int64;
16592 * These are globals to discourage the compiler from folding all the
16593 * arithmetic tests down to compile-time constants.
16595 ac_int64 a = 20000001;
16596 ac_int64 b = 40000005;
16598 int does_int64_work()
16602 if (sizeof(ac_int64) != 8)
16603 return 0; /* definitely not the right size */
16605 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16615 return (! does_int64_work());
16618 if ac_fn_c_try_run
"$LINENO"; then :
16619 pgac_cv_type_long_long_int_64
=yes
16621 pgac_cv_type_long_long_int_64
=no
16623 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16624 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
16629 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
16631 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
16632 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
16634 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
16638 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
16639 pg_int64_type
="long long int"
16641 as_fn_error $?
"Cannot find a working 64-bit integer type." "$LINENO" 5
16646 cat >>confdefs.h
<<_ACEOF
16647 #define PG_INT64_TYPE $pg_int64_type
16651 # Select the printf length modifier that goes with that, too.
16652 if test x
"$pg_int64_type" = x
"long long int" ; then
16653 INT64_MODIFIER
='"ll"'
16655 INT64_MODIFIER
='"l"'
16659 cat >>confdefs.h
<<_ACEOF
16660 #define INT64_MODIFIER $INT64_MODIFIER
16664 # has to be down here, rather than with the other builtins, because
16665 # the test uses PG_INT64_TYPE.
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
16667 $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
16668 if ${pgac_cv__builtin_op_overflow+:} false
; then :
16669 $as_echo_n "(cached) " >&6
16671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16672 /* end confdefs.h. */
16674 PG_INT64_TYPE a = 1;
16675 PG_INT64_TYPE b = 1;
16676 PG_INT64_TYPE result;
16682 oflo = __builtin_mul_overflow(a, b, &result);
16687 if ac_fn_c_try_link
"$LINENO"; then :
16688 pgac_cv__builtin_op_overflow
=yes
16690 pgac_cv__builtin_op_overflow
=no
16692 rm -f core conftest.err conftest.
$ac_objext \
16693 conftest
$ac_exeext conftest.
$ac_ext
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
16696 $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
16697 if test x
"$pgac_cv__builtin_op_overflow" = xyes
; then
16699 $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
16703 # Check size of void *, size_t (enables tweaks for > 32bit address space)
16704 # The cast to long int works around a bug in the HP C Compiler
16705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16707 # This bug is HP SR number 8606223364.
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16709 $as_echo_n "checking size of void *... " >&6; }
16710 if ${ac_cv_sizeof_void_p+:} false
; then :
16711 $as_echo_n "(cached) " >&6
16713 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16716 if test "$ac_cv_type_void_p" = yes; then
16717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16719 as_fn_error
77 "cannot compute sizeof (void *)
16720 See \`config.log' for more details" "$LINENO" 5; }
16722 ac_cv_sizeof_void_p
=0
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16728 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16732 cat >>confdefs.h
<<_ACEOF
16733 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16737 # The cast to long int works around a bug in the HP C Compiler
16738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16740 # This bug is HP SR number 8606223364.
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16742 $as_echo_n "checking size of size_t... " >&6; }
16743 if ${ac_cv_sizeof_size_t+:} false
; then :
16744 $as_echo_n "(cached) " >&6
16746 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
16749 if test "$ac_cv_type_size_t" = yes; then
16750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16752 as_fn_error
77 "cannot compute sizeof (size_t)
16753 See \`config.log' for more details" "$LINENO" 5; }
16755 ac_cv_sizeof_size_t
=0
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16761 $as_echo "$ac_cv_sizeof_size_t" >&6; }
16765 cat >>confdefs.h
<<_ACEOF
16766 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16770 # The cast to long int works around a bug in the HP C Compiler
16771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16773 # This bug is HP SR number 8606223364.
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16775 $as_echo_n "checking size of long... " >&6; }
16776 if ${ac_cv_sizeof_long+:} false
; then :
16777 $as_echo_n "(cached) " >&6
16779 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16782 if test "$ac_cv_type_long" = yes; then
16783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16785 as_fn_error
77 "cannot compute sizeof (long)
16786 See \`config.log' for more details" "$LINENO" 5; }
16788 ac_cv_sizeof_long
=0
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16794 $as_echo "$ac_cv_sizeof_long" >&6; }
16798 cat >>confdefs.h
<<_ACEOF
16799 #define SIZEOF_LONG $ac_cv_sizeof_long
16804 # Decide whether float4 is passed by value: user-selectable, enabled by default
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
16806 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
16809 # Check whether --enable-float4-byval was given.
16810 if test "${enable_float4_byval+set}" = set; then :
16811 enableval
=$enable_float4_byval;
16815 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
16817 float4passbyval
=true
16820 float4passbyval
=false
16823 as_fn_error $?
"no argument expected for --enable-float4-byval option" "$LINENO" 5
16828 enable_float4_byval
=yes
16830 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
16832 float4passbyval
=true
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
16837 $as_echo "$enable_float4_byval" >&6; }
16839 cat >>confdefs.h
<<_ACEOF
16840 #define FLOAT4PASSBYVAL $float4passbyval
16844 # Decide whether float8 is passed by value.
16845 # Note: this setting also controls int8 and related types such as timestamp.
16846 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
16847 # If not, trying to select it is an error.
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
16849 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
16850 if test $ac_cv_sizeof_void_p -ge 8 ; then
16853 # Check whether --enable-float8-byval was given.
16854 if test "${enable_float8_byval+set}" = set; then :
16855 enableval
=$enable_float8_byval;
16864 as_fn_error $?
"no argument expected for --enable-float8-byval option" "$LINENO" 5
16869 enable_float8_byval
=yes
16877 # Check whether --enable-float8-byval was given.
16878 if test "${enable_float8_byval+set}" = set; then :
16879 enableval
=$enable_float8_byval;
16888 as_fn_error $?
"no argument expected for --enable-float8-byval option" "$LINENO" 5
16893 enable_float8_byval
=no
16898 if test "$enable_float8_byval" = yes ; then
16899 as_fn_error $?
"--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
16902 if test "$enable_float8_byval" = yes ; then
16904 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
16906 float8passbyval
=true
16908 float8passbyval
=false
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
16911 $as_echo "$enable_float8_byval" >&6; }
16913 cat >>confdefs.h
<<_ACEOF
16914 #define FLOAT8PASSBYVAL $float8passbyval
16918 # Determine memory alignment requirements for the basic C data types.
16920 # The cast to long int works around a bug in the HP C Compiler,
16921 # see AC_CHECK_SIZEOF for more information.
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
16923 $as_echo_n "checking alignment of short... " >&6; }
16924 if ${ac_cv_alignof_short+:} false
; then :
16925 $as_echo_n "(cached) " >&6
16927 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
16929 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16931 typedef struct { char x; short y; } ac__type_alignof_;"; then :
16934 if test "$ac_cv_type_short" = yes; then
16935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16937 as_fn_error
77 "cannot compute alignment of short
16938 See \`config.log' for more details" "$LINENO" 5; }
16940 ac_cv_alignof_short
=0
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
16946 $as_echo "$ac_cv_alignof_short" >&6; }
16950 cat >>confdefs.h
<<_ACEOF
16951 #define ALIGNOF_SHORT $ac_cv_alignof_short
16955 # The cast to long int works around a bug in the HP C Compiler,
16956 # see AC_CHECK_SIZEOF for more information.
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
16958 $as_echo_n "checking alignment of int... " >&6; }
16959 if ${ac_cv_alignof_int+:} false
; then :
16960 $as_echo_n "(cached) " >&6
16962 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
16964 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16966 typedef struct { char x; int y; } ac__type_alignof_;"; then :
16969 if test "$ac_cv_type_int" = yes; then
16970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16972 as_fn_error
77 "cannot compute alignment of int
16973 See \`config.log' for more details" "$LINENO" 5; }
16975 ac_cv_alignof_int
=0
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
16981 $as_echo "$ac_cv_alignof_int" >&6; }
16985 cat >>confdefs.h
<<_ACEOF
16986 #define ALIGNOF_INT $ac_cv_alignof_int
16990 # The cast to long int works around a bug in the HP C Compiler,
16991 # see AC_CHECK_SIZEOF for more information.
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
16993 $as_echo_n "checking alignment of long... " >&6; }
16994 if ${ac_cv_alignof_long+:} false
; then :
16995 $as_echo_n "(cached) " >&6
16997 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
16999 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17001 typedef struct { char x; long y; } ac__type_alignof_;"; then :
17004 if test "$ac_cv_type_long" = yes; then
17005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17007 as_fn_error
77 "cannot compute alignment of long
17008 See \`config.log' for more details" "$LINENO" 5; }
17010 ac_cv_alignof_long
=0
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
17016 $as_echo "$ac_cv_alignof_long" >&6; }
17020 cat >>confdefs.h
<<_ACEOF
17021 #define ALIGNOF_LONG $ac_cv_alignof_long
17025 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
17026 # The cast to long int works around a bug in the HP C Compiler,
17027 # see AC_CHECK_SIZEOF for more information.
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
17029 $as_echo_n "checking alignment of long long int... " >&6; }
17030 if ${ac_cv_alignof_long_long_int+:} false
; then :
17031 $as_echo_n "(cached) " >&6
17033 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
17035 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17037 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
17040 if test "$ac_cv_type_long_long_int" = yes; then
17041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17043 as_fn_error
77 "cannot compute alignment of long long int
17044 See \`config.log' for more details" "$LINENO" 5; }
17046 ac_cv_alignof_long_long_int
=0
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
17052 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
17056 cat >>confdefs.h
<<_ACEOF
17057 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
17062 # The cast to long int works around a bug in the HP C Compiler,
17063 # see AC_CHECK_SIZEOF for more information.
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
17065 $as_echo_n "checking alignment of double... " >&6; }
17066 if ${ac_cv_alignof_double+:} false
; then :
17067 $as_echo_n "(cached) " >&6
17069 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
17071 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17073 typedef struct { char x; double y; } ac__type_alignof_;"; then :
17076 if test "$ac_cv_type_double" = yes; then
17077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17079 as_fn_error
77 "cannot compute alignment of double
17080 See \`config.log' for more details" "$LINENO" 5; }
17082 ac_cv_alignof_double
=0
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
17088 $as_echo "$ac_cv_alignof_double" >&6; }
17092 cat >>confdefs.h
<<_ACEOF
17093 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
17098 # Compute maximum alignment of any basic type.
17099 # We assume long's alignment is at least as strong as char, short, or int;
17100 # but we must check long long (if it is being used for int64) and double.
17101 # Note that we intentionally do not consider any types wider than 64 bits,
17102 # as allowing MAXIMUM_ALIGNOF to exceed 8 would be too much of a penalty
17103 # for disk and memory space.
17105 MAX_ALIGNOF
=$ac_cv_alignof_long
17106 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
17107 MAX_ALIGNOF
=$ac_cv_alignof_double
17109 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
&& test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
17110 MAX_ALIGNOF
="$ac_cv_alignof_long_long_int"
17113 cat >>confdefs.h
<<_ACEOF
17114 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
17119 # Some platforms predefine the types int8, int16, etc. Only check
17120 # a (hopefully) representative subset.
17121 ac_fn_c_check_type
"$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
17123 if test "x$ac_cv_type_int8" = xyes
; then :
17125 cat >>confdefs.h
<<_ACEOF
17126 #define HAVE_INT8 1
17131 ac_fn_c_check_type
"$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
17133 if test "x$ac_cv_type_uint8" = xyes
; then :
17135 cat >>confdefs.h
<<_ACEOF
17136 #define HAVE_UINT8 1
17141 ac_fn_c_check_type
"$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
17143 if test "x$ac_cv_type_int64" = xyes
; then :
17145 cat >>confdefs.h
<<_ACEOF
17146 #define HAVE_INT64 1
17151 ac_fn_c_check_type
"$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
17153 if test "x$ac_cv_type_uint64" = xyes
; then :
17155 cat >>confdefs.h
<<_ACEOF
17156 #define HAVE_UINT64 1
17163 # Some compilers offer a 128-bit integer scalar type.
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
17165 $as_echo_n "checking for __int128... " >&6; }
17166 if ${pgac_cv__128bit_int+:} false
; then :
17167 $as_echo_n "(cached) " >&6
17169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h. */
17173 * We don't actually run this test, just link it to verify that any support
17174 * functions needed for __int128 are present.
17176 * These are globals to discourage the compiler from folding all the
17177 * arithmetic tests down to compile-time constants. We do not have
17178 * convenient support for 128bit literals at this point...
17180 __int128 a = 48828125;
17181 __int128 b = 97656250;
17188 a = (a << 12) + 1; /* 200000000001 */
17189 b = (b << 12) + 5; /* 400000000005 */
17190 /* try the most relevant arithmetic ops */
17193 /* must use the results, else compiler may optimize arithmetic away */
17201 if ac_fn_c_try_link
"$LINENO"; then :
17202 pgac_cv__128bit_int
=yes
17204 pgac_cv__128bit_int
=no
17206 rm -f core conftest.err conftest.
$ac_objext \
17207 conftest
$ac_exeext conftest.
$ac_ext
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
17210 $as_echo "$pgac_cv__128bit_int" >&6; }
17211 if test x
"$pgac_cv__128bit_int" = xyes
; then
17212 # Use of non-default alignment with __int128 tickles bugs in some compilers.
17213 # If not cross-compiling, we can test for bugs and disable use of __int128
17214 # with buggy compilers. If cross-compiling, hope for the best.
17215 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5
17217 $as_echo_n "checking for __int128 alignment bug... " >&6; }
17218 if ${pgac_cv__128bit_int_bug+:} false
; then :
17219 $as_echo_n "(cached) " >&6
17221 if test "$cross_compiling" = yes; then :
17222 pgac_cv__128bit_int_bug
="assuming ok"
17224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h. */
17227 /* This must match the corresponding code in c.h: */
17228 #if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__IBMC__)
17229 #define pg_attribute_aligned(a) __attribute__((aligned(a)))
17231 typedef __int128 int128a
17232 #if defined(pg_attribute_aligned)
17233 pg_attribute_aligned(8)
17237 void pass_by_val(void *buffer, int128a par) { holder = par; }
17243 long int i64 = 97656225L << 12;
17245 pass_by_val(main, (int128a) i64);
17254 if ac_fn_c_try_run
"$LINENO"; then :
17255 pgac_cv__128bit_int_bug
=ok
17257 pgac_cv__128bit_int_bug
=broken
17259 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17260 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5
17265 $as_echo "$pgac_cv__128bit_int_bug" >&6; }
17266 if test x
"$pgac_cv__128bit_int_bug" != xbroken
; then
17268 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
17270 # The cast to long int works around a bug in the HP C Compiler,
17271 # see AC_CHECK_SIZEOF for more information.
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
17273 $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
17274 if ${ac_cv_alignof_PG_INT128_TYPE+:} false
; then :
17275 $as_echo_n "(cached) " >&6
17277 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
17279 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17281 typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
17284 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
17285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17287 as_fn_error
77 "cannot compute alignment of PG_INT128_TYPE
17288 See \`config.log' for more details" "$LINENO" 5; }
17290 ac_cv_alignof_PG_INT128_TYPE
=0
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
17296 $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
17300 cat >>confdefs.h
<<_ACEOF
17301 #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
17308 # Check for various atomic operations now that we have checked how to declare
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
17311 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
17312 if ${pgac_cv_gcc_sync_char_tas+:} false
; then :
17313 $as_echo_n "(cached) " >&6
17315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h. */
17322 __sync_lock_test_and_set(&lock, 1);
17323 __sync_lock_release(&lock);
17328 if ac_fn_c_try_link
"$LINENO"; then :
17329 pgac_cv_gcc_sync_char_tas
="yes"
17331 pgac_cv_gcc_sync_char_tas
="no"
17333 rm -f core conftest.err conftest.
$ac_objext \
17334 conftest
$ac_exeext conftest.
$ac_ext
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
17337 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
17338 if test x
"$pgac_cv_gcc_sync_char_tas" = x
"yes"; then
17340 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
17344 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
17345 if ${pgac_cv_gcc_sync_int32_tas+:} false
; then :
17346 $as_echo_n "(cached) " >&6
17348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h. */
17355 __sync_lock_test_and_set(&lock, 1);
17356 __sync_lock_release(&lock);
17361 if ac_fn_c_try_link
"$LINENO"; then :
17362 pgac_cv_gcc_sync_int32_tas
="yes"
17364 pgac_cv_gcc_sync_int32_tas
="no"
17366 rm -f core conftest.err conftest.
$ac_objext \
17367 conftest
$ac_exeext conftest.
$ac_ext
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
17370 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
17371 if test x
"$pgac_cv_gcc_sync_int32_tas" = x
"yes"; then
17373 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
17377 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
17378 if ${pgac_cv_gcc_sync_int32_cas+:} false
; then :
17379 $as_echo_n "(cached) " >&6
17381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17388 __sync_val_compare_and_swap(&val, 0, 37);
17393 if ac_fn_c_try_link
"$LINENO"; then :
17394 pgac_cv_gcc_sync_int32_cas
="yes"
17396 pgac_cv_gcc_sync_int32_cas
="no"
17398 rm -f core conftest.err conftest.
$ac_objext \
17399 conftest
$ac_exeext conftest.
$ac_ext
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
17402 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
17403 if test x
"$pgac_cv_gcc_sync_int32_cas" = x
"yes"; then
17405 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
17409 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
17410 if ${pgac_cv_gcc_sync_int64_cas+:} false
; then :
17411 $as_echo_n "(cached) " >&6
17413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17414 /* end confdefs.h. */
17419 PG_INT64_TYPE lock = 0;
17420 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
17425 if ac_fn_c_try_link
"$LINENO"; then :
17426 pgac_cv_gcc_sync_int64_cas
="yes"
17428 pgac_cv_gcc_sync_int64_cas
="no"
17430 rm -f core conftest.err conftest.
$ac_objext \
17431 conftest
$ac_exeext conftest.
$ac_ext
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
17434 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
17435 if test x
"$pgac_cv_gcc_sync_int64_cas" = x
"yes"; then
17437 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
17441 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
17442 if ${pgac_cv_gcc_atomic_int32_cas+:} false
; then :
17443 $as_echo_n "(cached) " >&6
17445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17453 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17458 if ac_fn_c_try_link
"$LINENO"; then :
17459 pgac_cv_gcc_atomic_int32_cas
="yes"
17461 pgac_cv_gcc_atomic_int32_cas
="no"
17463 rm -f core conftest.err conftest.
$ac_objext \
17464 conftest
$ac_exeext conftest.
$ac_ext
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
17467 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
17468 if test x
"$pgac_cv_gcc_atomic_int32_cas" = x
"yes"; then
17470 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
17474 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
17475 if ${pgac_cv_gcc_atomic_int64_cas+:} false
; then :
17476 $as_echo_n "(cached) " >&6
17478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17484 PG_INT64_TYPE val = 0;
17485 PG_INT64_TYPE expect = 0;
17486 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17491 if ac_fn_c_try_link
"$LINENO"; then :
17492 pgac_cv_gcc_atomic_int64_cas
="yes"
17494 pgac_cv_gcc_atomic_int64_cas
="no"
17496 rm -f core conftest.err conftest.
$ac_objext \
17497 conftest
$ac_exeext conftest.
$ac_ext
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
17500 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
17501 if test x
"$pgac_cv_gcc_atomic_int64_cas" = x
"yes"; then
17503 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
17508 # Check for x86 cpuid instruction
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
17510 $as_echo_n "checking for __get_cpuid... " >&6; }
17511 if ${pgac_cv__get_cpuid+:} false
; then :
17512 $as_echo_n "(cached) " >&6
17514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17515 /* end confdefs.h. */
17520 unsigned int exx[4] = {0, 0, 0, 0};
17521 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
17527 if ac_fn_c_try_link
"$LINENO"; then :
17528 pgac_cv__get_cpuid
="yes"
17530 pgac_cv__get_cpuid
="no"
17532 rm -f core conftest.err conftest.
$ac_objext \
17533 conftest
$ac_exeext conftest.
$ac_ext
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
17536 $as_echo "$pgac_cv__get_cpuid" >&6; }
17537 if test x
"$pgac_cv__get_cpuid" = x
"yes"; then
17539 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
17544 $as_echo_n "checking for __cpuid... " >&6; }
17545 if ${pgac_cv__cpuid+:} false
; then :
17546 $as_echo_n "(cached) " >&6
17548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17549 /* end confdefs.h. */
17550 #include <intrin.h>
17554 unsigned int exx[4] = {0, 0, 0, 0};
17555 __get_cpuid(exx[0], 1);
17561 if ac_fn_c_try_link
"$LINENO"; then :
17562 pgac_cv__cpuid
="yes"
17564 pgac_cv__cpuid
="no"
17566 rm -f core conftest.err conftest.
$ac_objext \
17567 conftest
$ac_exeext conftest.
$ac_ext
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
17570 $as_echo "$pgac_cv__cpuid" >&6; }
17571 if test x
"$pgac_cv__cpuid" = x
"yes"; then
17573 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
17577 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
17579 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
17580 # with the default compiler flags. If not, check if adding the -msse4.2
17581 # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
17583 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
17584 if ${pgac_cv_sse42_crc32_intrinsics_+:} false
; then :
17585 $as_echo_n "(cached) " >&6
17587 pgac_save_CFLAGS
=$CFLAGS
17588 CFLAGS
="$pgac_save_CFLAGS "
17589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17590 /* end confdefs.h. */
17591 #include <nmmintrin.h>
17595 unsigned int crc = 0;
17596 crc = _mm_crc32_u8(crc, 0);
17597 crc = _mm_crc32_u32(crc, 0);
17598 /* return computed value, to prevent the above being optimized away */
17604 if ac_fn_c_try_link
"$LINENO"; then :
17605 pgac_cv_sse42_crc32_intrinsics_
=yes
17607 pgac_cv_sse42_crc32_intrinsics_
=no
17609 rm -f core conftest.err conftest.
$ac_objext \
17610 conftest
$ac_exeext conftest.
$ac_ext
17611 CFLAGS
="$pgac_save_CFLAGS"
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
17614 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
17615 if test x
"$pgac_cv_sse42_crc32_intrinsics_" = x
"yes"; then
17617 pgac_sse42_crc32_intrinsics
=yes
17620 if test x
"$pgac_sse42_crc32_intrinsics" != x
"yes"; then
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
17622 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
17623 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false
; then :
17624 $as_echo_n "(cached) " >&6
17626 pgac_save_CFLAGS
=$CFLAGS
17627 CFLAGS
="$pgac_save_CFLAGS -msse4.2"
17628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17629 /* end confdefs.h. */
17630 #include <nmmintrin.h>
17634 unsigned int crc = 0;
17635 crc = _mm_crc32_u8(crc, 0);
17636 crc = _mm_crc32_u32(crc, 0);
17637 /* return computed value, to prevent the above being optimized away */
17643 if ac_fn_c_try_link
"$LINENO"; then :
17644 pgac_cv_sse42_crc32_intrinsics__msse4_2
=yes
17646 pgac_cv_sse42_crc32_intrinsics__msse4_2
=no
17648 rm -f core conftest.err conftest.
$ac_objext \
17649 conftest
$ac_exeext conftest.
$ac_ext
17650 CFLAGS
="$pgac_save_CFLAGS"
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
17653 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
17654 if test x
"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x
"yes"; then
17655 CFLAGS_SSE42
="-msse4.2"
17656 pgac_sse42_crc32_intrinsics
=yes
17662 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
17663 # define __SSE4_2__ in that case.
17664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17665 /* end confdefs.h. */
17672 #error __SSE4_2__ not defined
17679 if ac_fn_c_try_compile
"$LINENO"; then :
17682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17684 # Check for ARMv8 CRC Extension intrinsics to do CRC calculations.
17686 # First check if __crc32c* intrinsics can be used with the default compiler
17687 # flags. If not, check if adding -march=armv8-a+crc flag helps.
17688 # CFLAGS_ARMV8_CRC32C is set if the extra flag is required.
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5
17690 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; }
17691 if ${pgac_cv_armv8_crc32c_intrinsics_+:} false
; then :
17692 $as_echo_n "(cached) " >&6
17694 pgac_save_CFLAGS
=$CFLAGS
17695 CFLAGS
="$pgac_save_CFLAGS "
17696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h. */
17698 #include <arm_acle.h>
17702 unsigned int crc = 0;
17703 crc = __crc32cb(crc, 0);
17704 crc = __crc32ch(crc, 0);
17705 crc = __crc32cw(crc, 0);
17706 crc = __crc32cd(crc, 0);
17707 /* return computed value, to prevent the above being optimized away */
17713 if ac_fn_c_try_link
"$LINENO"; then :
17714 pgac_cv_armv8_crc32c_intrinsics_
=yes
17716 pgac_cv_armv8_crc32c_intrinsics_
=no
17718 rm -f core conftest.err conftest.
$ac_objext \
17719 conftest
$ac_exeext conftest.
$ac_ext
17720 CFLAGS
="$pgac_save_CFLAGS"
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5
17723 $as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; }
17724 if test x
"$pgac_cv_armv8_crc32c_intrinsics_" = x
"yes"; then
17725 CFLAGS_ARMV8_CRC32C
=""
17726 pgac_armv8_crc32c_intrinsics
=yes
17729 if test x
"$pgac_armv8_crc32c_intrinsics" != x
"yes"; then
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5
17731 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; }
17732 if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false
; then :
17733 $as_echo_n "(cached) " >&6
17735 pgac_save_CFLAGS
=$CFLAGS
17736 CFLAGS
="$pgac_save_CFLAGS -march=armv8-a+crc"
17737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17738 /* end confdefs.h. */
17739 #include <arm_acle.h>
17743 unsigned int crc = 0;
17744 crc = __crc32cb(crc, 0);
17745 crc = __crc32ch(crc, 0);
17746 crc = __crc32cw(crc, 0);
17747 crc = __crc32cd(crc, 0);
17748 /* return computed value, to prevent the above being optimized away */
17754 if ac_fn_c_try_link
"$LINENO"; then :
17755 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=yes
17757 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=no
17759 rm -f core conftest.err conftest.
$ac_objext \
17760 conftest
$ac_exeext conftest.
$ac_ext
17761 CFLAGS
="$pgac_save_CFLAGS"
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5
17764 $as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; }
17765 if test x
"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x
"yes"; then
17766 CFLAGS_ARMV8_CRC32C
="-march=armv8-a+crc"
17767 pgac_armv8_crc32c_intrinsics
=yes
17773 # Select CRC-32C implementation.
17775 # If we are targeting a processor that has Intel SSE 4.2 instructions, we can
17776 # use the special CRC instructions for calculating CRC-32C. If we're not
17777 # targeting such a processor, but we can nevertheless produce code that uses
17778 # the SSE intrinsics, perhaps with some extra CFLAGS, compile both
17779 # implementations and select which one to use at runtime, depending on whether
17780 # SSE 4.2 is supported by the processor we're running on.
17782 # Similarly, if we are targeting an ARM processor that has the CRC
17783 # instructions that are part of the ARMv8 CRC Extension, use them. And if
17784 # we're not targeting such a processor, but can nevertheless produce code that
17785 # uses the CRC instructions, compile both, and select at runtime.
17787 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
17788 # in the template or configure command line.
17789 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
17790 # Use Intel SSE 4.2 if available.
17791 if test x
"$pgac_sse42_crc32_intrinsics" = x
"yes" && test x
"$SSE4_2_TARGETED" = x
"1" ; then
17794 # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for
17795 # the runtime check.
17796 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
17797 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK
=1
17799 # Use ARM CRC Extension if available.
17800 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes" && test x
"$CFLAGS_ARMV8_CRC32C" = x
""; then
17803 # ARM CRC Extension, with runtime check?
17804 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes"; then
17805 USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK
=1
17807 # fall back to slicing-by-8 algorithm, which doesn't require any
17808 # special CPU support.
17809 USE_SLICING_BY_8_CRC32C
=1
17816 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
17818 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
17819 if test x
"$USE_SSE42_CRC32C" = x
"1"; then
17821 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
17823 PG_CRC32C_OBJS
="pg_crc32c_sse42.o"
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
17825 $as_echo "SSE 4.2" >&6; }
17827 if test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
17829 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
17831 PG_CRC32C_OBJS
="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o"
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
17833 $as_echo "SSE 4.2 with runtime check" >&6; }
17835 if test x
"$USE_ARMV8_CRC32C" = x
"1"; then
17837 $as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h
17839 PG_CRC32C_OBJS
="pg_crc32c_armv8.o"
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5
17841 $as_echo "ARMv8 CRC instructions" >&6; }
17843 if test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
17845 $as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
17847 PG_CRC32C_OBJS
="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o"
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5
17849 $as_echo "ARMv8 CRC instructions with runtime check" >&6; }
17852 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
17854 PG_CRC32C_OBJS
="pg_crc32c_sb8.o"
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
17856 $as_echo "slicing-by-8" >&6; }
17864 # Select semaphore implementation type.
17865 if test "$PORTNAME" != "win32"; then
17866 if test x
"$PREFERRED_SEMAPHORES" = x
"NAMED_POSIX" ; then
17867 # Need sem_open for this
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
17869 $as_echo_n "checking for library containing sem_open... " >&6; }
17870 if ${ac_cv_search_sem_open+:} false
; then :
17871 $as_echo_n "(cached) " >&6
17873 ac_func_search_save_LIBS
=$LIBS
17874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17875 /* end confdefs.h. */
17877 /* Override any GCC internal prototype to avoid an error.
17878 Use char because int might match the return type of a GCC
17879 builtin and then its argument prototype would still apply. */
17887 return sem_open ();
17892 for ac_lib
in '' rt pthread
; do
17893 if test -z "$ac_lib"; then
17894 ac_res
="none required"
17897 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17899 if ac_fn_c_try_link
"$LINENO"; then :
17900 ac_cv_search_sem_open
=$ac_res
17902 rm -f core conftest.err conftest.
$ac_objext \
17904 if ${ac_cv_search_sem_open+:} false
; then :
17908 if ${ac_cv_search_sem_open+:} false
; then :
17911 ac_cv_search_sem_open
=no
17913 rm conftest.
$ac_ext
17914 LIBS
=$ac_func_search_save_LIBS
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
17917 $as_echo "$ac_cv_search_sem_open" >&6; }
17918 ac_res
=$ac_cv_search_sem_open
17919 if test "$ac_res" != no
; then :
17920 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17921 USE_NAMED_POSIX_SEMAPHORES
=1
17925 if test x
"$PREFERRED_SEMAPHORES" = x
"UNNAMED_POSIX" ; then
17926 # Need sem_init for this
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
17928 $as_echo_n "checking for library containing sem_init... " >&6; }
17929 if ${ac_cv_search_sem_init+:} false
; then :
17930 $as_echo_n "(cached) " >&6
17932 ac_func_search_save_LIBS
=$LIBS
17933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17936 /* Override any GCC internal prototype to avoid an error.
17937 Use char because int might match the return type of a GCC
17938 builtin and then its argument prototype would still apply. */
17946 return sem_init ();
17951 for ac_lib
in '' rt pthread
; do
17952 if test -z "$ac_lib"; then
17953 ac_res
="none required"
17956 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17958 if ac_fn_c_try_link
"$LINENO"; then :
17959 ac_cv_search_sem_init
=$ac_res
17961 rm -f core conftest.err conftest.
$ac_objext \
17963 if ${ac_cv_search_sem_init+:} false
; then :
17967 if ${ac_cv_search_sem_init+:} false
; then :
17970 ac_cv_search_sem_init
=no
17972 rm conftest.
$ac_ext
17973 LIBS
=$ac_func_search_save_LIBS
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
17976 $as_echo "$ac_cv_search_sem_init" >&6; }
17977 ac_res
=$ac_cv_search_sem_init
17978 if test "$ac_res" != no
; then :
17979 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17980 USE_UNNAMED_POSIX_SEMAPHORES
=1
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
17985 $as_echo_n "checking which semaphore API to use... " >&6; }
17986 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
17988 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
17990 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
17991 sematype
="named POSIX"
17993 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
17995 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
17997 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
17998 sematype
="unnamed POSIX"
18001 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
18003 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
18004 sematype
="System V"
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
18008 $as_echo "$sematype" >&6; }
18011 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
18013 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
18017 # Select shared-memory implementation type.
18018 if test "$PORTNAME" != "win32"; then
18020 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
18022 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
18025 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
18027 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
18030 # Select random number source
18032 # You can override this logic by setting the appropriate USE_*RANDOM flag to 1
18033 # in the template or configure command line.
18035 # If not selected manually, try to select a source automatically.
18036 if test x
"$USE_OPENSSL_RANDOM" = x
"" && test x
"$USE_WIN32_RANDOM" = x
"" && test x
"$USE_DEV_URANDOM" = x
"" ; then
18037 if test x
"$with_openssl" = x
"yes" ; then
18038 USE_OPENSSL_RANDOM
=1
18039 elif test "$PORTNAME" = "win32" ; then
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
18043 $as_echo_n "checking for /dev/urandom... " >&6; }
18044 if ${ac_cv_file__dev_urandom+:} false
; then :
18045 $as_echo_n "(cached) " >&6
18047 test "$cross_compiling" = yes &&
18048 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
18049 if test -r "/dev/urandom"; then
18050 ac_cv_file__dev_urandom
=yes
18052 ac_cv_file__dev_urandom
=no
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
18056 $as_echo "$ac_cv_file__dev_urandom" >&6; }
18057 if test "x$ac_cv_file__dev_urandom" = xyes
; then :
18062 if test x
"$ac_cv_file__dev_urandom" = x
"yes" ; then
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
18069 $as_echo_n "checking which random number source to use... " >&6; }
18070 if test x
"$USE_OPENSSL_RANDOM" = x
"1" ; then
18072 $as_echo "#define USE_OPENSSL_RANDOM 1" >>confdefs.h
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
18075 $as_echo "OpenSSL" >&6; }
18076 elif test x
"$USE_WIN32_RANDOM" = x
"1" ; then
18078 $as_echo "#define USE_WIN32_RANDOM 1" >>confdefs.h
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
18081 $as_echo "Windows native" >&6; }
18082 elif test x
"$USE_DEV_URANDOM" = x
"1" ; then
18084 $as_echo "#define USE_DEV_URANDOM 1" >>confdefs.h
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
18087 $as_echo "/dev/urandom" >&6; }
18090 no source of strong random numbers was found
18091 PostgreSQL can use OpenSSL or /dev/urandom as a source of random numbers." "$LINENO" 5
18094 # If not set in template file, set bytes to use libc memset()
18095 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
18096 MEMSET_LOOP_LIMIT
=1024
18099 cat >>confdefs.h
<<_ACEOF
18100 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
18105 if test "$enable_nls" = yes ; then
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
18108 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
18109 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18110 $as_echo_n "(cached) " >&6
18112 ac_func_search_save_LIBS
=$LIBS
18113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18116 /* Override any GCC internal prototype to avoid an error.
18117 Use char because int might match the return type of a GCC
18118 builtin and then its argument prototype would still apply. */
18122 char bind_textdomain_codeset ();
18126 return bind_textdomain_codeset ();
18131 for ac_lib
in '' intl
; do
18132 if test -z "$ac_lib"; then
18133 ac_res
="none required"
18136 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18138 if ac_fn_c_try_link
"$LINENO"; then :
18139 ac_cv_search_bind_textdomain_codeset
=$ac_res
18141 rm -f core conftest.err conftest.
$ac_objext \
18143 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18147 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18150 ac_cv_search_bind_textdomain_codeset
=no
18152 rm conftest.
$ac_ext
18153 LIBS
=$ac_func_search_save_LIBS
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
18156 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
18157 ac_res
=$ac_cv_search_bind_textdomain_codeset
18158 if test "$ac_res" != no
; then :
18159 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18162 as_fn_error $?
"a gettext implementation is required for NLS" "$LINENO" 5
18165 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18166 if test "x$ac_cv_header_libintl_h" = xyes
; then :
18169 as_fn_error $?
"header file <libintl.h> is required for NLS" "$LINENO" 5
18173 if test -z "$MSGFMT"; then
18174 for ac_prog
in msgfmt
18176 # Extract the first word of "$ac_prog", so it can be a program name with args.
18177 set dummy
$ac_prog; ac_word
=$2
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18179 $as_echo_n "checking for $ac_word... " >&6; }
18180 if ${ac_cv_path_MSGFMT+:} false
; then :
18181 $as_echo_n "(cached) " >&6
18185 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
18188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18189 for as_dir
in $PATH
18192 test -z "$as_dir" && as_dir
=.
18193 for ac_exec_ext
in '' $ac_executable_extensions; do
18194 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18195 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
18196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18206 MSGFMT
=$ac_cv_path_MSGFMT
18207 if test -n "$MSGFMT"; then
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18209 $as_echo "$MSGFMT" >&6; }
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18212 $as_echo "no" >&6; }
18216 test -n "$MSGFMT" && break
18220 # Report the value of MSGFMT in configure's output in all cases.
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
18222 $as_echo_n "checking for MSGFMT... " >&6; }
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18224 $as_echo "$MSGFMT" >&6; }
18227 if test -z "$MSGFMT"; then
18228 as_fn_error $?
"msgfmt is required for NLS" "$LINENO" 5
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
18231 $as_echo_n "checking for msgfmt flags... " >&6; }
18232 if ${pgac_cv_msgfmt_flags+:} false
; then :
18233 $as_echo_n "(cached) " >&6
18235 if test x
"$MSGFMT" != x
"" && "$MSGFMT" --version 2>&1 |
grep "GNU" >/dev
/null
; then
18236 pgac_cv_msgfmt_flags
=-c
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
18240 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
18241 MSGFMT_FLAGS
=$pgac_cv_msgfmt_flags
18243 if test -z "$MSGMERGE"; then
18244 for ac_prog
in msgmerge
18246 # Extract the first word of "$ac_prog", so it can be a program name with args.
18247 set dummy
$ac_prog; ac_word
=$2
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18249 $as_echo_n "checking for $ac_word... " >&6; }
18250 if ${ac_cv_path_MSGMERGE+:} false
; then :
18251 $as_echo_n "(cached) " >&6
18255 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
18258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18259 for as_dir
in $PATH
18262 test -z "$as_dir" && as_dir
=.
18263 for ac_exec_ext
in '' $ac_executable_extensions; do
18264 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18265 ac_cv_path_MSGMERGE
="$as_dir/$ac_word$ac_exec_ext"
18266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18276 MSGMERGE
=$ac_cv_path_MSGMERGE
18277 if test -n "$MSGMERGE"; then
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18279 $as_echo "$MSGMERGE" >&6; }
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18282 $as_echo "no" >&6; }
18286 test -n "$MSGMERGE" && break
18290 # Report the value of MSGMERGE in configure's output in all cases.
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
18292 $as_echo_n "checking for MSGMERGE... " >&6; }
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18294 $as_echo "$MSGMERGE" >&6; }
18297 if test -z "$XGETTEXT"; then
18298 for ac_prog
in xgettext
18300 # Extract the first word of "$ac_prog", so it can be a program name with args.
18301 set dummy
$ac_prog; ac_word
=$2
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18303 $as_echo_n "checking for $ac_word... " >&6; }
18304 if ${ac_cv_path_XGETTEXT+:} false
; then :
18305 $as_echo_n "(cached) " >&6
18309 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
18312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18313 for as_dir
in $PATH
18316 test -z "$as_dir" && as_dir
=.
18317 for ac_exec_ext
in '' $ac_executable_extensions; do
18318 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18319 ac_cv_path_XGETTEXT
="$as_dir/$ac_word$ac_exec_ext"
18320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18330 XGETTEXT
=$ac_cv_path_XGETTEXT
18331 if test -n "$XGETTEXT"; then
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18333 $as_echo "$XGETTEXT" >&6; }
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18336 $as_echo "no" >&6; }
18340 test -n "$XGETTEXT" && break
18344 # Report the value of XGETTEXT in configure's output in all cases.
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
18346 $as_echo_n "checking for XGETTEXT... " >&6; }
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18348 $as_echo "$XGETTEXT" >&6; }
18354 # Check for Tcl configuration script tclConfig.sh
18355 if test "$with_tcl" = yes; then
18356 if test -z "$TCLSH"; then
18357 for ac_prog
in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
18359 # Extract the first word of "$ac_prog", so it can be a program name with args.
18360 set dummy
$ac_prog; ac_word
=$2
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18362 $as_echo_n "checking for $ac_word... " >&6; }
18363 if ${ac_cv_path_TCLSH+:} false
; then :
18364 $as_echo_n "(cached) " >&6
18368 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
18371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18372 for as_dir
in $PATH
18375 test -z "$as_dir" && as_dir
=.
18376 for ac_exec_ext
in '' $ac_executable_extensions; do
18377 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18378 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
18379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18389 TCLSH
=$ac_cv_path_TCLSH
18390 if test -n "$TCLSH"; then
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18392 $as_echo "$TCLSH" >&6; }
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18395 $as_echo "no" >&6; }
18399 test -n "$TCLSH" && break
18403 # Report the value of TCLSH in configure's output in all cases.
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
18405 $as_echo_n "checking for TCLSH... " >&6; }
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18407 $as_echo "$TCLSH" >&6; }
18410 if test x
"$TCLSH" = x
""; then
18411 as_fn_error $?
"Tcl shell not found" "$LINENO" 5
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
18415 $as_echo_n "checking for tclConfig.sh... " >&6; }
18416 # Let user override test
18417 if test -z "$TCL_CONFIG_SH"; then
18418 pgac_test_dirs
="$with_tclconfig"
18420 set X
$pgac_test_dirs; shift
18421 if test $# -eq 0; then
18422 test -z "$TCLSH" && as_fn_error $?
"unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
18423 pgac_test_dirs
=`echo 'puts $auto_path' | $TCLSH`
18424 # On newer macOS, $auto_path frequently doesn't include the place
18425 # where tclConfig.sh actually lives. Append that to the end, so as not
18426 # to break cases where a non-default Tcl installation is being used.
18427 if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then
18428 pgac_test_dirs
="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework"
18430 set X
$pgac_test_dirs; shift
18434 if test -r "$pgac_dir/tclConfig.sh"; then
18435 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
18441 if test -z "$TCL_CONFIG_SH"; then
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18443 $as_echo "no" >&6; }
18444 as_fn_error $?
"file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
18447 $as_echo "$TCL_CONFIG_SH" >&6; }
18453 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
18454 eval TCL_LIBS
=\"$TCL_LIBS\"
18455 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
18456 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
18458 if test "$TCL_SHARED_BUILD" != 1; then
18459 as_fn_error $?
"cannot build PL/Tcl because Tcl is not a shared library
18460 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
18462 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
18463 ac_save_CPPFLAGS
=$CPPFLAGS
18464 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
18465 ac_fn_c_check_header_mongrel
"$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
18466 if test "x$ac_cv_header_tcl_h" = xyes
; then :
18469 as_fn_error $?
"header file <tcl.h> is required for Tcl" "$LINENO" 5
18473 CPPFLAGS
=$ac_save_CPPFLAGS
18476 # check for <perl.h>
18477 if test "$with_perl" = yes; then
18478 ac_save_CPPFLAGS
=$CPPFLAGS
18479 CPPFLAGS
="$CPPFLAGS $perl_includespec"
18480 ac_fn_c_check_header_compile
"$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
18482 if test "x$ac_cv_header_perl_h" = xyes
; then :
18485 as_fn_error $?
"header file <perl.h> is required for Perl" "$LINENO" 5
18489 # While we're at it, check that we can link to libperl.
18490 # On most platforms, if perl.h is there then libperl.so will be too, but at
18491 # this writing Debian packages them separately. There is no known reason to
18492 # waste cycles on separate probes for the Tcl or Python libraries, though.
18493 # On some Red Hat platforms, the link attempt can fail if we don't use
18494 # CFLAGS_SL while building the test program.
18495 ac_save_CFLAGS
=$CFLAGS
18496 CFLAGS
="$CFLAGS $CFLAGS_SL"
18497 pgac_save_LIBS
=$LIBS
18498 LIBS
="$perl_embed_ldflags"
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
18500 $as_echo_n "checking for libperl... " >&6; }
18501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18504 #include <EXTERN.h>
18515 if ac_fn_c_try_link
"$LINENO"; then :
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18517 $as_echo "yes" >&6; }
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18520 $as_echo "no" >&6; }
18521 as_fn_error $?
"libperl library is required for Perl" "$LINENO" 5
18523 rm -f core conftest.err conftest.
$ac_objext \
18524 conftest
$ac_exeext conftest.
$ac_ext
18525 LIBS
=$pgac_save_LIBS
18526 CFLAGS
=$ac_save_CFLAGS
18527 CPPFLAGS
=$ac_save_CPPFLAGS
18530 # check for <Python.h>
18531 if test "$with_python" = yes; then
18532 ac_save_CPPFLAGS
=$CPPFLAGS
18533 CPPFLAGS
="$python_includespec $CPPFLAGS"
18534 ac_fn_c_check_header_mongrel
"$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
18535 if test "x$ac_cv_header_Python_h" = xyes
; then :
18538 as_fn_error $?
"header file <Python.h> is required for Python" "$LINENO" 5
18542 CPPFLAGS
=$ac_save_CPPFLAGS
18546 # Check for DocBook and tools
18548 if test -z "$XMLLINT"; then
18549 for ac_prog
in xmllint
18551 # Extract the first word of "$ac_prog", so it can be a program name with args.
18552 set dummy
$ac_prog; ac_word
=$2
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18554 $as_echo_n "checking for $ac_word... " >&6; }
18555 if ${ac_cv_path_XMLLINT+:} false
; then :
18556 $as_echo_n "(cached) " >&6
18560 ac_cv_path_XMLLINT
="$XMLLINT" # Let the user override the test with a path.
18563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18564 for as_dir
in $PATH
18567 test -z "$as_dir" && as_dir
=.
18568 for ac_exec_ext
in '' $ac_executable_extensions; do
18569 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18570 ac_cv_path_XMLLINT
="$as_dir/$ac_word$ac_exec_ext"
18571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18581 XMLLINT
=$ac_cv_path_XMLLINT
18582 if test -n "$XMLLINT"; then
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18584 $as_echo "$XMLLINT" >&6; }
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18587 $as_echo "no" >&6; }
18591 test -n "$XMLLINT" && break
18595 # Report the value of XMLLINT in configure's output in all cases.
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
18597 $as_echo_n "checking for XMLLINT... " >&6; }
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18599 $as_echo "$XMLLINT" >&6; }
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML V4.5" >&5
18604 $as_echo_n "checking for DocBook XML V4.5... " >&6; }
18605 if ${pgac_cv_check_docbook+:} false
; then :
18606 $as_echo_n "(cached) " >&6
18608 cat >conftest.xml
<<EOF
18609 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
18611 <title>test</title>
18613 <title>random</title>
18615 <title>testsect</title>
18622 pgac_cv_check_docbook
=no
18624 if test -n "$XMLLINT"; then
18625 $XMLLINT --noout --valid conftest.xml
1>&5 2>&1
18626 if test $?
-eq 0; then
18627 pgac_cv_check_docbook
=yes
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
18633 $as_echo "$pgac_cv_check_docbook" >&6; }
18635 have_docbook
=$pgac_cv_check_docbook
18638 if test -z "$DBTOEPUB"; then
18639 for ac_prog
in dbtoepub
18641 # Extract the first word of "$ac_prog", so it can be a program name with args.
18642 set dummy
$ac_prog; ac_word
=$2
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18644 $as_echo_n "checking for $ac_word... " >&6; }
18645 if ${ac_cv_path_DBTOEPUB+:} false
; then :
18646 $as_echo_n "(cached) " >&6
18650 ac_cv_path_DBTOEPUB
="$DBTOEPUB" # Let the user override the test with a path.
18653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18654 for as_dir
in $PATH
18657 test -z "$as_dir" && as_dir
=.
18658 for ac_exec_ext
in '' $ac_executable_extensions; do
18659 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18660 ac_cv_path_DBTOEPUB
="$as_dir/$ac_word$ac_exec_ext"
18661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18671 DBTOEPUB
=$ac_cv_path_DBTOEPUB
18672 if test -n "$DBTOEPUB"; then
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18674 $as_echo "$DBTOEPUB" >&6; }
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18677 $as_echo "no" >&6; }
18681 test -n "$DBTOEPUB" && break
18685 # Report the value of DBTOEPUB in configure's output in all cases.
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
18687 $as_echo_n "checking for DBTOEPUB... " >&6; }
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18689 $as_echo "$DBTOEPUB" >&6; }
18692 if test -z "$XSLTPROC"; then
18693 for ac_prog
in xsltproc
18695 # Extract the first word of "$ac_prog", so it can be a program name with args.
18696 set dummy
$ac_prog; ac_word
=$2
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18698 $as_echo_n "checking for $ac_word... " >&6; }
18699 if ${ac_cv_path_XSLTPROC+:} false
; then :
18700 $as_echo_n "(cached) " >&6
18704 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
18707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18708 for as_dir
in $PATH
18711 test -z "$as_dir" && as_dir
=.
18712 for ac_exec_ext
in '' $ac_executable_extensions; do
18713 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18714 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
18715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18725 XSLTPROC
=$ac_cv_path_XSLTPROC
18726 if test -n "$XSLTPROC"; then
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18728 $as_echo "$XSLTPROC" >&6; }
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18731 $as_echo "no" >&6; }
18735 test -n "$XSLTPROC" && break
18739 # Report the value of XSLTPROC in configure's output in all cases.
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
18741 $as_echo_n "checking for XSLTPROC... " >&6; }
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18743 $as_echo "$XSLTPROC" >&6; }
18746 if test -z "$FOP"; then
18749 # Extract the first word of "$ac_prog", so it can be a program name with args.
18750 set dummy
$ac_prog; ac_word
=$2
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18752 $as_echo_n "checking for $ac_word... " >&6; }
18753 if ${ac_cv_path_FOP+:} false
; then :
18754 $as_echo_n "(cached) " >&6
18758 ac_cv_path_FOP
="$FOP" # Let the user override the test with a path.
18761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18762 for as_dir
in $PATH
18765 test -z "$as_dir" && as_dir
=.
18766 for ac_exec_ext
in '' $ac_executable_extensions; do
18767 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18768 ac_cv_path_FOP
="$as_dir/$ac_word$ac_exec_ext"
18769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18779 FOP
=$ac_cv_path_FOP
18780 if test -n "$FOP"; then
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18782 $as_echo "$FOP" >&6; }
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18785 $as_echo "no" >&6; }
18789 test -n "$FOP" && break
18793 # Report the value of FOP in configure's output in all cases.
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
18795 $as_echo_n "checking for FOP... " >&6; }
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18797 $as_echo "$FOP" >&6; }
18802 # Check for test tools
18804 if test "$enable_tap_tests" = yes; then
18805 # Check for necessary modules, unless user has specified the "prove" to use;
18806 # in that case it's her responsibility to have a working configuration.
18807 # (prove might be part of a different Perl installation than perl, eg on
18808 # MSys, so the result of AX_PROG_PERL_MODULES could be irrelevant anyway.)
18809 if test -z "$PROVE"; then
18810 # Test::More and Time::HiRes are supposed to be part of core Perl,
18811 # but some distros omit them in a minimal installation.
18822 # Make sure we have perl
18823 if test -z "$PERL"; then
18824 # Extract the first word of "perl", so it can be a program name with args.
18825 set dummy perl
; ac_word
=$2
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18827 $as_echo_n "checking for $ac_word... " >&6; }
18828 if ${ac_cv_prog_PERL+:} false
; then :
18829 $as_echo_n "(cached) " >&6
18831 if test -n "$PERL"; then
18832 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
18834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18835 for as_dir
in $PATH
18838 test -z "$as_dir" && as_dir
=.
18839 for ac_exec_ext
in '' $ac_executable_extensions; do
18840 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18841 ac_cv_prog_PERL
="perl"
18842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18851 PERL
=$ac_cv_prog_PERL
18852 if test -n "$PERL"; then
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
18854 $as_echo "$PERL" >&6; }
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18857 $as_echo "no" >&6; }
18863 if test "x$PERL" != x
; then
18864 ax_perl_modules_failed
=0
18865 for ax_perl_module
in 'IPC::Run' 'Test::More 0.87' 'Time::HiRes' ; do
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
18867 $as_echo_n "checking for perl module $ax_perl_module... " >&6; }
18869 # Would be nice to log result here, but can't rely on autoconf internals
18870 $PERL -e "use $ax_perl_module; exit" > /dev
/null
2>&1
18871 if test $?
-ne 0; then
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18873 $as_echo "no" >&6; };
18874 ax_perl_modules_failed
=1
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18877 $as_echo "ok" >&6; };
18881 # Run optional shell commands
18882 if test "$ax_perl_modules_failed" = 0; then
18887 as_fn_error $?
"Additional Perl modules are required to run TAP tests" "$LINENO" 5
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
18891 $as_echo "$as_me: WARNING: could not find perl" >&2;}
18894 # Now make sure we know where prove is
18895 if test -z "$PROVE"; then
18896 for ac_prog
in prove
18898 # Extract the first word of "$ac_prog", so it can be a program name with args.
18899 set dummy
$ac_prog; ac_word
=$2
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18901 $as_echo_n "checking for $ac_word... " >&6; }
18902 if ${ac_cv_path_PROVE+:} false
; then :
18903 $as_echo_n "(cached) " >&6
18907 ac_cv_path_PROVE
="$PROVE" # Let the user override the test with a path.
18910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18911 for as_dir
in $PATH
18914 test -z "$as_dir" && as_dir
=.
18915 for ac_exec_ext
in '' $ac_executable_extensions; do
18916 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18917 ac_cv_path_PROVE
="$as_dir/$ac_word$ac_exec_ext"
18918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18928 PROVE
=$ac_cv_path_PROVE
18929 if test -n "$PROVE"; then
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18931 $as_echo "$PROVE" >&6; }
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18934 $as_echo "no" >&6; }
18938 test -n "$PROVE" && break
18942 # Report the value of PROVE in configure's output in all cases.
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
18944 $as_echo_n "checking for PROVE... " >&6; }
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18946 $as_echo "$PROVE" >&6; }
18949 if test -z "$PROVE"; then
18950 as_fn_error $?
"prove not found" "$LINENO" 5
18956 # We have to run the thread test near the end so we have all our symbols
18957 # defined. Cross compiling throws a warning.
18959 if test "$enable_thread_safety" = yes; then
18960 if test "$PORTNAME" != "win32"
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
18963 $as_echo_n "checking thread safety of required library functions... " >&6; }
18967 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
18968 LIBS
="$LIBS $PTHREAD_LIBS"
18969 if test "$cross_compiling" = yes; then :
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
18971 $as_echo "maybe" >&6; }
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18973 *** Skipping thread test program because of cross-compile build.
18974 *** Run the program in src/test/thread on the target machine.
18976 $as_echo "$as_me: WARNING:
18977 *** Skipping thread test program because of cross-compile build.
18978 *** Run the program in src/test/thread on the target machine.
18981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h. */
18983 #include "$srcdir/src/test/thread/thread_test.c"
18985 if ac_fn_c_try_run
"$LINENO"; then :
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18987 $as_echo "yes" >&6; }
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18990 $as_echo "no" >&6; }
18991 as_fn_error $?
"thread test program failed
18992 This platform is not thread-safe. Check the file 'config.log' or compile
18993 and run src/test/thread/thread_test for the exact reason.
18994 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
18996 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18997 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
19004 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
19008 # If compiler will take -Wl,--as-needed (or various platform-specific
19009 # spellings thereof) then add that to LDFLAGS. This is much easier than
19010 # trying to filter LIBS to the minimum for each executable.
19011 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
19012 # libreadline; therefore we postpone testing it until we know what library
19013 # dependencies readline has. The test code will try to link with $LIBS.
19014 if test "$with_readline" = yes; then
19015 link_test_func
=readline
19017 link_test_func
=exit
19020 if test "$PORTNAME" = "darwin"; then
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
19022 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
19023 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false
; then :
19024 $as_echo_n "(cached) " >&6
19026 pgac_save_LDFLAGS
=$LDFLAGS
19027 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
19028 if test "$cross_compiling" = yes; then :
19029 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
="assuming no"
19031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19032 /* end confdefs.h. */
19033 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19042 if ac_fn_c_try_run
"$LINENO"; then :
19043 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
=yes
19045 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
=no
19047 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19048 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19051 LDFLAGS
="$pgac_save_LDFLAGS"
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
19054 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
19055 if test x
"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x
"yes"; then
19056 LDFLAGS
="$LDFLAGS -Wl,-dead_strip_dylibs"
19059 elif test "$PORTNAME" = "openbsd"; then
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
19061 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
19062 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false
; then :
19063 $as_echo_n "(cached) " >&6
19065 pgac_save_LDFLAGS
=$LDFLAGS
19066 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-Bdynamic"
19067 if test "$cross_compiling" = yes; then :
19068 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
="assuming no"
19070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19071 /* end confdefs.h. */
19072 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19081 if ac_fn_c_try_run
"$LINENO"; then :
19082 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
=yes
19084 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
=no
19086 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19087 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19090 LDFLAGS
="$pgac_save_LDFLAGS"
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
19093 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
19094 if test x
"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x
"yes"; then
19095 LDFLAGS
="$LDFLAGS -Wl,-Bdynamic"
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
19100 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
19101 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false
; then :
19102 $as_echo_n "(cached) " >&6
19104 pgac_save_LDFLAGS
=$LDFLAGS
19105 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
19106 if test "$cross_compiling" = yes; then :
19107 pgac_cv_prog_cc_ldflags__Wl___as_needed
="assuming no"
19109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19110 /* end confdefs.h. */
19111 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19120 if ac_fn_c_try_run
"$LINENO"; then :
19121 pgac_cv_prog_cc_ldflags__Wl___as_needed
=yes
19123 pgac_cv_prog_cc_ldflags__Wl___as_needed
=no
19125 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19126 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19129 LDFLAGS
="$pgac_save_LDFLAGS"
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
19132 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
19133 if test x
"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x
"yes"; then
19134 LDFLAGS
="$LDFLAGS -Wl,--as-needed"
19139 # Create compiler version string
19140 if test x
"$GCC" = x
"yes" ; then
19141 cc_string
=`${CC} --version | sed q`
19142 case $cc_string in [A-Za-z
]*) ;; *) cc_string
="GCC $cc_string";; esac
19143 elif test x
"$SUN_STUDIO_CC" = x
"yes" ; then
19144 cc_string
=`${CC} -V 2>&1 | sed q`
19150 cat >>confdefs.h
<<_ACEOF
19151 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
19155 # Supply a numeric version string for use by 3rd party add-ons
19156 # awk -F is a regex on some platforms, and not on others, so make "." a tab
19157 PG_VERSION_NUM
="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
19159 $AWK '{printf "%d
%04d
", $1, $2}'`"
19161 cat >>confdefs.h
<<_ACEOF
19162 #define PG_VERSION_NUM $PG_VERSION_NUM
19167 # If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not
19168 # literally, so that it's possible to override it at build time using
19169 # a command like "make ... PG_SYSROOT=path". This has to be done after
19170 # we've finished all configure checks that depend on CPPFLAGS.
19171 if test x
"$PG_SYSROOT" != x
; then
19172 CPPFLAGS
=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19177 # Begin output steps
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
19180 $as_echo "$as_me: using compiler=$cc_string" >&6;}
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
19182 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
19184 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
19186 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
19187 # Currently only used when LLVM is used
19188 if test "$with_llvm" = yes ; then
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5
19190 $as_echo "$as_me: using CXX=$CXX" >&6;}
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5
19192 $as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5
19194 $as_echo "$as_me: using CLANG=$CLANG" >&6;}
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5
19196 $as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;}
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5
19198 $as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;}
19201 # prepare build tree if outside source tree
19202 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
19203 # Note 2: /bin/pwd might be better than shell's built-in at getting
19204 # a symlink-free name.
19205 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
19209 if test "$no_create" != yes; then
19210 $as_echo_n "preparing build tree... " >&6
19211 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
19212 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
19213 || as_fn_error $?
"failed" "$LINENO" 5
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19215 $as_echo "done" >&6; }
19221 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
19224 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}"
19227 if test "$PORTNAME" = "win32"; then
19228 ac_config_commands
="$ac_config_commands check_win32_symlinks"
19232 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
19235 ac_config_headers
="$ac_config_headers src/include/pg_config_ext.h"
19238 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
19241 cat >confcache
<<\_ACEOF
19242 # This file is a shell script that caches the results of configure
19243 # tests run on this system so they can be shared between configure
19244 # scripts and configure runs, see configure's option --config-cache.
19245 # It is not useful on other systems. If it contains results you don't
19246 # want to keep, you may remove or edit it.
19248 # config.status only pays attention to the cache file if you give it
19249 # the --recheck option to rerun configure.
19251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19253 # following values.
19257 # The following way of writing the cache mishandles newlines in values,
19258 # but we know of no workaround that is simple, portable, and efficient.
19259 # So, we kill variables containing newlines.
19260 # Ultrix sh set writes to stderr and can't be redirected directly,
19261 # and sets the high bit in the cache file unless we assign to the vars.
19263 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19264 eval ac_val
=\$
$ac_var
19268 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19269 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19272 _ | IFS | as_nl
) ;; #(
19273 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19274 *) { eval $ac_var=; unset $ac_var;} ;;
19280 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19281 *${as_nl}ac_space
=\
*)
19282 # `set' does not quote correctly, so add quotes: double-quote
19283 # substitution turns \\\\ into \\, and sed turns \\ into \.
19286 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19289 # `set' quotes correctly as required by POSIX, so do not add quotes.
19290 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19301 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19303 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19304 if test -w "$cache_file"; then
19305 if test "x$cache_file" != "x/dev/null"; then
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19307 $as_echo "$as_me: updating cache $cache_file" >&6;}
19308 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19309 cat confcache
>"$cache_file"
19311 case $cache_file in #(
19313 mv -f confcache
"$cache_file"$$
&&
19314 mv -f "$cache_file"$$
"$cache_file" ;; #(
19316 mv -f confcache
"$cache_file" ;;
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19322 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19327 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19328 # Let make expand exec_prefix.
19329 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19331 DEFS
=-DHAVE_CONFIG_H
19336 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19337 # 1. Remove the extension, and $U if already installed.
19338 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19339 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19340 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19341 # will be set to the directory where LIBOBJS objects are built.
19342 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19343 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19345 LIBOBJS
=$ac_libobjs
19347 LTLIBOBJS
=$ac_ltlibobjs
19352 : "${CONFIG_STATUS=./config.status}"
19354 ac_clean_files_save
=$ac_clean_files
19355 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19357 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19359 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19361 # Generated by $as_me.
19362 # Run this file to recreate the current configuration.
19363 # Compiler output produced by configure, useful for debugging
19364 # configure, is in config.log if it exists.
19367 ac_cs_recheck=false
19370 SHELL=\${CONFIG_SHELL-$SHELL}
19373 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19374 ## -------------------- ##
19375 ## M4sh Initialization. ##
19376 ## -------------------- ##
19378 # Be more Bourne compatible
19379 DUALCASE
=1; export DUALCASE
# for MKS sh
19380 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19383 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19384 # is contrary to our usage. Disable this feature.
19385 alias -g '${1+"$@"}'='"$@"'
19386 setopt NO_GLOB_SUBST
19388 case `(set -o) 2>/dev/null` in #(
19400 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19401 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19402 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19404 # Prefer a ksh shell builtin over an external printf program on Solaris,
19405 # but without wasting forks for bash or zsh.
19406 if test -z "$BASH_VERSION$ZSH_VERSION" \
19407 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19408 as_echo='print
-r --'
19409 as_echo_n='print
-rn --'
19410 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19411 as_echo='printf %s
\n'
19412 as_echo_n='printf %s
'
19414 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19415 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19416 as_echo_n='/usr
/ucb
/echo -n'
19418 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19419 as_echo_n_body='eval
19423 expr "X$arg" : "X\\(.*\\)$as_nl";
19424 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19426 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19428 export as_echo_n_body
19429 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19431 export as_echo_body
19432 as_echo='sh
-c $as_echo_body as_echo
'
19435 # The user is always right.
19436 if test "${PATH_SEPARATOR+set}" != set; then
19438 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19439 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19446 # We need space, tab and new line, in precisely that order. Quoting is
19447 # there to prevent editors from complaining about space-tab.
19448 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19449 # splitting by setting IFS to empty value.)
19452 # Find who we are. Look in the path if we contain no directory separator.
19455 *[\\/]* ) as_myself=$0 ;;
19456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19457 for as_dir in $PATH
19460 test -z "$as_dir" && as_dir=.
19461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19467 # We did not find ourselves, most probably we were run as `sh COMMAND'
19468 # in which case we are not to be found in the path.
19469 if test "x$as_myself" = x
; then
19472 if test ! -f "$as_myself"; then
19473 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19477 # Unset variables that we do not need and which cause bugs (e.g. in
19478 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19479 # suppresses any "Segmentation fault" message there. '((' could
19480 # trigger a bug in pdksh 5.2.14.
19481 for as_var
in BASH_ENV ENV MAIL MAILPATH
19482 do eval test x\
${$as_var+set} = xset \
19483 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19496 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19499 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19500 # ----------------------------------------
19501 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19502 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19503 # script with STATUS, using 1 if that was 0.
19506 as_status
=$1; test $as_status -eq 0 && as_status
=1
19508 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19509 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19511 $as_echo "$as_me: error: $2" >&2
19512 as_fn_exit
$as_status
19516 # as_fn_set_status STATUS
19517 # -----------------------
19518 # Set $? to STATUS, without forking.
19519 as_fn_set_status
()
19522 } # as_fn_set_status
19524 # as_fn_exit STATUS
19525 # -----------------
19526 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19530 as_fn_set_status
$1
19536 # Portably unset VAR.
19539 { eval $1=; unset $1;}
19541 as_unset
=as_fn_unset
19542 # as_fn_append VAR VALUE
19543 # ----------------------
19544 # Append the text in VALUE to the end of the definition contained in VAR. Take
19545 # advantage of any shell optimizations that allow amortized linear growth over
19546 # repeated appends, instead of the typical quadratic growth present in naive
19548 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19549 eval 'as_fn_append ()
19560 # as_fn_arith ARG...
19561 # ------------------
19562 # Perform arithmetic evaluation on the ARGs, and store the result in the
19563 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19564 # must be portable across $(()) and expr.
19565 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19566 eval 'as_fn_arith ()
19573 as_val
=`expr "$@" || test $? -eq 1`
19578 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19579 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19585 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19586 as_basename
=basename
19591 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19597 as_me
=`$as_basename -- "$0" ||
19598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19599 X"$0" : 'X\(//\)$' \| \
19600 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19602 sed '/^.*\/\([^/][^/]*\)\/*$/{
19616 # Avoid depending upon Character Ranges.
19617 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19618 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19619 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19620 as_cr_digits
='0123456789'
19621 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19623 ECHO_C
= ECHO_N
= ECHO_T
=
19624 case `echo -n x` in #(((((
19626 case `echo 'xy\c'` in
19627 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19629 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19636 rm -f conf$$ conf$$.exe conf$$.
file
19637 if test -d conf$$.dir
; then
19638 rm -f conf$$.dir
/conf$$.
file
19641 mkdir conf$$.dir
2>/dev
/null
19643 if (echo >conf$$.
file) 2>/dev
/null
; then
19644 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19646 # ... but there are two gotchas:
19647 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19648 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19649 # In both cases, we have to default to `cp -pR'.
19650 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19652 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19660 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19661 rmdir conf$$.dir
2>/dev
/null
19666 # Create "$as_dir" as a directory, including parents if necessary.
19671 -*) as_dir
=.
/$as_dir;;
19673 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19677 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19678 *) as_qdir
=$as_dir;;
19680 as_dirs
="'$as_qdir' $as_dirs"
19681 as_dir
=`$as_dirname -- "$as_dir" ||
19682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19683 X"$as_dir" : 'X\(//\)[^/]' \| \
19684 X"$as_dir" : 'X\(//\)$' \| \
19685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19686 $as_echo X"$as_dir" |
19687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19691 /^X\(\/\/\)[^/].*/{
19704 test -d "$as_dir" && break
19706 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19707 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19711 if mkdir
-p .
2>/dev
/null
; then
19712 as_mkdir_p
='mkdir -p "$as_dir"'
19714 test -d .
/-p && rmdir .
/-p
19719 # as_fn_executable_p FILE
19720 # -----------------------
19721 # Test if FILE is an executable regular file.
19722 as_fn_executable_p
()
19724 test -f "$1" && test -x "$1"
19725 } # as_fn_executable_p
19726 as_test_x
='test -x'
19727 as_executable_p
=as_fn_executable_p
19729 # Sed expression to map a string onto a valid CPP name.
19730 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19732 # Sed expression to map a string onto a valid variable name.
19733 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19737 ## ----------------------------------- ##
19738 ## Main body of $CONFIG_STATUS script. ##
19739 ## ----------------------------------- ##
19741 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19744 # Save the log message, to keep $0 and so on meaningful, and to
19745 # report actual input values of CONFIG_FILES etc. instead of their
19746 # values after options handling.
19748 This file was extended by PostgreSQL $as_me 13devel, which was
19749 generated by GNU Autoconf 2.69. Invocation command line was
19751 CONFIG_FILES = $CONFIG_FILES
19752 CONFIG_HEADERS = $CONFIG_HEADERS
19753 CONFIG_LINKS = $CONFIG_LINKS
19754 CONFIG_COMMANDS = $CONFIG_COMMANDS
19757 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19762 case $ac_config_files in *"
19763 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19766 case $ac_config_headers in *"
19767 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19772 # Files that config.status was made for.
19773 config_files="$ac_config_files"
19774 config_headers="$ac_config_headers"
19775 config_links="$ac_config_links"
19776 config_commands="$ac_config_commands"
19780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19782 \`$as_me' instantiates files and other configuration actions
19783 from templates according to the current configuration. Unless the files
19784 and actions are specified as TAGs, all are instantiated by default.
19786 Usage: $0 [OPTION]... [TAG]...
19788 -h, --help print this help, then exit
19789 -V, --version print version number and configuration settings, then exit
19790 --config print configuration, then exit
19791 -q, --quiet, --silent
19792 do not print progress messages
19793 -d, --debug don't remove temporary files
19794 --recheck update $as_me by reconfiguring in the same conditions
19795 --file=FILE[:TEMPLATE]
19796 instantiate the configuration file FILE
19797 --header=FILE[:TEMPLATE]
19798 instantiate the configuration header FILE
19800 Configuration files:
19803 Configuration headers:
19806 Configuration links:
19809 Configuration commands:
19812 Report bugs to <pgsql-bugs@lists.postgresql.org>."
19815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19816 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19818 PostgreSQL config.status 13devel
19819 configured by $0, generated by GNU Autoconf 2.69,
19820 with options \\"\$ac_cs_config\\"
19822 Copyright (C) 2012 Free Software Foundation, Inc.
19823 This config.status script is free software; the Free Software Foundation
19824 gives unlimited permission to copy, distribute and modify it."
19831 test -n "\$AWK" || AWK=awk
19834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19835 # The default lists apply if the user does not specify any file.
19841 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19842 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19846 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19858 # Handling of the options.
19859 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19861 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19862 $as_echo "$ac_cs_version"; exit ;;
19863 --config |
--confi |
--conf |
--con |
--co |
--c )
19864 $as_echo "$ac_cs_config"; exit ;;
19865 --debug |
--debu |
--deb |
--de |
--d |
-d )
19867 --file |
--fil |
--fi |
--f )
19870 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19871 '') as_fn_error $?
"missing file argument" ;;
19873 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19874 ac_need_defaults
=false
;;
19875 --header |
--heade |
--head |
--hea )
19878 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19880 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19881 ac_need_defaults
=false
;;
19883 # Conflict between --help and --header
19884 as_fn_error $?
"ambiguous option: \`$1'
19885 Try \`$0 --help' for more information.";;
19886 --help |
--hel |
-h )
19887 $as_echo "$ac_cs_usage"; exit ;;
19888 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19889 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19892 # This is an error.
19893 -*) as_fn_error $?
"unrecognized option: \`$1'
19894 Try \`$0 --help' for more information." ;;
19896 *) as_fn_append ac_config_targets
" $1"
19897 ac_need_defaults
=false
;;
19903 ac_configure_extra_args
=
19905 if $ac_cs_silent; then
19907 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19912 if \$ac_cs_recheck; then
19913 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19915 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19916 CONFIG_SHELL='$SHELL'
19917 export CONFIG_SHELL
19922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19926 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19927 ## Running $as_me. ##
19933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19938 # Handling of arguments.
19939 for ac_config_target
in $ac_config_targets
19941 case $ac_config_target in
19942 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
19943 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
19944 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
19945 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
19946 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
19947 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
19948 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
19949 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
19950 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
19951 "src/include/pg_config_ext.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
19952 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
19954 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19959 # If the user did not use the arguments to specify the items to instantiate,
19960 # then the envvar interface is used. Set only those that are not.
19961 # We use the long form for the default assignment because of an extremely
19962 # bizarre bug on SunOS 4.1.3.
19963 if $ac_need_defaults; then
19964 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19965 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19966 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
19967 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19970 # Have a temporary directory for convenience. Make it in the build tree
19971 # simply because there is no reason against having it here, and in addition,
19972 # creating and moving files from /tmp can sometimes cause problems.
19973 # Hook for its removal unless debugging.
19974 # Note that there is a small window in which the directory will not be cleaned:
19975 # after its creation but before its name has been assigned to `$tmp'.
19979 trap 'exit_status=$?
19980 : "${ac_tmp:=$tmp}"
19981 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19983 trap 'as_fn_exit 1' 1 2 13 15
19985 # Create a (secure) tmp directory for tmp files.
19988 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19992 tmp
=.
/conf$$
-$RANDOM
19993 (umask 077 && mkdir
"$tmp")
19994 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19997 # Set up the scripts for CONFIG_FILES section.
19998 # No need to generate them if there are no CONFIG_FILES.
19999 # This happens for instance with `./config.status config.h'.
20000 if test -n "$CONFIG_FILES"; then
20003 ac_cr
=`echo X | tr X '\015'`
20004 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20005 # But we know of no other shell where ac_cr would be empty at this
20006 # point, so we can use a bashism as a fallback.
20007 if test "x$ac_cr" = x
; then
20008 eval ac_cr
=\$
\'\\r
\'
20010 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20011 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20014 ac_cs_awk_cr
=$ac_cr
20017 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20022 echo "cat >conf$$subs.awk <<_ACEOF" &&
20023 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20025 } >conf$$subs.sh ||
20026 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20027 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20029 for ac_last_try in false false false false false :; do
20030 . ./conf$$subs.sh ||
20031 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20033 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20034 if test $ac_delim_n = $ac_delim_num; then
20036 elif $ac_last_try; then
20037 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20039 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20042 rm -f conf$$subs.sh
20044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20045 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20049 s/^/S["/; s
/!.
*/"]=/
20059 s/\(.\{148\}\)..*/\1/
20061 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20066 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20073 s/\(.\{148\}\)..*/\1/
20075 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20079 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20084 ' <conf$$subs.awk | sed '
20089 ' >>$CONFIG_STATUS || ac_write_fail=1
20090 rm -f conf$$subs.awk
20091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20093 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20094 for (key in S) S_is_set[key] = 1
20100 nfields = split(line, field, "@
")
20102 len = length(field[1])
20103 for (i = 2; i < nfields; i++) {
20105 keylen = length(key)
20106 if (S_is_set[key]) {
20108 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20109 len += length(value) + length(field[++i])
20120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20121 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20122 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20125 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20126 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20129 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20130 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20131 # trailing colons and then remove the whole line if VPATH becomes empty
20132 # (actually we leave an empty line to preserve line numbers).
20133 if test "x
$srcdir" = x.; then
20134 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20153 fi # test -n "$CONFIG_FILES"
20155 # Set up the scripts for CONFIG_HEADERS section.
20156 # No need to generate them if there are no CONFIG_HEADERS.
20157 # This happens for instance with `./config.status Makefile'.
20158 if test -n "$CONFIG_HEADERS"; then
20159 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20163 # Transform confdefs.h into an awk script `defines.awk', embedded as
20164 # here-document in config.status, that substitutes the proper values into
20165 # config.h.in to produce config.h.
20167 # Create a delimiter string that does not exist in confdefs.h, to ease
20168 # handling of long lines.
20170 for ac_last_try in false false :; do
20171 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20172 if test -z "$ac_tt"; then
20174 elif $ac_last_try; then
20175 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20177 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20181 # For the awk script, D is an array of macro values keyed by name,
20182 # likewise P contains macro parameters if any. Preserve backslash
20183 # newline sequences.
20185 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20187 s/.\{148\}/&'"$ac_delim"'/g
20190 s/^[ ]*#[ ]*define[ ][ ]*/ /
20197 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20199 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20203 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20204 D["\
1"]=" \
3\\\\\\n
"\\/p
20206 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20211 s/.\{148\}/&'"$ac_delim"'/g
20216 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20219 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20221 ' <confdefs.h | sed '
20222 s/'"$ac_delim"'/"\\\
20223 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20226 for (key in D) D_is_set[key] = 1
20229 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20231 split(line, arg, " ")
20232 if (arg[1] == "#") {
20236 defundef
= substr
(arg
[1], 2)
20239 split(mac1
, mac2
, "(") #)
20241 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20242 if (D_is_set
[macro
]) {
20243 # Preserve the white space surrounding the "#".
20244 print prefix
"define", macro P
[macro
] D
[macro
]
20247 # Replace #undef with comments. This is necessary, for example,
20248 # in the case of _POSIX_SOURCE, which is predefined and required
20249 # on some systems where configure will not decide to define it.
20250 if (defundef
== "undef") {
20251 print
"/*", prefix defundef
, macro
, "*/"
20259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20260 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20261 fi # test -n "$CONFIG_HEADERS"
20264 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20269 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20271 case $ac_mode$ac_tag in
20273 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20274 :[FH
]-) ac_tag
=-:-;;
20275 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20292 -) ac_f
="$ac_tmp/stdin";;
20293 *) # Look for the file first in the build tree, then in the source tree
20294 # (if the path is not absolute). The absolute path cannot be DOS-style,
20295 # because $ac_f cannot contain `:'.
20299 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20301 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20303 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20304 as_fn_append ac_file_inputs
" '$ac_f'"
20307 # Let's still pretend it is `configure' which instantiates (i.e., don't
20308 # use $as_me), people would be surprised to read:
20309 # /* config.h. Generated by config.status. */
20310 configure_input
='Generated from '`
20311 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20313 if test x
"$ac_file" != x-
; then
20314 configure_input
="$ac_file. $configure_input"
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20316 $as_echo "$as_me: creating $ac_file" >&6;}
20318 # Neutralize special characters interpreted by sed in replacement strings.
20319 case $configure_input in #(
20320 *\
&* |
*\|
* |
*\\* )
20321 ac_sed_conf_input
=`$as_echo "$configure_input" |
20322 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20323 *) ac_sed_conf_input
=$configure_input;;
20327 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20328 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20333 ac_dir
=`$as_dirname -- "$ac_file" ||
20334 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20335 X"$ac_file" : 'X\(//\)[^/]' \| \
20336 X"$ac_file" : 'X\(//\)$' \| \
20337 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20338 $as_echo X"$ac_file" |
20339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20343 /^X\(\/\/\)[^/].*/{
20356 as_dir
="$ac_dir"; as_fn_mkdir_p
20360 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20362 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20363 # A ".." for each directory in $ac_dir_suffix.
20364 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20365 case $ac_top_builddir_sub in
20366 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20367 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20370 ac_abs_top_builddir
=$ac_pwd
20371 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20372 # for backward compatibility:
20373 ac_top_builddir
=$ac_top_build_prefix
20376 .
) # We are building in place.
20378 ac_top_srcdir
=$ac_top_builddir_sub
20379 ac_abs_top_srcdir
=$ac_pwd ;;
20380 [\\/]* | ?
:[\\/]* ) # Absolute name.
20381 ac_srcdir
=$srcdir$ac_dir_suffix;
20382 ac_top_srcdir
=$srcdir
20383 ac_abs_top_srcdir
=$srcdir ;;
20384 *) # Relative name.
20385 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20386 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20387 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20389 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20399 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20400 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20402 ac_MKDIR_P
=$MKDIR_P
20404 [\\/$
]* | ?
:[\\/]* ) ;;
20405 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20410 # If the template does not know about datarootdir, expand it.
20411 # FIXME: This hack should be removed a few years after 2.60.
20412 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20423 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20424 *datarootdir
*) ac_datarootdir_seen
=yes;;
20425 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20427 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20430 ac_datarootdir_hack='
20431 s&@datadir@&$datadir&g
20432 s&@docdir@&$docdir&g
20433 s&@infodir@&$infodir&g
20434 s&@localedir@&$localedir&g
20435 s&@mandir@&$mandir&g
20436 s&\\\${datarootdir}&$datarootdir&g' ;;
20440 # Neutralize VPATH when `$srcdir' = `.'.
20441 # Shell code in configure.ac might set extrasub.
20442 # FIXME: do we really want to maintain this feature?
20443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20444 ac_sed_extra="$ac_vpsub
20447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20449 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20450 s|@configure_input@|
$ac_sed_conf_input|
;t t
20451 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20452 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20453 s
&@srcdir@
&$ac_srcdir&;t t
20454 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20455 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20456 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20457 s
&@builddir@
&$ac_builddir&;t t
20458 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20459 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20460 s
&@INSTALL@
&$ac_INSTALL&;t t
20461 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20462 $ac_datarootdir_hack
20464 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
20465 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20467 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20468 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20469 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20470 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20472 which seems to be undefined. Please make sure it is defined" >&5
20473 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20474 which seems to be undefined. Please make sure it is defined" >&2;}
20476 rm -f "$ac_tmp/stdin"
20478 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20479 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20487 if test x"$ac_file" != x-; then
20489 $as_echo "/* $configure_input */" \
20490 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20491 } >"$ac_tmp/config.h" \
20492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20493 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20495 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20498 mv "$ac_tmp/config.h" "$ac_file" \
20499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20502 $as_echo "/* $configure_input */" \
20503 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20504 || as_fn_error $? "could not create -" "$LINENO" 5
20512 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20515 # Prefer the file from the source tree if names are identical.
20516 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20517 ac_source=$srcdir/$ac_source
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20521 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20523 if test ! -r "$ac_source"; then
20524 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20528 # Try a relative symlink, then a hard link, then a copy.
20530 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20531 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20533 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20534 ln "$ac_source" "$ac_file" 2>/dev/null ||
20535 cp -p "$ac_source" "$ac_file" ||
20536 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20539 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20540 $as_echo "$as_me: executing $ac_file commands" >&6;}
20545 case $ac_file$ac_mode in
20546 "check_win32_symlinks":C)
20547 # Links sometimes fail undetected on Mingw -
20548 # so here we detect it and warn the user
20549 for FILE in $CONFIG_LINKS
20551 # test -e works for symlinks in the MinGW console
20552 test -e `expr "$FILE" : '\
([^
:]*\
)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
20553 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
20556 "src/include/pg_config.h":H)
20557 # Update timestamp for pg_config.h (see Makefile.global)
20558 echo >src/include/stamp-h
20560 "src/include/pg_config_ext.h":H)
20561 # Update timestamp for pg_config_ext.h (see Makefile.global)
20562 echo >src/include/stamp-ext-h
20564 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
20572 ac_clean_files=$ac_clean_files_save
20574 test $ac_write_fail = 0 ||
20575 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20578 # configure is writing to config.log, and then calls config.status.
20579 # config.status does its own redirection, appending to config.log.
20580 # Unfortunately, on DOS this fails, as config.log is still kept open
20581 # by configure, so config.status won't be able to
write to it
; its
20582 # output is simply discarded. So we exec the FD to /dev/null,
20583 # effectively closing config.log, so it can be properly (re)opened and
20584 # appended to by config.status. When coming back to configure, we
20585 # need to make the FD available again.
20586 if test "$no_create" != yes; then
20588 ac_config_status_args
=
20589 test "$silent" = yes &&
20590 ac_config_status_args
="$ac_config_status_args --quiet"
20592 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20595 # would make configure fail if this is the last instruction.
20596 $ac_cs_success || as_fn_exit
1
20598 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20600 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}