2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 11devel.
5 # Report bugs to <pgsql-bugs@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-2018, 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@postgresql.org about your system, including
273 $0: any error possibly output before this message. Then
274 $0: install a modern shell, or manually run the script
275 $0: 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='11devel'
586 PACKAGE_STRING='PostgreSQL 11devel'
587 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
590 ac_unique_file="src/backend/access/common/heaptuple.c"
591 ac_default_prefix=/usr/local/pgsql
592 # Factoring default headers for most tests.
593 ac_includes_default="\
595 #ifdef HAVE_SYS_TYPES_H
596 # include <sys/types.h>
598 #ifdef HAVE_SYS_STAT_H
599 # include <sys/stat.h>
605 # ifdef HAVE_STDLIB_H
610 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #ifdef HAVE_STRINGS_H
616 # include <strings.h>
618 #ifdef HAVE_INTTYPES_H
619 # include <inttypes.h>
628 ac_subst_vars='LTLIBOBJS
662 python_additional_libs
805 program_transform_name
818 enable_option_checking
824 enable_integer_datetimes
859 with_libedit_preferred
871 ac_precious_vars='build_alias
894 # Initialize some variables set by options.
896 ac_init_version=false
897 ac_unrecognized_opts=
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
908 program_transform_name=s,x,x,
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
983 cache_file=config.cache ;;
985 -datadir | --datadir | --datadi | --datad)
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
997 -disable-* | --disable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error $? "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_$ac_useropt"
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1011 eval enable_$ac_useropt=no ;;
1013 -docdir | --docdir | --docdi | --doc | --do)
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1023 -enable-* | --enable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1037 eval enable_$ac_useropt=\$ac_optarg ;;
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068 htmldir=$ac_optarg ;;
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1082 -libdir | --libdir | --libdi | --libd)
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1173 -psdir | --psdir | --psdi | --psd | --ps)
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 sbindir=$ac_optarg ;;
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 sharedstatedir=$ac_optarg ;;
1199 -site | --site | --sit)
1201 -site=* | --site=* | --sit=*)
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1241 eval with_$ac_useropt=\$ac_optarg ;;
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1257 eval with_$ac_useropt=no ;;
1260 # Obsolete; use --with-x.
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1292 # FIXME: should be removed in autoconf 3.0.
1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error $? "missing argument to $ac_option"
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315 # Check all directory arguments for consistency.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1328 # Be sure to have absolute directory names.
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1341 target=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 elif test "x$build_alias" != "x$host_alias"; then
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355 test "$silent" = yes && exec 6>/dev/null
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error $? "pwd does not report name of working directory"
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1398 ac_srcdir_defaulted=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 # Report the --help message.
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1432 \`configure' configures PostgreSQL 11devel to adapt to many kinds of systems.
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1439 Defaults for the options are specified in brackets.
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1463 For better control, use the options below.
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1495 if test -n "$ac_init_help"; then
1496 case $ac_init_help in
1497 short | recursive ) echo "Configuration of PostgreSQL 11devel:";;
1502 --disable-option-checking ignore unrecognized --enable/--with options
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505 --disable-integer-datetimes
1506 obsolete option, no longer supported
1507 --enable-nls[=LANGUAGES]
1508 enable Native Language Support
1509 --disable-rpath do not embed shared library search path in
1511 --disable-spinlocks do not use spinlocks
1512 --disable-atomics do not use atomic operations
1513 --disable-strong-random do not use a strong random number source
1514 --enable-debug build with debugging symbols (-g)
1515 --enable-profiling build with profiling enabled
1516 --enable-coverage build with coverage testing instrumentation
1517 --enable-dtrace build with DTrace support
1518 --enable-tap-tests enable TAP tests (requires Perl and IPC::Run)
1519 --enable-depend turn on automatic dependency tracking
1520 --enable-cassert enable assertion checks (for debugging)
1521 --disable-thread-safety disable thread-safety in client libraries
1522 --disable-largefile omit support for large files
1523 --disable-float4-byval disable float4 passed by value
1524 --disable-float8-byval disable float8 passed by value
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1529 --with-extra-version=STRING
1530 append STRING to version
1531 --with-template=NAME override operating system template
1532 --with-includes=DIRS look for additional header files in DIRS
1533 --with-libraries=DIRS look for additional libraries in DIRS
1534 --with-libs=DIRS alternative spelling of --with-libraries
1535 --with-pgport=PORTNUM set default port number [5432]
1536 --with-blocksize=BLOCKSIZE
1537 set table block size in kB [8]
1538 --with-segsize=SEGSIZE set table segment size in GB [1]
1539 --with-wal-blocksize=BLOCKSIZE
1540 set WAL block size in kB [8]
1541 --with-CC=CMD set compiler (deprecated)
1542 --with-llvm build with LLVM based JIT support
1543 --with-icu build with ICU support
1544 --with-tcl build Tcl modules (PL/Tcl)
1545 --with-tclconfig=DIR tclConfig.sh is in DIR
1546 --with-perl build Perl modules (PL/Perl)
1547 --with-python build Python modules (PL/Python)
1548 --with-gssapi build with GSSAPI support
1549 --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
1551 --with-pam build with PAM support
1552 --with-bsd-auth build with BSD Authentication support
1553 --with-ldap build with LDAP support
1554 --with-bonjour build with Bonjour support
1555 --with-openssl build with OpenSSL support
1556 --with-selinux build with SELinux support
1557 --with-systemd build with systemd support
1558 --without-readline do not use GNU Readline nor BSD Libedit for editing
1559 --with-libedit-preferred
1560 prefer BSD Libedit over GNU Readline
1561 --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
1562 --with-ossp-uuid obsolete spelling of --with-uuid=ossp
1563 --with-libxml build with XML support
1564 --with-libxslt use XSLT support when building contrib/xml2
1565 --with-system-tzdata=DIR
1566 use system time zone data in DIR
1567 --without-zlib do not use Zlib
1568 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1570 Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
1578 CXX C++ compiler command
1579 CXXFLAGS C++ compiler flags
1580 LLVM_CONFIG path to llvm-config command
1581 CLANG path to clang compiler to generate bitcode
1583 PKG_CONFIG path to pkg-config utility
1585 directories to add to pkg-config's search path
1587 path overriding pkg-config's built-in search path
1588 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1589 ICU_LIBS linker flags for ICU, overriding pkg-config
1590 LDFLAGS_EX extra linker flags for linking executables only
1591 LDFLAGS_SL extra linker flags for linking shared libraries only
1593 Use these variables to override the choices made by `configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1596 Report bugs to <pgsql-bugs@postgresql.org>.
1601 if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1626 .) # We are building in place.
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
1631 ac_srcdir=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1659 PostgreSQL configure 11devel
1660 generated by GNU Autoconf 2.69
1662 Copyright (C) 2012 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1666 Copyright (c) 1996-2018, PostgreSQL Global Development Group
1671 ## ------------------------ ##
1672 ## Autoconf initialization. ##
1673 ## ------------------------ ##
1675 # ac_fn_c_try_compile LINENO
1676 # --------------------------
1677 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_compile ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext
1682 if { { ac_try="$ac_compile"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext; then :
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_compile
1713 # ac_fn_cxx_try_compile LINENO
1714 # ----------------------------
1715 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_cxx_try_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_cxx_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.$ac_objext; then :
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1749 } # ac_fn_cxx_try_compile
1751 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1752 # ---------------------------------------------
1753 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1755 ac_fn_c_check_decl ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 as_decl_name=`echo $2|sed 's/ *(.*//'`
1759 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1761 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1762 if eval \${$3+:} false; then :
1763 $as_echo_n "(cached) " >&6
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1771 #ifndef $as_decl_name
1773 (void) $as_decl_use;
1775 (void) $as_decl_name;
1783 if ac_fn_c_try_compile "$LINENO"; then :
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 } # ac_fn_c_check_decl
1797 # ac_fn_c_try_link LINENO
1798 # -----------------------
1799 # Try to link conftest.$ac_ext, and return whether this succeeded.
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext conftest$ac_exeext
1804 if { { ac_try="$ac_link"
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>conftest.err
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest$ac_exeext && {
1823 test "$cross_compiling" = yes ||
1824 test -x conftest$ac_exeext
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1835 # interfere with the next link command; also delete a directory that is
1836 # left behind by Apple's compiler. We do this before executing the actions.
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1841 } # ac_fn_c_try_link
1843 # ac_fn_c_try_cpp LINENO
1844 # ----------------------
1845 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 if { { ac_try="$ac_cpp conftest.$ac_ext"
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } > conftest.i && {
1865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1880 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1881 # -------------------------------------------------------
1882 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1883 # the include files in INCLUDES and setting the cache variable VAR
1885 ac_fn_c_check_header_mongrel ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if eval \${$3+:} false; then :
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1898 # Is the header compilable?
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1900 $as_echo_n "checking $2 usability... " >&6; }
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 ac_header_compiler=yes
1909 ac_header_compiler=no
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1913 $as_echo "$ac_header_compiler" >&6; }
1915 # Is the header present?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1917 $as_echo_n "checking $2 presence... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1922 if ac_fn_c_try_cpp "$LINENO"; then :
1923 ac_header_preproc=yes
1925 ac_header_preproc=no
1927 rm -f conftest.err conftest.i conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1929 $as_echo "$ac_header_preproc" >&6; }
1931 # So? What about this header?
1932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1935 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1941 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1943 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1945 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1947 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 ( $as_echo "## ---------------------------------------- ##
1951 ## Report this to pgsql-bugs@postgresql.org ##
1952 ## ---------------------------------------- ##"
1953 ) | sed "s/^/$as_me: WARNING: /" >&2
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1961 eval "$3=\$ac_header_compiler"
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 } # ac_fn_c_check_header_mongrel
1971 # ac_fn_c_try_run LINENO
1972 # ----------------------
1973 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1974 # that executables *can* be run.
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if { { ac_try="$ac_link"
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_link") 2>&5
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1989 { { case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_try") 2>&5
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; }; }; then :
2001 $as_echo "$as_me: program exited with status $ac_status" >&5
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2005 ac_retval=$ac_status
2007 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 as_fn_set_status $ac_retval
2013 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2014 # -------------------------------------------------------
2015 # Tests whether HEADER exists and can be compiled using the include files in
2016 # INCLUDES, setting the cache variable VAR accordingly.
2017 ac_fn_c_check_header_compile ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2030 if ac_fn_c_try_compile "$LINENO"; then :
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 } # ac_fn_c_check_header_compile
2044 # ac_fn_c_check_func LINENO FUNC VAR
2045 # ----------------------------------
2046 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2047 ac_fn_c_check_func ()
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2059 #define $2 innocuous_$2
2061 /* System header to define __stub macros and hopefully few prototypes,
2062 which can conflict with char $2 (); below.
2063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2064 <limits.h> exists even on freestanding compilers. */
2067 # include <limits.h>
2069 # include <assert.h>
2074 /* Override any GCC internal prototype to avoid an error.
2075 Use char because int might match the return type of a GCC
2076 builtin and then its argument prototype would still apply. */
2081 /* The GNU C library defines this for functions which it implements
2082 to always fail with ENOSYS. Some functions are actually named
2083 something starting with __ and the normal name is an alias. */
2084 #if defined __stub_$2 || defined __stub___$2
2096 if ac_fn_c_try_link "$LINENO"; then :
2101 rm -f core conftest.err conftest.$ac_objext \
2102 conftest$ac_exeext conftest.$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 } # ac_fn_c_check_func
2111 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2112 # -------------------------------------------
2113 # Tests whether TYPE exists after having included INCLUDES, setting cache
2114 # variable VAR accordingly.
2115 ac_fn_c_check_type ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119 $as_echo_n "checking for $2... " >&6; }
2120 if eval \${$3+:} false; then :
2121 $as_echo_n "(cached) " >&6
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2149 if ac_fn_c_try_compile "$LINENO"; then :
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160 $as_echo "$ac_res" >&6; }
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163 } # ac_fn_c_check_type
2165 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2166 # ----------------------------------------------------
2167 # Tries to find if the field MEMBER exists in type AGGR, after including
2168 # INCLUDES, setting cache variable VAR accordingly.
2169 ac_fn_c_check_member ()
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2173 $as_echo_n "checking for $2.$3... " >&6; }
2174 if eval \${$4+:} false; then :
2175 $as_echo_n "(cached) " >&6
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2190 if ac_fn_c_try_compile "$LINENO"; then :
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2200 if (sizeof ac_aggr.$3)
2206 if ac_fn_c_try_compile "$LINENO"; then :
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220 } # ac_fn_c_check_member
2222 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2223 # --------------------------------------------
2224 # Tries to find the compile-time value of EXPR in a program that includes
2225 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2227 ac_fn_c_compute_int ()
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 if test "$cross_compiling" = yes; then
2231 # Depending upon the size, compute the lo and hi bounds.
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2238 static int test_array [1 - 2 * !(($2) >= 0)];
2240 return test_array [0];
2246 if ac_fn_c_try_compile "$LINENO"; then :
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2255 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2257 return test_array [0];
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264 ac_hi=$ac_mid; break
2266 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2267 if test $ac_lo -le $ac_mid; then
2271 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2282 static int test_array [1 - 2 * !(($2) < 0)];
2284 return test_array [0];
2290 if ac_fn_c_try_compile "$LINENO"; then :
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2299 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2301 return test_array [0];
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308 ac_lo=$ac_mid; break
2310 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2311 if test $ac_mid -le $ac_hi; then
2315 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 # Binary search between lo and hi bounds.
2326 while test "x$ac_lo" != "x$ac_hi"; do
2327 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2334 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2336 return test_array [0];
2342 if ac_fn_c_try_compile "$LINENO"; then :
2345 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2357 static long int longval () { return $2; }
2358 static unsigned long int ulongval () { return $2; }
2365 FILE *f = fopen ("conftest.val", "w");
2370 long int i = longval ();
2373 fprintf (f, "%ld", i);
2377 unsigned long int i = ulongval ();
2380 fprintf (f, "%lu", i);
2382 /* Do not output a trailing newline, as this causes \r\n confusion
2383 on some platforms. */
2384 return ferror (f) || fclose (f) != 0;
2390 if ac_fn_c_try_run "$LINENO"; then :
2391 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2396 conftest.$ac_objext conftest.beam conftest.$ac_ext
2400 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2401 as_fn_set_status $ac_retval
2403 } # ac_fn_c_compute_int
2404 cat >config.log <<_ACEOF
2405 This file contains any messages produced by compilers while
2406 running configure, to aid debugging if configure makes a mistake.
2408 It was created by PostgreSQL $as_me 11devel, which was
2409 generated by GNU Autoconf 2.69. Invocation command line was
2421 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2422 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2423 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2424 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2425 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2427 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2428 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2430 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2431 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2432 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2433 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2434 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2435 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2436 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 $as_echo "PATH: $as_dir"
2461 # Keep a trace of the command line.
2462 # Strip out --no-create and --no-recursion so they do not pile up.
2463 # Strip out --silent because we don't want to record it for future runs.
2464 # Also quote any args containing shell meta-characters.
2465 # Make two passes to allow for proper duplicate-argument suppression.
2469 ac_must_keep_next=false
2475 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2477 | -silent | --silent | --silen | --sile | --sil)
2480 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2483 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2485 as_fn_append ac_configure_args1 " '$ac_arg'"
2486 if test $ac_must_keep_next = true; then
2487 ac_must_keep_next=false # Got value, back to normal.
2490 *=* | --config-cache | -C | -disable-* | --disable-* \
2491 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2492 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2493 | -with-* | --with-* | -without-* | --without-* | --x)
2494 case "$ac_configure_args0 " in
2495 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2498 -* ) ac_must_keep_next=true ;;
2501 as_fn_append ac_configure_args " '$ac_arg'"
2506 { ac_configure_args0=; unset ac_configure_args0;}
2507 { ac_configure_args1=; unset ac_configure_args1;}
2509 # When interrupted or exit'd, cleanup temporary files, and complete
2510 # config.log. We remove comments because anyway the quotes in there
2511 # would cause problems or look ugly.
2512 # WARNING: Use '\'' to represent an apostrophe within the trap.
2513 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2514 trap 'exit_status=$?
2515 # Save into config.log some information that might help in debugging.
2519 $as_echo "## ---------------- ##
2520 ## Cache variables. ##
2521 ## ---------------- ##"
2523 # The following way of writing the cache mishandles newlines in values,
2525 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2526 eval ac_val=\$$ac_var
2530 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2531 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2534 _ | IFS | as_nl) ;; #(
2535 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2536 *) { eval $ac_var=; unset $ac_var;} ;;
2541 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2542 *${as_nl}ac_space=\ *)
2544 "s/'\''/'\''\\\\'\'''\''/g;
2545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2548 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2555 $as_echo "## ----------------- ##
2556 ## Output variables. ##
2557 ## ----------------- ##"
2559 for ac_var in $ac_subst_vars
2561 eval ac_val=\$$ac_var
2563 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2565 $as_echo "$ac_var='\''$ac_val'\''"
2569 if test -n "$ac_subst_files"; then
2570 $as_echo "## ------------------- ##
2571 ## File substitutions. ##
2572 ## ------------------- ##"
2574 for ac_var in $ac_subst_files
2576 eval ac_val=\$$ac_var
2578 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2580 $as_echo "$ac_var='\''$ac_val'\''"
2585 if test -s confdefs.h; then
2586 $as_echo "## ----------- ##
2593 test "$ac_signal" != 0 &&
2594 $as_echo "$as_me: caught signal $ac_signal"
2595 $as_echo "$as_me: exit $exit_status"
2597 rm -f core *.core core.conftest.* &&
2598 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2601 for ac_signal in 1 2 13 15; do
2602 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2606 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2607 rm -f -r conftest* confdefs.h
2609 $as_echo "/* confdefs.h */" > confdefs.h
2611 # Predefined preprocessor variables.
2613 cat >>confdefs.h <<_ACEOF
2614 #define PACKAGE_NAME "$PACKAGE_NAME"
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_STRING "$PACKAGE_STRING"
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_URL "$PACKAGE_URL"
2638 # Let the site file select an alternate cache file if it wants to.
2639 # Prefer an explicitly selected file to automatically selected ones.
2642 if test -n "$CONFIG_SITE"; then
2643 # We do not want a PATH search for config.site.
2644 case $CONFIG_SITE in #((
2645 -*) ac_site_file1=./$CONFIG_SITE;;
2646 */*) ac_site_file1=$CONFIG_SITE;;
2647 *) ac_site_file1=./$CONFIG_SITE;;
2649 elif test "x$prefix" != xNONE; then
2650 ac_site_file1=$prefix/share/config.site
2651 ac_site_file2=$prefix/etc/config.site
2653 ac_site_file1=$ac_default_prefix/share/config.site
2654 ac_site_file2=$ac_default_prefix/etc/config.site
2656 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2658 test "x$ac_site_file" = xNONE && continue
2659 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2661 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2662 sed 's/^/| /' "$ac_site_file" >&5
2664 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666 as_fn_error $? "failed to load site script $ac_site_file
2667 See \`config.log' for more details" "$LINENO" 5; }
2671 if test -r "$cache_file"; then
2672 # Some versions of bash will fail to source /dev/null (special files
2673 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2674 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2676 $as_echo "$as_me: loading cache $cache_file" >&6;}
2678 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2679 *) . "./$cache_file";;
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2684 $as_echo "$as_me: creating cache $cache_file" >&6;}
2688 # Check that the precious variables saved in the cache have kept the same
2690 ac_cache_corrupted=false
2691 for ac_var in $ac_precious_vars; do
2692 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2693 eval ac_new_set=\$ac_env_${ac_var}_set
2694 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2695 eval ac_new_val=\$ac_env_${ac_var}_value
2696 case $ac_old_set,$ac_new_set in
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2699 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2700 ac_cache_corrupted=: ;;
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2703 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2704 ac_cache_corrupted=: ;;
2707 if test "x$ac_old_val" != "x$ac_new_val"; then
2708 # differences in whitespace do not lead to failure.
2709 ac_old_val_w=`echo x $ac_old_val`
2710 ac_new_val_w=`echo x $ac_new_val`
2711 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2713 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2714 ac_cache_corrupted=:
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2717 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2718 eval $ac_var=\$ac_old_val
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2721 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2723 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2726 # Pass precious variables to config.status.
2727 if test "$ac_new_set" = set; then
2729 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2730 *) ac_arg=$ac_var=$ac_new_val ;;
2732 case " $ac_configure_args " in
2733 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2734 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2738 if $ac_cache_corrupted; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2742 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2743 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2745 ## -------------------- ##
2746 ## Main body of script. ##
2747 ## -------------------- ##
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761 for ac_dir in config "$srcdir"/config; do
2762 if test -f "$ac_dir/install-sh"; then
2764 ac_install_sh="$ac_aux_dir/install-sh -c"
2766 elif test -f "$ac_dir/install.sh"; then
2768 ac_install_sh="$ac_aux_dir/install.sh -c"
2770 elif test -f "$ac_dir/shtool"; then
2772 ac_install_sh="$ac_aux_dir/shtool install -c"
2776 if test -z "$ac_aux_dir"; then
2777 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2780 # These three variables are undocumented and unsupported,
2781 # and are intended to be withdrawn in a future Autoconf release.
2782 # They can cause serious problems if a builder's source tree is in a directory
2783 # whose full name contains unusual characters.
2784 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2785 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2786 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2790 configure_args=$ac_configure_args
2793 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2796 cat >>confdefs.h <<_ACEOF
2797 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2804 # Check whether --with-extra-version was given.
2805 if test "${with_extra_version+set}" = set; then :
2806 withval=$with_extra_version;
2809 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2812 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2815 PG_VERSION="$PACKAGE_VERSION$withval"
2820 PG_VERSION="$PACKAGE_VERSION"
2825 cat >>confdefs.h <<_ACEOF
2826 #define PG_VERSION "$PG_VERSION"
2830 # Make sure we can run config.sub.
2831 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2832 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2835 $as_echo_n "checking build system type... " >&6; }
2836 if ${ac_cv_build+:} false; then :
2837 $as_echo_n "(cached) " >&6
2839 ac_build_alias=$build_alias
2840 test "x$ac_build_alias" = x &&
2841 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2842 test "x$ac_build_alias" = x &&
2843 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2844 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2845 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2849 $as_echo "$ac_cv_build" >&6; }
2850 case $ac_cv_build in
2852 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2855 ac_save_IFS=$IFS; IFS='-'
2861 # Remember, the first character of IFS is used to create $*,
2862 # except with old shells:
2865 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2869 $as_echo_n "checking host system type... " >&6; }
2870 if ${ac_cv_host+:} false; then :
2871 $as_echo_n "(cached) " >&6
2873 if test "x$host_alias" = x; then
2874 ac_cv_host=$ac_cv_build
2876 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2877 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2882 $as_echo "$ac_cv_host" >&6; }
2885 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2888 ac_save_IFS=$IFS; IFS='-'
2894 # Remember, the first character of IFS is used to create $*,
2895 # except with old shells:
2898 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2904 $as_echo_n "checking which template to use... " >&6; }
2909 # Check whether --with-template was given.
2910 if test "${with_template+set}" = set; then :
2911 withval=$with_template;
2914 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2917 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2922 list) echo; ls "$srcdir/src/template"; exit;;
2923 *) if test -f "$srcdir/src/template/$with_template" ; then
2926 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2935 # --with-template not given
2938 aix*) template=aix ;;
2939 cygwin*) template=cygwin ;;
2940 darwin*) template=darwin ;;
2941 dragonfly*) template=netbsd ;;
2942 freebsd*) template=freebsd ;;
2943 hpux*) template=hpux ;;
2944 linux*|gnu*|k*bsd*-gnu)
2946 mingw*) template=win32 ;;
2947 netbsd*) template=netbsd ;;
2948 openbsd*) template=openbsd ;;
2949 solaris*) template=solaris ;;
2952 if test x"$template" = x"" ; then
2954 *******************************************************************
2955 PostgreSQL has apparently not been ported to your platform yet.
2956 To try a manual configuration, look into the src/template directory
2957 for a similar platform and use the '--with-template=' option.
2959 Please also contact <pgsql-bugs@postgresql.org> to see about
2960 rectifying this. Include the above 'checking host system type...'
2962 *******************************************************************
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2972 $as_echo "$template" >&6; }
2977 # Initialize default assumption that we do not need separate assembly code
2978 # for TAS (test-and-set). This can be overridden by the template file
2979 # when it's executed.
2986 ## Command line options
2990 # Add non-standard directories to the include path
2995 # Check whether --with-includes was given.
2996 if test "${with_includes+set}" = set; then :
2997 withval=$with_includes;
3000 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3003 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3016 # Add non-standard directories to the library search path
3021 # Check whether --with-libraries was given.
3022 if test "${with_libraries+set}" = set; then :
3023 withval=$with_libraries;
3026 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3029 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3032 LIBRARY_DIRS=$withval
3043 # Check whether --with-libs was given.
3044 if test "${with_libs+set}" = set; then :
3048 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3051 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3054 LIBRARY_DIRS=$withval
3064 # 64-bit integer date/time storage is now the only option, but to avoid
3065 # unnecessary breakage of build scripts, continue to accept an explicit
3066 # "--enable-integer-datetimes" switch.
3070 # Check whether --enable-integer-datetimes was given.
3071 if test "${enable_integer_datetimes+set}" = set; then :
3072 enableval=$enable_integer_datetimes;
3078 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3081 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3086 enable_integer_datetimes=yes
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3097 $as_echo_n "checking whether NLS is wanted... " >&6; }
3100 # Check whether --enable-nls was given.
3101 if test "${enable_nls+set}" = set; then :
3102 enableval=$enable_nls;
3112 WANTED_LANGUAGES=$enableval
3122 if test "$enable_nls" = yes; then
3124 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3129 $as_echo "$enable_nls" >&6; }
3134 # Default port number (--with-pgport), default 5432
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3137 $as_echo_n "checking for default port number... " >&6; }
3141 # Check whether --with-pgport was given.
3142 if test "${with_pgport+set}" = set; then :
3143 withval=$with_pgport;
3146 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3149 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3152 default_port=$withval
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3162 $as_echo "$default_port" >&6; }
3163 # Need both of these because some places want an integer and some a string
3165 cat >>confdefs.h <<_ACEOF
3166 #define DEF_PGPORT ${default_port}
3170 cat >>confdefs.h <<_ACEOF
3171 #define DEF_PGPORT_STR "${default_port}"
3176 # It's worth validating port; you can get very confusing errors otherwise
3177 if test x"$default_port" = x""; then
3178 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3179 elif test ! x`echo "$default_port" | sed -e 's/[0-9]*//'` = x""; then
3180 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3181 elif test ! x`echo "$default_port" | sed -e 's/^0.//'` = x"$default_port"; then
3182 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3183 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3184 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3188 # '-rpath'-like feature can be disabled
3192 # Check whether --enable-rpath was given.
3193 if test "${enable_rpath+set}" = set; then :
3194 enableval=$enable_rpath;
3203 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3220 # Check whether --enable-spinlocks was given.
3221 if test "${enable_spinlocks+set}" = set; then :
3222 enableval=$enable_spinlocks;
3231 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3236 enable_spinlocks=yes
3247 # Check whether --enable-atomics was given.
3248 if test "${enable_atomics+set}" = set; then :
3249 enableval=$enable_atomics;
3258 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3270 # Random number generation
3274 # Check whether --enable-strong-random was given.
3275 if test "${enable_strong_random+set}" = set; then :
3276 enableval=$enable_strong_random;
3285 as_fn_error $? "no argument expected for --enable-strong-random option" "$LINENO" 5
3290 enable_strong_random=yes
3298 # --enable-debug adds -g to compiler flags
3302 # Check whether --enable-debug was given.
3303 if test "${enable_debug+set}" = set; then :
3304 enableval=$enable_debug;
3313 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3326 # --enable-profiling enables gcc profiling
3330 # Check whether --enable-profiling was given.
3331 if test "${enable_profiling+set}" = set; then :
3332 enableval=$enable_profiling;
3341 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3353 # --enable-coverage enables generation of code coverage metrics with gcov
3357 # Check whether --enable-coverage was given.
3358 if test "${enable_coverage+set}" = set; then :
3359 enableval=$enable_coverage;
3362 if test -z "$GCOV"; then
3365 # Extract the first word of "$ac_prog", so it can be a program name with args.
3366 set dummy $ac_prog; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if ${ac_cv_path_GCOV+:} false; then :
3370 $as_echo_n "(cached) " >&6
3374 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 GCOV=$ac_cv_path_GCOV
3396 if test -n "$GCOV"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3398 $as_echo "$GCOV" >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3405 test -n "$GCOV" && break
3409 # Report the value of GCOV in configure's output in all cases.
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3411 $as_echo_n "checking for GCOV... " >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3413 $as_echo "$GCOV" >&6; }
3416 if test -z "$GCOV"; then
3417 as_fn_error $? "gcov not found" "$LINENO" 5
3419 if test -z "$LCOV"; then
3422 # Extract the first word of "$ac_prog", so it can be a program name with args.
3423 set dummy $ac_prog; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if ${ac_cv_path_LCOV+:} false; then :
3427 $as_echo_n "(cached) " >&6
3431 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
3442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 LCOV=$ac_cv_path_LCOV
3453 if test -n "$LCOV"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3455 $as_echo "$LCOV" >&6; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3462 test -n "$LCOV" && break
3466 # Report the value of LCOV in configure's output in all cases.
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3468 $as_echo_n "checking for LCOV... " >&6; }
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3470 $as_echo "$LCOV" >&6; }
3473 if test -z "$LCOV"; then
3474 as_fn_error $? "lcov not found" "$LINENO" 5
3476 if test -z "$GENHTML"; then
3477 for ac_prog in genhtml
3479 # Extract the first word of "$ac_prog", so it can be a program name with args.
3480 set dummy $ac_prog; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_path_GENHTML+:} false; then :
3484 $as_echo_n "(cached) " >&6
3488 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 GENHTML=$ac_cv_path_GENHTML
3510 if test -n "$GENHTML"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3512 $as_echo "$GENHTML" >&6; }
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3519 test -n "$GENHTML" && break
3523 # Report the value of GENHTML in configure's output in all cases.
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3525 $as_echo_n "checking for GENHTML... " >&6; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3527 $as_echo "$GENHTML" >&6; }
3530 if test -z "$GENHTML"; then
3531 as_fn_error $? "genhtml not found" "$LINENO" 5
3538 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3555 # Check whether --enable-dtrace was given.
3556 if test "${enable_dtrace+set}" = set; then :
3557 enableval=$enable_dtrace;
3560 if test -z "$DTRACE"; then
3561 for ac_prog in dtrace
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if ${ac_cv_path_DTRACE+:} false; then :
3568 $as_echo_n "(cached) " >&6
3572 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 DTRACE=$ac_cv_path_DTRACE
3594 if test -n "$DTRACE"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3596 $as_echo "$DTRACE" >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3603 test -n "$DTRACE" && break
3607 # Report the value of DTRACE in configure's output in all cases.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3609 $as_echo_n "checking for DTRACE... " >&6; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3611 $as_echo "$DTRACE" >&6; }
3614 if test -z "$DTRACE"; then
3615 as_fn_error $? "dtrace not found" "$LINENO" 5
3623 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3640 # Check whether --enable-tap-tests was given.
3641 if test "${enable_tap_tests+set}" = set; then :
3642 enableval=$enable_tap_tests;
3651 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3667 $as_echo_n "checking for block size... " >&6; }
3671 # Check whether --with-blocksize was given.
3672 if test "${with_blocksize+set}" = set; then :
3673 withval=$with_blocksize;
3676 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3679 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3691 case ${blocksize} in
3698 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3701 $as_echo "${blocksize}kB" >&6; }
3704 cat >>confdefs.h <<_ACEOF
3705 #define BLCKSZ ${BLCKSZ}
3710 # Relation segment size
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3713 $as_echo_n "checking for segment size... " >&6; }
3717 # Check whether --with-segsize was given.
3718 if test "${with_segsize+set}" = set; then :
3719 withval=$with_segsize;
3722 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3725 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3737 # this expression is set up to avoid unnecessary integer overflow
3738 # blocksize is already guaranteed to be a factor of 1024
3739 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3740 test $? -eq 0 || exit 1
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3742 $as_echo "${segsize}GB" >&6; }
3745 cat >>confdefs.h <<_ACEOF
3746 #define RELSEG_SIZE ${RELSEG_SIZE}
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3754 $as_echo_n "checking for WAL block size... " >&6; }
3758 # Check whether --with-wal-blocksize was given.
3759 if test "${with_wal_blocksize+set}" = set; then :
3760 withval=$with_wal_blocksize;
3763 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3766 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3769 wal_blocksize=$withval
3778 case ${wal_blocksize} in
3779 1) XLOG_BLCKSZ=1024;;
3780 2) XLOG_BLCKSZ=2048;;
3781 4) XLOG_BLCKSZ=4096;;
3782 8) XLOG_BLCKSZ=8192;;
3783 16) XLOG_BLCKSZ=16384;;
3784 32) XLOG_BLCKSZ=32768;;
3785 64) XLOG_BLCKSZ=65536;;
3786 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3789 $as_echo "${wal_blocksize}kB" >&6; }
3792 cat >>confdefs.h <<_ACEOF
3793 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3801 # For historical reasons you can also use --with-CC to specify the C compiler
3802 # to use, although the standard way to do this is to set the CC environment
3807 # Check whether --with-CC was given.
3808 if test "${with_CC+set}" = set; then :
3812 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3815 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3827 aix) pgac_cc_list="gcc xlc"; pgac_cxx_list="g++ xlC";;
3828 *) pgac_cc_list="gcc cc"; pgac_cxx_list="g++ c++";;
3832 ac_cpp='$CPP $CPPFLAGS'
3833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 if test -n "$ac_tool_prefix"; then
3837 for ac_prog in $pgac_cc_list
3839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if ${ac_cv_prog_CC+:} false; then :
3844 $as_echo_n "(cached) " >&6
3846 if test -n "$CC"; then
3847 ac_cv_prog_CC="$CC" # Let the user override the test.
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 if test -n "$CC"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3869 $as_echo "$CC" >&6; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3876 test -n "$CC" && break
3879 if test -z "$CC"; then
3881 for ac_prog in $pgac_cc_list
3883 # Extract the first word of "$ac_prog", so it can be a program name with args.
3884 set dummy $ac_prog; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 if test -n "$ac_ct_CC"; then
3891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_prog_ac_ct_CC="$ac_prog"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3911 if test -n "$ac_ct_CC"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3913 $as_echo "$ac_ct_CC" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3920 test -n "$ac_ct_CC" && break
3923 if test "x$ac_ct_CC" = x; then
3926 case $cross_compiling:$ac_tool_warned in
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3930 ac_tool_warned=yes ;;
3937 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error $? "no acceptable C compiler found in \$PATH
3940 See \`config.log' for more details" "$LINENO" 5; }
3942 # Provide some information about the compiler.
3943 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3946 for ac_option in --version -v -V -qversion; do
3947 { { ac_try="$ac_compiler $ac_option >&5"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3956 if test -s conftest.err; then
3958 ... rest of stderr output deleted ...
3959 10q' conftest.err >conftest.er1
3960 cat conftest.er1 >&5
3962 rm -f conftest.er1 conftest.err
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3978 ac_clean_files_save=$ac_clean_files
3979 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3980 # Try to create an executable without -o first, disregard a.out.
3981 # It will help us diagnose broken compilers, and finding out an intuition
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3984 $as_echo_n "checking whether the C compiler works... " >&6; }
3985 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3987 # The possible output files:
3988 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3991 for ac_file in $ac_files
3994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3995 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4000 if { { ac_try="$ac_link_default"
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_link_default") 2>&5
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }; then :
4011 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4012 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4013 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4014 # so that the user can short-circuit this test for compilers unknown to
4016 for ac_file in $ac_files ''
4018 test -f "$ac_file" || continue
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4023 # We found the default executable, but exeext='' is most
4027 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4029 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4031 # We set ac_cv_exeext here because the later test for it is not
4032 # safe: cross compilers may not add the suffix if given an `-o'
4033 # argument, so we may need to know it at that point already.
4034 # Even if this section looks crufty: it has the advantage of
4041 test "$ac_cv_exeext" = no && ac_cv_exeext=
4046 if test -z "$ac_file"; then :
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4049 $as_echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error 77 "C compiler cannot create executables
4055 See \`config.log' for more details" "$LINENO" 5; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058 $as_echo "yes" >&6; }
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4061 $as_echo_n "checking for C compiler default output file name... " >&6; }
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4063 $as_echo "$ac_file" >&6; }
4064 ac_exeext=$ac_cv_exeext
4066 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4067 ac_clean_files=$ac_clean_files_save
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4069 $as_echo_n "checking for suffix of executables... " >&6; }
4070 if { { ac_try="$ac_link"
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4076 $as_echo "$ac_try_echo"; } >&5
4077 (eval "$ac_link") 2>&5
4079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4080 test $ac_status = 0; }; then :
4081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4083 # work properly (i.e., refer to `conftest.exe'), while it won't with
4085 for ac_file in conftest.exe conftest conftest.*; do
4086 test -f "$ac_file" || continue
4088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4097 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4098 See \`config.log' for more details" "$LINENO" 5; }
4100 rm -f conftest conftest$ac_cv_exeext
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4102 $as_echo "$ac_cv_exeext" >&6; }
4104 rm -f conftest.$ac_ext
4105 EXEEXT=$ac_cv_exeext
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4113 FILE *f = fopen ("conftest.out", "w");
4114 return ferror (f) || fclose (f) != 0;
4120 ac_clean_files="$ac_clean_files conftest.out"
4121 # Check that the compiler produces executables we can run. If not, either
4122 # the compiler is broken, or we cross compile.
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4124 $as_echo_n "checking whether we are cross compiling... " >&6; }
4125 if test "$cross_compiling" != yes; then
4126 { { ac_try="$ac_link"
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132 $as_echo "$ac_try_echo"; } >&5
4133 (eval "$ac_link") 2>&5
4135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136 test $ac_status = 0; }
4137 if { ac_try='./conftest$ac_cv_exeext'
4138 { { case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143 $as_echo "$ac_try_echo"; } >&5
4144 (eval "$ac_try") 2>&5
4146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147 test $ac_status = 0; }; }; then
4150 if test "$cross_compiling" = maybe; then
4153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4155 as_fn_error $? "cannot run C compiled programs.
4156 If you meant to cross compile, use \`--host'.
4157 See \`config.log' for more details" "$LINENO" 5; }
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4162 $as_echo "$cross_compiling" >&6; }
4164 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4165 ac_clean_files=$ac_clean_files_save
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4167 $as_echo_n "checking for suffix of object files... " >&6; }
4168 if ${ac_cv_objext+:} false; then :
4169 $as_echo_n "(cached) " >&6
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4182 rm -f conftest.o conftest.obj
4183 if { { ac_try="$ac_compile"
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4189 $as_echo "$ac_try_echo"; } >&5
4190 (eval "$ac_compile") 2>&5
4192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193 test $ac_status = 0; }; then :
4194 for ac_file in conftest.o conftest.obj conftest.*; do
4195 test -f "$ac_file" || continue;
4197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4203 $as_echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4208 as_fn_error $? "cannot compute suffix of object files: cannot compile
4209 See \`config.log' for more details" "$LINENO" 5; }
4211 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4214 $as_echo "$ac_cv_objext" >&6; }
4215 OBJEXT=$ac_cv_objext
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4218 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4219 if ${ac_cv_c_compiler_gnu+:} false; then :
4220 $as_echo_n "(cached) " >&6
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4236 if ac_fn_c_try_compile "$LINENO"; then :
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4246 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4247 if test $ac_compiler_gnu = yes; then
4252 ac_test_CFLAGS=${CFLAGS+set}
4253 ac_save_CFLAGS=$CFLAGS
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4255 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4256 if ${ac_cv_prog_cc_g+:} false; then :
4257 $as_echo_n "(cached) " >&6
4259 ac_save_c_werror_flag=$ac_c_werror_flag
4260 ac_c_werror_flag=yes
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4274 if ac_fn_c_try_compile "$LINENO"; then :
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4289 if ac_fn_c_try_compile "$LINENO"; then :
4292 ac_c_werror_flag=$ac_save_c_werror_flag
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4305 if ac_fn_c_try_compile "$LINENO"; then :
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 ac_c_werror_flag=$ac_save_c_werror_flag
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4316 $as_echo "$ac_cv_prog_cc_g" >&6; }
4317 if test "$ac_test_CFLAGS" = set; then
4318 CFLAGS=$ac_save_CFLAGS
4319 elif test $ac_cv_prog_cc_g = yes; then
4320 if test "$GCC" = yes; then
4326 if test "$GCC" = yes; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4333 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4334 if ${ac_cv_prog_cc_c89+:} false; then :
4335 $as_echo_n "(cached) " >&6
4337 ac_cv_prog_cc_c89=no
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4345 struct buf { int x; };
4346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4347 static char *e (p, i)
4353 static char *f (char * (*g) (char **, int), char **p, ...)
4358 s = g (p, va_arg (v,int));
4363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4364 function prototypes and stuff, but not '\xHH' hex character constants.
4365 These don't provoke an error unfortunately, instead are silently treated
4366 as 'x'. The following induces an error, until -std is added to get
4367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4368 array size at least. It's necessary to write '\x00'==0 to get something
4369 that's true only with -std. */
4370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4372 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4373 inside strings and character constants. */
4375 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4377 int test (int i, double x);
4378 struct s1 {int (*f) (int a);};
4379 struct s2 {int (*f) (double a);};
4380 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4386 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4391 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4394 CC="$ac_save_CC $ac_arg"
4395 if ac_fn_c_try_compile "$LINENO"; then :
4396 ac_cv_prog_cc_c89=$ac_arg
4398 rm -f core conftest.err conftest.$ac_objext
4399 test "x$ac_cv_prog_cc_c89" != "xno" && break
4401 rm -f conftest.$ac_ext
4406 case "x$ac_cv_prog_cc_c89" in
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4409 $as_echo "none needed" >&6; } ;;
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4412 $as_echo "unsupported" >&6; } ;;
4414 CC="$CC $ac_cv_prog_cc_c89"
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4416 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4418 if test "x$ac_cv_prog_cc_c89" != xno; then :
4423 ac_cpp='$CPP $CPPFLAGS'
4424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429 ac_cpp='$CXXCPP $CPPFLAGS'
4430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4433 if test -z "$CXX"; then
4434 if test -n "$CCC"; then
4437 if test -n "$ac_tool_prefix"; then
4438 for ac_prog in $pgac_cxx_list
4440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4441 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if ${ac_cv_prog_CXX+:} false; then :
4445 $as_echo_n "(cached) " >&6
4447 if test -n "$CXX"; then
4448 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 if test -n "$CXX"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4470 $as_echo "$CXX" >&6; }
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4477 test -n "$CXX" && break
4480 if test -z "$CXX"; then
4482 for ac_prog in $pgac_cxx_list
4484 # Extract the first word of "$ac_prog", so it can be a program name with args.
4485 set dummy $ac_prog; ac_word=$2
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4489 $as_echo_n "(cached) " >&6
4491 if test -n "$ac_ct_CXX"; then
4492 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_ac_ct_CXX="$ac_prog"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4512 if test -n "$ac_ct_CXX"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4514 $as_echo "$ac_ct_CXX" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4521 test -n "$ac_ct_CXX" && break
4524 if test "x$ac_ct_CXX" = x; then
4527 case $cross_compiling:$ac_tool_warned in
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4531 ac_tool_warned=yes ;;
4539 # Provide some information about the compiler.
4540 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4543 for ac_option in --version -v -V -qversion; do
4544 { { ac_try="$ac_compiler $ac_option >&5"
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4550 $as_echo "$ac_try_echo"; } >&5
4551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4553 if test -s conftest.err; then
4555 ... rest of stderr output deleted ...
4556 10q' conftest.err >conftest.er1
4557 cat conftest.er1 >&5
4559 rm -f conftest.er1 conftest.err
4560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4565 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4566 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4567 $as_echo_n "(cached) " >&6
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4583 if ac_fn_cxx_try_compile "$LINENO"; then :
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4593 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4594 if test $ac_compiler_gnu = yes; then
4599 ac_test_CXXFLAGS=${CXXFLAGS+set}
4600 ac_save_CXXFLAGS=$CXXFLAGS
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4602 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4603 if ${ac_cv_prog_cxx_g+:} false; then :
4604 $as_echo_n "(cached) " >&6
4606 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4607 ac_cxx_werror_flag=yes
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4621 if ac_fn_cxx_try_compile "$LINENO"; then :
4622 ac_cv_prog_cxx_g=yes
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4636 if ac_fn_cxx_try_compile "$LINENO"; then :
4639 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4652 if ac_fn_cxx_try_compile "$LINENO"; then :
4653 ac_cv_prog_cxx_g=yes
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4663 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4664 if test "$ac_test_CXXFLAGS" = set; then
4665 CXXFLAGS=$ac_save_CXXFLAGS
4666 elif test $ac_cv_prog_cxx_g = yes; then
4667 if test "$GXX" = yes; then
4673 if test "$GXX" = yes; then
4680 ac_cpp='$CPP $CPPFLAGS'
4681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4686 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4687 # but has idiosyncrasies of its own. We assume icc will define
4688 # __INTEL_COMPILER regardless of CFLAGS.
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4696 #ifndef __INTEL_COMPILER
4703 if ac_fn_c_try_compile "$LINENO"; then :
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 # Check if it's Sun Studio compiler. We assume that
4711 # __SUNPRO_C will be defined for Sun Studio compilers
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4725 if ac_fn_c_try_compile "$LINENO"; then :
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 # Checked early because subsequent tests depend on it.
4742 # Check whether --with-llvm was given.
4743 if test "${with_llvm+set}" = set; then :
4748 $as_echo "#define USE_LLVM 1" >>confdefs.h
4755 as_fn_error $? "no argument expected for --with-llvm option" "$LINENO" 5
4766 if test "$with_llvm" = yes ; then
4767 for ac_prog in gawk mawk nawk awk
4769 # Extract the first word of "$ac_prog", so it can be a program name with args.
4770 set dummy $ac_prog; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if ${ac_cv_prog_AWK+:} false; then :
4774 $as_echo_n "(cached) " >&6
4776 if test -n "$AWK"; then
4777 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786 ac_cv_prog_AWK="$ac_prog"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 if test -n "$AWK"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4799 $as_echo "$AWK" >&6; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4806 test -n "$AWK" && break
4813 if test -z "$LLVM_CONFIG"; then
4814 for ac_prog in llvm-config llvm-config-6.0 llvm-config-5.0 llvm-config-4.0 llvm-config-3.9
4816 # Extract the first word of "$ac_prog", so it can be a program name with args.
4817 set dummy $ac_prog; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if ${ac_cv_path_LLVM_CONFIG+:} false; then :
4821 $as_echo_n "(cached) " >&6
4823 case $LLVM_CONFIG in
4825 ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835 ac_cv_path_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG
4847 if test -n "$LLVM_CONFIG"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
4849 $as_echo "$LLVM_CONFIG" >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4856 test -n "$LLVM_CONFIG" && break
4860 # Report the value of LLVM_CONFIG in configure's output in all cases.
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
4862 $as_echo_n "checking for LLVM_CONFIG... " >&6; }
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
4864 $as_echo "$LLVM_CONFIG" >&6; }
4868 # no point continuing if llvm wasn't found
4869 if test -z "$LLVM_CONFIG"; then
4870 as_fn_error $? "llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
4872 # check if detected $LLVM_CONFIG is executable
4873 pgac_llvm_version="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
4874 if test "x$pgac_llvm_version" = "xno"; then
4875 as_fn_error $? "$LLVM_CONFIG does not work" "$LINENO" 5
4877 # and whether the version is supported
4878 if echo $pgac_llvm_version | $AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then
4879 as_fn_error $? "$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5
4882 # need clang to create some bitcode files
4884 if test -z "$CLANG"; then
4885 for ac_prog in clang clang-6.0 clang-5.0 clang-4.0 clang-3.9
4887 # Extract the first word of "$ac_prog", so it can be a program name with args.
4888 set dummy $ac_prog; ac_word=$2
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890 $as_echo_n "checking for $ac_word... " >&6; }
4891 if ${ac_cv_path_CLANG+:} false; then :
4892 $as_echo_n "(cached) " >&6
4896 ac_cv_path_CLANG="$CLANG" # Let the user override the test with a path.
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906 ac_cv_path_CLANG="$as_dir/$ac_word$ac_exec_ext"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 CLANG=$ac_cv_path_CLANG
4918 if test -n "$CLANG"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
4920 $as_echo "$CLANG" >&6; }
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4927 test -n "$CLANG" && break
4931 # Report the value of CLANG in configure's output in all cases.
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
4933 $as_echo_n "checking for CLANG... " >&6; }
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
4935 $as_echo "$CLANG" >&6; }
4938 if test -z "$CLANG"; then
4939 as_fn_error $? "clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
4941 # make sure clang is executable
4942 if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
4943 as_fn_error $? "$CLANG does not work" "$LINENO" 5
4945 # Could check clang version, but it doesn't seem that
4946 # important. Systems with a new enough LLVM version are usually
4947 # going to have a decent clang version too. It's also not entirely
4948 # clear what the minimum version is.
4950 # Collect compiler flags necessary to build the LLVM dependent
4952 for pgac_option in `$LLVM_CONFIG --cppflags`; do
4953 case $pgac_option in
4954 -I*|-D*) LLVM_CPPFLAGS="$pgac_option $LLVM_CPPFLAGS";;
4958 for pgac_option in `$LLVM_CONFIG --ldflags`; do
4959 case $pgac_option in
4960 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
4964 # ABI influencing options, standard influencing options
4965 for pgac_option in `$LLVM_CONFIG --cxxflags`; do
4966 case $pgac_option in
4967 -fno-rtti*) LLVM_CXXFLAGS="$LLVM_CXXFLAGS $pgac_option";;
4968 -std=*) LLVM_CXXFLAGS="$LLVM_CXXFLAGS $pgac_option";;
4972 # Look for components we're interested in, collect necessary
4973 # libs. As some components are optional, we can't just list all of
4974 # them as it'd raise an error.
4976 for pgac_component in `$LLVM_CONFIG --components`; do
4977 case $pgac_component in
4978 engine) pgac_components="$pgac_components $pgac_component";;
4979 debuginfodwarf) pgac_components="$pgac_components $pgac_component";;
4980 orcjit) pgac_components="$pgac_components $pgac_component";;
4981 passes) pgac_components="$pgac_components $pgac_component";;
4982 perfjitevents) pgac_components="$pgac_components $pgac_component";;
4986 # And then get the libraries that need to be linked in for the
4987 # selected components. They're large libraries, we only want to
4988 # link them into the LLVM using shared library.
4989 for pgac_option in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
4990 case $pgac_option in
4991 -l*) LLVM_LIBS="$LLVM_LIBS $pgac_option";;
4995 LLVM_BINPATH=`$LLVM_CONFIG --bindir`
4997 # Check which functionality is present
4998 SAVE_CPPFLAGS="$CPPFLAGS"
4999 CPPFLAGS="$CPPFLAGS $LLVM_CPPFLAGS"
5000 ac_fn_c_check_decl "$LINENO" "LLVMOrcGetSymbolAddressIn" "ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" "#include <llvm-c/OrcBindings.h>
5002 if test "x$ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" = xyes; then :
5008 cat >>confdefs.h <<_ACEOF
5009 #define HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN $ac_have_decl
5011 ac_fn_c_check_decl "$LINENO" "LLVMOrcRegisterGDB" "ac_cv_have_decl_LLVMOrcRegisterGDB" "#include <llvm-c/OrcBindings.h>
5013 if test "x$ac_cv_have_decl_LLVMOrcRegisterGDB" = xyes; then :
5019 cat >>confdefs.h <<_ACEOF
5020 #define HAVE_DECL_LLVMORCREGISTERGDB $ac_have_decl
5022 ac_fn_c_check_decl "$LINENO" "LLVMOrcRegisterPerf" "ac_cv_have_decl_LLVMOrcRegisterPerf" "#include <llvm-c/OrcBindings.h>
5024 if test "x$ac_cv_have_decl_LLVMOrcRegisterPerf" = xyes; then :
5030 cat >>confdefs.h <<_ACEOF
5031 #define HAVE_DECL_LLVMORCREGISTERPERF $ac_have_decl
5034 ac_fn_c_check_decl "$LINENO" "LLVMGetHostCPUName" "ac_cv_have_decl_LLVMGetHostCPUName" "#include <llvm-c/TargetMachine.h>
5036 if test "x$ac_cv_have_decl_LLVMGetHostCPUName" = xyes; then :
5042 cat >>confdefs.h <<_ACEOF
5043 #define HAVE_DECL_LLVMGETHOSTCPUNAME $ac_have_decl
5046 CPPFLAGS="$SAVE_CPPFLAGS"
5048 # LLVM_CONFIG, CLANG are already output via AC_ARG_VAR
5065 . "$srcdir/src/template/$template" || exit
5067 # C[XX]FLAGS are selected so:
5068 # If the user specifies something in the environment, that is used.
5069 # else: If the template file set something, that is used.
5070 # else: If coverage was enabled, don't set anything.
5071 # else: If the compiler is GCC, then we use -O2.
5072 # else: If the compiler is something else, then we use -O, unless debugging.
5074 if test "$ac_env_CFLAGS_set" = set; then
5075 CFLAGS=$ac_env_CFLAGS_value
5076 elif test "${CFLAGS+set}" = set; then
5077 : # (keep what template set)
5078 elif test "$enable_coverage" = yes; then
5079 : # no optimization by default
5080 elif test "$GCC" = yes; then
5083 # if the user selected debug mode, don't use -O
5084 if test "$enable_debug" != yes; then
5089 if test "$ac_env_CXXFLAGS_set" = set; then
5090 CXXFLAGS=$ac_env_CXXFLAGS_value
5091 elif test "${CXXFLAGS+set}" = set; then
5092 : # (keep what template set)
5093 elif test "$enable_coverage" = yes; then
5094 : # no optimization by default
5095 elif test "$GCC" = yes; then
5098 # if the user selected debug mode, don't use -O
5099 if test "$enable_debug" != yes; then
5104 # When generating bitcode (for inlining) we always want to use -O2
5105 # even when --enable-debug is specified. The bitcode it's not going to
5106 # be used for line-by-line debugging, and JIT inlining doesn't work
5107 # without at least -O1 (otherwise clang will emit 'noinline'
5108 # attributes everywhere), which is bad for testing. Still allow the
5109 # environment to override if done explicitly.
5110 if test "$ac_env_BITCODE_CFLAGS_set" = set; then
5111 BITCODE_CFLAGS=$ac_env_BITCODE_CFLAGS_value
5113 BITCODE_CFLAGS="-O2 $BITCODE_CFLAGS"
5115 if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
5116 BITCODE_CXXFLAGS=$ac_env_BITCODE_CXXFLAGS_value
5118 BITCODE_CXXFLAGS="-O2 $BITCODE_CXXFLAGS"
5121 # C[XX]FLAGS we determined above will be added back at the end
5124 user_CXXFLAGS=$CXXFLAGS
5126 user_BITCODE_CFLAGS=$BITCODE_CFLAGS
5128 user_BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS
5131 # set CFLAGS_VECTOR from the environment, if available
5132 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
5133 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
5136 # Some versions of GCC support some additional useful warning flags.
5137 # Check whether they are supported, and add them to CFLAGS if so.
5138 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
5139 # but has its own. Also check other compiler-specific flags here.
5141 if test "$GCC" = yes -a "$ICC" = no; then
5142 CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith"
5143 CXXFLAGS="-Wall -Wpointer-arith"
5144 # These work in some but not all gcc versions
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
5147 $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
5148 if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false; then :
5149 $as_echo_n "(cached) " >&6
5151 pgac_save_CFLAGS=$CFLAGS
5154 CFLAGS="${CFLAGS} -Wdeclaration-after-statement"
5155 ac_save_c_werror_flag=$ac_c_werror_flag
5156 ac_c_werror_flag=yes
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement=yes
5171 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement=no
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174 ac_c_werror_flag=$ac_save_c_werror_flag
5175 CFLAGS="$pgac_save_CFLAGS"
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5
5179 $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
5180 if test x"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x"yes"; then
5181 CFLAGS="${CFLAGS} -Wdeclaration-after-statement"
5185 # -Wdeclaration-after-statement isn't applicable for C++
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
5188 $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
5189 if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false; then :
5190 $as_echo_n "(cached) " >&6
5192 pgac_save_CFLAGS=$CFLAGS
5195 CFLAGS="${CFLAGS} -Wendif-labels"
5196 ac_save_c_werror_flag=$ac_c_werror_flag
5197 ac_c_werror_flag=yes
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5209 if ac_fn_c_try_compile "$LINENO"; then :
5210 pgac_cv_prog_CC_cflags__Wendif_labels=yes
5212 pgac_cv_prog_CC_cflags__Wendif_labels=no
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 ac_c_werror_flag=$ac_save_c_werror_flag
5216 CFLAGS="$pgac_save_CFLAGS"
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
5220 $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
5221 if test x"$pgac_cv_prog_CC_cflags__Wendif_labels" = x"yes"; then
5222 CFLAGS="${CFLAGS} -Wendif-labels"
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
5227 $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
5228 if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false; then :
5229 $as_echo_n "(cached) " >&6
5231 pgac_save_CXXFLAGS=$CXXFLAGS
5234 CXXFLAGS="${CXXFLAGS} -Wendif-labels"
5235 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5236 ac_cxx_werror_flag=yes
5238 ac_cpp='$CXXCPP $CPPFLAGS'
5239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5254 if ac_fn_cxx_try_compile "$LINENO"; then :
5255 pgac_cv_prog_CXX_cxxflags__Wendif_labels=yes
5257 pgac_cv_prog_CXX_cxxflags__Wendif_labels=no
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261 ac_cpp='$CPP $CPPFLAGS'
5262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5267 CXXFLAGS="$pgac_save_CXXFLAGS"
5268 CXX="$pgac_save_CXX"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
5271 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
5272 if test x"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x"yes"; then
5273 CXXFLAGS="${CXXFLAGS} -Wendif-labels"
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
5279 $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
5280 if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false; then :
5281 $as_echo_n "(cached) " >&6
5283 pgac_save_CFLAGS=$CFLAGS
5286 CFLAGS="${CFLAGS} -Wmissing-format-attribute"
5287 ac_save_c_werror_flag=$ac_c_werror_flag
5288 ac_c_werror_flag=yes
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301 pgac_cv_prog_CC_cflags__Wmissing_format_attribute=yes
5303 pgac_cv_prog_CC_cflags__Wmissing_format_attribute=no
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 ac_c_werror_flag=$ac_save_c_werror_flag
5307 CFLAGS="$pgac_save_CFLAGS"
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
5311 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
5312 if test x"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x"yes"; then
5313 CFLAGS="${CFLAGS} -Wmissing-format-attribute"
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
5318 $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
5319 if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false; then :
5320 $as_echo_n "(cached) " >&6
5322 pgac_save_CXXFLAGS=$CXXFLAGS
5325 CXXFLAGS="${CXXFLAGS} -Wmissing-format-attribute"
5326 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5327 ac_cxx_werror_flag=yes
5329 ac_cpp='$CXXCPP $CPPFLAGS'
5330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5345 if ac_fn_cxx_try_compile "$LINENO"; then :
5346 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute=yes
5348 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute=no
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 ac_cpp='$CPP $CPPFLAGS'
5353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5358 CXXFLAGS="$pgac_save_CXXFLAGS"
5359 CXX="$pgac_save_CXX"
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
5362 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
5363 if test x"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x"yes"; then
5364 CXXFLAGS="${CXXFLAGS} -Wmissing-format-attribute"
5368 # This was included in -Wall/-Wformat in older GCC versions
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
5371 $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
5372 if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false; then :
5373 $as_echo_n "(cached) " >&6
5375 pgac_save_CFLAGS=$CFLAGS
5378 CFLAGS="${CFLAGS} -Wformat-security"
5379 ac_save_c_werror_flag=$ac_c_werror_flag
5380 ac_c_werror_flag=yes
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5392 if ac_fn_c_try_compile "$LINENO"; then :
5393 pgac_cv_prog_CC_cflags__Wformat_security=yes
5395 pgac_cv_prog_CC_cflags__Wformat_security=no
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 ac_c_werror_flag=$ac_save_c_werror_flag
5399 CFLAGS="$pgac_save_CFLAGS"
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
5403 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
5404 if test x"$pgac_cv_prog_CC_cflags__Wformat_security" = x"yes"; then
5405 CFLAGS="${CFLAGS} -Wformat-security"
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
5410 $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
5411 if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false; then :
5412 $as_echo_n "(cached) " >&6
5414 pgac_save_CXXFLAGS=$CXXFLAGS
5417 CXXFLAGS="${CXXFLAGS} -Wformat-security"
5418 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5419 ac_cxx_werror_flag=yes
5421 ac_cpp='$CXXCPP $CPPFLAGS'
5422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5437 if ac_fn_cxx_try_compile "$LINENO"; then :
5438 pgac_cv_prog_CXX_cxxflags__Wformat_security=yes
5440 pgac_cv_prog_CXX_cxxflags__Wformat_security=no
5442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444 ac_cpp='$CPP $CPPFLAGS'
5445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5449 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5450 CXXFLAGS="$pgac_save_CXXFLAGS"
5451 CXX="$pgac_save_CXX"
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
5454 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
5455 if test x"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x"yes"; then
5456 CXXFLAGS="${CXXFLAGS} -Wformat-security"
5460 # Disable strict-aliasing rules; needed for gcc 3.3+
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
5463 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
5464 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false; then :
5465 $as_echo_n "(cached) " >&6
5467 pgac_save_CFLAGS=$CFLAGS
5470 CFLAGS="${CFLAGS} -fno-strict-aliasing"
5471 ac_save_c_werror_flag=$ac_c_werror_flag
5472 ac_c_werror_flag=yes
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5484 if ac_fn_c_try_compile "$LINENO"; then :
5485 pgac_cv_prog_CC_cflags__fno_strict_aliasing=yes
5487 pgac_cv_prog_CC_cflags__fno_strict_aliasing=no
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 ac_c_werror_flag=$ac_save_c_werror_flag
5491 CFLAGS="$pgac_save_CFLAGS"
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
5495 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
5496 if test x"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x"yes"; then
5497 CFLAGS="${CFLAGS} -fno-strict-aliasing"
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
5502 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
5503 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false; then :
5504 $as_echo_n "(cached) " >&6
5506 pgac_save_CXXFLAGS=$CXXFLAGS
5509 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
5510 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5511 ac_cxx_werror_flag=yes
5513 ac_cpp='$CXXCPP $CPPFLAGS'
5514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5529 if ac_fn_cxx_try_compile "$LINENO"; then :
5530 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=yes
5532 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=no
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 ac_cpp='$CPP $CPPFLAGS'
5537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5541 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5542 CXXFLAGS="$pgac_save_CXXFLAGS"
5543 CXX="$pgac_save_CXX"
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
5546 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
5547 if test x"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x"yes"; then
5548 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
5552 # Disable optimizations that assume no overflow; needed for gcc 4.3+
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5
5555 $as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; }
5556 if ${pgac_cv_prog_CC_cflags__fwrapv+:} false; then :
5557 $as_echo_n "(cached) " >&6
5559 pgac_save_CFLAGS=$CFLAGS
5562 CFLAGS="${CFLAGS} -fwrapv"
5563 ac_save_c_werror_flag=$ac_c_werror_flag
5564 ac_c_werror_flag=yes
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 pgac_cv_prog_CC_cflags__fwrapv=yes
5579 pgac_cv_prog_CC_cflags__fwrapv=no
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 ac_c_werror_flag=$ac_save_c_werror_flag
5583 CFLAGS="$pgac_save_CFLAGS"
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5
5587 $as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; }
5588 if test x"$pgac_cv_prog_CC_cflags__fwrapv" = x"yes"; then
5589 CFLAGS="${CFLAGS} -fwrapv"
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5
5594 $as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; }
5595 if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false; then :
5596 $as_echo_n "(cached) " >&6
5598 pgac_save_CXXFLAGS=$CXXFLAGS
5601 CXXFLAGS="${CXXFLAGS} -fwrapv"
5602 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5603 ac_cxx_werror_flag=yes
5605 ac_cpp='$CXXCPP $CPPFLAGS'
5606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5621 if ac_fn_cxx_try_compile "$LINENO"; then :
5622 pgac_cv_prog_CXX_cxxflags__fwrapv=yes
5624 pgac_cv_prog_CXX_cxxflags__fwrapv=no
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 ac_cpp='$CPP $CPPFLAGS'
5629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5634 CXXFLAGS="$pgac_save_CXXFLAGS"
5635 CXX="$pgac_save_CXX"
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5
5638 $as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; }
5639 if test x"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x"yes"; then
5640 CXXFLAGS="${CXXFLAGS} -fwrapv"
5644 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5
5647 $as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; }
5648 if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false; then :
5649 $as_echo_n "(cached) " >&6
5651 pgac_save_CFLAGS=$CFLAGS
5654 CFLAGS="${CFLAGS} -fexcess-precision=standard"
5655 ac_save_c_werror_flag=$ac_c_werror_flag
5656 ac_c_werror_flag=yes
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5668 if ac_fn_c_try_compile "$LINENO"; then :
5669 pgac_cv_prog_CC_cflags__fexcess_precision_standard=yes
5671 pgac_cv_prog_CC_cflags__fexcess_precision_standard=no
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 ac_c_werror_flag=$ac_save_c_werror_flag
5675 CFLAGS="$pgac_save_CFLAGS"
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&5
5679 $as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; }
5680 if test x"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x"yes"; then
5681 CFLAGS="${CFLAGS} -fexcess-precision=standard"
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5
5686 $as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; }
5687 if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false; then :
5688 $as_echo_n "(cached) " >&6
5690 pgac_save_CXXFLAGS=$CXXFLAGS
5693 CXXFLAGS="${CXXFLAGS} -fexcess-precision=standard"
5694 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5695 ac_cxx_werror_flag=yes
5697 ac_cpp='$CXXCPP $CPPFLAGS'
5698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5713 if ac_fn_cxx_try_compile "$LINENO"; then :
5714 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard=yes
5716 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard=no
5718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 ac_cpp='$CPP $CPPFLAGS'
5721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5725 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5726 CXXFLAGS="$pgac_save_CXXFLAGS"
5727 CXX="$pgac_save_CXX"
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5
5730 $as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; }
5731 if test x"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x"yes"; then
5732 CXXFLAGS="${CXXFLAGS} -fexcess-precision=standard"
5736 # Optimization flags for specific files that benefit from vectorization
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR" >&5
5738 $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR... " >&6; }
5739 if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false; then :
5740 $as_echo_n "(cached) " >&6
5742 pgac_save_CFLAGS=$CFLAGS
5745 CFLAGS="${CFLAGS_VECTOR} -funroll-loops"
5746 ac_save_c_werror_flag=$ac_c_werror_flag
5747 ac_c_werror_flag=yes
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5759 if ac_fn_c_try_compile "$LINENO"; then :
5760 pgac_cv_prog_CC_cflags__funroll_loops=yes
5762 pgac_cv_prog_CC_cflags__funroll_loops=no
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 ac_c_werror_flag=$ac_save_c_werror_flag
5766 CFLAGS="$pgac_save_CFLAGS"
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
5770 $as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
5771 if test x"$pgac_cv_prog_CC_cflags__funroll_loops" = x"yes"; then
5772 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR" >&5
5777 $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR... " >&6; }
5778 if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false; then :
5779 $as_echo_n "(cached) " >&6
5781 pgac_save_CFLAGS=$CFLAGS
5784 CFLAGS="${CFLAGS_VECTOR} -ftree-vectorize"
5785 ac_save_c_werror_flag=$ac_c_werror_flag
5786 ac_c_werror_flag=yes
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5798 if ac_fn_c_try_compile "$LINENO"; then :
5799 pgac_cv_prog_CC_cflags__ftree_vectorize=yes
5801 pgac_cv_prog_CC_cflags__ftree_vectorize=no
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 ac_c_werror_flag=$ac_save_c_werror_flag
5805 CFLAGS="$pgac_save_CFLAGS"
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
5809 $as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
5810 if test x"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x"yes"; then
5811 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
5815 # We want to suppress clang's unhelpful unused-command-line-argument warnings
5816 # but gcc won't complain about unrecognized -Wno-foo switches, so we have to
5817 # test for the positive form and if that works, add the negative form
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
5819 $as_echo_n "checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
5820 if ${pgac_cv_prog_CC_cflags__Wunused_command_line_argument+:} false; then :
5821 $as_echo_n "(cached) " >&6
5823 pgac_save_CFLAGS=$CFLAGS
5826 CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
5827 ac_save_c_werror_flag=$ac_c_werror_flag
5828 ac_c_werror_flag=yes
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5840 if ac_fn_c_try_compile "$LINENO"; then :
5841 pgac_cv_prog_CC_cflags__Wunused_command_line_argument=yes
5843 pgac_cv_prog_CC_cflags__Wunused_command_line_argument=no
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 ac_c_werror_flag=$ac_save_c_werror_flag
5847 CFLAGS="$pgac_save_CFLAGS"
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&5
5851 $as_echo "$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&6; }
5852 if test x"$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" = x"yes"; then
5853 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
5857 if test -n "$NOT_THE_CFLAGS"; then
5858 CFLAGS="$CFLAGS -Wno-unused-command-line-argument"
5860 elif test "$ICC" = yes; then
5861 # Intel's compiler has a bug/misoptimization in checking for
5862 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -mp1, for CFLAGS" >&5
5865 $as_echo_n "checking whether ${CC} supports -mp1, for CFLAGS... " >&6; }
5866 if ${pgac_cv_prog_CC_cflags__mp1+:} false; then :
5867 $as_echo_n "(cached) " >&6
5869 pgac_save_CFLAGS=$CFLAGS
5872 CFLAGS="${CFLAGS} -mp1"
5873 ac_save_c_werror_flag=$ac_c_werror_flag
5874 ac_c_werror_flag=yes
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5886 if ac_fn_c_try_compile "$LINENO"; then :
5887 pgac_cv_prog_CC_cflags__mp1=yes
5889 pgac_cv_prog_CC_cflags__mp1=no
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 ac_c_werror_flag=$ac_save_c_werror_flag
5893 CFLAGS="$pgac_save_CFLAGS"
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__mp1" >&5
5897 $as_echo "$pgac_cv_prog_CC_cflags__mp1" >&6; }
5898 if test x"$pgac_cv_prog_CC_cflags__mp1" = x"yes"; then
5899 CFLAGS="${CFLAGS} -mp1"
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -mp1, for CXXFLAGS" >&5
5904 $as_echo_n "checking whether ${CXX} supports -mp1, for CXXFLAGS... " >&6; }
5905 if ${pgac_cv_prog_CXX_cxxflags__mp1+:} false; then :
5906 $as_echo_n "(cached) " >&6
5908 pgac_save_CXXFLAGS=$CXXFLAGS
5911 CXXFLAGS="${CXXFLAGS} -mp1"
5912 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5913 ac_cxx_werror_flag=yes
5915 ac_cpp='$CXXCPP $CPPFLAGS'
5916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5931 if ac_fn_cxx_try_compile "$LINENO"; then :
5932 pgac_cv_prog_CXX_cxxflags__mp1=yes
5934 pgac_cv_prog_CXX_cxxflags__mp1=no
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938 ac_cpp='$CPP $CPPFLAGS'
5939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5943 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5944 CXXFLAGS="$pgac_save_CXXFLAGS"
5945 CXX="$pgac_save_CXX"
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__mp1" >&5
5948 $as_echo "$pgac_cv_prog_CXX_cxxflags__mp1" >&6; }
5949 if test x"$pgac_cv_prog_CXX_cxxflags__mp1" = x"yes"; then
5950 CXXFLAGS="${CXXFLAGS} -mp1"
5954 # Make sure strict aliasing is off (though this is said to be the default)
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
5957 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
5958 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false; then :
5959 $as_echo_n "(cached) " >&6
5961 pgac_save_CFLAGS=$CFLAGS
5964 CFLAGS="${CFLAGS} -fno-strict-aliasing"
5965 ac_save_c_werror_flag=$ac_c_werror_flag
5966 ac_c_werror_flag=yes
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5978 if ac_fn_c_try_compile "$LINENO"; then :
5979 pgac_cv_prog_CC_cflags__fno_strict_aliasing=yes
5981 pgac_cv_prog_CC_cflags__fno_strict_aliasing=no
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 ac_c_werror_flag=$ac_save_c_werror_flag
5985 CFLAGS="$pgac_save_CFLAGS"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
5989 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
5990 if test x"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x"yes"; then
5991 CFLAGS="${CFLAGS} -fno-strict-aliasing"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
5996 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
5997 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false; then :
5998 $as_echo_n "(cached) " >&6
6000 pgac_save_CXXFLAGS=$CXXFLAGS
6003 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
6004 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6005 ac_cxx_werror_flag=yes
6007 ac_cpp='$CXXCPP $CPPFLAGS'
6008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6023 if ac_fn_cxx_try_compile "$LINENO"; then :
6024 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=yes
6026 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=no
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 ac_cpp='$CPP $CPPFLAGS'
6031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6036 CXXFLAGS="$pgac_save_CXXFLAGS"
6037 CXX="$pgac_save_CXX"
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6040 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6041 if test x"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x"yes"; then
6042 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
6046 elif test "$PORTNAME" = "aix"; then
6047 # AIX's xlc has to have strict aliasing turned off too
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qnoansialias, for CFLAGS" >&5
6050 $as_echo_n "checking whether ${CC} supports -qnoansialias, for CFLAGS... " >&6; }
6051 if ${pgac_cv_prog_CC_cflags__qnoansialias+:} false; then :
6052 $as_echo_n "(cached) " >&6
6054 pgac_save_CFLAGS=$CFLAGS
6057 CFLAGS="${CFLAGS} -qnoansialias"
6058 ac_save_c_werror_flag=$ac_c_werror_flag
6059 ac_c_werror_flag=yes
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6071 if ac_fn_c_try_compile "$LINENO"; then :
6072 pgac_cv_prog_CC_cflags__qnoansialias=yes
6074 pgac_cv_prog_CC_cflags__qnoansialias=no
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 ac_c_werror_flag=$ac_save_c_werror_flag
6078 CFLAGS="$pgac_save_CFLAGS"
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qnoansialias" >&5
6082 $as_echo "$pgac_cv_prog_CC_cflags__qnoansialias" >&6; }
6083 if test x"$pgac_cv_prog_CC_cflags__qnoansialias" = x"yes"; then
6084 CFLAGS="${CFLAGS} -qnoansialias"
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qnoansialias, for CXXFLAGS" >&5
6089 $as_echo_n "checking whether ${CXX} supports -qnoansialias, for CXXFLAGS... " >&6; }
6090 if ${pgac_cv_prog_CXX_cxxflags__qnoansialias+:} false; then :
6091 $as_echo_n "(cached) " >&6
6093 pgac_save_CXXFLAGS=$CXXFLAGS
6096 CXXFLAGS="${CXXFLAGS} -qnoansialias"
6097 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6098 ac_cxx_werror_flag=yes
6100 ac_cpp='$CXXCPP $CPPFLAGS'
6101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6116 if ac_fn_cxx_try_compile "$LINENO"; then :
6117 pgac_cv_prog_CXX_cxxflags__qnoansialias=yes
6119 pgac_cv_prog_CXX_cxxflags__qnoansialias=no
6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 ac_cpp='$CPP $CPPFLAGS'
6124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6128 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6129 CXXFLAGS="$pgac_save_CXXFLAGS"
6130 CXX="$pgac_save_CXX"
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qnoansialias" >&5
6133 $as_echo "$pgac_cv_prog_CXX_cxxflags__qnoansialias" >&6; }
6134 if test x"$pgac_cv_prog_CXX_cxxflags__qnoansialias" = x"yes"; then
6135 CXXFLAGS="${CXXFLAGS} -qnoansialias"
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qlonglong, for CFLAGS" >&5
6141 $as_echo_n "checking whether ${CC} supports -qlonglong, for CFLAGS... " >&6; }
6142 if ${pgac_cv_prog_CC_cflags__qlonglong+:} false; then :
6143 $as_echo_n "(cached) " >&6
6145 pgac_save_CFLAGS=$CFLAGS
6148 CFLAGS="${CFLAGS} -qlonglong"
6149 ac_save_c_werror_flag=$ac_c_werror_flag
6150 ac_c_werror_flag=yes
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6162 if ac_fn_c_try_compile "$LINENO"; then :
6163 pgac_cv_prog_CC_cflags__qlonglong=yes
6165 pgac_cv_prog_CC_cflags__qlonglong=no
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168 ac_c_werror_flag=$ac_save_c_werror_flag
6169 CFLAGS="$pgac_save_CFLAGS"
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qlonglong" >&5
6173 $as_echo "$pgac_cv_prog_CC_cflags__qlonglong" >&6; }
6174 if test x"$pgac_cv_prog_CC_cflags__qlonglong" = x"yes"; then
6175 CFLAGS="${CFLAGS} -qlonglong"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qlonglong, for CXXFLAGS" >&5
6180 $as_echo_n "checking whether ${CXX} supports -qlonglong, for CXXFLAGS... " >&6; }
6181 if ${pgac_cv_prog_CXX_cxxflags__qlonglong+:} false; then :
6182 $as_echo_n "(cached) " >&6
6184 pgac_save_CXXFLAGS=$CXXFLAGS
6187 CXXFLAGS="${CXXFLAGS} -qlonglong"
6188 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6189 ac_cxx_werror_flag=yes
6191 ac_cpp='$CXXCPP $CPPFLAGS'
6192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6207 if ac_fn_cxx_try_compile "$LINENO"; then :
6208 pgac_cv_prog_CXX_cxxflags__qlonglong=yes
6210 pgac_cv_prog_CXX_cxxflags__qlonglong=no
6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 ac_cpp='$CPP $CPPFLAGS'
6215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6219 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6220 CXXFLAGS="$pgac_save_CXXFLAGS"
6221 CXX="$pgac_save_CXX"
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qlonglong" >&5
6224 $as_echo "$pgac_cv_prog_CXX_cxxflags__qlonglong" >&6; }
6225 if test x"$pgac_cv_prog_CXX_cxxflags__qlonglong" = x"yes"; then
6226 CXXFLAGS="${CXXFLAGS} -qlonglong"
6230 elif test "$PORTNAME" = "hpux"; then
6231 # On some versions of HP-UX, libm functions do not set errno by default.
6232 # Fix that by using +Olibmerrno if the compiler recognizes it.
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports +Olibmerrno, for CFLAGS" >&5
6235 $as_echo_n "checking whether ${CC} supports +Olibmerrno, for CFLAGS... " >&6; }
6236 if ${pgac_cv_prog_CC_cflags_pOlibmerrno+:} false; then :
6237 $as_echo_n "(cached) " >&6
6239 pgac_save_CFLAGS=$CFLAGS
6242 CFLAGS="${CFLAGS} +Olibmerrno"
6243 ac_save_c_werror_flag=$ac_c_werror_flag
6244 ac_c_werror_flag=yes
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6256 if ac_fn_c_try_compile "$LINENO"; then :
6257 pgac_cv_prog_CC_cflags_pOlibmerrno=yes
6259 pgac_cv_prog_CC_cflags_pOlibmerrno=no
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 ac_c_werror_flag=$ac_save_c_werror_flag
6263 CFLAGS="$pgac_save_CFLAGS"
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags_pOlibmerrno" >&5
6267 $as_echo "$pgac_cv_prog_CC_cflags_pOlibmerrno" >&6; }
6268 if test x"$pgac_cv_prog_CC_cflags_pOlibmerrno" = x"yes"; then
6269 CFLAGS="${CFLAGS} +Olibmerrno"
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS" >&5
6274 $as_echo_n "checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS... " >&6; }
6275 if ${pgac_cv_prog_CXX_cxxflags_pOlibmerrno+:} false; then :
6276 $as_echo_n "(cached) " >&6
6278 pgac_save_CXXFLAGS=$CXXFLAGS
6281 CXXFLAGS="${CXXFLAGS} +Olibmerrno"
6282 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6283 ac_cxx_werror_flag=yes
6285 ac_cpp='$CXXCPP $CPPFLAGS'
6286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6301 if ac_fn_cxx_try_compile "$LINENO"; then :
6302 pgac_cv_prog_CXX_cxxflags_pOlibmerrno=yes
6304 pgac_cv_prog_CXX_cxxflags_pOlibmerrno=no
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 ac_cpp='$CPP $CPPFLAGS'
6309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6314 CXXFLAGS="$pgac_save_CXXFLAGS"
6315 CXX="$pgac_save_CXX"
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&5
6318 $as_echo "$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&6; }
6319 if test x"$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" = x"yes"; then
6320 CXXFLAGS="${CXXFLAGS} +Olibmerrno"
6326 CFLAGS_VECTOR=$CFLAGS_VECTOR
6329 # Determine flags used to emit bitcode for JIT inlining. Need to test
6330 # for behaviour changing compiler flags, to keep compatibility with
6331 # compiler used for normal postgres code.
6332 if test "$with_llvm" = yes ; then
6333 CLANGXX="$CLANG -xc++"
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5
6336 $as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; }
6337 if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false; then :
6338 $as_echo_n "(cached) " >&6
6340 pgac_save_CFLAGS=$CFLAGS
6343 CFLAGS="${BITCODE_CFLAGS} -fno-strict-aliasing"
6344 ac_save_c_werror_flag=$ac_c_werror_flag
6345 ac_c_werror_flag=yes
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6357 if ac_fn_c_try_compile "$LINENO"; then :
6358 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing=yes
6360 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing=no
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 ac_c_werror_flag=$ac_save_c_werror_flag
6364 CFLAGS="$pgac_save_CFLAGS"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5
6368 $as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; }
6369 if test x"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x"yes"; then
6370 BITCODE_CFLAGS="${BITCODE_CFLAGS} -fno-strict-aliasing"
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5
6374 $as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; }
6375 if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false; then :
6376 $as_echo_n "(cached) " >&6
6378 pgac_save_CXXFLAGS=$CXXFLAGS
6381 CXXFLAGS="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
6382 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6383 ac_cxx_werror_flag=yes
6385 ac_cpp='$CXXCPP $CPPFLAGS'
6386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6401 if ac_fn_cxx_try_compile "$LINENO"; then :
6402 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing=yes
6404 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing=no
6406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408 ac_cpp='$CPP $CPPFLAGS'
6409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6413 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6414 CXXFLAGS="$pgac_save_CXXFLAGS"
6415 CXX="$pgac_save_CXX"
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5
6418 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; }
6419 if test x"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x"yes"; then
6420 BITCODE_CXXFLAGS="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5
6424 $as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; }
6425 if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false; then :
6426 $as_echo_n "(cached) " >&6
6428 pgac_save_CFLAGS=$CFLAGS
6431 CFLAGS="${BITCODE_CFLAGS} -fwrapv"
6432 ac_save_c_werror_flag=$ac_c_werror_flag
6433 ac_c_werror_flag=yes
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6445 if ac_fn_c_try_compile "$LINENO"; then :
6446 pgac_cv_prog_CLANG_cflags__fwrapv=yes
6448 pgac_cv_prog_CLANG_cflags__fwrapv=no
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 ac_c_werror_flag=$ac_save_c_werror_flag
6452 CFLAGS="$pgac_save_CFLAGS"
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5
6456 $as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; }
6457 if test x"$pgac_cv_prog_CLANG_cflags__fwrapv" = x"yes"; then
6458 BITCODE_CFLAGS="${BITCODE_CFLAGS} -fwrapv"
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5
6462 $as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; }
6463 if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false; then :
6464 $as_echo_n "(cached) " >&6
6466 pgac_save_CXXFLAGS=$CXXFLAGS
6469 CXXFLAGS="${BITCODE_CXXFLAGS} -fwrapv"
6470 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6471 ac_cxx_werror_flag=yes
6473 ac_cpp='$CXXCPP $CPPFLAGS'
6474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6489 if ac_fn_cxx_try_compile "$LINENO"; then :
6490 pgac_cv_prog_CLANGXX_cxxflags__fwrapv=yes
6492 pgac_cv_prog_CLANGXX_cxxflags__fwrapv=no
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 ac_cpp='$CPP $CPPFLAGS'
6497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6501 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6502 CXXFLAGS="$pgac_save_CXXFLAGS"
6503 CXX="$pgac_save_CXX"
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5
6506 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; }
6507 if test x"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x"yes"; then
6508 BITCODE_CXXFLAGS="${BITCODE_CXXFLAGS} -fwrapv"
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5
6512 $as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; }
6513 if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false; then :
6514 $as_echo_n "(cached) " >&6
6516 pgac_save_CFLAGS=$CFLAGS
6519 CFLAGS="${BITCODE_CFLAGS} -fexcess-precision=standard"
6520 ac_save_c_werror_flag=$ac_c_werror_flag
6521 ac_c_werror_flag=yes
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6533 if ac_fn_c_try_compile "$LINENO"; then :
6534 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard=yes
6536 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard=no
6538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 ac_c_werror_flag=$ac_save_c_werror_flag
6540 CFLAGS="$pgac_save_CFLAGS"
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5
6544 $as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; }
6545 if test x"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x"yes"; then
6546 BITCODE_CFLAGS="${BITCODE_CFLAGS} -fexcess-precision=standard"
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5
6550 $as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; }
6551 if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false; then :
6552 $as_echo_n "(cached) " >&6
6554 pgac_save_CXXFLAGS=$CXXFLAGS
6557 CXXFLAGS="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
6558 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6559 ac_cxx_werror_flag=yes
6561 ac_cpp='$CXXCPP $CPPFLAGS'
6562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6577 if ac_fn_cxx_try_compile "$LINENO"; then :
6578 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard=yes
6580 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard=no
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 ac_cpp='$CPP $CPPFLAGS'
6585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6589 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6590 CXXFLAGS="$pgac_save_CXXFLAGS"
6591 CXX="$pgac_save_CXX"
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5
6594 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; }
6595 if test x"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x"yes"; then
6596 BITCODE_CXXFLAGS="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
6601 # supply -g if --enable-debug
6602 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
6606 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
6607 CXXFLAGS="$CXXFLAGS -g"
6610 # enable code coverage if --enable-coverage
6611 if test "$enable_coverage" = yes; then
6612 if test "$GCC" = yes; then
6613 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
6614 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
6616 as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5
6620 # enable profiling if --enable-profiling
6621 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
6622 if test "$GCC" = yes; then
6624 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
6626 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
6627 CXXFLAGS="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS"
6629 as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5
6633 # We already have this in Makefile.win32, but configure needs it too
6634 if test "$PORTNAME" = "win32"; then
6635 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
6638 # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the
6639 # user-specified flags (if any) at the end. This lets users override
6640 # the automatic additions.
6641 CFLAGS="$CFLAGS $user_CFLAGS"
6642 CXXFLAGS="$CXXFLAGS $user_CXXFLAGS"
6643 BITCODE_CFLAGS="$BITCODE_CFLAGS $user_BITCODE_CFLAGS"
6644 BITCODE_CXXFLAGS="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS"
6646 BITCODE_CFLAGS=$BITCODE_CFLAGS
6648 BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS
6651 # Check if the compiler still works with the final flag settings
6652 # (note, we're not checking that for CXX, which is optional)
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
6654 $as_echo_n "checking whether the C compiler still works... " >&6; }
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6666 if ac_fn_c_try_link "$LINENO"; then :
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6668 $as_echo "yes" >&6; }
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672 as_fn_error $? "cannot proceed" "$LINENO" 5
6674 rm -f core conftest.err conftest.$ac_objext \
6675 conftest$ac_exeext conftest.$ac_ext
6677 # Defend against gcc -ffast-math
6678 if test "$GCC" = yes; then
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6685 #ifdef __FAST_MATH__
6692 if ac_fn_c_try_compile "$LINENO"; then :
6695 as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5
6697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701 ac_cpp='$CPP $CPPFLAGS'
6702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6706 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6707 # On Suns, sometimes $CPP names a directory.
6708 if test -n "$CPP" && test -d "$CPP"; then
6711 if test -z "$CPP"; then
6712 if ${ac_cv_prog_CPP+:} false; then :
6713 $as_echo_n "(cached) " >&6
6715 # Double quotes because CPP needs to be expanded
6716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6719 for ac_c_preproc_warn_flag in '' yes
6721 # Use a header file that comes with gcc, so configuring glibc
6722 # with a fresh cross-compiler works.
6723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6724 # <limits.h> exists even on freestanding compilers.
6725 # On the NeXT, cc -E runs the code through the compiler's parser,
6726 # not just through cpp. "Syntax error" is here to catch this case.
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6730 # include <limits.h>
6732 # include <assert.h>
6736 if ac_fn_c_try_cpp "$LINENO"; then :
6739 # Broken: fails on valid input.
6742 rm -f conftest.err conftest.i conftest.$ac_ext
6744 # OK, works on sane cases. Now check whether nonexistent headers
6745 # can be detected and how.
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6748 #include <ac_nonexistent.h>
6750 if ac_fn_c_try_cpp "$LINENO"; then :
6751 # Broken: success on invalid input.
6754 # Passes both tests.
6758 rm -f conftest.err conftest.i conftest.$ac_ext
6761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6762 rm -f conftest.i conftest.err conftest.$ac_ext
6763 if $ac_preproc_ok; then :
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6776 $as_echo "$CPP" >&6; }
6778 for ac_c_preproc_warn_flag in '' yes
6780 # Use a header file that comes with gcc, so configuring glibc
6781 # with a fresh cross-compiler works.
6782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6783 # <limits.h> exists even on freestanding compilers.
6784 # On the NeXT, cc -E runs the code through the compiler's parser,
6785 # not just through cpp. "Syntax error" is here to catch this case.
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6789 # include <limits.h>
6791 # include <assert.h>
6795 if ac_fn_c_try_cpp "$LINENO"; then :
6798 # Broken: fails on valid input.
6801 rm -f conftest.err conftest.i conftest.$ac_ext
6803 # OK, works on sane cases. Now check whether nonexistent headers
6804 # can be detected and how.
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807 #include <ac_nonexistent.h>
6809 if ac_fn_c_try_cpp "$LINENO"; then :
6810 # Broken: success on invalid input.
6813 # Passes both tests.
6817 rm -f conftest.err conftest.i conftest.$ac_ext
6820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6821 rm -f conftest.i conftest.err conftest.$ac_ext
6822 if $ac_preproc_ok; then :
6825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6827 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6828 See \`config.log' for more details" "$LINENO" 5; }
6832 ac_cpp='$CPP $CPPFLAGS'
6833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841 # Set up TAS assembly code if needed; the template file has now had its
6842 # chance to request this.
6844 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
6847 if test "$need_tas" = yes ; then
6856 # Automatic dependency tracking
6860 # Check whether --enable-depend was given.
6861 if test "${enable_depend+set}" = set; then :
6862 enableval=$enable_depend;
6871 as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5
6885 # Enable assert checks
6889 # Check whether --enable-cassert was given.
6890 if test "${enable_cassert+set}" = set; then :
6891 enableval=$enable_cassert;
6895 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
6902 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
6915 # Include directories
6918 IFS="${IFS}${PATH_SEPARATOR}"
6919 # SRCH_INC comes from the template file
6920 for dir in $with_includes $SRCH_INC; do
6921 if test -d "$dir"; then
6922 INCLUDES="$INCLUDES -I$dir"
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
6925 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
6933 # Library directories
6936 IFS="${IFS}${PATH_SEPARATOR}"
6937 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
6938 for dir in $LIBRARY_DIRS $SRCH_LIB; do
6939 if test -d "$dir"; then
6940 LIBDIRS="$LIBDIRS -L$dir"
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
6943 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
6949 # Enable thread-safe client libraries
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
6952 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
6955 # Check whether --enable-thread-safety was given.
6956 if test "${enable_thread_safety+set}" = set; then :
6957 enableval=$enable_thread_safety;
6966 as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5
6971 enable_thread_safety=yes
6976 if test "$enable_thread_safety" = yes; then
6978 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
6982 $as_echo "$enable_thread_safety" >&6; }
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
6989 $as_echo_n "checking whether to build with ICU support... " >&6; }
6993 # Check whether --with-icu was given.
6994 if test "${with_icu+set}" = set; then :
6999 $as_echo "#define USE_ICU 1" >>confdefs.h
7006 as_fn_error $? "no argument expected for --with-icu option" "$LINENO" 5
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
7017 $as_echo "$with_icu" >&6; }
7020 if test "$with_icu" = yes; then
7028 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7029 if test -n "$ac_tool_prefix"; then
7030 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7031 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7035 $as_echo_n "(cached) " >&6
7039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7061 if test -n "$PKG_CONFIG"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7063 $as_echo "$PKG_CONFIG" >&6; }
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7071 if test -z "$ac_cv_path_PKG_CONFIG"; then
7072 ac_pt_PKG_CONFIG=$PKG_CONFIG
7073 # Extract the first word of "pkg-config", so it can be a program name with args.
7074 set dummy pkg-config; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7078 $as_echo_n "(cached) " >&6
7080 case $ac_pt_PKG_CONFIG in
7082 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7104 if test -n "$ac_pt_PKG_CONFIG"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7106 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7112 if test "x$ac_pt_PKG_CONFIG" = x; then
7115 case $cross_compiling:$ac_tool_warned in
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7119 ac_tool_warned=yes ;;
7121 PKG_CONFIG=$ac_pt_PKG_CONFIG
7124 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7128 if test -n "$PKG_CONFIG"; then
7129 _pkg_min_version=0.9.0
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7131 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7132 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7134 $as_echo "yes" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
7144 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
7146 if test -n "$ICU_CFLAGS"; then
7147 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
7148 elif test -n "$PKG_CONFIG"; then
7149 if test -n "$PKG_CONFIG" && \
7150 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
7151 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
7153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7154 test $ac_status = 0; }; then
7155 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
7156 test "x$?" != "x0" && pkg_failed=yes
7163 if test -n "$ICU_LIBS"; then
7164 pkg_cv_ICU_LIBS="$ICU_LIBS"
7165 elif test -n "$PKG_CONFIG"; then
7166 if test -n "$PKG_CONFIG" && \
7167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
7168 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
7170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7171 test $ac_status = 0; }; then
7172 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
7173 test "x$?" != "x0" && pkg_failed=yes
7183 if test $pkg_failed = yes; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7187 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7188 _pkg_short_errors_supported=yes
7190 _pkg_short_errors_supported=no
7192 if test $_pkg_short_errors_supported = yes; then
7193 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
7195 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
7197 # Put the nasty error message in config.log where it belongs
7198 echo "$ICU_PKG_ERRORS" >&5
7200 as_fn_error $? "Package requirements (icu-uc icu-i18n) were not met:
7204 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7205 installed software in a non-standard prefix.
7207 Alternatively, you may set the environment variables ICU_CFLAGS
7208 and ICU_LIBS to avoid the need to call pkg-config.
7209 See the pkg-config man page for more details." "$LINENO" 5
7210 elif test $pkg_failed = untried; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7215 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7216 is in your PATH or set the PKG_CONFIG environment variable to the full
7219 Alternatively, you may set the environment variables ICU_CFLAGS
7220 and ICU_LIBS to avoid the need to call pkg-config.
7221 See the pkg-config man page for more details.
7223 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7224 See \`config.log' for more details" "$LINENO" 5; }
7226 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
7227 ICU_LIBS=$pkg_cv_ICU_LIBS
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7229 $as_echo "yes" >&6; }
7235 # Optionally build Tcl modules (PL/Tcl)
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
7238 $as_echo_n "checking whether to build with Tcl... " >&6; }
7242 # Check whether --with-tcl was given.
7243 if test "${with_tcl+set}" = set; then :
7253 as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
7264 $as_echo "$with_tcl" >&6; }
7267 # We see if the path to the Tcl/Tk configuration scripts is specified.
7268 # This will override the use of tclsh to find the paths to search.
7273 # Check whether --with-tclconfig was given.
7274 if test "${with_tclconfig+set}" = set; then :
7275 withval=$with_tclconfig;
7278 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
7281 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
7293 # Optionally build Perl modules (PL/Perl)
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
7296 $as_echo_n "checking whether to build Perl modules... " >&6; }
7300 # Check whether --with-perl was given.
7301 if test "${with_perl+set}" = set; then :
7311 as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
7322 $as_echo "$with_perl" >&6; }
7326 # Optionally build Python modules (PL/Python)
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
7329 $as_echo_n "checking whether to build Python modules... " >&6; }
7333 # Check whether --with-python was given.
7334 if test "${with_python+set}" = set; then :
7335 withval=$with_python;
7344 as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7355 $as_echo "$with_python" >&6; }
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
7362 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
7366 # Check whether --with-gssapi was given.
7367 if test "${with_gssapi+set}" = set; then :
7368 withval=$with_gssapi;
7373 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
7375 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
7382 as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
7393 $as_echo "$with_gssapi" >&6; }
7401 # Kerberos configuration parameters
7406 # Check whether --with-krb-srvnam was given.
7407 if test "${with_krb_srvnam+set}" = set; then :
7408 withval=$with_krb_srvnam;
7411 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
7414 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
7422 with_krb_srvnam="postgres"
7428 cat >>confdefs.h <<_ACEOF
7429 #define PG_KRB_SRVNAM "$with_krb_srvnam"
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
7438 $as_echo_n "checking whether to build with PAM support... " >&6; }
7442 # Check whether --with-pam was given.
7443 if test "${with_pam+set}" = set; then :
7448 $as_echo "#define USE_PAM 1" >>confdefs.h
7455 as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
7466 $as_echo "$with_pam" >&6; }
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
7473 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
7477 # Check whether --with-bsd-auth was given.
7478 if test "${with_bsd_auth+set}" = set; then :
7479 withval=$with_bsd_auth;
7483 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
7490 as_fn_error $? "no argument expected for --with-bsd-auth option" "$LINENO" 5
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
7501 $as_echo "$with_bsd_auth" >&6; }
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
7508 $as_echo_n "checking whether to build with LDAP support... " >&6; }
7512 # Check whether --with-ldap was given.
7513 if test "${with_ldap+set}" = set; then :
7518 $as_echo "#define USE_LDAP 1" >>confdefs.h
7525 as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
7536 $as_echo "$with_ldap" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
7544 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
7548 # Check whether --with-bonjour was given.
7549 if test "${with_bonjour+set}" = set; then :
7550 withval=$with_bonjour;
7554 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
7561 as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
7572 $as_echo "$with_bonjour" >&6; }
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
7579 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
7583 # Check whether --with-openssl was given.
7584 if test "${with_openssl+set}" = set; then :
7585 withval=$with_openssl;
7589 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
7596 as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
7607 $as_echo "$with_openssl" >&6; }
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
7614 $as_echo_n "checking whether to build with SELinux support... " >&6; }
7618 # Check whether --with-selinux was given.
7619 if test "${with_selinux+set}" = set; then :
7620 withval=$with_selinux;
7629 as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
7641 $as_echo "$with_selinux" >&6; }
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
7647 $as_echo_n "checking whether to build with systemd support... " >&6; }
7651 # Check whether --with-systemd was given.
7652 if test "${with_systemd+set}" = set; then :
7653 withval=$with_systemd;
7657 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
7664 as_fn_error $? "no argument expected for --with-systemd option" "$LINENO" 5
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
7676 $as_echo "$with_systemd" >&6; }
7684 # Check whether --with-readline was given.
7685 if test "${with_readline+set}" = set; then :
7686 withval=$with_readline;
7695 as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5
7705 # readline on MinGW has problems with backslashes in psql and other bugs.
7706 # This is particularly a problem with non-US code pages.
7707 # Therefore disable its use until we understand the cause. 2004-07-20
7708 if test "$PORTNAME" = "win32"; then
7709 if test "$with_readline" = yes; then
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
7711 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
7723 # Check whether --with-libedit-preferred was given.
7724 if test "${with_libedit_preferred+set}" = set; then :
7725 withval=$with_libedit_preferred;
7734 as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5
7739 with_libedit_preferred=no
7749 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
7750 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
7751 # UUID library. More than one of these might be present on a given platform,
7752 # so we make the user say which one she wants.
7757 # Check whether --with-uuid was given.
7758 if test "${with_uuid+set}" = set; then :
7762 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
7765 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
7775 if test x"$with_uuid" = x"" ; then
7781 # Check whether --with-ossp-uuid was given.
7782 if test "${with_ossp_uuid+set}" = set; then :
7783 withval=$with_ossp_uuid;
7792 as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5
7802 if test "$with_ossp_uuid" = yes ; then
7806 if test "$with_uuid" = bsd ; then
7808 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
7810 UUID_EXTRA_OBJS="md5.o sha1.o"
7811 elif test "$with_uuid" = e2fs ; then
7813 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
7815 UUID_EXTRA_OBJS="md5.o sha1.o"
7816 elif test "$with_uuid" = ossp ; then
7818 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
7821 elif test "$with_uuid" = no ; then
7824 as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
7836 # Check whether --with-libxml was given.
7837 if test "${with_libxml+set}" = set; then :
7838 withval=$with_libxml;
7842 $as_echo "#define USE_LIBXML 1" >>confdefs.h
7849 as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5
7860 if test "$with_libxml" = yes ; then
7861 if test -z "$XML2_CONFIG"; then
7862 for ac_prog in xml2-config
7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
7865 set dummy $ac_prog; ac_word=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if ${ac_cv_path_XML2_CONFIG+:} false; then :
7869 $as_echo_n "(cached) " >&6
7871 case $XML2_CONFIG in
7873 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
7895 if test -n "$XML2_CONFIG"; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
7897 $as_echo "$XML2_CONFIG" >&6; }
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 $as_echo "no" >&6; }
7904 test -n "$XML2_CONFIG" && break
7908 # Report the value of XML2_CONFIG in configure's output in all cases.
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
7910 $as_echo_n "checking for XML2_CONFIG... " >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
7912 $as_echo "$XML2_CONFIG" >&6; }
7915 if test -n "$XML2_CONFIG"; then
7916 for pgac_option in `$XML2_CONFIG --cflags`; do
7917 case $pgac_option in
7918 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
7921 for pgac_option in `$XML2_CONFIG --libs`; do
7922 case $pgac_option in
7923 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
7937 # Check whether --with-libxslt was given.
7938 if test "${with_libxslt+set}" = set; then :
7939 withval=$with_libxslt;
7943 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
7950 as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5
7970 # Check whether --with-system-tzdata was given.
7971 if test "${with_system_tzdata+set}" = set; then :
7972 withval=$with_system_tzdata;
7975 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
7978 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
7996 # Check whether --with-zlib was given.
7997 if test "${with_zlib+set}" = set; then :
8007 as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5
8023 # Assume system is ELF if it predefines __ELF__ as 1,
8024 # otherwise believe host_os based default.
8026 freebsd1*|freebsd2*) elf=no;;
8027 freebsd3*|freebsd4*) elf=yes;;
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8032 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8033 if ${ac_cv_path_GREP+:} false; then :
8034 $as_echo_n "(cached) " >&6
8036 if test -z "$GREP"; then
8037 ac_path_GREP_found=false
8038 # Loop through the user's path and test for each of PROGNAME-LIST
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8043 test -z "$as_dir" && as_dir=.
8044 for ac_prog in grep ggrep; do
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8047 as_fn_executable_p "$ac_path_GREP" || continue
8048 # Check for GNU ac_path_GREP and select it if it is found.
8049 # Check for GNU $ac_path_GREP
8050 case `"$ac_path_GREP" --version 2>&1` in
8052 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8055 $as_echo_n 0123456789 >"conftest.in"
8058 cat "conftest.in" "conftest.in" >"conftest.tmp"
8059 mv "conftest.tmp" "conftest.in"
8060 cp "conftest.in" "conftest.nl"
8061 $as_echo 'GREP' >> "conftest.nl"
8062 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8064 as_fn_arith $ac_count + 1 && ac_count=$as_val
8065 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8066 # Best one so far, save it but keep looking for a better one
8067 ac_cv_path_GREP="$ac_path_GREP"
8068 ac_path_GREP_max=$ac_count
8070 # 10*(2^10) chars as input seems more than enough
8071 test $ac_count -gt 10 && break
8073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8076 $ac_path_GREP_found && break 3
8081 if test -z "$ac_cv_path_GREP"; then
8082 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8085 ac_cv_path_GREP=$GREP
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8090 $as_echo "$ac_cv_path_GREP" >&6; }
8091 GREP="$ac_cv_path_GREP"
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8095 $as_echo_n "checking for egrep... " >&6; }
8096 if ${ac_cv_path_EGREP+:} false; then :
8097 $as_echo_n "(cached) " >&6
8099 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8100 then ac_cv_path_EGREP="$GREP -E"
8102 if test -z "$EGREP"; then
8103 ac_path_EGREP_found=false
8104 # Loop through the user's path and test for each of PROGNAME-LIST
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8109 test -z "$as_dir" && as_dir=.
8110 for ac_prog in egrep; do
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8113 as_fn_executable_p "$ac_path_EGREP" || continue
8114 # Check for GNU ac_path_EGREP and select it if it is found.
8115 # Check for GNU $ac_path_EGREP
8116 case `"$ac_path_EGREP" --version 2>&1` in
8118 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8121 $as_echo_n 0123456789 >"conftest.in"
8124 cat "conftest.in" "conftest.in" >"conftest.tmp"
8125 mv "conftest.tmp" "conftest.in"
8126 cp "conftest.in" "conftest.nl"
8127 $as_echo 'EGREP' >> "conftest.nl"
8128 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8130 as_fn_arith $ac_count + 1 && ac_count=$as_val
8131 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8132 # Best one so far, save it but keep looking for a better one
8133 ac_cv_path_EGREP="$ac_path_EGREP"
8134 ac_path_EGREP_max=$ac_count
8136 # 10*(2^10) chars as input seems more than enough
8137 test $ac_count -gt 10 && break
8139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8142 $ac_path_EGREP_found && break 3
8147 if test -z "$ac_cv_path_EGREP"; then
8148 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8151 ac_cv_path_EGREP=$EGREP
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8157 $as_echo "$ac_cv_path_EGREP" >&6; }
8158 EGREP="$ac_cv_path_EGREP"
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8169 $EGREP "yes" >/dev/null 2>&1; then :
8172 if test "X$elf" = "Xyes" ; then
8186 CPPFLAGS="$CPPFLAGS $INCLUDES"
8187 LDFLAGS="$LDFLAGS $LIBDIRS"
8193 # Check whether --with-gnu-ld was given.
8194 if test "${with_gnu_ld+set}" = set; then :
8195 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8201 if test "$GCC" = yes; then
8202 # Check if gcc -print-prog-name=ld gives a path.
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8204 $as_echo_n "checking for ld used by GCC... " >&6; }
8207 # gcc leaves a trailing carriage return which upsets mingw
8208 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8210 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8213 # Accept absolute paths.
8214 [\\/]* | [A-Za-z]:[\\/]*)
8215 re_direlt='/[^/][^/]*/\.\./'
8216 # Canonicalize the path of ld
8217 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8218 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8219 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8221 test -z "$LD" && LD="$ac_prog"
8224 # If it fails, then pretend we aren't using GCC.
8228 # If it is relative, then search for the first ld in PATH.
8232 elif test "$with_gnu_ld" = yes; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8234 $as_echo_n "checking for GNU ld... " >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8237 $as_echo_n "checking for non-GNU ld... " >&6; }
8239 if ${ac_cv_path_LD+:} false; then :
8240 $as_echo_n "(cached) " >&6
8242 if test -z "$LD"; then
8243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8244 for ac_dir in $PATH; do
8245 test -z "$ac_dir" && ac_dir=.
8246 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8247 ac_cv_path_LD="$ac_dir/$ac_prog"
8248 # Check to see if the program is GNU ld. I'd rather use --version,
8249 # but apparently some GNU ld's only accept -v.
8250 # Break only if it was the GNU/non-GNU ld that we prefer.
8251 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8252 test "$with_gnu_ld" != no && break
8254 test "$with_gnu_ld" != yes && break
8260 ac_cv_path_LD="$LD" # Let the user override the test with a path.
8265 if test -n "$LD"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8267 $as_echo "$LD" >&6; }
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8272 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8274 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8275 if ${ac_cv_prog_gnu_ld+:} false; then :
8276 $as_echo_n "(cached) " >&6
8278 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8279 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8280 ac_cv_prog_gnu_ld=yes
8282 ac_cv_prog_gnu_ld=no
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
8286 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
8287 with_gnu_ld=$ac_cv_prog_gnu_ld
8292 if test -n "$ac_tool_prefix"; then
8293 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8294 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if ${ac_cv_prog_RANLIB+:} false; then :
8298 $as_echo_n "(cached) " >&6
8300 if test -n "$RANLIB"; then
8301 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320 RANLIB=$ac_cv_prog_RANLIB
8321 if test -n "$RANLIB"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8323 $as_echo "$RANLIB" >&6; }
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8331 if test -z "$ac_cv_prog_RANLIB"; then
8332 ac_ct_RANLIB=$RANLIB
8333 # Extract the first word of "ranlib", so it can be a program name with args.
8334 set dummy ranlib; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8338 $as_echo_n "(cached) " >&6
8340 if test -n "$ac_ct_RANLIB"; then
8341 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350 ac_cv_prog_ac_ct_RANLIB="ranlib"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8361 if test -n "$ac_ct_RANLIB"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8363 $as_echo "$ac_ct_RANLIB" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8369 if test "x$ac_ct_RANLIB" = x; then
8372 case $cross_compiling:$ac_tool_warned in
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8376 ac_tool_warned=yes ;;
8378 RANLIB=$ac_ct_RANLIB
8381 RANLIB="$ac_cv_prog_RANLIB"
8385 if test -n "$ac_tool_prefix"; then
8386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8387 set dummy ${ac_tool_prefix}strip; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if ${ac_cv_prog_STRIP+:} false; then :
8391 $as_echo_n "(cached) " >&6
8393 if test -n "$STRIP"; then
8394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8403 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 STRIP=$ac_cv_prog_STRIP
8414 if test -n "$STRIP"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8416 $as_echo "$STRIP" >&6; }
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8424 if test -z "$ac_cv_prog_STRIP"; then
8426 # Extract the first word of "strip", so it can be a program name with args.
8427 set dummy strip; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8431 $as_echo_n "(cached) " >&6
8433 if test -n "$ac_ct_STRIP"; then
8434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8443 ac_cv_prog_ac_ct_STRIP="strip"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8454 if test -n "$ac_ct_STRIP"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8456 $as_echo "$ac_ct_STRIP" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8462 if test "x$ac_ct_STRIP" = x; then
8465 case $cross_compiling:$ac_tool_warned in
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8469 ac_tool_warned=yes ;;
8474 STRIP="$ac_cv_prog_STRIP"
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
8479 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
8480 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
8481 STRIP_STATIC_LIB="$STRIP -x"
8482 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8484 $as_echo "yes" >&6; }
8489 STRIP_STATIC_LIB=$STRIP
8490 STRIP_SHARED_LIB=$STRIP
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8492 $as_echo "yes" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8505 if test -n "$ac_tool_prefix"; then
8506 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8507 set dummy ${ac_tool_prefix}ar; ac_word=$2
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 $as_echo_n "checking for $ac_word... " >&6; }
8510 if ${ac_cv_prog_AR+:} false; then :
8511 $as_echo_n "(cached) " >&6
8513 if test -n "$AR"; then
8514 ac_cv_prog_AR="$AR" # Let the user override the test.
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 test -z "$as_dir" && as_dir=.
8521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8523 ac_cv_prog_AR="${ac_tool_prefix}ar"
8524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 if test -n "$AR"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8536 $as_echo "$AR" >&6; }
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539 $as_echo "no" >&6; }
8544 if test -z "$ac_cv_prog_AR"; then
8546 # Extract the first word of "ar", so it can be a program name with args.
8547 set dummy ar; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8551 $as_echo_n "(cached) " >&6
8553 if test -n "$ac_ct_AR"; then
8554 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_ac_ct_AR="ar"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8574 if test -n "$ac_ct_AR"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8576 $as_echo "$ac_ct_AR" >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8582 if test "x$ac_ct_AR" = x; then
8585 case $cross_compiling:$ac_tool_warned in
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8589 ac_tool_warned=yes ;;
8597 if test "$PORTNAME" = "win32"; then
8598 if test -n "$ac_tool_prefix"; then
8599 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8600 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602 $as_echo_n "checking for $ac_word... " >&6; }
8603 if ${ac_cv_prog_DLLTOOL+:} false; then :
8604 $as_echo_n "(cached) " >&6
8606 if test -n "$DLLTOOL"; then
8607 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 test -z "$as_dir" && as_dir=.
8614 for ac_exec_ext in '' $ac_executable_extensions; do
8615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8616 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 DLLTOOL=$ac_cv_prog_DLLTOOL
8627 if test -n "$DLLTOOL"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8629 $as_echo "$DLLTOOL" >&6; }
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 $as_echo "no" >&6; }
8637 if test -z "$ac_cv_prog_DLLTOOL"; then
8638 ac_ct_DLLTOOL=$DLLTOOL
8639 # Extract the first word of "dlltool", so it can be a program name with args.
8640 set dummy dlltool; ac_word=$2
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8642 $as_echo_n "checking for $ac_word... " >&6; }
8643 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8644 $as_echo_n "(cached) " >&6
8646 if test -n "$ac_ct_DLLTOOL"; then
8647 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653 test -z "$as_dir" && as_dir=.
8654 for ac_exec_ext in '' $ac_executable_extensions; do
8655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8656 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8667 if test -n "$ac_ct_DLLTOOL"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8669 $as_echo "$ac_ct_DLLTOOL" >&6; }
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }
8675 if test "x$ac_ct_DLLTOOL" = x; then
8678 case $cross_compiling:$ac_tool_warned in
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8682 ac_tool_warned=yes ;;
8684 DLLTOOL=$ac_ct_DLLTOOL
8687 DLLTOOL="$ac_cv_prog_DLLTOOL"
8690 if test -n "$ac_tool_prefix"; then
8691 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
8692 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 $as_echo_n "checking for $ac_word... " >&6; }
8695 if ${ac_cv_prog_DLLWRAP+:} false; then :
8696 $as_echo_n "(cached) " >&6
8698 if test -n "$DLLWRAP"; then
8699 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
8701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 test -z "$as_dir" && as_dir=.
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8708 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 DLLWRAP=$ac_cv_prog_DLLWRAP
8719 if test -n "$DLLWRAP"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
8721 $as_echo "$DLLWRAP" >&6; }
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8729 if test -z "$ac_cv_prog_DLLWRAP"; then
8730 ac_ct_DLLWRAP=$DLLWRAP
8731 # Extract the first word of "dllwrap", so it can be a program name with args.
8732 set dummy dllwrap; ac_word=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
8736 $as_echo_n "(cached) " >&6
8738 if test -n "$ac_ct_DLLWRAP"; then
8739 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
8741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 test -z "$as_dir" && as_dir=.
8746 for ac_exec_ext in '' $ac_executable_extensions; do
8747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8748 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
8749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8758 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
8759 if test -n "$ac_ct_DLLWRAP"; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
8761 $as_echo "$ac_ct_DLLWRAP" >&6; }
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8767 if test "x$ac_ct_DLLWRAP" = x; then
8770 case $cross_compiling:$ac_tool_warned in
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8774 ac_tool_warned=yes ;;
8776 DLLWRAP=$ac_ct_DLLWRAP
8779 DLLWRAP="$ac_cv_prog_DLLWRAP"
8782 if test -n "$ac_tool_prefix"; then
8783 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8784 set dummy ${ac_tool_prefix}windres; ac_word=$2
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786 $as_echo_n "checking for $ac_word... " >&6; }
8787 if ${ac_cv_prog_WINDRES+:} false; then :
8788 $as_echo_n "(cached) " >&6
8790 if test -n "$WINDRES"; then
8791 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 test -z "$as_dir" && as_dir=.
8798 for ac_exec_ext in '' $ac_executable_extensions; do
8799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8800 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810 WINDRES=$ac_cv_prog_WINDRES
8811 if test -n "$WINDRES"; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8813 $as_echo "$WINDRES" >&6; }
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8821 if test -z "$ac_cv_prog_WINDRES"; then
8822 ac_ct_WINDRES=$WINDRES
8823 # Extract the first word of "windres", so it can be a program name with args.
8824 set dummy windres; ac_word=$2
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826 $as_echo_n "checking for $ac_word... " >&6; }
8827 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
8828 $as_echo_n "(cached) " >&6
8830 if test -n "$ac_ct_WINDRES"; then
8831 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8840 ac_cv_prog_ac_ct_WINDRES="windres"
8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8851 if test -n "$ac_ct_WINDRES"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8853 $as_echo "$ac_ct_WINDRES" >&6; }
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8859 if test "x$ac_ct_WINDRES" = x; then
8862 case $cross_compiling:$ac_tool_warned in
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8866 ac_tool_warned=yes ;;
8868 WINDRES=$ac_ct_WINDRES
8871 WINDRES="$ac_cv_prog_WINDRES"
8876 # Find a good install program. We prefer a C program (faster),
8877 # so one script is as good as another. But avoid the broken or
8878 # incompatible versions:
8879 # SysV /etc/install, /usr/sbin/install
8880 # SunOS /usr/etc/install
8881 # IRIX /sbin/install
8883 # AmigaOS /C/install, which installs bootblocks on floppy discs
8884 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8885 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8886 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8887 # OS/2's system install, which has a completely different semantic
8888 # ./install, which can be erroneously created by make from ./install.sh.
8889 # Reject install programs that cannot install multiple files.
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8891 $as_echo_n "checking for a BSD-compatible install... " >&6; }
8892 if test -z "$INSTALL"; then
8893 if ${ac_cv_path_install+:} false; then :
8894 $as_echo_n "(cached) " >&6
8896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900 test -z "$as_dir" && as_dir=.
8901 # Account for people who put trailing slashes in PATH elements.
8902 case $as_dir/ in #((
8903 ./ | .// | /[cC]/* | \
8904 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8905 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8908 # OSF1 and SCO ODT 3.0 have their own names for install.
8909 # Don't use installbsd from OSF since it installs stuff as root
8911 for ac_prog in ginstall scoinst install; do
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8914 if test $ac_prog = install &&
8915 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8916 # AIX install. It has an incompatible calling convention.
8918 elif test $ac_prog = install &&
8919 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8920 # program-specific install script used by HP pwplus--don't use.
8923 rm -rf conftest.one conftest.two conftest.dir
8924 echo one > conftest.one
8925 echo two > conftest.two
8927 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8928 test -s conftest.one && test -s conftest.two &&
8929 test -s conftest.dir/conftest.one &&
8930 test -s conftest.dir/conftest.two
8932 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8945 rm -rf conftest.one conftest.two conftest.dir
8948 if test "${ac_cv_path_install+set}" = set; then
8949 INSTALL=$ac_cv_path_install
8951 # As a last resort, use the slow shell script. Don't cache a
8952 # value for INSTALL within a source directory, because that will
8953 # break other packages using the cache if that directory is
8954 # removed, or if the value is a relative name.
8955 INSTALL=$ac_install_sh
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8959 $as_echo "$INSTALL" >&6; }
8961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8962 # It thinks the first close brace ends the variable substitution.
8963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8969 # When Autoconf chooses install-sh as install program it tries to generate
8970 # a relative path to it in each makefile where it substitutes it. This clashes
8971 # with our Makefile.global concept. This workaround helps.
8973 *install-sh*) install_bin='';;
8974 *) install_bin=$INSTALL;;
8978 if test -z "$TAR"; then
8981 # Extract the first word of "$ac_prog", so it can be a program name with args.
8982 set dummy $ac_prog; ac_word=$2
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 $as_echo_n "checking for $ac_word... " >&6; }
8985 if ${ac_cv_path_TAR+:} false; then :
8986 $as_echo_n "(cached) " >&6
8990 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 test -z "$as_dir" && as_dir=.
8998 for ac_exec_ext in '' $ac_executable_extensions; do
8999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9000 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012 if test -n "$TAR"; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9014 $as_echo "$TAR" >&6; }
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9021 test -n "$TAR" && break
9025 # Report the value of TAR in configure's output in all cases.
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9027 $as_echo_n "checking for TAR... " >&6; }
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9029 $as_echo "$TAR" >&6; }
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9033 $as_echo_n "checking whether ln -s works... " >&6; }
9035 if test "$LN_S" = "ln -s"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9037 $as_echo "yes" >&6; }
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9040 $as_echo "no, using $LN_S" >&6; }
9043 for ac_prog in gawk mawk nawk awk
9045 # Extract the first word of "$ac_prog", so it can be a program name with args.
9046 set dummy $ac_prog; ac_word=$2
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 $as_echo_n "checking for $ac_word... " >&6; }
9049 if ${ac_cv_prog_AWK+:} false; then :
9050 $as_echo_n "(cached) " >&6
9052 if test -n "$AWK"; then
9053 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059 test -z "$as_dir" && as_dir=.
9060 for ac_exec_ext in '' $ac_executable_extensions; do
9061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9062 ac_cv_prog_AWK="$ac_prog"
9063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073 if test -n "$AWK"; then
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9075 $as_echo "$AWK" >&6; }
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9082 test -n "$AWK" && break
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9086 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9087 if test -z "$MKDIR_P"; then
9088 if ${ac_cv_path_mkdir+:} false; then :
9089 $as_echo_n "(cached) " >&6
9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9095 test -z "$as_dir" && as_dir=.
9096 for ac_prog in mkdir gmkdir; do
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
9099 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9100 'mkdir (GNU coreutils) '* | \
9101 'mkdir (coreutils) '* | \
9102 'mkdir (fileutils) '4.1*)
9103 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9113 test -d ./--version && rmdir ./--version
9114 if test "${ac_cv_path_mkdir+set}" = set; then
9115 MKDIR_P="$ac_cv_path_mkdir -p"
9117 # As a last resort, use the slow shell script. Don't cache a
9118 # value for MKDIR_P within a source directory, because that will
9119 # break other packages using the cache if that directory is
9120 # removed, or if the value is a relative name.
9121 MKDIR_P="$ac_install_sh -d"
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9125 $as_echo "$MKDIR_P" >&6; }
9127 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
9128 # a relative path to it in each makefile where it substitutes it. This clashes
9129 # with our Makefile.global concept. This workaround helps.
9131 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
9134 if test -z "$BISON"; then
9135 for ac_prog in bison
9137 # Extract the first word of "$ac_prog", so it can be a program name with args.
9138 set dummy $ac_prog; ac_word=$2
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 $as_echo_n "checking for $ac_word... " >&6; }
9141 if ${ac_cv_path_BISON+:} false; then :
9142 $as_echo_n "(cached) " >&6
9146 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153 test -z "$as_dir" && as_dir=.
9154 for ac_exec_ext in '' $ac_executable_extensions; do
9155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9156 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 BISON=$ac_cv_path_BISON
9168 if test -n "$BISON"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9170 $as_echo "$BISON" >&6; }
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9177 test -n "$BISON" && break
9181 # Report the value of BISON in configure's output in all cases.
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
9183 $as_echo_n "checking for BISON... " >&6; }
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9185 $as_echo "$BISON" >&6; }
9189 if test "$BISON"; then
9190 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
9192 $as_echo "$as_me: using $pgac_bison_version" >&6;}
9193 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9196 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9197 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
9198 $as_echo "$as_me: WARNING:
9199 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9200 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
9203 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
9204 # of the now preferred %name-prefix "base_yy", but the latter
9205 # doesn't work with Bison 2.3 or less. So for now we silence the
9206 # deprecation warnings.
9207 if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
9209 BISONFLAGS="$BISONFLAGS -Wno-deprecated"
9213 if test -z "$BISON"; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9215 *** Without Bison you will not be able to build PostgreSQL from Git nor
9216 *** change any of the parser definition files. You can obtain Bison from
9217 *** a GNU mirror site. (If you are using the official distribution of
9218 *** PostgreSQL then you do not need to worry about this, because the Bison
9219 *** output is pre-generated.)" >&5
9220 $as_echo "$as_me: WARNING:
9221 *** Without Bison you will not be able to build PostgreSQL from Git nor
9222 *** change any of the parser definition files. You can obtain Bison from
9223 *** a GNU mirror site. (If you are using the official distribution of
9224 *** PostgreSQL then you do not need to worry about this, because the Bison
9225 *** output is pre-generated.)" >&2;}
9227 # We don't need AC_SUBST(BISON) because PGAC_PATH_PROGS did it
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
9231 $as_echo_n "checking for flex... " >&6; }
9232 if ${pgac_cv_path_flex+:} false; then :
9233 $as_echo_n "(cached) " >&6
9235 # Let the user override the test
9236 if test -n "$FLEX"; then
9237 pgac_cv_path_flex=$FLEX
9241 for pgac_dir in $PATH; do
9243 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
9246 for pgac_prog in flex lex; do
9247 pgac_candidate="$pgac_dir/$pgac_prog"
9248 if test -f "$pgac_candidate" \
9249 && $pgac_candidate --version </dev/null >/dev/null 2>&1
9251 echo '%%' > conftest.l
9252 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
9253 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
9254 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;}'
9256 pgac_cv_path_flex=$pgac_candidate
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9260 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
9261 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
9262 $as_echo "$as_me: WARNING:
9263 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
9264 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
9270 rm -f conftest.l lex.yy.c
9271 : ${pgac_cv_path_flex=no}
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
9276 $as_echo "$pgac_cv_path_flex" >&6; }
9277 if test x"$pgac_cv_path_flex" = x"no"; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9279 *** Without Flex you will not be able to build PostgreSQL from Git nor
9280 *** change any of the scanner definition files. You can obtain Flex from
9281 *** a GNU mirror site. (If you are using the official distribution of
9282 *** PostgreSQL then you do not need to worry about this because the Flex
9283 *** output is pre-generated.)" >&5
9284 $as_echo "$as_me: WARNING:
9285 *** Without Flex you will not be able to build PostgreSQL from Git nor
9286 *** change any of the scanner definition files. You can obtain Flex from
9287 *** a GNU mirror site. (If you are using the official distribution of
9288 *** PostgreSQL then you do not need to worry about this because the Flex
9289 *** output is pre-generated.)" >&2;}
9293 FLEX=$pgac_cv_path_flex
9294 pgac_flex_version=`$FLEX --version 2>/dev/null`
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
9296 $as_echo "$as_me: using $pgac_flex_version" >&6;}
9303 if test -z "$PERL"; then
9306 # Extract the first word of "$ac_prog", so it can be a program name with args.
9307 set dummy $ac_prog; ac_word=$2
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309 $as_echo_n "checking for $ac_word... " >&6; }
9310 if ${ac_cv_path_PERL+:} false; then :
9311 $as_echo_n "(cached) " >&6
9315 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9322 test -z "$as_dir" && as_dir=.
9323 for ac_exec_ext in '' $ac_executable_extensions; do
9324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9325 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9336 PERL=$ac_cv_path_PERL
9337 if test -n "$PERL"; then
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9339 $as_echo "$PERL" >&6; }
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9342 $as_echo "no" >&6; }
9346 test -n "$PERL" && break
9350 # Report the value of PERL in configure's output in all cases.
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
9352 $as_echo_n "checking for PERL... " >&6; }
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9354 $as_echo "$PERL" >&6; }
9358 if test "$PERL"; then
9359 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'`
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
9361 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
9362 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
9363 $AWK '{ if ($1 == 5 && $2 >= 8) exit 1; else exit 0;}'
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9366 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
9367 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
9368 $as_echo "$as_me: WARNING:
9369 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
9370 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
9375 if test -z "$PERL"; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9377 *** Without Perl you will not be able to build PostgreSQL from Git.
9378 *** You can obtain Perl from any CPAN mirror site.
9379 *** (If you are using the official distribution of PostgreSQL then you do not
9380 *** need to worry about this, because the Perl output is pre-generated.)" >&5
9381 $as_echo "$as_me: WARNING:
9382 *** Without Perl you will not be able to build PostgreSQL from Git.
9383 *** You can obtain Perl from any CPAN mirror site.
9384 *** (If you are using the official distribution of PostgreSQL then you do not
9385 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
9388 if test "$with_perl" = yes; then
9389 if test -z "$PERL"; then
9390 as_fn_error $? "Perl not found" "$LINENO" 5
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
9394 $as_echo_n "checking for Perl archlibexp... " >&6; }
9395 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
9396 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
9398 $as_echo "$perl_archlibexp" >&6; }
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
9400 $as_echo_n "checking for Perl privlibexp... " >&6; }
9401 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
9402 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
9404 $as_echo "$perl_privlibexp" >&6; }
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
9406 $as_echo_n "checking for Perl useshrplib... " >&6; }
9407 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
9408 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
9410 $as_echo "$perl_useshrplib" >&6; }
9411 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true; then
9412 as_fn_error $? "cannot build PL/Perl because libperl is not a shared library
9413 You might have to rebuild your Perl installation. Refer to the
9414 documentation for details. Use --without-perl to disable building
9415 PL/Perl." "$LINENO" 5
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
9419 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
9420 perl_ccflags=`$PERL -MConfig -e 'print $Config{ccflags}'`
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
9422 $as_echo "$perl_ccflags" >&6; }
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
9424 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
9425 perl_embed_ccflags=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
9427 $as_echo "$perl_embed_ccflags" >&6; }
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
9431 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
9432 if test "$PORTNAME" = "win32" ; then
9433 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
9434 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then
9435 perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
9437 perl_lib=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'`
9438 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then
9439 perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
9443 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
9444 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
9445 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
9447 if test -z "$perl_embed_ldflags" ; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449 $as_echo "no" >&6; }
9450 as_fn_error $? "could not determine flags for linking embedded Perl.
9451 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
9452 installed." "$LINENO" 5
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
9455 $as_echo "$perl_embed_ldflags" >&6; }
9460 if test "$with_python" = yes; then
9461 if test -z "$PYTHON"; then
9462 for ac_prog in python
9464 # Extract the first word of "$ac_prog", so it can be a program name with args.
9465 set dummy $ac_prog; ac_word=$2
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467 $as_echo_n "checking for $ac_word... " >&6; }
9468 if ${ac_cv_path_PYTHON+:} false; then :
9469 $as_echo_n "(cached) " >&6
9473 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9483 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494 PYTHON=$ac_cv_path_PYTHON
9495 if test -n "$PYTHON"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9497 $as_echo "$PYTHON" >&6; }
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9504 test -n "$PYTHON" && break
9508 # Report the value of PYTHON in configure's output in all cases.
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
9510 $as_echo_n "checking for PYTHON... " >&6; }
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9512 $as_echo "$PYTHON" >&6; }
9515 if test x"$PYTHON" = x""; then
9516 as_fn_error $? "Python not found" "$LINENO" 5
9520 python_fullversion=`${PYTHON} -c "import sys; print(sys.version)" | sed q`
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: using python $python_fullversion" >&5
9522 $as_echo "$as_me: using python $python_fullversion" >&6;}
9523 # python_fullversion is typically n.n.n plus some trailing junk
9524 python_majorversion=`echo "$python_fullversion" | sed 's/^\([0-9]*\).*/\1/'`
9525 python_minorversion=`echo "$python_fullversion" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'`
9526 python_version=`echo "$python_fullversion" | sed 's/^\([0-9]*\.[0-9]*\).*/\1/'`
9527 # Reject unsupported Python versions as soon as practical.
9528 if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 4; then
9529 as_fn_error $? "Python version $python_version is too old (version 2.4 or later is required)" "$LINENO" 5
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
9533 $as_echo_n "checking for Python distutils module... " >&6; }
9534 if "${PYTHON}" -c 'import distutils' 2>&5
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9537 $as_echo "yes" >&6; }
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9540 $as_echo "no" >&6; }
9541 as_fn_error $? "distutils module not found" "$LINENO" 5
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
9545 $as_echo_n "checking Python configuration directory... " >&6; }
9546 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
9548 $as_echo "$python_configdir" >&6; }
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
9551 $as_echo_n "checking Python include directories... " >&6; }
9552 python_includespec=`${PYTHON} -c "
9553 import distutils.sysconfig
9554 a = '-I' + distutils.sysconfig.get_python_inc(False)
9555 b = '-I' + distutils.sysconfig.get_python_inc(True)
9559 print(a + ' ' + b)"`
9560 if test "$PORTNAME" = win32 ; then
9561 python_includespec=`echo $python_includespec | sed 's,[\],/,g'`
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
9564 $as_echo "$python_includespec" >&6; }
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
9569 $as_echo_n "checking how to link an embedded Python application... " >&6; }
9571 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
9572 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
9574 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
9575 ldlibrary=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
9576 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
9578 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
9581 # Otherwise, guess the base name of the shlib.
9582 # LDVERSION was added in Python 3.2, before that use VERSION,
9583 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
9584 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
9585 if test x"${python_ldversion}" != x""; then
9586 ldlibrary="python${python_ldversion}"
9588 python_version_var=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('VERSION'))))"`
9589 if test x"${python_version_var}" != x""; then
9590 ldlibrary="python${python_version_var}"
9592 ldlibrary="python${python_version}"
9595 # Search for a likely-looking file.
9597 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib
9599 # We don't know the platform DLSUFFIX here, so check 'em all.
9600 for e in .so .dll .dylib .sl; do
9601 if test -e "$d/lib${ldlibrary}$e"; then
9608 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
9609 # (".so.n.n") as well. However, check this only after failing to find
9610 # ".so" anywhere, because yet other platforms (Debian) put the .so
9611 # symlink in a different directory from the underlying versioned shlib.
9612 if test "$found_shlib" != 1; then
9613 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib
9615 for f in "$d/lib${ldlibrary}.so."* ; do
9616 if test -e "$f"; then
9624 # As usual, Windows has its own ideas. Possible default library
9625 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
9626 # and the "lib" prefix might not be there.
9627 if test "$found_shlib" != 1 -a \( "$PORTNAME" = win32 -o "$PORTNAME" = cygwin \); then
9628 for d in "${python_libdir}" "${python_configdir}" c:/Windows/System32 /usr/bin
9630 for f in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
9631 if test -e "$f"; then
9640 if test "$found_shlib" != 1; then
9641 as_fn_error $? "could not find shared library for Python
9642 You might have to rebuild your Python installation. Refer to the
9643 documentation for details. Use --without-python to disable building
9644 PL/Python." "$LINENO" 5
9646 python_libspec="-L${python_libdir} -l${ldlibrary}"
9648 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
9651 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
9657 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
9658 if test -z "$ZIC"; then
9661 # Extract the first word of "$ac_prog", so it can be a program name with args.
9662 set dummy $ac_prog; ac_word=$2
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664 $as_echo_n "checking for $ac_word... " >&6; }
9665 if ${ac_cv_path_ZIC+:} false; then :
9666 $as_echo_n "(cached) " >&6
9670 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
9673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9680 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
9681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9692 if test -n "$ZIC"; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
9694 $as_echo "$ZIC" >&6; }
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697 $as_echo "no" >&6; }
9701 test -n "$ZIC" && break
9705 # Report the value of ZIC in configure's output in all cases.
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIC" >&5
9707 $as_echo_n "checking for ZIC... " >&6; }
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
9709 $as_echo "$ZIC" >&6; }
9712 if test -z "$ZIC"; then
9714 When cross-compiling, either use the option --with-system-tzdata to use
9715 existing time-zone data, or set the environment variable ZIC to a zic
9716 program to use during the build." "$LINENO" 5
9723 # For each platform, we need to know about any special compile and link
9724 # libraries, and whether the normal C function names are thread-safe.
9725 # See the comment at the top of src/port/thread.c for more information.
9726 # WIN32 doesn't need the pthread tests; it always uses threads
9728 # These tests are run before the library-tests, because linking with the
9729 # other libraries can pull in the pthread functions as a side-effect. We
9730 # want to use the -pthread or similar flags directly, and not rely on
9731 # the side-effects of linking with some other library.
9733 # note: We have to use AS_IF here rather than plain if. The AC_CHECK_HEADER
9734 # invocation below is the first one in the script, and autoconf generates
9735 # additional code for that, which must not be inside the if-block. AS_IF
9736 # knows how to do that.
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9738 $as_echo_n "checking for ANSI C header files... " >&6; }
9739 if ${ac_cv_header_stdc+:} false; then :
9740 $as_echo_n "(cached) " >&6
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9757 if ac_fn_c_try_compile "$LINENO"; then :
9758 ac_cv_header_stdc=yes
9760 ac_cv_header_stdc=no
9762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9764 if test $ac_cv_header_stdc = yes; then
9765 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9772 $EGREP "memchr" >/dev/null 2>&1; then :
9775 ac_cv_header_stdc=no
9781 if test $ac_cv_header_stdc = yes; then
9782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9789 $EGREP "free" >/dev/null 2>&1; then :
9792 ac_cv_header_stdc=no
9798 if test $ac_cv_header_stdc = yes; then
9799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9800 if test "$cross_compiling" = yes; then :
9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9807 #if ((' ' & 0x0FF) == 0x020)
9808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9811 # define ISLOWER(c) \
9812 (('a' <= (c) && (c) <= 'i') \
9813 || ('j' <= (c) && (c) <= 'r') \
9814 || ('s' <= (c) && (c) <= 'z'))
9815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9823 for (i = 0; i < 256; i++)
9824 if (XOR (islower (i), ISLOWER (i))
9825 || toupper (i) != TOUPPER (i))
9830 if ac_fn_c_try_run "$LINENO"; then :
9833 ac_cv_header_stdc=no
9835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9836 conftest.$ac_objext conftest.beam conftest.$ac_ext
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9842 $as_echo "$ac_cv_header_stdc" >&6; }
9843 if test $ac_cv_header_stdc = yes; then
9845 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9849 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9850 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9851 inttypes.h stdint.h unistd.h
9853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9854 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9856 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9857 cat >>confdefs.h <<_ACEOF
9858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9866 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
9872 ac_cpp='$CPP $CPPFLAGS'
9873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9879 # We used to check for pthread.h first, but this fails if pthread.h
9880 # requires special compiler flags (e.g. on Tru64 or Sequent).
9881 # It gets checked for in the link test anyway.
9883 # First of all, check if the user has set any of the PTHREAD_LIBS,
9884 # etcetera environment variables, and if threads linking works using
9886 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9887 save_CFLAGS="$CFLAGS"
9888 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9890 LIBS="$PTHREAD_LIBS $LIBS"
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9892 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9896 /* Override any GCC internal prototype to avoid an error.
9897 Use char because int might match the return type of a GCC
9898 builtin and then its argument prototype would still apply. */
9902 char pthread_join ();
9906 return pthread_join ();
9911 if ac_fn_c_try_link "$LINENO"; then :
9914 rm -f core conftest.err conftest.$ac_objext \
9915 conftest$ac_exeext conftest.$ac_ext
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9917 $as_echo "$ax_pthread_ok" >&6; }
9918 if test x"$ax_pthread_ok" = xno; then
9923 CFLAGS="$save_CFLAGS"
9926 # We must check for the threads library under a number of different
9927 # names; the ordering is very important because some systems
9928 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9929 # libraries is broken (non-POSIX).
9931 # Create a list of thread flags to try. Items starting with a "-" are
9932 # C compiler flags, and other items are library names, except for "none"
9933 # which indicates that we try without any flags at all, and "pthread-config"
9934 # which is a program returning the flags for the Pth emulation library.
9936 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
9938 # The ordering *is* (sometimes) important. Some notes on the
9939 # individual items follow:
9941 # pthreads: AIX (must check this before -lpthread)
9942 # none: in case threads are in libc; should be tried before -Kthread and
9943 # other compiler flags to prevent continual compiler warnings
9944 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9945 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9946 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9947 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9948 # -pthreads: Solaris/gcc
9949 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9950 # doesn't hurt to check since this sometimes defines pthreads and
9951 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9952 # is present but should not be used directly)
9953 # -mthreads: Mingw32/gcc, Lynx/gcc
9954 # pthread: Linux, etcetera
9955 # --thread-safe: KAI C++
9956 # pthread-config: use pthread-config program (for GNU Pth library)
9962 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9963 # multi-threading and also sets -lpthread."
9965 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9970 # IBM z/OS requires a feature-test macro to be defined in order to
9971 # enable POSIX threads at all, so give the user a hint if this is
9972 # not set. (We don't define these ourselves, as they can affect
9973 # other portions of the system API in unpredictable ways.)
9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976 /* end confdefs.h. */
9978 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9979 AX_PTHREAD_ZOS_MISSING
9983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9984 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9986 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9994 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
9995 # check that first. On some older versions, libc contains stubbed
9996 # (non-functional) versions of the pthreads routines, so link-based
9997 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9998 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9999 # a function called by this macro, so we could check for that, but
10000 # who knows whether they'll stub that too in a future libc.) So
10001 # we'll look for -pthreads and -lpthread shortly thereafter.
10003 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
10007 # Older versions of Clang only give a warning instead of an error for an
10008 # unrecognized option, unless we specify -Werror. (We throw in some extra
10009 # Clang warning flags for good measure.)
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
10012 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
10013 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
10014 $as_echo_n "(cached) " >&6
10016 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
10017 save_CFLAGS="$CFLAGS"
10018 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
10019 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10031 if ac_fn_c_try_compile "$LINENO"; then :
10032 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
10034 ax_cv_PTHREAD_REJECT_UNKNOWN=no
10036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10037 CFLAGS="$save_CFLAGS"
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
10041 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
10042 ax_pthread_extra_flags=
10043 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
10044 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
10047 if test x"$ax_pthread_ok" = xno; then
10048 for flag in $ax_pthread_flags; do
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10053 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10058 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10059 PTHREAD_CFLAGS="-mt"
10060 PTHREAD_LIBS="-lpthread"
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10065 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
10066 PTHREAD_CFLAGS="$flag"
10070 # Extract the first word of "pthread-config", so it can be a program name with args.
10071 set dummy pthread-config; ac_word=$2
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10073 $as_echo_n "checking for $ac_word... " >&6; }
10074 if ${ac_cv_prog_ax_pthread_config+:} false; then :
10075 $as_echo_n "(cached) " >&6
10077 if test -n "$ax_pthread_config"; then
10078 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in $PATH
10084 test -z "$as_dir" && as_dir=.
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10087 ac_cv_prog_ax_pthread_config="yes"
10088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10098 ax_pthread_config=$ac_cv_prog_ax_pthread_config
10099 if test -n "$ax_pthread_config"; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10101 $as_echo "$ax_pthread_config" >&6; }
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 $as_echo "no" >&6; }
10108 if test x"$ax_pthread_config" = xno; then continue; fi
10109 PTHREAD_CFLAGS="`pthread-config --cflags`"
10110 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10115 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10116 PTHREAD_LIBS="-l$flag"
10121 save_CFLAGS="$CFLAGS"
10122 LIBS="$PTHREAD_LIBS $LIBS"
10123 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
10125 # Check for various functions. We must include pthread.h,
10126 # since some functions may be macros. (On the Sequent, we
10127 # need a special flag -Kthread to make this header compile.)
10128 # We check for pthread_join because it is in -lpthread on IRIX
10129 # while pthread_create is in libc. We check for pthread_attr_init
10130 # due to DEC craziness with -lpthreads. We check for
10131 # pthread_cleanup_push because it is one of the few pthread
10132 # functions on Solaris that doesn't have a non-functional libc stub.
10133 # We try pthread_create on general principles.
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10136 #include <pthread.h>
10137 static void routine(void *a) { a = 0; }
10138 static void *start_routine(void *a) { return a; }
10142 pthread_t th; pthread_attr_t attr;
10143 pthread_create(&th, 0, start_routine, 0);
10144 pthread_join(th, 0);
10145 pthread_attr_init(&attr);
10146 pthread_cleanup_push(routine, 0);
10147 pthread_cleanup_pop(0) /* ; */
10152 if ac_fn_c_try_link "$LINENO"; then :
10155 rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10159 CFLAGS="$save_CFLAGS"
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10162 $as_echo "$ax_pthread_ok" >&6; }
10163 if test "x$ax_pthread_ok" = xyes; then
10172 # Various other checks:
10173 if test "x$ax_pthread_ok" = xyes; then
10175 LIBS="$PTHREAD_LIBS $LIBS"
10176 save_CFLAGS="$CFLAGS"
10177 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10179 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10181 $as_echo_n "checking for joinable pthread attribute... " >&6; }
10182 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
10183 $as_echo_n "(cached) " >&6
10185 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
10186 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189 #include <pthread.h>
10193 int attr = $attr; return attr /* ; */
10198 if ac_fn_c_try_link "$LINENO"; then :
10199 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
10201 rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10207 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10208 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
10209 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
10211 cat >>confdefs.h <<_ACEOF
10212 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10218 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10219 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
10220 $as_echo_n "(cached) " >&6
10222 ax_cv_PTHREAD_SPECIAL_FLAGS=no
10223 ax_pthread_special_flags_added=no
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10227 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
10228 AX_PTHREAD_NEED_SPECIAL_FLAG
10232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10233 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
10236 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
10238 darwin* | hpux* | osf* | solaris*)
10239 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
10249 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
10250 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
10251 test "x$ax_pthread_special_flags_added" != "xyes"; then :
10252 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
10253 ax_pthread_special_flags_added=yes
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10257 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10258 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10259 $as_echo_n "(cached) " >&6
10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262 /* end confdefs.h. */
10263 #include <pthread.h>
10267 int i = PTHREAD_PRIO_INHERIT;
10272 if ac_fn_c_try_link "$LINENO"; then :
10273 ax_cv_PTHREAD_PRIO_INHERIT=yes
10275 ax_cv_PTHREAD_PRIO_INHERIT=no
10277 rm -f core conftest.err conftest.$ac_objext \
10278 conftest$ac_exeext conftest.$ac_ext
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10282 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10283 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10285 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10290 CFLAGS="$save_CFLAGS"
10292 # More AIX lossage: compile with *_r variant
10293 if test "x$GCC" != xyes; then
10297 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10298 #handle absolute path differently from PATH based program lookup
10301 if as_fn_executable_p ${CC}_r; then :
10302 PTHREAD_CC="${CC}_r"
10305 for ac_prog in ${CC}_r
10307 # Extract the first word of "$ac_prog", so it can be a program name with args.
10308 set dummy $ac_prog; ac_word=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
10312 $as_echo_n "(cached) " >&6
10314 if test -n "$PTHREAD_CC"; then
10315 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324 ac_cv_prog_PTHREAD_CC="$ac_prog"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10334 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10335 if test -n "$PTHREAD_CC"; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10337 $as_echo "$PTHREAD_CC" >&6; }
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10344 test -n "$PTHREAD_CC" && break
10346 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10357 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10363 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10364 if test x"$ax_pthread_ok" = xyes; then
10366 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10374 ac_cpp='$CPP $CPPFLAGS'
10375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10381 # Some platforms use these, so just define them. They can't hurt if they
10382 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
10383 # enables 5-arg getpwuid_r, among other things.
10384 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
10386 # Check for *_r functions
10389 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10390 LIBS="$LIBS $PTHREAD_LIBS"
10392 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10393 if test "x$ac_cv_header_pthread_h" = xyes; then :
10397 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
10402 for ac_func in strerror_r getpwuid_r gethostbyname_r
10404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10405 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10406 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10407 cat >>confdefs.h <<_ACEOF
10408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10415 # Do test here with the proper thread flags
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
10417 $as_echo_n "checking whether strerror_r returns int... " >&6; }
10418 if ${pgac_cv_func_strerror_r_int+:} false; then :
10419 $as_echo_n "(cached) " >&6
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423 #include <string.h>
10428 int strerror_r(int, char *, size_t);
10430 /* Older AIX has 'int' for the third argument so we don't test the args. */
10437 if ac_fn_c_try_compile "$LINENO"; then :
10438 pgac_cv_func_strerror_r_int=yes
10440 pgac_cv_func_strerror_r_int=no
10442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
10445 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
10446 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
10448 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
10459 # do not use values from template file
10472 ## Most libraries are included only if they demonstrably provide a function
10473 ## we need, but libm is an exception: always include it, because there are
10474 ## too many compilers that play cute optimization games that will break
10475 ## probes for standard functions such as pow().
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
10479 $as_echo_n "checking for main in -lm... " >&6; }
10480 if ${ac_cv_lib_m_main+:} false; then :
10481 $as_echo_n "(cached) " >&6
10483 ac_check_lib_save_LIBS=$LIBS
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10497 if ac_fn_c_try_link "$LINENO"; then :
10498 ac_cv_lib_m_main=yes
10500 ac_cv_lib_m_main=no
10502 rm -f core conftest.err conftest.$ac_objext \
10503 conftest$ac_exeext conftest.$ac_ext
10504 LIBS=$ac_check_lib_save_LIBS
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
10507 $as_echo "$ac_cv_lib_m_main" >&6; }
10508 if test "x$ac_cv_lib_m_main" = xyes; then :
10509 cat >>confdefs.h <<_ACEOF
10510 #define HAVE_LIBM 1
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
10518 $as_echo_n "checking for library containing setproctitle... " >&6; }
10519 if ${ac_cv_search_setproctitle+:} false; then :
10520 $as_echo_n "(cached) " >&6
10522 ac_func_search_save_LIBS=$LIBS
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10526 /* Override any GCC internal prototype to avoid an error.
10527 Use char because int might match the return type of a GCC
10528 builtin and then its argument prototype would still apply. */
10532 char setproctitle ();
10536 return setproctitle ();
10541 for ac_lib in '' util; do
10542 if test -z "$ac_lib"; then
10543 ac_res="none required"
10546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10548 if ac_fn_c_try_link "$LINENO"; then :
10549 ac_cv_search_setproctitle=$ac_res
10551 rm -f core conftest.err conftest.$ac_objext \
10553 if ${ac_cv_search_setproctitle+:} false; then :
10557 if ${ac_cv_search_setproctitle+:} false; then :
10560 ac_cv_search_setproctitle=no
10562 rm conftest.$ac_ext
10563 LIBS=$ac_func_search_save_LIBS
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
10566 $as_echo "$ac_cv_search_setproctitle" >&6; }
10567 ac_res=$ac_cv_search_setproctitle
10568 if test "$ac_res" != no; then :
10569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10574 $as_echo_n "checking for library containing dlopen... " >&6; }
10575 if ${ac_cv_search_dlopen+:} false; then :
10576 $as_echo_n "(cached) " >&6
10578 ac_func_search_save_LIBS=$LIBS
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10582 /* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10597 for ac_lib in '' dl; do
10598 if test -z "$ac_lib"; then
10599 ac_res="none required"
10602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10604 if ac_fn_c_try_link "$LINENO"; then :
10605 ac_cv_search_dlopen=$ac_res
10607 rm -f core conftest.err conftest.$ac_objext \
10609 if ${ac_cv_search_dlopen+:} false; then :
10613 if ${ac_cv_search_dlopen+:} false; then :
10616 ac_cv_search_dlopen=no
10618 rm conftest.$ac_ext
10619 LIBS=$ac_func_search_save_LIBS
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10622 $as_echo "$ac_cv_search_dlopen" >&6; }
10623 ac_res=$ac_cv_search_dlopen
10624 if test "$ac_res" != no; then :
10625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10630 $as_echo_n "checking for library containing socket... " >&6; }
10631 if ${ac_cv_search_socket+:} false; then :
10632 $as_echo_n "(cached) " >&6
10634 ac_func_search_save_LIBS=$LIBS
10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10638 /* Override any GCC internal prototype to avoid an error.
10639 Use char because int might match the return type of a GCC
10640 builtin and then its argument prototype would still apply. */
10653 for ac_lib in '' socket ws2_32; do
10654 if test -z "$ac_lib"; then
10655 ac_res="none required"
10658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10660 if ac_fn_c_try_link "$LINENO"; then :
10661 ac_cv_search_socket=$ac_res
10663 rm -f core conftest.err conftest.$ac_objext \
10665 if ${ac_cv_search_socket+:} false; then :
10669 if ${ac_cv_search_socket+:} false; then :
10672 ac_cv_search_socket=no
10674 rm conftest.$ac_ext
10675 LIBS=$ac_func_search_save_LIBS
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10678 $as_echo "$ac_cv_search_socket" >&6; }
10679 ac_res=$ac_cv_search_socket
10680 if test "$ac_res" != no; then :
10681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
10686 $as_echo_n "checking for library containing shl_load... " >&6; }
10687 if ${ac_cv_search_shl_load+:} false; then :
10688 $as_echo_n "(cached) " >&6
10690 ac_func_search_save_LIBS=$LIBS
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10694 /* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
10704 return shl_load ();
10709 for ac_lib in '' dld; do
10710 if test -z "$ac_lib"; then
10711 ac_res="none required"
10714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10716 if ac_fn_c_try_link "$LINENO"; then :
10717 ac_cv_search_shl_load=$ac_res
10719 rm -f core conftest.err conftest.$ac_objext \
10721 if ${ac_cv_search_shl_load+:} false; then :
10725 if ${ac_cv_search_shl_load+:} false; then :
10728 ac_cv_search_shl_load=no
10730 rm conftest.$ac_ext
10731 LIBS=$ac_func_search_save_LIBS
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
10734 $as_echo "$ac_cv_search_shl_load" >&6; }
10735 ac_res=$ac_cv_search_shl_load
10736 if test "$ac_res" != no; then :
10737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10741 # We only use libld in port/dynloader/aix.c
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldopen" >&5
10745 $as_echo_n "checking for library containing ldopen... " >&6; }
10746 if ${ac_cv_search_ldopen+:} false; then :
10747 $as_echo_n "(cached) " >&6
10749 ac_func_search_save_LIBS=$LIBS
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10753 /* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
10768 for ac_lib in '' ld; do
10769 if test -z "$ac_lib"; then
10770 ac_res="none required"
10773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10775 if ac_fn_c_try_link "$LINENO"; then :
10776 ac_cv_search_ldopen=$ac_res
10778 rm -f core conftest.err conftest.$ac_objext \
10780 if ${ac_cv_search_ldopen+:} false; then :
10784 if ${ac_cv_search_ldopen+:} false; then :
10787 ac_cv_search_ldopen=no
10789 rm conftest.$ac_ext
10790 LIBS=$ac_func_search_save_LIBS
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldopen" >&5
10793 $as_echo "$ac_cv_search_ldopen" >&6; }
10794 ac_res=$ac_cv_search_ldopen
10795 if test "$ac_res" != no; then :
10796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
10803 $as_echo_n "checking for library containing getopt_long... " >&6; }
10804 if ${ac_cv_search_getopt_long+:} false; then :
10805 $as_echo_n "(cached) " >&6
10807 ac_func_search_save_LIBS=$LIBS
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10811 /* Override any GCC internal prototype to avoid an error.
10812 Use char because int might match the return type of a GCC
10813 builtin and then its argument prototype would still apply. */
10817 char getopt_long ();
10821 return getopt_long ();
10826 for ac_lib in '' getopt gnugetopt; do
10827 if test -z "$ac_lib"; then
10828 ac_res="none required"
10831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10833 if ac_fn_c_try_link "$LINENO"; then :
10834 ac_cv_search_getopt_long=$ac_res
10836 rm -f core conftest.err conftest.$ac_objext \
10838 if ${ac_cv_search_getopt_long+:} false; then :
10842 if ${ac_cv_search_getopt_long+:} false; then :
10845 ac_cv_search_getopt_long=no
10847 rm conftest.$ac_ext
10848 LIBS=$ac_func_search_save_LIBS
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
10851 $as_echo "$ac_cv_search_getopt_long" >&6; }
10852 ac_res=$ac_cv_search_getopt_long
10853 if test "$ac_res" != no; then :
10854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
10859 $as_echo_n "checking for library containing crypt... " >&6; }
10860 if ${ac_cv_search_crypt+:} false; then :
10861 $as_echo_n "(cached) " >&6
10863 ac_func_search_save_LIBS=$LIBS
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10867 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10882 for ac_lib in '' crypt; do
10883 if test -z "$ac_lib"; then
10884 ac_res="none required"
10887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 ac_cv_search_crypt=$ac_res
10892 rm -f core conftest.err conftest.$ac_objext \
10894 if ${ac_cv_search_crypt+:} false; then :
10898 if ${ac_cv_search_crypt+:} false; then :
10901 ac_cv_search_crypt=no
10903 rm conftest.$ac_ext
10904 LIBS=$ac_func_search_save_LIBS
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
10907 $as_echo "$ac_cv_search_crypt" >&6; }
10908 ac_res=$ac_cv_search_crypt
10909 if test "$ac_res" != no; then :
10910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
10915 $as_echo_n "checking for library containing shm_open... " >&6; }
10916 if ${ac_cv_search_shm_open+:} false; then :
10917 $as_echo_n "(cached) " >&6
10919 ac_func_search_save_LIBS=$LIBS
10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h. */
10923 /* Override any GCC internal prototype to avoid an error.
10924 Use char because int might match the return type of a GCC
10925 builtin and then its argument prototype would still apply. */
10933 return shm_open ();
10938 for ac_lib in '' rt; do
10939 if test -z "$ac_lib"; then
10940 ac_res="none required"
10943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10945 if ac_fn_c_try_link "$LINENO"; then :
10946 ac_cv_search_shm_open=$ac_res
10948 rm -f core conftest.err conftest.$ac_objext \
10950 if ${ac_cv_search_shm_open+:} false; then :
10954 if ${ac_cv_search_shm_open+:} false; then :
10957 ac_cv_search_shm_open=no
10959 rm conftest.$ac_ext
10960 LIBS=$ac_func_search_save_LIBS
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
10963 $as_echo "$ac_cv_search_shm_open" >&6; }
10964 ac_res=$ac_cv_search_shm_open
10965 if test "$ac_res" != no; then :
10966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
10971 $as_echo_n "checking for library containing shm_unlink... " >&6; }
10972 if ${ac_cv_search_shm_unlink+:} false; then :
10973 $as_echo_n "(cached) " >&6
10975 ac_func_search_save_LIBS=$LIBS
10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10979 /* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10985 char shm_unlink ();
10989 return shm_unlink ();
10994 for ac_lib in '' rt; do
10995 if test -z "$ac_lib"; then
10996 ac_res="none required"
10999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11001 if ac_fn_c_try_link "$LINENO"; then :
11002 ac_cv_search_shm_unlink=$ac_res
11004 rm -f core conftest.err conftest.$ac_objext \
11006 if ${ac_cv_search_shm_unlink+:} false; then :
11010 if ${ac_cv_search_shm_unlink+:} false; then :
11013 ac_cv_search_shm_unlink=no
11015 rm conftest.$ac_ext
11016 LIBS=$ac_func_search_save_LIBS
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
11019 $as_echo "$ac_cv_search_shm_unlink" >&6; }
11020 ac_res=$ac_cv_search_shm_unlink
11021 if test "$ac_res" != no; then :
11022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11027 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11028 if ${ac_cv_search_clock_gettime+:} false; then :
11029 $as_echo_n "(cached) " >&6
11031 ac_func_search_save_LIBS=$LIBS
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11035 /* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
11041 char clock_gettime ();
11045 return clock_gettime ();
11050 for ac_lib in '' rt posix4; do
11051 if test -z "$ac_lib"; then
11052 ac_res="none required"
11055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11057 if ac_fn_c_try_link "$LINENO"; then :
11058 ac_cv_search_clock_gettime=$ac_res
11060 rm -f core conftest.err conftest.$ac_objext \
11062 if ${ac_cv_search_clock_gettime+:} false; then :
11066 if ${ac_cv_search_clock_gettime+:} false; then :
11069 ac_cv_search_clock_gettime=no
11071 rm conftest.$ac_ext
11072 LIBS=$ac_func_search_save_LIBS
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11075 $as_echo "$ac_cv_search_clock_gettime" >&6; }
11076 ac_res=$ac_cv_search_clock_gettime
11077 if test "$ac_res" != no; then :
11078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11084 $as_echo_n "checking for library containing fdatasync... " >&6; }
11085 if ${ac_cv_search_fdatasync+:} false; then :
11086 $as_echo_n "(cached) " >&6
11088 ac_func_search_save_LIBS=$LIBS
11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11090 /* end confdefs.h. */
11092 /* Override any GCC internal prototype to avoid an error.
11093 Use char because int might match the return type of a GCC
11094 builtin and then its argument prototype would still apply. */
11102 return fdatasync ();
11107 for ac_lib in '' rt posix4; do
11108 if test -z "$ac_lib"; then
11109 ac_res="none required"
11112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11114 if ac_fn_c_try_link "$LINENO"; then :
11115 ac_cv_search_fdatasync=$ac_res
11117 rm -f core conftest.err conftest.$ac_objext \
11119 if ${ac_cv_search_fdatasync+:} false; then :
11123 if ${ac_cv_search_fdatasync+:} false; then :
11126 ac_cv_search_fdatasync=no
11128 rm conftest.$ac_ext
11129 LIBS=$ac_func_search_save_LIBS
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11132 $as_echo "$ac_cv_search_fdatasync" >&6; }
11133 ac_res=$ac_cv_search_fdatasync
11134 if test "$ac_res" != no; then :
11135 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11139 # Required for thread_test.c on Solaris
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
11141 $as_echo_n "checking for library containing sched_yield... " >&6; }
11142 if ${ac_cv_search_sched_yield+:} false; then :
11143 $as_echo_n "(cached) " >&6
11145 ac_func_search_save_LIBS=$LIBS
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11149 /* Override any GCC internal prototype to avoid an error.
11150 Use char because int might match the return type of a GCC
11151 builtin and then its argument prototype would still apply. */
11155 char sched_yield ();
11159 return sched_yield ();
11164 for ac_lib in '' rt; do
11165 if test -z "$ac_lib"; then
11166 ac_res="none required"
11169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11171 if ac_fn_c_try_link "$LINENO"; then :
11172 ac_cv_search_sched_yield=$ac_res
11174 rm -f core conftest.err conftest.$ac_objext \
11176 if ${ac_cv_search_sched_yield+:} false; then :
11180 if ${ac_cv_search_sched_yield+:} false; then :
11183 ac_cv_search_sched_yield=no
11185 rm conftest.$ac_ext
11186 LIBS=$ac_func_search_save_LIBS
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
11189 $as_echo "$ac_cv_search_sched_yield" >&6; }
11190 ac_res=$ac_cv_search_sched_yield
11191 if test "$ac_res" != no; then :
11192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11196 # Required for thread_test.c on Solaris 2.5:
11197 # Other ports use it too (HP-UX) so test unconditionally
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
11199 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
11200 if ${ac_cv_search_gethostbyname_r+:} false; then :
11201 $as_echo_n "(cached) " >&6
11203 ac_func_search_save_LIBS=$LIBS
11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11207 /* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
11213 char gethostbyname_r ();
11217 return gethostbyname_r ();
11222 for ac_lib in '' nsl; do
11223 if test -z "$ac_lib"; then
11224 ac_res="none required"
11227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11229 if ac_fn_c_try_link "$LINENO"; then :
11230 ac_cv_search_gethostbyname_r=$ac_res
11232 rm -f core conftest.err conftest.$ac_objext \
11234 if ${ac_cv_search_gethostbyname_r+:} false; then :
11238 if ${ac_cv_search_gethostbyname_r+:} false; then :
11241 ac_cv_search_gethostbyname_r=no
11243 rm conftest.$ac_ext
11244 LIBS=$ac_func_search_save_LIBS
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
11247 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
11248 ac_res=$ac_cv_search_gethostbyname_r
11249 if test "$ac_res" != no; then :
11250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
11256 $as_echo_n "checking for library containing shmget... " >&6; }
11257 if ${ac_cv_search_shmget+:} false; then :
11258 $as_echo_n "(cached) " >&6
11260 ac_func_search_save_LIBS=$LIBS
11261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11264 /* Override any GCC internal prototype to avoid an error.
11265 Use char because int might match the return type of a GCC
11266 builtin and then its argument prototype would still apply. */
11279 for ac_lib in '' cygipc; do
11280 if test -z "$ac_lib"; then
11281 ac_res="none required"
11284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11286 if ac_fn_c_try_link "$LINENO"; then :
11287 ac_cv_search_shmget=$ac_res
11289 rm -f core conftest.err conftest.$ac_objext \
11291 if ${ac_cv_search_shmget+:} false; then :
11295 if ${ac_cv_search_shmget+:} false; then :
11298 ac_cv_search_shmget=no
11300 rm conftest.$ac_ext
11301 LIBS=$ac_func_search_save_LIBS
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
11304 $as_echo "$ac_cv_search_shmget" >&6; }
11305 ac_res=$ac_cv_search_shmget
11306 if test "$ac_res" != no; then :
11307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11312 if test "$with_readline" = yes; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
11316 $as_echo_n "checking for library containing readline... " >&6; }
11317 if ${pgac_cv_check_readline+:} false; then :
11318 $as_echo_n "(cached) " >&6
11320 pgac_cv_check_readline=no
11321 pgac_save_LIBS=$LIBS
11322 if test x"$with_libedit_preferred" != x"yes"
11323 then READLINE_ORDER="-lreadline -ledit"
11324 else READLINE_ORDER="-ledit -lreadline"
11326 for pgac_rllib in $READLINE_ORDER ; do
11327 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
11328 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11332 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11342 return readline ();
11347 if ac_fn_c_try_link "$LINENO"; then :
11349 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
11350 # recognize dependent libraries; assume curses is needed if we didn't
11351 # find any dependency.
11353 netbsd* | openbsd* | irix*)
11354 if test x"$pgac_lib" = x"" ; then
11355 pgac_lib=" -lcurses"
11359 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
11363 rm -f core conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11366 if test "$pgac_cv_check_readline" != no ; then
11370 LIBS=$pgac_save_LIBS
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
11374 $as_echo "$pgac_cv_check_readline" >&6; }
11375 if test "$pgac_cv_check_readline" != no ; then
11376 LIBS="$pgac_cv_check_readline $LIBS"
11378 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11383 if test x"$pgac_cv_check_readline" = x"no"; then
11384 as_fn_error $? "readline library not found
11385 If you have readline already installed, see config.log for details on the
11386 failure. It is possible the compiler isn't looking in the proper directory.
11387 Use --without-readline to disable readline support." "$LINENO" 5
11391 if test "$with_zlib" = yes; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11393 $as_echo_n "checking for inflate in -lz... " >&6; }
11394 if ${ac_cv_lib_z_inflate+:} false; then :
11395 $as_echo_n "(cached) " >&6
11397 ac_check_lib_save_LIBS=$LIBS
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 ac_cv_lib_z_inflate=yes
11420 ac_cv_lib_z_inflate=no
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11427 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11428 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11429 cat >>confdefs.h <<_ACEOF
11430 #define HAVE_LIBZ 1
11436 as_fn_error $? "zlib library not found
11437 If you have zlib already installed, see config.log for details on the
11438 failure. It is possible the compiler isn't looking in the proper directory.
11439 Use --without-zlib to disable zlib support." "$LINENO" 5
11444 if test "$enable_spinlocks" = yes; then
11446 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11450 *** Not using spinlocks will cause poor performance." >&5
11451 $as_echo "$as_me: WARNING:
11452 *** Not using spinlocks will cause poor performance." >&2;}
11455 if test "$enable_atomics" = yes; then
11457 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11461 *** Not using atomic operations will cause poor performance." >&5
11462 $as_echo "$as_me: WARNING:
11463 *** Not using atomic operations will cause poor performance." >&2;}
11466 if test "$with_gssapi" = yes ; then
11467 if test "$PORTNAME" != "win32"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
11469 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
11470 if ${ac_cv_search_gss_init_sec_context+:} false; then :
11471 $as_echo_n "(cached) " >&6
11473 ac_func_search_save_LIBS=$LIBS
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11477 /* Override any GCC internal prototype to avoid an error.
11478 Use char because int might match the return type of a GCC
11479 builtin and then its argument prototype would still apply. */
11483 char gss_init_sec_context ();
11487 return gss_init_sec_context ();
11492 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
11493 if test -z "$ac_lib"; then
11494 ac_res="none required"
11497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11499 if ac_fn_c_try_link "$LINENO"; then :
11500 ac_cv_search_gss_init_sec_context=$ac_res
11502 rm -f core conftest.err conftest.$ac_objext \
11504 if ${ac_cv_search_gss_init_sec_context+:} false; then :
11508 if ${ac_cv_search_gss_init_sec_context+:} false; then :
11511 ac_cv_search_gss_init_sec_context=no
11513 rm conftest.$ac_ext
11514 LIBS=$ac_func_search_save_LIBS
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
11517 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
11518 ac_res=$ac_cv_search_gss_init_sec_context
11519 if test "$ac_res" != no; then :
11520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11523 as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
11527 LIBS="$LIBS -lgssapi32"
11531 if test "$with_openssl" = yes ; then
11532 if test "$PORTNAME" != "win32"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
11534 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
11535 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
11536 $as_echo_n "(cached) " >&6
11538 ac_check_lib_save_LIBS=$LIBS
11539 LIBS="-lcrypto $LIBS"
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11549 char CRYPTO_new_ex_data ();
11553 return CRYPTO_new_ex_data ();
11558 if ac_fn_c_try_link "$LINENO"; then :
11559 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
11561 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
11563 rm -f core conftest.err conftest.$ac_objext \
11564 conftest$ac_exeext conftest.$ac_ext
11565 LIBS=$ac_check_lib_save_LIBS
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
11568 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
11569 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
11570 cat >>confdefs.h <<_ACEOF
11571 #define HAVE_LIBCRYPTO 1
11574 LIBS="-lcrypto $LIBS"
11577 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
11581 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
11582 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
11583 $as_echo_n "(cached) " >&6
11585 ac_check_lib_save_LIBS=$LIBS
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11590 /* Override any GCC internal prototype to avoid an error.
11591 Use char because int might match the return type of a GCC
11592 builtin and then its argument prototype would still apply. */
11605 if ac_fn_c_try_link "$LINENO"; then :
11606 ac_cv_lib_ssl_SSL_new=yes
11608 ac_cv_lib_ssl_SSL_new=no
11610 rm -f core conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
11612 LIBS=$ac_check_lib_save_LIBS
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
11615 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
11616 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
11617 cat >>confdefs.h <<_ACEOF
11618 #define HAVE_LIBSSL 1
11624 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
11629 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
11630 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
11631 $as_echo_n "(cached) " >&6
11633 ac_func_search_save_LIBS=$LIBS
11634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635 /* end confdefs.h. */
11637 /* Override any GCC internal prototype to avoid an error.
11638 Use char because int might match the return type of a GCC
11639 builtin and then its argument prototype would still apply. */
11643 char CRYPTO_new_ex_data ();
11647 return CRYPTO_new_ex_data ();
11652 for ac_lib in '' eay32 crypto; do
11653 if test -z "$ac_lib"; then
11654 ac_res="none required"
11657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11659 if ac_fn_c_try_link "$LINENO"; then :
11660 ac_cv_search_CRYPTO_new_ex_data=$ac_res
11662 rm -f core conftest.err conftest.$ac_objext \
11664 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
11668 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
11671 ac_cv_search_CRYPTO_new_ex_data=no
11673 rm conftest.$ac_ext
11674 LIBS=$ac_func_search_save_LIBS
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
11677 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
11678 ac_res=$ac_cv_search_CRYPTO_new_ex_data
11679 if test "$ac_res" != no; then :
11680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11683 as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
11687 $as_echo_n "checking for library containing SSL_new... " >&6; }
11688 if ${ac_cv_search_SSL_new+:} false; then :
11689 $as_echo_n "(cached) " >&6
11691 ac_func_search_save_LIBS=$LIBS
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11695 /* Override any GCC internal prototype to avoid an error.
11696 Use char because int might match the return type of a GCC
11697 builtin and then its argument prototype would still apply. */
11710 for ac_lib in '' ssleay32 ssl; do
11711 if test -z "$ac_lib"; then
11712 ac_res="none required"
11715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11717 if ac_fn_c_try_link "$LINENO"; then :
11718 ac_cv_search_SSL_new=$ac_res
11720 rm -f core conftest.err conftest.$ac_objext \
11722 if ${ac_cv_search_SSL_new+:} false; then :
11726 if ${ac_cv_search_SSL_new+:} false; then :
11729 ac_cv_search_SSL_new=no
11731 rm conftest.$ac_ext
11732 LIBS=$ac_func_search_save_LIBS
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
11735 $as_echo "$ac_cv_search_SSL_new" >&6; }
11736 ac_res=$ac_cv_search_SSL_new
11737 if test "$ac_res" != no; then :
11738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11741 as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
11745 for ac_func in SSL_clear_options SSL_get_current_compression X509_get_signature_nid
11747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11748 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11749 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11750 cat >>confdefs.h <<_ACEOF
11751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11757 # Functions introduced in OpenSSL 1.1.0. We used to check for
11758 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
11759 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
11760 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
11762 for ac_func in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data RAND_OpenSSL
11764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11765 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11766 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11767 cat >>confdefs.h <<_ACEOF
11768 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11774 # OpenSSL versions before 1.1.0 required setting callback functions, for
11775 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
11776 # function was removed.
11777 for ac_func in CRYPTO_lock
11779 ac_fn_c_check_func "$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
11780 if test "x$ac_cv_func_CRYPTO_lock" = xyes; then :
11781 cat >>confdefs.h <<_ACEOF
11782 #define HAVE_CRYPTO_LOCK 1
11790 if test "$with_pam" = yes ; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
11792 $as_echo_n "checking for pam_start in -lpam... " >&6; }
11793 if ${ac_cv_lib_pam_pam_start+:} false; then :
11794 $as_echo_n "(cached) " >&6
11796 ac_check_lib_save_LIBS=$LIBS
11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11801 /* Override any GCC internal prototype to avoid an error.
11802 Use char because int might match the return type of a GCC
11803 builtin and then its argument prototype would still apply. */
11811 return pam_start ();
11816 if ac_fn_c_try_link "$LINENO"; then :
11817 ac_cv_lib_pam_pam_start=yes
11819 ac_cv_lib_pam_pam_start=no
11821 rm -f core conftest.err conftest.$ac_objext \
11822 conftest$ac_exeext conftest.$ac_ext
11823 LIBS=$ac_check_lib_save_LIBS
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
11826 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
11827 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
11828 cat >>confdefs.h <<_ACEOF
11829 #define HAVE_LIBPAM 1
11835 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
11840 if test "$with_libxml" = yes ; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
11842 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
11843 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
11844 $as_echo_n "(cached) " >&6
11846 ac_check_lib_save_LIBS=$LIBS
11847 LIBS="-lxml2 $LIBS"
11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11851 /* Override any GCC internal prototype to avoid an error.
11852 Use char because int might match the return type of a GCC
11853 builtin and then its argument prototype would still apply. */
11857 char xmlSaveToBuffer ();
11861 return xmlSaveToBuffer ();
11866 if ac_fn_c_try_link "$LINENO"; then :
11867 ac_cv_lib_xml2_xmlSaveToBuffer=yes
11869 ac_cv_lib_xml2_xmlSaveToBuffer=no
11871 rm -f core conftest.err conftest.$ac_objext \
11872 conftest$ac_exeext conftest.$ac_ext
11873 LIBS=$ac_check_lib_save_LIBS
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
11876 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
11877 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
11878 cat >>confdefs.h <<_ACEOF
11879 #define HAVE_LIBXML2 1
11882 LIBS="-lxml2 $LIBS"
11885 as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
11890 if test "$with_libxslt" = yes ; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
11892 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
11893 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
11894 $as_echo_n "(cached) " >&6
11896 ac_check_lib_save_LIBS=$LIBS
11897 LIBS="-lxslt $LIBS"
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11901 /* Override any GCC internal prototype to avoid an error.
11902 Use char because int might match the return type of a GCC
11903 builtin and then its argument prototype would still apply. */
11907 char xsltCleanupGlobals ();
11911 return xsltCleanupGlobals ();
11916 if ac_fn_c_try_link "$LINENO"; then :
11917 ac_cv_lib_xslt_xsltCleanupGlobals=yes
11919 ac_cv_lib_xslt_xsltCleanupGlobals=no
11921 rm -f core conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11923 LIBS=$ac_check_lib_save_LIBS
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
11926 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
11927 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
11928 cat >>confdefs.h <<_ACEOF
11929 #define HAVE_LIBXSLT 1
11932 LIBS="-lxslt $LIBS"
11935 as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
11940 # Note: We can test for libldap_r only after we know PTHREAD_LIBS
11941 if test "$with_ldap" = yes ; then
11943 if test "$PORTNAME" != "win32"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
11945 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
11946 if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
11947 $as_echo_n "(cached) " >&6
11949 ac_check_lib_save_LIBS=$LIBS
11950 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11954 /* Override any GCC internal prototype to avoid an error.
11955 Use char because int might match the return type of a GCC
11956 builtin and then its argument prototype would still apply. */
11964 return ldap_bind ();
11969 if ac_fn_c_try_link "$LINENO"; then :
11970 ac_cv_lib_ldap_ldap_bind=yes
11972 ac_cv_lib_ldap_ldap_bind=no
11974 rm -f core conftest.err conftest.$ac_objext \
11975 conftest$ac_exeext conftest.$ac_ext
11976 LIBS=$ac_check_lib_save_LIBS
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
11979 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
11980 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
11981 cat >>confdefs.h <<_ACEOF
11982 #define HAVE_LIBLDAP 1
11985 LIBS="-lldap $LIBS"
11988 as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
11991 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
11992 if test "$enable_thread_safety" = yes; then
11993 # on some platforms ldap_r fails to link without PTHREAD_LIBS
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
11995 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
11996 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false; then :
11997 $as_echo_n "(cached) " >&6
11999 ac_check_lib_save_LIBS=$LIBS
12000 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12004 /* Override any GCC internal prototype to avoid an error.
12005 Use char because int might match the return type of a GCC
12006 builtin and then its argument prototype would still apply. */
12010 char ldap_simple_bind ();
12014 return ldap_simple_bind ();
12019 if ac_fn_c_try_link "$LINENO"; then :
12020 ac_cv_lib_ldap_r_ldap_simple_bind=yes
12022 ac_cv_lib_ldap_r_ldap_simple_bind=no
12024 rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12026 LIBS=$ac_check_lib_save_LIBS
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
12029 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
12030 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes; then :
12031 cat >>confdefs.h <<_ACEOF
12032 #define HAVE_LIBLDAP_R 1
12035 LIBS="-lldap_r $LIBS"
12038 as_fn_error $? "library 'ldap_r' is required for LDAP" "$LINENO" 5
12041 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
12043 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
12045 for ac_func in ldap_initialize
12047 ac_fn_c_check_func "$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
12048 if test "x$ac_cv_func_ldap_initialize" = xyes; then :
12049 cat >>confdefs.h <<_ACEOF
12050 #define HAVE_LDAP_INITIALIZE 1
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12058 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12059 if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
12060 $as_echo_n "(cached) " >&6
12062 ac_check_lib_save_LIBS=$LIBS
12063 LIBS="-lwldap32 $LIBS"
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12067 /* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12077 return ldap_bind ();
12082 if ac_fn_c_try_link "$LINENO"; then :
12083 ac_cv_lib_wldap32_ldap_bind=yes
12085 ac_cv_lib_wldap32_ldap_bind=no
12087 rm -f core conftest.err conftest.$ac_objext \
12088 conftest$ac_exeext conftest.$ac_ext
12089 LIBS=$ac_check_lib_save_LIBS
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
12092 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
12093 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
12094 cat >>confdefs.h <<_ACEOF
12095 #define HAVE_LIBWLDAP32 1
12098 LIBS="-lwldap32 $LIBS"
12101 as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
12104 LDAP_LIBS_FE="-lwldap32"
12105 LDAP_LIBS_BE="-lwldap32"
12112 # for contrib/sepgsql
12113 if test "$with_selinux" = yes; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
12115 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
12116 if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
12117 $as_echo_n "(cached) " >&6
12119 ac_check_lib_save_LIBS=$LIBS
12120 LIBS="-lselinux $LIBS"
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12124 /* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12130 char security_compute_create_name ();
12134 return security_compute_create_name ();
12139 if ac_fn_c_try_link "$LINENO"; then :
12140 ac_cv_lib_selinux_security_compute_create_name=yes
12142 ac_cv_lib_selinux_security_compute_create_name=no
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
12149 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
12150 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
12151 cat >>confdefs.h <<_ACEOF
12152 #define HAVE_LIBSELINUX 1
12155 LIBS="-lselinux $LIBS"
12158 as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
12163 # for contrib/uuid-ossp
12164 if test "$with_uuid" = bsd ; then
12165 # On BSD, the UUID functions are in libc
12166 ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
12167 if test "x$ac_cv_func_uuid_to_string" = xyes; then :
12170 as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
12173 elif test "$with_uuid" = e2fs ; then
12174 # On macOS, the UUID functions are in libc
12175 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
12176 if test "x$ac_cv_func_uuid_generate" = xyes; then :
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
12180 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
12181 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
12182 $as_echo_n "(cached) " >&6
12184 ac_check_lib_save_LIBS=$LIBS
12185 LIBS="-luuid $LIBS"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12195 char uuid_generate ();
12199 return uuid_generate ();
12204 if ac_fn_c_try_link "$LINENO"; then :
12205 ac_cv_lib_uuid_uuid_generate=yes
12207 ac_cv_lib_uuid_uuid_generate=no
12209 rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211 LIBS=$ac_check_lib_save_LIBS
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
12214 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
12215 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
12218 as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
12223 elif test "$with_uuid" = ossp ; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
12225 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
12226 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
12227 $as_echo_n "(cached) " >&6
12229 ac_check_lib_save_LIBS=$LIBS
12230 LIBS="-lossp-uuid $LIBS"
12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12234 /* Override any GCC internal prototype to avoid an error.
12235 Use char because int might match the return type of a GCC
12236 builtin and then its argument prototype would still apply. */
12240 char uuid_export ();
12244 return uuid_export ();
12249 if ac_fn_c_try_link "$LINENO"; then :
12250 ac_cv_lib_ossp_uuid_uuid_export=yes
12252 ac_cv_lib_ossp_uuid_uuid_export=no
12254 rm -f core conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
12256 LIBS=$ac_check_lib_save_LIBS
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
12259 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
12260 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
12261 UUID_LIBS="-lossp-uuid"
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
12264 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
12265 if ${ac_cv_lib_uuid_uuid_export+:} false; then :
12266 $as_echo_n "(cached) " >&6
12268 ac_check_lib_save_LIBS=$LIBS
12269 LIBS="-luuid $LIBS"
12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271 /* end confdefs.h. */
12273 /* Override any GCC internal prototype to avoid an error.
12274 Use char because int might match the return type of a GCC
12275 builtin and then its argument prototype would still apply. */
12279 char uuid_export ();
12283 return uuid_export ();
12288 if ac_fn_c_try_link "$LINENO"; then :
12289 ac_cv_lib_uuid_uuid_export=yes
12291 ac_cv_lib_uuid_uuid_export=no
12293 rm -f core conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295 LIBS=$ac_check_lib_save_LIBS
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
12298 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
12299 if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
12302 as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12316 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12317 if ${ac_cv_header_stdbool_h+:} false; then :
12318 $as_echo_n "(cached) " >&6
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12323 #include <stdbool.h>
12325 "error: bool is not defined"
12328 "error: false is not defined"
12331 "error: false is not 0"
12334 "error: true is not defined"
12337 "error: true is not 1"
12339 #ifndef __bool_true_false_are_defined
12340 "error: __bool_true_false_are_defined is not defined"
12343 struct s { _Bool s: 1; _Bool t; } s;
12345 char a[true == 1 ? 1 : -1];
12346 char b[false == 0 ? 1 : -1];
12347 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12348 char d[(bool) 0.5 == true ? 1 : -1];
12349 /* See body of main program for 'e'. */
12350 char f[(_Bool) 0.0 == false ? 1 : -1];
12352 char h[sizeof (_Bool)];
12353 char i[sizeof s.t];
12354 enum { j = false, k = true, l = false * true, m = true * 256 };
12355 /* The following fails for
12356 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12358 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12359 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12360 /* Catch a bug in an HP-UX C compiler. See
12361 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12362 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12374 /* Refer to every declared value, to avoid compiler optimizations. */
12375 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12376 + !m + !n + !o + !p + !q + !pq);
12382 if ac_fn_c_try_compile "$LINENO"; then :
12383 ac_cv_header_stdbool_h=yes
12385 ac_cv_header_stdbool_h=no
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12390 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12391 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12392 if test "x$ac_cv_type__Bool" = xyes; then :
12394 cat >>confdefs.h <<_ACEOF
12395 #define HAVE__BOOL 1
12402 if test $ac_cv_header_stdbool_h = yes; then
12404 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12409 for ac_header in atomic.h crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/ipc.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
12411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12412 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12413 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12414 cat >>confdefs.h <<_ACEOF
12415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12423 # On BSD, test for net/if.h will fail unless sys/socket.h
12424 # is included first.
12425 for ac_header in net/if.h
12427 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
12428 #include <sys/socket.h>
12431 if test "x$ac_cv_header_net_if_h" = xyes; then :
12432 cat >>confdefs.h <<_ACEOF
12433 #define HAVE_NET_IF_H 1
12441 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
12442 # is included first.
12443 for ac_header in sys/ucred.h
12445 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
12446 #include <sys/param.h>
12449 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
12450 cat >>confdefs.h <<_ACEOF
12451 #define HAVE_SYS_UCRED_H 1
12459 # At least on IRIX, test for netinet/tcp.h will fail unless
12460 # netinet/in.h is included first.
12461 for ac_header in netinet/tcp.h
12463 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
12464 #include <netinet/in.h>
12467 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
12468 cat >>confdefs.h <<_ACEOF
12469 #define HAVE_NETINET_TCP_H 1
12477 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
12478 for ac_header in readline/readline.h
12480 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
12481 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
12482 cat >>confdefs.h <<_ACEOF
12483 #define HAVE_READLINE_READLINE_H 1
12487 for ac_header in readline.h
12489 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
12490 if test "x$ac_cv_header_readline_h" = xyes; then :
12491 cat >>confdefs.h <<_ACEOF
12492 #define HAVE_READLINE_H 1
12496 as_fn_error $? "readline header not found
12497 If you have readline already installed, see config.log for details on the
12498 failure. It is possible the compiler isn't looking in the proper directory.
12499 Use --without-readline to disable readline support." "$LINENO" 5
12508 for ac_header in readline/history.h
12510 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
12511 if test "x$ac_cv_header_readline_history_h" = xyes; then :
12512 cat >>confdefs.h <<_ACEOF
12513 #define HAVE_READLINE_HISTORY_H 1
12517 for ac_header in history.h
12519 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
12520 if test "x$ac_cv_header_history_h" = xyes; then :
12521 cat >>confdefs.h <<_ACEOF
12522 #define HAVE_HISTORY_H 1
12526 as_fn_error $? "history header not found
12527 If you have readline already installed, see config.log for details on the
12528 failure. It is possible the compiler isn't looking in the proper directory.
12529 Use --without-readline to disable readline support." "$LINENO" 5
12540 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
12541 # Some installations of libedit usurp /usr/include/readline/, which seems
12542 # bad practice, since in combined installations readline will have its headers
12543 # there. We might have to resort to AC_EGREP checks to make sure we found
12544 # the proper header...
12545 for ac_header in editline/readline.h
12547 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
12548 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
12549 cat >>confdefs.h <<_ACEOF
12550 #define HAVE_EDITLINE_READLINE_H 1
12554 for ac_header in readline.h
12556 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
12557 if test "x$ac_cv_header_readline_h" = xyes; then :
12558 cat >>confdefs.h <<_ACEOF
12559 #define HAVE_READLINE_H 1
12563 for ac_header in readline/readline.h
12565 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
12566 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
12567 cat >>confdefs.h <<_ACEOF
12568 #define HAVE_READLINE_READLINE_H 1
12572 as_fn_error $? "readline header not found
12573 If you have libedit already installed, see config.log for details on the
12574 failure. It is possible the compiler isn't looking in the proper directory.
12575 Use --without-readline to disable libedit support." "$LINENO" 5
12588 # Note: in a libedit installation, history.h is sometimes a dummy, and may
12589 # not be there at all. Hence, don't complain if not found. We must check
12590 # though, since in yet other versions it is an independent header.
12591 for ac_header in editline/history.h
12593 ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
12594 if test "x$ac_cv_header_editline_history_h" = xyes; then :
12595 cat >>confdefs.h <<_ACEOF
12596 #define HAVE_EDITLINE_HISTORY_H 1
12600 for ac_header in history.h
12602 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
12603 if test "x$ac_cv_header_history_h" = xyes; then :
12604 cat >>confdefs.h <<_ACEOF
12605 #define HAVE_HISTORY_H 1
12609 for ac_header in readline/history.h
12611 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
12612 if test "x$ac_cv_header_readline_history_h" = xyes; then :
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_READLINE_HISTORY_H 1
12631 if test "$with_zlib" = yes; then
12632 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12633 if test "x$ac_cv_header_zlib_h" = xyes; then :
12636 as_fn_error $? "zlib header not found
12637 If you have zlib already installed, see config.log for details on the
12638 failure. It is possible the compiler isn't looking in the proper directory.
12639 Use --without-zlib to disable zlib support." "$LINENO" 5
12645 if test "$with_gssapi" = yes ; then
12646 for ac_header in gssapi/gssapi.h
12648 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
12649 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
12650 cat >>confdefs.h <<_ACEOF
12651 #define HAVE_GSSAPI_GSSAPI_H 1
12655 for ac_header in gssapi.h
12657 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
12658 if test "x$ac_cv_header_gssapi_h" = xyes; then :
12659 cat >>confdefs.h <<_ACEOF
12660 #define HAVE_GSSAPI_H 1
12664 as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5
12675 if test "$with_openssl" = yes ; then
12676 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
12677 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
12680 as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
12684 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
12685 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
12688 as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
12694 if test "$with_pam" = yes ; then
12695 for ac_header in security/pam_appl.h
12697 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
12698 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
12699 cat >>confdefs.h <<_ACEOF
12700 #define HAVE_SECURITY_PAM_APPL_H 1
12704 for ac_header in pam/pam_appl.h
12706 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
12707 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
12708 cat >>confdefs.h <<_ACEOF
12709 #define HAVE_PAM_PAM_APPL_H 1
12713 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
12724 if test "$with_bsd_auth" = yes ; then
12725 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
12726 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
12729 as_fn_error $? "header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
12735 if test "$with_systemd" = yes ; then
12736 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
12737 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
12740 as_fn_error $? "header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
12746 if test "$with_libxml" = yes ; then
12747 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
12748 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
12751 as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5
12757 if test "$with_libxslt" = yes ; then
12758 ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
12759 if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
12762 as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
12768 if test "$with_ldap" = yes ; then
12769 if test "$PORTNAME" != "win32"; then
12770 for ac_header in ldap.h
12772 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
12773 if test "x$ac_cv_header_ldap_h" = xyes; then :
12774 cat >>confdefs.h <<_ACEOF
12775 #define HAVE_LDAP_H 1
12779 as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
12785 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
12786 if ${pgac_cv_ldap_safe+:} false; then :
12787 $as_echo_n "(cached) " >&6
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12792 #if !defined(LDAP_VENDOR_VERSION) || \
12793 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
12794 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
12805 if ac_fn_c_try_compile "$LINENO"; then :
12806 pgac_cv_ldap_safe=yes
12808 pgac_cv_ldap_safe=no
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
12813 $as_echo "$pgac_cv_ldap_safe" >&6; }
12815 if test "$pgac_cv_ldap_safe" != yes; then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12817 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
12818 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
12819 *** also uses LDAP will crash on exit." >&5
12820 $as_echo "$as_me: WARNING:
12821 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
12822 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
12823 *** also uses LDAP will crash on exit." >&2;}
12826 for ac_header in winldap.h
12828 ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
12829 #include <windows.h>
12832 if test "x$ac_cv_header_winldap_h" = xyes; then :
12833 cat >>confdefs.h <<_ACEOF
12834 #define HAVE_WINLDAP_H 1
12838 as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
12846 if test "$with_bonjour" = yes ; then
12847 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
12848 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
12851 as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
12857 # for contrib/uuid-ossp
12858 if test "$with_uuid" = bsd ; then
12859 for ac_header in uuid.h
12861 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
12862 if test "x$ac_cv_header_uuid_h" = xyes; then :
12863 cat >>confdefs.h <<_ACEOF
12864 #define HAVE_UUID_H 1
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12872 $EGREP "uuid_to_string" >/dev/null 2>&1; then :
12875 as_fn_error $? "header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
12880 as_fn_error $? "header file <uuid.h> is required for BSD UUID" "$LINENO" 5
12885 elif test "$with_uuid" = e2fs ; then
12886 for ac_header in uuid/uuid.h
12888 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
12889 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
12890 cat >>confdefs.h <<_ACEOF
12891 #define HAVE_UUID_UUID_H 1
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12895 #include <uuid/uuid.h>
12898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12899 $EGREP "uuid_generate" >/dev/null 2>&1; then :
12902 as_fn_error $? "header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
12907 for ac_header in uuid.h
12909 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
12910 if test "x$ac_cv_header_uuid_h" = xyes; then :
12911 cat >>confdefs.h <<_ACEOF
12912 #define HAVE_UUID_H 1
12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h. */
12919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12920 $EGREP "uuid_generate" >/dev/null 2>&1; then :
12923 as_fn_error $? "header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
12928 as_fn_error $? "header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
12937 elif test "$with_uuid" = ossp ; then
12938 for ac_header in ossp/uuid.h
12940 ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
12941 if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
12942 cat >>confdefs.h <<_ACEOF
12943 #define HAVE_OSSP_UUID_H 1
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12947 #include <ossp/uuid.h>
12950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12951 $EGREP "uuid_export" >/dev/null 2>&1; then :
12954 as_fn_error $? "header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
12959 for ac_header in uuid.h
12961 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
12962 if test "x$ac_cv_header_uuid_h" = xyes; then :
12963 cat >>confdefs.h <<_ACEOF
12964 #define HAVE_UUID_H 1
12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12967 /* end confdefs.h. */
12971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12972 $EGREP "uuid_export" >/dev/null 2>&1; then :
12975 as_fn_error $? "header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
12980 as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
12991 if test "$PORTNAME" = "win32" ; then
12992 for ac_header in crtdefs.h
12994 ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
12995 if test "x$ac_cv_header_crtdefs_h" = xyes; then :
12996 cat >>confdefs.h <<_ACEOF
12997 #define HAVE_CRTDEFS_H 1
13007 ## Types, structures, compiler characteristics
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13011 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13012 if ${ac_cv_c_bigendian+:} false; then :
13013 $as_echo_n "(cached) " >&6
13015 ac_cv_c_bigendian=unknown
13016 # See if we're dealing with a universal compiler.
13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h. */
13019 #ifndef __APPLE_CC__
13020 not a universal capable compiler
13025 if ac_fn_c_try_compile "$LINENO"; then :
13027 # Check for potential -arch flags. It is not universal unless
13028 # there are at least two -arch flags with different values.
13031 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13032 if test -n "$ac_prev"; then
13034 i?86 | x86_64 | ppc | ppc64)
13035 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13038 ac_cv_c_bigendian=universal
13044 elif test "x$ac_word" = "x-arch"; then
13049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13050 if test $ac_cv_c_bigendian = unknown; then
13051 # See if sys/param.h defines the BYTE_ORDER macro.
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13054 #include <sys/types.h>
13055 #include <sys/param.h>
13060 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13061 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13063 bogus endian macros
13070 if ac_fn_c_try_compile "$LINENO"; then :
13071 # It does; now see whether it defined to BIG_ENDIAN or not.
13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073 /* end confdefs.h. */
13074 #include <sys/types.h>
13075 #include <sys/param.h>
13080 #if BYTE_ORDER != BIG_ENDIAN
13088 if ac_fn_c_try_compile "$LINENO"; then :
13089 ac_cv_c_bigendian=yes
13091 ac_cv_c_bigendian=no
13093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13097 if test $ac_cv_c_bigendian = unknown; then
13098 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13101 #include <limits.h>
13106 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13107 bogus endian macros
13114 if ac_fn_c_try_compile "$LINENO"; then :
13115 # It does; now see whether it defined to _BIG_ENDIAN or not.
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118 #include <limits.h>
13123 #ifndef _BIG_ENDIAN
13131 if ac_fn_c_try_compile "$LINENO"; then :
13132 ac_cv_c_bigendian=yes
13134 ac_cv_c_bigendian=no
13136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13140 if test $ac_cv_c_bigendian = unknown; then
13141 # Compile a test program.
13142 if test "$cross_compiling" = yes; then :
13143 # Try to guess by grepping values from an object file.
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13146 short int ascii_mm[] =
13147 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13148 short int ascii_ii[] =
13149 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13150 int use_ascii (int i) {
13151 return ascii_mm[i] + ascii_ii[i];
13153 short int ebcdic_ii[] =
13154 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13155 short int ebcdic_mm[] =
13156 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13157 int use_ebcdic (int i) {
13158 return ebcdic_mm[i] + ebcdic_ii[i];
13165 return use_ascii (foo) == use_ebcdic (foo);
13170 if ac_fn_c_try_compile "$LINENO"; then :
13171 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13172 ac_cv_c_bigendian=yes
13174 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13175 if test "$ac_cv_c_bigendian" = unknown; then
13176 ac_cv_c_bigendian=no
13178 # finding both strings is unlikely to happen, but who knows?
13179 ac_cv_c_bigendian=unknown
13183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13187 $ac_includes_default
13192 /* Are we little or big endian? From Harbison&Steele. */
13196 char c[sizeof (long int)];
13199 return u.c[sizeof (long int) - 1] == 1;
13205 if ac_fn_c_try_run "$LINENO"; then :
13206 ac_cv_c_bigendian=no
13208 ac_cv_c_bigendian=yes
13210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13211 conftest.$ac_objext conftest.beam conftest.$ac_ext
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13217 $as_echo "$ac_cv_c_bigendian" >&6; }
13218 case $ac_cv_c_bigendian in #(
13220 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13226 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13230 as_fn_error $? "unknown endianness
13231 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13235 $as_echo_n "checking for inline... " >&6; }
13236 if ${ac_cv_c_inline+:} false; then :
13237 $as_echo_n "(cached) " >&6
13240 for ac_kw in inline __inline__ __inline; do
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13243 #ifndef __cplusplus
13245 static $ac_kw foo_t static_foo () {return 0; }
13246 $ac_kw foo_t foo () {return 0; }
13250 if ac_fn_c_try_compile "$LINENO"; then :
13251 ac_cv_c_inline=$ac_kw
13253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13254 test "$ac_cv_c_inline" != no && break
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13259 $as_echo "$ac_cv_c_inline" >&6; }
13261 case $ac_cv_c_inline in
13264 case $ac_cv_c_inline in
13266 *) ac_val=$ac_cv_c_inline;;
13268 cat >>confdefs.h <<_ACEOF
13269 #ifndef __cplusplus
13270 #define inline $ac_val
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
13277 $as_echo_n "checking for printf format archetype... " >&6; }
13278 if ${pgac_cv_printf_archetype+:} false; then :
13279 $as_echo_n "(cached) " >&6
13281 ac_save_c_werror_flag=$ac_c_werror_flag
13282 ac_c_werror_flag=yes
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13286 pgac_write(int ignore, const char *fmt,...)
13287 __attribute__((format(gnu_printf, 2, 3)));
13296 if ac_fn_c_try_compile "$LINENO"; then :
13297 pgac_cv_printf_archetype=gnu_printf
13299 pgac_cv_printf_archetype=printf
13301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302 ac_c_werror_flag=$ac_save_c_werror_flag
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
13305 $as_echo "$pgac_cv_printf_archetype" >&6; }
13307 cat >>confdefs.h <<_ACEOF
13308 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
13314 $as_echo_n "checking for flexible array members... " >&6; }
13315 if ${ac_cv_c_flexmember+:} false; then :
13316 $as_echo_n "(cached) " >&6
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 #include <stdlib.h>
13322 #include <stddef.h>
13323 struct s { int n; double d[]; };
13327 int m = getchar ();
13328 struct s *p = malloc (offsetof (struct s, d)
13329 + m * sizeof (double));
13331 return p->d != (double *) NULL;
13336 if ac_fn_c_try_compile "$LINENO"; then :
13337 ac_cv_c_flexmember=yes
13339 ac_cv_c_flexmember=no
13341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
13344 $as_echo "$ac_cv_c_flexmember" >&6; }
13345 if test $ac_cv_c_flexmember = yes; then
13347 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
13350 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
13355 $as_echo_n "checking for signed types... " >&6; }
13356 if ${pgac_cv_c_signed+:} false; then :
13357 $as_echo_n "(cached) " >&6
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13365 signed char c; signed short s; signed int i;
13370 if ac_fn_c_try_compile "$LINENO"; then :
13371 pgac_cv_c_signed=yes
13373 pgac_cv_c_signed=no
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
13378 $as_echo "$pgac_cv_c_signed" >&6; }
13379 if test x"$pgac_cv_c_signed" = xno ; then
13381 $as_echo "#define signed /**/" >>confdefs.h
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
13385 $as_echo_n "checking for __func__... " >&6; }
13386 if ${pgac_cv_funcname_func_support+:} false; then :
13387 $as_echo_n "(cached) " >&6
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13395 printf("%s\n", __func__);
13400 if ac_fn_c_try_compile "$LINENO"; then :
13401 pgac_cv_funcname_func_support=yes
13403 pgac_cv_funcname_func_support=no
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
13408 $as_echo "$pgac_cv_funcname_func_support" >&6; }
13409 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13411 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
13415 $as_echo_n "checking for __FUNCTION__... " >&6; }
13416 if ${pgac_cv_funcname_function_support+:} false; then :
13417 $as_echo_n "(cached) " >&6
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13425 printf("%s\n", __FUNCTION__);
13430 if ac_fn_c_try_compile "$LINENO"; then :
13431 pgac_cv_funcname_function_support=yes
13433 pgac_cv_funcname_function_support=no
13435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
13438 $as_echo "$pgac_cv_funcname_function_support" >&6; }
13439 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13441 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
13446 $as_echo_n "checking for _Static_assert... " >&6; }
13447 if ${pgac_cv__static_assert+:} false; then :
13448 $as_echo_n "(cached) " >&6
13450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13456 ({ _Static_assert(1, "foo"); })
13461 if ac_fn_c_try_link "$LINENO"; then :
13462 pgac_cv__static_assert=yes
13464 pgac_cv__static_assert=no
13466 rm -f core conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
13470 $as_echo "$pgac_cv__static_assert" >&6; }
13471 if test x"$pgac_cv__static_assert" = xyes ; then
13473 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
13477 $as_echo_n "checking for typeof... " >&6; }
13478 if ${pgac_cv_c_typeof+:} false; then :
13479 $as_echo_n "(cached) " >&6
13481 pgac_cv_c_typeof=no
13482 for pgac_kw in typeof __typeof__ decltype; do
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13497 if ac_fn_c_try_compile "$LINENO"; then :
13498 pgac_cv_c_typeof=$pgac_kw
13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501 test "$pgac_cv_c_typeof" != no && break
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
13505 $as_echo "$pgac_cv_c_typeof" >&6; }
13506 if test "$pgac_cv_c_typeof" != no; then
13508 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
13510 if test "$pgac_cv_c_typeof" != typeof; then
13512 cat >>confdefs.h <<_ACEOF
13513 #define typeof $pgac_cv_c_typeof
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
13519 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
13520 if ${pgac_cv__types_compatible+:} false; then :
13521 $as_echo_n "(cached) " >&6
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13529 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
13534 if ac_fn_c_try_compile "$LINENO"; then :
13535 pgac_cv__types_compatible=yes
13537 pgac_cv__types_compatible=no
13539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
13542 $as_echo "$pgac_cv__types_compatible" >&6; }
13543 if test x"$pgac_cv__types_compatible" = xyes ; then
13545 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
13549 $as_echo_n "checking for __builtin_bswap16... " >&6; }
13550 if ${pgac_cv__builtin_bswap16+:} false; then :
13551 $as_echo_n "(cached) " >&6
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13555 static unsigned long int x = __builtin_bswap16(0xaabb);
13558 if ac_fn_c_try_compile "$LINENO"; then :
13559 pgac_cv__builtin_bswap16=yes
13561 pgac_cv__builtin_bswap16=no
13563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
13566 $as_echo "$pgac_cv__builtin_bswap16" >&6; }
13567 if test x"$pgac_cv__builtin_bswap16" = xyes ; then
13569 $as_echo "#define HAVE__BUILTIN_BSWAP16 1" >>confdefs.h
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
13573 $as_echo_n "checking for __builtin_bswap32... " >&6; }
13574 if ${pgac_cv__builtin_bswap32+:} false; then :
13575 $as_echo_n "(cached) " >&6
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13579 static unsigned long int x = __builtin_bswap32(0xaabbccdd);
13582 if ac_fn_c_try_compile "$LINENO"; then :
13583 pgac_cv__builtin_bswap32=yes
13585 pgac_cv__builtin_bswap32=no
13587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
13590 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
13591 if test x"$pgac_cv__builtin_bswap32" = xyes ; then
13593 $as_echo "#define HAVE__BUILTIN_BSWAP32 1" >>confdefs.h
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
13597 $as_echo_n "checking for __builtin_bswap64... " >&6; }
13598 if ${pgac_cv__builtin_bswap64+:} false; then :
13599 $as_echo_n "(cached) " >&6
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603 static unsigned long int x = __builtin_bswap64(0xaabbccddeeff0011);
13606 if ac_fn_c_try_compile "$LINENO"; then :
13607 pgac_cv__builtin_bswap64=yes
13609 pgac_cv__builtin_bswap64=no
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
13614 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
13615 if test x"$pgac_cv__builtin_bswap64" = xyes ; then
13617 $as_echo "#define HAVE__BUILTIN_BSWAP64 1" >>confdefs.h
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
13621 $as_echo_n "checking for __builtin_constant_p... " >&6; }
13622 if ${pgac_cv__builtin_constant_p+:} false; then :
13623 $as_echo_n "(cached) " >&6
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13628 static int y[__builtin_constant_p(x) ? x : 1];
13629 static int z[__builtin_constant_p("string literal") ? 1 : x];
13633 if ac_fn_c_try_compile "$LINENO"; then :
13634 pgac_cv__builtin_constant_p=yes
13636 pgac_cv__builtin_constant_p=no
13638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
13641 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
13642 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
13644 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
13648 $as_echo_n "checking for __builtin_unreachable... " >&6; }
13649 if ${pgac_cv__builtin_unreachable+:} false; then :
13650 $as_echo_n "(cached) " >&6
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13658 __builtin_unreachable();
13663 if ac_fn_c_try_link "$LINENO"; then :
13664 pgac_cv__builtin_unreachable=yes
13666 pgac_cv__builtin_unreachable=no
13668 rm -f core conftest.err conftest.$ac_objext \
13669 conftest$ac_exeext conftest.$ac_ext
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
13672 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
13673 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
13675 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
13679 $as_echo_n "checking for computed goto support... " >&6; }
13680 if ${pgac_cv_computed_goto+:} false; then :
13681 $as_echo_n "(cached) " >&6
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13689 void *labeladdrs[] = {&&my_label};
13690 goto *labeladdrs[0];
13698 if ac_fn_c_try_compile "$LINENO"; then :
13699 pgac_cv_computed_goto=yes
13701 pgac_cv_computed_goto=no
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
13706 $as_echo "$pgac_cv_computed_goto" >&6; }
13707 if test x"$pgac_cv_computed_goto" = xyes ; then
13709 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __VA_ARGS__" >&5
13713 $as_echo_n "checking for __VA_ARGS__... " >&6; }
13714 if ${pgac_cv__va_args+:} false; then :
13715 $as_echo_n "(cached) " >&6
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13723 #define debug(...) fprintf(stderr, __VA_ARGS__)
13724 debug("%s", "blarg");
13730 if ac_fn_c_try_compile "$LINENO"; then :
13731 pgac_cv__va_args=yes
13733 pgac_cv__va_args=no
13735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__va_args" >&5
13738 $as_echo "$pgac_cv__va_args" >&6; }
13739 if test x"$pgac_cv__va_args" = xyes ; then
13741 $as_echo "#define HAVE__VA_ARGS 1" >>confdefs.h
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13745 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13746 if ${ac_cv_struct_tm+:} false; then :
13747 $as_echo_n "(cached) " >&6
13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13751 #include <sys/types.h>
13758 int *p = &tm.tm_sec;
13764 if ac_fn_c_try_compile "$LINENO"; then :
13765 ac_cv_struct_tm=time.h
13767 ac_cv_struct_tm=sys/time.h
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13772 $as_echo "$ac_cv_struct_tm" >&6; }
13773 if test $ac_cv_struct_tm = sys/time.h; then
13775 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13779 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13780 #include <$ac_cv_struct_tm>
13783 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13785 cat >>confdefs.h <<_ACEOF
13786 #define HAVE_STRUCT_TM_TM_ZONE 1
13792 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13794 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13798 $as_echo_n "checking for tzname... " >&6; }
13799 if ${ac_cv_var_tzname+:} false; then :
13800 $as_echo_n "(cached) " >&6
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 #include <stdlib.h>
13806 #ifndef tzname /* For SGI. */
13807 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13818 if ac_fn_c_try_link "$LINENO"; then :
13819 ac_cv_var_tzname=yes
13821 ac_cv_var_tzname=no
13823 rm -f core conftest.err conftest.$ac_objext \
13824 conftest$ac_exeext conftest.$ac_ext
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13827 $as_echo "$ac_cv_var_tzname" >&6; }
13828 if test $ac_cv_var_tzname = yes; then
13830 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13834 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
13835 #ifdef HAVE_SYS_IPC_H
13836 #include <sys/ipc.h>
13838 #ifdef HAVE_SYS_SEM_H
13839 #include <sys/sem.h>
13842 if test "x$ac_cv_type_union_semun" = xyes; then :
13844 cat >>confdefs.h <<_ACEOF
13845 #define HAVE_UNION_SEMUN 1
13851 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
13852 #ifdef HAVE_SYS_UN_H
13853 #include <sys/un.h>
13857 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
13859 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
13863 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13864 #include <sys/socket.h>
13867 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13869 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13876 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
13877 #include <sys/socket.h>
13880 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
13882 cat >>confdefs.h <<_ACEOF
13883 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13888 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
13889 #include <sys/socket.h>
13892 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
13894 cat >>confdefs.h <<_ACEOF
13895 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
13900 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
13901 #include <sys/socket.h>
13904 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
13906 cat >>confdefs.h <<_ACEOF
13907 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
13912 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
13913 #include <sys/socket.h>
13916 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
13918 cat >>confdefs.h <<_ACEOF
13919 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
13924 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13925 #include <sys/socket.h>
13928 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13930 cat >>confdefs.h <<_ACEOF
13931 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13937 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13938 #include <sys/socket.h>
13942 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13944 cat >>confdefs.h <<_ACEOF
13945 #define HAVE_STRUCT_ADDRINFO 1
13952 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13953 if test "x$ac_cv_type_intptr_t" = xyes; then :
13955 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
13958 for ac_type in 'int' 'long int' 'long long int'; do
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13961 $ac_includes_default
13965 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13966 test_array [0] = 0;
13967 return test_array [0];
13973 if ac_fn_c_try_compile "$LINENO"; then :
13975 cat >>confdefs.h <<_ACEOF
13976 #define intptr_t $ac_type
13981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13982 test -z "$ac_type" && break
13988 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13989 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13991 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13994 for ac_type in 'unsigned int' 'unsigned long int' \
13995 'unsigned long long int'; do
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13998 $ac_includes_default
14002 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14003 test_array [0] = 0;
14004 return test_array [0];
14010 if ac_fn_c_try_compile "$LINENO"; then :
14012 cat >>confdefs.h <<_ACEOF
14013 #define uintptr_t $ac_type
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019 test -z "$ac_type" && break
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14026 $as_echo_n "checking for unsigned long long int... " >&6; }
14027 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14028 $as_echo_n "(cached) " >&6
14030 ac_cv_type_unsigned_long_long_int=yes
14031 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14035 /* For now, do not test the preprocessor; as of 2007 there are too many
14036 implementations with broken preprocessors. Perhaps this can
14037 be revisited in 2012. In the meantime, code should not expect
14038 #if to work with literals wider than 32 bits. */
14039 /* Test literals. */
14040 long long int ll = 9223372036854775807ll;
14041 long long int nll = -9223372036854775807LL;
14042 unsigned long long int ull = 18446744073709551615ULL;
14043 /* Test constant expressions. */
14044 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14046 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14052 /* Test availability of runtime routines for shift and division. */
14053 long long int llmax = 9223372036854775807ll;
14054 unsigned long long int ullmax = 18446744073709551615ull;
14055 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14056 | (llmax / ll) | (llmax % ll)
14057 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14058 | (ullmax / ull) | (ullmax % ull));
14064 if ac_fn_c_try_link "$LINENO"; then :
14067 ac_cv_type_unsigned_long_long_int=no
14069 rm -f core conftest.err conftest.$ac_objext \
14070 conftest$ac_exeext conftest.$ac_ext
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14074 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14075 if test $ac_cv_type_unsigned_long_long_int = yes; then
14077 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14084 $as_echo_n "checking for long long int... " >&6; }
14085 if ${ac_cv_type_long_long_int+:} false; then :
14086 $as_echo_n "(cached) " >&6
14088 ac_cv_type_long_long_int=yes
14089 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14090 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14091 if test $ac_cv_type_long_long_int = yes; then
14092 if test "$cross_compiling" = yes; then :
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14097 #include <limits.h>
14100 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14101 # define LLONG_MAX (HALF - 1 + HALF)
14106 long long int n = 1;
14110 long long int m = n << i;
14113 if (LLONG_MAX / 2 < m)
14121 if ac_fn_c_try_run "$LINENO"; then :
14124 ac_cv_type_long_long_int=no
14126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14127 conftest.$ac_objext conftest.beam conftest.$ac_ext
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14134 $as_echo "$ac_cv_type_long_long_int" >&6; }
14135 if test $ac_cv_type_long_long_int = yes; then
14137 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
14143 $as_echo_n "checking for locale_t... " >&6; }
14144 if ${pgac_cv_type_locale_t+:} false; then :
14145 $as_echo_n "(cached) " >&6
14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 #include <locale.h>
14159 if ac_fn_c_try_compile "$LINENO"; then :
14160 pgac_cv_type_locale_t=yes
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14164 #include <xlocale.h>
14174 if ac_fn_c_try_compile "$LINENO"; then :
14175 pgac_cv_type_locale_t='yes (in xlocale.h)'
14177 pgac_cv_type_locale_t=no
14179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
14184 $as_echo "$pgac_cv_type_locale_t" >&6; }
14185 if test "$pgac_cv_type_locale_t" != no; then
14187 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
14190 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
14192 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
14196 # MSVC doesn't cope well with defining restrict to __restrict, the
14197 # spelling it understands, because it conflicts with
14198 # __declspec(restrict). Therefore we define pg_restrict to the
14199 # appropriate definition, which presumably won't conflict.
14201 # Allow platforms with buggy compilers to force restrict to not be
14202 # used by setting $FORCE_DISABLE_RESTRICT=yes in the relevant
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14205 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14206 if ${ac_cv_c_restrict+:} false; then :
14207 $as_echo_n "(cached) " >&6
14209 ac_cv_c_restrict=no
14210 # The order here caters to the fact that C++ does not require restrict.
14211 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h. */
14214 typedef int * int_ptr;
14215 int foo (int_ptr $ac_kw ip) {
14222 int * $ac_kw t = s;
14229 if ac_fn_c_try_compile "$LINENO"; then :
14230 ac_cv_c_restrict=$ac_kw
14232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14233 test "$ac_cv_c_restrict" != no && break
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14238 $as_echo "$ac_cv_c_restrict" >&6; }
14240 case $ac_cv_c_restrict in
14242 no) $as_echo "#define restrict /**/" >>confdefs.h
14244 *) cat >>confdefs.h <<_ACEOF
14245 #define restrict $ac_cv_c_restrict
14250 if test "$ac_cv_c_restrict" = "no" -o "x$FORCE_DISABLE_RESTRICT" = "xyes"; then
14253 pg_restrict="$ac_cv_c_restrict"
14256 cat >>confdefs.h <<_ACEOF
14257 #define pg_restrict $pg_restrict
14261 ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
14262 #include <sys/param.h>
14263 #ifdef HAVE_SYS_UCRED_H
14264 #include <sys/ucred.h>
14267 if test "x$ac_cv_type_struct_cmsgcred" = xyes; then :
14269 cat >>confdefs.h <<_ACEOF
14270 #define HAVE_STRUCT_CMSGCRED 1
14277 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
14278 #include <getopt.h>
14281 if test "x$ac_cv_type_struct_option" = xyes; then :
14283 cat >>confdefs.h <<_ACEOF
14284 #define HAVE_STRUCT_OPTION 1
14291 if test "$with_zlib" = yes; then
14292 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14293 # did not). While we could work around the lack of z_streamp, it
14294 # seems unwise to encourage people to use such old zlib versions...
14295 ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
14297 if test "x$ac_cv_type_z_streamp" = xyes; then :
14300 as_fn_error $? "zlib version is too old
14301 Use --without-zlib to disable zlib support." "$LINENO" 5
14306 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
14310 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14317 int a = 0; int *p = &a; int r;
14318 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
14323 if ac_fn_c_try_compile "$LINENO"; then :
14324 pgac_cv_have_ppc_mutex_hint=yes
14326 pgac_cv_have_ppc_mutex_hint=no
14328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
14330 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
14331 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
14333 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
14339 # Check largefile support. You might think this is a system service not a
14340 # compiler characteristic, but you'd be wrong. We must check this before
14341 # probing existence of related functions such as fseeko, since the largefile
14342 # defines can affect what is generated for that.
14343 if test "$PORTNAME" != "win32"; then
14344 # Check whether --enable-largefile was given.
14345 if test "${enable_largefile+set}" = set; then :
14346 enableval=$enable_largefile;
14349 if test "$enable_largefile" != no; then
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14352 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14353 if ${ac_cv_sys_largefile_CC+:} false; then :
14354 $as_echo_n "(cached) " >&6
14356 ac_cv_sys_largefile_CC=no
14357 if test "$GCC" != yes; then
14360 # IRIX 6.2 and later do not support large files by default,
14361 # so use the C compiler's -n32 option if that helps.
14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h. */
14364 #include <sys/types.h>
14365 /* Check that off_t can represent 2**63 - 1 correctly.
14366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14367 since some C++ compilers masquerading as C compilers
14368 incorrectly reject 9223372036854775807. */
14369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14371 && LARGE_OFF_T % 2147483647 == 1)
14381 if ac_fn_c_try_compile "$LINENO"; then :
14384 rm -f core conftest.err conftest.$ac_objext
14386 if ac_fn_c_try_compile "$LINENO"; then :
14387 ac_cv_sys_largefile_CC=' -n32'; break
14389 rm -f core conftest.err conftest.$ac_objext
14393 rm -f conftest.$ac_ext
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14397 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14398 if test "$ac_cv_sys_largefile_CC" != no; then
14399 CC=$CC$ac_cv_sys_largefile_CC
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14403 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14404 if ${ac_cv_sys_file_offset_bits+:} false; then :
14405 $as_echo_n "(cached) " >&6
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14410 #include <sys/types.h>
14411 /* Check that off_t can represent 2**63 - 1 correctly.
14412 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14413 since some C++ compilers masquerading as C compilers
14414 incorrectly reject 9223372036854775807. */
14415 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14416 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14417 && LARGE_OFF_T % 2147483647 == 1)
14427 if ac_fn_c_try_compile "$LINENO"; then :
14428 ac_cv_sys_file_offset_bits=no; break
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14433 #define _FILE_OFFSET_BITS 64
14434 #include <sys/types.h>
14435 /* Check that off_t can represent 2**63 - 1 correctly.
14436 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14437 since some C++ compilers masquerading as C compilers
14438 incorrectly reject 9223372036854775807. */
14439 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14441 && LARGE_OFF_T % 2147483647 == 1)
14451 if ac_fn_c_try_compile "$LINENO"; then :
14452 ac_cv_sys_file_offset_bits=64; break
14454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14455 ac_cv_sys_file_offset_bits=unknown
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14460 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14461 case $ac_cv_sys_file_offset_bits in #(
14464 cat >>confdefs.h <<_ACEOF
14465 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14470 if test $ac_cv_sys_file_offset_bits = unknown; then
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14472 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14473 if ${ac_cv_sys_large_files+:} false; then :
14474 $as_echo_n "(cached) " >&6
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14479 #include <sys/types.h>
14480 /* Check that off_t can represent 2**63 - 1 correctly.
14481 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14482 since some C++ compilers masquerading as C compilers
14483 incorrectly reject 9223372036854775807. */
14484 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14485 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14486 && LARGE_OFF_T % 2147483647 == 1)
14496 if ac_fn_c_try_compile "$LINENO"; then :
14497 ac_cv_sys_large_files=no; break
14499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14502 #define _LARGE_FILES 1
14503 #include <sys/types.h>
14504 /* Check that off_t can represent 2**63 - 1 correctly.
14505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14506 since some C++ compilers masquerading as C compilers
14507 incorrectly reject 9223372036854775807. */
14508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14510 && LARGE_OFF_T % 2147483647 == 1)
14520 if ac_fn_c_try_compile "$LINENO"; then :
14521 ac_cv_sys_large_files=1; break
14523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14524 ac_cv_sys_large_files=unknown
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14529 $as_echo "$ac_cv_sys_large_files" >&6; }
14530 case $ac_cv_sys_large_files in #(
14533 cat >>confdefs.h <<_ACEOF
14534 #define _LARGE_FILES $ac_cv_sys_large_files
14547 # Check for largefile support (must be after AC_SYS_LARGEFILE)
14548 # The cast to long int works around a bug in the HP C Compiler
14549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14551 # This bug is HP SR number 8606223364.
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14553 $as_echo_n "checking size of off_t... " >&6; }
14554 if ${ac_cv_sizeof_off_t+:} false; then :
14555 $as_echo_n "(cached) " >&6
14557 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
14560 if test "$ac_cv_type_off_t" = yes; then
14561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14563 as_fn_error 77 "cannot compute sizeof (off_t)
14564 See \`config.log' for more details" "$LINENO" 5; }
14566 ac_cv_sizeof_off_t=0
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14572 $as_echo "$ac_cv_sizeof_off_t" >&6; }
14576 cat >>confdefs.h <<_ACEOF
14577 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14582 # If we don't have largefile support, can't handle segsize >= 2GB.
14583 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
14584 as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
14587 # The cast to long int works around a bug in the HP C Compiler
14588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14590 # This bug is HP SR number 8606223364.
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
14592 $as_echo_n "checking size of bool... " >&6; }
14593 if ${ac_cv_sizeof_bool+:} false; then :
14594 $as_echo_n "(cached) " >&6
14596 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
14597 #include <stdbool.h>
14602 if test "$ac_cv_type_bool" = yes; then
14603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14605 as_fn_error 77 "cannot compute sizeof (bool)
14606 See \`config.log' for more details" "$LINENO" 5; }
14608 ac_cv_sizeof_bool=0
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
14614 $as_echo "$ac_cv_sizeof_bool" >&6; }
14618 cat >>confdefs.h <<_ACEOF
14619 #define SIZEOF_BOOL $ac_cv_sizeof_bool
14626 ## Functions, global variables
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
14630 $as_echo_n "checking for int timezone... " >&6; }
14631 if ${pgac_cv_var_int_timezone+:} false; then :
14632 $as_echo_n "(cached) " >&6
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14642 res = timezone / 60;
14644 res = _timezone / 60;
14650 if ac_fn_c_try_link "$LINENO"; then :
14651 pgac_cv_var_int_timezone=yes
14653 pgac_cv_var_int_timezone=no
14655 rm -f core conftest.err conftest.$ac_objext \
14656 conftest$ac_exeext conftest.$ac_ext
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
14659 $as_echo "$pgac_cv_var_int_timezone" >&6; }
14660 if test x"$pgac_cv_var_int_timezone" = xyes ; then
14662 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
14666 $as_echo_n "checking types of arguments for accept()... " >&6; }
14667 if ${ac_cv_func_accept_return+:} false; then :
14668 $as_echo_n "(cached) " >&6
14670 if ${ac_cv_func_accept_arg1+:} false; then :
14671 $as_echo_n "(cached) " >&6
14673 if ${ac_cv_func_accept_arg2+:} false; then :
14674 $as_echo_n "(cached) " >&6
14676 if ${ac_cv_func_accept_arg3+:} false; then :
14677 $as_echo_n "(cached) " >&6
14679 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
14680 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
14681 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
14682 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14685 #include <sys/types.h>
14686 #include <sys/socket.h>
14687 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
14689 if ac_fn_c_try_compile "$LINENO"; then :
14690 ac_not_found=no; break 4
14694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14699 if test "$ac_not_found" = yes; then
14700 as_fn_error $? "could not determine argument types" "$LINENO" 5
14702 if test "$ac_cv_func_accept_arg3" = "void"; then
14703 ac_cv_func_accept_arg3=int
14713 { $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
14714 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
14716 cat >>confdefs.h <<_ACEOF
14717 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
14721 cat >>confdefs.h <<_ACEOF
14722 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
14726 cat >>confdefs.h <<_ACEOF
14727 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
14731 cat >>confdefs.h <<_ACEOF
14732 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
14737 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
14738 if ${pgac_cv_func_gettimeofday_1arg+:} false; then :
14739 $as_echo_n "(cached) " >&6
14741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h. */
14743 #include <sys/time.h>
14747 struct timeval *tp;
14748 struct timezone *tzp;
14749 gettimeofday(tp,tzp);
14754 if ac_fn_c_try_compile "$LINENO"; then :
14755 pgac_cv_func_gettimeofday_1arg=no
14757 pgac_cv_func_gettimeofday_1arg=yes
14759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
14762 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
14763 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
14765 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
14770 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
14771 if ${pgac_cv_func_wcstombs_l+:} false; then :
14772 $as_echo_n "(cached) " >&6
14774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14775 /* end confdefs.h. */
14776 #include <stdlib.h>
14777 #include <locale.h>
14788 if ac_fn_c_try_compile "$LINENO"; then :
14789 pgac_cv_func_wcstombs_l='yes'
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14793 #include <stdlib.h>
14794 #include <locale.h>
14795 #include <xlocale.h>
14806 if ac_fn_c_try_compile "$LINENO"; then :
14807 pgac_cv_func_wcstombs_l='yes (in xlocale.h)'
14809 pgac_cv_func_wcstombs_l='no'
14811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
14816 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
14817 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
14819 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
14823 # Some versions of libedit contain strlcpy(), setproctitle(), and other
14824 # symbols that that library has no business exposing to the world. Pending
14825 # acquisition of a clue by those developers, ignore libedit (including its
14826 # possible alias of libreadline) while checking for everything else.
14827 LIBS_including_readline="$LIBS"
14828 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
14830 for ac_func in cbrt clock_gettime dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll posix_fallocate pstat pthread_is_threaded_np readlink setproctitle setsid shm_open symlink sync_file_range utime utimes wcstombs_l
14832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14833 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14834 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14835 cat >>confdefs.h <<_ACEOF
14836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14843 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
14844 if test "x$ac_cv_func_fseeko" = xyes; then :
14845 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14848 case " $LIBOBJS " in
14849 *" fseeko.$ac_objext "* ) ;;
14850 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
14858 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
14859 # Mingw uses macros to access Win32 API calls
14862 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14864 ac_cv_func_fseeko=yes;;
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14867 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14868 if ${ac_cv_sys_largefile_source+:} false; then :
14869 $as_echo_n "(cached) " >&6
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14874 #include <sys/types.h> /* for off_t */
14879 int (*fp) (FILE *, off_t, int) = fseeko;
14880 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14885 if ac_fn_c_try_link "$LINENO"; then :
14886 ac_cv_sys_largefile_source=no; break
14888 rm -f core conftest.err conftest.$ac_objext \
14889 conftest$ac_exeext conftest.$ac_ext
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892 #define _LARGEFILE_SOURCE 1
14893 #include <sys/types.h> /* for off_t */
14898 int (*fp) (FILE *, off_t, int) = fseeko;
14899 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14904 if ac_fn_c_try_link "$LINENO"; then :
14905 ac_cv_sys_largefile_source=1; break
14907 rm -f core conftest.err conftest.$ac_objext \
14908 conftest$ac_exeext conftest.$ac_ext
14909 ac_cv_sys_largefile_source=unknown
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14914 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14915 case $ac_cv_sys_largefile_source in #(
14918 cat >>confdefs.h <<_ACEOF
14919 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14925 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14926 # in glibc 2.1.3, but that breaks too many other things.
14927 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14928 if test $ac_cv_sys_largefile_source != unknown; then
14930 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14936 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
14937 # by calling it, 2009-04-02
14938 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
14939 if test "$PORTNAME" != "solaris"; then
14940 for ac_func in posix_fadvise
14942 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
14943 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
14944 cat >>confdefs.h <<_ACEOF
14945 #define HAVE_POSIX_FADVISE 1
14951 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
14953 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
14959 cat >>confdefs.h <<_ACEOF
14960 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
14965 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
14967 if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
14973 cat >>confdefs.h <<_ACEOF
14974 #define HAVE_DECL_FDATASYNC $ac_have_decl
14977 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
14978 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
14984 cat >>confdefs.h <<_ACEOF
14985 #define HAVE_DECL_STRLCAT $ac_have_decl
14987 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
14988 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
14994 cat >>confdefs.h <<_ACEOF
14995 #define HAVE_DECL_STRLCPY $ac_have_decl
14997 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
14998 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
15004 cat >>confdefs.h <<_ACEOF
15005 #define HAVE_DECL_STRNLEN $ac_have_decl
15008 # This is probably only present on macOS, but may as well check always
15009 ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
15011 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then :
15017 cat >>confdefs.h <<_ACEOF
15018 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
15023 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
15024 #include <netinet/in.h>
15026 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
15028 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
15036 $as_echo_n "checking for PS_STRINGS... " >&6; }
15037 if ${pgac_cv_var_PS_STRINGS+:} false; then :
15038 $as_echo_n "(cached) " >&6
15040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15041 /* end confdefs.h. */
15042 #include <machine/vmparam.h>
15043 #include <sys/exec.h>
15048 PS_STRINGS->ps_nargvstr = 1;
15049 PS_STRINGS->ps_argvstr = "foo";
15054 if ac_fn_c_try_link "$LINENO"; then :
15055 pgac_cv_var_PS_STRINGS=yes
15057 pgac_cv_var_PS_STRINGS=no
15059 rm -f core conftest.err conftest.$ac_objext \
15060 conftest$ac_exeext conftest.$ac_ext
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
15063 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
15064 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
15066 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
15071 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
15072 # is missing. Yes, there are machines that have only one. We may
15073 # also decide to use snprintf.c if snprintf() is present but does not
15074 # have all the features we need --- see below.
15076 if test "$PORTNAME" = "win32"; then
15077 # Win32 gets snprintf.c built unconditionally.
15079 # To properly translate all NLS languages strings, we must support the
15080 # *printf() %$ format, which allows *printf() arguments to be selected
15081 # by position in the translated string.
15083 # libintl versions < 0.13 use the native *printf() functions, and Win32
15084 # *printf() doesn't understand %$, so we must use our /port versions,
15085 # which do understand %$. libintl versions >= 0.13 include their own
15086 # *printf versions on Win32. The libintl 0.13 release note text is:
15088 # C format strings with positions, as they arise when a translator
15089 # needs to reorder a sentence, are now supported on all platforms.
15090 # On those few platforms (NetBSD and Woe32) for which the native
15091 # printf()/fprintf()/... functions don't support such format
15092 # strings, replacements are provided through <libintl.h>.
15094 # We could use libintl >= 0.13's *printf() if we were sure that we had
15095 # a litint >= 0.13 at runtime, but seeing that there is no clean way
15096 # to guarantee that, it is best to just use our own, so we are sure to
15097 # get %$ support. In include/port.h we disable the *printf() macros
15098 # that might have been defined by libintl.
15100 # We do this unconditionally whether NLS is used or not so we are sure
15101 # that all Win32 libraries and binaries behave the same.
15102 pgac_need_repl_snprintf=yes
15104 pgac_need_repl_snprintf=no
15105 for ac_func in snprintf
15107 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15108 if test "x$ac_cv_func_snprintf" = xyes; then :
15109 cat >>confdefs.h <<_ACEOF
15110 #define HAVE_SNPRINTF 1
15114 pgac_need_repl_snprintf=yes
15118 for ac_func in vsnprintf
15120 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
15121 if test "x$ac_cv_func_vsnprintf" = xyes; then :
15122 cat >>confdefs.h <<_ACEOF
15123 #define HAVE_VSNPRINTF 1
15127 pgac_need_repl_snprintf=yes
15134 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
15135 # include/c.h will provide declarations. Note this is a separate test
15136 # from whether the functions exist in the C library --- there are
15137 # systems that have the functions but don't bother to declare them :-(
15139 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
15140 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
15146 cat >>confdefs.h <<_ACEOF
15147 #define HAVE_DECL_SNPRINTF $ac_have_decl
15149 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
15150 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
15156 cat >>confdefs.h <<_ACEOF
15157 #define HAVE_DECL_VSNPRINTF $ac_have_decl
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
15163 $as_echo_n "checking for isinf... " >&6; }
15164 if ${ac_cv_func_isinf+:} false; then :
15165 $as_echo_n "(cached) " >&6
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15171 double glob_double;
15176 return isinf(glob_double) ? 0 : 1;
15181 if ac_fn_c_try_link "$LINENO"; then :
15182 ac_cv_func_isinf=yes
15184 ac_cv_func_isinf=no
15186 rm -f core conftest.err conftest.$ac_objext \
15187 conftest$ac_exeext conftest.$ac_ext
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
15190 $as_echo "$ac_cv_func_isinf" >&6; }
15192 if test $ac_cv_func_isinf = yes ; then
15194 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
15197 case " $LIBOBJS " in
15198 *" isinf.$ac_objext "* ) ;;
15199 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
15203 # Look for a way to implement a substitute for isinf()
15204 for ac_func in fpclass fp_class fp_class_d class
15206 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15207 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15208 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15209 cat >>confdefs.h <<_ACEOF
15210 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15218 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
15219 if test "x$ac_cv_func_crypt" = xyes; then :
15220 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
15223 case " $LIBOBJS " in
15224 *" crypt.$ac_objext "* ) ;;
15225 *) LIBOBJS="$LIBOBJS crypt.$ac_objext"
15231 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
15232 if test "x$ac_cv_func_fls" = xyes; then :
15233 $as_echo "#define HAVE_FLS 1" >>confdefs.h
15236 case " $LIBOBJS " in
15237 *" fls.$ac_objext "* ) ;;
15238 *) LIBOBJS="$LIBOBJS fls.$ac_objext"
15244 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
15245 if test "x$ac_cv_func_getopt" = xyes; then :
15246 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
15249 case " $LIBOBJS " in
15250 *" getopt.$ac_objext "* ) ;;
15251 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
15257 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
15258 if test "x$ac_cv_func_getrusage" = xyes; then :
15259 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
15262 case " $LIBOBJS " in
15263 *" getrusage.$ac_objext "* ) ;;
15264 *) LIBOBJS="$LIBOBJS getrusage.$ac_objext"
15270 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
15271 if test "x$ac_cv_func_inet_aton" = xyes; then :
15272 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
15275 case " $LIBOBJS " in
15276 *" inet_aton.$ac_objext "* ) ;;
15277 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
15283 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
15284 if test "x$ac_cv_func_mkdtemp" = xyes; then :
15285 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
15288 case " $LIBOBJS " in
15289 *" mkdtemp.$ac_objext "* ) ;;
15290 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
15296 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
15297 if test "x$ac_cv_func_random" = xyes; then :
15298 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
15301 case " $LIBOBJS " in
15302 *" random.$ac_objext "* ) ;;
15303 *) LIBOBJS="$LIBOBJS random.$ac_objext"
15309 ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
15310 if test "x$ac_cv_func_rint" = xyes; then :
15311 $as_echo "#define HAVE_RINT 1" >>confdefs.h
15314 case " $LIBOBJS " in
15315 *" rint.$ac_objext "* ) ;;
15316 *) LIBOBJS="$LIBOBJS rint.$ac_objext"
15322 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
15323 if test "x$ac_cv_func_srandom" = xyes; then :
15324 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
15327 case " $LIBOBJS " in
15328 *" srandom.$ac_objext "* ) ;;
15329 *) LIBOBJS="$LIBOBJS srandom.$ac_objext"
15335 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
15336 if test "x$ac_cv_func_strerror" = xyes; then :
15337 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
15340 case " $LIBOBJS " in
15341 *" strerror.$ac_objext "* ) ;;
15342 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
15348 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
15349 if test "x$ac_cv_func_strlcat" = xyes; then :
15350 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
15353 case " $LIBOBJS " in
15354 *" strlcat.$ac_objext "* ) ;;
15355 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
15361 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15362 if test "x$ac_cv_func_strlcpy" = xyes; then :
15363 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
15366 case " $LIBOBJS " in
15367 *" strlcpy.$ac_objext "* ) ;;
15368 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
15374 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
15375 if test "x$ac_cv_func_strnlen" = xyes; then :
15376 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
15379 case " $LIBOBJS " in
15380 *" strnlen.$ac_objext "* ) ;;
15381 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
15391 # Windows uses a specialised env handler
15392 # and doesn't need a replacement getpeereid because it doesn't use
15396 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
15399 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
15401 ac_cv_func_unsetenv=yes
15402 ac_cv_func_getpeereid=yes;;
15404 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15405 if test "x$ac_cv_func_unsetenv" = xyes; then :
15406 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
15409 case " $LIBOBJS " in
15410 *" unsetenv.$ac_objext "* ) ;;
15411 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
15417 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
15418 if test "x$ac_cv_func_getpeereid" = xyes; then :
15419 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
15422 case " $LIBOBJS " in
15423 *" getpeereid.$ac_objext "* ) ;;
15424 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
15434 # System's version of getaddrinfo(), if any, may be used only if we found
15435 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
15436 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
15437 if test x"$ac_cv_type_struct_addrinfo" = xyes && \
15438 test "$PORTNAME" != "win32"; then
15439 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15440 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
15441 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
15444 case " $LIBOBJS " in
15445 *" getaddrinfo.$ac_objext "* ) ;;
15446 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
15454 case " $LIBOBJS " in
15455 *" getaddrinfo.$ac_objext "* ) ;;
15456 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
15462 # Similarly, use system's getopt_long() only if system provides struct option.
15463 if test x"$ac_cv_type_struct_option" = xyes ; then
15464 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15465 if test "x$ac_cv_func_getopt_long" = xyes; then :
15466 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
15469 case " $LIBOBJS " in
15470 *" getopt_long.$ac_objext "* ) ;;
15471 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
15479 case " $LIBOBJS " in
15480 *" getopt_long.$ac_objext "* ) ;;
15481 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
15487 # Solaris' getopt() doesn't do what we want for long options, so always use
15488 # our version on that platform.
15489 if test "$PORTNAME" = "solaris"; then
15490 case " $LIBOBJS " in
15491 *" getopt.$ac_objext "* ) ;;
15492 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
15498 # mingw has adopted a GNU-centric interpretation of optind/optreset,
15499 # so always use our version on Windows.
15500 if test "$PORTNAME" = "win32"; then
15501 case " $LIBOBJS " in
15502 *" getopt.$ac_objext "* ) ;;
15503 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
15507 case " $LIBOBJS " in
15508 *" getopt_long.$ac_objext "* ) ;;
15509 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
15515 # Win32 (really MinGW) support
15516 if test "$PORTNAME" = "win32"; then
15517 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15518 if test "x$ac_cv_func_gettimeofday" = xyes; then :
15519 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
15522 case " $LIBOBJS " in
15523 *" gettimeofday.$ac_objext "* ) ;;
15524 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
15531 case " $LIBOBJS " in
15532 *" dirmod.$ac_objext "* ) ;;
15533 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
15537 case " $LIBOBJS " in
15538 *" kill.$ac_objext "* ) ;;
15539 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
15543 case " $LIBOBJS " in
15544 *" open.$ac_objext "* ) ;;
15545 *) LIBOBJS="$LIBOBJS open.$ac_objext"
15549 case " $LIBOBJS " in
15550 *" system.$ac_objext "* ) ;;
15551 *) LIBOBJS="$LIBOBJS system.$ac_objext"
15555 case " $LIBOBJS " in
15556 *" win32env.$ac_objext "* ) ;;
15557 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
15561 case " $LIBOBJS " in
15562 *" win32error.$ac_objext "* ) ;;
15563 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
15567 case " $LIBOBJS " in
15568 *" win32security.$ac_objext "* ) ;;
15569 *) LIBOBJS="$LIBOBJS win32security.$ac_objext"
15573 case " $LIBOBJS " in
15574 *" win32setlocale.$ac_objext "* ) ;;
15575 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
15580 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
15582 ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
15583 #define WIN32_LEAN_AND_MEAN
15584 #include <windows.h>
15585 #include <string.h>
15586 #include <dbghelp.h>
15588 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
15590 cat >>confdefs.h <<_ACEOF
15591 #define HAVE_MINIDUMP_TYPE 1
15594 pgac_minidump_type=yes
15596 pgac_minidump_type=no
15600 if test x"$pgac_minidump_type" = x"yes" ; then
15601 have_win32_dbghelp=yes
15604 have_win32_dbghelp=no
15608 # Cygwin needs only a bit of that
15609 if test "$PORTNAME" = "cygwin"; then
15610 case " $LIBOBJS " in
15611 *" dirmod.$ac_objext "* ) ;;
15612 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
15618 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
15619 /* NetBSD declares sys_siglist in unistd.h. */
15620 #ifdef HAVE_UNISTD_H
15621 # include <unistd.h>
15625 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
15631 cat >>confdefs.h <<_ACEOF
15632 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
15636 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
15637 if test "x$ac_cv_func_syslog" = xyes; then :
15638 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15639 if test "x$ac_cv_header_syslog_h" = xyes; then :
15641 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
15650 $as_echo_n "checking for opterr... " >&6; }
15651 if ${pgac_cv_var_int_opterr+:} false; then :
15652 $as_echo_n "(cached) " >&6
15654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655 /* end confdefs.h. */
15656 #include <unistd.h>
15660 extern int opterr; opterr = 1;
15665 if ac_fn_c_try_link "$LINENO"; then :
15666 pgac_cv_var_int_opterr=yes
15668 pgac_cv_var_int_opterr=no
15670 rm -f core conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
15674 $as_echo "$pgac_cv_var_int_opterr" >&6; }
15675 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
15677 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
15682 $as_echo_n "checking for optreset... " >&6; }
15683 if ${pgac_cv_var_int_optreset+:} false; then :
15684 $as_echo_n "(cached) " >&6
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h. */
15688 #include <unistd.h>
15692 extern int optreset; optreset = 1;
15697 if ac_fn_c_try_link "$LINENO"; then :
15698 pgac_cv_var_int_optreset=yes
15700 pgac_cv_var_int_optreset=no
15702 rm -f core conftest.err conftest.$ac_objext \
15703 conftest$ac_exeext conftest.$ac_ext
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
15706 $as_echo "$pgac_cv_var_int_optreset" >&6; }
15707 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15709 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
15713 for ac_func in strtoll strtoq
15715 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15716 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15717 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15718 cat >>confdefs.h <<_ACEOF
15719 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15725 for ac_func in strtoull strtouq
15727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15728 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15729 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15730 cat >>confdefs.h <<_ACEOF
15731 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15738 if test "$with_icu" = yes; then
15739 ac_save_CPPFLAGS=$CPPFLAGS
15740 CPPFLAGS="$ICU_CFLAGS $CPPFLAGS"
15742 # Verify we have ICU's header files
15743 ac_fn_c_check_header_mongrel "$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
15744 if test "x$ac_cv_header_unicode_ucol_h" = xyes; then :
15747 as_fn_error $? "header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
15752 CPPFLAGS=$ac_save_CPPFLAGS
15755 # Lastly, restore full LIBS list and check for readline/libedit symbols
15756 LIBS="$LIBS_including_readline"
15758 if test "$with_readline" = yes; then
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
15760 $as_echo_n "checking for rl_completion_append_character... " >&6; }
15761 if ${pgac_cv_var_rl_completion_append_character+:} false; then :
15762 $as_echo_n "(cached) " >&6
15764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15765 /* end confdefs.h. */
15767 #ifdef HAVE_READLINE_READLINE_H
15768 # include <readline/readline.h>
15769 #elif defined(HAVE_READLINE_H)
15770 # include <readline.h>
15776 rl_completion_append_character = 'x';
15781 if ac_fn_c_try_link "$LINENO"; then :
15782 pgac_cv_var_rl_completion_append_character=yes
15784 pgac_cv_var_rl_completion_append_character=no
15786 rm -f core conftest.err conftest.$ac_objext \
15787 conftest$ac_exeext conftest.$ac_ext
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
15790 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
15791 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
15793 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
15796 for ac_func in rl_completion_matches rl_filename_completion_function rl_reset_screen_size
15798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15799 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15800 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15801 cat >>confdefs.h <<_ACEOF
15802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15808 for ac_func in append_history history_truncate_file
15810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15812 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15813 cat >>confdefs.h <<_ACEOF
15814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15823 # This test makes sure that run tests work at all. Sometimes a shared
15824 # library is found by the linker, but the runtime linker can't find it.
15825 # This check should come after all modifications of compiler or linker
15826 # variables, and before any other run tests.
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
15828 $as_echo_n "checking test program... " >&6; }
15829 if test "$cross_compiling" = yes; then :
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
15831 $as_echo "cross-compiling" >&6; }
15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h. */
15835 int main() { return 0; }
15837 if ac_fn_c_try_run "$LINENO"; then :
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15839 $as_echo "ok" >&6; }
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15842 $as_echo "failed" >&6; }
15844 Could not execute a simple test program. This may be a problem
15845 related to locating shared libraries. Check the file 'config.log'
15846 for the exact reason." "$LINENO" 5
15848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15849 conftest.$ac_objext conftest.beam conftest.$ac_ext
15853 # --------------------
15854 # Run tests below here
15855 # --------------------
15857 # Force use of our snprintf if system's doesn't do arg control
15858 # See comment above at snprintf test for details.
15859 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports argument control" >&5
15861 $as_echo_n "checking whether snprintf supports argument control... " >&6; }
15862 if ${pgac_cv_snprintf_arg_control+:} false; then :
15863 $as_echo_n "(cached) " >&6
15865 if test "$cross_compiling" = yes; then :
15866 pgac_cv_snprintf_arg_control=cross
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15871 #include <string.h>
15877 /* can it swap arguments? */
15878 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
15879 if (strcmp(buf, "4 3") != 0)
15884 if ac_fn_c_try_run "$LINENO"; then :
15885 pgac_cv_snprintf_arg_control=yes
15887 pgac_cv_snprintf_arg_control=no
15889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15890 conftest.$ac_objext conftest.beam conftest.$ac_ext
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_arg_control" >&5
15896 $as_echo "$pgac_cv_snprintf_arg_control" >&6; }
15898 if test $pgac_cv_snprintf_arg_control != yes ; then
15899 pgac_need_repl_snprintf=yes
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
15907 $as_echo_n "checking whether long int is 64 bits... " >&6; }
15908 if ${pgac_cv_type_long_int_64+:} false; then :
15909 $as_echo_n "(cached) " >&6
15911 if test "$cross_compiling" = yes; then :
15912 # If cross-compiling, check the size reported by the compiler and
15913 # trust that the arithmetic works.
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15920 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
15921 test_array [0] = 0;
15922 return test_array [0];
15928 if ac_fn_c_try_compile "$LINENO"; then :
15929 pgac_cv_type_long_int_64=yes
15931 pgac_cv_type_long_int_64=no
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h. */
15937 typedef long int ac_int64;
15940 * These are globals to discourage the compiler from folding all the
15941 * arithmetic tests down to compile-time constants.
15943 ac_int64 a = 20000001;
15944 ac_int64 b = 40000005;
15946 int does_int64_work()
15950 if (sizeof(ac_int64) != 8)
15951 return 0; /* definitely not the right size */
15953 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
15963 return (! does_int64_work());
15966 if ac_fn_c_try_run "$LINENO"; then :
15967 pgac_cv_type_long_int_64=yes
15969 pgac_cv_type_long_int_64=no
15971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15972 conftest.$ac_objext conftest.beam conftest.$ac_ext
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
15977 $as_echo "$pgac_cv_type_long_int_64" >&6; }
15979 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
15980 if test x"$pgac_cv_type_long_int_64" = xyes ; then
15982 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
15987 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
15988 pg_int64_type="long int"
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
15991 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
15992 if ${pgac_cv_type_long_long_int_64+:} false; then :
15993 $as_echo_n "(cached) " >&6
15995 if test "$cross_compiling" = yes; then :
15996 # If cross-compiling, check the size reported by the compiler and
15997 # trust that the arithmetic works.
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16004 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
16005 test_array [0] = 0;
16006 return test_array [0];
16012 if ac_fn_c_try_compile "$LINENO"; then :
16013 pgac_cv_type_long_long_int_64=yes
16015 pgac_cv_type_long_long_int_64=no
16017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020 /* end confdefs.h. */
16021 typedef long long int ac_int64;
16024 * These are globals to discourage the compiler from folding all the
16025 * arithmetic tests down to compile-time constants.
16027 ac_int64 a = 20000001;
16028 ac_int64 b = 40000005;
16030 int does_int64_work()
16034 if (sizeof(ac_int64) != 8)
16035 return 0; /* definitely not the right size */
16037 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16047 return (! does_int64_work());
16050 if ac_fn_c_try_run "$LINENO"; then :
16051 pgac_cv_type_long_long_int_64=yes
16053 pgac_cv_type_long_long_int_64=no
16055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16056 conftest.$ac_objext conftest.beam conftest.$ac_ext
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
16061 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
16063 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
16064 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
16066 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
16070 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
16071 pg_int64_type="long long int"
16073 as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5
16078 cat >>confdefs.h <<_ACEOF
16079 #define PG_INT64_TYPE $pg_int64_type
16083 # If we found "long int" is 64 bits, assume snprintf handles it. If
16084 # we found we need to use "long long int", better check. We cope with
16085 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
16086 # work, fall back to our own snprintf emulation (which we know uses %lld).
16088 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
16089 if test $pgac_need_repl_snprintf = no; then
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf length modifier for long long int" >&5
16091 $as_echo_n "checking snprintf length modifier for long long int... " >&6; }
16092 if ${pgac_cv_snprintf_long_long_int_modifier+:} false; then :
16093 $as_echo_n "(cached) " >&6
16095 for pgac_modifier in 'll' 'q' 'I64'; do
16096 if test "$cross_compiling" = yes; then :
16097 pgac_cv_snprintf_long_long_int_modifier=cross; break
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h. */
16102 #include <string.h>
16103 typedef long long int ac_int64;
16104 #define INT64_FORMAT "%${pgac_modifier}d"
16106 ac_int64 a = 20000001;
16107 ac_int64 b = 40000005;
16109 int does_int64_snprintf_work()
16114 if (sizeof(ac_int64) != 8)
16115 return 0; /* doesn't look like the right size */
16118 snprintf(buf, 100, INT64_FORMAT, c);
16119 if (strcmp(buf, "800000140000005") != 0)
16120 return 0; /* either multiply or snprintf is busted */
16126 return (! does_int64_snprintf_work());
16129 if ac_fn_c_try_run "$LINENO"; then :
16130 pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break
16132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16133 conftest.$ac_objext conftest.beam conftest.$ac_ext
16139 LONG_LONG_INT_MODIFIER=''
16141 case $pgac_cv_snprintf_long_long_int_modifier in
16142 cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5
16143 $as_echo "cannot test (not on host machine)" >&6; };;
16144 ?*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_modifier" >&5
16145 $as_echo "$pgac_cv_snprintf_long_long_int_modifier" >&6; }
16146 LONG_LONG_INT_MODIFIER=$pgac_cv_snprintf_long_long_int_modifier;;
16147 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16148 $as_echo "none" >&6; };;
16150 if test "$LONG_LONG_INT_MODIFIER" = ""; then
16151 # Force usage of our own snprintf, since system snprintf is broken
16152 pgac_need_repl_snprintf=yes
16153 LONG_LONG_INT_MODIFIER='ll'
16156 # Here if we previously decided we needed to use our own snprintf
16157 LONG_LONG_INT_MODIFIER='ll'
16160 # Here if we are not using 'long long int' at all
16161 LONG_LONG_INT_MODIFIER='l'
16164 INT64_MODIFIER="\"$LONG_LONG_INT_MODIFIER\""
16167 cat >>confdefs.h <<_ACEOF
16168 #define INT64_MODIFIER $INT64_MODIFIER
16172 # Also force use of our snprintf if the system's doesn't support the %z flag.
16173 if test "$pgac_need_repl_snprintf" = no; then
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports the %z modifier" >&5
16175 $as_echo_n "checking whether snprintf supports the %z modifier... " >&6; }
16176 if ${pgac_cv_snprintf_size_t_support+:} false; then :
16177 $as_echo_n "(cached) " >&6
16179 if test "$cross_compiling" = yes; then :
16180 pgac_cv_snprintf_size_t_support=cross
16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h. */
16185 #include <string.h>
16193 * Print the largest unsigned number fitting in a size_t using both %zu
16194 * and the previously-determined format for 64-bit integers. Note that
16195 * we don't run this code unless we know snprintf handles 64-bit ints.
16197 bufz[0] = '\0'; /* in case snprintf fails to emit anything */
16198 snprintf(bufz, sizeof(bufz), "%zu", ~((size_t) 0));
16199 snprintf(buf64, sizeof(buf64), "%" INT64_MODIFIER "u",
16200 (unsigned PG_INT64_TYPE) ~((size_t) 0));
16201 if (strcmp(bufz, buf64) != 0)
16206 if ac_fn_c_try_run "$LINENO"; then :
16207 pgac_cv_snprintf_size_t_support=yes
16209 pgac_cv_snprintf_size_t_support=no
16211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16212 conftest.$ac_objext conftest.beam conftest.$ac_ext
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_size_t_support" >&5
16218 $as_echo "$pgac_cv_snprintf_size_t_support" >&6; }
16220 if test "$pgac_cv_snprintf_size_t_support" != yes; then
16221 pgac_need_repl_snprintf=yes
16225 # Now we have checked all the reasons to replace snprintf
16226 if test $pgac_need_repl_snprintf = yes; then
16228 $as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h
16230 case " $LIBOBJS " in
16231 *" snprintf.$ac_objext "* ) ;;
16232 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16238 # has to be down here, rather than with the other builtins, because
16239 # the test uses PG_INT64_TYPE.
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
16241 $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
16242 if ${pgac_cv__builtin_op_overflow+:} false; then :
16243 $as_echo_n "(cached) " >&6
16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h. */
16248 PG_INT64_TYPE a = 1;
16249 PG_INT64_TYPE b = 1;
16250 PG_INT64_TYPE result;
16256 oflo = __builtin_mul_overflow(a, b, &result);
16261 if ac_fn_c_try_link "$LINENO"; then :
16262 pgac_cv__builtin_op_overflow=yes
16264 pgac_cv__builtin_op_overflow=no
16266 rm -f core conftest.err conftest.$ac_objext \
16267 conftest$ac_exeext conftest.$ac_ext
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
16270 $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
16271 if test x"$pgac_cv__builtin_op_overflow" = xyes ; then
16273 $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
16277 # Check size of void *, size_t (enables tweaks for > 32bit address space)
16278 # The cast to long int works around a bug in the HP C Compiler
16279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16281 # This bug is HP SR number 8606223364.
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16283 $as_echo_n "checking size of void *... " >&6; }
16284 if ${ac_cv_sizeof_void_p+:} false; then :
16285 $as_echo_n "(cached) " >&6
16287 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16290 if test "$ac_cv_type_void_p" = yes; then
16291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16293 as_fn_error 77 "cannot compute sizeof (void *)
16294 See \`config.log' for more details" "$LINENO" 5; }
16296 ac_cv_sizeof_void_p=0
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16302 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16306 cat >>confdefs.h <<_ACEOF
16307 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16311 # The cast to long int works around a bug in the HP C Compiler
16312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16314 # This bug is HP SR number 8606223364.
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16316 $as_echo_n "checking size of size_t... " >&6; }
16317 if ${ac_cv_sizeof_size_t+:} false; then :
16318 $as_echo_n "(cached) " >&6
16320 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
16323 if test "$ac_cv_type_size_t" = yes; then
16324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16326 as_fn_error 77 "cannot compute sizeof (size_t)
16327 See \`config.log' for more details" "$LINENO" 5; }
16329 ac_cv_sizeof_size_t=0
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16335 $as_echo "$ac_cv_sizeof_size_t" >&6; }
16339 cat >>confdefs.h <<_ACEOF
16340 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16344 # The cast to long int works around a bug in the HP C Compiler
16345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16347 # This bug is HP SR number 8606223364.
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16349 $as_echo_n "checking size of long... " >&6; }
16350 if ${ac_cv_sizeof_long+:} false; then :
16351 $as_echo_n "(cached) " >&6
16353 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16356 if test "$ac_cv_type_long" = yes; then
16357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16359 as_fn_error 77 "cannot compute sizeof (long)
16360 See \`config.log' for more details" "$LINENO" 5; }
16362 ac_cv_sizeof_long=0
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16368 $as_echo "$ac_cv_sizeof_long" >&6; }
16372 cat >>confdefs.h <<_ACEOF
16373 #define SIZEOF_LONG $ac_cv_sizeof_long
16378 # Decide whether float4 is passed by value: user-selectable, enabled by default
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
16380 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
16383 # Check whether --enable-float4-byval was given.
16384 if test "${enable_float4_byval+set}" = set; then :
16385 enableval=$enable_float4_byval;
16389 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
16391 float4passbyval=true
16394 float4passbyval=false
16397 as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
16402 enable_float4_byval=yes
16404 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
16406 float4passbyval=true
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
16411 $as_echo "$enable_float4_byval" >&6; }
16413 cat >>confdefs.h <<_ACEOF
16414 #define FLOAT4PASSBYVAL $float4passbyval
16418 # Decide whether float8 is passed by value.
16419 # Note: this setting also controls int8 and related types such as timestamp.
16420 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
16421 # If not, trying to select it is an error.
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
16423 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
16424 if test $ac_cv_sizeof_void_p -ge 8 ; then
16427 # Check whether --enable-float8-byval was given.
16428 if test "${enable_float8_byval+set}" = set; then :
16429 enableval=$enable_float8_byval;
16438 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
16443 enable_float8_byval=yes
16451 # Check whether --enable-float8-byval was given.
16452 if test "${enable_float8_byval+set}" = set; then :
16453 enableval=$enable_float8_byval;
16462 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
16467 enable_float8_byval=no
16472 if test "$enable_float8_byval" = yes ; then
16473 as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
16476 if test "$enable_float8_byval" = yes ; then
16478 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
16480 float8passbyval=true
16482 float8passbyval=false
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
16485 $as_echo "$enable_float8_byval" >&6; }
16487 cat >>confdefs.h <<_ACEOF
16488 #define FLOAT8PASSBYVAL $float8passbyval
16492 # Determine memory alignment requirements for the basic C data types.
16494 # The cast to long int works around a bug in the HP C Compiler,
16495 # see AC_CHECK_SIZEOF for more information.
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
16497 $as_echo_n "checking alignment of short... " >&6; }
16498 if ${ac_cv_alignof_short+:} false; then :
16499 $as_echo_n "(cached) " >&6
16501 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
16503 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16505 typedef struct { char x; short y; } ac__type_alignof_;"; then :
16508 if test "$ac_cv_type_short" = yes; then
16509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16511 as_fn_error 77 "cannot compute alignment of short
16512 See \`config.log' for more details" "$LINENO" 5; }
16514 ac_cv_alignof_short=0
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
16520 $as_echo "$ac_cv_alignof_short" >&6; }
16524 cat >>confdefs.h <<_ACEOF
16525 #define ALIGNOF_SHORT $ac_cv_alignof_short
16529 # The cast to long int works around a bug in the HP C Compiler,
16530 # see AC_CHECK_SIZEOF for more information.
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
16532 $as_echo_n "checking alignment of int... " >&6; }
16533 if ${ac_cv_alignof_int+:} false; then :
16534 $as_echo_n "(cached) " >&6
16536 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
16538 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16540 typedef struct { char x; int y; } ac__type_alignof_;"; then :
16543 if test "$ac_cv_type_int" = yes; then
16544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16546 as_fn_error 77 "cannot compute alignment of int
16547 See \`config.log' for more details" "$LINENO" 5; }
16549 ac_cv_alignof_int=0
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
16555 $as_echo "$ac_cv_alignof_int" >&6; }
16559 cat >>confdefs.h <<_ACEOF
16560 #define ALIGNOF_INT $ac_cv_alignof_int
16564 # The cast to long int works around a bug in the HP C Compiler,
16565 # see AC_CHECK_SIZEOF for more information.
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
16567 $as_echo_n "checking alignment of long... " >&6; }
16568 if ${ac_cv_alignof_long+:} false; then :
16569 $as_echo_n "(cached) " >&6
16571 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
16573 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16575 typedef struct { char x; long y; } ac__type_alignof_;"; then :
16578 if test "$ac_cv_type_long" = yes; then
16579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16581 as_fn_error 77 "cannot compute alignment of long
16582 See \`config.log' for more details" "$LINENO" 5; }
16584 ac_cv_alignof_long=0
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
16590 $as_echo "$ac_cv_alignof_long" >&6; }
16594 cat >>confdefs.h <<_ACEOF
16595 #define ALIGNOF_LONG $ac_cv_alignof_long
16599 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
16600 # The cast to long int works around a bug in the HP C Compiler,
16601 # see AC_CHECK_SIZEOF for more information.
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
16603 $as_echo_n "checking alignment of long long int... " >&6; }
16604 if ${ac_cv_alignof_long_long_int+:} false; then :
16605 $as_echo_n "(cached) " >&6
16607 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
16609 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16611 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
16614 if test "$ac_cv_type_long_long_int" = yes; then
16615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16617 as_fn_error 77 "cannot compute alignment of long long int
16618 See \`config.log' for more details" "$LINENO" 5; }
16620 ac_cv_alignof_long_long_int=0
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
16626 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
16630 cat >>confdefs.h <<_ACEOF
16631 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
16636 # The cast to long int works around a bug in the HP C Compiler,
16637 # see AC_CHECK_SIZEOF for more information.
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
16639 $as_echo_n "checking alignment of double... " >&6; }
16640 if ${ac_cv_alignof_double+:} false; then :
16641 $as_echo_n "(cached) " >&6
16643 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
16645 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16647 typedef struct { char x; double y; } ac__type_alignof_;"; then :
16650 if test "$ac_cv_type_double" = yes; then
16651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16653 as_fn_error 77 "cannot compute alignment of double
16654 See \`config.log' for more details" "$LINENO" 5; }
16656 ac_cv_alignof_double=0
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
16662 $as_echo "$ac_cv_alignof_double" >&6; }
16666 cat >>confdefs.h <<_ACEOF
16667 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
16672 # Compute maximum alignment of any basic type.
16673 # We assume long's alignment is at least as strong as char, short, or int;
16674 # but we must check long long (if it is being used for int64) and double.
16675 # Note that we intentionally do not consider any types wider than 64 bits,
16676 # as allowing MAXIMUM_ALIGNOF to exceed 8 would be too much of a penalty
16677 # for disk and memory space.
16679 MAX_ALIGNOF=$ac_cv_alignof_long
16680 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
16681 MAX_ALIGNOF=$ac_cv_alignof_double
16683 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
16684 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
16687 cat >>confdefs.h <<_ACEOF
16688 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16693 # Some platforms predefine the types int8, int16, etc. Only check
16694 # a (hopefully) representative subset.
16695 ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
16697 if test "x$ac_cv_type_int8" = xyes; then :
16699 cat >>confdefs.h <<_ACEOF
16700 #define HAVE_INT8 1
16705 ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
16707 if test "x$ac_cv_type_uint8" = xyes; then :
16709 cat >>confdefs.h <<_ACEOF
16710 #define HAVE_UINT8 1
16715 ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
16717 if test "x$ac_cv_type_int64" = xyes; then :
16719 cat >>confdefs.h <<_ACEOF
16720 #define HAVE_INT64 1
16725 ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
16727 if test "x$ac_cv_type_uint64" = xyes; then :
16729 cat >>confdefs.h <<_ACEOF
16730 #define HAVE_UINT64 1
16737 # Some compilers offer a 128-bit integer scalar type.
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
16739 $as_echo_n "checking for __int128... " >&6; }
16740 if ${pgac_cv__128bit_int+:} false; then :
16741 $as_echo_n "(cached) " >&6
16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16744 /* end confdefs.h. */
16747 * We don't actually run this test, just link it to verify that any support
16748 * functions needed for __int128 are present.
16750 * These are globals to discourage the compiler from folding all the
16751 * arithmetic tests down to compile-time constants. We do not have
16752 * convenient support for 128bit literals at this point...
16754 __int128 a = 48828125;
16755 __int128 b = 97656250;
16762 a = (a << 12) + 1; /* 200000000001 */
16763 b = (b << 12) + 5; /* 400000000005 */
16764 /* try the most relevant arithmetic ops */
16767 /* must use the results, else compiler may optimize arithmetic away */
16775 if ac_fn_c_try_link "$LINENO"; then :
16776 pgac_cv__128bit_int=yes
16778 pgac_cv__128bit_int=no
16780 rm -f core conftest.err conftest.$ac_objext \
16781 conftest$ac_exeext conftest.$ac_ext
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
16784 $as_echo "$pgac_cv__128bit_int" >&6; }
16785 if test x"$pgac_cv__128bit_int" = xyes ; then
16786 # Use of non-default alignment with __int128 tickles bugs in some compilers.
16787 # If not cross-compiling, we can test for bugs and disable use of __int128
16788 # with buggy compilers. If cross-compiling, hope for the best.
16789 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5
16791 $as_echo_n "checking for __int128 alignment bug... " >&6; }
16792 if ${pgac_cv__128bit_int_bug+:} false; then :
16793 $as_echo_n "(cached) " >&6
16795 if test "$cross_compiling" = yes; then :
16796 pgac_cv__128bit_int_bug="assuming ok"
16798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h. */
16801 /* This must match the corresponding code in c.h: */
16802 #if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__IBMC__)
16803 #define pg_attribute_aligned(a) __attribute__((aligned(a)))
16805 typedef __int128 int128a
16806 #if defined(pg_attribute_aligned)
16807 pg_attribute_aligned(8)
16811 void pass_by_val(void *buffer, int128a par) { holder = par; }
16817 long int i64 = 97656225L << 12;
16819 pass_by_val(main, (int128a) i64);
16828 if ac_fn_c_try_run "$LINENO"; then :
16829 pgac_cv__128bit_int_bug=ok
16831 pgac_cv__128bit_int_bug=broken
16833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16834 conftest.$ac_objext conftest.beam conftest.$ac_ext
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5
16839 $as_echo "$pgac_cv__128bit_int_bug" >&6; }
16840 if test x"$pgac_cv__128bit_int_bug" != xbroken ; then
16842 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
16844 # The cast to long int works around a bug in the HP C Compiler,
16845 # see AC_CHECK_SIZEOF for more information.
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
16847 $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
16848 if ${ac_cv_alignof_PG_INT128_TYPE+:} false; then :
16849 $as_echo_n "(cached) " >&6
16851 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
16853 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16855 typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
16858 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
16859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16861 as_fn_error 77 "cannot compute alignment of PG_INT128_TYPE
16862 See \`config.log' for more details" "$LINENO" 5; }
16864 ac_cv_alignof_PG_INT128_TYPE=0
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
16870 $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
16874 cat >>confdefs.h <<_ACEOF
16875 #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
16882 # Check for various atomic operations now that we have checked how to declare
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
16885 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
16886 if ${pgac_cv_gcc_sync_char_tas+:} false; then :
16887 $as_echo_n "(cached) " >&6
16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890 /* end confdefs.h. */
16896 __sync_lock_test_and_set(&lock, 1);
16897 __sync_lock_release(&lock);
16902 if ac_fn_c_try_link "$LINENO"; then :
16903 pgac_cv_gcc_sync_char_tas="yes"
16905 pgac_cv_gcc_sync_char_tas="no"
16907 rm -f core conftest.err conftest.$ac_objext \
16908 conftest$ac_exeext conftest.$ac_ext
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
16911 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
16912 if test x"$pgac_cv_gcc_sync_char_tas" = x"yes"; then
16914 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
16918 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
16919 if ${pgac_cv_gcc_sync_int32_tas+:} false; then :
16920 $as_echo_n "(cached) " >&6
16922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923 /* end confdefs.h. */
16929 __sync_lock_test_and_set(&lock, 1);
16930 __sync_lock_release(&lock);
16935 if ac_fn_c_try_link "$LINENO"; then :
16936 pgac_cv_gcc_sync_int32_tas="yes"
16938 pgac_cv_gcc_sync_int32_tas="no"
16940 rm -f core conftest.err conftest.$ac_objext \
16941 conftest$ac_exeext conftest.$ac_ext
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
16944 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
16945 if test x"$pgac_cv_gcc_sync_int32_tas" = x"yes"; then
16947 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
16951 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
16952 if ${pgac_cv_gcc_sync_int32_cas+:} false; then :
16953 $as_echo_n "(cached) " >&6
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16962 __sync_val_compare_and_swap(&val, 0, 37);
16967 if ac_fn_c_try_link "$LINENO"; then :
16968 pgac_cv_gcc_sync_int32_cas="yes"
16970 pgac_cv_gcc_sync_int32_cas="no"
16972 rm -f core conftest.err conftest.$ac_objext \
16973 conftest$ac_exeext conftest.$ac_ext
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
16976 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
16977 if test x"$pgac_cv_gcc_sync_int32_cas" = x"yes"; then
16979 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
16983 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
16984 if ${pgac_cv_gcc_sync_int64_cas+:} false; then :
16985 $as_echo_n "(cached) " >&6
16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988 /* end confdefs.h. */
16993 PG_INT64_TYPE lock = 0;
16994 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
16999 if ac_fn_c_try_link "$LINENO"; then :
17000 pgac_cv_gcc_sync_int64_cas="yes"
17002 pgac_cv_gcc_sync_int64_cas="no"
17004 rm -f core conftest.err conftest.$ac_objext \
17005 conftest$ac_exeext conftest.$ac_ext
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
17008 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
17009 if test x"$pgac_cv_gcc_sync_int64_cas" = x"yes"; then
17011 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
17015 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
17016 if ${pgac_cv_gcc_atomic_int32_cas+:} false; then :
17017 $as_echo_n "(cached) " >&6
17019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h. */
17027 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17032 if ac_fn_c_try_link "$LINENO"; then :
17033 pgac_cv_gcc_atomic_int32_cas="yes"
17035 pgac_cv_gcc_atomic_int32_cas="no"
17037 rm -f core conftest.err conftest.$ac_objext \
17038 conftest$ac_exeext conftest.$ac_ext
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
17041 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
17042 if test x"$pgac_cv_gcc_atomic_int32_cas" = x"yes"; then
17044 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
17048 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
17049 if ${pgac_cv_gcc_atomic_int64_cas+:} false; then :
17050 $as_echo_n "(cached) " >&6
17052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053 /* end confdefs.h. */
17058 PG_INT64_TYPE val = 0;
17059 PG_INT64_TYPE expect = 0;
17060 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17065 if ac_fn_c_try_link "$LINENO"; then :
17066 pgac_cv_gcc_atomic_int64_cas="yes"
17068 pgac_cv_gcc_atomic_int64_cas="no"
17070 rm -f core conftest.err conftest.$ac_objext \
17071 conftest$ac_exeext conftest.$ac_ext
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
17074 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
17075 if test x"$pgac_cv_gcc_atomic_int64_cas" = x"yes"; then
17077 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
17082 # Check for x86 cpuid instruction
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
17084 $as_echo_n "checking for __get_cpuid... " >&6; }
17085 if ${pgac_cv__get_cpuid+:} false; then :
17086 $as_echo_n "(cached) " >&6
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17094 unsigned int exx[4] = {0, 0, 0, 0};
17095 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
17101 if ac_fn_c_try_link "$LINENO"; then :
17102 pgac_cv__get_cpuid="yes"
17104 pgac_cv__get_cpuid="no"
17106 rm -f core conftest.err conftest.$ac_objext \
17107 conftest$ac_exeext conftest.$ac_ext
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
17110 $as_echo "$pgac_cv__get_cpuid" >&6; }
17111 if test x"$pgac_cv__get_cpuid" = x"yes"; then
17113 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
17118 $as_echo_n "checking for __cpuid... " >&6; }
17119 if ${pgac_cv__cpuid+:} false; then :
17120 $as_echo_n "(cached) " >&6
17122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h. */
17124 #include <intrin.h>
17128 unsigned int exx[4] = {0, 0, 0, 0};
17129 __get_cpuid(exx[0], 1);
17135 if ac_fn_c_try_link "$LINENO"; then :
17136 pgac_cv__cpuid="yes"
17138 pgac_cv__cpuid="no"
17140 rm -f core conftest.err conftest.$ac_objext \
17141 conftest$ac_exeext conftest.$ac_ext
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
17144 $as_echo "$pgac_cv__cpuid" >&6; }
17145 if test x"$pgac_cv__cpuid" = x"yes"; then
17147 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
17151 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
17153 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
17154 # with the default compiler flags. If not, check if adding the -msse4.2
17155 # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
17157 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
17158 if ${pgac_cv_sse42_crc32_intrinsics_+:} false; then :
17159 $as_echo_n "(cached) " >&6
17161 pgac_save_CFLAGS=$CFLAGS
17162 CFLAGS="$pgac_save_CFLAGS "
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17165 #include <nmmintrin.h>
17169 unsigned int crc = 0;
17170 crc = _mm_crc32_u8(crc, 0);
17171 crc = _mm_crc32_u32(crc, 0);
17172 /* return computed value, to prevent the above being optimized away */
17178 if ac_fn_c_try_link "$LINENO"; then :
17179 pgac_cv_sse42_crc32_intrinsics_=yes
17181 pgac_cv_sse42_crc32_intrinsics_=no
17183 rm -f core conftest.err conftest.$ac_objext \
17184 conftest$ac_exeext conftest.$ac_ext
17185 CFLAGS="$pgac_save_CFLAGS"
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
17188 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
17189 if test x"$pgac_cv_sse42_crc32_intrinsics_" = x"yes"; then
17191 pgac_sse42_crc32_intrinsics=yes
17194 if test x"$pgac_sse42_crc32_intrinsics" != x"yes"; then
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
17196 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
17197 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false; then :
17198 $as_echo_n "(cached) " >&6
17200 pgac_save_CFLAGS=$CFLAGS
17201 CFLAGS="$pgac_save_CFLAGS -msse4.2"
17202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203 /* end confdefs.h. */
17204 #include <nmmintrin.h>
17208 unsigned int crc = 0;
17209 crc = _mm_crc32_u8(crc, 0);
17210 crc = _mm_crc32_u32(crc, 0);
17211 /* return computed value, to prevent the above being optimized away */
17217 if ac_fn_c_try_link "$LINENO"; then :
17218 pgac_cv_sse42_crc32_intrinsics__msse4_2=yes
17220 pgac_cv_sse42_crc32_intrinsics__msse4_2=no
17222 rm -f core conftest.err conftest.$ac_objext \
17223 conftest$ac_exeext conftest.$ac_ext
17224 CFLAGS="$pgac_save_CFLAGS"
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
17227 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
17228 if test x"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x"yes"; then
17229 CFLAGS_SSE42="-msse4.2"
17230 pgac_sse42_crc32_intrinsics=yes
17236 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
17237 # define __SSE4_2__ in that case.
17238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239 /* end confdefs.h. */
17246 #error __SSE4_2__ not defined
17253 if ac_fn_c_try_compile "$LINENO"; then :
17256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17258 # Check for ARMv8 CRC Extension intrinsics to do CRC calculations.
17260 # First check if __crc32c* intrinsics can be used with the default compiler
17261 # flags. If not, check if adding -march=armv8-a+crc flag helps.
17262 # CFLAGS_ARMV8_CRC32C is set if the extra flag is required.
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5
17264 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; }
17265 if ${pgac_cv_armv8_crc32c_intrinsics_+:} false; then :
17266 $as_echo_n "(cached) " >&6
17268 pgac_save_CFLAGS=$CFLAGS
17269 CFLAGS="$pgac_save_CFLAGS "
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17272 #include <arm_acle.h>
17276 unsigned int crc = 0;
17277 crc = __crc32cb(crc, 0);
17278 crc = __crc32ch(crc, 0);
17279 crc = __crc32cw(crc, 0);
17280 crc = __crc32cd(crc, 0);
17281 /* return computed value, to prevent the above being optimized away */
17287 if ac_fn_c_try_link "$LINENO"; then :
17288 pgac_cv_armv8_crc32c_intrinsics_=yes
17290 pgac_cv_armv8_crc32c_intrinsics_=no
17292 rm -f core conftest.err conftest.$ac_objext \
17293 conftest$ac_exeext conftest.$ac_ext
17294 CFLAGS="$pgac_save_CFLAGS"
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5
17297 $as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; }
17298 if test x"$pgac_cv_armv8_crc32c_intrinsics_" = x"yes"; then
17299 CFLAGS_ARMV8_CRC32C=""
17300 pgac_armv8_crc32c_intrinsics=yes
17303 if test x"$pgac_armv8_crc32c_intrinsics" != x"yes"; then
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5
17305 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; }
17306 if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false; then :
17307 $as_echo_n "(cached) " >&6
17309 pgac_save_CFLAGS=$CFLAGS
17310 CFLAGS="$pgac_save_CFLAGS -march=armv8-a+crc"
17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312 /* end confdefs.h. */
17313 #include <arm_acle.h>
17317 unsigned int crc = 0;
17318 crc = __crc32cb(crc, 0);
17319 crc = __crc32ch(crc, 0);
17320 crc = __crc32cw(crc, 0);
17321 crc = __crc32cd(crc, 0);
17322 /* return computed value, to prevent the above being optimized away */
17328 if ac_fn_c_try_link "$LINENO"; then :
17329 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc=yes
17331 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc=no
17333 rm -f core conftest.err conftest.$ac_objext \
17334 conftest$ac_exeext conftest.$ac_ext
17335 CFLAGS="$pgac_save_CFLAGS"
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5
17338 $as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; }
17339 if test x"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x"yes"; then
17340 CFLAGS_ARMV8_CRC32C="-march=armv8-a+crc"
17341 pgac_armv8_crc32c_intrinsics=yes
17347 # In order to detect at runtime, if the ARM CRC Extension is available,
17348 # we will do "getauxval(AT_HWCAP) & HWCAP_CRC32". Check if we have
17349 # everything we need for that.
17350 for ac_func in getauxval
17352 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
17353 if test "x$ac_cv_func_getauxval" = xyes; then :
17354 cat >>confdefs.h <<_ACEOF
17355 #define HAVE_GETAUXVAL 1
17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362 /* end confdefs.h. */
17364 #include <sys/auxv.h>
17365 #include <asm/hwcap.h>
17372 #error AT_HWCAP not defined
17374 #ifndef HWCAP_CRC32
17375 #error HWCAP_CRC32 not defined
17382 if ac_fn_c_try_compile "$LINENO"; then :
17385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17387 # Select CRC-32C implementation.
17389 # If we are targeting a processor that has Intel SSE 4.2 instructions, we can
17390 # use the special CRC instructions for calculating CRC-32C. If we're not
17391 # targeting such a processor, but we can nevertheless produce code that uses
17392 # the SSE intrinsics, perhaps with some extra CFLAGS, compile both
17393 # implementations and select which one to use at runtime, depending on whether
17394 # SSE 4.2 is supported by the processor we're running on.
17396 # Similarly, if we are targeting an ARM processor that has the CRC
17397 # instructions that are part of the ARMv8 CRC Extension, use them. And if
17398 # we're not targeting such a processor, but can nevertheless produce code that
17399 # uses the CRC instructions, compile both, and select at runtime.
17401 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
17402 # in the template or configure command line.
17403 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
17404 # Use Intel SSE 4.2 if available.
17405 if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && test x"$SSE4_2_TARGETED" = x"1" ; then
17408 # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for
17409 # the runtime check.
17410 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
17411 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK=1
17413 # Use ARM CRC Extension if available.
17414 if test x"$pgac_armv8_crc32c_intrinsics" = x"yes" && test x"$CFLAGS_ARMV8_CRC32C" = x""; then
17417 # ARM CRC Extension, with runtime check? The getauxval() function and
17418 # HWCAP_CRC32 are needed for the runtime check.
17419 if test x"$pgac_armv8_crc32c_intrinsics" = x"yes" && test x"$ac_cv_func_getauxval" = x"yes" && test x"$HAVE_HWCAP_CRC32" = x"1"; then
17420 USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK=1
17422 # fall back to slicing-by-8 algorithm, which doesn't require any
17423 # special CPU support.
17424 USE_SLICING_BY_8_CRC32C=1
17431 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
17433 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
17434 if test x"$USE_SSE42_CRC32C" = x"1"; then
17436 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
17438 PG_CRC32C_OBJS="pg_crc32c_sse42.o"
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
17440 $as_echo "SSE 4.2" >&6; }
17442 if test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then
17444 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
17446 PG_CRC32C_OBJS="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o"
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
17448 $as_echo "SSE 4.2 with runtime check" >&6; }
17450 if test x"$USE_ARMV8_CRC32C" = x"1"; then
17452 $as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h
17454 PG_CRC32C_OBJS="pg_crc32c_armv8.o"
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5
17456 $as_echo "ARMv8 CRC instructions" >&6; }
17458 if test x"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then
17460 $as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
17462 PG_CRC32C_OBJS="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o"
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5
17464 $as_echo "ARMv8 CRC instructions with runtime check" >&6; }
17467 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
17469 PG_CRC32C_OBJS="pg_crc32c_sb8.o"
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
17471 $as_echo "slicing-by-8" >&6; }
17479 # Select semaphore implementation type.
17480 if test "$PORTNAME" != "win32"; then
17481 if test x"$PREFERRED_SEMAPHORES" = x"NAMED_POSIX" ; then
17482 # Need sem_open for this
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
17484 $as_echo_n "checking for library containing sem_open... " >&6; }
17485 if ${ac_cv_search_sem_open+:} false; then :
17486 $as_echo_n "(cached) " >&6
17488 ac_func_search_save_LIBS=$LIBS
17489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490 /* end confdefs.h. */
17492 /* Override any GCC internal prototype to avoid an error.
17493 Use char because int might match the return type of a GCC
17494 builtin and then its argument prototype would still apply. */
17502 return sem_open ();
17507 for ac_lib in '' rt pthread; do
17508 if test -z "$ac_lib"; then
17509 ac_res="none required"
17512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17514 if ac_fn_c_try_link "$LINENO"; then :
17515 ac_cv_search_sem_open=$ac_res
17517 rm -f core conftest.err conftest.$ac_objext \
17519 if ${ac_cv_search_sem_open+:} false; then :
17523 if ${ac_cv_search_sem_open+:} false; then :
17526 ac_cv_search_sem_open=no
17528 rm conftest.$ac_ext
17529 LIBS=$ac_func_search_save_LIBS
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
17532 $as_echo "$ac_cv_search_sem_open" >&6; }
17533 ac_res=$ac_cv_search_sem_open
17534 if test "$ac_res" != no; then :
17535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17536 USE_NAMED_POSIX_SEMAPHORES=1
17540 if test x"$PREFERRED_SEMAPHORES" = x"UNNAMED_POSIX" ; then
17541 # Need sem_init for this
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
17543 $as_echo_n "checking for library containing sem_init... " >&6; }
17544 if ${ac_cv_search_sem_init+:} false; then :
17545 $as_echo_n "(cached) " >&6
17547 ac_func_search_save_LIBS=$LIBS
17548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549 /* end confdefs.h. */
17551 /* Override any GCC internal prototype to avoid an error.
17552 Use char because int might match the return type of a GCC
17553 builtin and then its argument prototype would still apply. */
17561 return sem_init ();
17566 for ac_lib in '' rt pthread; do
17567 if test -z "$ac_lib"; then
17568 ac_res="none required"
17571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17573 if ac_fn_c_try_link "$LINENO"; then :
17574 ac_cv_search_sem_init=$ac_res
17576 rm -f core conftest.err conftest.$ac_objext \
17578 if ${ac_cv_search_sem_init+:} false; then :
17582 if ${ac_cv_search_sem_init+:} false; then :
17585 ac_cv_search_sem_init=no
17587 rm conftest.$ac_ext
17588 LIBS=$ac_func_search_save_LIBS
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
17591 $as_echo "$ac_cv_search_sem_init" >&6; }
17592 ac_res=$ac_cv_search_sem_init
17593 if test "$ac_res" != no; then :
17594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17595 USE_UNNAMED_POSIX_SEMAPHORES=1
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
17600 $as_echo_n "checking which semaphore API to use... " >&6; }
17601 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
17603 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
17605 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17606 sematype="named POSIX"
17608 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
17610 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
17612 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17613 sematype="unnamed POSIX"
17616 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
17618 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
17619 sematype="System V"
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
17623 $as_echo "$sematype" >&6; }
17626 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
17628 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
17632 # Select shared-memory implementation type.
17633 if test "$PORTNAME" != "win32"; then
17635 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
17637 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
17640 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
17642 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
17645 # Select random number source
17647 # You can override this logic by setting the appropriate USE_*RANDOM flag to 1
17648 # in the template or configure command line.
17650 # If not selected manually, try to select a source automatically.
17651 if test "$enable_strong_random" = "yes" && test x"$USE_OPENSSL_RANDOM" = x"" && test x"$USE_WIN32_RANDOM" = x"" && test x"$USE_DEV_URANDOM" = x"" ; then
17652 if test x"$with_openssl" = x"yes" ; then
17653 USE_OPENSSL_RANDOM=1
17654 elif test "$PORTNAME" = "win32" ; then
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
17658 $as_echo_n "checking for /dev/urandom... " >&6; }
17659 if ${ac_cv_file__dev_urandom+:} false; then :
17660 $as_echo_n "(cached) " >&6
17662 test "$cross_compiling" = yes &&
17663 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17664 if test -r "/dev/urandom"; then
17665 ac_cv_file__dev_urandom=yes
17667 ac_cv_file__dev_urandom=no
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
17671 $as_echo "$ac_cv_file__dev_urandom" >&6; }
17672 if test "x$ac_cv_file__dev_urandom" = xyes; then :
17677 if test x"$ac_cv_file__dev_urandom" = x"yes" ; then
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
17684 $as_echo_n "checking which random number source to use... " >&6; }
17685 if test "$enable_strong_random" = yes ; then
17686 if test x"$USE_OPENSSL_RANDOM" = x"1" ; then
17688 $as_echo "#define USE_OPENSSL_RANDOM 1" >>confdefs.h
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
17691 $as_echo "OpenSSL" >&6; }
17692 elif test x"$USE_WIN32_RANDOM" = x"1" ; then
17694 $as_echo "#define USE_WIN32_RANDOM 1" >>confdefs.h
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
17697 $as_echo "Windows native" >&6; }
17698 elif test x"$USE_DEV_URANDOM" = x"1" ; then
17700 $as_echo "#define USE_DEV_URANDOM 1" >>confdefs.h
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
17703 $as_echo "/dev/urandom" >&6; }
17706 no source of strong random numbers was found
17707 PostgreSQL can use OpenSSL or /dev/urandom as a source of random numbers,
17708 for authentication protocols. You can use --disable-strong-random to use a
17709 built-in pseudo random number generator, but that may be insecure." "$LINENO" 5
17712 $as_echo "#define HAVE_STRONG_RANDOM 1" >>confdefs.h
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: weak builtin PRNG" >&5
17716 $as_echo "weak builtin PRNG" >&6; }
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17718 *** Not using a strong random number source may be insecure." >&5
17719 $as_echo "$as_me: WARNING:
17720 *** Not using a strong random number source may be insecure." >&2;}
17723 # If not set in template file, set bytes to use libc memset()
17724 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
17725 MEMSET_LOOP_LIMIT=1024
17728 cat >>confdefs.h <<_ACEOF
17729 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
17734 if test "$enable_nls" = yes ; then
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
17737 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
17738 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
17739 $as_echo_n "(cached) " >&6
17741 ac_func_search_save_LIBS=$LIBS
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h. */
17745 /* Override any GCC internal prototype to avoid an error.
17746 Use char because int might match the return type of a GCC
17747 builtin and then its argument prototype would still apply. */
17751 char bind_textdomain_codeset ();
17755 return bind_textdomain_codeset ();
17760 for ac_lib in '' intl; do
17761 if test -z "$ac_lib"; then
17762 ac_res="none required"
17765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17767 if ac_fn_c_try_link "$LINENO"; then :
17768 ac_cv_search_bind_textdomain_codeset=$ac_res
17770 rm -f core conftest.err conftest.$ac_objext \
17772 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
17776 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
17779 ac_cv_search_bind_textdomain_codeset=no
17781 rm conftest.$ac_ext
17782 LIBS=$ac_func_search_save_LIBS
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
17785 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
17786 ac_res=$ac_cv_search_bind_textdomain_codeset
17787 if test "$ac_res" != no; then :
17788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17791 as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5
17794 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
17795 if test "x$ac_cv_header_libintl_h" = xyes; then :
17798 as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5
17802 if test -z "$MSGFMT"; then
17803 for ac_prog in msgfmt
17805 # Extract the first word of "$ac_prog", so it can be a program name with args.
17806 set dummy $ac_prog; ac_word=$2
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17808 $as_echo_n "checking for $ac_word... " >&6; }
17809 if ${ac_cv_path_MSGFMT+:} false; then :
17810 $as_echo_n "(cached) " >&6
17814 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17818 for as_dir in $PATH
17821 test -z "$as_dir" && as_dir=.
17822 for ac_exec_ext in '' $ac_executable_extensions; do
17823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17824 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17835 MSGFMT=$ac_cv_path_MSGFMT
17836 if test -n "$MSGFMT"; then
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17838 $as_echo "$MSGFMT" >&6; }
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17841 $as_echo "no" >&6; }
17845 test -n "$MSGFMT" && break
17849 # Report the value of MSGFMT in configure's output in all cases.
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
17851 $as_echo_n "checking for MSGFMT... " >&6; }
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17853 $as_echo "$MSGFMT" >&6; }
17856 if test -z "$MSGFMT"; then
17857 as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
17860 $as_echo_n "checking for msgfmt flags... " >&6; }
17861 if ${pgac_cv_msgfmt_flags+:} false; then :
17862 $as_echo_n "(cached) " >&6
17864 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
17865 pgac_cv_msgfmt_flags=-c
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
17869 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
17870 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
17872 if test -z "$MSGMERGE"; then
17873 for ac_prog in msgmerge
17875 # Extract the first word of "$ac_prog", so it can be a program name with args.
17876 set dummy $ac_prog; ac_word=$2
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17878 $as_echo_n "checking for $ac_word... " >&6; }
17879 if ${ac_cv_path_MSGMERGE+:} false; then :
17880 $as_echo_n "(cached) " >&6
17884 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17888 for as_dir in $PATH
17891 test -z "$as_dir" && as_dir=.
17892 for ac_exec_ext in '' $ac_executable_extensions; do
17893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17894 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
17895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17905 MSGMERGE=$ac_cv_path_MSGMERGE
17906 if test -n "$MSGMERGE"; then
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17908 $as_echo "$MSGMERGE" >&6; }
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17911 $as_echo "no" >&6; }
17915 test -n "$MSGMERGE" && break
17919 # Report the value of MSGMERGE in configure's output in all cases.
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
17921 $as_echo_n "checking for MSGMERGE... " >&6; }
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17923 $as_echo "$MSGMERGE" >&6; }
17926 if test -z "$XGETTEXT"; then
17927 for ac_prog in xgettext
17929 # Extract the first word of "$ac_prog", so it can be a program name with args.
17930 set dummy $ac_prog; ac_word=$2
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17932 $as_echo_n "checking for $ac_word... " >&6; }
17933 if ${ac_cv_path_XGETTEXT+:} false; then :
17934 $as_echo_n "(cached) " >&6
17938 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17942 for as_dir in $PATH
17945 test -z "$as_dir" && as_dir=.
17946 for ac_exec_ext in '' $ac_executable_extensions; do
17947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17948 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
17949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17959 XGETTEXT=$ac_cv_path_XGETTEXT
17960 if test -n "$XGETTEXT"; then
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17962 $as_echo "$XGETTEXT" >&6; }
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17965 $as_echo "no" >&6; }
17969 test -n "$XGETTEXT" && break
17973 # Report the value of XGETTEXT in configure's output in all cases.
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
17975 $as_echo_n "checking for XGETTEXT... " >&6; }
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17977 $as_echo "$XGETTEXT" >&6; }
17983 # Check for Tcl configuration script tclConfig.sh
17984 if test "$with_tcl" = yes; then
17985 if test -z "$TCLSH"; then
17986 for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
17988 # Extract the first word of "$ac_prog", so it can be a program name with args.
17989 set dummy $ac_prog; ac_word=$2
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17991 $as_echo_n "checking for $ac_word... " >&6; }
17992 if ${ac_cv_path_TCLSH+:} false; then :
17993 $as_echo_n "(cached) " >&6
17997 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
18000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18001 for as_dir in $PATH
18004 test -z "$as_dir" && as_dir=.
18005 for ac_exec_ext in '' $ac_executable_extensions; do
18006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18007 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
18008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18018 TCLSH=$ac_cv_path_TCLSH
18019 if test -n "$TCLSH"; then
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18021 $as_echo "$TCLSH" >&6; }
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18024 $as_echo "no" >&6; }
18028 test -n "$TCLSH" && break
18032 # Report the value of TCLSH in configure's output in all cases.
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
18034 $as_echo_n "checking for TCLSH... " >&6; }
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18036 $as_echo "$TCLSH" >&6; }
18039 if test x"$TCLSH" = x""; then
18040 as_fn_error $? "Tcl shell not found" "$LINENO" 5
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
18044 $as_echo_n "checking for tclConfig.sh... " >&6; }
18045 # Let user override test
18046 if test -z "$TCL_CONFIG_SH"; then
18047 pgac_test_dirs="$with_tclconfig"
18049 set X $pgac_test_dirs; shift
18050 if test $# -eq 0; then
18051 test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
18052 set X `echo 'puts $auto_path' | $TCLSH`; shift
18056 if test -r "$pgac_dir/tclConfig.sh"; then
18057 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
18063 if test -z "$TCL_CONFIG_SH"; then
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18065 $as_echo "no" >&6; }
18066 as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
18069 $as_echo "$TCL_CONFIG_SH" >&6; }
18075 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
18076 eval TCL_LIBS=\"$TCL_LIBS\"
18077 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
18078 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
18080 if test "$TCL_SHARED_BUILD" != 1; then
18081 as_fn_error $? "cannot build PL/Tcl because Tcl is not a shared library
18082 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
18084 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
18085 ac_save_CPPFLAGS=$CPPFLAGS
18086 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
18087 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
18088 if test "x$ac_cv_header_tcl_h" = xyes; then :
18091 as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5
18095 CPPFLAGS=$ac_save_CPPFLAGS
18098 # check for <perl.h>
18099 if test "$with_perl" = yes; then
18100 ac_save_CPPFLAGS=$CPPFLAGS
18101 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
18102 ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
18104 if test "x$ac_cv_header_perl_h" = xyes; then :
18107 as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5
18111 # While we're at it, check that we can link to libperl.
18112 # On most platforms, if perl.h is there then libperl.so will be too, but at
18113 # this writing Debian packages them separately. There is no known reason to
18114 # waste cycles on separate probes for the Tcl or Python libraries, though.
18115 pgac_save_LIBS=$LIBS
18116 LIBS="$perl_embed_ldflags"
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
18118 $as_echo_n "checking for libperl... " >&6; }
18119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h. */
18122 #include <EXTERN.h>
18133 if ac_fn_c_try_link "$LINENO"; then :
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18135 $as_echo "yes" >&6; }
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18138 $as_echo "no" >&6; }
18139 as_fn_error $? "libperl library is required for Perl" "$LINENO" 5
18141 rm -f core conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
18143 LIBS=$pgac_save_LIBS
18144 CPPFLAGS=$ac_save_CPPFLAGS
18147 # check for <Python.h>
18148 if test "$with_python" = yes; then
18149 ac_save_CPPFLAGS=$CPPFLAGS
18150 CPPFLAGS="$python_includespec $CPPFLAGS"
18151 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
18152 if test "x$ac_cv_header_Python_h" = xyes; then :
18155 as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5
18159 CPPFLAGS=$ac_save_CPPFLAGS
18163 # Check for DocBook and tools
18165 if test -z "$XMLLINT"; then
18166 for ac_prog in xmllint
18168 # Extract the first word of "$ac_prog", so it can be a program name with args.
18169 set dummy $ac_prog; ac_word=$2
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18171 $as_echo_n "checking for $ac_word... " >&6; }
18172 if ${ac_cv_path_XMLLINT+:} false; then :
18173 $as_echo_n "(cached) " >&6
18177 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
18180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18181 for as_dir in $PATH
18184 test -z "$as_dir" && as_dir=.
18185 for ac_exec_ext in '' $ac_executable_extensions; do
18186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18187 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
18188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18198 XMLLINT=$ac_cv_path_XMLLINT
18199 if test -n "$XMLLINT"; then
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18201 $as_echo "$XMLLINT" >&6; }
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18204 $as_echo "no" >&6; }
18208 test -n "$XMLLINT" && break
18212 # Report the value of XMLLINT in configure's output in all cases.
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
18214 $as_echo_n "checking for XMLLINT... " >&6; }
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18216 $as_echo "$XMLLINT" >&6; }
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML V4.2" >&5
18221 $as_echo_n "checking for DocBook XML V4.2... " >&6; }
18222 if ${pgac_cv_check_docbook+:} false; then :
18223 $as_echo_n "(cached) " >&6
18225 cat >conftest.xml <<EOF
18226 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
18228 <title>test</title>
18230 <title>random</title>
18232 <title>testsect</title>
18239 pgac_cv_check_docbook=no
18241 if test -n "$XMLLINT"; then
18242 $XMLLINT --noout --valid conftest.xml 1>&5 2>&1
18243 if test $? -eq 0; then
18244 pgac_cv_check_docbook=yes
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
18250 $as_echo "$pgac_cv_check_docbook" >&6; }
18252 have_docbook=$pgac_cv_check_docbook
18255 if test -z "$DBTOEPUB"; then
18256 for ac_prog in dbtoepub
18258 # Extract the first word of "$ac_prog", so it can be a program name with args.
18259 set dummy $ac_prog; ac_word=$2
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18261 $as_echo_n "checking for $ac_word... " >&6; }
18262 if ${ac_cv_path_DBTOEPUB+:} false; then :
18263 $as_echo_n "(cached) " >&6
18267 ac_cv_path_DBTOEPUB="$DBTOEPUB" # Let the user override the test with a path.
18270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18271 for as_dir in $PATH
18274 test -z "$as_dir" && as_dir=.
18275 for ac_exec_ext in '' $ac_executable_extensions; do
18276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18277 ac_cv_path_DBTOEPUB="$as_dir/$ac_word$ac_exec_ext"
18278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18288 DBTOEPUB=$ac_cv_path_DBTOEPUB
18289 if test -n "$DBTOEPUB"; then
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18291 $as_echo "$DBTOEPUB" >&6; }
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18294 $as_echo "no" >&6; }
18298 test -n "$DBTOEPUB" && break
18302 # Report the value of DBTOEPUB in configure's output in all cases.
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
18304 $as_echo_n "checking for DBTOEPUB... " >&6; }
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18306 $as_echo "$DBTOEPUB" >&6; }
18309 if test -z "$XSLTPROC"; then
18310 for ac_prog in xsltproc
18312 # Extract the first word of "$ac_prog", so it can be a program name with args.
18313 set dummy $ac_prog; ac_word=$2
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18315 $as_echo_n "checking for $ac_word... " >&6; }
18316 if ${ac_cv_path_XSLTPROC+:} false; then :
18317 $as_echo_n "(cached) " >&6
18321 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18325 for as_dir in $PATH
18328 test -z "$as_dir" && as_dir=.
18329 for ac_exec_ext in '' $ac_executable_extensions; do
18330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18331 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18342 XSLTPROC=$ac_cv_path_XSLTPROC
18343 if test -n "$XSLTPROC"; then
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18345 $as_echo "$XSLTPROC" >&6; }
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18348 $as_echo "no" >&6; }
18352 test -n "$XSLTPROC" && break
18356 # Report the value of XSLTPROC in configure's output in all cases.
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
18358 $as_echo_n "checking for XSLTPROC... " >&6; }
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18360 $as_echo "$XSLTPROC" >&6; }
18363 if test -z "$FOP"; then
18366 # Extract the first word of "$ac_prog", so it can be a program name with args.
18367 set dummy $ac_prog; ac_word=$2
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18369 $as_echo_n "checking for $ac_word... " >&6; }
18370 if ${ac_cv_path_FOP+:} false; then :
18371 $as_echo_n "(cached) " >&6
18375 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18379 for as_dir in $PATH
18382 test -z "$as_dir" && as_dir=.
18383 for ac_exec_ext in '' $ac_executable_extensions; do
18384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18385 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18396 FOP=$ac_cv_path_FOP
18397 if test -n "$FOP"; then
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18399 $as_echo "$FOP" >&6; }
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18402 $as_echo "no" >&6; }
18406 test -n "$FOP" && break
18410 # Report the value of FOP in configure's output in all cases.
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
18412 $as_echo_n "checking for FOP... " >&6; }
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18414 $as_echo "$FOP" >&6; }
18419 # Check for test tools
18421 if test "$enable_tap_tests" = yes; then
18422 # Check for necessary modules, unless user has specified the "prove" to use;
18423 # in that case it's her responsibility to have a working configuration.
18424 # (prove might be part of a different Perl installation than perl, eg on
18425 # MSys, so the result of AX_PROG_PERL_MODULES could be irrelevant anyway.)
18426 if test -z "$PROVE"; then
18427 # Test::More and Time::HiRes are supposed to be part of core Perl,
18428 # but some distros omit them in a minimal installation.
18439 # Make sure we have perl
18440 if test -z "$PERL"; then
18441 # Extract the first word of "perl", so it can be a program name with args.
18442 set dummy perl; ac_word=$2
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18444 $as_echo_n "checking for $ac_word... " >&6; }
18445 if ${ac_cv_prog_PERL+:} false; then :
18446 $as_echo_n "(cached) " >&6
18448 if test -n "$PERL"; then
18449 ac_cv_prog_PERL="$PERL" # Let the user override the test.
18451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18452 for as_dir in $PATH
18455 test -z "$as_dir" && as_dir=.
18456 for ac_exec_ext in '' $ac_executable_extensions; do
18457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18458 ac_cv_prog_PERL="perl"
18459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18468 PERL=$ac_cv_prog_PERL
18469 if test -n "$PERL"; then
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
18471 $as_echo "$PERL" >&6; }
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18474 $as_echo "no" >&6; }
18480 if test "x$PERL" != x; then
18481 ax_perl_modules_failed=0
18482 for ax_perl_module in 'IPC::Run' 'Test::More 0.87' 'Time::HiRes' ; do
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
18484 $as_echo_n "checking for perl module $ax_perl_module... " >&6; }
18486 # Would be nice to log result here, but can't rely on autoconf internals
18487 $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1
18488 if test $? -ne 0; then
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18490 $as_echo "no" >&6; };
18491 ax_perl_modules_failed=1
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18494 $as_echo "ok" >&6; };
18498 # Run optional shell commands
18499 if test "$ax_perl_modules_failed" = 0; then
18504 as_fn_error $? "Additional Perl modules are required to run TAP tests" "$LINENO" 5
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
18508 $as_echo "$as_me: WARNING: could not find perl" >&2;}
18511 # Now make sure we know where prove is
18512 if test -z "$PROVE"; then
18513 for ac_prog in prove
18515 # Extract the first word of "$ac_prog", so it can be a program name with args.
18516 set dummy $ac_prog; ac_word=$2
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18518 $as_echo_n "checking for $ac_word... " >&6; }
18519 if ${ac_cv_path_PROVE+:} false; then :
18520 $as_echo_n "(cached) " >&6
18524 ac_cv_path_PROVE="$PROVE" # Let the user override the test with a path.
18527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18528 for as_dir in $PATH
18531 test -z "$as_dir" && as_dir=.
18532 for ac_exec_ext in '' $ac_executable_extensions; do
18533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18534 ac_cv_path_PROVE="$as_dir/$ac_word$ac_exec_ext"
18535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18545 PROVE=$ac_cv_path_PROVE
18546 if test -n "$PROVE"; then
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18548 $as_echo "$PROVE" >&6; }
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18551 $as_echo "no" >&6; }
18555 test -n "$PROVE" && break
18559 # Report the value of PROVE in configure's output in all cases.
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
18561 $as_echo_n "checking for PROVE... " >&6; }
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18563 $as_echo "$PROVE" >&6; }
18566 if test -z "$PROVE"; then
18567 as_fn_error $? "prove not found" "$LINENO" 5
18573 # We have to run the thread test near the end so we have all our symbols
18574 # defined. Cross compiling throws a warning.
18576 if test "$enable_thread_safety" = yes; then
18577 if test "$PORTNAME" != "win32"
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
18580 $as_echo_n "checking thread safety of required library functions... " >&6; }
18584 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
18585 LIBS="$LIBS $PTHREAD_LIBS"
18586 if test "$cross_compiling" = yes; then :
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
18588 $as_echo "maybe" >&6; }
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18590 *** Skipping thread test program because of cross-compile build.
18591 *** Run the program in src/test/thread on the target machine.
18593 $as_echo "$as_me: WARNING:
18594 *** Skipping thread test program because of cross-compile build.
18595 *** Run the program in src/test/thread on the target machine.
18598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18599 /* end confdefs.h. */
18600 #include "$srcdir/src/test/thread/thread_test.c"
18602 if ac_fn_c_try_run "$LINENO"; then :
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18604 $as_echo "yes" >&6; }
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18607 $as_echo "no" >&6; }
18608 as_fn_error $? "thread test program failed
18609 This platform is not thread-safe. Check the file 'config.log' or compile
18610 and run src/test/thread/thread_test for the exact reason.
18611 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
18613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18614 conftest.$ac_objext conftest.beam conftest.$ac_ext
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
18621 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
18625 # If compiler will take -Wl,--as-needed (or various platform-specific
18626 # spellings thereof) then add that to LDFLAGS. This is much easier than
18627 # trying to filter LIBS to the minimum for each executable.
18628 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
18629 # libreadline; therefore we postpone testing it until we know what library
18630 # dependencies readline has. The test code will try to link with $LIBS.
18631 if test "$with_readline" = yes; then
18632 link_test_func=readline
18634 link_test_func=exit
18637 if test "$PORTNAME" = "darwin"; then
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
18639 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
18640 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then :
18641 $as_echo_n "(cached) " >&6
18643 pgac_save_LDFLAGS=$LDFLAGS
18644 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
18645 if test "$cross_compiling" = yes; then :
18646 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18649 /* end confdefs.h. */
18650 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18659 if ac_fn_c_try_run "$LINENO"; then :
18660 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
18662 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
18664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18665 conftest.$ac_objext conftest.beam conftest.$ac_ext
18668 LDFLAGS="$pgac_save_LDFLAGS"
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
18671 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
18672 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
18673 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
18676 elif test "$PORTNAME" = "openbsd"; then
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
18678 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
18679 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then :
18680 $as_echo_n "(cached) " >&6
18682 pgac_save_LDFLAGS=$LDFLAGS
18683 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
18684 if test "$cross_compiling" = yes; then :
18685 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
18687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18689 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18698 if ac_fn_c_try_run "$LINENO"; then :
18699 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
18701 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
18703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18704 conftest.$ac_objext conftest.beam conftest.$ac_ext
18707 LDFLAGS="$pgac_save_LDFLAGS"
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
18710 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
18711 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
18712 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
18717 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
18718 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then :
18719 $as_echo_n "(cached) " >&6
18721 pgac_save_LDFLAGS=$LDFLAGS
18722 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
18723 if test "$cross_compiling" = yes; then :
18724 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
18726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h. */
18728 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18737 if ac_fn_c_try_run "$LINENO"; then :
18738 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
18740 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
18742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18743 conftest.$ac_objext conftest.beam conftest.$ac_ext
18746 LDFLAGS="$pgac_save_LDFLAGS"
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
18749 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
18750 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
18751 LDFLAGS="$LDFLAGS -Wl,--as-needed"
18756 # Create compiler version string
18757 if test x"$GCC" = x"yes" ; then
18758 cc_string=`${CC} --version | sed q`
18759 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
18760 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
18761 cc_string=`${CC} -V 2>&1 | sed q`
18767 cat >>confdefs.h <<_ACEOF
18768 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
18772 # Supply a numeric version string for use by 3rd party add-ons
18773 # awk -F is a regex on some platforms, and not on others, so make "." a tab
18774 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
18776 $AWK '{printf "%d%04d", $1, $2}'`"
18778 cat >>confdefs.h <<_ACEOF
18779 #define PG_VERSION_NUM $PG_VERSION_NUM
18785 # Begin output steps
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
18788 $as_echo "$as_me: using compiler=$cc_string" >&6;}
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
18790 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
18792 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
18794 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
18795 # Currently only used when LLVM is used
18796 if test "$with_llvm" = yes ; then
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5
18798 $as_echo "$as_me: using CXX=$CXX" >&6;}
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5
18800 $as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5
18802 $as_echo "$as_me: using CLANG=$CLANG" >&6;}
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5
18804 $as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;}
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5
18806 $as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;}
18809 # prepare build tree if outside source tree
18810 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
18811 # Note 2: /bin/pwd might be better than shell's built-in at getting
18812 # a symlink-free name.
18813 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
18817 if test "$no_create" != yes; then
18818 $as_echo_n "preparing build tree... " >&6
18819 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
18820 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
18821 || as_fn_error $? "failed" "$LINENO" 5
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18823 $as_echo "done" >&6; }
18829 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
18832 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
18835 if test "$PORTNAME" = "win32"; then
18836 ac_config_commands="$ac_config_commands check_win32_symlinks"
18840 ac_config_headers="$ac_config_headers src/include/pg_config.h"
18843 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
18846 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
18849 cat >confcache <<\_ACEOF
18850 # This file is a shell script that caches the results of configure
18851 # tests run on this system so they can be shared between configure
18852 # scripts and configure runs, see configure's option --config-cache.
18853 # It is not useful on other systems. If it contains results you don't
18854 # want to keep, you may remove or edit it.
18856 # config.status only pays attention to the cache file if you give it
18857 # the --recheck option to rerun configure.
18859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18861 # following values.
18865 # The following way of writing the cache mishandles newlines in values,
18866 # but we know of no workaround that is simple, portable, and efficient.
18867 # So, we kill variables containing newlines.
18868 # Ultrix sh set writes to stderr and can't be redirected directly,
18869 # and sets the high bit in the cache file unless we assign to the vars.
18871 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18872 eval ac_val=\$$ac_var
18876 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18877 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18880 _ | IFS | as_nl) ;; #(
18881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18882 *) { eval $ac_var=; unset $ac_var;} ;;
18888 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18889 *${as_nl}ac_space=\ *)
18890 # `set' does not quote correctly, so add quotes: double-quote
18891 # substitution turns \\\\ into \\, and sed turns \\ into \.
18894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18897 # `set' quotes correctly as required by POSIX, so do not add quotes.
18898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18907 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18909 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18911 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18912 if test -w "$cache_file"; then
18913 if test "x$cache_file" != "x/dev/null"; then
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18915 $as_echo "$as_me: updating cache $cache_file" >&6;}
18916 if test ! -f "$cache_file" || test -h "$cache_file"; then
18917 cat confcache >"$cache_file"
18919 case $cache_file in #(
18921 mv -f confcache "$cache_file"$$ &&
18922 mv -f "$cache_file"$$ "$cache_file" ;; #(
18924 mv -f confcache "$cache_file" ;;
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18930 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18935 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18936 # Let make expand exec_prefix.
18937 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18939 DEFS=-DHAVE_CONFIG_H
18944 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18945 # 1. Remove the extension, and $U if already installed.
18946 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18947 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18948 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18949 # will be set to the directory where LIBOBJS objects are built.
18950 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18951 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18953 LIBOBJS=$ac_libobjs
18955 LTLIBOBJS=$ac_ltlibobjs
18960 : "${CONFIG_STATUS=./config.status}"
18962 ac_clean_files_save=$ac_clean_files
18963 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18965 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18967 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18969 # Generated by $as_me.
18970 # Run this file to recreate the current configuration.
18971 # Compiler output produced by configure, useful for debugging
18972 # configure, is in config.log if it exists.
18975 ac_cs_recheck=false
18978 SHELL=\${CONFIG_SHELL-$SHELL}
18981 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18982 ## -------------------- ##
18983 ## M4sh Initialization. ##
18984 ## -------------------- ##
18986 # Be more Bourne compatible
18987 DUALCASE=1; export DUALCASE # for MKS sh
18988 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18991 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18992 # is contrary to our usage. Disable this feature.
18993 alias -g '${1+"$@"}'='"$@"'
18994 setopt NO_GLOB_SUBST
18996 case `(set -o) 2>/dev/null` in #(
19008 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19009 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19010 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19011 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19012 # Prefer a ksh shell builtin over an external printf program on Solaris,
19013 # but without wasting forks for bash or zsh.
19014 if test -z "$BASH_VERSION$ZSH_VERSION" \
19015 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19016 as_echo='print -r --'
19017 as_echo_n='print -rn --'
19018 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19019 as_echo='printf %s\n'
19020 as_echo_n='printf %s'
19022 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19023 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19024 as_echo_n='/usr/ucb/echo -n'
19026 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19027 as_echo_n_body='eval
19031 expr "X$arg" : "X\\(.*\\)$as_nl";
19032 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19034 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19036 export as_echo_n_body
19037 as_echo_n='sh -c $as_echo_n_body as_echo'
19039 export as_echo_body
19040 as_echo='sh -c $as_echo_body as_echo'
19043 # The user is always right.
19044 if test "${PATH_SEPARATOR+set}" != set; then
19046 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19047 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19054 # We need space, tab and new line, in precisely that order. Quoting is
19055 # there to prevent editors from complaining about space-tab.
19056 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19057 # splitting by setting IFS to empty value.)
19060 # Find who we are. Look in the path if we contain no directory separator.
19063 *[\\/]* ) as_myself=$0 ;;
19064 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19065 for as_dir in $PATH
19068 test -z "$as_dir" && as_dir=.
19069 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19075 # We did not find ourselves, most probably we were run as `sh COMMAND'
19076 # in which case we are not to be found in the path.
19077 if test "x$as_myself" = x; then
19080 if test ! -f "$as_myself"; then
19081 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19085 # Unset variables that we do not need and which cause bugs (e.g. in
19086 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19087 # suppresses any "Segmentation fault" message there. '((' could
19088 # trigger a bug in pdksh 5.2.14.
19089 for as_var in BASH_ENV ENV MAIL MAILPATH
19090 do eval test x\${$as_var+set} = xset \
19091 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19104 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19107 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19108 # ----------------------------------------
19109 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19110 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19111 # script with STATUS, using 1 if that was 0.
19114 as_status=$1; test $as_status -eq 0 && as_status=1
19116 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19117 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19119 $as_echo "$as_me: error: $2" >&2
19120 as_fn_exit $as_status
19124 # as_fn_set_status STATUS
19125 # -----------------------
19126 # Set $? to STATUS, without forking.
19127 as_fn_set_status ()
19130 } # as_fn_set_status
19132 # as_fn_exit STATUS
19133 # -----------------
19134 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19138 as_fn_set_status $1
19144 # Portably unset VAR.
19147 { eval $1=; unset $1;}
19149 as_unset=as_fn_unset
19150 # as_fn_append VAR VALUE
19151 # ----------------------
19152 # Append the text in VALUE to the end of the definition contained in VAR. Take
19153 # advantage of any shell optimizations that allow amortized linear growth over
19154 # repeated appends, instead of the typical quadratic growth present in naive
19156 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19157 eval 'as_fn_append ()
19168 # as_fn_arith ARG...
19169 # ------------------
19170 # Perform arithmetic evaluation on the ARGs, and store the result in the
19171 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19172 # must be portable across $(()) and expr.
19173 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19174 eval 'as_fn_arith ()
19181 as_val=`expr "$@" || test $? -eq 1`
19186 if expr a : '\(a\)' >/dev/null 2>&1 &&
19187 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19193 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19194 as_basename=basename
19199 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19205 as_me=`$as_basename -- "$0" ||
19206 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19207 X"$0" : 'X\(//\)$' \| \
19208 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19210 sed '/^.*\/\([^/][^/]*\)\/*$/{
19224 # Avoid depending upon Character Ranges.
19225 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19226 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19227 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19228 as_cr_digits='0123456789'
19229 as_cr_alnum=$as_cr_Letters$as_cr_digits
19231 ECHO_C= ECHO_N= ECHO_T=
19232 case `echo -n x` in #(((((
19234 case `echo 'xy\c'` in
19235 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19237 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19244 rm -f conf$$ conf$$.exe conf$$.file
19245 if test -d conf$$.dir; then
19246 rm -f conf$$.dir/conf$$.file
19249 mkdir conf$$.dir 2>/dev/null
19251 if (echo >conf$$.file) 2>/dev/null; then
19252 if ln -s conf$$.file conf$$ 2>/dev/null; then
19254 # ... but there are two gotchas:
19255 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19256 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19257 # In both cases, we have to default to `cp -pR'.
19258 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19260 elif ln conf$$.file conf$$ 2>/dev/null; then
19268 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19269 rmdir conf$$.dir 2>/dev/null
19274 # Create "$as_dir" as a directory, including parents if necessary.
19279 -*) as_dir=./$as_dir;;
19281 test -d "$as_dir" || eval $as_mkdir_p || {
19285 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19286 *) as_qdir=$as_dir;;
19288 as_dirs="'$as_qdir' $as_dirs"
19289 as_dir=`$as_dirname -- "$as_dir" ||
19290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19291 X"$as_dir" : 'X\(//\)[^/]' \| \
19292 X"$as_dir" : 'X\(//\)$' \| \
19293 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19294 $as_echo X"$as_dir" |
19295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19299 /^X\(\/\/\)[^/].*/{
19312 test -d "$as_dir" && break
19314 test -z "$as_dirs" || eval "mkdir $as_dirs"
19315 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19319 if mkdir -p . 2>/dev/null; then
19320 as_mkdir_p='mkdir -p "$as_dir"'
19322 test -d ./-p && rmdir ./-p
19327 # as_fn_executable_p FILE
19328 # -----------------------
19329 # Test if FILE is an executable regular file.
19330 as_fn_executable_p ()
19332 test -f "$1" && test -x "$1"
19333 } # as_fn_executable_p
19334 as_test_x='test -x'
19335 as_executable_p=as_fn_executable_p
19337 # Sed expression to map a string onto a valid CPP name.
19338 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19340 # Sed expression to map a string onto a valid variable name.
19341 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19345 ## ----------------------------------- ##
19346 ## Main body of $CONFIG_STATUS script. ##
19347 ## ----------------------------------- ##
19349 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19352 # Save the log message, to keep $0 and so on meaningful, and to
19353 # report actual input values of CONFIG_FILES etc. instead of their
19354 # values after options handling.
19356 This file was extended by PostgreSQL $as_me 11devel, which was
19357 generated by GNU Autoconf 2.69. Invocation command line was
19359 CONFIG_FILES = $CONFIG_FILES
19360 CONFIG_HEADERS = $CONFIG_HEADERS
19361 CONFIG_LINKS = $CONFIG_LINKS
19362 CONFIG_COMMANDS = $CONFIG_COMMANDS
19365 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19370 case $ac_config_files in *"
19371 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19374 case $ac_config_headers in *"
19375 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19380 # Files that config.status was made for.
19381 config_files="$ac_config_files"
19382 config_headers="$ac_config_headers"
19383 config_links="$ac_config_links"
19384 config_commands="$ac_config_commands"
19388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19390 \`$as_me' instantiates files and other configuration actions
19391 from templates according to the current configuration. Unless the files
19392 and actions are specified as TAGs, all are instantiated by default.
19394 Usage: $0 [OPTION]... [TAG]...
19396 -h, --help print this help, then exit
19397 -V, --version print version number and configuration settings, then exit
19398 --config print configuration, then exit
19399 -q, --quiet, --silent
19400 do not print progress messages
19401 -d, --debug don't remove temporary files
19402 --recheck update $as_me by reconfiguring in the same conditions
19403 --file=FILE[:TEMPLATE]
19404 instantiate the configuration file FILE
19405 --header=FILE[:TEMPLATE]
19406 instantiate the configuration header FILE
19408 Configuration files:
19411 Configuration headers:
19414 Configuration links:
19417 Configuration commands:
19420 Report bugs to <pgsql-bugs@postgresql.org>."
19423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19424 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19426 PostgreSQL config.status 11devel
19427 configured by $0, generated by GNU Autoconf 2.69,
19428 with options \\"\$ac_cs_config\\"
19430 Copyright (C) 2012 Free Software Foundation, Inc.
19431 This config.status script is free software; the Free Software Foundation
19432 gives unlimited permission to copy, distribute and modify it."
19439 test -n "\$AWK" || AWK=awk
19442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19443 # The default lists apply if the user does not specify any file.
19449 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19450 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19466 # Handling of the options.
19467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19470 $as_echo "$ac_cs_version"; exit ;;
19471 --config | --confi | --conf | --con | --co | --c )
19472 $as_echo "$ac_cs_config"; exit ;;
19473 --debug | --debu | --deb | --de | --d | -d )
19475 --file | --fil | --fi | --f )
19478 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19479 '') as_fn_error $? "missing file argument" ;;
19481 as_fn_append CONFIG_FILES " '$ac_optarg'"
19482 ac_need_defaults=false;;
19483 --header | --heade | --head | --hea )
19486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19488 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19489 ac_need_defaults=false;;
19491 # Conflict between --help and --header
19492 as_fn_error $? "ambiguous option: \`$1'
19493 Try \`$0 --help' for more information.";;
19494 --help | --hel | -h )
19495 $as_echo "$ac_cs_usage"; exit ;;
19496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19497 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19500 # This is an error.
19501 -*) as_fn_error $? "unrecognized option: \`$1'
19502 Try \`$0 --help' for more information." ;;
19504 *) as_fn_append ac_config_targets " $1"
19505 ac_need_defaults=false ;;
19511 ac_configure_extra_args=
19513 if $ac_cs_silent; then
19515 ac_configure_extra_args="$ac_configure_extra_args --silent"
19519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19520 if \$ac_cs_recheck; then
19521 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19523 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19524 CONFIG_SHELL='$SHELL'
19525 export CONFIG_SHELL
19530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19534 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19535 ## Running $as_me. ##
19541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19546 # Handling of arguments.
19547 for ac_config_target in $ac_config_targets
19549 case $ac_config_target in
19550 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
19551 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
19552 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
19553 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
19554 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
19555 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
19556 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
19557 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
19558 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
19559 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
19560 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
19561 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
19562 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
19564 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19569 # If the user did not use the arguments to specify the items to instantiate,
19570 # then the envvar interface is used. Set only those that are not.
19571 # We use the long form for the default assignment because of an extremely
19572 # bizarre bug on SunOS 4.1.3.
19573 if $ac_need_defaults; then
19574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19575 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19576 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
19577 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19580 # Have a temporary directory for convenience. Make it in the build tree
19581 # simply because there is no reason against having it here, and in addition,
19582 # creating and moving files from /tmp can sometimes cause problems.
19583 # Hook for its removal unless debugging.
19584 # Note that there is a small window in which the directory will not be cleaned:
19585 # after its creation but before its name has been assigned to `$tmp'.
19589 trap 'exit_status=$?
19590 : "${ac_tmp:=$tmp}"
19591 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19593 trap 'as_fn_exit 1' 1 2 13 15
19595 # Create a (secure) tmp directory for tmp files.
19598 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19602 tmp=./conf$$-$RANDOM
19603 (umask 077 && mkdir "$tmp")
19604 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19607 # Set up the scripts for CONFIG_FILES section.
19608 # No need to generate them if there are no CONFIG_FILES.
19609 # This happens for instance with `./config.status config.h'.
19610 if test -n "$CONFIG_FILES"; then
19613 ac_cr=`echo X | tr X '\015'`
19614 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19615 # But we know of no other shell where ac_cr would be empty at this
19616 # point, so we can use a bashism as a fallback.
19617 if test "x$ac_cr" = x; then
19618 eval ac_cr=\$\'\\r\'
19620 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19621 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19624 ac_cs_awk_cr=$ac_cr
19627 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19632 echo "cat >conf$$subs.awk <<_ACEOF" &&
19633 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19635 } >conf$$subs.sh ||
19636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19637 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19639 for ac_last_try in false false false false false :; do
19640 . ./conf$$subs.sh ||
19641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19643 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19644 if test $ac_delim_n = $ac_delim_num; then
19646 elif $ac_last_try; then
19647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19652 rm -f conf$$subs.sh
19654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19655 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19659 s/^/S["/; s/!.*/"]=/
19669 s/\(.\{148\}\)..*/\1/
19671 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19676 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19683 s/\(.\{148\}\)..*/\1/
19685 s/["\\]/\\&/g; s/^/"/; s/$/"/
19689 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19694 ' <conf$$subs.awk | sed '
19699 ' >>$CONFIG_STATUS || ac_write_fail=1
19700 rm -f conf$$subs.awk
19701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19703 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19704 for (key in S) S_is_set[key] = 1
19710 nfields = split(line, field, "@")
19712 len = length(field[1])
19713 for (i = 2; i < nfields; i++) {
19715 keylen = length(key)
19716 if (S_is_set[key]) {
19718 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19719 len += length(value) + length(field[++i])
19730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19731 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19732 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19735 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19736 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19739 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19740 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19741 # trailing colons and then remove the whole line if VPATH becomes empty
19742 # (actually we leave an empty line to preserve line numbers).
19743 if test "x$srcdir" = x.; then
19744 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19763 fi # test -n "$CONFIG_FILES"
19765 # Set up the scripts for CONFIG_HEADERS section.
19766 # No need to generate them if there are no CONFIG_HEADERS.
19767 # This happens for instance with `./config.status Makefile'.
19768 if test -n "$CONFIG_HEADERS"; then
19769 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19773 # Transform confdefs.h into an awk script `defines.awk', embedded as
19774 # here-document in config.status, that substitutes the proper values into
19775 # config.h.in to produce config.h.
19777 # Create a delimiter string that does not exist in confdefs.h, to ease
19778 # handling of long lines.
19780 for ac_last_try in false false :; do
19781 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19782 if test -z "$ac_tt"; then
19784 elif $ac_last_try; then
19785 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19791 # For the awk script, D is an array of macro values keyed by name,
19792 # likewise P contains macro parameters if any. Preserve backslash
19793 # newline sequences.
19795 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19797 s/.\{148\}/&'"$ac_delim"'/g
19800 s/^[ ]*#[ ]*define[ ][ ]*/ /
19807 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19809 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19813 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19814 D["\1"]=" \3\\\\\\n"\\/p
19816 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19821 s/.\{148\}/&'"$ac_delim"'/g
19826 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19829 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19831 ' <confdefs.h | sed '
19832 s/'"$ac_delim"'/"\\\
19833 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19836 for (key in D) D_is_set[key] = 1
19839 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19841 split(line, arg, " ")
19842 if (arg[1] == "#") {
19846 defundef = substr(arg[1], 2)
19849 split(mac1, mac2, "(") #)
19851 prefix = substr(line, 1, index(line, defundef) - 1)
19852 if (D_is_set[macro]) {
19853 # Preserve the white space surrounding the "#".
19854 print prefix "define", macro P[macro] D[macro]
19857 # Replace #undef with comments. This is necessary, for example,
19858 # in the case of _POSIX_SOURCE, which is predefined and required
19859 # on some systems where configure will not decide to define it.
19860 if (defundef == "undef") {
19861 print "/*", prefix defundef, macro, "*/"
19869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19870 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19871 fi # test -n "$CONFIG_HEADERS"
19874 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
19879 :[FHLC]) ac_mode=$ac_tag; continue;;
19881 case $ac_mode$ac_tag in
19883 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19884 :[FH]-) ac_tag=-:-;;
19885 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19902 -) ac_f="$ac_tmp/stdin";;
19903 *) # Look for the file first in the build tree, then in the source tree
19904 # (if the path is not absolute). The absolute path cannot be DOS-style,
19905 # because $ac_f cannot contain `:'.
19909 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19911 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19913 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19914 as_fn_append ac_file_inputs " '$ac_f'"
19917 # Let's still pretend it is `configure' which instantiates (i.e., don't
19918 # use $as_me), people would be surprised to read:
19919 # /* config.h. Generated by config.status. */
19920 configure_input='Generated from '`
19921 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19923 if test x"$ac_file" != x-; then
19924 configure_input="$ac_file. $configure_input"
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19926 $as_echo "$as_me: creating $ac_file" >&6;}
19928 # Neutralize special characters interpreted by sed in replacement strings.
19929 case $configure_input in #(
19930 *\&* | *\|* | *\\* )
19931 ac_sed_conf_input=`$as_echo "$configure_input" |
19932 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19933 *) ac_sed_conf_input=$configure_input;;
19937 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19938 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19943 ac_dir=`$as_dirname -- "$ac_file" ||
19944 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19945 X"$ac_file" : 'X\(//\)[^/]' \| \
19946 X"$ac_file" : 'X\(//\)$' \| \
19947 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19948 $as_echo X"$ac_file" |
19949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19953 /^X\(\/\/\)[^/].*/{
19966 as_dir="$ac_dir"; as_fn_mkdir_p
19970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19972 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19973 # A ".." for each directory in $ac_dir_suffix.
19974 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19975 case $ac_top_builddir_sub in
19976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19980 ac_abs_top_builddir=$ac_pwd
19981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19982 # for backward compatibility:
19983 ac_top_builddir=$ac_top_build_prefix
19986 .) # We are building in place.
19988 ac_top_srcdir=$ac_top_builddir_sub
19989 ac_abs_top_srcdir=$ac_pwd ;;
19990 [\\/]* | ?:[\\/]* ) # Absolute name.
19991 ac_srcdir=$srcdir$ac_dir_suffix;
19992 ac_top_srcdir=$srcdir
19993 ac_abs_top_srcdir=$srcdir ;;
19994 *) # Relative name.
19995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19996 ac_top_srcdir=$ac_top_build_prefix$srcdir
19997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20009 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20010 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20012 ac_MKDIR_P=$MKDIR_P
20014 [\\/$]* | ?:[\\/]* ) ;;
20015 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20020 # If the template does not know about datarootdir, expand it.
20021 # FIXME: This hack should be removed a few years after 2.60.
20022 ac_datarootdir_hack=; ac_datarootdir_seen=
20033 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20034 *datarootdir*) ac_datarootdir_seen=yes;;
20035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20037 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20040 ac_datarootdir_hack='
20041 s&@datadir@&$datadir&g
20042 s&@docdir@&$docdir&g
20043 s&@infodir@&$infodir&g
20044 s&@localedir@&$localedir&g
20045 s&@mandir@&$mandir&g
20046 s&\\\${datarootdir}&$datarootdir&g' ;;
20050 # Neutralize VPATH when `$srcdir' = `.'.
20051 # Shell code in configure.ac might set extrasub.
20052 # FIXME: do we really want to maintain this feature?
20053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20054 ac_sed_extra="$ac_vpsub
20057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20060 s|@configure_input@|$ac_sed_conf_input|;t t
20061 s&@top_builddir@&$ac_top_builddir_sub&;t t
20062 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20063 s&@srcdir@&$ac_srcdir&;t t
20064 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20065 s&@top_srcdir@&$ac_top_srcdir&;t t
20066 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20067 s&@builddir@&$ac_builddir&;t t
20068 s&@abs_builddir@&$ac_abs_builddir&;t t
20069 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20070 s&@INSTALL@&$ac_INSTALL&;t t
20071 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20072 $ac_datarootdir_hack
20074 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20075 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20077 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20078 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20079 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20080 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20082 which seems to be undefined. Please make sure it is defined" >&5
20083 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20084 which seems to be undefined. Please make sure it is defined" >&2;}
20086 rm -f "$ac_tmp/stdin"
20088 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20089 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20097 if test x"$ac_file" != x-; then
20099 $as_echo "/* $configure_input */" \
20100 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20101 } >"$ac_tmp/config.h" \
20102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20103 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20105 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20108 mv "$ac_tmp/config.h" "$ac_file" \
20109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20112 $as_echo "/* $configure_input */" \
20113 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20114 || as_fn_error $? "could not create -" "$LINENO" 5
20122 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
20125 # Prefer the file from the source tree if names are identical.
20126 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20127 ac_source=$srcdir/$ac_source
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20131 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20133 if test ! -r "$ac_source"; then
20134 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20138 # Try a relative symlink, then a hard link, then a copy.
20140 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20141 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20143 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20144 ln "$ac_source" "$ac_file" 2>/dev/null ||
20145 cp -p "$ac_source" "$ac_file" ||
20146 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20149 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20150 $as_echo "$as_me: executing $ac_file commands" >&6;}
20155 case $ac_file$ac_mode in
20156 "check_win32_symlinks":C)
20157 # Links sometimes fail undetected on Mingw -
20158 # so here we detect it and warn the user
20159 for FILE in $CONFIG_LINKS
20161 # test -e works for symlinks in the MinGW console
20162 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
20163 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
20166 "src/include/pg_config.h":H)
20167 # Update timestamp for pg_config.h (see Makefile.global)
20168 echo >src/include/stamp-h
20170 "src/include/pg_config_ext.h":H)
20171 # Update timestamp for pg_config_ext.h (see Makefile.global)
20172 echo >src/include/stamp-ext-h
20174 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
20182 ac_clean_files=$ac_clean_files_save
20184 test $ac_write_fail = 0 ||
20185 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20188 # configure is writing to config.log, and then calls config.status.
20189 # config.status does its own redirection, appending to config.log.
20190 # Unfortunately, on DOS this fails, as config.log is still kept open
20191 # by configure, so config.status won't be able to write to it; its
20192 # output is simply discarded. So we exec the FD to /dev/null,
20193 # effectively closing config.log, so it can be properly (re)opened and
20194 # appended to by config.status. When coming back to configure, we
20195 # need to make the FD available again.
20196 if test "$no_create" != yes; then
20198 ac_config_status_args=
20199 test "$silent" = yes &&
20200 ac_config_status_args="$ac_config_status_args --quiet"
20202 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20204 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20205 # would make configure fail if this is the last instruction.
20206 $ac_cs_success || as_fn_exit 1
20208 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20210 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}