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-2017, 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
663 python_additional_libs
790 program_transform_name
803 enable_option_checking
809 enable_integer_datetimes
844 with_libedit_preferred
856 ac_precious_vars='build_alias
874 # Initialize some variables set by options.
876 ac_init_version=false
877 ac_unrecognized_opts=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
888 program_transform_name=s,x,x,
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 # Accept the important Cygnus configure options, so we can diagnose typos.
941 case $ac_dashdash$ac_option in
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 -build | --build | --buil | --bui | --bu)
951 ac_prev=build_alias ;;
952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953 build_alias=$ac_optarg ;;
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960 cache_file=$ac_optarg ;;
963 cache_file=config.cache ;;
965 -datadir | --datadir | --datadi | --datad)
967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
968 datadir=$ac_optarg ;;
970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
977 -disable-* | --disable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error $? "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
991 eval enable_$ac_useropt=no ;;
993 -docdir | --docdir | --docdi | --doc | --do)
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
1003 -enable-* | --enable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_$ac_useropt"
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1017 eval enable_$ac_useropt=\$ac_optarg ;;
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 htmldir=$ac_optarg ;;
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1062 -libdir | --libdir | --libdi | --libd)
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1153 -psdir | --psdir | --psdi | --psd | --ps)
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 sbindir=$ac_optarg ;;
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 sharedstatedir=$ac_optarg ;;
1179 -site | --site | --sit)
1181 -site=* | --site=* | --sit=*)
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1221 eval with_$ac_useropt=\$ac_optarg ;;
1223 -without-* | --without-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1237 eval with_$ac_useropt=no ;;
1240 # Obsolete; use --with-x.
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
1266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1272 # FIXME: should be removed in autoconf 3.0.
1273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 as_fn_error $? "missing argument to $ac_option"
1287 if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1308 # Be sure to have absolute directory names.
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1321 target=$target_alias
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335 test "$silent" = yes && exec 6>/dev/null
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error $? "pwd does not report name of working directory"
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 # Report the --help message.
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1412 \`configure' configures PostgreSQL 11devel to adapt to many kinds of systems.
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1443 For better control, use the options below.
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 if test -n "$ac_init_help"; then
1476 case $ac_init_help in
1477 short | recursive ) echo "Configuration of PostgreSQL 11devel:";;
1482 --disable-option-checking ignore unrecognized --enable/--with options
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --disable-integer-datetimes
1486 obsolete option, no longer supported
1487 --enable-nls[=LANGUAGES]
1488 enable Native Language Support
1489 --disable-rpath do not embed shared library search path in
1491 --disable-spinlocks do not use spinlocks
1492 --disable-atomics do not use atomic operations
1493 --disable-strong-random do not use a strong random number source
1494 --enable-debug build with debugging symbols (-g)
1495 --enable-profiling build with profiling enabled
1496 --enable-coverage build with coverage testing instrumentation
1497 --enable-dtrace build with DTrace support
1498 --enable-tap-tests enable TAP tests (requires Perl and IPC::Run)
1499 --enable-depend turn on automatic dependency tracking
1500 --enable-cassert enable assertion checks (for debugging)
1501 --disable-thread-safety disable thread-safety in client libraries
1502 --disable-largefile omit support for large files
1503 --disable-float4-byval disable float4 passed by value
1504 --disable-float8-byval disable float8 passed by value
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-extra-version=STRING
1510 append STRING to version
1511 --with-template=NAME override operating system template
1512 --with-includes=DIRS look for additional header files in DIRS
1513 --with-libraries=DIRS look for additional libraries in DIRS
1514 --with-libs=DIRS alternative spelling of --with-libraries
1515 --with-pgport=PORTNUM set default port number [5432]
1516 --with-blocksize=BLOCKSIZE
1517 set table block size in kB [8]
1518 --with-segsize=SEGSIZE set table segment size in GB [1]
1519 --with-wal-blocksize=BLOCKSIZE
1520 set WAL block size in kB [8]
1521 --with-wal-segsize=SEGSIZE
1522 set WAL segment size in MB [16]
1523 --with-CC=CMD set compiler (deprecated)
1524 --with-icu build with ICU support
1525 --with-tcl build Tcl modules (PL/Tcl)
1526 --with-tclconfig=DIR tclConfig.sh is in DIR
1527 --with-perl build Perl modules (PL/Perl)
1528 --with-python build Python modules (PL/Python)
1529 --with-gssapi build with GSSAPI support
1530 --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
1532 --with-pam build with PAM support
1533 --with-bsd-auth build with BSD Authentication support
1534 --with-ldap build with LDAP support
1535 --with-bonjour build with Bonjour support
1536 --with-openssl build with OpenSSL support
1537 --with-selinux build with SELinux support
1538 --with-systemd build with systemd support
1539 --without-readline do not use GNU Readline nor BSD Libedit for editing
1540 --with-libedit-preferred
1541 prefer BSD Libedit over GNU Readline
1542 --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
1543 --with-ossp-uuid obsolete spelling of --with-uuid=ossp
1544 --with-libxml build with XML support
1545 --with-libxslt use XSLT support when building contrib/xml2
1546 --with-system-tzdata=DIR
1547 use system time zone data in DIR
1548 --without-zlib do not use Zlib
1549 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1560 PKG_CONFIG path to pkg-config utility
1562 directories to add to pkg-config's search path
1564 path overriding pkg-config's built-in search path
1565 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1566 ICU_LIBS linker flags for ICU, overriding pkg-config
1567 LDFLAGS_EX extra linker flags for linking executables only
1568 LDFLAGS_SL extra linker flags for linking shared libraries only
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1573 Report bugs to <pgsql-bugs@postgresql.org>.
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1603 .) # We are building in place.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1627 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1636 PostgreSQL configure 11devel
1637 generated by GNU Autoconf 2.69
1639 Copyright (C) 2012 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1643 Copyright (c) 1996-2017, PostgreSQL Global Development Group
1648 ## ------------------------ ##
1649 ## Autoconf initialization. ##
1650 ## ------------------------ ##
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext
1659 if { { ac_try="$ac_compile"
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.$ac_objext; then :
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1688 } # ac_fn_c_try_compile
1690 # ac_fn_c_try_link LINENO
1691 # -----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded.
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest$ac_exeext
1697 if { { ac_try="$ac_link"
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>conftest.err
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest$ac_exeext && {
1716 test "$cross_compiling" = yes ||
1717 test -x conftest$ac_exeext
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728 # interfere with the next link command; also delete a directory that is
1729 # left behind by Apple's compiler. We do this before executing the actions.
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1734 } # ac_fn_c_try_link
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } > conftest.i && {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1773 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776 # the include files in INCLUDES and setting the cache variable VAR
1778 ac_fn_c_check_header_mongrel ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if eval \${$3+:} false; then :
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1791 # Is the header compilable?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793 $as_echo_n "checking $2 usability... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 ac_header_compiler=yes
1802 ac_header_compiler=no
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806 $as_echo "$ac_header_compiler" >&6; }
1808 # Is the header present?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810 $as_echo_n "checking $2 presence... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1815 if ac_fn_c_try_cpp "$LINENO"; then :
1816 ac_header_preproc=yes
1818 ac_header_preproc=no
1820 rm -f conftest.err conftest.i conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822 $as_echo "$ac_header_preproc" >&6; }
1824 # So? What about this header?
1825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1836 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1840 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ( $as_echo "## ---------------------------------------- ##
1844 ## Report this to pgsql-bugs@postgresql.org ##
1845 ## ---------------------------------------- ##"
1846 ) | sed "s/^/$as_me: WARNING: /" >&2
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1854 eval "$3=\$ac_header_compiler"
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 } # ac_fn_c_check_header_mongrel
1864 # ac_fn_c_try_run LINENO
1865 # ----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867 # that executables *can* be run.
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_link"
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>&5
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882 { { case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_try") 2>&5
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; }; }; then :
1894 $as_echo "$as_me: program exited with status $ac_status" >&5
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=$ac_status
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1906 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists and can be compiled using the include files in
1909 # INCLUDES, setting the cache variable VAR accordingly.
1910 ac_fn_c_check_header_compile ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1923 if ac_fn_c_try_compile "$LINENO"; then :
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 } # ac_fn_c_check_header_compile
1937 # ac_fn_c_check_func LINENO FUNC VAR
1938 # ----------------------------------
1939 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1940 ac_fn_c_check_func ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952 #define $2 innocuous_$2
1954 /* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1960 # include <limits.h>
1962 # include <assert.h>
1967 /* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1974 /* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977 #if defined __stub_$2 || defined __stub___$2
1989 if ac_fn_c_try_link "$LINENO"; then :
1994 rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_func
2004 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2005 # ----------------------------------------------------
2006 # Tries to find if the field MEMBER exists in type AGGR, after including
2007 # INCLUDES, setting cache variable VAR accordingly.
2008 ac_fn_c_check_member ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2012 $as_echo_n "checking for $2.$3... " >&6; }
2013 if eval \${$4+:} false; then :
2014 $as_echo_n "(cached) " >&6
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2029 if ac_fn_c_try_compile "$LINENO"; then :
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2039 if (sizeof ac_aggr.$3)
2045 if ac_fn_c_try_compile "$LINENO"; then :
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 } # ac_fn_c_check_member
2061 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2062 # -------------------------------------------
2063 # Tests whether TYPE exists after having included INCLUDES, setting cache
2064 # variable VAR accordingly.
2065 ac_fn_c_check_type ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval \${$3+:} false; then :
2071 $as_echo_n "(cached) " >&6
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2099 if ac_fn_c_try_compile "$LINENO"; then :
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 } # ac_fn_c_check_type
2115 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2116 # --------------------------------------------
2117 # Tries to find the compile-time value of EXPR in a program that includes
2118 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2120 ac_fn_c_compute_int ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if test "$cross_compiling" = yes; then
2124 # Depending upon the size, compute the lo and hi bounds.
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 static int test_array [1 - 2 * !(($2) >= 0)];
2133 return test_array [0];
2139 if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2150 return test_array [0];
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_hi=$ac_mid; break
2159 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2160 if test $ac_lo -le $ac_mid; then
2164 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2175 static int test_array [1 - 2 * !(($2) < 0)];
2177 return test_array [0];
2183 if ac_fn_c_try_compile "$LINENO"; then :
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2192 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2194 return test_array [0];
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201 ac_lo=$ac_mid; break
2203 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2204 if test $ac_mid -le $ac_hi; then
2208 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 # Binary search between lo and hi bounds.
2219 while test "x$ac_lo" != "x$ac_hi"; do
2220 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2229 return test_array [0];
2235 if ac_fn_c_try_compile "$LINENO"; then :
2238 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2250 static long int longval () { return $2; }
2251 static unsigned long int ulongval () { return $2; }
2258 FILE *f = fopen ("conftest.val", "w");
2263 long int i = longval ();
2266 fprintf (f, "%ld", i);
2270 unsigned long int i = ulongval ();
2273 fprintf (f, "%lu", i);
2275 /* Do not output a trailing newline, as this causes \r\n confusion
2276 on some platforms. */
2277 return ferror (f) || fclose (f) != 0;
2283 if ac_fn_c_try_run "$LINENO"; then :
2284 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2289 conftest.$ac_objext conftest.beam conftest.$ac_ext
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status $ac_retval
2296 } # ac_fn_c_compute_int
2298 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2299 # ---------------------------------------------
2300 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2302 ac_fn_c_check_decl ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 as_decl_name=`echo $2|sed 's/ *(.*//'`
2306 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2308 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2309 if eval \${$3+:} false; then :
2310 $as_echo_n "(cached) " >&6
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2318 #ifndef $as_decl_name
2320 (void) $as_decl_use;
2322 (void) $as_decl_name;
2330 if ac_fn_c_try_compile "$LINENO"; then :
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2340 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342 } # ac_fn_c_check_decl
2343 cat >config.log <<_ACEOF
2344 This file contains any messages produced by compilers while
2345 running configure, to aid debugging if configure makes a mistake.
2347 It was created by PostgreSQL $as_me 11devel, which was
2348 generated by GNU Autoconf 2.69. Invocation command line was
2360 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2361 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2362 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2363 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2364 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2366 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2367 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2369 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2370 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2371 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2372 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2373 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2374 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2375 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 test -z "$as_dir" && as_dir=.
2384 $as_echo "PATH: $as_dir"
2400 # Keep a trace of the command line.
2401 # Strip out --no-create and --no-recursion so they do not pile up.
2402 # Strip out --silent because we don't want to record it for future runs.
2403 # Also quote any args containing shell meta-characters.
2404 # Make two passes to allow for proper duplicate-argument suppression.
2408 ac_must_keep_next=false
2414 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2416 | -silent | --silent | --silen | --sile | --sil)
2419 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2422 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424 as_fn_append ac_configure_args1 " '$ac_arg'"
2425 if test $ac_must_keep_next = true; then
2426 ac_must_keep_next=false # Got value, back to normal.
2429 *=* | --config-cache | -C | -disable-* | --disable-* \
2430 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2431 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2432 | -with-* | --with-* | -without-* | --without-* | --x)
2433 case "$ac_configure_args0 " in
2434 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2437 -* ) ac_must_keep_next=true ;;
2440 as_fn_append ac_configure_args " '$ac_arg'"
2445 { ac_configure_args0=; unset ac_configure_args0;}
2446 { ac_configure_args1=; unset ac_configure_args1;}
2448 # When interrupted or exit'd, cleanup temporary files, and complete
2449 # config.log. We remove comments because anyway the quotes in there
2450 # would cause problems or look ugly.
2451 # WARNING: Use '\'' to represent an apostrophe within the trap.
2452 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2453 trap 'exit_status=$?
2454 # Save into config.log some information that might help in debugging.
2458 $as_echo "## ---------------- ##
2459 ## Cache variables. ##
2460 ## ---------------- ##"
2462 # The following way of writing the cache mishandles newlines in values,
2464 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2465 eval ac_val=\$$ac_var
2469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2473 _ | IFS | as_nl) ;; #(
2474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2475 *) { eval $ac_var=; unset $ac_var;} ;;
2480 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2481 *${as_nl}ac_space=\ *)
2483 "s/'\''/'\''\\\\'\'''\''/g;
2484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2494 $as_echo "## ----------------- ##
2495 ## Output variables. ##
2496 ## ----------------- ##"
2498 for ac_var in $ac_subst_vars
2500 eval ac_val=\$$ac_var
2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 $as_echo "$ac_var='\''$ac_val'\''"
2508 if test -n "$ac_subst_files"; then
2509 $as_echo "## ------------------- ##
2510 ## File substitutions. ##
2511 ## ------------------- ##"
2513 for ac_var in $ac_subst_files
2515 eval ac_val=\$$ac_var
2517 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 $as_echo "$ac_var='\''$ac_val'\''"
2524 if test -s confdefs.h; then
2525 $as_echo "## ----------- ##
2532 test "$ac_signal" != 0 &&
2533 $as_echo "$as_me: caught signal $ac_signal"
2534 $as_echo "$as_me: exit $exit_status"
2536 rm -f core *.core core.conftest.* &&
2537 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2540 for ac_signal in 1 2 13 15; do
2541 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2545 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2546 rm -f -r conftest* confdefs.h
2548 $as_echo "/* confdefs.h */" > confdefs.h
2550 # Predefined preprocessor variables.
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_NAME "$PACKAGE_NAME"
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_STRING "$PACKAGE_STRING"
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_URL "$PACKAGE_URL"
2577 # Let the site file select an alternate cache file if it wants to.
2578 # Prefer an explicitly selected file to automatically selected ones.
2581 if test -n "$CONFIG_SITE"; then
2582 # We do not want a PATH search for config.site.
2583 case $CONFIG_SITE in #((
2584 -*) ac_site_file1=./$CONFIG_SITE;;
2585 */*) ac_site_file1=$CONFIG_SITE;;
2586 *) ac_site_file1=./$CONFIG_SITE;;
2588 elif test "x$prefix" != xNONE; then
2589 ac_site_file1=$prefix/share/config.site
2590 ac_site_file2=$prefix/etc/config.site
2592 ac_site_file1=$ac_default_prefix/share/config.site
2593 ac_site_file2=$ac_default_prefix/etc/config.site
2595 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2597 test "x$ac_site_file" = xNONE && continue
2598 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2600 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2601 sed 's/^/| /' "$ac_site_file" >&5
2603 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 as_fn_error $? "failed to load site script $ac_site_file
2606 See \`config.log' for more details" "$LINENO" 5; }
2610 if test -r "$cache_file"; then
2611 # Some versions of bash will fail to source /dev/null (special files
2612 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2613 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2615 $as_echo "$as_me: loading cache $cache_file" >&6;}
2617 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2618 *) . "./$cache_file";;
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2623 $as_echo "$as_me: creating cache $cache_file" >&6;}
2627 # Check that the precious variables saved in the cache have kept the same
2629 ac_cache_corrupted=false
2630 for ac_var in $ac_precious_vars; do
2631 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2632 eval ac_new_set=\$ac_env_${ac_var}_set
2633 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2634 eval ac_new_val=\$ac_env_${ac_var}_value
2635 case $ac_old_set,$ac_new_set in
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2639 ac_cache_corrupted=: ;;
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2643 ac_cache_corrupted=: ;;
2646 if test "x$ac_old_val" != "x$ac_new_val"; then
2647 # differences in whitespace do not lead to failure.
2648 ac_old_val_w=`echo x $ac_old_val`
2649 ac_new_val_w=`echo x $ac_new_val`
2650 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2652 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2653 ac_cache_corrupted=:
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2656 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2657 eval $ac_var=\$ac_old_val
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2660 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2662 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2665 # Pass precious variables to config.status.
2666 if test "$ac_new_set" = set; then
2668 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2669 *) ac_arg=$ac_var=$ac_new_val ;;
2671 case " $ac_configure_args " in
2672 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2673 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2677 if $ac_cache_corrupted; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2681 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2682 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2684 ## -------------------- ##
2685 ## Main body of script. ##
2686 ## -------------------- ##
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 for ac_dir in config "$srcdir"/config; do
2701 if test -f "$ac_dir/install-sh"; then
2703 ac_install_sh="$ac_aux_dir/install-sh -c"
2705 elif test -f "$ac_dir/install.sh"; then
2707 ac_install_sh="$ac_aux_dir/install.sh -c"
2709 elif test -f "$ac_dir/shtool"; then
2711 ac_install_sh="$ac_aux_dir/shtool install -c"
2715 if test -z "$ac_aux_dir"; then
2716 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2719 # These three variables are undocumented and unsupported,
2720 # and are intended to be withdrawn in a future Autoconf release.
2721 # They can cause serious problems if a builder's source tree is in a directory
2722 # whose full name contains unusual characters.
2723 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2724 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2725 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2729 configure_args=$ac_configure_args
2732 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2735 cat >>confdefs.h <<_ACEOF
2736 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2743 # Check whether --with-extra-version was given.
2744 if test "${with_extra_version+set}" = set; then :
2745 withval=$with_extra_version;
2748 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2751 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2754 PG_VERSION="$PACKAGE_VERSION$withval"
2759 PG_VERSION="$PACKAGE_VERSION"
2764 cat >>confdefs.h <<_ACEOF
2765 #define PG_VERSION "$PG_VERSION"
2769 # Make sure we can run config.sub.
2770 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2771 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2774 $as_echo_n "checking build system type... " >&6; }
2775 if ${ac_cv_build+:} false; then :
2776 $as_echo_n "(cached) " >&6
2778 ac_build_alias=$build_alias
2779 test "x$ac_build_alias" = x &&
2780 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2781 test "x$ac_build_alias" = x &&
2782 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2783 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2784 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2788 $as_echo "$ac_cv_build" >&6; }
2789 case $ac_cv_build in
2791 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2794 ac_save_IFS=$IFS; IFS='-'
2800 # Remember, the first character of IFS is used to create $*,
2801 # except with old shells:
2804 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2808 $as_echo_n "checking host system type... " >&6; }
2809 if ${ac_cv_host+:} false; then :
2810 $as_echo_n "(cached) " >&6
2812 if test "x$host_alias" = x; then
2813 ac_cv_host=$ac_cv_build
2815 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2816 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2821 $as_echo "$ac_cv_host" >&6; }
2824 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2827 ac_save_IFS=$IFS; IFS='-'
2833 # Remember, the first character of IFS is used to create $*,
2834 # except with old shells:
2837 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2843 $as_echo_n "checking which template to use... " >&6; }
2848 # Check whether --with-template was given.
2849 if test "${with_template+set}" = set; then :
2850 withval=$with_template;
2853 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2856 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2861 list) echo; ls "$srcdir/src/template"; exit;;
2862 *) if test -f "$srcdir/src/template/$with_template" ; then
2865 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2874 # --with-template not given
2877 aix*) template=aix ;;
2878 cygwin*) template=cygwin ;;
2879 darwin*) template=darwin ;;
2880 dragonfly*) template=netbsd ;;
2881 freebsd*) template=freebsd ;;
2882 hpux*) template=hpux ;;
2883 linux*|gnu*|k*bsd*-gnu)
2885 mingw*) template=win32 ;;
2886 netbsd*) template=netbsd ;;
2887 openbsd*) template=openbsd ;;
2888 solaris*) template=solaris ;;
2891 if test x"$template" = x"" ; then
2893 *******************************************************************
2894 PostgreSQL has apparently not been ported to your platform yet.
2895 To try a manual configuration, look into the src/template directory
2896 for a similar platform and use the '--with-template=' option.
2898 Please also contact <pgsql-bugs@postgresql.org> to see about
2899 rectifying this. Include the above 'checking host system type...'
2901 *******************************************************************
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2911 $as_echo "$template" >&6; }
2916 # Initialize default assumption that we do not need separate assembly code
2917 # for TAS (test-and-set). This can be overridden by the template file
2918 # when it's executed.
2925 ## Command line options
2929 # Add non-standard directories to the include path
2934 # Check whether --with-includes was given.
2935 if test "${with_includes+set}" = set; then :
2936 withval=$with_includes;
2939 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2942 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2955 # Add non-standard directories to the library search path
2960 # Check whether --with-libraries was given.
2961 if test "${with_libraries+set}" = set; then :
2962 withval=$with_libraries;
2965 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2968 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2971 LIBRARY_DIRS=$withval
2982 # Check whether --with-libs was given.
2983 if test "${with_libs+set}" = set; then :
2987 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2990 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2993 LIBRARY_DIRS=$withval
3003 # 64-bit integer date/time storage is now the only option, but to avoid
3004 # unnecessary breakage of build scripts, continue to accept an explicit
3005 # "--enable-integer-datetimes" switch.
3009 # Check whether --enable-integer-datetimes was given.
3010 if test "${enable_integer_datetimes+set}" = set; then :
3011 enableval=$enable_integer_datetimes;
3017 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3020 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3025 enable_integer_datetimes=yes
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3036 $as_echo_n "checking whether NLS is wanted... " >&6; }
3039 # Check whether --enable-nls was given.
3040 if test "${enable_nls+set}" = set; then :
3041 enableval=$enable_nls;
3051 WANTED_LANGUAGES=$enableval
3061 if test "$enable_nls" = yes; then
3063 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3068 $as_echo "$enable_nls" >&6; }
3073 # Default port number (--with-pgport), default 5432
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3076 $as_echo_n "checking for default port number... " >&6; }
3080 # Check whether --with-pgport was given.
3081 if test "${with_pgport+set}" = set; then :
3082 withval=$with_pgport;
3085 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3088 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3091 default_port=$withval
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3101 $as_echo "$default_port" >&6; }
3102 # Need both of these because some places want an integer and some a string
3104 cat >>confdefs.h <<_ACEOF
3105 #define DEF_PGPORT ${default_port}
3109 cat >>confdefs.h <<_ACEOF
3110 #define DEF_PGPORT_STR "${default_port}"
3115 # It's worth validating port; you can get very confusing errors otherwise
3116 if test x"$default_port" = x""; then
3117 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3118 elif test ! x`echo "$default_port" | sed -e 's/[0-9]*//'` = x""; then
3119 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3120 elif test ! x`echo "$default_port" | sed -e 's/^0.//'` = x"$default_port"; then
3121 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3122 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3123 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3127 # '-rpath'-like feature can be disabled
3131 # Check whether --enable-rpath was given.
3132 if test "${enable_rpath+set}" = set; then :
3133 enableval=$enable_rpath;
3142 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3159 # Check whether --enable-spinlocks was given.
3160 if test "${enable_spinlocks+set}" = set; then :
3161 enableval=$enable_spinlocks;
3170 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3175 enable_spinlocks=yes
3186 # Check whether --enable-atomics was given.
3187 if test "${enable_atomics+set}" = set; then :
3188 enableval=$enable_atomics;
3197 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3209 # Random number generation
3213 # Check whether --enable-strong-random was given.
3214 if test "${enable_strong_random+set}" = set; then :
3215 enableval=$enable_strong_random;
3224 as_fn_error $? "no argument expected for --enable-strong-random option" "$LINENO" 5
3229 enable_strong_random=yes
3237 # --enable-debug adds -g to compiler flags
3241 # Check whether --enable-debug was given.
3242 if test "${enable_debug+set}" = set; then :
3243 enableval=$enable_debug;
3252 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3265 # --enable-profiling enables gcc profiling
3269 # Check whether --enable-profiling was given.
3270 if test "${enable_profiling+set}" = set; then :
3271 enableval=$enable_profiling;
3280 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3292 # --enable-coverage enables generation of code coverage metrics with gcov
3296 # Check whether --enable-coverage was given.
3297 if test "${enable_coverage+set}" = set; then :
3298 enableval=$enable_coverage;
3301 if test -z "$GCOV"; then
3304 # Extract the first word of "$ac_prog", so it can be a program name with args.
3305 set dummy $ac_prog; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_path_GCOV+:} false; then :
3309 $as_echo_n "(cached) " >&6
3313 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 GCOV=$ac_cv_path_GCOV
3335 if test -n "$GCOV"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3337 $as_echo "$GCOV" >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3344 test -n "$GCOV" && break
3348 # Report the value of GCOV in configure's output in all cases.
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3350 $as_echo_n "checking for GCOV... " >&6; }
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3352 $as_echo "$GCOV" >&6; }
3355 if test -z "$GCOV"; then
3356 as_fn_error $? "gcov not found" "$LINENO" 5
3358 if test -z "$LCOV"; then
3361 # Extract the first word of "$ac_prog", so it can be a program name with args.
3362 set dummy $ac_prog; ac_word=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if ${ac_cv_path_LCOV+:} false; then :
3366 $as_echo_n "(cached) " >&6
3370 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 LCOV=$ac_cv_path_LCOV
3392 if test -n "$LCOV"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3394 $as_echo "$LCOV" >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3401 test -n "$LCOV" && break
3405 # Report the value of LCOV in configure's output in all cases.
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3407 $as_echo_n "checking for LCOV... " >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3409 $as_echo "$LCOV" >&6; }
3412 if test -z "$LCOV"; then
3413 as_fn_error $? "lcov not found" "$LINENO" 5
3415 if test -z "$GENHTML"; then
3416 for ac_prog in genhtml
3418 # Extract the first word of "$ac_prog", so it can be a program name with args.
3419 set dummy $ac_prog; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_path_GENHTML+:} false; then :
3423 $as_echo_n "(cached) " >&6
3427 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 GENHTML=$ac_cv_path_GENHTML
3449 if test -n "$GENHTML"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3451 $as_echo "$GENHTML" >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3458 test -n "$GENHTML" && break
3462 # Report the value of GENHTML in configure's output in all cases.
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3464 $as_echo_n "checking for GENHTML... " >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3466 $as_echo "$GENHTML" >&6; }
3469 if test -z "$GENHTML"; then
3470 as_fn_error $? "genhtml not found" "$LINENO" 5
3477 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3494 # Check whether --enable-dtrace was given.
3495 if test "${enable_dtrace+set}" = set; then :
3496 enableval=$enable_dtrace;
3499 if test -z "$DTRACE"; then
3500 for ac_prog in dtrace
3502 # Extract the first word of "$ac_prog", so it can be a program name with args.
3503 set dummy $ac_prog; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if ${ac_cv_path_DTRACE+:} false; then :
3507 $as_echo_n "(cached) " >&6
3511 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 test -z "$as_dir" && as_dir=.
3519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3521 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 DTRACE=$ac_cv_path_DTRACE
3533 if test -n "$DTRACE"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3535 $as_echo "$DTRACE" >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3542 test -n "$DTRACE" && break
3546 # Report the value of DTRACE in configure's output in all cases.
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3548 $as_echo_n "checking for DTRACE... " >&6; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3550 $as_echo "$DTRACE" >&6; }
3553 if test -z "$DTRACE"; then
3554 as_fn_error $? "dtrace not found" "$LINENO" 5
3562 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3579 # Check whether --enable-tap-tests was given.
3580 if test "${enable_tap_tests+set}" = set; then :
3581 enableval=$enable_tap_tests;
3590 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3606 $as_echo_n "checking for block size... " >&6; }
3610 # Check whether --with-blocksize was given.
3611 if test "${with_blocksize+set}" = set; then :
3612 withval=$with_blocksize;
3615 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3618 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3630 case ${blocksize} in
3637 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3640 $as_echo "${blocksize}kB" >&6; }
3643 cat >>confdefs.h <<_ACEOF
3644 #define BLCKSZ ${BLCKSZ}
3649 # Relation segment size
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3652 $as_echo_n "checking for segment size... " >&6; }
3656 # Check whether --with-segsize was given.
3657 if test "${with_segsize+set}" = set; then :
3658 withval=$with_segsize;
3661 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3664 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3676 # this expression is set up to avoid unnecessary integer overflow
3677 # blocksize is already guaranteed to be a factor of 1024
3678 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3679 test $? -eq 0 || exit 1
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3681 $as_echo "${segsize}GB" >&6; }
3684 cat >>confdefs.h <<_ACEOF
3685 #define RELSEG_SIZE ${RELSEG_SIZE}
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3693 $as_echo_n "checking for WAL block size... " >&6; }
3697 # Check whether --with-wal-blocksize was given.
3698 if test "${with_wal_blocksize+set}" = set; then :
3699 withval=$with_wal_blocksize;
3702 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3705 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3708 wal_blocksize=$withval
3717 case ${wal_blocksize} in
3718 1) XLOG_BLCKSZ=1024;;
3719 2) XLOG_BLCKSZ=2048;;
3720 4) XLOG_BLCKSZ=4096;;
3721 8) XLOG_BLCKSZ=8192;;
3722 16) XLOG_BLCKSZ=16384;;
3723 32) XLOG_BLCKSZ=32768;;
3724 64) XLOG_BLCKSZ=65536;;
3725 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3728 $as_echo "${wal_blocksize}kB" >&6; }
3731 cat >>confdefs.h <<_ACEOF
3732 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL segment size" >&5
3740 $as_echo_n "checking for WAL segment size... " >&6; }
3744 # Check whether --with-wal-segsize was given.
3745 if test "${with_wal_segsize+set}" = set; then :
3746 withval=$with_wal_segsize;
3749 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3752 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3755 wal_segsize=$withval
3764 case ${wal_segsize} in
3776 *) as_fn_error $? "Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64,128,256,512,1024." "$LINENO" 5
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_segsize}MB" >&5
3779 $as_echo "${wal_segsize}MB" >&6; }
3782 cat >>confdefs.h <<_ACEOF
3783 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3791 # For historical reasons you can also use --with-CC to specify the C compiler
3792 # to use, although the standard way to do this is to set the CC environment
3797 # Check whether --with-CC was given.
3798 if test "${with_CC+set}" = set; then :
3802 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3805 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3817 aix) pgac_cc_list="gcc xlc";;
3818 *) pgac_cc_list="gcc cc";;
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 if test -n "$ac_tool_prefix"; then
3827 for ac_prog in $pgac_cc_list
3829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if ${ac_cv_prog_CC+:} false; then :
3834 $as_echo_n "(cached) " >&6
3836 if test -n "$CC"; then
3837 ac_cv_prog_CC="$CC" # Let the user override the test.
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 if test -n "$CC"; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3859 $as_echo "$CC" >&6; }
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3866 test -n "$CC" && break
3869 if test -z "$CC"; then
3871 for ac_prog in $pgac_cc_list
3873 # Extract the first word of "$ac_prog", so it can be a program name with args.
3874 set dummy $ac_prog; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3878 $as_echo_n "(cached) " >&6
3880 if test -n "$ac_ct_CC"; then
3881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 ac_cv_prog_ac_ct_CC="$ac_prog"
3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3901 if test -n "$ac_ct_CC"; then
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3903 $as_echo "$ac_ct_CC" >&6; }
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "no" >&6; }
3910 test -n "$ac_ct_CC" && break
3913 if test "x$ac_ct_CC" = x; then
3916 case $cross_compiling:$ac_tool_warned in
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3920 ac_tool_warned=yes ;;
3927 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929 as_fn_error $? "no acceptable C compiler found in \$PATH
3930 See \`config.log' for more details" "$LINENO" 5; }
3932 # Provide some information about the compiler.
3933 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3936 for ac_option in --version -v -V -qversion; do
3937 { { ac_try="$ac_compiler $ac_option >&5"
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3946 if test -s conftest.err; then
3948 ... rest of stderr output deleted ...
3949 10q' conftest.err >conftest.er1
3950 cat conftest.er1 >&5
3952 rm -f conftest.er1 conftest.err
3953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954 test $ac_status = 0; }
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3968 ac_clean_files_save=$ac_clean_files
3969 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3970 # Try to create an executable without -o first, disregard a.out.
3971 # It will help us diagnose broken compilers, and finding out an intuition
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3974 $as_echo_n "checking whether the C compiler works... " >&6; }
3975 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3977 # The possible output files:
3978 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3981 for ac_file in $ac_files
3984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3985 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3990 if { { ac_try="$ac_link_default"
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3996 $as_echo "$ac_try_echo"; } >&5
3997 (eval "$ac_link_default") 2>&5
3999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4000 test $ac_status = 0; }; then :
4001 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4002 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4003 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4004 # so that the user can short-circuit this test for compilers unknown to
4006 for ac_file in $ac_files ''
4008 test -f "$ac_file" || continue
4010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4013 # We found the default executable, but exeext='' is most
4017 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4019 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4021 # We set ac_cv_exeext here because the later test for it is not
4022 # safe: cross compilers may not add the suffix if given an `-o'
4023 # argument, so we may need to know it at that point already.
4024 # Even if this section looks crufty: it has the advantage of
4031 test "$ac_cv_exeext" = no && ac_cv_exeext=
4036 if test -z "$ac_file"; then :
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4039 $as_echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error 77 "C compiler cannot create executables
4045 See \`config.log' for more details" "$LINENO" 5; }
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4048 $as_echo "yes" >&6; }
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4051 $as_echo_n "checking for C compiler default output file name... " >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4053 $as_echo "$ac_file" >&6; }
4054 ac_exeext=$ac_cv_exeext
4056 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4057 ac_clean_files=$ac_clean_files_save
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4059 $as_echo_n "checking for suffix of executables... " >&6; }
4060 if { { ac_try="$ac_link"
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4066 $as_echo "$ac_try_echo"; } >&5
4067 (eval "$ac_link") 2>&5
4069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070 test $ac_status = 0; }; then :
4071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4073 # work properly (i.e., refer to `conftest.exe'), while it won't with
4075 for ac_file in conftest.exe conftest conftest.*; do
4076 test -f "$ac_file" || continue
4078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4087 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4088 See \`config.log' for more details" "$LINENO" 5; }
4090 rm -f conftest conftest$ac_cv_exeext
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4092 $as_echo "$ac_cv_exeext" >&6; }
4094 rm -f conftest.$ac_ext
4095 EXEEXT=$ac_cv_exeext
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4103 FILE *f = fopen ("conftest.out", "w");
4104 return ferror (f) || fclose (f) != 0;
4110 ac_clean_files="$ac_clean_files conftest.out"
4111 # Check that the compiler produces executables we can run. If not, either
4112 # the compiler is broken, or we cross compile.
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4114 $as_echo_n "checking whether we are cross compiling... " >&6; }
4115 if test "$cross_compiling" != yes; then
4116 { { ac_try="$ac_link"
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4122 $as_echo "$ac_try_echo"; } >&5
4123 (eval "$ac_link") 2>&5
4125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4126 test $ac_status = 0; }
4127 if { ac_try='./conftest$ac_cv_exeext'
4128 { { case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4133 $as_echo "$ac_try_echo"; } >&5
4134 (eval "$ac_try") 2>&5
4136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4137 test $ac_status = 0; }; }; then
4140 if test "$cross_compiling" = maybe; then
4143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4145 as_fn_error $? "cannot run C compiled programs.
4146 If you meant to cross compile, use \`--host'.
4147 See \`config.log' for more details" "$LINENO" 5; }
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4152 $as_echo "$cross_compiling" >&6; }
4154 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4155 ac_clean_files=$ac_clean_files_save
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4157 $as_echo_n "checking for suffix of object files... " >&6; }
4158 if ${ac_cv_objext+:} false; then :
4159 $as_echo_n "(cached) " >&6
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4172 rm -f conftest.o conftest.obj
4173 if { { ac_try="$ac_compile"
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4179 $as_echo "$ac_try_echo"; } >&5
4180 (eval "$ac_compile") 2>&5
4182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183 test $ac_status = 0; }; then :
4184 for ac_file in conftest.o conftest.obj conftest.*; do
4185 test -f "$ac_file" || continue;
4187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4188 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4193 $as_echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198 as_fn_error $? "cannot compute suffix of object files: cannot compile
4199 See \`config.log' for more details" "$LINENO" 5; }
4201 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4204 $as_echo "$ac_cv_objext" >&6; }
4205 OBJEXT=$ac_cv_objext
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4208 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4209 if ${ac_cv_c_compiler_gnu+:} false; then :
4210 $as_echo_n "(cached) " >&6
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4226 if ac_fn_c_try_compile "$LINENO"; then :
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4236 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4237 if test $ac_compiler_gnu = yes; then
4242 ac_test_CFLAGS=${CFLAGS+set}
4243 ac_save_CFLAGS=$CFLAGS
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4245 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4246 if ${ac_cv_prog_cc_g+:} false; then :
4247 $as_echo_n "(cached) " >&6
4249 ac_save_c_werror_flag=$ac_c_werror_flag
4250 ac_c_werror_flag=yes
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4264 if ac_fn_c_try_compile "$LINENO"; then :
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4279 if ac_fn_c_try_compile "$LINENO"; then :
4282 ac_c_werror_flag=$ac_save_c_werror_flag
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4295 if ac_fn_c_try_compile "$LINENO"; then :
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 ac_c_werror_flag=$ac_save_c_werror_flag
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4306 $as_echo "$ac_cv_prog_cc_g" >&6; }
4307 if test "$ac_test_CFLAGS" = set; then
4308 CFLAGS=$ac_save_CFLAGS
4309 elif test $ac_cv_prog_cc_g = yes; then
4310 if test "$GCC" = yes; then
4316 if test "$GCC" = yes; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4323 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4324 if ${ac_cv_prog_cc_c89+:} false; then :
4325 $as_echo_n "(cached) " >&6
4327 ac_cv_prog_cc_c89=no
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4335 struct buf { int x; };
4336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4337 static char *e (p, i)
4343 static char *f (char * (*g) (char **, int), char **p, ...)
4348 s = g (p, va_arg (v,int));
4353 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4354 function prototypes and stuff, but not '\xHH' hex character constants.
4355 These don't provoke an error unfortunately, instead are silently treated
4356 as 'x'. The following induces an error, until -std is added to get
4357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4358 array size at least. It's necessary to write '\x00'==0 to get something
4359 that's true only with -std. */
4360 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4362 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4363 inside strings and character constants. */
4365 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4367 int test (int i, double x);
4368 struct s1 {int (*f) (int a);};
4369 struct s2 {int (*f) (double a);};
4370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4384 CC="$ac_save_CC $ac_arg"
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386 ac_cv_prog_cc_c89=$ac_arg
4388 rm -f core conftest.err conftest.$ac_objext
4389 test "x$ac_cv_prog_cc_c89" != "xno" && break
4391 rm -f conftest.$ac_ext
4396 case "x$ac_cv_prog_cc_c89" in
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4399 $as_echo "none needed" >&6; } ;;
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4402 $as_echo "unsupported" >&6; } ;;
4404 CC="$CC $ac_cv_prog_cc_c89"
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4406 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4408 if test "x$ac_cv_prog_cc_c89" != xno; then :
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4420 # but has idiosyncrasies of its own. We assume icc will define
4421 # __INTEL_COMPILER regardless of CFLAGS.
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4429 #ifndef __INTEL_COMPILER
4436 if ac_fn_c_try_compile "$LINENO"; then :
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 # Check if it's Sun Studio compiler. We assume that
4444 # __SUNPRO_C will be defined for Sun Studio compilers
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4458 if ac_fn_c_try_compile "$LINENO"; then :
4463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 . "$srcdir/src/template/$template" || exit
4474 # CFLAGS are selected so:
4475 # If the user specifies something in the environment, that is used.
4476 # else: If the template file set something, that is used.
4477 # else: If coverage was enabled, don't set anything.
4478 # else: If the compiler is GCC, then we use -O2.
4479 # else: If the compiler is something else, then we use -O, unless debugging.
4481 if test "$ac_env_CFLAGS_set" = set; then
4482 CFLAGS=$ac_env_CFLAGS_value
4483 elif test "${CFLAGS+set}" = set; then
4484 : # (keep what template set)
4485 elif test "$enable_coverage" = yes; then
4486 : # no optimization by default
4487 elif test "$GCC" = yes; then
4490 # if the user selected debug mode, don't use -O
4491 if test "$enable_debug" != yes; then
4496 # CFLAGS we determined above will be added back at the end
4500 # set CFLAGS_VECTOR from the environment, if available
4501 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
4502 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
4505 # Some versions of GCC support some additional useful warning flags.
4506 # Check whether they are supported, and add them to CFLAGS if so.
4507 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4508 # but has its own. Also check other compiler-specific flags here.
4510 if test "$GCC" = yes -a "$ICC" = no; then
4511 CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith"
4512 # These work in some but not all gcc versions
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
4514 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4515 if ${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+:} false; then :
4516 $as_echo_n "(cached) " >&6
4518 pgac_save_CFLAGS=$CFLAGS
4519 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4520 ac_save_c_werror_flag=$ac_c_werror_flag
4521 ac_c_werror_flag=yes
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4533 if ac_fn_c_try_compile "$LINENO"; then :
4534 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4536 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539 ac_c_werror_flag=$ac_save_c_werror_flag
4540 CFLAGS="$pgac_save_CFLAGS"
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4543 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4544 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4545 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wendif-labels" >&5
4549 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4550 if ${pgac_cv_prog_cc_cflags__Wendif_labels+:} false; then :
4551 $as_echo_n "(cached) " >&6
4553 pgac_save_CFLAGS=$CFLAGS
4554 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4555 ac_save_c_werror_flag=$ac_c_werror_flag
4556 ac_c_werror_flag=yes
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4571 pgac_cv_prog_cc_cflags__Wendif_labels=no
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 ac_c_werror_flag=$ac_save_c_werror_flag
4575 CFLAGS="$pgac_save_CFLAGS"
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4578 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4579 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4580 CFLAGS="$CFLAGS -Wendif-labels"
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-format-attribute" >&5
4584 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4585 if ${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+:} false; then :
4586 $as_echo_n "(cached) " >&6
4588 pgac_save_CFLAGS=$CFLAGS
4589 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4590 ac_save_c_werror_flag=$ac_c_werror_flag
4591 ac_c_werror_flag=yes
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4603 if ac_fn_c_try_compile "$LINENO"; then :
4604 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4606 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 ac_c_werror_flag=$ac_save_c_werror_flag
4610 CFLAGS="$pgac_save_CFLAGS"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4613 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4614 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4615 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4618 # This was included in -Wall/-Wformat in older GCC versions
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security" >&5
4620 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4621 if ${pgac_cv_prog_cc_cflags__Wformat_security+:} false; then :
4622 $as_echo_n "(cached) " >&6
4624 pgac_save_CFLAGS=$CFLAGS
4625 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4626 ac_save_c_werror_flag=$ac_c_werror_flag
4627 ac_c_werror_flag=yes
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640 pgac_cv_prog_cc_cflags__Wformat_security=yes
4642 pgac_cv_prog_cc_cflags__Wformat_security=no
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 ac_c_werror_flag=$ac_save_c_werror_flag
4646 CFLAGS="$pgac_save_CFLAGS"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4649 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4650 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4651 CFLAGS="$CFLAGS -Wformat-security"
4654 # Disable strict-aliasing rules; needed for gcc 3.3+
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4656 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4657 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4658 $as_echo_n "(cached) " >&6
4660 pgac_save_CFLAGS=$CFLAGS
4661 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4662 ac_save_c_werror_flag=$ac_c_werror_flag
4663 ac_c_werror_flag=yes
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4678 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 ac_c_werror_flag=$ac_save_c_werror_flag
4682 CFLAGS="$pgac_save_CFLAGS"
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4685 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4686 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4687 CFLAGS="$CFLAGS -fno-strict-aliasing"
4690 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fwrapv" >&5
4692 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4693 if ${pgac_cv_prog_cc_cflags__fwrapv+:} false; then :
4694 $as_echo_n "(cached) " >&6
4696 pgac_save_CFLAGS=$CFLAGS
4697 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4698 ac_save_c_werror_flag=$ac_c_werror_flag
4699 ac_c_werror_flag=yes
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712 pgac_cv_prog_cc_cflags__fwrapv=yes
4714 pgac_cv_prog_cc_cflags__fwrapv=no
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 ac_c_werror_flag=$ac_save_c_werror_flag
4718 CFLAGS="$pgac_save_CFLAGS"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4721 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4722 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4723 CFLAGS="$CFLAGS -fwrapv"
4726 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fexcess-precision=standard" >&5
4728 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4729 if ${pgac_cv_prog_cc_cflags__fexcess_precision_standard+:} false; then :
4730 $as_echo_n "(cached) " >&6
4732 pgac_save_CFLAGS=$CFLAGS
4733 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4734 ac_save_c_werror_flag=$ac_c_werror_flag
4735 ac_c_werror_flag=yes
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4747 if ac_fn_c_try_compile "$LINENO"; then :
4748 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4750 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 ac_c_werror_flag=$ac_save_c_werror_flag
4754 CFLAGS="$pgac_save_CFLAGS"
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4757 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4758 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4759 CFLAGS="$CFLAGS -fexcess-precision=standard"
4762 # Optimization flags for specific files that benefit from vectorization
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -funroll-loops" >&5
4764 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4765 if ${pgac_cv_prog_cc_cflags__funroll_loops+:} false; then :
4766 $as_echo_n "(cached) " >&6
4768 pgac_save_CFLAGS=$CFLAGS
4769 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4770 ac_save_c_werror_flag=$ac_c_werror_flag
4771 ac_c_werror_flag=yes
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4783 if ac_fn_c_try_compile "$LINENO"; then :
4784 pgac_cv_prog_cc_cflags__funroll_loops=yes
4786 pgac_cv_prog_cc_cflags__funroll_loops=no
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 ac_c_werror_flag=$ac_save_c_werror_flag
4790 CFLAGS="$pgac_save_CFLAGS"
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4793 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4794 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4795 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftree-vectorize" >&5
4799 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4800 if ${pgac_cv_prog_cc_cflags__ftree_vectorize+:} false; then :
4801 $as_echo_n "(cached) " >&6
4803 pgac_save_CFLAGS=$CFLAGS
4804 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4805 ac_save_c_werror_flag=$ac_c_werror_flag
4806 ac_c_werror_flag=yes
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4818 if ac_fn_c_try_compile "$LINENO"; then :
4819 pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4821 pgac_cv_prog_cc_cflags__ftree_vectorize=no
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 ac_c_werror_flag=$ac_save_c_werror_flag
4825 CFLAGS="$pgac_save_CFLAGS"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4828 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4829 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4830 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4833 # We want to suppress clang's unhelpful unused-command-line-argument warnings
4834 # but gcc won't complain about unrecognized -Wno-foo switches, so we have to
4835 # test for the positive form and if that works, add the negative form
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-command-line-argument" >&5
4837 $as_echo_n "checking whether $CC supports -Wunused-command-line-argument... " >&6; }
4838 if ${pgac_cv_prog_cc_cflags__Wunused_command_line_argument+:} false; then :
4839 $as_echo_n "(cached) " >&6
4841 pgac_save_CFLAGS=$CFLAGS
4842 CFLAGS="$pgac_save_CFLAGS -Wunused-command-line-argument"
4843 ac_save_c_werror_flag=$ac_c_werror_flag
4844 ac_c_werror_flag=yes
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4856 if ac_fn_c_try_compile "$LINENO"; then :
4857 pgac_cv_prog_cc_cflags__Wunused_command_line_argument=yes
4859 pgac_cv_prog_cc_cflags__Wunused_command_line_argument=no
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 ac_c_werror_flag=$ac_save_c_werror_flag
4863 CFLAGS="$pgac_save_CFLAGS"
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wunused_command_line_argument" >&5
4866 $as_echo "$pgac_cv_prog_cc_cflags__Wunused_command_line_argument" >&6; }
4867 if test x"$pgac_cv_prog_cc_cflags__Wunused_command_line_argument" = x"yes"; then
4868 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
4871 if test -n "$NOT_THE_CFLAGS"; then
4872 CFLAGS="$CFLAGS -Wno-unused-command-line-argument"
4874 elif test "$ICC" = yes; then
4875 # Intel's compiler has a bug/misoptimization in checking for
4876 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mp1" >&5
4878 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4879 if ${pgac_cv_prog_cc_cflags__mp1+:} false; then :
4880 $as_echo_n "(cached) " >&6
4882 pgac_save_CFLAGS=$CFLAGS
4883 CFLAGS="$pgac_save_CFLAGS -mp1"
4884 ac_save_c_werror_flag=$ac_c_werror_flag
4885 ac_c_werror_flag=yes
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4897 if ac_fn_c_try_compile "$LINENO"; then :
4898 pgac_cv_prog_cc_cflags__mp1=yes
4900 pgac_cv_prog_cc_cflags__mp1=no
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 ac_c_werror_flag=$ac_save_c_werror_flag
4904 CFLAGS="$pgac_save_CFLAGS"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4907 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4908 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4909 CFLAGS="$CFLAGS -mp1"
4912 # Make sure strict aliasing is off (though this is said to be the default)
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4914 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4915 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4916 $as_echo_n "(cached) " >&6
4918 pgac_save_CFLAGS=$CFLAGS
4919 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4920 ac_save_c_werror_flag=$ac_c_werror_flag
4921 ac_c_werror_flag=yes
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4933 if ac_fn_c_try_compile "$LINENO"; then :
4934 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4936 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 ac_c_werror_flag=$ac_save_c_werror_flag
4940 CFLAGS="$pgac_save_CFLAGS"
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4943 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4944 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4945 CFLAGS="$CFLAGS -fno-strict-aliasing"
4948 elif test "$PORTNAME" = "aix"; then
4949 # AIX's xlc has to have strict aliasing turned off too
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qnoansialias" >&5
4951 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4952 if ${pgac_cv_prog_cc_cflags__qnoansialias+:} false; then :
4953 $as_echo_n "(cached) " >&6
4955 pgac_save_CFLAGS=$CFLAGS
4956 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4957 ac_save_c_werror_flag=$ac_c_werror_flag
4958 ac_c_werror_flag=yes
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4970 if ac_fn_c_try_compile "$LINENO"; then :
4971 pgac_cv_prog_cc_cflags__qnoansialias=yes
4973 pgac_cv_prog_cc_cflags__qnoansialias=no
4975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 ac_c_werror_flag=$ac_save_c_werror_flag
4977 CFLAGS="$pgac_save_CFLAGS"
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4980 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4981 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4982 CFLAGS="$CFLAGS -qnoansialias"
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qlonglong" >&5
4986 $as_echo_n "checking whether $CC supports -qlonglong... " >&6; }
4987 if ${pgac_cv_prog_cc_cflags__qlonglong+:} false; then :
4988 $as_echo_n "(cached) " >&6
4990 pgac_save_CFLAGS=$CFLAGS
4991 CFLAGS="$pgac_save_CFLAGS -qlonglong"
4992 ac_save_c_werror_flag=$ac_c_werror_flag
4993 ac_c_werror_flag=yes
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
5005 if ac_fn_c_try_compile "$LINENO"; then :
5006 pgac_cv_prog_cc_cflags__qlonglong=yes
5008 pgac_cv_prog_cc_cflags__qlonglong=no
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 ac_c_werror_flag=$ac_save_c_werror_flag
5012 CFLAGS="$pgac_save_CFLAGS"
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qlonglong" >&5
5015 $as_echo "$pgac_cv_prog_cc_cflags__qlonglong" >&6; }
5016 if test x"$pgac_cv_prog_cc_cflags__qlonglong" = x"yes"; then
5017 CFLAGS="$CFLAGS -qlonglong"
5020 elif test "$PORTNAME" = "hpux"; then
5021 # On some versions of HP-UX, libm functions do not set errno by default.
5022 # Fix that by using +Olibmerrno if the compiler recognizes it.
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports +Olibmerrno" >&5
5024 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
5025 if ${pgac_cv_prog_cc_cflags_pOlibmerrno+:} false; then :
5026 $as_echo_n "(cached) " >&6
5028 pgac_save_CFLAGS=$CFLAGS
5029 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
5030 ac_save_c_werror_flag=$ac_c_werror_flag
5031 ac_c_werror_flag=yes
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
5046 pgac_cv_prog_cc_cflags_pOlibmerrno=no
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049 ac_c_werror_flag=$ac_save_c_werror_flag
5050 CFLAGS="$pgac_save_CFLAGS"
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
5053 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
5054 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
5055 CFLAGS="$CFLAGS +Olibmerrno"
5060 CFLAGS_VECTOR=$CFLAGS_VECTOR
5063 # supply -g if --enable-debug
5064 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
5068 # enable code coverage if --enable-coverage
5069 if test "$enable_coverage" = yes; then
5070 if test "$GCC" = yes; then
5071 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
5073 as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5
5077 # enable profiling if --enable-profiling
5078 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
5079 if test "$GCC" = yes; then
5081 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
5083 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
5085 as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5
5089 # We already have this in Makefile.win32, but configure needs it too
5090 if test "$PORTNAME" = "win32"; then
5091 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
5094 # Now that we're done automatically adding stuff to CFLAGS, put back the
5095 # user-specified flags (if any) at the end. This lets users override
5096 # the automatic additions.
5097 CFLAGS="$CFLAGS $user_CFLAGS"
5099 # Check if the compiler still works with the final flag settings
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
5101 $as_echo_n "checking whether the C compiler still works... " >&6; }
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5113 if ac_fn_c_try_link "$LINENO"; then :
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5115 $as_echo "yes" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 as_fn_error $? "cannot proceed" "$LINENO" 5
5121 rm -f core conftest.err conftest.$ac_objext \
5122 conftest$ac_exeext conftest.$ac_ext
5124 # Defend against gcc -ffast-math
5125 if test "$GCC" = yes; then
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5132 #ifdef __FAST_MATH__
5139 if ac_fn_c_try_compile "$LINENO"; then :
5142 as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148 ac_cpp='$CPP $CPPFLAGS'
5149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5153 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5154 # On Suns, sometimes $CPP names a directory.
5155 if test -n "$CPP" && test -d "$CPP"; then
5158 if test -z "$CPP"; then
5159 if ${ac_cv_prog_CPP+:} false; then :
5160 $as_echo_n "(cached) " >&6
5162 # Double quotes because CPP needs to be expanded
5163 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5166 for ac_c_preproc_warn_flag in '' yes
5168 # Use a header file that comes with gcc, so configuring glibc
5169 # with a fresh cross-compiler works.
5170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5171 # <limits.h> exists even on freestanding compilers.
5172 # On the NeXT, cc -E runs the code through the compiler's parser,
5173 # not just through cpp. "Syntax error" is here to catch this case.
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5177 # include <limits.h>
5179 # include <assert.h>
5183 if ac_fn_c_try_cpp "$LINENO"; then :
5186 # Broken: fails on valid input.
5189 rm -f conftest.err conftest.i conftest.$ac_ext
5191 # OK, works on sane cases. Now check whether nonexistent headers
5192 # can be detected and how.
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195 #include <ac_nonexistent.h>
5197 if ac_fn_c_try_cpp "$LINENO"; then :
5198 # Broken: success on invalid input.
5201 # Passes both tests.
5205 rm -f conftest.err conftest.i conftest.$ac_ext
5208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5209 rm -f conftest.i conftest.err conftest.$ac_ext
5210 if $ac_preproc_ok; then :
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5223 $as_echo "$CPP" >&6; }
5225 for ac_c_preproc_warn_flag in '' yes
5227 # Use a header file that comes with gcc, so configuring glibc
5228 # with a fresh cross-compiler works.
5229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5230 # <limits.h> exists even on freestanding compilers.
5231 # On the NeXT, cc -E runs the code through the compiler's parser,
5232 # not just through cpp. "Syntax error" is here to catch this case.
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5236 # include <limits.h>
5238 # include <assert.h>
5242 if ac_fn_c_try_cpp "$LINENO"; then :
5245 # Broken: fails on valid input.
5248 rm -f conftest.err conftest.i conftest.$ac_ext
5250 # OK, works on sane cases. Now check whether nonexistent headers
5251 # can be detected and how.
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 #include <ac_nonexistent.h>
5256 if ac_fn_c_try_cpp "$LINENO"; then :
5257 # Broken: success on invalid input.
5260 # Passes both tests.
5264 rm -f conftest.err conftest.i conftest.$ac_ext
5267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5268 rm -f conftest.i conftest.err conftest.$ac_ext
5269 if $ac_preproc_ok; then :
5272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5274 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5275 See \`config.log' for more details" "$LINENO" 5; }
5279 ac_cpp='$CPP $CPPFLAGS'
5280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5288 # Set up TAS assembly code if needed; the template file has now had its
5289 # chance to request this.
5291 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5294 if test "$need_tas" = yes ; then
5303 # Automatic dependency tracking
5307 # Check whether --enable-depend was given.
5308 if test "${enable_depend+set}" = set; then :
5309 enableval=$enable_depend;
5318 as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5
5332 # Enable assert checks
5336 # Check whether --enable-cassert was given.
5337 if test "${enable_cassert+set}" = set; then :
5338 enableval=$enable_cassert;
5342 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
5349 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
5362 # Include directories
5365 IFS="${IFS}${PATH_SEPARATOR}"
5366 # SRCH_INC comes from the template file
5367 for dir in $with_includes $SRCH_INC; do
5368 if test -d "$dir"; then
5369 INCLUDES="$INCLUDES -I$dir"
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
5372 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5380 # Library directories
5383 IFS="${IFS}${PATH_SEPARATOR}"
5384 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5385 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5386 if test -d "$dir"; then
5387 LIBDIRS="$LIBDIRS -L$dir"
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
5390 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5396 # Enable thread-safe client libraries
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
5399 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5402 # Check whether --enable-thread-safety was given.
5403 if test "${enable_thread_safety+set}" = set; then :
5404 enableval=$enable_thread_safety;
5413 as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5
5418 enable_thread_safety=yes
5423 if test "$enable_thread_safety" = yes; then
5425 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
5429 $as_echo "$enable_thread_safety" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
5436 $as_echo_n "checking whether to build with ICU support... " >&6; }
5440 # Check whether --with-icu was given.
5441 if test "${with_icu+set}" = set; then :
5446 $as_echo "#define USE_ICU 1" >>confdefs.h
5453 as_fn_error $? "no argument expected for --with-icu option" "$LINENO" 5
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
5464 $as_echo "$with_icu" >&6; }
5467 if test "$with_icu" = yes; then
5475 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5476 if test -n "$ac_tool_prefix"; then
5477 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5478 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5482 $as_echo_n "(cached) " >&6
5486 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5508 if test -n "$PKG_CONFIG"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5510 $as_echo "$PKG_CONFIG" >&6; }
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5518 if test -z "$ac_cv_path_PKG_CONFIG"; then
5519 ac_pt_PKG_CONFIG=$PKG_CONFIG
5520 # Extract the first word of "pkg-config", so it can be a program name with args.
5521 set dummy pkg-config; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5525 $as_echo_n "(cached) " >&6
5527 case $ac_pt_PKG_CONFIG in
5529 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5551 if test -n "$ac_pt_PKG_CONFIG"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5553 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5559 if test "x$ac_pt_PKG_CONFIG" = x; then
5562 case $cross_compiling:$ac_tool_warned in
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5566 ac_tool_warned=yes ;;
5568 PKG_CONFIG=$ac_pt_PKG_CONFIG
5571 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5575 if test -n "$PKG_CONFIG"; then
5576 _pkg_min_version=0.9.0
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5578 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5579 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5581 $as_echo "yes" >&6; }
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 $as_echo "no" >&6; }
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
5591 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
5593 if test -n "$ICU_CFLAGS"; then
5594 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
5595 elif test -n "$PKG_CONFIG"; then
5596 if test -n "$PKG_CONFIG" && \
5597 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
5598 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
5600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601 test $ac_status = 0; }; then
5602 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
5603 test "x$?" != "x0" && pkg_failed=yes
5610 if test -n "$ICU_LIBS"; then
5611 pkg_cv_ICU_LIBS="$ICU_LIBS"
5612 elif test -n "$PKG_CONFIG"; then
5613 if test -n "$PKG_CONFIG" && \
5614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
5615 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
5617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5618 test $ac_status = 0; }; then
5619 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
5620 test "x$?" != "x0" && pkg_failed=yes
5630 if test $pkg_failed = yes; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5634 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5635 _pkg_short_errors_supported=yes
5637 _pkg_short_errors_supported=no
5639 if test $_pkg_short_errors_supported = yes; then
5640 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
5642 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
5644 # Put the nasty error message in config.log where it belongs
5645 echo "$ICU_PKG_ERRORS" >&5
5647 as_fn_error $? "Package requirements (icu-uc icu-i18n) were not met:
5651 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5652 installed software in a non-standard prefix.
5654 Alternatively, you may set the environment variables ICU_CFLAGS
5655 and ICU_LIBS to avoid the need to call pkg-config.
5656 See the pkg-config man page for more details." "$LINENO" 5
5657 elif test $pkg_failed = untried; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5662 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5663 is in your PATH or set the PKG_CONFIG environment variable to the full
5666 Alternatively, you may set the environment variables ICU_CFLAGS
5667 and ICU_LIBS to avoid the need to call pkg-config.
5668 See the pkg-config man page for more details.
5670 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5671 See \`config.log' for more details" "$LINENO" 5; }
5673 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
5674 ICU_LIBS=$pkg_cv_ICU_LIBS
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5676 $as_echo "yes" >&6; }
5682 # Optionally build Tcl modules (PL/Tcl)
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
5685 $as_echo_n "checking whether to build with Tcl... " >&6; }
5689 # Check whether --with-tcl was given.
5690 if test "${with_tcl+set}" = set; then :
5700 as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
5711 $as_echo "$with_tcl" >&6; }
5714 # We see if the path to the Tcl/Tk configuration scripts is specified.
5715 # This will override the use of tclsh to find the paths to search.
5720 # Check whether --with-tclconfig was given.
5721 if test "${with_tclconfig+set}" = set; then :
5722 withval=$with_tclconfig;
5725 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5728 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5740 # Optionally build Perl modules (PL/Perl)
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
5743 $as_echo_n "checking whether to build Perl modules... " >&6; }
5747 # Check whether --with-perl was given.
5748 if test "${with_perl+set}" = set; then :
5758 as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
5769 $as_echo "$with_perl" >&6; }
5773 # Optionally build Python modules (PL/Python)
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
5776 $as_echo_n "checking whether to build Python modules... " >&6; }
5780 # Check whether --with-python was given.
5781 if test "${with_python+set}" = set; then :
5782 withval=$with_python;
5791 as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
5802 $as_echo "$with_python" >&6; }
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
5809 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5813 # Check whether --with-gssapi was given.
5814 if test "${with_gssapi+set}" = set; then :
5815 withval=$with_gssapi;
5820 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
5822 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5829 as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
5840 $as_echo "$with_gssapi" >&6; }
5847 # Kerberos configuration parameters
5852 # Check whether --with-krb-srvnam was given.
5853 if test "${with_krb_srvnam+set}" = set; then :
5854 withval=$with_krb_srvnam;
5857 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5860 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5868 with_krb_srvnam="postgres"
5873 cat >>confdefs.h <<_ACEOF
5874 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
5883 $as_echo_n "checking whether to build with PAM support... " >&6; }
5887 # Check whether --with-pam was given.
5888 if test "${with_pam+set}" = set; then :
5893 $as_echo "#define USE_PAM 1" >>confdefs.h
5900 as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
5911 $as_echo "$with_pam" >&6; }
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
5918 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
5922 # Check whether --with-bsd-auth was given.
5923 if test "${with_bsd_auth+set}" = set; then :
5924 withval=$with_bsd_auth;
5928 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
5935 as_fn_error $? "no argument expected for --with-bsd-auth option" "$LINENO" 5
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
5946 $as_echo "$with_bsd_auth" >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
5953 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5957 # Check whether --with-ldap was given.
5958 if test "${with_ldap+set}" = set; then :
5963 $as_echo "#define USE_LDAP 1" >>confdefs.h
5970 as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
5981 $as_echo "$with_ldap" >&6; }
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
5988 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5992 # Check whether --with-bonjour was given.
5993 if test "${with_bonjour+set}" = set; then :
5994 withval=$with_bonjour;
5998 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
6005 as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
6016 $as_echo "$with_bonjour" >&6; }
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
6023 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
6027 # Check whether --with-openssl was given.
6028 if test "${with_openssl+set}" = set; then :
6029 withval=$with_openssl;
6033 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
6040 as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
6051 $as_echo "$with_openssl" >&6; }
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
6058 $as_echo_n "checking whether to build with SELinux support... " >&6; }
6062 # Check whether --with-selinux was given.
6063 if test "${with_selinux+set}" = set; then :
6064 withval=$with_selinux;
6073 as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
6085 $as_echo "$with_selinux" >&6; }
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
6091 $as_echo_n "checking whether to build with systemd support... " >&6; }
6095 # Check whether --with-systemd was given.
6096 if test "${with_systemd+set}" = set; then :
6097 withval=$with_systemd;
6101 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
6108 as_fn_error $? "no argument expected for --with-systemd option" "$LINENO" 5
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
6120 $as_echo "$with_systemd" >&6; }
6128 # Check whether --with-readline was given.
6129 if test "${with_readline+set}" = set; then :
6130 withval=$with_readline;
6139 as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5
6149 # readline on MinGW has problems with backslashes in psql and other bugs.
6150 # This is particularly a problem with non-US code pages.
6151 # Therefore disable its use until we understand the cause. 2004-07-20
6152 if test "$PORTNAME" = "win32"; then
6153 if test "$with_readline" = yes; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
6155 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
6167 # Check whether --with-libedit-preferred was given.
6168 if test "${with_libedit_preferred+set}" = set; then :
6169 withval=$with_libedit_preferred;
6178 as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5
6183 with_libedit_preferred=no
6193 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
6194 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
6195 # UUID library. More than one of these might be present on a given platform,
6196 # so we make the user say which one she wants.
6201 # Check whether --with-uuid was given.
6202 if test "${with_uuid+set}" = set; then :
6206 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
6209 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
6219 if test x"$with_uuid" = x"" ; then
6225 # Check whether --with-ossp-uuid was given.
6226 if test "${with_ossp_uuid+set}" = set; then :
6227 withval=$with_ossp_uuid;
6236 as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5
6246 if test "$with_ossp_uuid" = yes ; then
6250 if test "$with_uuid" = bsd ; then
6252 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
6254 UUID_EXTRA_OBJS="md5.o sha1.o"
6255 elif test "$with_uuid" = e2fs ; then
6257 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
6259 UUID_EXTRA_OBJS="md5.o sha1.o"
6260 elif test "$with_uuid" = ossp ; then
6262 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
6265 elif test "$with_uuid" = no ; then
6268 as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
6280 # Check whether --with-libxml was given.
6281 if test "${with_libxml+set}" = set; then :
6282 withval=$with_libxml;
6286 $as_echo "#define USE_LIBXML 1" >>confdefs.h
6293 as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5
6304 if test "$with_libxml" = yes ; then
6305 if test -z "$XML2_CONFIG"; then
6306 for ac_prog in xml2-config
6308 # Extract the first word of "$ac_prog", so it can be a program name with args.
6309 set dummy $ac_prog; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_path_XML2_CONFIG+:} false; then :
6313 $as_echo_n "(cached) " >&6
6315 case $XML2_CONFIG in
6317 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
6339 if test -n "$XML2_CONFIG"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
6341 $as_echo "$XML2_CONFIG" >&6; }
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6348 test -n "$XML2_CONFIG" && break
6352 # Report the value of XML2_CONFIG in configure's output in all cases.
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
6354 $as_echo_n "checking for XML2_CONFIG... " >&6; }
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
6356 $as_echo "$XML2_CONFIG" >&6; }
6359 if test -n "$XML2_CONFIG"; then
6360 for pgac_option in `$XML2_CONFIG --cflags`; do
6361 case $pgac_option in
6362 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
6365 for pgac_option in `$XML2_CONFIG --libs`; do
6366 case $pgac_option in
6367 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
6381 # Check whether --with-libxslt was given.
6382 if test "${with_libxslt+set}" = set; then :
6383 withval=$with_libxslt;
6387 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
6394 as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5
6414 # Check whether --with-system-tzdata was given.
6415 if test "${with_system_tzdata+set}" = set; then :
6416 withval=$with_system_tzdata;
6419 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
6422 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
6440 # Check whether --with-zlib was given.
6441 if test "${with_zlib+set}" = set; then :
6451 as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5
6467 # Assume system is ELF if it predefines __ELF__ as 1,
6468 # otherwise believe host_os based default.
6470 freebsd1*|freebsd2*) elf=no;;
6471 freebsd3*|freebsd4*) elf=yes;;
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6476 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6477 if ${ac_cv_path_GREP+:} false; then :
6478 $as_echo_n "(cached) " >&6
6480 if test -z "$GREP"; then
6481 ac_path_GREP_found=false
6482 # Loop through the user's path and test for each of PROGNAME-LIST
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6487 test -z "$as_dir" && as_dir=.
6488 for ac_prog in grep ggrep; do
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6491 as_fn_executable_p "$ac_path_GREP" || continue
6492 # Check for GNU ac_path_GREP and select it if it is found.
6493 # Check for GNU $ac_path_GREP
6494 case `"$ac_path_GREP" --version 2>&1` in
6496 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6499 $as_echo_n 0123456789 >"conftest.in"
6502 cat "conftest.in" "conftest.in" >"conftest.tmp"
6503 mv "conftest.tmp" "conftest.in"
6504 cp "conftest.in" "conftest.nl"
6505 $as_echo 'GREP' >> "conftest.nl"
6506 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6508 as_fn_arith $ac_count + 1 && ac_count=$as_val
6509 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6510 # Best one so far, save it but keep looking for a better one
6511 ac_cv_path_GREP="$ac_path_GREP"
6512 ac_path_GREP_max=$ac_count
6514 # 10*(2^10) chars as input seems more than enough
6515 test $ac_count -gt 10 && break
6517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6520 $ac_path_GREP_found && break 3
6525 if test -z "$ac_cv_path_GREP"; then
6526 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6529 ac_cv_path_GREP=$GREP
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6534 $as_echo "$ac_cv_path_GREP" >&6; }
6535 GREP="$ac_cv_path_GREP"
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6539 $as_echo_n "checking for egrep... " >&6; }
6540 if ${ac_cv_path_EGREP+:} false; then :
6541 $as_echo_n "(cached) " >&6
6543 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6544 then ac_cv_path_EGREP="$GREP -E"
6546 if test -z "$EGREP"; then
6547 ac_path_EGREP_found=false
6548 # Loop through the user's path and test for each of PROGNAME-LIST
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6553 test -z "$as_dir" && as_dir=.
6554 for ac_prog in egrep; do
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6557 as_fn_executable_p "$ac_path_EGREP" || continue
6558 # Check for GNU ac_path_EGREP and select it if it is found.
6559 # Check for GNU $ac_path_EGREP
6560 case `"$ac_path_EGREP" --version 2>&1` in
6562 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6565 $as_echo_n 0123456789 >"conftest.in"
6568 cat "conftest.in" "conftest.in" >"conftest.tmp"
6569 mv "conftest.tmp" "conftest.in"
6570 cp "conftest.in" "conftest.nl"
6571 $as_echo 'EGREP' >> "conftest.nl"
6572 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6574 as_fn_arith $ac_count + 1 && ac_count=$as_val
6575 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6576 # Best one so far, save it but keep looking for a better one
6577 ac_cv_path_EGREP="$ac_path_EGREP"
6578 ac_path_EGREP_max=$ac_count
6580 # 10*(2^10) chars as input seems more than enough
6581 test $ac_count -gt 10 && break
6583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6586 $ac_path_EGREP_found && break 3
6591 if test -z "$ac_cv_path_EGREP"; then
6592 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6595 ac_cv_path_EGREP=$EGREP
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6601 $as_echo "$ac_cv_path_EGREP" >&6; }
6602 EGREP="$ac_cv_path_EGREP"
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6613 $EGREP "yes" >/dev/null 2>&1; then :
6616 if test "X$elf" = "Xyes" ; then
6630 CPPFLAGS="$CPPFLAGS $INCLUDES"
6631 LDFLAGS="$LDFLAGS $LIBDIRS"
6637 # Check whether --with-gnu-ld was given.
6638 if test "${with_gnu_ld+set}" = set; then :
6639 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6645 if test "$GCC" = yes; then
6646 # Check if gcc -print-prog-name=ld gives a path.
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6648 $as_echo_n "checking for ld used by GCC... " >&6; }
6651 # gcc leaves a trailing carriage return which upsets mingw
6652 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6654 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6657 # Accept absolute paths.
6658 [\\/]* | [A-Za-z]:[\\/]*)
6659 re_direlt='/[^/][^/]*/\.\./'
6660 # Canonicalize the path of ld
6661 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6662 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6663 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6665 test -z "$LD" && LD="$ac_prog"
6668 # If it fails, then pretend we aren't using GCC.
6672 # If it is relative, then search for the first ld in PATH.
6676 elif test "$with_gnu_ld" = yes; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6678 $as_echo_n "checking for GNU ld... " >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6681 $as_echo_n "checking for non-GNU ld... " >&6; }
6683 if ${ac_cv_path_LD+:} false; then :
6684 $as_echo_n "(cached) " >&6
6686 if test -z "$LD"; then
6687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6688 for ac_dir in $PATH; do
6689 test -z "$ac_dir" && ac_dir=.
6690 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6691 ac_cv_path_LD="$ac_dir/$ac_prog"
6692 # Check to see if the program is GNU ld. I'd rather use --version,
6693 # but apparently some GNU ld's only accept -v.
6694 # Break only if it was the GNU/non-GNU ld that we prefer.
6695 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6696 test "$with_gnu_ld" != no && break
6698 test "$with_gnu_ld" != yes && break
6704 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6709 if test -n "$LD"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6711 $as_echo "$LD" >&6; }
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6716 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6718 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6719 if ${ac_cv_prog_gnu_ld+:} false; then :
6720 $as_echo_n "(cached) " >&6
6722 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6723 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6724 ac_cv_prog_gnu_ld=yes
6726 ac_cv_prog_gnu_ld=no
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6730 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6731 with_gnu_ld=$ac_cv_prog_gnu_ld
6736 if test -n "$ac_tool_prefix"; then
6737 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6738 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if ${ac_cv_prog_RANLIB+:} false; then :
6742 $as_echo_n "(cached) " >&6
6744 if test -n "$RANLIB"; then
6745 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6754 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 RANLIB=$ac_cv_prog_RANLIB
6765 if test -n "$RANLIB"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6767 $as_echo "$RANLIB" >&6; }
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6775 if test -z "$ac_cv_prog_RANLIB"; then
6776 ac_ct_RANLIB=$RANLIB
6777 # Extract the first word of "ranlib", so it can be a program name with args.
6778 set dummy ranlib; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6782 $as_echo_n "(cached) " >&6
6784 if test -n "$ac_ct_RANLIB"; then
6785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6794 ac_cv_prog_ac_ct_RANLIB="ranlib"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6805 if test -n "$ac_ct_RANLIB"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6807 $as_echo "$ac_ct_RANLIB" >&6; }
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6813 if test "x$ac_ct_RANLIB" = x; then
6816 case $cross_compiling:$ac_tool_warned in
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6820 ac_tool_warned=yes ;;
6822 RANLIB=$ac_ct_RANLIB
6825 RANLIB="$ac_cv_prog_RANLIB"
6829 if test -n "$ac_tool_prefix"; then
6830 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6831 set dummy ${ac_tool_prefix}strip; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if ${ac_cv_prog_STRIP+:} false; then :
6835 $as_echo_n "(cached) " >&6
6837 if test -n "$STRIP"; then
6838 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 STRIP=$ac_cv_prog_STRIP
6858 if test -n "$STRIP"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6860 $as_echo "$STRIP" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6868 if test -z "$ac_cv_prog_STRIP"; then
6870 # Extract the first word of "strip", so it can be a program name with args.
6871 set dummy strip; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6875 $as_echo_n "(cached) " >&6
6877 if test -n "$ac_ct_STRIP"; then
6878 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887 ac_cv_prog_ac_ct_STRIP="strip"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6898 if test -n "$ac_ct_STRIP"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6900 $as_echo "$ac_ct_STRIP" >&6; }
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6906 if test "x$ac_ct_STRIP" = x; then
6909 case $cross_compiling:$ac_tool_warned in
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6918 STRIP="$ac_cv_prog_STRIP"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
6923 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6924 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6925 STRIP_STATIC_LIB="$STRIP -x"
6926 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6928 $as_echo "yes" >&6; }
6933 STRIP_STATIC_LIB=$STRIP
6934 STRIP_SHARED_LIB=$STRIP
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6936 $as_echo "yes" >&6; }
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6949 if test -n "$ac_tool_prefix"; then
6950 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6951 set dummy ${ac_tool_prefix}ar; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_AR+:} false; then :
6955 $as_echo_n "(cached) " >&6
6957 if test -n "$AR"; then
6958 ac_cv_prog_AR="$AR" # Let the user override the test.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_AR="${ac_tool_prefix}ar"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 if test -n "$AR"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6980 $as_echo "$AR" >&6; }
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6988 if test -z "$ac_cv_prog_AR"; then
6990 # Extract the first word of "ar", so it can be a program name with args.
6991 set dummy ar; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6995 $as_echo_n "(cached) " >&6
6997 if test -n "$ac_ct_AR"; then
6998 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_ac_ct_AR="ar"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7018 if test -n "$ac_ct_AR"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7020 $as_echo "$ac_ct_AR" >&6; }
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7026 if test "x$ac_ct_AR" = x; then
7029 case $cross_compiling:$ac_tool_warned in
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7033 ac_tool_warned=yes ;;
7041 if test "$PORTNAME" = "win32"; then
7042 if test -n "$ac_tool_prefix"; then
7043 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7044 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_DLLTOOL+:} false; then :
7048 $as_echo_n "(cached) " >&6
7050 if test -n "$DLLTOOL"; then
7051 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 DLLTOOL=$ac_cv_prog_DLLTOOL
7071 if test -n "$DLLTOOL"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7073 $as_echo "$DLLTOOL" >&6; }
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7081 if test -z "$ac_cv_prog_DLLTOOL"; then
7082 ac_ct_DLLTOOL=$DLLTOOL
7083 # Extract the first word of "dlltool", so it can be a program name with args.
7084 set dummy dlltool; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7088 $as_echo_n "(cached) " >&6
7090 if test -n "$ac_ct_DLLTOOL"; then
7091 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7111 if test -n "$ac_ct_DLLTOOL"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7113 $as_echo "$ac_ct_DLLTOOL" >&6; }
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7119 if test "x$ac_ct_DLLTOOL" = x; then
7122 case $cross_compiling:$ac_tool_warned in
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126 ac_tool_warned=yes ;;
7128 DLLTOOL=$ac_ct_DLLTOOL
7131 DLLTOOL="$ac_cv_prog_DLLTOOL"
7134 if test -n "$ac_tool_prefix"; then
7135 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
7136 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_prog_DLLWRAP+:} false; then :
7140 $as_echo_n "(cached) " >&6
7142 if test -n "$DLLWRAP"; then
7143 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 DLLWRAP=$ac_cv_prog_DLLWRAP
7163 if test -n "$DLLWRAP"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
7165 $as_echo "$DLLWRAP" >&6; }
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7173 if test -z "$ac_cv_prog_DLLWRAP"; then
7174 ac_ct_DLLWRAP=$DLLWRAP
7175 # Extract the first word of "dllwrap", so it can be a program name with args.
7176 set dummy dllwrap; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
7180 $as_echo_n "(cached) " >&6
7182 if test -n "$ac_ct_DLLWRAP"; then
7183 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
7203 if test -n "$ac_ct_DLLWRAP"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
7205 $as_echo "$ac_ct_DLLWRAP" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7211 if test "x$ac_ct_DLLWRAP" = x; then
7214 case $cross_compiling:$ac_tool_warned in
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7218 ac_tool_warned=yes ;;
7220 DLLWRAP=$ac_ct_DLLWRAP
7223 DLLWRAP="$ac_cv_prog_DLLWRAP"
7226 if test -n "$ac_tool_prefix"; then
7227 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7228 set dummy ${ac_tool_prefix}windres; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_WINDRES+:} false; then :
7232 $as_echo_n "(cached) " >&6
7234 if test -n "$WINDRES"; then
7235 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 WINDRES=$ac_cv_prog_WINDRES
7255 if test -n "$WINDRES"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7257 $as_echo "$WINDRES" >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7265 if test -z "$ac_cv_prog_WINDRES"; then
7266 ac_ct_WINDRES=$WINDRES
7267 # Extract the first word of "windres", so it can be a program name with args.
7268 set dummy windres; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7272 $as_echo_n "(cached) " >&6
7274 if test -n "$ac_ct_WINDRES"; then
7275 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284 ac_cv_prog_ac_ct_WINDRES="windres"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7295 if test -n "$ac_ct_WINDRES"; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7297 $as_echo "$ac_ct_WINDRES" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7303 if test "x$ac_ct_WINDRES" = x; then
7306 case $cross_compiling:$ac_tool_warned in
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7310 ac_tool_warned=yes ;;
7312 WINDRES=$ac_ct_WINDRES
7315 WINDRES="$ac_cv_prog_WINDRES"
7320 # Find a good install program. We prefer a C program (faster),
7321 # so one script is as good as another. But avoid the broken or
7322 # incompatible versions:
7323 # SysV /etc/install, /usr/sbin/install
7324 # SunOS /usr/etc/install
7325 # IRIX /sbin/install
7327 # AmigaOS /C/install, which installs bootblocks on floppy discs
7328 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7329 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7330 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7331 # OS/2's system install, which has a completely different semantic
7332 # ./install, which can be erroneously created by make from ./install.sh.
7333 # Reject install programs that cannot install multiple files.
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7335 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7336 if test -z "$INSTALL"; then
7337 if ${ac_cv_path_install+:} false; then :
7338 $as_echo_n "(cached) " >&6
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 test -z "$as_dir" && as_dir=.
7345 # Account for people who put trailing slashes in PATH elements.
7346 case $as_dir/ in #((
7347 ./ | .// | /[cC]/* | \
7348 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7349 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7352 # OSF1 and SCO ODT 3.0 have their own names for install.
7353 # Don't use installbsd from OSF since it installs stuff as root
7355 for ac_prog in ginstall scoinst install; do
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7358 if test $ac_prog = install &&
7359 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7360 # AIX install. It has an incompatible calling convention.
7362 elif test $ac_prog = install &&
7363 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7364 # program-specific install script used by HP pwplus--don't use.
7367 rm -rf conftest.one conftest.two conftest.dir
7368 echo one > conftest.one
7369 echo two > conftest.two
7371 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7372 test -s conftest.one && test -s conftest.two &&
7373 test -s conftest.dir/conftest.one &&
7374 test -s conftest.dir/conftest.two
7376 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7389 rm -rf conftest.one conftest.two conftest.dir
7392 if test "${ac_cv_path_install+set}" = set; then
7393 INSTALL=$ac_cv_path_install
7395 # As a last resort, use the slow shell script. Don't cache a
7396 # value for INSTALL within a source directory, because that will
7397 # break other packages using the cache if that directory is
7398 # removed, or if the value is a relative name.
7399 INSTALL=$ac_install_sh
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7403 $as_echo "$INSTALL" >&6; }
7405 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7406 # It thinks the first close brace ends the variable substitution.
7407 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7409 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7411 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7413 # When Autoconf chooses install-sh as install program it tries to generate
7414 # a relative path to it in each makefile where it substitutes it. This clashes
7415 # with our Makefile.global concept. This workaround helps.
7417 *install-sh*) install_bin='';;
7418 *) install_bin=$INSTALL;;
7422 if test -z "$TAR"; then
7425 # Extract the first word of "$ac_prog", so it can be a program name with args.
7426 set dummy $ac_prog; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_path_TAR+:} false; then :
7430 $as_echo_n "(cached) " >&6
7434 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 if test -n "$TAR"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7458 $as_echo "$TAR" >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7465 test -n "$TAR" && break
7469 # Report the value of TAR in configure's output in all cases.
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
7471 $as_echo_n "checking for TAR... " >&6; }
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7473 $as_echo "$TAR" >&6; }
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7477 $as_echo_n "checking whether ln -s works... " >&6; }
7479 if test "$LN_S" = "ln -s"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7481 $as_echo "yes" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7484 $as_echo "no, using $LN_S" >&6; }
7487 for ac_prog in gawk mawk nawk awk
7489 # Extract the first word of "$ac_prog", so it can be a program name with args.
7490 set dummy $ac_prog; ac_word=$2
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 $as_echo_n "checking for $ac_word... " >&6; }
7493 if ${ac_cv_prog_AWK+:} false; then :
7494 $as_echo_n "(cached) " >&6
7496 if test -n "$AWK"; then
7497 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7506 ac_cv_prog_AWK="$ac_prog"
7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 if test -n "$AWK"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7519 $as_echo "$AWK" >&6; }
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7526 test -n "$AWK" && break
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7530 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7531 if test -z "$MKDIR_P"; then
7532 if ${ac_cv_path_mkdir+:} false; then :
7533 $as_echo_n "(cached) " >&6
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7539 test -z "$as_dir" && as_dir=.
7540 for ac_prog in mkdir gmkdir; do
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
7543 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7544 'mkdir (GNU coreutils) '* | \
7545 'mkdir (coreutils) '* | \
7546 'mkdir (fileutils) '4.1*)
7547 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7557 test -d ./--version && rmdir ./--version
7558 if test "${ac_cv_path_mkdir+set}" = set; then
7559 MKDIR_P="$ac_cv_path_mkdir -p"
7561 # As a last resort, use the slow shell script. Don't cache a
7562 # value for MKDIR_P within a source directory, because that will
7563 # break other packages using the cache if that directory is
7564 # removed, or if the value is a relative name.
7565 MKDIR_P="$ac_install_sh -d"
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7569 $as_echo "$MKDIR_P" >&6; }
7571 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7572 # a relative path to it in each makefile where it substitutes it. This clashes
7573 # with our Makefile.global concept. This workaround helps.
7575 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7578 if test -z "$BISON"; then
7579 for ac_prog in bison
7581 # Extract the first word of "$ac_prog", so it can be a program name with args.
7582 set dummy $ac_prog; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_path_BISON+:} false; then :
7586 $as_echo_n "(cached) " >&6
7590 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 BISON=$ac_cv_path_BISON
7612 if test -n "$BISON"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7614 $as_echo "$BISON" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7621 test -n "$BISON" && break
7625 # Report the value of BISON in configure's output in all cases.
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
7627 $as_echo_n "checking for BISON... " >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7629 $as_echo "$BISON" >&6; }
7633 if test "$BISON"; then
7634 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
7636 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7637 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7640 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7641 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7642 $as_echo "$as_me: WARNING:
7643 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7644 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7647 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
7648 # of the now preferred %name-prefix "base_yy", but the latter
7649 # doesn't work with Bison 2.3 or less. So for now we silence the
7650 # deprecation warnings.
7651 if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
7653 BISONFLAGS="$BISONFLAGS -Wno-deprecated"
7657 if test -z "$BISON"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7659 *** Without Bison you will not be able to build PostgreSQL from Git nor
7660 *** change any of the parser definition files. You can obtain Bison from
7661 *** a GNU mirror site. (If you are using the official distribution of
7662 *** PostgreSQL then you do not need to worry about this, because the Bison
7663 *** output is pre-generated.)" >&5
7664 $as_echo "$as_me: WARNING:
7665 *** Without Bison you will not be able to build PostgreSQL from Git nor
7666 *** change any of the parser definition files. You can obtain Bison from
7667 *** a GNU mirror site. (If you are using the official distribution of
7668 *** PostgreSQL then you do not need to worry about this, because the Bison
7669 *** output is pre-generated.)" >&2;}
7671 # We don't need AC_SUBST(BISON) because PGAC_PATH_PROGS did it
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
7675 $as_echo_n "checking for flex... " >&6; }
7676 if ${pgac_cv_path_flex+:} false; then :
7677 $as_echo_n "(cached) " >&6
7679 # Let the user override the test
7680 if test -n "$FLEX"; then
7681 pgac_cv_path_flex=$FLEX
7685 for pgac_dir in $PATH; do
7687 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7690 for pgac_prog in flex lex; do
7691 pgac_candidate="$pgac_dir/$pgac_prog"
7692 if test -f "$pgac_candidate" \
7693 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7695 echo '%%' > conftest.l
7696 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7697 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7698 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;}'
7700 pgac_cv_path_flex=$pgac_candidate
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7704 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7705 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7706 $as_echo "$as_me: WARNING:
7707 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7708 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7714 rm -f conftest.l lex.yy.c
7715 : ${pgac_cv_path_flex=no}
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
7720 $as_echo "$pgac_cv_path_flex" >&6; }
7721 if test x"$pgac_cv_path_flex" = x"no"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7723 *** Without Flex you will not be able to build PostgreSQL from Git nor
7724 *** change any of the scanner definition files. You can obtain Flex from
7725 *** a GNU mirror site. (If you are using the official distribution of
7726 *** PostgreSQL then you do not need to worry about this because the Flex
7727 *** output is pre-generated.)" >&5
7728 $as_echo "$as_me: WARNING:
7729 *** Without Flex you will not be able to build PostgreSQL from Git nor
7730 *** change any of the scanner definition files. You can obtain Flex from
7731 *** a GNU mirror site. (If you are using the official distribution of
7732 *** PostgreSQL then you do not need to worry about this because the Flex
7733 *** output is pre-generated.)" >&2;}
7737 FLEX=$pgac_cv_path_flex
7738 pgac_flex_version=`$FLEX --version 2>/dev/null`
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
7740 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7747 if test -z "$PERL"; then
7750 # Extract the first word of "$ac_prog", so it can be a program name with args.
7751 set dummy $ac_prog; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_path_PERL+:} false; then :
7755 $as_echo_n "(cached) " >&6
7759 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 PERL=$ac_cv_path_PERL
7781 if test -n "$PERL"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7783 $as_echo "$PERL" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7790 test -n "$PERL" && break
7794 # Report the value of PERL in configure's output in all cases.
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
7796 $as_echo_n "checking for PERL... " >&6; }
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7798 $as_echo "$PERL" >&6; }
7802 if test "$PERL"; then
7803 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'`
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
7805 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7806 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7807 $AWK '{ if ($1 == 5 && $2 >= 8) exit 1; else exit 0;}'
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7810 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7811 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7812 $as_echo "$as_me: WARNING:
7813 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7814 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7819 if test -z "$PERL"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7821 *** Without Perl you will not be able to build PostgreSQL from Git.
7822 *** You can obtain Perl from any CPAN mirror site.
7823 *** (If you are using the official distribution of PostgreSQL then you do not
7824 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7825 $as_echo "$as_me: WARNING:
7826 *** Without Perl you will not be able to build PostgreSQL from Git.
7827 *** You can obtain Perl from any CPAN mirror site.
7828 *** (If you are using the official distribution of PostgreSQL then you do not
7829 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7832 if test "$with_perl" = yes; then
7833 if test -z "$PERL"; then
7834 as_fn_error $? "Perl not found" "$LINENO" 5
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
7838 $as_echo_n "checking for Perl archlibexp... " >&6; }
7839 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7840 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
7842 $as_echo "$perl_archlibexp" >&6; }
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
7844 $as_echo_n "checking for Perl privlibexp... " >&6; }
7845 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7846 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
7848 $as_echo "$perl_privlibexp" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
7850 $as_echo_n "checking for Perl useshrplib... " >&6; }
7851 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7852 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
7854 $as_echo "$perl_useshrplib" >&6; }
7855 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true; then
7856 as_fn_error $? "cannot build PL/Perl because libperl is not a shared library
7857 You might have to rebuild your Perl installation. Refer to the
7858 documentation for details. Use --without-perl to disable building
7859 PL/Perl." "$LINENO" 5
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
7863 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
7864 perl_ccflags=`$PERL -MConfig -e 'print $Config{ccflags}'`
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
7866 $as_echo "$perl_ccflags" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
7868 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
7869 perl_embed_ccflags=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
7871 $as_echo "$perl_embed_ccflags" >&6; }
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
7875 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7876 if test "$PORTNAME" = "win32" ; then
7877 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7878 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7880 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7881 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7882 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7884 if test -z "$perl_embed_ldflags" ; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7887 as_fn_error $? "could not determine flags for linking embedded Perl.
7888 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7889 installed." "$LINENO" 5
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
7892 $as_echo "$perl_embed_ldflags" >&6; }
7897 if test "$with_python" = yes; then
7898 if test -z "$PYTHON"; then
7899 for ac_prog in python
7901 # Extract the first word of "$ac_prog", so it can be a program name with args.
7902 set dummy $ac_prog; ac_word=$2
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if ${ac_cv_path_PYTHON+:} false; then :
7906 $as_echo_n "(cached) " >&6
7910 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 PYTHON=$ac_cv_path_PYTHON
7932 if test -n "$PYTHON"; then
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7934 $as_echo "$PYTHON" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7941 test -n "$PYTHON" && break
7945 # Report the value of PYTHON in configure's output in all cases.
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
7947 $as_echo_n "checking for PYTHON... " >&6; }
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7949 $as_echo "$PYTHON" >&6; }
7952 if test x"$PYTHON" = x""; then
7953 as_fn_error $? "Python not found" "$LINENO" 5
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
7958 $as_echo_n "checking for Python distutils module... " >&6; }
7959 if "${PYTHON}" -c 'import distutils' 2>&5
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7962 $as_echo "yes" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 as_fn_error $? "distutils module not found" "$LINENO" 5
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
7969 $as_echo_n "checking Python configuration directory... " >&6; }
7970 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7971 python_minorversion=`${PYTHON} -c "import sys; print(sys.version[2])"`
7972 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7973 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
7975 $as_echo "$python_configdir" >&6; }
7977 # Reject unsupported Python versions as soon as practical.
7978 if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 4; then
7979 as_fn_error $? "Python version $python_version is too old (version 2.4 or later is required)" "$LINENO" 5
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
7983 $as_echo_n "checking Python include directories... " >&6; }
7984 python_includespec=`${PYTHON} -c "
7985 import distutils.sysconfig
7986 a = '-I' + distutils.sysconfig.get_python_inc(False)
7987 b = '-I' + distutils.sysconfig.get_python_inc(True)
7991 print(a + ' ' + b)"`
7992 if test "$PORTNAME" = win32 ; then
7993 python_includespec=`echo $python_includespec | sed 's,[\],/,g'`
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
7996 $as_echo "$python_includespec" >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
8001 $as_echo_n "checking how to link an embedded Python application... " >&6; }
8003 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
8004 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
8006 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
8007 ldlibrary=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
8008 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
8010 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
8013 # Otherwise, guess the base name of the shlib.
8014 # LDVERSION was added in Python 3.2, before that use VERSION,
8015 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
8016 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
8017 if test x"${python_ldversion}" != x""; then
8018 ldlibrary="python${python_ldversion}"
8020 python_version_var=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('VERSION'))))"`
8021 if test x"${python_version_var}" != x""; then
8022 ldlibrary="python${python_version_var}"
8024 ldlibrary="python${python_version}"
8027 # Search for a likely-looking file.
8029 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib
8031 # We don't know the platform DLSUFFIX here, so check 'em all.
8032 for e in .so .dll .dylib .sl; do
8033 if test -e "$d/lib${ldlibrary}$e"; then
8040 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
8041 # (".so.n.n") as well. However, check this only after failing to find
8042 # ".so" anywhere, because yet other platforms (Debian) put the .so
8043 # symlink in a different directory from the underlying versioned shlib.
8044 if test "$found_shlib" != 1; then
8045 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib
8047 for f in "$d/lib${ldlibrary}.so."* ; do
8048 if test -e "$f"; then
8056 # As usual, Windows has its own ideas. Possible default library
8057 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
8058 # and the "lib" prefix might not be there.
8059 if test "$found_shlib" != 1 -a \( "$PORTNAME" = win32 -o "$PORTNAME" = cygwin \); then
8060 for d in "${python_libdir}" "${python_configdir}" c:/Windows/System32 /usr/bin
8062 for f in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
8063 if test -e "$f"; then
8072 if test "$found_shlib" != 1; then
8073 as_fn_error $? "could not find shared library for Python
8074 You might have to rebuild your Python installation. Refer to the
8075 documentation for details. Use --without-python to disable building
8076 PL/Python." "$LINENO" 5
8078 python_libspec="-L${python_libdir} -l${ldlibrary}"
8080 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
8083 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
8089 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
8090 if test -z "$ZIC"; then
8093 # Extract the first word of "$ac_prog", so it can be a program name with args.
8094 set dummy $ac_prog; ac_word=$2
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096 $as_echo_n "checking for $ac_word... " >&6; }
8097 if ${ac_cv_path_ZIC+:} false; then :
8098 $as_echo_n "(cached) " >&6
8102 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 test -z "$as_dir" && as_dir=.
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8112 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
8113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 if test -n "$ZIC"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
8126 $as_echo "$ZIC" >&6; }
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }
8133 test -n "$ZIC" && break
8137 # Report the value of ZIC in configure's output in all cases.
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIC" >&5
8139 $as_echo_n "checking for ZIC... " >&6; }
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
8141 $as_echo "$ZIC" >&6; }
8144 if test -z "$ZIC"; then
8146 When cross-compiling, either use the option --with-system-tzdata to use
8147 existing time-zone data, or set the environment variable ZIC to a zic
8148 program to use during the build." "$LINENO" 5
8155 # For each platform, we need to know about any special compile and link
8156 # libraries, and whether the normal C function names are thread-safe.
8157 # See the comment at the top of src/port/thread.c for more information.
8158 # WIN32 doesn't need the pthread tests; it always uses threads
8160 # These tests are run before the library-tests, because linking with the
8161 # other libraries can pull in the pthread functions as a side-effect. We
8162 # want to use the -pthread or similar flags directly, and not rely on
8163 # the side-effects of linking with some other library.
8165 # note: We have to use AS_IF here rather than plain if. The AC_CHECK_HEADER
8166 # invocation below is the first one in the script, and autoconf generates
8167 # additional code for that, which must not be inside the if-block. AS_IF
8168 # knows how to do that.
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8170 $as_echo_n "checking for ANSI C header files... " >&6; }
8171 if ${ac_cv_header_stdc+:} false; then :
8172 $as_echo_n "(cached) " >&6
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8189 if ac_fn_c_try_compile "$LINENO"; then :
8190 ac_cv_header_stdc=yes
8192 ac_cv_header_stdc=no
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 if test $ac_cv_header_stdc = yes; then
8197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8204 $EGREP "memchr" >/dev/null 2>&1; then :
8207 ac_cv_header_stdc=no
8213 if test $ac_cv_header_stdc = yes; then
8214 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8221 $EGREP "free" >/dev/null 2>&1; then :
8224 ac_cv_header_stdc=no
8230 if test $ac_cv_header_stdc = yes; then
8231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8232 if test "$cross_compiling" = yes; then :
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8239 #if ((' ' & 0x0FF) == 0x020)
8240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8243 # define ISLOWER(c) \
8244 (('a' <= (c) && (c) <= 'i') \
8245 || ('j' <= (c) && (c) <= 'r') \
8246 || ('s' <= (c) && (c) <= 'z'))
8247 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8255 for (i = 0; i < 256; i++)
8256 if (XOR (islower (i), ISLOWER (i))
8257 || toupper (i) != TOUPPER (i))
8262 if ac_fn_c_try_run "$LINENO"; then :
8265 ac_cv_header_stdc=no
8267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8268 conftest.$ac_objext conftest.beam conftest.$ac_ext
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8274 $as_echo "$ac_cv_header_stdc" >&6; }
8275 if test $ac_cv_header_stdc = yes; then
8277 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8282 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8283 inttypes.h stdint.h unistd.h
8285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8286 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8288 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8289 cat >>confdefs.h <<_ACEOF
8290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8298 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
8304 ac_cpp='$CPP $CPPFLAGS'
8305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8311 # We used to check for pthread.h first, but this fails if pthread.h
8312 # requires special compiler flags (e.g. on Tru64 or Sequent).
8313 # It gets checked for in the link test anyway.
8315 # First of all, check if the user has set any of the PTHREAD_LIBS,
8316 # etcetera environment variables, and if threads linking works using
8318 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8319 save_CFLAGS="$CFLAGS"
8320 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8322 LIBS="$PTHREAD_LIBS $LIBS"
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8324 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8328 /* Override any GCC internal prototype to avoid an error.
8329 Use char because int might match the return type of a GCC
8330 builtin and then its argument prototype would still apply. */
8334 char pthread_join ();
8338 return pthread_join ();
8343 if ac_fn_c_try_link "$LINENO"; then :
8346 rm -f core conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8349 $as_echo "$ax_pthread_ok" >&6; }
8350 if test x"$ax_pthread_ok" = xno; then
8355 CFLAGS="$save_CFLAGS"
8358 # We must check for the threads library under a number of different
8359 # names; the ordering is very important because some systems
8360 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8361 # libraries is broken (non-POSIX).
8363 # Create a list of thread flags to try. Items starting with a "-" are
8364 # C compiler flags, and other items are library names, except for "none"
8365 # which indicates that we try without any flags at all, and "pthread-config"
8366 # which is a program returning the flags for the Pth emulation library.
8368 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
8370 # The ordering *is* (sometimes) important. Some notes on the
8371 # individual items follow:
8373 # pthreads: AIX (must check this before -lpthread)
8374 # none: in case threads are in libc; should be tried before -Kthread and
8375 # other compiler flags to prevent continual compiler warnings
8376 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8377 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8378 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8379 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8380 # -pthreads: Solaris/gcc
8381 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8382 # doesn't hurt to check since this sometimes defines pthreads and
8383 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8384 # is present but should not be used directly)
8385 # -mthreads: Mingw32/gcc, Lynx/gcc
8386 # pthread: Linux, etcetera
8387 # --thread-safe: KAI C++
8388 # pthread-config: use pthread-config program (for GNU Pth library)
8394 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8395 # multi-threading and also sets -lpthread."
8397 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8402 # IBM z/OS requires a feature-test macro to be defined in order to
8403 # enable POSIX threads at all, so give the user a hint if this is
8404 # not set. (We don't define these ourselves, as they can affect
8405 # other portions of the system API in unpredictable ways.)
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8410 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8411 AX_PTHREAD_ZOS_MISSING
8415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8416 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8418 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8426 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
8427 # check that first. On some older versions, libc contains stubbed
8428 # (non-functional) versions of the pthreads routines, so link-based
8429 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8430 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8431 # a function called by this macro, so we could check for that, but
8432 # who knows whether they'll stub that too in a future libc.) So
8433 # we'll look for -pthreads and -lpthread shortly thereafter.
8435 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
8439 # Older versions of Clang only give a warning instead of an error for an
8440 # unrecognized option, unless we specify -Werror. (We throw in some extra
8441 # Clang warning flags for good measure.)
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
8444 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
8445 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
8446 $as_echo_n "(cached) " >&6
8448 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
8449 save_CFLAGS="$CFLAGS"
8450 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
8451 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8463 if ac_fn_c_try_compile "$LINENO"; then :
8464 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
8466 ax_cv_PTHREAD_REJECT_UNKNOWN=no
8468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8469 CFLAGS="$save_CFLAGS"
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
8473 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
8474 ax_pthread_extra_flags=
8475 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
8476 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
8479 if test x"$ax_pthread_ok" = xno; then
8480 for flag in $ax_pthread_flags; do
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8485 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8490 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8491 PTHREAD_CFLAGS="-mt"
8492 PTHREAD_LIBS="-lpthread"
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8497 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8498 PTHREAD_CFLAGS="$flag"
8502 # Extract the first word of "pthread-config", so it can be a program name with args.
8503 set dummy pthread-config; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8507 $as_echo_n "(cached) " >&6
8509 if test -n "$ax_pthread_config"; then
8510 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8516 test -z "$as_dir" && as_dir=.
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519 ac_cv_prog_ax_pthread_config="yes"
8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8530 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8531 if test -n "$ax_pthread_config"; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8533 $as_echo "$ax_pthread_config" >&6; }
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 $as_echo "no" >&6; }
8540 if test x"$ax_pthread_config" = xno; then continue; fi
8541 PTHREAD_CFLAGS="`pthread-config --cflags`"
8542 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8547 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8548 PTHREAD_LIBS="-l$flag"
8553 save_CFLAGS="$CFLAGS"
8554 LIBS="$PTHREAD_LIBS $LIBS"
8555 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
8557 # Check for various functions. We must include pthread.h,
8558 # since some functions may be macros. (On the Sequent, we
8559 # need a special flag -Kthread to make this header compile.)
8560 # We check for pthread_join because it is in -lpthread on IRIX
8561 # while pthread_create is in libc. We check for pthread_attr_init
8562 # due to DEC craziness with -lpthreads. We check for
8563 # pthread_cleanup_push because it is one of the few pthread
8564 # functions on Solaris that doesn't have a non-functional libc stub.
8565 # We try pthread_create on general principles.
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 #include <pthread.h>
8569 static void routine(void *a) { a = 0; }
8570 static void *start_routine(void *a) { return a; }
8574 pthread_t th; pthread_attr_t attr;
8575 pthread_create(&th, 0, start_routine, 0);
8576 pthread_join(th, 0);
8577 pthread_attr_init(&attr);
8578 pthread_cleanup_push(routine, 0);
8579 pthread_cleanup_pop(0) /* ; */
8584 if ac_fn_c_try_link "$LINENO"; then :
8587 rm -f core conftest.err conftest.$ac_objext \
8588 conftest$ac_exeext conftest.$ac_ext
8591 CFLAGS="$save_CFLAGS"
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8594 $as_echo "$ax_pthread_ok" >&6; }
8595 if test "x$ax_pthread_ok" = xyes; then
8604 # Various other checks:
8605 if test "x$ax_pthread_ok" = xyes; then
8607 LIBS="$PTHREAD_LIBS $LIBS"
8608 save_CFLAGS="$CFLAGS"
8609 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8611 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8613 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8614 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
8615 $as_echo_n "(cached) " >&6
8617 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8618 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8621 #include <pthread.h>
8625 int attr = $attr; return attr /* ; */
8630 if ac_fn_c_try_link "$LINENO"; then :
8631 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
8633 rm -f core conftest.err conftest.$ac_objext \
8634 conftest$ac_exeext conftest.$ac_ext
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8639 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8640 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
8641 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
8643 cat >>confdefs.h <<_ACEOF
8644 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8650 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8651 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
8652 $as_echo_n "(cached) " >&6
8654 ax_cv_PTHREAD_SPECIAL_FLAGS=no
8655 ax_pthread_special_flags_added=no
8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8659 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
8660 AX_PTHREAD_NEED_SPECIAL_FLAG
8664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8665 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
8668 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
8670 darwin* | hpux* | osf* | solaris*)
8671 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8681 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8682 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8683 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8684 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8685 ax_pthread_special_flags_added=yes
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8689 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8690 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8691 $as_echo_n "(cached) " >&6
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 #include <pthread.h>
8699 int i = PTHREAD_PRIO_INHERIT;
8704 if ac_fn_c_try_link "$LINENO"; then :
8705 ax_cv_PTHREAD_PRIO_INHERIT=yes
8707 ax_cv_PTHREAD_PRIO_INHERIT=no
8709 rm -f core conftest.err conftest.$ac_objext \
8710 conftest$ac_exeext conftest.$ac_ext
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8714 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8715 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8717 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8722 CFLAGS="$save_CFLAGS"
8724 # More AIX lossage: compile with *_r variant
8725 if test "x$GCC" != xyes; then
8729 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8730 #handle absolute path differently from PATH based program lookup
8733 if as_fn_executable_p ${CC}_r; then :
8734 PTHREAD_CC="${CC}_r"
8737 for ac_prog in ${CC}_r
8739 # Extract the first word of "$ac_prog", so it can be a program name with args.
8740 set dummy $ac_prog; ac_word=$2
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8742 $as_echo_n "checking for $ac_word... " >&6; }
8743 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8744 $as_echo_n "(cached) " >&6
8746 if test -n "$PTHREAD_CC"; then
8747 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 test -z "$as_dir" && as_dir=.
8754 for ac_exec_ext in '' $ac_executable_extensions; do
8755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8756 ac_cv_prog_PTHREAD_CC="$ac_prog"
8757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8767 if test -n "$PTHREAD_CC"; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8769 $as_echo "$PTHREAD_CC" >&6; }
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8776 test -n "$PTHREAD_CC" && break
8778 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8789 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8795 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8796 if test x"$ax_pthread_ok" = xyes; then
8798 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8806 ac_cpp='$CPP $CPPFLAGS'
8807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8813 # Some platforms use these, so just define them. They can't hurt if they
8814 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
8815 # enables 5-arg getpwuid_r, among other things.
8816 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
8818 # Check for *_r functions
8821 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8822 LIBS="$LIBS $PTHREAD_LIBS"
8824 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8825 if test "x$ac_cv_header_pthread_h" = xyes; then :
8829 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
8834 for ac_func in strerror_r getpwuid_r gethostbyname_r
8836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8837 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8838 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8839 cat >>confdefs.h <<_ACEOF
8840 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8847 # Do test here with the proper thread flags
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
8849 $as_echo_n "checking whether strerror_r returns int... " >&6; }
8850 if ${pgac_cv_func_strerror_r_int+:} false; then :
8851 $as_echo_n "(cached) " >&6
8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854 /* end confdefs.h. */
8860 int strerror_r(int, char *, size_t);
8862 /* Older AIX has 'int' for the third argument so we don't test the args. */
8869 if ac_fn_c_try_compile "$LINENO"; then :
8870 pgac_cv_func_strerror_r_int=yes
8872 pgac_cv_func_strerror_r_int=no
8874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
8877 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
8878 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
8880 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
8891 # do not use values from template file
8904 ## Most libraries are included only if they demonstrably provide a function
8905 ## we need, but libm is an exception: always include it, because there are
8906 ## too many compilers that play cute optimization games that will break
8907 ## probes for standard functions such as pow().
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8911 $as_echo_n "checking for main in -lm... " >&6; }
8912 if ${ac_cv_lib_m_main+:} false; then :
8913 $as_echo_n "(cached) " >&6
8915 ac_check_lib_save_LIBS=$LIBS
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8929 if ac_fn_c_try_link "$LINENO"; then :
8930 ac_cv_lib_m_main=yes
8934 rm -f core conftest.err conftest.$ac_objext \
8935 conftest$ac_exeext conftest.$ac_ext
8936 LIBS=$ac_check_lib_save_LIBS
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8939 $as_echo "$ac_cv_lib_m_main" >&6; }
8940 if test "x$ac_cv_lib_m_main" = xyes; then :
8941 cat >>confdefs.h <<_ACEOF
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
8950 $as_echo_n "checking for library containing setproctitle... " >&6; }
8951 if ${ac_cv_search_setproctitle+:} false; then :
8952 $as_echo_n "(cached) " >&6
8954 ac_func_search_save_LIBS=$LIBS
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8958 /* Override any GCC internal prototype to avoid an error.
8959 Use char because int might match the return type of a GCC
8960 builtin and then its argument prototype would still apply. */
8964 char setproctitle ();
8968 return setproctitle ();
8973 for ac_lib in '' util; do
8974 if test -z "$ac_lib"; then
8975 ac_res="none required"
8978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8980 if ac_fn_c_try_link "$LINENO"; then :
8981 ac_cv_search_setproctitle=$ac_res
8983 rm -f core conftest.err conftest.$ac_objext \
8985 if ${ac_cv_search_setproctitle+:} false; then :
8989 if ${ac_cv_search_setproctitle+:} false; then :
8992 ac_cv_search_setproctitle=no
8995 LIBS=$ac_func_search_save_LIBS
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
8998 $as_echo "$ac_cv_search_setproctitle" >&6; }
8999 ac_res=$ac_cv_search_setproctitle
9000 if test "$ac_res" != no; then :
9001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9006 $as_echo_n "checking for library containing dlopen... " >&6; }
9007 if ${ac_cv_search_dlopen+:} false; then :
9008 $as_echo_n "(cached) " >&6
9010 ac_func_search_save_LIBS=$LIBS
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9014 /* Override any GCC internal prototype to avoid an error.
9015 Use char because int might match the return type of a GCC
9016 builtin and then its argument prototype would still apply. */
9029 for ac_lib in '' dl; do
9030 if test -z "$ac_lib"; then
9031 ac_res="none required"
9034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9036 if ac_fn_c_try_link "$LINENO"; then :
9037 ac_cv_search_dlopen=$ac_res
9039 rm -f core conftest.err conftest.$ac_objext \
9041 if ${ac_cv_search_dlopen+:} false; then :
9045 if ${ac_cv_search_dlopen+:} false; then :
9048 ac_cv_search_dlopen=no
9051 LIBS=$ac_func_search_save_LIBS
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9054 $as_echo "$ac_cv_search_dlopen" >&6; }
9055 ac_res=$ac_cv_search_dlopen
9056 if test "$ac_res" != no; then :
9057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
9062 $as_echo_n "checking for library containing socket... " >&6; }
9063 if ${ac_cv_search_socket+:} false; then :
9064 $as_echo_n "(cached) " >&6
9066 ac_func_search_save_LIBS=$LIBS
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9070 /* Override any GCC internal prototype to avoid an error.
9071 Use char because int might match the return type of a GCC
9072 builtin and then its argument prototype would still apply. */
9085 for ac_lib in '' socket ws2_32; do
9086 if test -z "$ac_lib"; then
9087 ac_res="none required"
9090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9092 if ac_fn_c_try_link "$LINENO"; then :
9093 ac_cv_search_socket=$ac_res
9095 rm -f core conftest.err conftest.$ac_objext \
9097 if ${ac_cv_search_socket+:} false; then :
9101 if ${ac_cv_search_socket+:} false; then :
9104 ac_cv_search_socket=no
9107 LIBS=$ac_func_search_save_LIBS
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
9110 $as_echo "$ac_cv_search_socket" >&6; }
9111 ac_res=$ac_cv_search_socket
9112 if test "$ac_res" != no; then :
9113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
9118 $as_echo_n "checking for library containing shl_load... " >&6; }
9119 if ${ac_cv_search_shl_load+:} false; then :
9120 $as_echo_n "(cached) " >&6
9122 ac_func_search_save_LIBS=$LIBS
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9126 /* Override any GCC internal prototype to avoid an error.
9127 Use char because int might match the return type of a GCC
9128 builtin and then its argument prototype would still apply. */
9141 for ac_lib in '' dld; do
9142 if test -z "$ac_lib"; then
9143 ac_res="none required"
9146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9148 if ac_fn_c_try_link "$LINENO"; then :
9149 ac_cv_search_shl_load=$ac_res
9151 rm -f core conftest.err conftest.$ac_objext \
9153 if ${ac_cv_search_shl_load+:} false; then :
9157 if ${ac_cv_search_shl_load+:} false; then :
9160 ac_cv_search_shl_load=no
9163 LIBS=$ac_func_search_save_LIBS
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
9166 $as_echo "$ac_cv_search_shl_load" >&6; }
9167 ac_res=$ac_cv_search_shl_load
9168 if test "$ac_res" != no; then :
9169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9173 # We only use libld in port/dynloader/aix.c
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldopen" >&5
9177 $as_echo_n "checking for library containing ldopen... " >&6; }
9178 if ${ac_cv_search_ldopen+:} false; then :
9179 $as_echo_n "(cached) " >&6
9181 ac_func_search_save_LIBS=$LIBS
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9185 /* Override any GCC internal prototype to avoid an error.
9186 Use char because int might match the return type of a GCC
9187 builtin and then its argument prototype would still apply. */
9200 for ac_lib in '' ld; do
9201 if test -z "$ac_lib"; then
9202 ac_res="none required"
9205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9207 if ac_fn_c_try_link "$LINENO"; then :
9208 ac_cv_search_ldopen=$ac_res
9210 rm -f core conftest.err conftest.$ac_objext \
9212 if ${ac_cv_search_ldopen+:} false; then :
9216 if ${ac_cv_search_ldopen+:} false; then :
9219 ac_cv_search_ldopen=no
9222 LIBS=$ac_func_search_save_LIBS
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldopen" >&5
9225 $as_echo "$ac_cv_search_ldopen" >&6; }
9226 ac_res=$ac_cv_search_ldopen
9227 if test "$ac_res" != no; then :
9228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
9235 $as_echo_n "checking for library containing getopt_long... " >&6; }
9236 if ${ac_cv_search_getopt_long+:} false; then :
9237 $as_echo_n "(cached) " >&6
9239 ac_func_search_save_LIBS=$LIBS
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9243 /* Override any GCC internal prototype to avoid an error.
9244 Use char because int might match the return type of a GCC
9245 builtin and then its argument prototype would still apply. */
9249 char getopt_long ();
9253 return getopt_long ();
9258 for ac_lib in '' getopt gnugetopt; do
9259 if test -z "$ac_lib"; then
9260 ac_res="none required"
9263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9265 if ac_fn_c_try_link "$LINENO"; then :
9266 ac_cv_search_getopt_long=$ac_res
9268 rm -f core conftest.err conftest.$ac_objext \
9270 if ${ac_cv_search_getopt_long+:} false; then :
9274 if ${ac_cv_search_getopt_long+:} false; then :
9277 ac_cv_search_getopt_long=no
9280 LIBS=$ac_func_search_save_LIBS
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
9283 $as_echo "$ac_cv_search_getopt_long" >&6; }
9284 ac_res=$ac_cv_search_getopt_long
9285 if test "$ac_res" != no; then :
9286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
9291 $as_echo_n "checking for library containing crypt... " >&6; }
9292 if ${ac_cv_search_crypt+:} false; then :
9293 $as_echo_n "(cached) " >&6
9295 ac_func_search_save_LIBS=$LIBS
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9299 /* Override any GCC internal prototype to avoid an error.
9300 Use char because int might match the return type of a GCC
9301 builtin and then its argument prototype would still apply. */
9314 for ac_lib in '' crypt; do
9315 if test -z "$ac_lib"; then
9316 ac_res="none required"
9319 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9321 if ac_fn_c_try_link "$LINENO"; then :
9322 ac_cv_search_crypt=$ac_res
9324 rm -f core conftest.err conftest.$ac_objext \
9326 if ${ac_cv_search_crypt+:} false; then :
9330 if ${ac_cv_search_crypt+:} false; then :
9333 ac_cv_search_crypt=no
9336 LIBS=$ac_func_search_save_LIBS
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
9339 $as_echo "$ac_cv_search_crypt" >&6; }
9340 ac_res=$ac_cv_search_crypt
9341 if test "$ac_res" != no; then :
9342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
9347 $as_echo_n "checking for library containing shm_open... " >&6; }
9348 if ${ac_cv_search_shm_open+:} false; then :
9349 $as_echo_n "(cached) " >&6
9351 ac_func_search_save_LIBS=$LIBS
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9370 for ac_lib in '' rt; do
9371 if test -z "$ac_lib"; then
9372 ac_res="none required"
9375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9377 if ac_fn_c_try_link "$LINENO"; then :
9378 ac_cv_search_shm_open=$ac_res
9380 rm -f core conftest.err conftest.$ac_objext \
9382 if ${ac_cv_search_shm_open+:} false; then :
9386 if ${ac_cv_search_shm_open+:} false; then :
9389 ac_cv_search_shm_open=no
9392 LIBS=$ac_func_search_save_LIBS
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
9395 $as_echo "$ac_cv_search_shm_open" >&6; }
9396 ac_res=$ac_cv_search_shm_open
9397 if test "$ac_res" != no; then :
9398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
9403 $as_echo_n "checking for library containing shm_unlink... " >&6; }
9404 if ${ac_cv_search_shm_unlink+:} false; then :
9405 $as_echo_n "(cached) " >&6
9407 ac_func_search_save_LIBS=$LIBS
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9411 /* Override any GCC internal prototype to avoid an error.
9412 Use char because int might match the return type of a GCC
9413 builtin and then its argument prototype would still apply. */
9421 return shm_unlink ();
9426 for ac_lib in '' rt; do
9427 if test -z "$ac_lib"; then
9428 ac_res="none required"
9431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9433 if ac_fn_c_try_link "$LINENO"; then :
9434 ac_cv_search_shm_unlink=$ac_res
9436 rm -f core conftest.err conftest.$ac_objext \
9438 if ${ac_cv_search_shm_unlink+:} false; then :
9442 if ${ac_cv_search_shm_unlink+:} false; then :
9445 ac_cv_search_shm_unlink=no
9448 LIBS=$ac_func_search_save_LIBS
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
9451 $as_echo "$ac_cv_search_shm_unlink" >&6; }
9452 ac_res=$ac_cv_search_shm_unlink
9453 if test "$ac_res" != no; then :
9454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
9459 $as_echo_n "checking for library containing clock_gettime... " >&6; }
9460 if ${ac_cv_search_clock_gettime+:} false; then :
9461 $as_echo_n "(cached) " >&6
9463 ac_func_search_save_LIBS=$LIBS
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9467 /* Override any GCC internal prototype to avoid an error.
9468 Use char because int might match the return type of a GCC
9469 builtin and then its argument prototype would still apply. */
9473 char clock_gettime ();
9477 return clock_gettime ();
9482 for ac_lib in '' rt posix4; do
9483 if test -z "$ac_lib"; then
9484 ac_res="none required"
9487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9489 if ac_fn_c_try_link "$LINENO"; then :
9490 ac_cv_search_clock_gettime=$ac_res
9492 rm -f core conftest.err conftest.$ac_objext \
9494 if ${ac_cv_search_clock_gettime+:} false; then :
9498 if ${ac_cv_search_clock_gettime+:} false; then :
9501 ac_cv_search_clock_gettime=no
9504 LIBS=$ac_func_search_save_LIBS
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
9507 $as_echo "$ac_cv_search_clock_gettime" >&6; }
9508 ac_res=$ac_cv_search_clock_gettime
9509 if test "$ac_res" != no; then :
9510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
9516 $as_echo_n "checking for library containing fdatasync... " >&6; }
9517 if ${ac_cv_search_fdatasync+:} false; then :
9518 $as_echo_n "(cached) " >&6
9520 ac_func_search_save_LIBS=$LIBS
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9534 return fdatasync ();
9539 for ac_lib in '' rt posix4; do
9540 if test -z "$ac_lib"; then
9541 ac_res="none required"
9544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9546 if ac_fn_c_try_link "$LINENO"; then :
9547 ac_cv_search_fdatasync=$ac_res
9549 rm -f core conftest.err conftest.$ac_objext \
9551 if ${ac_cv_search_fdatasync+:} false; then :
9555 if ${ac_cv_search_fdatasync+:} false; then :
9558 ac_cv_search_fdatasync=no
9561 LIBS=$ac_func_search_save_LIBS
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
9564 $as_echo "$ac_cv_search_fdatasync" >&6; }
9565 ac_res=$ac_cv_search_fdatasync
9566 if test "$ac_res" != no; then :
9567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9571 # Required for thread_test.c on Solaris
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
9573 $as_echo_n "checking for library containing sched_yield... " >&6; }
9574 if ${ac_cv_search_sched_yield+:} false; then :
9575 $as_echo_n "(cached) " >&6
9577 ac_func_search_save_LIBS=$LIBS
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9587 char sched_yield ();
9591 return sched_yield ();
9596 for ac_lib in '' rt; do
9597 if test -z "$ac_lib"; then
9598 ac_res="none required"
9601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9603 if ac_fn_c_try_link "$LINENO"; then :
9604 ac_cv_search_sched_yield=$ac_res
9606 rm -f core conftest.err conftest.$ac_objext \
9608 if ${ac_cv_search_sched_yield+:} false; then :
9612 if ${ac_cv_search_sched_yield+:} false; then :
9615 ac_cv_search_sched_yield=no
9618 LIBS=$ac_func_search_save_LIBS
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
9621 $as_echo "$ac_cv_search_sched_yield" >&6; }
9622 ac_res=$ac_cv_search_sched_yield
9623 if test "$ac_res" != no; then :
9624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9628 # Required for thread_test.c on Solaris 2.5:
9629 # Other ports use it too (HP-UX) so test unconditionally
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
9631 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
9632 if ${ac_cv_search_gethostbyname_r+:} false; then :
9633 $as_echo_n "(cached) " >&6
9635 ac_func_search_save_LIBS=$LIBS
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9639 /* Override any GCC internal prototype to avoid an error.
9640 Use char because int might match the return type of a GCC
9641 builtin and then its argument prototype would still apply. */
9645 char gethostbyname_r ();
9649 return gethostbyname_r ();
9654 for ac_lib in '' nsl; do
9655 if test -z "$ac_lib"; then
9656 ac_res="none required"
9659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9661 if ac_fn_c_try_link "$LINENO"; then :
9662 ac_cv_search_gethostbyname_r=$ac_res
9664 rm -f core conftest.err conftest.$ac_objext \
9666 if ${ac_cv_search_gethostbyname_r+:} false; then :
9670 if ${ac_cv_search_gethostbyname_r+:} false; then :
9673 ac_cv_search_gethostbyname_r=no
9676 LIBS=$ac_func_search_save_LIBS
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
9679 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
9680 ac_res=$ac_cv_search_gethostbyname_r
9681 if test "$ac_res" != no; then :
9682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
9688 $as_echo_n "checking for library containing shmget... " >&6; }
9689 if ${ac_cv_search_shmget+:} false; then :
9690 $as_echo_n "(cached) " >&6
9692 ac_func_search_save_LIBS=$LIBS
9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9696 /* Override any GCC internal prototype to avoid an error.
9697 Use char because int might match the return type of a GCC
9698 builtin and then its argument prototype would still apply. */
9711 for ac_lib in '' cygipc; do
9712 if test -z "$ac_lib"; then
9713 ac_res="none required"
9716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9718 if ac_fn_c_try_link "$LINENO"; then :
9719 ac_cv_search_shmget=$ac_res
9721 rm -f core conftest.err conftest.$ac_objext \
9723 if ${ac_cv_search_shmget+:} false; then :
9727 if ${ac_cv_search_shmget+:} false; then :
9730 ac_cv_search_shmget=no
9733 LIBS=$ac_func_search_save_LIBS
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
9736 $as_echo "$ac_cv_search_shmget" >&6; }
9737 ac_res=$ac_cv_search_shmget
9738 if test "$ac_res" != no; then :
9739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9744 if test "$with_readline" = yes; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
9748 $as_echo_n "checking for library containing readline... " >&6; }
9749 if ${pgac_cv_check_readline+:} false; then :
9750 $as_echo_n "(cached) " >&6
9752 pgac_cv_check_readline=no
9753 pgac_save_LIBS=$LIBS
9754 if test x"$with_libedit_preferred" != x"yes"
9755 then READLINE_ORDER="-lreadline -ledit"
9756 else READLINE_ORDER="-ledit -lreadline"
9758 for pgac_rllib in $READLINE_ORDER ; do
9759 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
9760 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9764 /* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
9779 if ac_fn_c_try_link "$LINENO"; then :
9781 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
9782 # recognize dependent libraries; assume curses is needed if we didn't
9783 # find any dependency.
9785 netbsd* | openbsd* | irix*)
9786 if test x"$pgac_lib" = x"" ; then
9787 pgac_lib=" -lcurses"
9791 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
9795 rm -f core conftest.err conftest.$ac_objext \
9796 conftest$ac_exeext conftest.$ac_ext
9798 if test "$pgac_cv_check_readline" != no ; then
9802 LIBS=$pgac_save_LIBS
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
9806 $as_echo "$pgac_cv_check_readline" >&6; }
9807 if test "$pgac_cv_check_readline" != no ; then
9808 LIBS="$pgac_cv_check_readline $LIBS"
9810 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
9815 if test x"$pgac_cv_check_readline" = x"no"; then
9816 as_fn_error $? "readline library not found
9817 If you have readline already installed, see config.log for details on the
9818 failure. It is possible the compiler isn't looking in the proper directory.
9819 Use --without-readline to disable readline support." "$LINENO" 5
9823 if test "$with_zlib" = yes; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
9825 $as_echo_n "checking for inflate in -lz... " >&6; }
9826 if ${ac_cv_lib_z_inflate+:} false; then :
9827 $as_echo_n "(cached) " >&6
9829 ac_check_lib_save_LIBS=$LIBS
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9834 /* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
9849 if ac_fn_c_try_link "$LINENO"; then :
9850 ac_cv_lib_z_inflate=yes
9852 ac_cv_lib_z_inflate=no
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 LIBS=$ac_check_lib_save_LIBS
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
9859 $as_echo "$ac_cv_lib_z_inflate" >&6; }
9860 if test "x$ac_cv_lib_z_inflate" = xyes; then :
9861 cat >>confdefs.h <<_ACEOF
9868 as_fn_error $? "zlib library not found
9869 If you have zlib already installed, see config.log for details on the
9870 failure. It is possible the compiler isn't looking in the proper directory.
9871 Use --without-zlib to disable zlib support." "$LINENO" 5
9876 if test "$enable_spinlocks" = yes; then
9878 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9882 *** Not using spinlocks will cause poor performance." >&5
9883 $as_echo "$as_me: WARNING:
9884 *** Not using spinlocks will cause poor performance." >&2;}
9887 if test "$enable_atomics" = yes; then
9889 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9893 *** Not using atomic operations will cause poor performance." >&5
9894 $as_echo "$as_me: WARNING:
9895 *** Not using atomic operations will cause poor performance." >&2;}
9898 if test "$with_gssapi" = yes ; then
9899 if test "$PORTNAME" != "win32"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
9901 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
9902 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9903 $as_echo_n "(cached) " >&6
9905 ac_func_search_save_LIBS=$LIBS
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9909 /* Override any GCC internal prototype to avoid an error.
9910 Use char because int might match the return type of a GCC
9911 builtin and then its argument prototype would still apply. */
9915 char gss_init_sec_context ();
9919 return gss_init_sec_context ();
9924 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
9925 if test -z "$ac_lib"; then
9926 ac_res="none required"
9929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9931 if ac_fn_c_try_link "$LINENO"; then :
9932 ac_cv_search_gss_init_sec_context=$ac_res
9934 rm -f core conftest.err conftest.$ac_objext \
9936 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9940 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9943 ac_cv_search_gss_init_sec_context=no
9946 LIBS=$ac_func_search_save_LIBS
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
9949 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
9950 ac_res=$ac_cv_search_gss_init_sec_context
9951 if test "$ac_res" != no; then :
9952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9955 as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
9959 LIBS="$LIBS -lgssapi32"
9963 if test "$with_openssl" = yes ; then
9964 if test "$PORTNAME" != "win32"; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9966 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9967 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
9968 $as_echo_n "(cached) " >&6
9970 ac_check_lib_save_LIBS=$LIBS
9971 LIBS="-lcrypto $LIBS"
9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9975 /* Override any GCC internal prototype to avoid an error.
9976 Use char because int might match the return type of a GCC
9977 builtin and then its argument prototype would still apply. */
9981 char CRYPTO_new_ex_data ();
9985 return CRYPTO_new_ex_data ();
9990 if ac_fn_c_try_link "$LINENO"; then :
9991 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9993 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9995 rm -f core conftest.err conftest.$ac_objext \
9996 conftest$ac_exeext conftest.$ac_ext
9997 LIBS=$ac_check_lib_save_LIBS
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
10000 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
10001 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
10002 cat >>confdefs.h <<_ACEOF
10003 #define HAVE_LIBCRYPTO 1
10006 LIBS="-lcrypto $LIBS"
10009 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
10013 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
10014 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
10015 $as_echo_n "(cached) " >&6
10017 ac_check_lib_save_LIBS=$LIBS
10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020 /* end confdefs.h. */
10022 /* Override any GCC internal prototype to avoid an error.
10023 Use char because int might match the return type of a GCC
10024 builtin and then its argument prototype would still apply. */
10037 if ac_fn_c_try_link "$LINENO"; then :
10038 ac_cv_lib_ssl_SSL_new=yes
10040 ac_cv_lib_ssl_SSL_new=no
10042 rm -f core conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
10047 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
10048 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
10049 cat >>confdefs.h <<_ACEOF
10050 #define HAVE_LIBSSL 1
10056 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
10061 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
10062 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
10063 $as_echo_n "(cached) " >&6
10065 ac_func_search_save_LIBS=$LIBS
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10069 /* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
10075 char CRYPTO_new_ex_data ();
10079 return CRYPTO_new_ex_data ();
10084 for ac_lib in '' eay32 crypto; do
10085 if test -z "$ac_lib"; then
10086 ac_res="none required"
10089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10091 if ac_fn_c_try_link "$LINENO"; then :
10092 ac_cv_search_CRYPTO_new_ex_data=$ac_res
10094 rm -f core conftest.err conftest.$ac_objext \
10096 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
10100 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
10103 ac_cv_search_CRYPTO_new_ex_data=no
10105 rm conftest.$ac_ext
10106 LIBS=$ac_func_search_save_LIBS
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
10109 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
10110 ac_res=$ac_cv_search_CRYPTO_new_ex_data
10111 if test "$ac_res" != no; then :
10112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10115 as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
10119 $as_echo_n "checking for library containing SSL_new... " >&6; }
10120 if ${ac_cv_search_SSL_new+:} false; then :
10121 $as_echo_n "(cached) " >&6
10123 ac_func_search_save_LIBS=$LIBS
10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10127 /* Override any GCC internal prototype to avoid an error.
10128 Use char because int might match the return type of a GCC
10129 builtin and then its argument prototype would still apply. */
10142 for ac_lib in '' ssleay32 ssl; do
10143 if test -z "$ac_lib"; then
10144 ac_res="none required"
10147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10149 if ac_fn_c_try_link "$LINENO"; then :
10150 ac_cv_search_SSL_new=$ac_res
10152 rm -f core conftest.err conftest.$ac_objext \
10154 if ${ac_cv_search_SSL_new+:} false; then :
10158 if ${ac_cv_search_SSL_new+:} false; then :
10161 ac_cv_search_SSL_new=no
10163 rm conftest.$ac_ext
10164 LIBS=$ac_func_search_save_LIBS
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
10167 $as_echo "$ac_cv_search_SSL_new" >&6; }
10168 ac_res=$ac_cv_search_SSL_new
10169 if test "$ac_res" != no; then :
10170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10173 as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
10177 for ac_func in SSL_get_current_compression
10179 ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
10180 if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
10181 cat >>confdefs.h <<_ACEOF
10182 #define HAVE_SSL_GET_CURRENT_COMPRESSION 1
10188 # Functions introduced in OpenSSL 1.1.0. We used to check for
10189 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
10190 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
10191 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
10193 for ac_func in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data RAND_OpenSSL
10195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10196 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10197 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10198 cat >>confdefs.h <<_ACEOF
10199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10205 # OpenSSL versions before 1.1.0 required setting callback functions, for
10206 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
10207 # function was removed.
10208 for ac_func in CRYPTO_lock
10210 ac_fn_c_check_func "$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
10211 if test "x$ac_cv_func_CRYPTO_lock" = xyes; then :
10212 cat >>confdefs.h <<_ACEOF
10213 #define HAVE_CRYPTO_LOCK 1
10221 if test "$with_pam" = yes ; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
10223 $as_echo_n "checking for pam_start in -lpam... " >&6; }
10224 if ${ac_cv_lib_pam_pam_start+:} false; then :
10225 $as_echo_n "(cached) " >&6
10227 ac_check_lib_save_LIBS=$LIBS
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10232 /* Override any GCC internal prototype to avoid an error.
10233 Use char because int might match the return type of a GCC
10234 builtin and then its argument prototype would still apply. */
10242 return pam_start ();
10247 if ac_fn_c_try_link "$LINENO"; then :
10248 ac_cv_lib_pam_pam_start=yes
10250 ac_cv_lib_pam_pam_start=no
10252 rm -f core conftest.err conftest.$ac_objext \
10253 conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
10257 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
10258 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
10259 cat >>confdefs.h <<_ACEOF
10260 #define HAVE_LIBPAM 1
10266 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
10271 if test "$with_libxml" = yes ; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
10273 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
10274 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
10275 $as_echo_n "(cached) " >&6
10277 ac_check_lib_save_LIBS=$LIBS
10278 LIBS="-lxml2 $LIBS"
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10282 /* Override any GCC internal prototype to avoid an error.
10283 Use char because int might match the return type of a GCC
10284 builtin and then its argument prototype would still apply. */
10288 char xmlSaveToBuffer ();
10292 return xmlSaveToBuffer ();
10297 if ac_fn_c_try_link "$LINENO"; then :
10298 ac_cv_lib_xml2_xmlSaveToBuffer=yes
10300 ac_cv_lib_xml2_xmlSaveToBuffer=no
10302 rm -f core conftest.err conftest.$ac_objext \
10303 conftest$ac_exeext conftest.$ac_ext
10304 LIBS=$ac_check_lib_save_LIBS
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
10307 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
10308 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
10309 cat >>confdefs.h <<_ACEOF
10310 #define HAVE_LIBXML2 1
10313 LIBS="-lxml2 $LIBS"
10316 as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
10321 if test "$with_libxslt" = yes ; then
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
10323 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
10324 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
10325 $as_echo_n "(cached) " >&6
10327 ac_check_lib_save_LIBS=$LIBS
10328 LIBS="-lxslt $LIBS"
10329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330 /* end confdefs.h. */
10332 /* Override any GCC internal prototype to avoid an error.
10333 Use char because int might match the return type of a GCC
10334 builtin and then its argument prototype would still apply. */
10338 char xsltCleanupGlobals ();
10342 return xsltCleanupGlobals ();
10347 if ac_fn_c_try_link "$LINENO"; then :
10348 ac_cv_lib_xslt_xsltCleanupGlobals=yes
10350 ac_cv_lib_xslt_xsltCleanupGlobals=no
10352 rm -f core conftest.err conftest.$ac_objext \
10353 conftest$ac_exeext conftest.$ac_ext
10354 LIBS=$ac_check_lib_save_LIBS
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
10357 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
10358 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
10359 cat >>confdefs.h <<_ACEOF
10360 #define HAVE_LIBXSLT 1
10363 LIBS="-lxslt $LIBS"
10366 as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
10371 # Note: We can test for libldap_r only after we know PTHREAD_LIBS
10372 if test "$with_ldap" = yes ; then
10374 if test "$PORTNAME" != "win32"; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
10376 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
10377 if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
10378 $as_echo_n "(cached) " >&6
10380 ac_check_lib_save_LIBS=$LIBS
10381 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10385 /* Override any GCC internal prototype to avoid an error.
10386 Use char because int might match the return type of a GCC
10387 builtin and then its argument prototype would still apply. */
10395 return ldap_bind ();
10400 if ac_fn_c_try_link "$LINENO"; then :
10401 ac_cv_lib_ldap_ldap_bind=yes
10403 ac_cv_lib_ldap_ldap_bind=no
10405 rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407 LIBS=$ac_check_lib_save_LIBS
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
10410 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
10411 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
10412 cat >>confdefs.h <<_ACEOF
10413 #define HAVE_LIBLDAP 1
10416 LIBS="-lldap $LIBS"
10419 as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
10422 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
10423 if test "$enable_thread_safety" = yes; then
10424 # on some platforms ldap_r fails to link without PTHREAD_LIBS
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
10426 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
10427 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false; then :
10428 $as_echo_n "(cached) " >&6
10430 ac_check_lib_save_LIBS=$LIBS
10431 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10435 /* Override any GCC internal prototype to avoid an error.
10436 Use char because int might match the return type of a GCC
10437 builtin and then its argument prototype would still apply. */
10441 char ldap_simple_bind ();
10445 return ldap_simple_bind ();
10450 if ac_fn_c_try_link "$LINENO"; then :
10451 ac_cv_lib_ldap_r_ldap_simple_bind=yes
10453 ac_cv_lib_ldap_r_ldap_simple_bind=no
10455 rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 LIBS=$ac_check_lib_save_LIBS
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
10460 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
10461 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes; then :
10462 cat >>confdefs.h <<_ACEOF
10463 #define HAVE_LIBLDAP_R 1
10466 LIBS="-lldap_r $LIBS"
10469 as_fn_error $? "library 'ldap_r' is required for LDAP" "$LINENO" 5
10472 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
10474 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
10478 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
10479 if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
10480 $as_echo_n "(cached) " >&6
10482 ac_check_lib_save_LIBS=$LIBS
10483 LIBS="-lwldap32 $LIBS"
10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10487 /* Override any GCC internal prototype to avoid an error.
10488 Use char because int might match the return type of a GCC
10489 builtin and then its argument prototype would still apply. */
10497 return ldap_bind ();
10502 if ac_fn_c_try_link "$LINENO"; then :
10503 ac_cv_lib_wldap32_ldap_bind=yes
10505 ac_cv_lib_wldap32_ldap_bind=no
10507 rm -f core conftest.err conftest.$ac_objext \
10508 conftest$ac_exeext conftest.$ac_ext
10509 LIBS=$ac_check_lib_save_LIBS
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
10512 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
10513 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
10514 cat >>confdefs.h <<_ACEOF
10515 #define HAVE_LIBWLDAP32 1
10518 LIBS="-lwldap32 $LIBS"
10521 as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
10524 LDAP_LIBS_FE="-lwldap32"
10525 LDAP_LIBS_BE="-lwldap32"
10532 # for contrib/sepgsql
10533 if test "$with_selinux" = yes; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
10535 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
10536 if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
10537 $as_echo_n "(cached) " >&6
10539 ac_check_lib_save_LIBS=$LIBS
10540 LIBS="-lselinux $LIBS"
10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h. */
10544 /* Override any GCC internal prototype to avoid an error.
10545 Use char because int might match the return type of a GCC
10546 builtin and then its argument prototype would still apply. */
10550 char security_compute_create_name ();
10554 return security_compute_create_name ();
10559 if ac_fn_c_try_link "$LINENO"; then :
10560 ac_cv_lib_selinux_security_compute_create_name=yes
10562 ac_cv_lib_selinux_security_compute_create_name=no
10564 rm -f core conftest.err conftest.$ac_objext \
10565 conftest$ac_exeext conftest.$ac_ext
10566 LIBS=$ac_check_lib_save_LIBS
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
10569 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
10570 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
10571 cat >>confdefs.h <<_ACEOF
10572 #define HAVE_LIBSELINUX 1
10575 LIBS="-lselinux $LIBS"
10578 as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
10583 # for contrib/uuid-ossp
10584 if test "$with_uuid" = bsd ; then
10585 # On BSD, the UUID functions are in libc
10586 ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
10587 if test "x$ac_cv_func_uuid_to_string" = xyes; then :
10590 as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
10593 elif test "$with_uuid" = e2fs ; then
10594 # On macOS, the UUID functions are in libc
10595 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
10596 if test "x$ac_cv_func_uuid_generate" = xyes; then :
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
10600 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
10601 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
10602 $as_echo_n "(cached) " >&6
10604 ac_check_lib_save_LIBS=$LIBS
10605 LIBS="-luuid $LIBS"
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10609 /* Override any GCC internal prototype to avoid an error.
10610 Use char because int might match the return type of a GCC
10611 builtin and then its argument prototype would still apply. */
10615 char uuid_generate ();
10619 return uuid_generate ();
10624 if ac_fn_c_try_link "$LINENO"; then :
10625 ac_cv_lib_uuid_uuid_generate=yes
10627 ac_cv_lib_uuid_uuid_generate=no
10629 rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
10634 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
10635 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
10638 as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
10643 elif test "$with_uuid" = ossp ; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
10645 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
10646 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
10647 $as_echo_n "(cached) " >&6
10649 ac_check_lib_save_LIBS=$LIBS
10650 LIBS="-lossp-uuid $LIBS"
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10654 /* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
10660 char uuid_export ();
10664 return uuid_export ();
10669 if ac_fn_c_try_link "$LINENO"; then :
10670 ac_cv_lib_ossp_uuid_uuid_export=yes
10672 ac_cv_lib_ossp_uuid_uuid_export=no
10674 rm -f core conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10676 LIBS=$ac_check_lib_save_LIBS
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
10679 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
10680 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
10681 UUID_LIBS="-lossp-uuid"
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
10684 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
10685 if ${ac_cv_lib_uuid_uuid_export+:} false; then :
10686 $as_echo_n "(cached) " >&6
10688 ac_check_lib_save_LIBS=$LIBS
10689 LIBS="-luuid $LIBS"
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10693 /* Override any GCC internal prototype to avoid an error.
10694 Use char because int might match the return type of a GCC
10695 builtin and then its argument prototype would still apply. */
10699 char uuid_export ();
10703 return uuid_export ();
10708 if ac_fn_c_try_link "$LINENO"; then :
10709 ac_cv_lib_uuid_uuid_export=yes
10711 ac_cv_lib_uuid_uuid_export=no
10713 rm -f core conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext conftest.$ac_ext
10715 LIBS=$ac_check_lib_save_LIBS
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
10718 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
10719 if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
10722 as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
10735 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
10737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10738 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10739 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10740 cat >>confdefs.h <<_ACEOF
10741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10749 # On BSD, test for net/if.h will fail unless sys/socket.h
10750 # is included first.
10751 for ac_header in net/if.h
10753 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
10754 #include <sys/socket.h>
10757 if test "x$ac_cv_header_net_if_h" = xyes; then :
10758 cat >>confdefs.h <<_ACEOF
10759 #define HAVE_NET_IF_H 1
10767 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
10768 # is included first.
10769 for ac_header in sys/ucred.h
10771 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
10772 #include <sys/param.h>
10775 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
10776 cat >>confdefs.h <<_ACEOF
10777 #define HAVE_SYS_UCRED_H 1
10785 # At least on IRIX, test for netinet/tcp.h will fail unless
10786 # netinet/in.h is included first.
10787 for ac_header in netinet/tcp.h
10789 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
10790 #include <netinet/in.h>
10793 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
10794 cat >>confdefs.h <<_ACEOF
10795 #define HAVE_NETINET_TCP_H 1
10803 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10804 for ac_header in readline/readline.h
10806 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
10807 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
10808 cat >>confdefs.h <<_ACEOF
10809 #define HAVE_READLINE_READLINE_H 1
10813 for ac_header in readline.h
10815 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
10816 if test "x$ac_cv_header_readline_h" = xyes; then :
10817 cat >>confdefs.h <<_ACEOF
10818 #define HAVE_READLINE_H 1
10822 as_fn_error $? "readline header not found
10823 If you have readline already installed, see config.log for details on the
10824 failure. It is possible the compiler isn't looking in the proper directory.
10825 Use --without-readline to disable readline support." "$LINENO" 5
10834 for ac_header in readline/history.h
10836 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
10837 if test "x$ac_cv_header_readline_history_h" = xyes; then :
10838 cat >>confdefs.h <<_ACEOF
10839 #define HAVE_READLINE_HISTORY_H 1
10843 for ac_header in history.h
10845 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
10846 if test "x$ac_cv_header_history_h" = xyes; then :
10847 cat >>confdefs.h <<_ACEOF
10848 #define HAVE_HISTORY_H 1
10852 as_fn_error $? "history header not found
10853 If you have readline already installed, see config.log for details on the
10854 failure. It is possible the compiler isn't looking in the proper directory.
10855 Use --without-readline to disable readline support." "$LINENO" 5
10866 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10867 # Some installations of libedit usurp /usr/include/readline/, which seems
10868 # bad practice, since in combined installations readline will have its headers
10869 # there. We might have to resort to AC_EGREP checks to make sure we found
10870 # the proper header...
10871 for ac_header in editline/readline.h
10873 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
10874 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
10875 cat >>confdefs.h <<_ACEOF
10876 #define HAVE_EDITLINE_READLINE_H 1
10880 for ac_header in readline.h
10882 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
10883 if test "x$ac_cv_header_readline_h" = xyes; then :
10884 cat >>confdefs.h <<_ACEOF
10885 #define HAVE_READLINE_H 1
10889 for ac_header in readline/readline.h
10891 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
10892 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
10893 cat >>confdefs.h <<_ACEOF
10894 #define HAVE_READLINE_READLINE_H 1
10898 as_fn_error $? "readline header not found
10899 If you have libedit already installed, see config.log for details on the
10900 failure. It is possible the compiler isn't looking in the proper directory.
10901 Use --without-readline to disable libedit support." "$LINENO" 5
10914 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10915 # not be there at all. Hence, don't complain if not found. We must check
10916 # though, since in yet other versions it is an independent header.
10917 for ac_header in editline/history.h
10919 ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
10920 if test "x$ac_cv_header_editline_history_h" = xyes; then :
10921 cat >>confdefs.h <<_ACEOF
10922 #define HAVE_EDITLINE_HISTORY_H 1
10926 for ac_header in history.h
10928 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
10929 if test "x$ac_cv_header_history_h" = xyes; then :
10930 cat >>confdefs.h <<_ACEOF
10931 #define HAVE_HISTORY_H 1
10935 for ac_header in readline/history.h
10937 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
10938 if test "x$ac_cv_header_readline_history_h" = xyes; then :
10939 cat >>confdefs.h <<_ACEOF
10940 #define HAVE_READLINE_HISTORY_H 1
10957 if test "$with_zlib" = yes; then
10958 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10959 if test "x$ac_cv_header_zlib_h" = xyes; then :
10962 as_fn_error $? "zlib header not found
10963 If you have zlib already installed, see config.log for details on the
10964 failure. It is possible the compiler isn't looking in the proper directory.
10965 Use --without-zlib to disable zlib support." "$LINENO" 5
10971 if test "$with_gssapi" = yes ; then
10972 for ac_header in gssapi/gssapi.h
10974 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
10975 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_GSSAPI_GSSAPI_H 1
10981 for ac_header in gssapi.h
10983 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
10984 if test "x$ac_cv_header_gssapi_h" = xyes; then :
10985 cat >>confdefs.h <<_ACEOF
10986 #define HAVE_GSSAPI_H 1
10990 as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5
11001 if test "$with_openssl" = yes ; then
11002 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
11003 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
11006 as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
11010 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
11011 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
11014 as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
11020 if test "$with_pam" = yes ; then
11021 for ac_header in security/pam_appl.h
11023 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
11024 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
11025 cat >>confdefs.h <<_ACEOF
11026 #define HAVE_SECURITY_PAM_APPL_H 1
11030 for ac_header in pam/pam_appl.h
11032 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
11033 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
11034 cat >>confdefs.h <<_ACEOF
11035 #define HAVE_PAM_PAM_APPL_H 1
11039 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
11050 if test "$with_bsd_auth" = yes ; then
11051 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
11052 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
11055 as_fn_error $? "header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
11061 if test "$with_systemd" = yes ; then
11062 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
11063 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
11066 as_fn_error $? "header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
11072 if test "$with_libxml" = yes ; then
11073 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
11074 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
11077 as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5
11083 if test "$with_libxslt" = yes ; then
11084 ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
11085 if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
11088 as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
11094 if test "$with_ldap" = yes ; then
11095 if test "$PORTNAME" != "win32"; then
11096 for ac_header in ldap.h
11098 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
11099 if test "x$ac_cv_header_ldap_h" = xyes; then :
11100 cat >>confdefs.h <<_ACEOF
11101 #define HAVE_LDAP_H 1
11105 as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
11111 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
11112 if ${pgac_cv_ldap_safe+:} false; then :
11113 $as_echo_n "(cached) " >&6
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11118 #if !defined(LDAP_VENDOR_VERSION) || \
11119 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
11120 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
11131 if ac_fn_c_try_compile "$LINENO"; then :
11132 pgac_cv_ldap_safe=yes
11134 pgac_cv_ldap_safe=no
11136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
11139 $as_echo "$pgac_cv_ldap_safe" >&6; }
11141 if test "$pgac_cv_ldap_safe" != yes; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11143 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
11144 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
11145 *** also uses LDAP will crash on exit." >&5
11146 $as_echo "$as_me: WARNING:
11147 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
11148 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
11149 *** also uses LDAP will crash on exit." >&2;}
11152 for ac_header in winldap.h
11154 ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
11155 #include <windows.h>
11158 if test "x$ac_cv_header_winldap_h" = xyes; then :
11159 cat >>confdefs.h <<_ACEOF
11160 #define HAVE_WINLDAP_H 1
11164 as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
11172 if test "$with_bonjour" = yes ; then
11173 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
11174 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
11177 as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
11183 # for contrib/uuid-ossp
11184 if test "$with_uuid" = bsd ; then
11185 for ac_header in uuid.h
11187 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
11188 if test "x$ac_cv_header_uuid_h" = xyes; then :
11189 cat >>confdefs.h <<_ACEOF
11190 #define HAVE_UUID_H 1
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11198 $EGREP "uuid_to_string" >/dev/null 2>&1; then :
11201 as_fn_error $? "header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
11206 as_fn_error $? "header file <uuid.h> is required for BSD UUID" "$LINENO" 5
11211 elif test "$with_uuid" = e2fs ; then
11212 for ac_header in uuid/uuid.h
11214 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
11215 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
11216 cat >>confdefs.h <<_ACEOF
11217 #define HAVE_UUID_UUID_H 1
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11221 #include <uuid/uuid.h>
11224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11225 $EGREP "uuid_generate" >/dev/null 2>&1; then :
11228 as_fn_error $? "header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
11233 for ac_header in uuid.h
11235 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
11236 if test "x$ac_cv_header_uuid_h" = xyes; then :
11237 cat >>confdefs.h <<_ACEOF
11238 #define HAVE_UUID_H 1
11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h. */
11245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11246 $EGREP "uuid_generate" >/dev/null 2>&1; then :
11249 as_fn_error $? "header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
11254 as_fn_error $? "header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
11263 elif test "$with_uuid" = ossp ; then
11264 for ac_header in ossp/uuid.h
11266 ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
11267 if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
11268 cat >>confdefs.h <<_ACEOF
11269 #define HAVE_OSSP_UUID_H 1
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11273 #include <ossp/uuid.h>
11276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11277 $EGREP "uuid_export" >/dev/null 2>&1; then :
11280 as_fn_error $? "header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
11285 for ac_header in uuid.h
11287 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
11288 if test "x$ac_cv_header_uuid_h" = xyes; then :
11289 cat >>confdefs.h <<_ACEOF
11290 #define HAVE_UUID_H 1
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11298 $EGREP "uuid_export" >/dev/null 2>&1; then :
11301 as_fn_error $? "header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
11306 as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
11317 if test "$PORTNAME" = "win32" ; then
11318 for ac_header in crtdefs.h
11320 ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
11321 if test "x$ac_cv_header_crtdefs_h" = xyes; then :
11322 cat >>confdefs.h <<_ACEOF
11323 #define HAVE_CRTDEFS_H 1
11333 ## Types, structures, compiler characteristics
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11337 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11338 if ${ac_cv_c_bigendian+:} false; then :
11339 $as_echo_n "(cached) " >&6
11341 ac_cv_c_bigendian=unknown
11342 # See if we're dealing with a universal compiler.
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345 #ifndef __APPLE_CC__
11346 not a universal capable compiler
11351 if ac_fn_c_try_compile "$LINENO"; then :
11353 # Check for potential -arch flags. It is not universal unless
11354 # there are at least two -arch flags with different values.
11357 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11358 if test -n "$ac_prev"; then
11360 i?86 | x86_64 | ppc | ppc64)
11361 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11364 ac_cv_c_bigendian=universal
11370 elif test "x$ac_word" = "x-arch"; then
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376 if test $ac_cv_c_bigendian = unknown; then
11377 # See if sys/param.h defines the BYTE_ORDER macro.
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11380 #include <sys/types.h>
11381 #include <sys/param.h>
11386 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11387 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11389 bogus endian macros
11396 if ac_fn_c_try_compile "$LINENO"; then :
11397 # It does; now see whether it defined to BIG_ENDIAN or not.
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11400 #include <sys/types.h>
11401 #include <sys/param.h>
11406 #if BYTE_ORDER != BIG_ENDIAN
11414 if ac_fn_c_try_compile "$LINENO"; then :
11415 ac_cv_c_bigendian=yes
11417 ac_cv_c_bigendian=no
11419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11423 if test $ac_cv_c_bigendian = unknown; then
11424 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427 #include <limits.h>
11432 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11433 bogus endian macros
11440 if ac_fn_c_try_compile "$LINENO"; then :
11441 # It does; now see whether it defined to _BIG_ENDIAN or not.
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444 #include <limits.h>
11449 #ifndef _BIG_ENDIAN
11457 if ac_fn_c_try_compile "$LINENO"; then :
11458 ac_cv_c_bigendian=yes
11460 ac_cv_c_bigendian=no
11462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 if test $ac_cv_c_bigendian = unknown; then
11467 # Compile a test program.
11468 if test "$cross_compiling" = yes; then :
11469 # Try to guess by grepping values from an object file.
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11472 short int ascii_mm[] =
11473 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11474 short int ascii_ii[] =
11475 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11476 int use_ascii (int i) {
11477 return ascii_mm[i] + ascii_ii[i];
11479 short int ebcdic_ii[] =
11480 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11481 short int ebcdic_mm[] =
11482 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11483 int use_ebcdic (int i) {
11484 return ebcdic_mm[i] + ebcdic_ii[i];
11491 return use_ascii (foo) == use_ebcdic (foo);
11496 if ac_fn_c_try_compile "$LINENO"; then :
11497 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11498 ac_cv_c_bigendian=yes
11500 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11501 if test "$ac_cv_c_bigendian" = unknown; then
11502 ac_cv_c_bigendian=no
11504 # finding both strings is unlikely to happen, but who knows?
11505 ac_cv_c_bigendian=unknown
11509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11513 $ac_includes_default
11518 /* Are we little or big endian? From Harbison&Steele. */
11522 char c[sizeof (long int)];
11525 return u.c[sizeof (long int) - 1] == 1;
11531 if ac_fn_c_try_run "$LINENO"; then :
11532 ac_cv_c_bigendian=no
11534 ac_cv_c_bigendian=yes
11536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11537 conftest.$ac_objext conftest.beam conftest.$ac_ext
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11543 $as_echo "$ac_cv_c_bigendian" >&6; }
11544 case $ac_cv_c_bigendian in #(
11546 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11552 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11556 as_fn_error $? "unknown endianness
11557 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11561 $as_echo_n "checking for inline... " >&6; }
11562 if ${ac_cv_c_inline+:} false; then :
11563 $as_echo_n "(cached) " >&6
11566 for ac_kw in inline __inline__ __inline; do
11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568 /* end confdefs.h. */
11569 #ifndef __cplusplus
11571 static $ac_kw foo_t static_foo () {return 0; }
11572 $ac_kw foo_t foo () {return 0; }
11576 if ac_fn_c_try_compile "$LINENO"; then :
11577 ac_cv_c_inline=$ac_kw
11579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11580 test "$ac_cv_c_inline" != no && break
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11585 $as_echo "$ac_cv_c_inline" >&6; }
11587 case $ac_cv_c_inline in
11590 case $ac_cv_c_inline in
11592 *) ac_val=$ac_cv_c_inline;;
11594 cat >>confdefs.h <<_ACEOF
11595 #ifndef __cplusplus
11596 #define inline $ac_val
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
11603 $as_echo_n "checking for printf format archetype... " >&6; }
11604 if ${pgac_cv_printf_archetype+:} false; then :
11605 $as_echo_n "(cached) " >&6
11607 ac_save_c_werror_flag=$ac_c_werror_flag
11608 ac_c_werror_flag=yes
11609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h. */
11612 pgac_write(int ignore, const char *fmt,...)
11613 __attribute__((format(gnu_printf, 2, 3)));
11622 if ac_fn_c_try_compile "$LINENO"; then :
11623 pgac_cv_printf_archetype=gnu_printf
11625 pgac_cv_printf_archetype=printf
11627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11628 ac_c_werror_flag=$ac_save_c_werror_flag
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
11631 $as_echo "$pgac_cv_printf_archetype" >&6; }
11633 cat >>confdefs.h <<_ACEOF
11634 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
11640 $as_echo_n "checking for flexible array members... " >&6; }
11641 if ${ac_cv_c_flexmember+:} false; then :
11642 $as_echo_n "(cached) " >&6
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11646 #include <stdlib.h>
11648 #include <stddef.h>
11649 struct s { int n; double d[]; };
11653 int m = getchar ();
11654 struct s *p = malloc (offsetof (struct s, d)
11655 + m * sizeof (double));
11657 return p->d != (double *) NULL;
11662 if ac_fn_c_try_compile "$LINENO"; then :
11663 ac_cv_c_flexmember=yes
11665 ac_cv_c_flexmember=no
11667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
11670 $as_echo "$ac_cv_c_flexmember" >&6; }
11671 if test $ac_cv_c_flexmember = yes; then
11673 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
11676 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
11681 $as_echo_n "checking for signed types... " >&6; }
11682 if ${pgac_cv_c_signed+:} false; then :
11683 $as_echo_n "(cached) " >&6
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11691 signed char c; signed short s; signed int i;
11696 if ac_fn_c_try_compile "$LINENO"; then :
11697 pgac_cv_c_signed=yes
11699 pgac_cv_c_signed=no
11701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
11704 $as_echo "$pgac_cv_c_signed" >&6; }
11705 if test x"$pgac_cv_c_signed" = xno ; then
11707 $as_echo "#define signed /**/" >>confdefs.h
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
11711 $as_echo_n "checking for __func__... " >&6; }
11712 if ${pgac_cv_funcname_func_support+:} false; then :
11713 $as_echo_n "(cached) " >&6
11715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11721 printf("%s\n", __func__);
11726 if ac_fn_c_try_compile "$LINENO"; then :
11727 pgac_cv_funcname_func_support=yes
11729 pgac_cv_funcname_func_support=no
11731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
11734 $as_echo "$pgac_cv_funcname_func_support" >&6; }
11735 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11737 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
11741 $as_echo_n "checking for __FUNCTION__... " >&6; }
11742 if ${pgac_cv_funcname_function_support+:} false; then :
11743 $as_echo_n "(cached) " >&6
11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h. */
11751 printf("%s\n", __FUNCTION__);
11756 if ac_fn_c_try_compile "$LINENO"; then :
11757 pgac_cv_funcname_function_support=yes
11759 pgac_cv_funcname_function_support=no
11761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
11764 $as_echo "$pgac_cv_funcname_function_support" >&6; }
11765 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11767 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
11772 $as_echo_n "checking for _Static_assert... " >&6; }
11773 if ${pgac_cv__static_assert+:} false; then :
11774 $as_echo_n "(cached) " >&6
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11782 ({ _Static_assert(1, "foo"); })
11787 if ac_fn_c_try_link "$LINENO"; then :
11788 pgac_cv__static_assert=yes
11790 pgac_cv__static_assert=no
11792 rm -f core conftest.err conftest.$ac_objext \
11793 conftest$ac_exeext conftest.$ac_ext
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
11796 $as_echo "$pgac_cv__static_assert" >&6; }
11797 if test x"$pgac_cv__static_assert" = xyes ; then
11799 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
11803 $as_echo_n "checking for typeof... " >&6; }
11804 if ${pgac_cv_c_typeof+:} false; then :
11805 $as_echo_n "(cached) " >&6
11807 pgac_cv_c_typeof=no
11808 for pgac_kw in typeof __typeof__ decltype; do
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824 pgac_cv_c_typeof=$pgac_kw
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 test "$pgac_cv_c_typeof" != no && break
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
11831 $as_echo "$pgac_cv_c_typeof" >&6; }
11832 if test "$pgac_cv_c_typeof" != no; then
11834 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
11836 if test "$pgac_cv_c_typeof" != typeof; then
11838 cat >>confdefs.h <<_ACEOF
11839 #define typeof $pgac_cv_c_typeof
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
11845 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
11846 if ${pgac_cv__types_compatible+:} false; then :
11847 $as_echo_n "(cached) " >&6
11849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850 /* end confdefs.h. */
11855 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
11860 if ac_fn_c_try_compile "$LINENO"; then :
11861 pgac_cv__types_compatible=yes
11863 pgac_cv__types_compatible=no
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
11868 $as_echo "$pgac_cv__types_compatible" >&6; }
11869 if test x"$pgac_cv__types_compatible" = xyes ; then
11871 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
11875 $as_echo_n "checking for __builtin_bswap32... " >&6; }
11876 if ${pgac_cv__builtin_bswap32+:} false; then :
11877 $as_echo_n "(cached) " >&6
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11881 static unsigned long int x = __builtin_bswap32(0xaabbccdd);
11884 if ac_fn_c_try_compile "$LINENO"; then :
11885 pgac_cv__builtin_bswap32=yes
11887 pgac_cv__builtin_bswap32=no
11889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
11892 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
11893 if test x"$pgac_cv__builtin_bswap32" = xyes ; then
11895 $as_echo "#define HAVE__BUILTIN_BSWAP32 1" >>confdefs.h
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
11899 $as_echo_n "checking for __builtin_bswap64... " >&6; }
11900 if ${pgac_cv__builtin_bswap64+:} false; then :
11901 $as_echo_n "(cached) " >&6
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905 static unsigned long int x = __builtin_bswap64(0xaabbccddeeff0011);
11908 if ac_fn_c_try_compile "$LINENO"; then :
11909 pgac_cv__builtin_bswap64=yes
11911 pgac_cv__builtin_bswap64=no
11913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
11916 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
11917 if test x"$pgac_cv__builtin_bswap64" = xyes ; then
11919 $as_echo "#define HAVE__BUILTIN_BSWAP64 1" >>confdefs.h
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
11923 $as_echo_n "checking for __builtin_constant_p... " >&6; }
11924 if ${pgac_cv__builtin_constant_p+:} false; then :
11925 $as_echo_n "(cached) " >&6
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11929 static int x; static int y[__builtin_constant_p(x) ? x : 1];
11932 if ac_fn_c_try_compile "$LINENO"; then :
11933 pgac_cv__builtin_constant_p=yes
11935 pgac_cv__builtin_constant_p=no
11937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
11940 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
11941 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
11943 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
11947 $as_echo_n "checking for __builtin_unreachable... " >&6; }
11948 if ${pgac_cv__builtin_unreachable+:} false; then :
11949 $as_echo_n "(cached) " >&6
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11957 __builtin_unreachable();
11962 if ac_fn_c_try_link "$LINENO"; then :
11963 pgac_cv__builtin_unreachable=yes
11965 pgac_cv__builtin_unreachable=no
11967 rm -f core conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
11971 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
11972 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
11974 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
11978 $as_echo_n "checking for computed goto support... " >&6; }
11979 if ${pgac_cv_computed_goto+:} false; then :
11980 $as_echo_n "(cached) " >&6
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11988 void *labeladdrs[] = {&&my_label};
11989 goto *labeladdrs[0];
11997 if ac_fn_c_try_compile "$LINENO"; then :
11998 pgac_cv_computed_goto=yes
12000 pgac_cv_computed_goto=no
12002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
12005 $as_echo "$pgac_cv_computed_goto" >&6; }
12006 if test x"$pgac_cv_computed_goto" = xyes ; then
12008 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __VA_ARGS__" >&5
12012 $as_echo_n "checking for __VA_ARGS__... " >&6; }
12013 if ${pgac_cv__va_args+:} false; then :
12014 $as_echo_n "(cached) " >&6
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12022 #define debug(...) fprintf(stderr, __VA_ARGS__)
12023 debug("%s", "blarg");
12029 if ac_fn_c_try_compile "$LINENO"; then :
12030 pgac_cv__va_args=yes
12032 pgac_cv__va_args=no
12034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__va_args" >&5
12037 $as_echo "$pgac_cv__va_args" >&6; }
12038 if test x"$pgac_cv__va_args" = xyes ; then
12040 $as_echo "#define HAVE__VA_ARGS 1" >>confdefs.h
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12044 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12045 if ${ac_cv_struct_tm+:} false; then :
12046 $as_echo_n "(cached) " >&6
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050 #include <sys/types.h>
12057 int *p = &tm.tm_sec;
12063 if ac_fn_c_try_compile "$LINENO"; then :
12064 ac_cv_struct_tm=time.h
12066 ac_cv_struct_tm=sys/time.h
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12071 $as_echo "$ac_cv_struct_tm" >&6; }
12072 if test $ac_cv_struct_tm = sys/time.h; then
12074 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12078 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12079 #include <$ac_cv_struct_tm>
12082 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12084 cat >>confdefs.h <<_ACEOF
12085 #define HAVE_STRUCT_TM_TM_ZONE 1
12091 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12093 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12097 $as_echo_n "checking for tzname... " >&6; }
12098 if ${ac_cv_var_tzname+:} false; then :
12099 $as_echo_n "(cached) " >&6
12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102 /* end confdefs.h. */
12103 #include <stdlib.h>
12105 #ifndef tzname /* For SGI. */
12106 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12117 if ac_fn_c_try_link "$LINENO"; then :
12118 ac_cv_var_tzname=yes
12120 ac_cv_var_tzname=no
12122 rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12126 $as_echo "$ac_cv_var_tzname" >&6; }
12127 if test $ac_cv_var_tzname = yes; then
12129 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12133 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
12134 #ifdef HAVE_SYS_IPC_H
12135 #include <sys/ipc.h>
12137 #ifdef HAVE_SYS_SEM_H
12138 #include <sys/sem.h>
12141 if test "x$ac_cv_type_union_semun" = xyes; then :
12143 cat >>confdefs.h <<_ACEOF
12144 #define HAVE_UNION_SEMUN 1
12150 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
12151 #ifdef HAVE_SYS_UN_H
12152 #include <sys/un.h>
12156 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
12158 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
12162 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12163 #include <sys/socket.h>
12166 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
12168 cat >>confdefs.h <<_ACEOF
12169 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12175 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
12176 #include <sys/socket.h>
12179 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
12181 cat >>confdefs.h <<_ACEOF
12182 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
12187 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
12188 #include <sys/socket.h>
12191 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
12193 cat >>confdefs.h <<_ACEOF
12194 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12199 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
12200 #include <sys/socket.h>
12203 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
12205 cat >>confdefs.h <<_ACEOF
12206 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12211 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
12212 #include <sys/socket.h>
12215 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
12217 cat >>confdefs.h <<_ACEOF
12218 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
12223 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12224 #include <sys/socket.h>
12227 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
12229 cat >>confdefs.h <<_ACEOF
12230 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
12236 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12237 #include <sys/socket.h>
12241 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
12243 cat >>confdefs.h <<_ACEOF
12244 #define HAVE_STRUCT_ADDRINFO 1
12251 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12252 if test "x$ac_cv_type_intptr_t" = xyes; then :
12254 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
12257 for ac_type in 'int' 'long int' 'long long int'; do
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12260 $ac_includes_default
12264 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
12265 test_array [0] = 0;
12266 return test_array [0];
12272 if ac_fn_c_try_compile "$LINENO"; then :
12274 cat >>confdefs.h <<_ACEOF
12275 #define intptr_t $ac_type
12280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12281 test -z "$ac_type" && break
12287 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
12288 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12290 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
12293 for ac_type in 'unsigned int' 'unsigned long int' \
12294 'unsigned long long int'; do
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297 $ac_includes_default
12301 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
12302 test_array [0] = 0;
12303 return test_array [0];
12309 if ac_fn_c_try_compile "$LINENO"; then :
12311 cat >>confdefs.h <<_ACEOF
12312 #define uintptr_t $ac_type
12317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12318 test -z "$ac_type" && break
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12325 $as_echo_n "checking for unsigned long long int... " >&6; }
12326 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
12327 $as_echo_n "(cached) " >&6
12329 ac_cv_type_unsigned_long_long_int=yes
12330 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12334 /* For now, do not test the preprocessor; as of 2007 there are too many
12335 implementations with broken preprocessors. Perhaps this can
12336 be revisited in 2012. In the meantime, code should not expect
12337 #if to work with literals wider than 32 bits. */
12338 /* Test literals. */
12339 long long int ll = 9223372036854775807ll;
12340 long long int nll = -9223372036854775807LL;
12341 unsigned long long int ull = 18446744073709551615ULL;
12342 /* Test constant expressions. */
12343 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12345 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12351 /* Test availability of runtime routines for shift and division. */
12352 long long int llmax = 9223372036854775807ll;
12353 unsigned long long int ullmax = 18446744073709551615ull;
12354 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12355 | (llmax / ll) | (llmax % ll)
12356 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12357 | (ullmax / ull) | (ullmax % ull));
12363 if ac_fn_c_try_link "$LINENO"; then :
12366 ac_cv_type_unsigned_long_long_int=no
12368 rm -f core conftest.err conftest.$ac_objext \
12369 conftest$ac_exeext conftest.$ac_ext
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
12373 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
12374 if test $ac_cv_type_unsigned_long_long_int = yes; then
12376 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12383 $as_echo_n "checking for long long int... " >&6; }
12384 if ${ac_cv_type_long_long_int+:} false; then :
12385 $as_echo_n "(cached) " >&6
12387 ac_cv_type_long_long_int=yes
12388 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12389 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
12390 if test $ac_cv_type_long_long_int = yes; then
12391 if test "$cross_compiling" = yes; then :
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12396 #include <limits.h>
12399 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12400 # define LLONG_MAX (HALF - 1 + HALF)
12405 long long int n = 1;
12409 long long int m = n << i;
12412 if (LLONG_MAX / 2 < m)
12420 if ac_fn_c_try_run "$LINENO"; then :
12423 ac_cv_type_long_long_int=no
12425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12426 conftest.$ac_objext conftest.beam conftest.$ac_ext
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
12433 $as_echo "$ac_cv_type_long_long_int" >&6; }
12434 if test $ac_cv_type_long_long_int = yes; then
12436 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
12442 $as_echo_n "checking for locale_t... " >&6; }
12443 if ${pgac_cv_type_locale_t+:} false; then :
12444 $as_echo_n "(cached) " >&6
12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h. */
12448 #include <locale.h>
12458 if ac_fn_c_try_compile "$LINENO"; then :
12459 pgac_cv_type_locale_t=yes
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12463 #include <xlocale.h>
12473 if ac_fn_c_try_compile "$LINENO"; then :
12474 pgac_cv_type_locale_t='yes (in xlocale.h)'
12476 pgac_cv_type_locale_t=no
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
12483 $as_echo "$pgac_cv_type_locale_t" >&6; }
12484 if test "$pgac_cv_type_locale_t" != no; then
12486 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
12489 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
12491 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
12495 ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
12496 #include <sys/param.h>
12497 #ifdef HAVE_SYS_UCRED_H
12498 #include <sys/ucred.h>
12501 if test "x$ac_cv_type_struct_cmsgcred" = xyes; then :
12503 cat >>confdefs.h <<_ACEOF
12504 #define HAVE_STRUCT_CMSGCRED 1
12511 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
12512 #include <getopt.h>
12515 if test "x$ac_cv_type_struct_option" = xyes; then :
12517 cat >>confdefs.h <<_ACEOF
12518 #define HAVE_STRUCT_OPTION 1
12525 if test "$with_zlib" = yes; then
12526 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12527 # did not). While we could work around the lack of z_streamp, it
12528 # seems unwise to encourage people to use such old zlib versions...
12529 ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
12531 if test "x$ac_cv_type_z_streamp" = xyes; then :
12534 as_fn_error $? "zlib version is too old
12535 Use --without-zlib to disable zlib support." "$LINENO" 5
12540 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
12544 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12551 int a = 0; int *p = &a; int r;
12552 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
12557 if ac_fn_c_try_compile "$LINENO"; then :
12558 pgac_cv_have_ppc_mutex_hint=yes
12560 pgac_cv_have_ppc_mutex_hint=no
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
12564 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
12565 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
12567 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
12573 # Check largefile support. You might think this is a system service not a
12574 # compiler characteristic, but you'd be wrong. We must check this before
12575 # probing existence of related functions such as fseeko, since the largefile
12576 # defines can affect what is generated for that.
12577 if test "$PORTNAME" != "win32"; then
12578 # Check whether --enable-largefile was given.
12579 if test "${enable_largefile+set}" = set; then :
12580 enableval=$enable_largefile;
12583 if test "$enable_largefile" != no; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12586 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12587 if ${ac_cv_sys_largefile_CC+:} false; then :
12588 $as_echo_n "(cached) " >&6
12590 ac_cv_sys_largefile_CC=no
12591 if test "$GCC" != yes; then
12594 # IRIX 6.2 and later do not support large files by default,
12595 # so use the C compiler's -n32 option if that helps.
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12598 #include <sys/types.h>
12599 /* Check that off_t can represent 2**63 - 1 correctly.
12600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12601 since some C++ compilers masquerading as C compilers
12602 incorrectly reject 9223372036854775807. */
12603 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12605 && LARGE_OFF_T % 2147483647 == 1)
12615 if ac_fn_c_try_compile "$LINENO"; then :
12618 rm -f core conftest.err conftest.$ac_objext
12620 if ac_fn_c_try_compile "$LINENO"; then :
12621 ac_cv_sys_largefile_CC=' -n32'; break
12623 rm -f core conftest.err conftest.$ac_objext
12627 rm -f conftest.$ac_ext
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12631 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12632 if test "$ac_cv_sys_largefile_CC" != no; then
12633 CC=$CC$ac_cv_sys_largefile_CC
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12637 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12638 if ${ac_cv_sys_file_offset_bits+:} false; then :
12639 $as_echo_n "(cached) " >&6
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12644 #include <sys/types.h>
12645 /* Check that off_t can represent 2**63 - 1 correctly.
12646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12647 since some C++ compilers masquerading as C compilers
12648 incorrectly reject 9223372036854775807. */
12649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12651 && LARGE_OFF_T % 2147483647 == 1)
12661 if ac_fn_c_try_compile "$LINENO"; then :
12662 ac_cv_sys_file_offset_bits=no; break
12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667 #define _FILE_OFFSET_BITS 64
12668 #include <sys/types.h>
12669 /* Check that off_t can represent 2**63 - 1 correctly.
12670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12671 since some C++ compilers masquerading as C compilers
12672 incorrectly reject 9223372036854775807. */
12673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12675 && LARGE_OFF_T % 2147483647 == 1)
12685 if ac_fn_c_try_compile "$LINENO"; then :
12686 ac_cv_sys_file_offset_bits=64; break
12688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12689 ac_cv_sys_file_offset_bits=unknown
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12694 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12695 case $ac_cv_sys_file_offset_bits in #(
12698 cat >>confdefs.h <<_ACEOF
12699 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12704 if test $ac_cv_sys_file_offset_bits = unknown; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12706 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12707 if ${ac_cv_sys_large_files+:} false; then :
12708 $as_echo_n "(cached) " >&6
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12713 #include <sys/types.h>
12714 /* Check that off_t can represent 2**63 - 1 correctly.
12715 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12716 since some C++ compilers masquerading as C compilers
12717 incorrectly reject 9223372036854775807. */
12718 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12720 && LARGE_OFF_T % 2147483647 == 1)
12730 if ac_fn_c_try_compile "$LINENO"; then :
12731 ac_cv_sys_large_files=no; break
12733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735 /* end confdefs.h. */
12736 #define _LARGE_FILES 1
12737 #include <sys/types.h>
12738 /* Check that off_t can represent 2**63 - 1 correctly.
12739 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12740 since some C++ compilers masquerading as C compilers
12741 incorrectly reject 9223372036854775807. */
12742 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12743 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12744 && LARGE_OFF_T % 2147483647 == 1)
12754 if ac_fn_c_try_compile "$LINENO"; then :
12755 ac_cv_sys_large_files=1; break
12757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12758 ac_cv_sys_large_files=unknown
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12763 $as_echo "$ac_cv_sys_large_files" >&6; }
12764 case $ac_cv_sys_large_files in #(
12767 cat >>confdefs.h <<_ACEOF
12768 #define _LARGE_FILES $ac_cv_sys_large_files
12781 # Check for largefile support (must be after AC_SYS_LARGEFILE)
12782 # The cast to long int works around a bug in the HP C Compiler
12783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12785 # This bug is HP SR number 8606223364.
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12787 $as_echo_n "checking size of off_t... " >&6; }
12788 if ${ac_cv_sizeof_off_t+:} false; then :
12789 $as_echo_n "(cached) " >&6
12791 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12794 if test "$ac_cv_type_off_t" = yes; then
12795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12797 as_fn_error 77 "cannot compute sizeof (off_t)
12798 See \`config.log' for more details" "$LINENO" 5; }
12800 ac_cv_sizeof_off_t=0
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12806 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12810 cat >>confdefs.h <<_ACEOF
12811 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12816 # If we don't have largefile support, can't handle segsize >= 2GB.
12817 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
12818 as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
12823 ## Functions, global variables
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
12827 $as_echo_n "checking for int timezone... " >&6; }
12828 if ${pgac_cv_var_int_timezone+:} false; then :
12829 $as_echo_n "(cached) " >&6
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12839 res = timezone / 60;
12841 res = _timezone / 60;
12847 if ac_fn_c_try_link "$LINENO"; then :
12848 pgac_cv_var_int_timezone=yes
12850 pgac_cv_var_int_timezone=no
12852 rm -f core conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
12856 $as_echo "$pgac_cv_var_int_timezone" >&6; }
12857 if test x"$pgac_cv_var_int_timezone" = xyes ; then
12859 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
12863 $as_echo_n "checking types of arguments for accept()... " >&6; }
12864 if ${ac_cv_func_accept_return+:} false; then :
12865 $as_echo_n "(cached) " >&6
12867 if ${ac_cv_func_accept_arg1+:} false; then :
12868 $as_echo_n "(cached) " >&6
12870 if ${ac_cv_func_accept_arg2+:} false; then :
12871 $as_echo_n "(cached) " >&6
12873 if ${ac_cv_func_accept_arg3+:} false; then :
12874 $as_echo_n "(cached) " >&6
12876 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
12877 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
12878 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
12879 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12882 #include <sys/types.h>
12883 #include <sys/socket.h>
12884 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
12886 if ac_fn_c_try_compile "$LINENO"; then :
12887 ac_not_found=no; break 4
12891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896 if test "$ac_not_found" = yes; then
12897 as_fn_error $? "could not determine argument types" "$LINENO" 5
12899 if test "$ac_cv_func_accept_arg3" = "void"; then
12900 ac_cv_func_accept_arg3=int
12910 { $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
12911 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
12913 cat >>confdefs.h <<_ACEOF
12914 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
12918 cat >>confdefs.h <<_ACEOF
12919 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
12923 cat >>confdefs.h <<_ACEOF
12924 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
12928 cat >>confdefs.h <<_ACEOF
12929 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
12934 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
12935 if ${pgac_cv_func_gettimeofday_1arg+:} false; then :
12936 $as_echo_n "(cached) " >&6
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12940 #include <sys/time.h>
12944 struct timeval *tp;
12945 struct timezone *tzp;
12946 gettimeofday(tp,tzp);
12951 if ac_fn_c_try_compile "$LINENO"; then :
12952 pgac_cv_func_gettimeofday_1arg=no
12954 pgac_cv_func_gettimeofday_1arg=yes
12956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
12959 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
12960 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
12962 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
12967 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
12968 if ${pgac_cv_func_wcstombs_l+:} false; then :
12969 $as_echo_n "(cached) " >&6
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12973 #include <stdlib.h>
12974 #include <locale.h>
12985 if ac_fn_c_try_compile "$LINENO"; then :
12986 pgac_cv_func_wcstombs_l='yes'
12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989 /* end confdefs.h. */
12990 #include <stdlib.h>
12991 #include <locale.h>
12992 #include <xlocale.h>
13003 if ac_fn_c_try_compile "$LINENO"; then :
13004 pgac_cv_func_wcstombs_l='yes (in xlocale.h)'
13006 pgac_cv_func_wcstombs_l='no'
13008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
13013 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
13014 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
13016 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
13020 # Some versions of libedit contain strlcpy(), setproctitle(), and other
13021 # symbols that that library has no business exposing to the world. Pending
13022 # acquisition of a clue by those developers, ignore libedit (including its
13023 # possible alias of libreadline) while checking for everything else.
13024 LIBS_including_readline="$LIBS"
13025 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
13027 for ac_func in cbrt clock_gettime dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat pthread_is_threaded_np readlink setproctitle setsid shm_open symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
13029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13030 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13031 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13032 cat >>confdefs.h <<_ACEOF
13033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13040 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
13041 if test "x$ac_cv_func_fseeko" = xyes; then :
13042 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13045 case " $LIBOBJS " in
13046 *" fseeko.$ac_objext "* ) ;;
13047 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
13055 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
13056 # Mingw uses macros to access Win32 API calls
13059 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13061 ac_cv_func_fseeko=yes;;
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13064 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13065 if ${ac_cv_sys_largefile_source+:} false; then :
13066 $as_echo_n "(cached) " >&6
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13071 #include <sys/types.h> /* for off_t */
13076 int (*fp) (FILE *, off_t, int) = fseeko;
13077 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13082 if ac_fn_c_try_link "$LINENO"; then :
13083 ac_cv_sys_largefile_source=no; break
13085 rm -f core conftest.err conftest.$ac_objext \
13086 conftest$ac_exeext conftest.$ac_ext
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089 #define _LARGEFILE_SOURCE 1
13090 #include <sys/types.h> /* for off_t */
13095 int (*fp) (FILE *, off_t, int) = fseeko;
13096 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13101 if ac_fn_c_try_link "$LINENO"; then :
13102 ac_cv_sys_largefile_source=1; break
13104 rm -f core conftest.err conftest.$ac_objext \
13105 conftest$ac_exeext conftest.$ac_ext
13106 ac_cv_sys_largefile_source=unknown
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13111 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13112 case $ac_cv_sys_largefile_source in #(
13115 cat >>confdefs.h <<_ACEOF
13116 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13122 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13123 # in glibc 2.1.3, but that breaks too many other things.
13124 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13125 if test $ac_cv_sys_largefile_source != unknown; then
13127 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13133 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
13134 # by calling it, 2009-04-02
13135 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
13136 if test "$PORTNAME" != "solaris"; then
13137 for ac_func in posix_fadvise
13139 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13140 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
13141 cat >>confdefs.h <<_ACEOF
13142 #define HAVE_POSIX_FADVISE 1
13148 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
13150 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
13156 cat >>confdefs.h <<_ACEOF
13157 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
13162 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
13164 if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
13170 cat >>confdefs.h <<_ACEOF
13171 #define HAVE_DECL_FDATASYNC $ac_have_decl
13174 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
13175 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
13181 cat >>confdefs.h <<_ACEOF
13182 #define HAVE_DECL_STRLCAT $ac_have_decl
13184 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
13185 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
13191 cat >>confdefs.h <<_ACEOF
13192 #define HAVE_DECL_STRLCPY $ac_have_decl
13195 # This is probably only present on macOS, but may as well check always
13196 ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
13198 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then :
13204 cat >>confdefs.h <<_ACEOF
13205 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
13210 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
13211 #include <netinet/in.h>
13213 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13215 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
13223 $as_echo_n "checking for PS_STRINGS... " >&6; }
13224 if ${pgac_cv_var_PS_STRINGS+:} false; then :
13225 $as_echo_n "(cached) " >&6
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13229 #include <machine/vmparam.h>
13230 #include <sys/exec.h>
13235 PS_STRINGS->ps_nargvstr = 1;
13236 PS_STRINGS->ps_argvstr = "foo";
13241 if ac_fn_c_try_link "$LINENO"; then :
13242 pgac_cv_var_PS_STRINGS=yes
13244 pgac_cv_var_PS_STRINGS=no
13246 rm -f core conftest.err conftest.$ac_objext \
13247 conftest$ac_exeext conftest.$ac_ext
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
13250 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
13251 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13253 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
13258 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13259 # is missing. Yes, there are machines that have only one. We may
13260 # also decide to use snprintf.c if snprintf() is present but does not
13261 # have all the features we need --- see below.
13263 if test "$PORTNAME" = "win32"; then
13264 # Win32 gets snprintf.c built unconditionally.
13266 # To properly translate all NLS languages strings, we must support the
13267 # *printf() %$ format, which allows *printf() arguments to be selected
13268 # by position in the translated string.
13270 # libintl versions < 0.13 use the native *printf() functions, and Win32
13271 # *printf() doesn't understand %$, so we must use our /port versions,
13272 # which do understand %$. libintl versions >= 0.13 include their own
13273 # *printf versions on Win32. The libintl 0.13 release note text is:
13275 # C format strings with positions, as they arise when a translator
13276 # needs to reorder a sentence, are now supported on all platforms.
13277 # On those few platforms (NetBSD and Woe32) for which the native
13278 # printf()/fprintf()/... functions don't support such format
13279 # strings, replacements are provided through <libintl.h>.
13281 # We could use libintl >= 0.13's *printf() if we were sure that we had
13282 # a litint >= 0.13 at runtime, but seeing that there is no clean way
13283 # to guarantee that, it is best to just use our own, so we are sure to
13284 # get %$ support. In include/port.h we disable the *printf() macros
13285 # that might have been defined by libintl.
13287 # We do this unconditionally whether NLS is used or not so we are sure
13288 # that all Win32 libraries and binaries behave the same.
13289 pgac_need_repl_snprintf=yes
13291 pgac_need_repl_snprintf=no
13292 for ac_func in snprintf
13294 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13295 if test "x$ac_cv_func_snprintf" = xyes; then :
13296 cat >>confdefs.h <<_ACEOF
13297 #define HAVE_SNPRINTF 1
13301 pgac_need_repl_snprintf=yes
13305 for ac_func in vsnprintf
13307 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
13308 if test "x$ac_cv_func_vsnprintf" = xyes; then :
13309 cat >>confdefs.h <<_ACEOF
13310 #define HAVE_VSNPRINTF 1
13314 pgac_need_repl_snprintf=yes
13321 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
13322 # include/c.h will provide declarations. Note this is a separate test
13323 # from whether the functions exist in the C library --- there are
13324 # systems that have the functions but don't bother to declare them :-(
13326 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13327 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
13333 cat >>confdefs.h <<_ACEOF
13334 #define HAVE_DECL_SNPRINTF $ac_have_decl
13336 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13337 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
13343 cat >>confdefs.h <<_ACEOF
13344 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
13350 $as_echo_n "checking for isinf... " >&6; }
13351 if ${ac_cv_func_isinf+:} false; then :
13352 $as_echo_n "(cached) " >&6
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13358 double glob_double;
13363 return isinf(glob_double) ? 0 : 1;
13368 if ac_fn_c_try_link "$LINENO"; then :
13369 ac_cv_func_isinf=yes
13371 ac_cv_func_isinf=no
13373 rm -f core conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
13377 $as_echo "$ac_cv_func_isinf" >&6; }
13379 if test $ac_cv_func_isinf = yes ; then
13381 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13384 case " $LIBOBJS " in
13385 *" isinf.$ac_objext "* ) ;;
13386 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
13390 # Look for a way to implement a substitute for isinf()
13391 for ac_func in fpclass fp_class fp_class_d class
13393 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13394 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13395 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13396 cat >>confdefs.h <<_ACEOF
13397 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13405 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
13406 if test "x$ac_cv_func_crypt" = xyes; then :
13407 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
13410 case " $LIBOBJS " in
13411 *" crypt.$ac_objext "* ) ;;
13412 *) LIBOBJS="$LIBOBJS crypt.$ac_objext"
13418 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
13419 if test "x$ac_cv_func_fls" = xyes; then :
13420 $as_echo "#define HAVE_FLS 1" >>confdefs.h
13423 case " $LIBOBJS " in
13424 *" fls.$ac_objext "* ) ;;
13425 *) LIBOBJS="$LIBOBJS fls.$ac_objext"
13431 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
13432 if test "x$ac_cv_func_getopt" = xyes; then :
13433 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
13436 case " $LIBOBJS " in
13437 *" getopt.$ac_objext "* ) ;;
13438 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
13444 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13445 if test "x$ac_cv_func_getrusage" = xyes; then :
13446 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
13449 case " $LIBOBJS " in
13450 *" getrusage.$ac_objext "* ) ;;
13451 *) LIBOBJS="$LIBOBJS getrusage.$ac_objext"
13457 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
13458 if test "x$ac_cv_func_inet_aton" = xyes; then :
13459 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
13462 case " $LIBOBJS " in
13463 *" inet_aton.$ac_objext "* ) ;;
13464 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
13470 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
13471 if test "x$ac_cv_func_mkdtemp" = xyes; then :
13472 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
13475 case " $LIBOBJS " in
13476 *" mkdtemp.$ac_objext "* ) ;;
13477 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
13483 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
13484 if test "x$ac_cv_func_random" = xyes; then :
13485 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
13488 case " $LIBOBJS " in
13489 *" random.$ac_objext "* ) ;;
13490 *) LIBOBJS="$LIBOBJS random.$ac_objext"
13496 ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
13497 if test "x$ac_cv_func_rint" = xyes; then :
13498 $as_echo "#define HAVE_RINT 1" >>confdefs.h
13501 case " $LIBOBJS " in
13502 *" rint.$ac_objext "* ) ;;
13503 *) LIBOBJS="$LIBOBJS rint.$ac_objext"
13509 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13510 if test "x$ac_cv_func_srandom" = xyes; then :
13511 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
13514 case " $LIBOBJS " in
13515 *" srandom.$ac_objext "* ) ;;
13516 *) LIBOBJS="$LIBOBJS srandom.$ac_objext"
13522 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13523 if test "x$ac_cv_func_strerror" = xyes; then :
13524 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
13527 case " $LIBOBJS " in
13528 *" strerror.$ac_objext "* ) ;;
13529 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
13535 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
13536 if test "x$ac_cv_func_strlcat" = xyes; then :
13537 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
13540 case " $LIBOBJS " in
13541 *" strlcat.$ac_objext "* ) ;;
13542 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
13548 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
13549 if test "x$ac_cv_func_strlcpy" = xyes; then :
13550 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
13553 case " $LIBOBJS " in
13554 *" strlcpy.$ac_objext "* ) ;;
13555 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
13565 # Windows uses a specialised env handler
13566 # and doesn't need a replacement getpeereid because it doesn't use
13570 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
13573 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
13575 ac_cv_func_unsetenv=yes
13576 ac_cv_func_getpeereid=yes;;
13578 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
13579 if test "x$ac_cv_func_unsetenv" = xyes; then :
13580 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
13583 case " $LIBOBJS " in
13584 *" unsetenv.$ac_objext "* ) ;;
13585 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
13591 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
13592 if test "x$ac_cv_func_getpeereid" = xyes; then :
13593 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
13596 case " $LIBOBJS " in
13597 *" getpeereid.$ac_objext "* ) ;;
13598 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
13608 # System's version of getaddrinfo(), if any, may be used only if we found
13609 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
13610 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
13611 if test x"$ac_cv_type_struct_addrinfo" = xyes && \
13612 test "$PORTNAME" != "win32"; then
13613 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13614 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13615 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13618 case " $LIBOBJS " in
13619 *" getaddrinfo.$ac_objext "* ) ;;
13620 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
13628 case " $LIBOBJS " in
13629 *" getaddrinfo.$ac_objext "* ) ;;
13630 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
13636 # Similarly, use system's getopt_long() only if system provides struct option.
13637 if test x"$ac_cv_type_struct_option" = xyes ; then
13638 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
13639 if test "x$ac_cv_func_getopt_long" = xyes; then :
13640 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
13643 case " $LIBOBJS " in
13644 *" getopt_long.$ac_objext "* ) ;;
13645 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13653 case " $LIBOBJS " in
13654 *" getopt_long.$ac_objext "* ) ;;
13655 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13661 # Solaris' getopt() doesn't do what we want for long options, so always use
13662 # our version on that platform.
13663 if test "$PORTNAME" = "solaris"; then
13664 case " $LIBOBJS " in
13665 *" getopt.$ac_objext "* ) ;;
13666 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
13672 # mingw has adopted a GNU-centric interpretation of optind/optreset,
13673 # so always use our version on Windows.
13674 if test "$PORTNAME" = "win32"; then
13675 case " $LIBOBJS " in
13676 *" getopt.$ac_objext "* ) ;;
13677 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
13681 case " $LIBOBJS " in
13682 *" getopt_long.$ac_objext "* ) ;;
13683 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13689 # Win32 (really MinGW) support
13690 if test "$PORTNAME" = "win32"; then
13691 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13692 if test "x$ac_cv_func_gettimeofday" = xyes; then :
13693 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
13696 case " $LIBOBJS " in
13697 *" gettimeofday.$ac_objext "* ) ;;
13698 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
13705 case " $LIBOBJS " in
13706 *" dirmod.$ac_objext "* ) ;;
13707 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
13711 case " $LIBOBJS " in
13712 *" kill.$ac_objext "* ) ;;
13713 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
13717 case " $LIBOBJS " in
13718 *" open.$ac_objext "* ) ;;
13719 *) LIBOBJS="$LIBOBJS open.$ac_objext"
13723 case " $LIBOBJS " in
13724 *" system.$ac_objext "* ) ;;
13725 *) LIBOBJS="$LIBOBJS system.$ac_objext"
13729 case " $LIBOBJS " in
13730 *" win32env.$ac_objext "* ) ;;
13731 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
13735 case " $LIBOBJS " in
13736 *" win32error.$ac_objext "* ) ;;
13737 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
13741 case " $LIBOBJS " in
13742 *" win32security.$ac_objext "* ) ;;
13743 *) LIBOBJS="$LIBOBJS win32security.$ac_objext"
13747 case " $LIBOBJS " in
13748 *" win32setlocale.$ac_objext "* ) ;;
13749 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
13754 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
13756 ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
13757 #define WIN32_LEAN_AND_MEAN
13758 #include <windows.h>
13759 #include <string.h>
13760 #include <dbghelp.h>
13762 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
13764 cat >>confdefs.h <<_ACEOF
13765 #define HAVE_MINIDUMP_TYPE 1
13768 pgac_minidump_type=yes
13770 pgac_minidump_type=no
13774 if test x"$pgac_minidump_type" = x"yes" ; then
13775 have_win32_dbghelp=yes
13778 have_win32_dbghelp=no
13782 # Cygwin needs only a bit of that
13783 if test "$PORTNAME" = "cygwin"; then
13784 case " $LIBOBJS " in
13785 *" dirmod.$ac_objext "* ) ;;
13786 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
13792 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13793 /* NetBSD declares sys_siglist in unistd.h. */
13794 #ifdef HAVE_UNISTD_H
13795 # include <unistd.h>
13799 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13805 cat >>confdefs.h <<_ACEOF
13806 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13810 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
13811 if test "x$ac_cv_func_syslog" = xyes; then :
13812 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
13813 if test "x$ac_cv_header_syslog_h" = xyes; then :
13815 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
13824 $as_echo_n "checking for opterr... " >&6; }
13825 if ${pgac_cv_var_int_opterr+:} false; then :
13826 $as_echo_n "(cached) " >&6
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830 #include <unistd.h>
13834 extern int opterr; opterr = 1;
13839 if ac_fn_c_try_link "$LINENO"; then :
13840 pgac_cv_var_int_opterr=yes
13842 pgac_cv_var_int_opterr=no
13844 rm -f core conftest.err conftest.$ac_objext \
13845 conftest$ac_exeext conftest.$ac_ext
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
13848 $as_echo "$pgac_cv_var_int_opterr" >&6; }
13849 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
13851 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13856 $as_echo_n "checking for optreset... " >&6; }
13857 if ${pgac_cv_var_int_optreset+:} false; then :
13858 $as_echo_n "(cached) " >&6
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13862 #include <unistd.h>
13866 extern int optreset; optreset = 1;
13871 if ac_fn_c_try_link "$LINENO"; then :
13872 pgac_cv_var_int_optreset=yes
13874 pgac_cv_var_int_optreset=no
13876 rm -f core conftest.err conftest.$ac_objext \
13877 conftest$ac_exeext conftest.$ac_ext
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
13880 $as_echo "$pgac_cv_var_int_optreset" >&6; }
13881 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
13883 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
13887 for ac_func in strtoll strtoq
13889 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13890 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13891 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13892 cat >>confdefs.h <<_ACEOF
13893 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13899 for ac_func in strtoull strtouq
13901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13903 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13904 cat >>confdefs.h <<_ACEOF
13905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13912 if test "$with_icu" = yes; then
13913 ac_save_CPPFLAGS=$CPPFLAGS
13914 CPPFLAGS="$ICU_CFLAGS $CPPFLAGS"
13916 # Verify we have ICU's header files
13917 ac_fn_c_check_header_mongrel "$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
13918 if test "x$ac_cv_header_unicode_ucol_h" = xyes; then :
13921 as_fn_error $? "header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
13926 CPPFLAGS=$ac_save_CPPFLAGS
13929 # Lastly, restore full LIBS list and check for readline/libedit symbols
13930 LIBS="$LIBS_including_readline"
13932 if test "$with_readline" = yes; then
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
13934 $as_echo_n "checking for rl_completion_append_character... " >&6; }
13935 if ${pgac_cv_var_rl_completion_append_character+:} false; then :
13936 $as_echo_n "(cached) " >&6
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13941 #ifdef HAVE_READLINE_READLINE_H
13942 # include <readline/readline.h>
13943 #elif defined(HAVE_READLINE_H)
13944 # include <readline.h>
13950 rl_completion_append_character = 'x';
13955 if ac_fn_c_try_link "$LINENO"; then :
13956 pgac_cv_var_rl_completion_append_character=yes
13958 pgac_cv_var_rl_completion_append_character=no
13960 rm -f core conftest.err conftest.$ac_objext \
13961 conftest$ac_exeext conftest.$ac_ext
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
13964 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
13965 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
13967 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
13970 for ac_func in rl_completion_matches rl_filename_completion_function rl_reset_screen_size
13972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13973 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13974 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13975 cat >>confdefs.h <<_ACEOF
13976 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13982 for ac_func in append_history history_truncate_file
13984 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13985 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13986 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13987 cat >>confdefs.h <<_ACEOF
13988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13997 # This test makes sure that run tests work at all. Sometimes a shared
13998 # library is found by the linker, but the runtime linker can't find it.
13999 # This check should come after all modifications of compiler or linker
14000 # variables, and before any other run tests.
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
14002 $as_echo_n "checking test program... " >&6; }
14003 if test "$cross_compiling" = yes; then :
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
14005 $as_echo "cross-compiling" >&6; }
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14009 int main() { return 0; }
14011 if ac_fn_c_try_run "$LINENO"; then :
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14013 $as_echo "ok" >&6; }
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14016 $as_echo "failed" >&6; }
14018 Could not execute a simple test program. This may be a problem
14019 related to locating shared libraries. Check the file 'config.log'
14020 for the exact reason." "$LINENO" 5
14022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14023 conftest.$ac_objext conftest.beam conftest.$ac_ext
14027 # --------------------
14028 # Run tests below here
14029 # --------------------
14031 # Force use of our snprintf if system's doesn't do arg control
14032 # See comment above at snprintf test for details.
14033 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports argument control" >&5
14035 $as_echo_n "checking whether snprintf supports argument control... " >&6; }
14036 if ${pgac_cv_snprintf_arg_control+:} false; then :
14037 $as_echo_n "(cached) " >&6
14039 if test "$cross_compiling" = yes; then :
14040 pgac_cv_snprintf_arg_control=cross
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14045 #include <string.h>
14051 /* can it swap arguments? */
14052 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
14053 if (strcmp(buf, "4 3") != 0)
14058 if ac_fn_c_try_run "$LINENO"; then :
14059 pgac_cv_snprintf_arg_control=yes
14061 pgac_cv_snprintf_arg_control=no
14063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14064 conftest.$ac_objext conftest.beam conftest.$ac_ext
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_arg_control" >&5
14070 $as_echo "$pgac_cv_snprintf_arg_control" >&6; }
14072 if test $pgac_cv_snprintf_arg_control != yes ; then
14073 pgac_need_repl_snprintf=yes
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
14081 $as_echo_n "checking whether long int is 64 bits... " >&6; }
14082 if ${pgac_cv_type_long_int_64+:} false; then :
14083 $as_echo_n "(cached) " >&6
14085 if test "$cross_compiling" = yes; then :
14086 # If cross-compiling, check the size reported by the compiler and
14087 # trust that the arithmetic works.
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14094 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
14095 test_array [0] = 0;
14096 return test_array [0];
14102 if ac_fn_c_try_compile "$LINENO"; then :
14103 pgac_cv_type_long_int_64=yes
14105 pgac_cv_type_long_int_64=no
14107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14111 typedef long int ac_int64;
14114 * These are globals to discourage the compiler from folding all the
14115 * arithmetic tests down to compile-time constants.
14117 ac_int64 a = 20000001;
14118 ac_int64 b = 40000005;
14120 int does_int64_work()
14124 if (sizeof(ac_int64) != 8)
14125 return 0; /* definitely not the right size */
14127 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14137 return (! does_int64_work());
14140 if ac_fn_c_try_run "$LINENO"; then :
14141 pgac_cv_type_long_int_64=yes
14143 pgac_cv_type_long_int_64=no
14145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14146 conftest.$ac_objext conftest.beam conftest.$ac_ext
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
14151 $as_echo "$pgac_cv_type_long_int_64" >&6; }
14153 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
14154 if test x"$pgac_cv_type_long_int_64" = xyes ; then
14156 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
14161 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
14162 pg_int64_type="long int"
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
14165 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
14166 if ${pgac_cv_type_long_long_int_64+:} false; then :
14167 $as_echo_n "(cached) " >&6
14169 if test "$cross_compiling" = yes; then :
14170 # If cross-compiling, check the size reported by the compiler and
14171 # trust that the arithmetic works.
14172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14173 /* end confdefs.h. */
14178 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
14179 test_array [0] = 0;
14180 return test_array [0];
14186 if ac_fn_c_try_compile "$LINENO"; then :
14187 pgac_cv_type_long_long_int_64=yes
14189 pgac_cv_type_long_long_int_64=no
14191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14195 typedef long long int ac_int64;
14198 * These are globals to discourage the compiler from folding all the
14199 * arithmetic tests down to compile-time constants.
14201 ac_int64 a = 20000001;
14202 ac_int64 b = 40000005;
14204 int does_int64_work()
14208 if (sizeof(ac_int64) != 8)
14209 return 0; /* definitely not the right size */
14211 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14221 return (! does_int64_work());
14224 if ac_fn_c_try_run "$LINENO"; then :
14225 pgac_cv_type_long_long_int_64=yes
14227 pgac_cv_type_long_long_int_64=no
14229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14230 conftest.$ac_objext conftest.beam conftest.$ac_ext
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
14235 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
14237 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14238 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14240 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
14244 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14245 pg_int64_type="long long int"
14247 as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5
14252 cat >>confdefs.h <<_ACEOF
14253 #define PG_INT64_TYPE $pg_int64_type
14258 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14262 #define INT64CONST(x) x##LL
14263 long long int foo = INT64CONST(0x1234567890123456);
14266 if ac_fn_c_try_compile "$LINENO"; then :
14268 $as_echo "#define HAVE_LL_CONSTANTS 1" >>confdefs.h
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 # If we found "long int" is 64 bits, assume snprintf handles it. If
14276 # we found we need to use "long long int", better check. We cope with
14277 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
14278 # work, fall back to our own snprintf emulation (which we know uses %lld).
14280 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14281 if test $pgac_need_repl_snprintf = no; then
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf length modifier for long long int" >&5
14283 $as_echo_n "checking snprintf length modifier for long long int... " >&6; }
14284 if ${pgac_cv_snprintf_long_long_int_modifier+:} false; then :
14285 $as_echo_n "(cached) " >&6
14287 for pgac_modifier in 'll' 'q' 'I64'; do
14288 if test "$cross_compiling" = yes; then :
14289 pgac_cv_snprintf_long_long_int_modifier=cross; break
14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14294 #include <string.h>
14295 typedef long long int ac_int64;
14296 #define INT64_FORMAT "%${pgac_modifier}d"
14298 ac_int64 a = 20000001;
14299 ac_int64 b = 40000005;
14301 int does_int64_snprintf_work()
14306 if (sizeof(ac_int64) != 8)
14307 return 0; /* doesn't look like the right size */
14310 snprintf(buf, 100, INT64_FORMAT, c);
14311 if (strcmp(buf, "800000140000005") != 0)
14312 return 0; /* either multiply or snprintf is busted */
14318 return (! does_int64_snprintf_work());
14321 if ac_fn_c_try_run "$LINENO"; then :
14322 pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break
14324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14325 conftest.$ac_objext conftest.beam conftest.$ac_ext
14331 LONG_LONG_INT_MODIFIER=''
14333 case $pgac_cv_snprintf_long_long_int_modifier in
14334 cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5
14335 $as_echo "cannot test (not on host machine)" >&6; };;
14336 ?*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_modifier" >&5
14337 $as_echo "$pgac_cv_snprintf_long_long_int_modifier" >&6; }
14338 LONG_LONG_INT_MODIFIER=$pgac_cv_snprintf_long_long_int_modifier;;
14339 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14340 $as_echo "none" >&6; };;
14342 if test "$LONG_LONG_INT_MODIFIER" = ""; then
14343 # Force usage of our own snprintf, since system snprintf is broken
14344 pgac_need_repl_snprintf=yes
14345 LONG_LONG_INT_MODIFIER='ll'
14348 # Here if we previously decided we needed to use our own snprintf
14349 LONG_LONG_INT_MODIFIER='ll'
14352 # Here if we are not using 'long long int' at all
14353 LONG_LONG_INT_MODIFIER='l'
14356 INT64_MODIFIER="\"$LONG_LONG_INT_MODIFIER\""
14359 cat >>confdefs.h <<_ACEOF
14360 #define INT64_MODIFIER $INT64_MODIFIER
14364 # Also force use of our snprintf if the system's doesn't support the %z flag.
14365 if test "$pgac_need_repl_snprintf" = no; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports the %z modifier" >&5
14367 $as_echo_n "checking whether snprintf supports the %z modifier... " >&6; }
14368 if ${pgac_cv_snprintf_size_t_support+:} false; then :
14369 $as_echo_n "(cached) " >&6
14371 if test "$cross_compiling" = yes; then :
14372 pgac_cv_snprintf_size_t_support=cross
14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h. */
14377 #include <string.h>
14385 * Print the largest unsigned number fitting in a size_t using both %zu
14386 * and the previously-determined format for 64-bit integers. Note that
14387 * we don't run this code unless we know snprintf handles 64-bit ints.
14389 bufz[0] = '\0'; /* in case snprintf fails to emit anything */
14390 snprintf(bufz, sizeof(bufz), "%zu", ~((size_t) 0));
14391 snprintf(buf64, sizeof(buf64), "%" INT64_MODIFIER "u",
14392 (unsigned PG_INT64_TYPE) ~((size_t) 0));
14393 if (strcmp(bufz, buf64) != 0)
14398 if ac_fn_c_try_run "$LINENO"; then :
14399 pgac_cv_snprintf_size_t_support=yes
14401 pgac_cv_snprintf_size_t_support=no
14403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14404 conftest.$ac_objext conftest.beam conftest.$ac_ext
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_size_t_support" >&5
14410 $as_echo "$pgac_cv_snprintf_size_t_support" >&6; }
14412 if test "$pgac_cv_snprintf_size_t_support" != yes; then
14413 pgac_need_repl_snprintf=yes
14417 # Now we have checked all the reasons to replace snprintf
14418 if test $pgac_need_repl_snprintf = yes; then
14420 $as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h
14422 case " $LIBOBJS " in
14423 *" snprintf.$ac_objext "* ) ;;
14424 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14430 # Check size of void *, size_t (enables tweaks for > 32bit address space)
14431 # The cast to long int works around a bug in the HP C Compiler
14432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14434 # This bug is HP SR number 8606223364.
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14436 $as_echo_n "checking size of void *... " >&6; }
14437 if ${ac_cv_sizeof_void_p+:} false; then :
14438 $as_echo_n "(cached) " >&6
14440 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14443 if test "$ac_cv_type_void_p" = yes; then
14444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14446 as_fn_error 77 "cannot compute sizeof (void *)
14447 See \`config.log' for more details" "$LINENO" 5; }
14449 ac_cv_sizeof_void_p=0
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14455 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14459 cat >>confdefs.h <<_ACEOF
14460 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14464 # The cast to long int works around a bug in the HP C Compiler
14465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14467 # This bug is HP SR number 8606223364.
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14469 $as_echo_n "checking size of size_t... " >&6; }
14470 if ${ac_cv_sizeof_size_t+:} false; then :
14471 $as_echo_n "(cached) " >&6
14473 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14476 if test "$ac_cv_type_size_t" = yes; then
14477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14479 as_fn_error 77 "cannot compute sizeof (size_t)
14480 See \`config.log' for more details" "$LINENO" 5; }
14482 ac_cv_sizeof_size_t=0
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14488 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14492 cat >>confdefs.h <<_ACEOF
14493 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14497 # The cast to long int works around a bug in the HP C Compiler
14498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14500 # This bug is HP SR number 8606223364.
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14502 $as_echo_n "checking size of long... " >&6; }
14503 if ${ac_cv_sizeof_long+:} false; then :
14504 $as_echo_n "(cached) " >&6
14506 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14509 if test "$ac_cv_type_long" = yes; then
14510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14512 as_fn_error 77 "cannot compute sizeof (long)
14513 See \`config.log' for more details" "$LINENO" 5; }
14515 ac_cv_sizeof_long=0
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14521 $as_echo "$ac_cv_sizeof_long" >&6; }
14525 cat >>confdefs.h <<_ACEOF
14526 #define SIZEOF_LONG $ac_cv_sizeof_long
14531 # Decide whether float4 is passed by value: user-selectable, enabled by default
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
14533 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
14536 # Check whether --enable-float4-byval was given.
14537 if test "${enable_float4_byval+set}" = set; then :
14538 enableval=$enable_float4_byval;
14542 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
14544 float4passbyval=true
14547 float4passbyval=false
14550 as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
14555 enable_float4_byval=yes
14557 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
14559 float4passbyval=true
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
14564 $as_echo "$enable_float4_byval" >&6; }
14566 cat >>confdefs.h <<_ACEOF
14567 #define FLOAT4PASSBYVAL $float4passbyval
14571 # Decide whether float8 is passed by value.
14572 # Note: this setting also controls int8 and related types such as timestamp.
14573 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
14574 # If not, trying to select it is an error.
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
14576 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
14577 if test $ac_cv_sizeof_void_p -ge 8 ; then
14580 # Check whether --enable-float8-byval was given.
14581 if test "${enable_float8_byval+set}" = set; then :
14582 enableval=$enable_float8_byval;
14591 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
14596 enable_float8_byval=yes
14604 # Check whether --enable-float8-byval was given.
14605 if test "${enable_float8_byval+set}" = set; then :
14606 enableval=$enable_float8_byval;
14615 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
14620 enable_float8_byval=no
14625 if test "$enable_float8_byval" = yes ; then
14626 as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
14629 if test "$enable_float8_byval" = yes ; then
14631 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
14633 float8passbyval=true
14635 float8passbyval=false
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
14638 $as_echo "$enable_float8_byval" >&6; }
14640 cat >>confdefs.h <<_ACEOF
14641 #define FLOAT8PASSBYVAL $float8passbyval
14645 # Determine memory alignment requirements for the basic C data types.
14647 # The cast to long int works around a bug in the HP C Compiler,
14648 # see AC_CHECK_SIZEOF for more information.
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
14650 $as_echo_n "checking alignment of short... " >&6; }
14651 if ${ac_cv_alignof_short+:} false; then :
14652 $as_echo_n "(cached) " >&6
14654 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
14656 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14658 typedef struct { char x; short y; } ac__type_alignof_;"; then :
14661 if test "$ac_cv_type_short" = yes; then
14662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14664 as_fn_error 77 "cannot compute alignment of short
14665 See \`config.log' for more details" "$LINENO" 5; }
14667 ac_cv_alignof_short=0
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
14673 $as_echo "$ac_cv_alignof_short" >&6; }
14677 cat >>confdefs.h <<_ACEOF
14678 #define ALIGNOF_SHORT $ac_cv_alignof_short
14682 # The cast to long int works around a bug in the HP C Compiler,
14683 # see AC_CHECK_SIZEOF for more information.
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
14685 $as_echo_n "checking alignment of int... " >&6; }
14686 if ${ac_cv_alignof_int+:} false; then :
14687 $as_echo_n "(cached) " >&6
14689 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
14691 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14693 typedef struct { char x; int y; } ac__type_alignof_;"; then :
14696 if test "$ac_cv_type_int" = yes; then
14697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14699 as_fn_error 77 "cannot compute alignment of int
14700 See \`config.log' for more details" "$LINENO" 5; }
14702 ac_cv_alignof_int=0
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
14708 $as_echo "$ac_cv_alignof_int" >&6; }
14712 cat >>confdefs.h <<_ACEOF
14713 #define ALIGNOF_INT $ac_cv_alignof_int
14717 # The cast to long int works around a bug in the HP C Compiler,
14718 # see AC_CHECK_SIZEOF for more information.
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
14720 $as_echo_n "checking alignment of long... " >&6; }
14721 if ${ac_cv_alignof_long+:} false; then :
14722 $as_echo_n "(cached) " >&6
14724 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
14726 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14728 typedef struct { char x; long y; } ac__type_alignof_;"; then :
14731 if test "$ac_cv_type_long" = yes; then
14732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14734 as_fn_error 77 "cannot compute alignment of long
14735 See \`config.log' for more details" "$LINENO" 5; }
14737 ac_cv_alignof_long=0
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
14743 $as_echo "$ac_cv_alignof_long" >&6; }
14747 cat >>confdefs.h <<_ACEOF
14748 #define ALIGNOF_LONG $ac_cv_alignof_long
14752 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14753 # The cast to long int works around a bug in the HP C Compiler,
14754 # see AC_CHECK_SIZEOF for more information.
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
14756 $as_echo_n "checking alignment of long long int... " >&6; }
14757 if ${ac_cv_alignof_long_long_int+:} false; then :
14758 $as_echo_n "(cached) " >&6
14760 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
14762 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14764 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
14767 if test "$ac_cv_type_long_long_int" = yes; then
14768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14770 as_fn_error 77 "cannot compute alignment of long long int
14771 See \`config.log' for more details" "$LINENO" 5; }
14773 ac_cv_alignof_long_long_int=0
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
14779 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
14783 cat >>confdefs.h <<_ACEOF
14784 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
14789 # The cast to long int works around a bug in the HP C Compiler,
14790 # see AC_CHECK_SIZEOF for more information.
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
14792 $as_echo_n "checking alignment of double... " >&6; }
14793 if ${ac_cv_alignof_double+:} false; then :
14794 $as_echo_n "(cached) " >&6
14796 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
14798 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14800 typedef struct { char x; double y; } ac__type_alignof_;"; then :
14803 if test "$ac_cv_type_double" = yes; then
14804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14806 as_fn_error 77 "cannot compute alignment of double
14807 See \`config.log' for more details" "$LINENO" 5; }
14809 ac_cv_alignof_double=0
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
14815 $as_echo "$ac_cv_alignof_double" >&6; }
14819 cat >>confdefs.h <<_ACEOF
14820 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
14825 # Compute maximum alignment of any basic type.
14826 # We assume long's alignment is at least as strong as char, short, or int;
14827 # but we must check long long (if it exists) and double.
14829 MAX_ALIGNOF=$ac_cv_alignof_long
14830 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
14831 MAX_ALIGNOF=$ac_cv_alignof_double
14833 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
14834 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
14837 cat >>confdefs.h <<_ACEOF
14838 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14843 # Some platforms predefine the types int8, int16, etc. Only check
14844 # a (hopefully) representative subset.
14845 ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
14847 if test "x$ac_cv_type_int8" = xyes; then :
14849 cat >>confdefs.h <<_ACEOF
14850 #define HAVE_INT8 1
14855 ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
14857 if test "x$ac_cv_type_uint8" = xyes; then :
14859 cat >>confdefs.h <<_ACEOF
14860 #define HAVE_UINT8 1
14865 ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
14867 if test "x$ac_cv_type_int64" = xyes; then :
14869 cat >>confdefs.h <<_ACEOF
14870 #define HAVE_INT64 1
14875 ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
14877 if test "x$ac_cv_type_uint64" = xyes; then :
14879 cat >>confdefs.h <<_ACEOF
14880 #define HAVE_UINT64 1
14887 # Check for extensions offering the integer scalar type __int128.
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
14889 $as_echo_n "checking for __int128... " >&6; }
14890 if ${pgac_cv__128bit_int+:} false; then :
14891 $as_echo_n "(cached) " >&6
14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h. */
14897 * These are globals to discourage the compiler from folding all the
14898 * arithmetic tests down to compile-time constants. We do not have
14899 * convenient support for 64bit literals at this point...
14901 __int128 a = 48828125;
14902 __int128 b = 97656255;
14909 a = (a << 12) + 1; /* 200000000001 */
14910 b = (b << 12) + 5; /* 400000000005 */
14911 /* use the most relevant arithmetic ops */
14914 /* return different values, to prevent optimizations */
14923 if ac_fn_c_try_link "$LINENO"; then :
14924 pgac_cv__128bit_int=yes
14926 pgac_cv__128bit_int=no
14928 rm -f core conftest.err conftest.$ac_objext \
14929 conftest$ac_exeext conftest.$ac_ext
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
14932 $as_echo "$pgac_cv__128bit_int" >&6; }
14933 if test x"$pgac_cv__128bit_int" = xyes ; then
14935 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
14939 # Check for various atomic operations now that we have checked how to declare
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
14942 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
14943 if ${pgac_cv_gcc_sync_char_tas+:} false; then :
14944 $as_echo_n "(cached) " >&6
14946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h. */
14953 __sync_lock_test_and_set(&lock, 1);
14954 __sync_lock_release(&lock);
14959 if ac_fn_c_try_link "$LINENO"; then :
14960 pgac_cv_gcc_sync_char_tas="yes"
14962 pgac_cv_gcc_sync_char_tas="no"
14964 rm -f core conftest.err conftest.$ac_objext \
14965 conftest$ac_exeext conftest.$ac_ext
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
14968 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
14969 if test x"$pgac_cv_gcc_sync_char_tas" = x"yes"; then
14971 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
14975 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
14976 if ${pgac_cv_gcc_sync_int32_tas+:} false; then :
14977 $as_echo_n "(cached) " >&6
14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980 /* end confdefs.h. */
14986 __sync_lock_test_and_set(&lock, 1);
14987 __sync_lock_release(&lock);
14992 if ac_fn_c_try_link "$LINENO"; then :
14993 pgac_cv_gcc_sync_int32_tas="yes"
14995 pgac_cv_gcc_sync_int32_tas="no"
14997 rm -f core conftest.err conftest.$ac_objext \
14998 conftest$ac_exeext conftest.$ac_ext
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
15001 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
15002 if test x"$pgac_cv_gcc_sync_int32_tas" = x"yes"; then
15004 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
15008 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
15009 if ${pgac_cv_gcc_sync_int32_cas+:} false; then :
15010 $as_echo_n "(cached) " >&6
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15019 __sync_val_compare_and_swap(&val, 0, 37);
15024 if ac_fn_c_try_link "$LINENO"; then :
15025 pgac_cv_gcc_sync_int32_cas="yes"
15027 pgac_cv_gcc_sync_int32_cas="no"
15029 rm -f core conftest.err conftest.$ac_objext \
15030 conftest$ac_exeext conftest.$ac_ext
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
15033 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
15034 if test x"$pgac_cv_gcc_sync_int32_cas" = x"yes"; then
15036 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
15040 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
15041 if ${pgac_cv_gcc_sync_int64_cas+:} false; then :
15042 $as_echo_n "(cached) " >&6
15044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15045 /* end confdefs.h. */
15050 PG_INT64_TYPE lock = 0;
15051 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
15056 if ac_fn_c_try_link "$LINENO"; then :
15057 pgac_cv_gcc_sync_int64_cas="yes"
15059 pgac_cv_gcc_sync_int64_cas="no"
15061 rm -f core conftest.err conftest.$ac_objext \
15062 conftest$ac_exeext conftest.$ac_ext
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
15065 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
15066 if test x"$pgac_cv_gcc_sync_int64_cas" = x"yes"; then
15068 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
15072 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
15073 if ${pgac_cv_gcc_atomic_int32_cas+:} false; then :
15074 $as_echo_n "(cached) " >&6
15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077 /* end confdefs.h. */
15084 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
15089 if ac_fn_c_try_link "$LINENO"; then :
15090 pgac_cv_gcc_atomic_int32_cas="yes"
15092 pgac_cv_gcc_atomic_int32_cas="no"
15094 rm -f core conftest.err conftest.$ac_objext \
15095 conftest$ac_exeext conftest.$ac_ext
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
15098 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
15099 if test x"$pgac_cv_gcc_atomic_int32_cas" = x"yes"; then
15101 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
15105 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
15106 if ${pgac_cv_gcc_atomic_int64_cas+:} false; then :
15107 $as_echo_n "(cached) " >&6
15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15115 PG_INT64_TYPE val = 0;
15116 PG_INT64_TYPE expect = 0;
15117 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
15122 if ac_fn_c_try_link "$LINENO"; then :
15123 pgac_cv_gcc_atomic_int64_cas="yes"
15125 pgac_cv_gcc_atomic_int64_cas="no"
15127 rm -f core conftest.err conftest.$ac_objext \
15128 conftest$ac_exeext conftest.$ac_ext
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
15131 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
15132 if test x"$pgac_cv_gcc_atomic_int64_cas" = x"yes"; then
15134 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
15139 # Check for x86 cpuid instruction
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
15141 $as_echo_n "checking for __get_cpuid... " >&6; }
15142 if ${pgac_cv__get_cpuid+:} false; then :
15143 $as_echo_n "(cached) " >&6
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15151 unsigned int exx[4] = {0, 0, 0, 0};
15152 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
15158 if ac_fn_c_try_link "$LINENO"; then :
15159 pgac_cv__get_cpuid="yes"
15161 pgac_cv__get_cpuid="no"
15163 rm -f core conftest.err conftest.$ac_objext \
15164 conftest$ac_exeext conftest.$ac_ext
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
15167 $as_echo "$pgac_cv__get_cpuid" >&6; }
15168 if test x"$pgac_cv__get_cpuid" = x"yes"; then
15170 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
15175 $as_echo_n "checking for __cpuid... " >&6; }
15176 if ${pgac_cv__cpuid+:} false; then :
15177 $as_echo_n "(cached) " >&6
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15181 #include <intrin.h>
15185 unsigned int exx[4] = {0, 0, 0, 0};
15186 __get_cpuid(exx[0], 1);
15192 if ac_fn_c_try_link "$LINENO"; then :
15193 pgac_cv__cpuid="yes"
15195 pgac_cv__cpuid="no"
15197 rm -f core conftest.err conftest.$ac_objext \
15198 conftest$ac_exeext conftest.$ac_ext
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
15201 $as_echo "$pgac_cv__cpuid" >&6; }
15202 if test x"$pgac_cv__cpuid" = x"yes"; then
15204 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
15208 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
15210 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
15211 # with the default compiler flags. If not, check if adding the -msse4.2
15212 # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
15214 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
15215 if ${pgac_cv_sse42_crc32_intrinsics_+:} false; then :
15216 $as_echo_n "(cached) " >&6
15218 pgac_save_CFLAGS=$CFLAGS
15219 CFLAGS="$pgac_save_CFLAGS "
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15222 #include <nmmintrin.h>
15226 unsigned int crc = 0;
15227 crc = _mm_crc32_u8(crc, 0);
15228 crc = _mm_crc32_u32(crc, 0);
15229 /* return computed value, to prevent the above being optimized away */
15235 if ac_fn_c_try_link "$LINENO"; then :
15236 pgac_cv_sse42_crc32_intrinsics_=yes
15238 pgac_cv_sse42_crc32_intrinsics_=no
15240 rm -f core conftest.err conftest.$ac_objext \
15241 conftest$ac_exeext conftest.$ac_ext
15242 CFLAGS="$pgac_save_CFLAGS"
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
15245 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
15246 if test x"$pgac_cv_sse42_crc32_intrinsics_" = x"yes"; then
15248 pgac_sse42_crc32_intrinsics=yes
15251 if test x"$pgac_sse42_crc32_intrinsics" != x"yes"; then
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
15253 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
15254 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false; then :
15255 $as_echo_n "(cached) " >&6
15257 pgac_save_CFLAGS=$CFLAGS
15258 CFLAGS="$pgac_save_CFLAGS -msse4.2"
15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15261 #include <nmmintrin.h>
15265 unsigned int crc = 0;
15266 crc = _mm_crc32_u8(crc, 0);
15267 crc = _mm_crc32_u32(crc, 0);
15268 /* return computed value, to prevent the above being optimized away */
15274 if ac_fn_c_try_link "$LINENO"; then :
15275 pgac_cv_sse42_crc32_intrinsics__msse4_2=yes
15277 pgac_cv_sse42_crc32_intrinsics__msse4_2=no
15279 rm -f core conftest.err conftest.$ac_objext \
15280 conftest$ac_exeext conftest.$ac_ext
15281 CFLAGS="$pgac_save_CFLAGS"
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
15284 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
15285 if test x"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x"yes"; then
15286 CFLAGS_SSE42="-msse4.2"
15287 pgac_sse42_crc32_intrinsics=yes
15293 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
15294 # define __SSE4_2__ in that case.
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15303 #error __SSE4_2__ not defined
15310 if ac_fn_c_try_compile "$LINENO"; then :
15313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15315 # Select CRC-32C implementation.
15317 # If we are targeting a processor that has SSE 4.2 instructions, we can use the
15318 # special CRC instructions for calculating CRC-32C. If we're not targeting such
15319 # a processor, but we can nevertheless produce code that uses the SSE
15320 # intrinsics, perhaps with some extra CFLAGS, compile both implementations and
15321 # select which one to use at runtime, depending on whether SSE 4.2 is supported
15322 # by the processor we're running on.
15324 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
15325 # in the template or configure command line.
15326 if test x"$USE_SSE42_CRC32C" = x"" && test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"" && test x"$USE_SLICING_BY_8_CRC32C" = x""; then
15327 if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && test x"$SSE4_2_TARGETED" = x"1" ; then
15330 # the CPUID instruction is needed for the runtime check.
15331 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
15332 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK=1
15334 # fall back to slicing-by-8 algorithm which doesn't require any special
15336 USE_SLICING_BY_8_CRC32C=1
15341 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
15343 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
15344 if test x"$USE_SSE42_CRC32C" = x"1"; then
15346 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
15348 PG_CRC32C_OBJS="pg_crc32c_sse42.o"
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
15350 $as_echo "SSE 4.2" >&6; }
15352 if test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then
15354 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
15356 PG_CRC32C_OBJS="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_choose.o"
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
15358 $as_echo "SSE 4.2 with runtime check" >&6; }
15361 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
15363 PG_CRC32C_OBJS="pg_crc32c_sb8.o"
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
15365 $as_echo "slicing-by-8" >&6; }
15371 # Select semaphore implementation type.
15372 if test "$PORTNAME" != "win32"; then
15373 if test x"$PREFERRED_SEMAPHORES" = x"NAMED_POSIX" ; then
15374 # Need sem_open for this
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
15376 $as_echo_n "checking for library containing sem_open... " >&6; }
15377 if ${ac_cv_search_sem_open+:} false; then :
15378 $as_echo_n "(cached) " >&6
15380 ac_func_search_save_LIBS=$LIBS
15381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h. */
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15394 return sem_open ();
15399 for ac_lib in '' rt pthread; do
15400 if test -z "$ac_lib"; then
15401 ac_res="none required"
15404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15406 if ac_fn_c_try_link "$LINENO"; then :
15407 ac_cv_search_sem_open=$ac_res
15409 rm -f core conftest.err conftest.$ac_objext \
15411 if ${ac_cv_search_sem_open+:} false; then :
15415 if ${ac_cv_search_sem_open+:} false; then :
15418 ac_cv_search_sem_open=no
15420 rm conftest.$ac_ext
15421 LIBS=$ac_func_search_save_LIBS
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
15424 $as_echo "$ac_cv_search_sem_open" >&6; }
15425 ac_res=$ac_cv_search_sem_open
15426 if test "$ac_res" != no; then :
15427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15428 USE_NAMED_POSIX_SEMAPHORES=1
15432 if test x"$PREFERRED_SEMAPHORES" = x"UNNAMED_POSIX" ; then
15433 # Need sem_init for this
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
15435 $as_echo_n "checking for library containing sem_init... " >&6; }
15436 if ${ac_cv_search_sem_init+:} false; then :
15437 $as_echo_n "(cached) " >&6
15439 ac_func_search_save_LIBS=$LIBS
15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 /* end confdefs.h. */
15443 /* Override any GCC internal prototype to avoid an error.
15444 Use char because int might match the return type of a GCC
15445 builtin and then its argument prototype would still apply. */
15453 return sem_init ();
15458 for ac_lib in '' rt pthread; do
15459 if test -z "$ac_lib"; then
15460 ac_res="none required"
15463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15465 if ac_fn_c_try_link "$LINENO"; then :
15466 ac_cv_search_sem_init=$ac_res
15468 rm -f core conftest.err conftest.$ac_objext \
15470 if ${ac_cv_search_sem_init+:} false; then :
15474 if ${ac_cv_search_sem_init+:} false; then :
15477 ac_cv_search_sem_init=no
15479 rm conftest.$ac_ext
15480 LIBS=$ac_func_search_save_LIBS
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
15483 $as_echo "$ac_cv_search_sem_init" >&6; }
15484 ac_res=$ac_cv_search_sem_init
15485 if test "$ac_res" != no; then :
15486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15487 USE_UNNAMED_POSIX_SEMAPHORES=1
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
15492 $as_echo_n "checking which semaphore API to use... " >&6; }
15493 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15495 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
15497 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15498 sematype="named POSIX"
15500 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15502 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
15504 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15505 sematype="unnamed POSIX"
15508 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
15510 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15511 sematype="System V"
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
15515 $as_echo "$sematype" >&6; }
15518 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
15520 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
15524 # Select shared-memory implementation type.
15525 if test "$PORTNAME" != "win32"; then
15527 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
15529 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15532 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
15534 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
15537 # Select random number source
15539 # You can override this logic by setting the appropriate USE_*RANDOM flag to 1
15540 # in the template or configure command line.
15542 # If not selected manually, try to select a source automatically.
15543 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
15544 if test x"$with_openssl" = x"yes" ; then
15545 USE_OPENSSL_RANDOM=1
15546 elif test "$PORTNAME" = "win32" ; then
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
15550 $as_echo_n "checking for /dev/urandom... " >&6; }
15551 if ${ac_cv_file__dev_urandom+:} false; then :
15552 $as_echo_n "(cached) " >&6
15554 test "$cross_compiling" = yes &&
15555 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15556 if test -r "/dev/urandom"; then
15557 ac_cv_file__dev_urandom=yes
15559 ac_cv_file__dev_urandom=no
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
15563 $as_echo "$ac_cv_file__dev_urandom" >&6; }
15564 if test "x$ac_cv_file__dev_urandom" = xyes; then :
15569 if test x"$ac_cv_file__dev_urandom" = x"yes" ; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
15576 $as_echo_n "checking which random number source to use... " >&6; }
15577 if test "$enable_strong_random" = yes ; then
15578 if test x"$USE_OPENSSL_RANDOM" = x"1" ; then
15580 $as_echo "#define USE_OPENSSL_RANDOM 1" >>confdefs.h
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
15583 $as_echo "OpenSSL" >&6; }
15584 elif test x"$USE_WIN32_RANDOM" = x"1" ; then
15586 $as_echo "#define USE_WIN32_RANDOM 1" >>confdefs.h
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
15589 $as_echo "Windows native" >&6; }
15590 elif test x"$USE_DEV_URANDOM" = x"1" ; then
15592 $as_echo "#define USE_DEV_URANDOM 1" >>confdefs.h
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
15595 $as_echo "/dev/urandom" >&6; }
15598 no source of strong random numbers was found
15599 PostgreSQL can use OpenSSL or /dev/urandom as a source of random numbers,
15600 for authentication protocols. You can use --disable-strong-random to use a
15601 built-in pseudo random number generator, but that may be insecure." "$LINENO" 5
15604 $as_echo "#define HAVE_STRONG_RANDOM 1" >>confdefs.h
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: weak builtin PRNG" >&5
15608 $as_echo "weak builtin PRNG" >&6; }
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15610 *** Not using a strong random number source may be insecure." >&5
15611 $as_echo "$as_me: WARNING:
15612 *** Not using a strong random number source may be insecure." >&2;}
15615 # If not set in template file, set bytes to use libc memset()
15616 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
15617 MEMSET_LOOP_LIMIT=1024
15620 cat >>confdefs.h <<_ACEOF
15621 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
15626 if test "$enable_nls" = yes ; then
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
15629 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
15630 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
15631 $as_echo_n "(cached) " >&6
15633 ac_func_search_save_LIBS=$LIBS
15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15635 /* end confdefs.h. */
15637 /* Override any GCC internal prototype to avoid an error.
15638 Use char because int might match the return type of a GCC
15639 builtin and then its argument prototype would still apply. */
15643 char bind_textdomain_codeset ();
15647 return bind_textdomain_codeset ();
15652 for ac_lib in '' intl; do
15653 if test -z "$ac_lib"; then
15654 ac_res="none required"
15657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15659 if ac_fn_c_try_link "$LINENO"; then :
15660 ac_cv_search_bind_textdomain_codeset=$ac_res
15662 rm -f core conftest.err conftest.$ac_objext \
15664 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
15668 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
15671 ac_cv_search_bind_textdomain_codeset=no
15673 rm conftest.$ac_ext
15674 LIBS=$ac_func_search_save_LIBS
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
15677 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
15678 ac_res=$ac_cv_search_bind_textdomain_codeset
15679 if test "$ac_res" != no; then :
15680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15683 as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5
15686 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
15687 if test "x$ac_cv_header_libintl_h" = xyes; then :
15690 as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5
15694 if test -z "$MSGFMT"; then
15695 for ac_prog in msgfmt
15697 # Extract the first word of "$ac_prog", so it can be a program name with args.
15698 set dummy $ac_prog; ac_word=$2
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15700 $as_echo_n "checking for $ac_word... " >&6; }
15701 if ${ac_cv_path_MSGFMT+:} false; then :
15702 $as_echo_n "(cached) " >&6
15706 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15710 for as_dir in $PATH
15713 test -z "$as_dir" && as_dir=.
15714 for ac_exec_ext in '' $ac_executable_extensions; do
15715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15716 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
15717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15727 MSGFMT=$ac_cv_path_MSGFMT
15728 if test -n "$MSGFMT"; then
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15730 $as_echo "$MSGFMT" >&6; }
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15733 $as_echo "no" >&6; }
15737 test -n "$MSGFMT" && break
15741 # Report the value of MSGFMT in configure's output in all cases.
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
15743 $as_echo_n "checking for MSGFMT... " >&6; }
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15745 $as_echo "$MSGFMT" >&6; }
15748 if test -z "$MSGFMT"; then
15749 as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
15752 $as_echo_n "checking for msgfmt flags... " >&6; }
15753 if ${pgac_cv_msgfmt_flags+:} false; then :
15754 $as_echo_n "(cached) " >&6
15756 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
15757 pgac_cv_msgfmt_flags=-c
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
15761 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
15762 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
15764 if test -z "$MSGMERGE"; then
15765 for ac_prog in msgmerge
15767 # Extract the first word of "$ac_prog", so it can be a program name with args.
15768 set dummy $ac_prog; ac_word=$2
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15770 $as_echo_n "checking for $ac_word... " >&6; }
15771 if ${ac_cv_path_MSGMERGE+:} false; then :
15772 $as_echo_n "(cached) " >&6
15776 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15780 for as_dir in $PATH
15783 test -z "$as_dir" && as_dir=.
15784 for ac_exec_ext in '' $ac_executable_extensions; do
15785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15786 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
15787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15797 MSGMERGE=$ac_cv_path_MSGMERGE
15798 if test -n "$MSGMERGE"; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15800 $as_echo "$MSGMERGE" >&6; }
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15803 $as_echo "no" >&6; }
15807 test -n "$MSGMERGE" && break
15811 # Report the value of MSGMERGE in configure's output in all cases.
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
15813 $as_echo_n "checking for MSGMERGE... " >&6; }
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15815 $as_echo "$MSGMERGE" >&6; }
15818 if test -z "$XGETTEXT"; then
15819 for ac_prog in xgettext
15821 # Extract the first word of "$ac_prog", so it can be a program name with args.
15822 set dummy $ac_prog; ac_word=$2
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15824 $as_echo_n "checking for $ac_word... " >&6; }
15825 if ${ac_cv_path_XGETTEXT+:} false; then :
15826 $as_echo_n "(cached) " >&6
15830 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834 for as_dir in $PATH
15837 test -z "$as_dir" && as_dir=.
15838 for ac_exec_ext in '' $ac_executable_extensions; do
15839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15840 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
15841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15851 XGETTEXT=$ac_cv_path_XGETTEXT
15852 if test -n "$XGETTEXT"; then
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15854 $as_echo "$XGETTEXT" >&6; }
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15857 $as_echo "no" >&6; }
15861 test -n "$XGETTEXT" && break
15865 # Report the value of XGETTEXT in configure's output in all cases.
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
15867 $as_echo_n "checking for XGETTEXT... " >&6; }
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15869 $as_echo "$XGETTEXT" >&6; }
15875 # Check for Tcl configuration script tclConfig.sh
15876 if test "$with_tcl" = yes; then
15877 if test -z "$TCLSH"; then
15878 for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
15880 # Extract the first word of "$ac_prog", so it can be a program name with args.
15881 set dummy $ac_prog; ac_word=$2
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15883 $as_echo_n "checking for $ac_word... " >&6; }
15884 if ${ac_cv_path_TCLSH+:} false; then :
15885 $as_echo_n "(cached) " >&6
15889 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15893 for as_dir in $PATH
15896 test -z "$as_dir" && as_dir=.
15897 for ac_exec_ext in '' $ac_executable_extensions; do
15898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15899 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15910 TCLSH=$ac_cv_path_TCLSH
15911 if test -n "$TCLSH"; then
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
15913 $as_echo "$TCLSH" >&6; }
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15916 $as_echo "no" >&6; }
15920 test -n "$TCLSH" && break
15924 # Report the value of TCLSH in configure's output in all cases.
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
15926 $as_echo_n "checking for TCLSH... " >&6; }
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
15928 $as_echo "$TCLSH" >&6; }
15931 if test x"$TCLSH" = x""; then
15932 as_fn_error $? "Tcl shell not found" "$LINENO" 5
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
15936 $as_echo_n "checking for tclConfig.sh... " >&6; }
15937 # Let user override test
15938 if test -z "$TCL_CONFIG_SH"; then
15939 pgac_test_dirs="$with_tclconfig"
15941 set X $pgac_test_dirs; shift
15942 if test $# -eq 0; then
15943 test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
15944 set X `echo 'puts $auto_path' | $TCLSH`; shift
15948 if test -r "$pgac_dir/tclConfig.sh"; then
15949 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15955 if test -z "$TCL_CONFIG_SH"; then
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15957 $as_echo "no" >&6; }
15958 as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
15961 $as_echo "$TCL_CONFIG_SH" >&6; }
15967 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
15968 eval TCL_LIBS=\"$TCL_LIBS\"
15969 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15970 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15972 if test "$TCL_SHARED_BUILD" != 1; then
15973 as_fn_error $? "cannot build PL/Tcl because Tcl is not a shared library
15974 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
15976 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
15977 ac_save_CPPFLAGS=$CPPFLAGS
15978 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
15979 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
15980 if test "x$ac_cv_header_tcl_h" = xyes; then :
15983 as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5
15987 CPPFLAGS=$ac_save_CPPFLAGS
15990 # check for <perl.h>
15991 if test "$with_perl" = yes; then
15992 ac_save_CPPFLAGS=$CPPFLAGS
15993 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
15994 ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
15996 if test "x$ac_cv_header_perl_h" = xyes; then :
15999 as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5
16003 # While we're at it, check that we can link to libperl.
16004 # On most platforms, if perl.h is there then libperl.so will be too, but at
16005 # this writing Debian packages them separately. There is no known reason to
16006 # waste cycles on separate probes for the Tcl or Python libraries, though.
16007 pgac_save_LIBS=$LIBS
16008 LIBS="$perl_embed_ldflags"
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
16010 $as_echo_n "checking for libperl... " >&6; }
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16014 #include <EXTERN.h>
16025 if ac_fn_c_try_link "$LINENO"; then :
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16027 $as_echo "yes" >&6; }
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16030 $as_echo "no" >&6; }
16031 as_fn_error $? "libperl library is required for Perl" "$LINENO" 5
16033 rm -f core conftest.err conftest.$ac_objext \
16034 conftest$ac_exeext conftest.$ac_ext
16035 LIBS=$pgac_save_LIBS
16036 CPPFLAGS=$ac_save_CPPFLAGS
16039 # check for <Python.h>
16040 if test "$with_python" = yes; then
16041 ac_save_CPPFLAGS=$CPPFLAGS
16042 CPPFLAGS="$python_includespec $CPPFLAGS"
16043 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
16044 if test "x$ac_cv_header_Python_h" = xyes; then :
16047 as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5
16051 CPPFLAGS=$ac_save_CPPFLAGS
16055 # Check for DocBook and tools
16057 if test -z "$NSGMLS"; then
16058 for ac_prog in onsgmls nsgmls
16060 # Extract the first word of "$ac_prog", so it can be a program name with args.
16061 set dummy $ac_prog; ac_word=$2
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16063 $as_echo_n "checking for $ac_word... " >&6; }
16064 if ${ac_cv_path_NSGMLS+:} false; then :
16065 $as_echo_n "(cached) " >&6
16069 ac_cv_path_NSGMLS="$NSGMLS" # Let the user override the test with a path.
16072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16073 for as_dir in $PATH
16076 test -z "$as_dir" && as_dir=.
16077 for ac_exec_ext in '' $ac_executable_extensions; do
16078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16079 ac_cv_path_NSGMLS="$as_dir/$ac_word$ac_exec_ext"
16080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16090 NSGMLS=$ac_cv_path_NSGMLS
16091 if test -n "$NSGMLS"; then
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
16093 $as_echo "$NSGMLS" >&6; }
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16096 $as_echo "no" >&6; }
16100 test -n "$NSGMLS" && break
16104 # Report the value of NSGMLS in configure's output in all cases.
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSGMLS" >&5
16106 $as_echo_n "checking for NSGMLS... " >&6; }
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
16108 $as_echo "$NSGMLS" >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook V4.2" >&5
16113 $as_echo_n "checking for DocBook V4.2... " >&6; }
16114 if ${pgac_cv_check_docbook+:} false; then :
16115 $as_echo_n "(cached) " >&6
16117 cat >conftest.sgml <<EOF
16118 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
16120 <title>test</title>
16122 <title>random</title>
16124 <title>testsect</title>
16131 pgac_cv_check_docbook=no
16133 if test -n "$NSGMLS"; then
16134 $NSGMLS -s conftest.sgml 1>&5 2>&1
16135 if test $? -eq 0; then
16136 pgac_cv_check_docbook=yes
16139 rm -f conftest.sgml
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
16142 $as_echo "$pgac_cv_check_docbook" >&6; }
16144 have_docbook=$pgac_cv_check_docbook
16147 if test -z "$DBTOEPUB"; then
16148 for ac_prog in dbtoepub
16150 # Extract the first word of "$ac_prog", so it can be a program name with args.
16151 set dummy $ac_prog; ac_word=$2
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16153 $as_echo_n "checking for $ac_word... " >&6; }
16154 if ${ac_cv_path_DBTOEPUB+:} false; then :
16155 $as_echo_n "(cached) " >&6
16159 ac_cv_path_DBTOEPUB="$DBTOEPUB" # Let the user override the test with a path.
16162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16163 for as_dir in $PATH
16166 test -z "$as_dir" && as_dir=.
16167 for ac_exec_ext in '' $ac_executable_extensions; do
16168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16169 ac_cv_path_DBTOEPUB="$as_dir/$ac_word$ac_exec_ext"
16170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16180 DBTOEPUB=$ac_cv_path_DBTOEPUB
16181 if test -n "$DBTOEPUB"; then
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
16183 $as_echo "$DBTOEPUB" >&6; }
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16186 $as_echo "no" >&6; }
16190 test -n "$DBTOEPUB" && break
16194 # Report the value of DBTOEPUB in configure's output in all cases.
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
16196 $as_echo_n "checking for DBTOEPUB... " >&6; }
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
16198 $as_echo "$DBTOEPUB" >&6; }
16201 if test -z "$XMLLINT"; then
16202 for ac_prog in xmllint
16204 # Extract the first word of "$ac_prog", so it can be a program name with args.
16205 set dummy $ac_prog; ac_word=$2
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16207 $as_echo_n "checking for $ac_word... " >&6; }
16208 if ${ac_cv_path_XMLLINT+:} false; then :
16209 $as_echo_n "(cached) " >&6
16213 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
16216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16217 for as_dir in $PATH
16220 test -z "$as_dir" && as_dir=.
16221 for ac_exec_ext in '' $ac_executable_extensions; do
16222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16223 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
16224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16234 XMLLINT=$ac_cv_path_XMLLINT
16235 if test -n "$XMLLINT"; then
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
16237 $as_echo "$XMLLINT" >&6; }
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16240 $as_echo "no" >&6; }
16244 test -n "$XMLLINT" && break
16248 # Report the value of XMLLINT in configure's output in all cases.
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
16250 $as_echo_n "checking for XMLLINT... " >&6; }
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
16252 $as_echo "$XMLLINT" >&6; }
16255 if test -z "$XSLTPROC"; then
16256 for ac_prog in xsltproc
16258 # Extract the first word of "$ac_prog", so it can be a program name with args.
16259 set dummy $ac_prog; ac_word=$2
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16261 $as_echo_n "checking for $ac_word... " >&6; }
16262 if ${ac_cv_path_XSLTPROC+:} false; then :
16263 $as_echo_n "(cached) " >&6
16267 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
16270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16271 for as_dir in $PATH
16274 test -z "$as_dir" && as_dir=.
16275 for ac_exec_ext in '' $ac_executable_extensions; do
16276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16277 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
16278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16288 XSLTPROC=$ac_cv_path_XSLTPROC
16289 if test -n "$XSLTPROC"; then
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
16291 $as_echo "$XSLTPROC" >&6; }
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16294 $as_echo "no" >&6; }
16298 test -n "$XSLTPROC" && break
16302 # Report the value of XSLTPROC in configure's output in all cases.
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
16304 $as_echo_n "checking for XSLTPROC... " >&6; }
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
16306 $as_echo "$XSLTPROC" >&6; }
16309 if test -z "$OSX"; then
16310 for ac_prog in osx sgml2xml sx
16312 # Extract the first word of "$ac_prog", so it can be a program name with args.
16313 set dummy $ac_prog; ac_word=$2
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16315 $as_echo_n "checking for $ac_word... " >&6; }
16316 if ${ac_cv_path_OSX+:} false; then :
16317 $as_echo_n "(cached) " >&6
16321 ac_cv_path_OSX="$OSX" # Let the user override the test with a path.
16324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16325 for as_dir in $PATH
16328 test -z "$as_dir" && as_dir=.
16329 for ac_exec_ext in '' $ac_executable_extensions; do
16330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16331 ac_cv_path_OSX="$as_dir/$ac_word$ac_exec_ext"
16332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16342 OSX=$ac_cv_path_OSX
16343 if test -n "$OSX"; then
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5
16345 $as_echo "$OSX" >&6; }
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16348 $as_echo "no" >&6; }
16352 test -n "$OSX" && break
16356 # Report the value of OSX in configure's output in all cases.
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX" >&5
16358 $as_echo_n "checking for OSX... " >&6; }
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5
16360 $as_echo "$OSX" >&6; }
16363 if test -z "$FOP"; then
16366 # Extract the first word of "$ac_prog", so it can be a program name with args.
16367 set dummy $ac_prog; ac_word=$2
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16369 $as_echo_n "checking for $ac_word... " >&6; }
16370 if ${ac_cv_path_FOP+:} false; then :
16371 $as_echo_n "(cached) " >&6
16375 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
16378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16379 for as_dir in $PATH
16382 test -z "$as_dir" && as_dir=.
16383 for ac_exec_ext in '' $ac_executable_extensions; do
16384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16385 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
16386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16396 FOP=$ac_cv_path_FOP
16397 if test -n "$FOP"; then
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
16399 $as_echo "$FOP" >&6; }
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16402 $as_echo "no" >&6; }
16406 test -n "$FOP" && break
16410 # Report the value of FOP in configure's output in all cases.
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
16412 $as_echo_n "checking for FOP... " >&6; }
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
16414 $as_echo "$FOP" >&6; }
16419 # Check for test tools
16421 if test "$enable_tap_tests" = yes; then
16422 # Check for necessary modules, unless user has specified the "prove" to use;
16423 # in that case it's her responsibility to have a working configuration.
16424 # (prove might be part of a different Perl installation than perl, eg on
16425 # MSys, so the result of AX_PROG_PERL_MODULES could be irrelevant anyway.)
16426 if test -z "$PROVE"; then
16433 # Make sure we have perl
16434 if test -z "$PERL"; then
16435 # Extract the first word of "perl", so it can be a program name with args.
16436 set dummy perl; ac_word=$2
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16438 $as_echo_n "checking for $ac_word... " >&6; }
16439 if ${ac_cv_prog_PERL+:} false; then :
16440 $as_echo_n "(cached) " >&6
16442 if test -n "$PERL"; then
16443 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16446 for as_dir in $PATH
16449 test -z "$as_dir" && as_dir=.
16450 for ac_exec_ext in '' $ac_executable_extensions; do
16451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16452 ac_cv_prog_PERL="perl"
16453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16462 PERL=$ac_cv_prog_PERL
16463 if test -n "$PERL"; then
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16465 $as_echo "$PERL" >&6; }
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468 $as_echo "no" >&6; }
16474 if test "x$PERL" != x; then
16475 ax_perl_modules_failed=0
16476 for ax_perl_module in 'IPC::Run' ; do
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
16478 $as_echo_n "checking for perl module $ax_perl_module... " >&6; }
16480 # Would be nice to log result here, but can't rely on autoconf internals
16481 $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1
16482 if test $? -ne 0; then
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16484 $as_echo "no" >&6; };
16485 ax_perl_modules_failed=1
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16488 $as_echo "ok" >&6; };
16492 # Run optional shell commands
16493 if test "$ax_perl_modules_failed" = 0; then
16498 as_fn_error $? "Perl module IPC::Run is required to run TAP tests" "$LINENO" 5
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
16502 $as_echo "$as_me: WARNING: could not find perl" >&2;}
16505 # Now make sure we know where prove is
16506 if test -z "$PROVE"; then
16507 for ac_prog in prove
16509 # Extract the first word of "$ac_prog", so it can be a program name with args.
16510 set dummy $ac_prog; ac_word=$2
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16512 $as_echo_n "checking for $ac_word... " >&6; }
16513 if ${ac_cv_path_PROVE+:} false; then :
16514 $as_echo_n "(cached) " >&6
16518 ac_cv_path_PROVE="$PROVE" # Let the user override the test with a path.
16521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16522 for as_dir in $PATH
16525 test -z "$as_dir" && as_dir=.
16526 for ac_exec_ext in '' $ac_executable_extensions; do
16527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16528 ac_cv_path_PROVE="$as_dir/$ac_word$ac_exec_ext"
16529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16539 PROVE=$ac_cv_path_PROVE
16540 if test -n "$PROVE"; then
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
16542 $as_echo "$PROVE" >&6; }
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16545 $as_echo "no" >&6; }
16549 test -n "$PROVE" && break
16553 # Report the value of PROVE in configure's output in all cases.
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
16555 $as_echo_n "checking for PROVE... " >&6; }
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
16557 $as_echo "$PROVE" >&6; }
16560 if test -z "$PROVE"; then
16561 as_fn_error $? "prove not found" "$LINENO" 5
16567 # We have to run the thread test near the end so we have all our symbols
16568 # defined. Cross compiling throws a warning.
16570 if test "$enable_thread_safety" = yes; then
16571 if test "$PORTNAME" != "win32"
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
16574 $as_echo_n "checking thread safety of required library functions... " >&6; }
16578 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
16579 LIBS="$LIBS $PTHREAD_LIBS"
16580 if test "$cross_compiling" = yes; then :
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
16582 $as_echo "maybe" >&6; }
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16584 *** Skipping thread test program because of cross-compile build.
16585 *** Run the program in src/test/thread on the target machine.
16587 $as_echo "$as_me: WARNING:
16588 *** Skipping thread test program because of cross-compile build.
16589 *** Run the program in src/test/thread on the target machine.
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h. */
16594 #include "$srcdir/src/test/thread/thread_test.c"
16596 if ac_fn_c_try_run "$LINENO"; then :
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16598 $as_echo "yes" >&6; }
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16601 $as_echo "no" >&6; }
16602 as_fn_error $? "thread test program failed
16603 This platform is not thread-safe. Check the file 'config.log' or compile
16604 and run src/test/thread/thread_test for the exact reason.
16605 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
16607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16608 conftest.$ac_objext conftest.beam conftest.$ac_ext
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
16615 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
16619 # If compiler will take -Wl,--as-needed (or various platform-specific
16620 # spellings thereof) then add that to LDFLAGS. This is much easier than
16621 # trying to filter LIBS to the minimum for each executable.
16622 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
16623 # libreadline; therefore we postpone testing it until we know what library
16624 # dependencies readline has. The test code will try to link with $LIBS.
16625 if test "$with_readline" = yes; then
16626 link_test_func=readline
16628 link_test_func=exit
16631 if test "$PORTNAME" = "darwin"; then
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
16633 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
16634 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then :
16635 $as_echo_n "(cached) " >&6
16637 pgac_save_LDFLAGS=$LDFLAGS
16638 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
16639 if test "$cross_compiling" = yes; then :
16640 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h. */
16644 extern void $link_test_func (); void (*fptr) () = $link_test_func;
16653 if ac_fn_c_try_run "$LINENO"; then :
16654 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
16656 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
16658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16659 conftest.$ac_objext conftest.beam conftest.$ac_ext
16662 LDFLAGS="$pgac_save_LDFLAGS"
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
16665 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
16666 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
16667 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
16670 elif test "$PORTNAME" = "openbsd"; then
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
16672 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
16673 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then :
16674 $as_echo_n "(cached) " >&6
16676 pgac_save_LDFLAGS=$LDFLAGS
16677 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
16678 if test "$cross_compiling" = yes; then :
16679 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h. */
16683 extern void $link_test_func (); void (*fptr) () = $link_test_func;
16692 if ac_fn_c_try_run "$LINENO"; then :
16693 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
16695 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
16697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16698 conftest.$ac_objext conftest.beam conftest.$ac_ext
16701 LDFLAGS="$pgac_save_LDFLAGS"
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
16704 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
16705 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
16706 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
16711 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
16712 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then :
16713 $as_echo_n "(cached) " >&6
16715 pgac_save_LDFLAGS=$LDFLAGS
16716 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
16717 if test "$cross_compiling" = yes; then :
16718 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16722 extern void $link_test_func (); void (*fptr) () = $link_test_func;
16731 if ac_fn_c_try_run "$LINENO"; then :
16732 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
16734 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
16736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16737 conftest.$ac_objext conftest.beam conftest.$ac_ext
16740 LDFLAGS="$pgac_save_LDFLAGS"
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
16743 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
16744 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
16745 LDFLAGS="$LDFLAGS -Wl,--as-needed"
16750 # Create compiler version string
16751 if test x"$GCC" = x"yes" ; then
16752 cc_string=`${CC} --version | sed q`
16753 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
16754 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
16755 cc_string=`${CC} -V 2>&1 | sed q`
16761 cat >>confdefs.h <<_ACEOF
16762 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
16766 # Supply a numeric version string for use by 3rd party add-ons
16767 # awk -F is a regex on some platforms, and not on others, so make "." a tab
16768 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
16770 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
16772 cat >>confdefs.h <<_ACEOF
16773 #define PG_VERSION_NUM $PG_VERSION_NUM
16779 # Begin output steps
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
16782 $as_echo "$as_me: using compiler=$cc_string" >&6;}
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
16784 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
16786 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
16788 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
16790 # prepare build tree if outside source tree
16791 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16792 # Note 2: /bin/pwd might be better than shell's built-in at getting
16793 # a symlink-free name.
16794 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16798 if test "$no_create" != yes; then
16799 $as_echo_n "preparing build tree... " >&6
16800 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16801 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16802 || as_fn_error $? "failed" "$LINENO" 5
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16804 $as_echo "done" >&6; }
16810 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16813 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}"
16816 if test "$PORTNAME" = "win32"; then
16817 ac_config_commands="$ac_config_commands check_win32_symlinks"
16821 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16824 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
16827 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
16830 cat >confcache <<\_ACEOF
16831 # This file is a shell script that caches the results of configure
16832 # tests run on this system so they can be shared between configure
16833 # scripts and configure runs, see configure's option --config-cache.
16834 # It is not useful on other systems. If it contains results you don't
16835 # want to keep, you may remove or edit it.
16837 # config.status only pays attention to the cache file if you give it
16838 # the --recheck option to rerun configure.
16840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16842 # following values.
16846 # The following way of writing the cache mishandles newlines in values,
16847 # but we know of no workaround that is simple, portable, and efficient.
16848 # So, we kill variables containing newlines.
16849 # Ultrix sh set writes to stderr and can't be redirected directly,
16850 # and sets the high bit in the cache file unless we assign to the vars.
16852 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16853 eval ac_val=\$$ac_var
16857 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16858 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16861 _ | IFS | as_nl) ;; #(
16862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16863 *) { eval $ac_var=; unset $ac_var;} ;;
16869 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16870 *${as_nl}ac_space=\ *)
16871 # `set' does not quote correctly, so add quotes: double-quote
16872 # substitution turns \\\\ into \\, and sed turns \\ into \.
16875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16878 # `set' quotes correctly as required by POSIX, so do not add quotes.
16879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16888 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16890 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16892 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16893 if test -w "$cache_file"; then
16894 if test "x$cache_file" != "x/dev/null"; then
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16896 $as_echo "$as_me: updating cache $cache_file" >&6;}
16897 if test ! -f "$cache_file" || test -h "$cache_file"; then
16898 cat confcache >"$cache_file"
16900 case $cache_file in #(
16902 mv -f confcache "$cache_file"$$ &&
16903 mv -f "$cache_file"$$ "$cache_file" ;; #(
16905 mv -f confcache "$cache_file" ;;
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16911 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16916 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16917 # Let make expand exec_prefix.
16918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16920 DEFS=-DHAVE_CONFIG_H
16925 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16926 # 1. Remove the extension, and $U if already installed.
16927 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16928 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16929 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16930 # will be set to the directory where LIBOBJS objects are built.
16931 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16932 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16934 LIBOBJS=$ac_libobjs
16936 LTLIBOBJS=$ac_ltlibobjs
16941 : "${CONFIG_STATUS=./config.status}"
16943 ac_clean_files_save=$ac_clean_files
16944 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16946 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16948 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16950 # Generated by $as_me.
16951 # Run this file to recreate the current configuration.
16952 # Compiler output produced by configure, useful for debugging
16953 # configure, is in config.log if it exists.
16956 ac_cs_recheck=false
16959 SHELL=\${CONFIG_SHELL-$SHELL}
16962 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16963 ## -------------------- ##
16964 ## M4sh Initialization. ##
16965 ## -------------------- ##
16967 # Be more Bourne compatible
16968 DUALCASE=1; export DUALCASE # for MKS sh
16969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16972 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16973 # is contrary to our usage. Disable this feature.
16974 alias -g '${1+"$@"}'='"$@"'
16975 setopt NO_GLOB_SUBST
16977 case `(set -o) 2>/dev/null` in #(
16989 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16990 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16991 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16992 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16993 # Prefer a ksh shell builtin over an external printf program on Solaris,
16994 # but without wasting forks for bash or zsh.
16995 if test -z "$BASH_VERSION$ZSH_VERSION" \
16996 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16997 as_echo='print -r --'
16998 as_echo_n='print -rn --'
16999 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17000 as_echo='printf %s\n'
17001 as_echo_n='printf %s'
17003 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17004 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17005 as_echo_n='/usr/ucb/echo -n'
17007 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17008 as_echo_n_body='eval
17012 expr "X$arg" : "X\\(.*\\)$as_nl";
17013 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17015 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17017 export as_echo_n_body
17018 as_echo_n='sh -c $as_echo_n_body as_echo'
17020 export as_echo_body
17021 as_echo='sh -c $as_echo_body as_echo'
17024 # The user is always right.
17025 if test "${PATH_SEPARATOR+set}" != set; then
17027 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17028 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17035 # We need space, tab and new line, in precisely that order. Quoting is
17036 # there to prevent editors from complaining about space-tab.
17037 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17038 # splitting by setting IFS to empty value.)
17041 # Find who we are. Look in the path if we contain no directory separator.
17044 *[\\/]* ) as_myself=$0 ;;
17045 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17046 for as_dir in $PATH
17049 test -z "$as_dir" && as_dir=.
17050 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17056 # We did not find ourselves, most probably we were run as `sh COMMAND'
17057 # in which case we are not to be found in the path.
17058 if test "x$as_myself" = x; then
17061 if test ! -f "$as_myself"; then
17062 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17066 # Unset variables that we do not need and which cause bugs (e.g. in
17067 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17068 # suppresses any "Segmentation fault" message there. '((' could
17069 # trigger a bug in pdksh 5.2.14.
17070 for as_var in BASH_ENV ENV MAIL MAILPATH
17071 do eval test x\${$as_var+set} = xset \
17072 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17085 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17088 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17089 # ----------------------------------------
17090 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17091 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17092 # script with STATUS, using 1 if that was 0.
17095 as_status=$1; test $as_status -eq 0 && as_status=1
17097 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17098 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17100 $as_echo "$as_me: error: $2" >&2
17101 as_fn_exit $as_status
17105 # as_fn_set_status STATUS
17106 # -----------------------
17107 # Set $? to STATUS, without forking.
17108 as_fn_set_status ()
17111 } # as_fn_set_status
17113 # as_fn_exit STATUS
17114 # -----------------
17115 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17119 as_fn_set_status $1
17125 # Portably unset VAR.
17128 { eval $1=; unset $1;}
17130 as_unset=as_fn_unset
17131 # as_fn_append VAR VALUE
17132 # ----------------------
17133 # Append the text in VALUE to the end of the definition contained in VAR. Take
17134 # advantage of any shell optimizations that allow amortized linear growth over
17135 # repeated appends, instead of the typical quadratic growth present in naive
17137 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17138 eval 'as_fn_append ()
17149 # as_fn_arith ARG...
17150 # ------------------
17151 # Perform arithmetic evaluation on the ARGs, and store the result in the
17152 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17153 # must be portable across $(()) and expr.
17154 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17155 eval 'as_fn_arith ()
17162 as_val=`expr "$@" || test $? -eq 1`
17167 if expr a : '\(a\)' >/dev/null 2>&1 &&
17168 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17174 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17175 as_basename=basename
17180 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17186 as_me=`$as_basename -- "$0" ||
17187 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17188 X"$0" : 'X\(//\)$' \| \
17189 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17191 sed '/^.*\/\([^/][^/]*\)\/*$/{
17205 # Avoid depending upon Character Ranges.
17206 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17207 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17208 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17209 as_cr_digits='0123456789'
17210 as_cr_alnum=$as_cr_Letters$as_cr_digits
17212 ECHO_C= ECHO_N= ECHO_T=
17213 case `echo -n x` in #(((((
17215 case `echo 'xy\c'` in
17216 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17218 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17225 rm -f conf$$ conf$$.exe conf$$.file
17226 if test -d conf$$.dir; then
17227 rm -f conf$$.dir/conf$$.file
17230 mkdir conf$$.dir 2>/dev/null
17232 if (echo >conf$$.file) 2>/dev/null; then
17233 if ln -s conf$$.file conf$$ 2>/dev/null; then
17235 # ... but there are two gotchas:
17236 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17237 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17238 # In both cases, we have to default to `cp -pR'.
17239 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17241 elif ln conf$$.file conf$$ 2>/dev/null; then
17249 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17250 rmdir conf$$.dir 2>/dev/null
17255 # Create "$as_dir" as a directory, including parents if necessary.
17260 -*) as_dir=./$as_dir;;
17262 test -d "$as_dir" || eval $as_mkdir_p || {
17266 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17267 *) as_qdir=$as_dir;;
17269 as_dirs="'$as_qdir' $as_dirs"
17270 as_dir=`$as_dirname -- "$as_dir" ||
17271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17272 X"$as_dir" : 'X\(//\)[^/]' \| \
17273 X"$as_dir" : 'X\(//\)$' \| \
17274 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17275 $as_echo X"$as_dir" |
17276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17280 /^X\(\/\/\)[^/].*/{
17293 test -d "$as_dir" && break
17295 test -z "$as_dirs" || eval "mkdir $as_dirs"
17296 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17300 if mkdir -p . 2>/dev/null; then
17301 as_mkdir_p='mkdir -p "$as_dir"'
17303 test -d ./-p && rmdir ./-p
17308 # as_fn_executable_p FILE
17309 # -----------------------
17310 # Test if FILE is an executable regular file.
17311 as_fn_executable_p ()
17313 test -f "$1" && test -x "$1"
17314 } # as_fn_executable_p
17315 as_test_x='test -x'
17316 as_executable_p=as_fn_executable_p
17318 # Sed expression to map a string onto a valid CPP name.
17319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17321 # Sed expression to map a string onto a valid variable name.
17322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17326 ## ----------------------------------- ##
17327 ## Main body of $CONFIG_STATUS script. ##
17328 ## ----------------------------------- ##
17330 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17333 # Save the log message, to keep $0 and so on meaningful, and to
17334 # report actual input values of CONFIG_FILES etc. instead of their
17335 # values after options handling.
17337 This file was extended by PostgreSQL $as_me 11devel, which was
17338 generated by GNU Autoconf 2.69. Invocation command line was
17340 CONFIG_FILES = $CONFIG_FILES
17341 CONFIG_HEADERS = $CONFIG_HEADERS
17342 CONFIG_LINKS = $CONFIG_LINKS
17343 CONFIG_COMMANDS = $CONFIG_COMMANDS
17346 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17351 case $ac_config_files in *"
17352 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17355 case $ac_config_headers in *"
17356 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17361 # Files that config.status was made for.
17362 config_files="$ac_config_files"
17363 config_headers="$ac_config_headers"
17364 config_links="$ac_config_links"
17365 config_commands="$ac_config_commands"
17369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17371 \`$as_me' instantiates files and other configuration actions
17372 from templates according to the current configuration. Unless the files
17373 and actions are specified as TAGs, all are instantiated by default.
17375 Usage: $0 [OPTION]... [TAG]...
17377 -h, --help print this help, then exit
17378 -V, --version print version number and configuration settings, then exit
17379 --config print configuration, then exit
17380 -q, --quiet, --silent
17381 do not print progress messages
17382 -d, --debug don't remove temporary files
17383 --recheck update $as_me by reconfiguring in the same conditions
17384 --file=FILE[:TEMPLATE]
17385 instantiate the configuration file FILE
17386 --header=FILE[:TEMPLATE]
17387 instantiate the configuration header FILE
17389 Configuration files:
17392 Configuration headers:
17395 Configuration links:
17398 Configuration commands:
17401 Report bugs to <pgsql-bugs@postgresql.org>."
17404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17405 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17407 PostgreSQL config.status 11devel
17408 configured by $0, generated by GNU Autoconf 2.69,
17409 with options \\"\$ac_cs_config\\"
17411 Copyright (C) 2012 Free Software Foundation, Inc.
17412 This config.status script is free software; the Free Software Foundation
17413 gives unlimited permission to copy, distribute and modify it."
17420 test -n "\$AWK" || AWK=awk
17423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17424 # The default lists apply if the user does not specify any file.
17430 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17431 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17435 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17447 # Handling of the options.
17448 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17450 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17451 $as_echo "$ac_cs_version"; exit ;;
17452 --config | --confi | --conf | --con | --co | --c )
17453 $as_echo "$ac_cs_config"; exit ;;
17454 --debug | --debu | --deb | --de | --d | -d )
17456 --file | --fil | --fi | --f )
17459 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17460 '') as_fn_error $? "missing file argument" ;;
17462 as_fn_append CONFIG_FILES " '$ac_optarg'"
17463 ac_need_defaults=false;;
17464 --header | --heade | --head | --hea )
17467 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17469 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17470 ac_need_defaults=false;;
17472 # Conflict between --help and --header
17473 as_fn_error $? "ambiguous option: \`$1'
17474 Try \`$0 --help' for more information.";;
17475 --help | --hel | -h )
17476 $as_echo "$ac_cs_usage"; exit ;;
17477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17478 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17481 # This is an error.
17482 -*) as_fn_error $? "unrecognized option: \`$1'
17483 Try \`$0 --help' for more information." ;;
17485 *) as_fn_append ac_config_targets " $1"
17486 ac_need_defaults=false ;;
17492 ac_configure_extra_args=
17494 if $ac_cs_silent; then
17496 ac_configure_extra_args="$ac_configure_extra_args --silent"
17500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17501 if \$ac_cs_recheck; then
17502 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17504 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17505 CONFIG_SHELL='$SHELL'
17506 export CONFIG_SHELL
17511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17515 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17516 ## Running $as_me. ##
17522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17527 # Handling of arguments.
17528 for ac_config_target in $ac_config_targets
17530 case $ac_config_target in
17531 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17532 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17533 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17534 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17535 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17536 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17537 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17538 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17539 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17540 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
17541 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17542 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
17543 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
17545 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17550 # If the user did not use the arguments to specify the items to instantiate,
17551 # then the envvar interface is used. Set only those that are not.
17552 # We use the long form for the default assignment because of an extremely
17553 # bizarre bug on SunOS 4.1.3.
17554 if $ac_need_defaults; then
17555 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17556 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17557 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17558 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17561 # Have a temporary directory for convenience. Make it in the build tree
17562 # simply because there is no reason against having it here, and in addition,
17563 # creating and moving files from /tmp can sometimes cause problems.
17564 # Hook for its removal unless debugging.
17565 # Note that there is a small window in which the directory will not be cleaned:
17566 # after its creation but before its name has been assigned to `$tmp'.
17570 trap 'exit_status=$?
17571 : "${ac_tmp:=$tmp}"
17572 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17574 trap 'as_fn_exit 1' 1 2 13 15
17576 # Create a (secure) tmp directory for tmp files.
17579 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17583 tmp=./conf$$-$RANDOM
17584 (umask 077 && mkdir "$tmp")
17585 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17588 # Set up the scripts for CONFIG_FILES section.
17589 # No need to generate them if there are no CONFIG_FILES.
17590 # This happens for instance with `./config.status config.h'.
17591 if test -n "$CONFIG_FILES"; then
17594 ac_cr=`echo X | tr X '\015'`
17595 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17596 # But we know of no other shell where ac_cr would be empty at this
17597 # point, so we can use a bashism as a fallback.
17598 if test "x$ac_cr" = x; then
17599 eval ac_cr=\$\'\\r\'
17601 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17602 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17605 ac_cs_awk_cr=$ac_cr
17608 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17613 echo "cat >conf$$subs.awk <<_ACEOF" &&
17614 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17616 } >conf$$subs.sh ||
17617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17618 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17620 for ac_last_try in false false false false false :; do
17621 . ./conf$$subs.sh ||
17622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17624 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17625 if test $ac_delim_n = $ac_delim_num; then
17627 elif $ac_last_try; then
17628 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17630 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17633 rm -f conf$$subs.sh
17635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17636 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17640 s/^/S["/; s/!.*/"]=/
17650 s/\(.\{148\}\)..*/\1/
17652 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17657 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17664 s/\(.\{148\}\)..*/\1/
17666 s/["\\]/\\&/g; s/^/"/; s/$/"/
17670 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17675 ' <conf$$subs.awk | sed '
17680 ' >>$CONFIG_STATUS || ac_write_fail=1
17681 rm -f conf$$subs.awk
17682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17684 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17685 for (key in S) S_is_set[key] = 1
17691 nfields = split(line, field, "@")
17693 len = length(field[1])
17694 for (i = 2; i < nfields; i++) {
17696 keylen = length(key)
17697 if (S_is_set[key]) {
17699 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17700 len += length(value) + length(field[++i])
17711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17712 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17713 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17716 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17717 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17720 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17721 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17722 # trailing colons and then remove the whole line if VPATH becomes empty
17723 # (actually we leave an empty line to preserve line numbers).
17724 if test "x$srcdir" = x.; then
17725 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17744 fi # test -n "$CONFIG_FILES"
17746 # Set up the scripts for CONFIG_HEADERS section.
17747 # No need to generate them if there are no CONFIG_HEADERS.
17748 # This happens for instance with `./config.status Makefile'.
17749 if test -n "$CONFIG_HEADERS"; then
17750 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17754 # Transform confdefs.h into an awk script `defines.awk', embedded as
17755 # here-document in config.status, that substitutes the proper values into
17756 # config.h.in to produce config.h.
17758 # Create a delimiter string that does not exist in confdefs.h, to ease
17759 # handling of long lines.
17761 for ac_last_try in false false :; do
17762 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17763 if test -z "$ac_tt"; then
17765 elif $ac_last_try; then
17766 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17772 # For the awk script, D is an array of macro values keyed by name,
17773 # likewise P contains macro parameters if any. Preserve backslash
17774 # newline sequences.
17776 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17778 s/.\{148\}/&'"$ac_delim"'/g
17781 s/^[ ]*#[ ]*define[ ][ ]*/ /
17788 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17790 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17794 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17795 D["\1"]=" \3\\\\\\n"\\/p
17797 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17802 s/.\{148\}/&'"$ac_delim"'/g
17807 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17810 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17812 ' <confdefs.h | sed '
17813 s/'"$ac_delim"'/"\\\
17814 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17817 for (key in D) D_is_set[key] = 1
17820 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17822 split(line, arg, " ")
17823 if (arg[1] == "#") {
17827 defundef = substr(arg[1], 2)
17830 split(mac1, mac2, "(") #)
17832 prefix = substr(line, 1, index(line, defundef) - 1)
17833 if (D_is_set[macro]) {
17834 # Preserve the white space surrounding the "#".
17835 print prefix "define", macro P[macro] D[macro]
17838 # Replace #undef with comments. This is necessary, for example,
17839 # in the case of _POSIX_SOURCE, which is predefined and required
17840 # on some systems where configure will not decide to define it.
17841 if (defundef == "undef") {
17842 print "/*", prefix defundef, macro, "*/"
17850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17851 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17852 fi # test -n "$CONFIG_HEADERS"
17855 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17860 :[FHLC]) ac_mode=$ac_tag; continue;;
17862 case $ac_mode$ac_tag in
17864 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17865 :[FH]-) ac_tag=-:-;;
17866 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17883 -) ac_f="$ac_tmp/stdin";;
17884 *) # Look for the file first in the build tree, then in the source tree
17885 # (if the path is not absolute). The absolute path cannot be DOS-style,
17886 # because $ac_f cannot contain `:'.
17890 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17892 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17894 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17895 as_fn_append ac_file_inputs " '$ac_f'"
17898 # Let's still pretend it is `configure' which instantiates (i.e., don't
17899 # use $as_me), people would be surprised to read:
17900 # /* config.h. Generated by config.status. */
17901 configure_input='Generated from '`
17902 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17904 if test x"$ac_file" != x-; then
17905 configure_input="$ac_file. $configure_input"
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17907 $as_echo "$as_me: creating $ac_file" >&6;}
17909 # Neutralize special characters interpreted by sed in replacement strings.
17910 case $configure_input in #(
17911 *\&* | *\|* | *\\* )
17912 ac_sed_conf_input=`$as_echo "$configure_input" |
17913 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17914 *) ac_sed_conf_input=$configure_input;;
17918 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17919 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17924 ac_dir=`$as_dirname -- "$ac_file" ||
17925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17926 X"$ac_file" : 'X\(//\)[^/]' \| \
17927 X"$ac_file" : 'X\(//\)$' \| \
17928 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17929 $as_echo X"$ac_file" |
17930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17934 /^X\(\/\/\)[^/].*/{
17947 as_dir="$ac_dir"; as_fn_mkdir_p
17951 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17953 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17954 # A ".." for each directory in $ac_dir_suffix.
17955 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17956 case $ac_top_builddir_sub in
17957 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17958 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17961 ac_abs_top_builddir=$ac_pwd
17962 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17963 # for backward compatibility:
17964 ac_top_builddir=$ac_top_build_prefix
17967 .) # We are building in place.
17969 ac_top_srcdir=$ac_top_builddir_sub
17970 ac_abs_top_srcdir=$ac_pwd ;;
17971 [\\/]* | ?:[\\/]* ) # Absolute name.
17972 ac_srcdir=$srcdir$ac_dir_suffix;
17973 ac_top_srcdir=$srcdir
17974 ac_abs_top_srcdir=$srcdir ;;
17975 *) # Relative name.
17976 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17977 ac_top_srcdir=$ac_top_build_prefix$srcdir
17978 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17980 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17991 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17993 ac_MKDIR_P=$MKDIR_P
17995 [\\/$]* | ?:[\\/]* ) ;;
17996 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18001 # If the template does not know about datarootdir, expand it.
18002 # FIXME: This hack should be removed a few years after 2.60.
18003 ac_datarootdir_hack=; ac_datarootdir_seen=
18014 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18015 *datarootdir*) ac_datarootdir_seen=yes;;
18016 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18018 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18021 ac_datarootdir_hack='
18022 s&@datadir@&$datadir&g
18023 s&@docdir@&$docdir&g
18024 s&@infodir@&$infodir&g
18025 s&@localedir@&$localedir&g
18026 s&@mandir@&$mandir&g
18027 s&\\\${datarootdir}&$datarootdir&g' ;;
18031 # Neutralize VPATH when `$srcdir' = `.'.
18032 # Shell code in configure.ac might set extrasub.
18033 # FIXME: do we really want to maintain this feature?
18034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18035 ac_sed_extra="$ac_vpsub
18038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18041 s|@configure_input@|$ac_sed_conf_input|;t t
18042 s&@top_builddir@&$ac_top_builddir_sub&;t t
18043 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18044 s&@srcdir@&$ac_srcdir&;t t
18045 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18046 s&@top_srcdir@&$ac_top_srcdir&;t t
18047 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18048 s&@builddir@&$ac_builddir&;t t
18049 s&@abs_builddir@&$ac_abs_builddir&;t t
18050 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18051 s&@INSTALL@&$ac_INSTALL&;t t
18052 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18053 $ac_datarootdir_hack
18055 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18056 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18058 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18059 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18060 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18061 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18063 which seems to be undefined. Please make sure it is defined" >&5
18064 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18065 which seems to be undefined. Please make sure it is defined" >&2;}
18067 rm -f "$ac_tmp/stdin"
18069 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18070 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18078 if test x"$ac_file" != x-; then
18080 $as_echo "/* $configure_input */" \
18081 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18082 } >"$ac_tmp/config.h" \
18083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18084 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18086 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18089 mv "$ac_tmp/config.h" "$ac_file" \
18090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18093 $as_echo "/* $configure_input */" \
18094 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18095 || as_fn_error $? "could not create -" "$LINENO" 5
18103 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18106 # Prefer the file from the source tree if names are identical.
18107 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18108 ac_source=$srcdir/$ac_source
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18112 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18114 if test ! -r "$ac_source"; then
18115 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18119 # Try a relative symlink, then a hard link, then a copy.
18121 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18122 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18124 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18125 ln "$ac_source" "$ac_file" 2>/dev/null ||
18126 cp -p "$ac_source" "$ac_file" ||
18127 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18130 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18131 $as_echo "$as_me: executing $ac_file commands" >&6;}
18136 case $ac_file$ac_mode in
18137 "check_win32_symlinks":C)
18138 # Links sometimes fail undetected on Mingw -
18139 # so here we detect it and warn the user
18140 for FILE in $CONFIG_LINKS
18142 # test -e works for symlinks in the MinGW console
18143 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
18144 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
18147 "src/include/pg_config.h":H)
18148 # Update timestamp for pg_config.h (see Makefile.global)
18149 echo >src/include/stamp-h
18151 "src/include/pg_config_ext.h":H)
18152 # Update timestamp for pg_config_ext.h (see Makefile.global)
18153 echo >src/include/stamp-ext-h
18155 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
18163 ac_clean_files=$ac_clean_files_save
18165 test $ac_write_fail = 0 ||
18166 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18169 # configure is writing to config.log, and then calls config.status.
18170 # config.status does its own redirection, appending to config.log.
18171 # Unfortunately, on DOS this fails, as config.log is still kept open
18172 # by configure, so config.status won't be able to write to it; its
18173 # output is simply discarded. So we exec the FD to /dev/null,
18174 # effectively closing config.log, so it can be properly (re)opened and
18175 # appended to by config.status. When coming back to configure, we
18176 # need to make the FD available again.
18177 if test "$no_create" != yes; then
18179 ac_config_status_args=
18180 test "$silent" = yes &&
18181 ac_config_status_args="$ac_config_status_args --quiet"
18183 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18185 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18186 # would make configure fail if this is the last instruction.
18187 $ac_cs_success || as_fn_exit 1
18189 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18191 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}