2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 10devel.
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-2016, 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='10devel'
586 PACKAGE_STRING='PostgreSQL 10devel'
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
665 python_additional_libs
784 program_transform_name
797 enable_option_checking
803 enable_integer_datetimes
836 with_libedit_preferred
848 ac_precious_vars='build_alias
862 # Initialize some variables set by options.
864 ac_init_version=false
865 ac_unrecognized_opts=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
876 program_transform_name=s,x,x,
884 # Installation directory options.
885 # These are left unexpanded so users can "make install exec_prefix=/foo"
886 # and all the variables that are supposed to be based on exec_prefix
887 # by default will actually change.
888 # Use braces instead of parens because sh, perl, etc. also accept them.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir='${exec_prefix}/bin'
891 sbindir='${exec_prefix}/sbin'
892 libexecdir='${exec_prefix}/libexec'
893 datarootdir='${prefix}/share'
894 datadir='${datarootdir}'
895 sysconfdir='${prefix}/etc'
896 sharedstatedir='${prefix}/com'
897 localstatedir='${prefix}/var'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir='${datarootdir}/info'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\$ac_option
922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
979 eval enable_$ac_useropt=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 htmldir=$ac_optarg ;;
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1050 -libdir | --libdir | --libdi | --libd)
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1141 -psdir | --psdir | --psdi | --psd | --ps)
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 sbindir=$ac_optarg ;;
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 sharedstatedir=$ac_optarg ;;
1167 -site | --site | --sit)
1169 -site=* | --site=* | --sit=*)
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1209 eval with_$ac_useropt=\$ac_optarg ;;
1211 -without-* | --without-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1225 eval with_$ac_useropt=no ;;
1228 # Obsolete; use --with-x.
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1245 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246 Try \`$0 --help' for more information"
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 case $ac_envvar in #(
1253 '' | [0-9]* | *[!_$as_cr_alnum]* )
1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 as_fn_error $? "missing argument to $ac_option"
1275 if test -n "$ac_unrecognized_opts"; then
1276 case $enable_option_checking in
1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 # Check all directory arguments for consistency.
1284 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
1289 eval ac_val=\$$ac_var
1290 # Remove trailing slashes.
1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294 eval $ac_var=\$ac_val;;
1296 # Be sure to have absolute directory names.
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1309 target=$target_alias
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 elif test "x$build_alias" != "x$host_alias"; then
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323 test "$silent" = yes && exec 6>/dev/null
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 as_fn_error $? "working directory cannot be determined"
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 as_fn_error $? "pwd does not report name of working directory"
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$as_myself" ||
1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$as_myself" : 'X\(//\)[^/]' \| \
1341 X"$as_myself" : 'X\(//\)$' \| \
1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343 $as_echo X"$as_myself" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1366 ac_srcdir_defaulted=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 # Report the --help message.
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1400 \`configure' configures PostgreSQL 10devel to adapt to many kinds of systems.
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1407 Defaults for the options are specified in brackets.
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking ...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1431 For better control, use the options below.
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of PostgreSQL 10devel:";;
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --disable-integer-datetimes
1474 disable 64-bit integer date/time support
1475 --enable-nls[=LANGUAGES]
1476 enable Native Language Support
1477 --disable-rpath do not embed shared library search path in
1479 --disable-spinlocks do not use spinlocks
1480 --disable-atomics do not use atomic operations
1481 --enable-debug build with debugging symbols (-g)
1482 --enable-profiling build with profiling enabled
1483 --enable-coverage build with coverage testing instrumentation
1484 --enable-dtrace build with DTrace support
1485 --enable-tap-tests enable TAP tests (requires Perl and IPC::Run)
1486 --enable-depend turn on automatic dependency tracking
1487 --enable-cassert enable assertion checks (for debugging)
1488 --disable-thread-safety disable thread-safety in client libraries
1489 --disable-largefile omit support for large files
1490 --disable-float4-byval disable float4 passed by value
1491 --disable-float8-byval disable float8 passed by value
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-extra-version=STRING
1497 append STRING to version
1498 --with-template=NAME override operating system template
1499 --with-includes=DIRS look for additional header files in DIRS
1500 --with-libraries=DIRS look for additional libraries in DIRS
1501 --with-libs=DIRS alternative spelling of --with-libraries
1502 --with-pgport=PORTNUM set default port number [5432]
1503 --with-blocksize=BLOCKSIZE
1504 set table block size in kB [8]
1505 --with-segsize=SEGSIZE set table segment size in GB [1]
1506 --with-wal-blocksize=BLOCKSIZE
1507 set WAL block size in kB [8]
1508 --with-wal-segsize=SEGSIZE
1509 set WAL segment size in MB [16]
1510 --with-CC=CMD set compiler (deprecated)
1511 --with-tcl build Tcl modules (PL/Tcl)
1512 --with-tclconfig=DIR tclConfig.sh is in DIR
1513 --with-perl build Perl modules (PL/Perl)
1514 --with-python build Python modules (PL/Python)
1515 --with-gssapi build with GSSAPI support
1516 --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
1518 --with-pam build with PAM support
1519 --with-bsd-auth build with BSD Authentication support
1520 --with-ldap build with LDAP support
1521 --with-bonjour build with Bonjour support
1522 --with-openssl build with OpenSSL support
1523 --with-selinux build with SELinux support
1524 --with-systemd build with systemd support
1525 --without-readline do not use GNU Readline nor BSD Libedit for editing
1526 --with-libedit-preferred
1527 prefer BSD Libedit over GNU Readline
1528 --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
1529 --with-ossp-uuid obsolete spelling of --with-uuid=ossp
1530 --with-libxml build with XML support
1531 --with-libxslt use XSLT support when building contrib/xml2
1532 --with-system-tzdata=DIR
1533 use system time zone data in DIR
1534 --without-zlib do not use Zlib
1535 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1546 LDFLAGS_EX extra linker flags for linking executables only
1547 LDFLAGS_SL extra linker flags for linking shared libraries only
1549 location of DocBook stylesheets
1551 Use these variables to override the choices made by `configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1554 Report bugs to <pgsql-bugs@postgresql.org>.
1559 if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562 test -d "$ac_dir" ||
1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578 ac_abs_top_builddir=$ac_pwd
1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580 # for backward compatibility:
1581 ac_top_builddir=$ac_top_build_prefix
1584 .) # We are building in place.
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
1589 ac_srcdir=$srcdir$ac_dir_suffix;
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1606 $SHELL "$ac_srcdir/configure" --help=recursive
1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610 cd "$ac_pwd" || { ac_status=$?; break; }
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1617 PostgreSQL configure 10devel
1618 generated by GNU Autoconf 2.69
1620 Copyright (C) 2012 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1624 Copyright (c) 1996-2016, PostgreSQL Global Development Group
1629 ## ------------------------ ##
1630 ## Autoconf initialization. ##
1631 ## ------------------------ ##
1633 # ac_fn_c_try_compile LINENO
1634 # --------------------------
1635 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_compile ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext
1640 if { { ac_try="$ac_compile"
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_compile") 2>conftest.err
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest.$ac_objext; then :
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1669 } # ac_fn_c_try_compile
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 test -x conftest$ac_exeext
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1715 } # ac_fn_c_try_link
1717 # ac_fn_c_try_cpp LINENO
1718 # ----------------------
1719 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_cpp conftest.$ac_ext"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } > conftest.i && {
1739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1754 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1757 # the include files in INCLUDES and setting the cache variable VAR
1759 ac_fn_c_check_header_mongrel ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if eval \${$3+:} false; then :
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1772 # Is the header compilable?
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1774 $as_echo_n "checking $2 usability... " >&6; }
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 ac_header_compiler=yes
1783 ac_header_compiler=no
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1787 $as_echo "$ac_header_compiler" >&6; }
1789 # Is the header present?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1791 $as_echo_n "checking $2 presence... " >&6; }
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1796 if ac_fn_c_try_cpp "$LINENO"; then :
1797 ac_header_preproc=yes
1799 ac_header_preproc=no
1801 rm -f conftest.err conftest.i conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1803 $as_echo "$ac_header_preproc" >&6; }
1805 # So? What about this header?
1806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1809 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1815 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1817 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1819 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1821 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824 ( $as_echo "## ---------------------------------------- ##
1825 ## Report this to pgsql-bugs@postgresql.org ##
1826 ## ---------------------------------------- ##"
1827 ) | sed "s/^/$as_me: WARNING: /" >&2
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833 $as_echo_n "(cached) " >&6
1835 eval "$3=\$ac_header_compiler"
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 } # ac_fn_c_check_header_mongrel
1845 # ac_fn_c_try_run LINENO
1846 # ----------------------
1847 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848 # that executables *can* be run.
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_link"
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>&5
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863 { { case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_try") 2>&5
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; }; }; then :
1875 $as_echo "$as_me: program exited with status $ac_status" >&5
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1879 ac_retval=$ac_status
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1887 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists and can be compiled using the include files in
1890 # INCLUDES, setting the cache variable VAR accordingly.
1891 ac_fn_c_check_header_compile ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1904 if ac_fn_c_try_compile "$LINENO"; then :
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 } # ac_fn_c_check_header_compile
1918 # ac_fn_c_check_func LINENO FUNC VAR
1919 # ----------------------------------
1920 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1921 ac_fn_c_check_func ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1931 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1933 #define $2 innocuous_$2
1935 /* System header to define __stub macros and hopefully few prototypes,
1936 which can conflict with char $2 (); below.
1937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1938 <limits.h> exists even on freestanding compilers. */
1941 # include <limits.h>
1943 # include <assert.h>
1948 /* Override any GCC internal prototype to avoid an error.
1949 Use char because int might match the return type of a GCC
1950 builtin and then its argument prototype would still apply. */
1955 /* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958 #if defined __stub_$2 || defined __stub___$2
1970 if ac_fn_c_try_link "$LINENO"; then :
1975 rm -f core conftest.err conftest.$ac_objext \
1976 conftest$ac_exeext conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_func
1985 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1986 # ----------------------------------------------------
1987 # Tries to find if the field MEMBER exists in type AGGR, after including
1988 # INCLUDES, setting cache variable VAR accordingly.
1989 ac_fn_c_check_member ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1993 $as_echo_n "checking for $2.$3... " >&6; }
1994 if eval \${$4+:} false; then :
1995 $as_echo_n "(cached) " >&6
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2010 if ac_fn_c_try_compile "$LINENO"; then :
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2020 if (sizeof ac_aggr.$3)
2026 if ac_fn_c_try_compile "$LINENO"; then :
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 } # ac_fn_c_check_member
2042 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2043 # -------------------------------------------
2044 # Tests whether TYPE exists after having included INCLUDES, setting cache
2045 # variable VAR accordingly.
2046 ac_fn_c_check_type ()
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if eval \${$3+:} false; then :
2052 $as_echo_n "(cached) " >&6
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2080 if ac_fn_c_try_compile "$LINENO"; then :
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094 } # ac_fn_c_check_type
2096 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2097 # --------------------------------------------
2098 # Tries to find the compile-time value of EXPR in a program that includes
2099 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2101 ac_fn_c_compute_int ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 if test "$cross_compiling" = yes; then
2105 # Depending upon the size, compute the lo and hi bounds.
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array [1 - 2 * !(($2) >= 0)];
2114 return test_array [0];
2120 if ac_fn_c_try_compile "$LINENO"; then :
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2131 return test_array [0];
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138 ac_hi=$ac_mid; break
2140 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2141 if test $ac_lo -le $ac_mid; then
2145 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2156 static int test_array [1 - 2 * !(($2) < 0)];
2158 return test_array [0];
2164 if ac_fn_c_try_compile "$LINENO"; then :
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2173 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2175 return test_array [0];
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 ac_lo=$ac_mid; break
2184 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2185 if test $ac_mid -le $ac_hi; then
2189 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 # Binary search between lo and hi bounds.
2200 while test "x$ac_lo" != "x$ac_hi"; do
2201 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2208 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2210 return test_array [0];
2216 if ac_fn_c_try_compile "$LINENO"; then :
2219 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2231 static long int longval () { return $2; }
2232 static unsigned long int ulongval () { return $2; }
2239 FILE *f = fopen ("conftest.val", "w");
2244 long int i = longval ();
2247 fprintf (f, "%ld", i);
2251 unsigned long int i = ulongval ();
2254 fprintf (f, "%lu", i);
2256 /* Do not output a trailing newline, as this causes \r\n confusion
2257 on some platforms. */
2258 return ferror (f) || fclose (f) != 0;
2264 if ac_fn_c_try_run "$LINENO"; then :
2265 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2270 conftest.$ac_objext conftest.beam conftest.$ac_ext
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275 as_fn_set_status $ac_retval
2277 } # ac_fn_c_compute_int
2279 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2280 # ---------------------------------------------
2281 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2283 ac_fn_c_check_decl ()
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 as_decl_name=`echo $2|sed 's/ *(.*//'`
2287 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2289 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2290 if eval \${$3+:} false; then :
2291 $as_echo_n "(cached) " >&6
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2299 #ifndef $as_decl_name
2301 (void) $as_decl_use;
2303 (void) $as_decl_name;
2311 if ac_fn_c_try_compile "$LINENO"; then :
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323 } # ac_fn_c_check_decl
2324 cat >config.log <<_ACEOF
2325 This file contains any messages produced by compilers while
2326 running configure, to aid debugging if configure makes a mistake.
2328 It was created by PostgreSQL $as_me 10devel, which was
2329 generated by GNU Autoconf 2.69. Invocation command line was
2341 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2342 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2343 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2344 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2345 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2347 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2348 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2350 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2351 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2352 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2353 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2354 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2355 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2356 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 test -z "$as_dir" && as_dir=.
2365 $as_echo "PATH: $as_dir"
2381 # Keep a trace of the command line.
2382 # Strip out --no-create and --no-recursion so they do not pile up.
2383 # Strip out --silent because we don't want to record it for future runs.
2384 # Also quote any args containing shell meta-characters.
2385 # Make two passes to allow for proper duplicate-argument suppression.
2389 ac_must_keep_next=false
2395 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2397 | -silent | --silent | --silen | --sile | --sil)
2400 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2403 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2405 as_fn_append ac_configure_args1 " '$ac_arg'"
2406 if test $ac_must_keep_next = true; then
2407 ac_must_keep_next=false # Got value, back to normal.
2410 *=* | --config-cache | -C | -disable-* | --disable-* \
2411 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2412 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2413 | -with-* | --with-* | -without-* | --without-* | --x)
2414 case "$ac_configure_args0 " in
2415 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2418 -* ) ac_must_keep_next=true ;;
2421 as_fn_append ac_configure_args " '$ac_arg'"
2426 { ac_configure_args0=; unset ac_configure_args0;}
2427 { ac_configure_args1=; unset ac_configure_args1;}
2429 # When interrupted or exit'd, cleanup temporary files, and complete
2430 # config.log. We remove comments because anyway the quotes in there
2431 # would cause problems or look ugly.
2432 # WARNING: Use '\'' to represent an apostrophe within the trap.
2433 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2434 trap 'exit_status=$?
2435 # Save into config.log some information that might help in debugging.
2439 $as_echo "## ---------------- ##
2440 ## Cache variables. ##
2441 ## ---------------- ##"
2443 # The following way of writing the cache mishandles newlines in values,
2445 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2446 eval ac_val=\$$ac_var
2450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2454 _ | IFS | as_nl) ;; #(
2455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2456 *) { eval $ac_var=; unset $ac_var;} ;;
2461 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2462 *${as_nl}ac_space=\ *)
2464 "s/'\''/'\''\\\\'\'''\''/g;
2465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2475 $as_echo "## ----------------- ##
2476 ## Output variables. ##
2477 ## ----------------- ##"
2479 for ac_var in $ac_subst_vars
2481 eval ac_val=\$$ac_var
2483 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2485 $as_echo "$ac_var='\''$ac_val'\''"
2489 if test -n "$ac_subst_files"; then
2490 $as_echo "## ------------------- ##
2491 ## File substitutions. ##
2492 ## ------------------- ##"
2494 for ac_var in $ac_subst_files
2496 eval ac_val=\$$ac_var
2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2500 $as_echo "$ac_var='\''$ac_val'\''"
2505 if test -s confdefs.h; then
2506 $as_echo "## ----------- ##
2513 test "$ac_signal" != 0 &&
2514 $as_echo "$as_me: caught signal $ac_signal"
2515 $as_echo "$as_me: exit $exit_status"
2517 rm -f core *.core core.conftest.* &&
2518 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2521 for ac_signal in 1 2 13 15; do
2522 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2527 rm -f -r conftest* confdefs.h
2529 $as_echo "/* confdefs.h */" > confdefs.h
2531 # Predefined preprocessor variables.
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_NAME "$PACKAGE_NAME"
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_STRING "$PACKAGE_STRING"
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_URL "$PACKAGE_URL"
2558 # Let the site file select an alternate cache file if it wants to.
2559 # Prefer an explicitly selected file to automatically selected ones.
2562 if test -n "$CONFIG_SITE"; then
2563 # We do not want a PATH search for config.site.
2564 case $CONFIG_SITE in #((
2565 -*) ac_site_file1=./$CONFIG_SITE;;
2566 */*) ac_site_file1=$CONFIG_SITE;;
2567 *) ac_site_file1=./$CONFIG_SITE;;
2569 elif test "x$prefix" != xNONE; then
2570 ac_site_file1=$prefix/share/config.site
2571 ac_site_file2=$prefix/etc/config.site
2573 ac_site_file1=$ac_default_prefix/share/config.site
2574 ac_site_file2=$ac_default_prefix/etc/config.site
2576 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2578 test "x$ac_site_file" = xNONE && continue
2579 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2581 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2582 sed 's/^/| /' "$ac_site_file" >&5
2584 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 as_fn_error $? "failed to load site script $ac_site_file
2587 See \`config.log' for more details" "$LINENO" 5; }
2591 if test -r "$cache_file"; then
2592 # Some versions of bash will fail to source /dev/null (special files
2593 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2594 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2596 $as_echo "$as_me: loading cache $cache_file" >&6;}
2598 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2599 *) . "./$cache_file";;
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2604 $as_echo "$as_me: creating cache $cache_file" >&6;}
2608 # Check that the precious variables saved in the cache have kept the same
2610 ac_cache_corrupted=false
2611 for ac_var in $ac_precious_vars; do
2612 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2613 eval ac_new_set=\$ac_env_${ac_var}_set
2614 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2615 eval ac_new_val=\$ac_env_${ac_var}_value
2616 case $ac_old_set,$ac_new_set in
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2619 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2620 ac_cache_corrupted=: ;;
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2623 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2624 ac_cache_corrupted=: ;;
2627 if test "x$ac_old_val" != "x$ac_new_val"; then
2628 # differences in whitespace do not lead to failure.
2629 ac_old_val_w=`echo x $ac_old_val`
2630 ac_new_val_w=`echo x $ac_new_val`
2631 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2633 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2634 ac_cache_corrupted=:
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2637 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2638 eval $ac_var=\$ac_old_val
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2641 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2643 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2646 # Pass precious variables to config.status.
2647 if test "$ac_new_set" = set; then
2649 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2650 *) ac_arg=$ac_var=$ac_new_val ;;
2652 case " $ac_configure_args " in
2653 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2654 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2658 if $ac_cache_corrupted; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2662 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2663 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2665 ## -------------------- ##
2666 ## Main body of script. ##
2667 ## -------------------- ##
2670 ac_cpp='$CPP $CPPFLAGS'
2671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681 for ac_dir in config "$srcdir"/config; do
2682 if test -f "$ac_dir/install-sh"; then
2684 ac_install_sh="$ac_aux_dir/install-sh -c"
2686 elif test -f "$ac_dir/install.sh"; then
2688 ac_install_sh="$ac_aux_dir/install.sh -c"
2690 elif test -f "$ac_dir/shtool"; then
2692 ac_install_sh="$ac_aux_dir/shtool install -c"
2696 if test -z "$ac_aux_dir"; then
2697 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2700 # These three variables are undocumented and unsupported,
2701 # and are intended to be withdrawn in a future Autoconf release.
2702 # They can cause serious problems if a builder's source tree is in a directory
2703 # whose full name contains unusual characters.
2704 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2705 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2706 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2710 configure_args=$ac_configure_args
2713 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2716 cat >>confdefs.h <<_ACEOF
2717 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2724 # Check whether --with-extra-version was given.
2725 if test "${with_extra_version+set}" = set; then :
2726 withval=$with_extra_version;
2729 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2732 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2735 PG_VERSION="$PACKAGE_VERSION$withval"
2740 PG_VERSION="$PACKAGE_VERSION"
2745 cat >>confdefs.h <<_ACEOF
2746 #define PG_VERSION "$PG_VERSION"
2750 # Make sure we can run config.sub.
2751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2752 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2755 $as_echo_n "checking build system type... " >&6; }
2756 if ${ac_cv_build+:} false; then :
2757 $as_echo_n "(cached) " >&6
2759 ac_build_alias=$build_alias
2760 test "x$ac_build_alias" = x &&
2761 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2762 test "x$ac_build_alias" = x &&
2763 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2764 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2769 $as_echo "$ac_cv_build" >&6; }
2770 case $ac_cv_build in
2772 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2775 ac_save_IFS=$IFS; IFS='-'
2781 # Remember, the first character of IFS is used to create $*,
2782 # except with old shells:
2785 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2789 $as_echo_n "checking host system type... " >&6; }
2790 if ${ac_cv_host+:} false; then :
2791 $as_echo_n "(cached) " >&6
2793 if test "x$host_alias" = x; then
2794 ac_cv_host=$ac_cv_build
2796 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2797 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2802 $as_echo "$ac_cv_host" >&6; }
2805 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2808 ac_save_IFS=$IFS; IFS='-'
2814 # Remember, the first character of IFS is used to create $*,
2815 # except with old shells:
2818 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2824 $as_echo_n "checking which template to use... " >&6; }
2829 # Check whether --with-template was given.
2830 if test "${with_template+set}" = set; then :
2831 withval=$with_template;
2834 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2837 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2842 list) echo; ls "$srcdir/src/template"; exit;;
2843 *) if test -f "$srcdir/src/template/$with_template" ; then
2846 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2855 # --with-template not given
2858 aix*) template=aix ;;
2859 cygwin*) template=cygwin ;;
2860 darwin*) template=darwin ;;
2861 dragonfly*) template=netbsd ;;
2862 freebsd*) template=freebsd ;;
2863 hpux*) template=hpux ;;
2864 linux*|gnu*|k*bsd*-gnu)
2866 mingw*) template=win32 ;;
2867 netbsd*) template=netbsd ;;
2868 openbsd*) template=openbsd ;;
2869 solaris*) template=solaris ;;
2872 if test x"$template" = x"" ; then
2874 *******************************************************************
2875 PostgreSQL has apparently not been ported to your platform yet.
2876 To try a manual configuration, look into the src/template directory
2877 for a similar platform and use the '--with-template=' option.
2879 Please also contact <pgsql-bugs@postgresql.org> to see about
2880 rectifying this. Include the above 'checking host system type...'
2882 *******************************************************************
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2892 $as_echo "$template" >&6; }
2897 # Initialize default assumption that we do not need separate assembly code
2898 # for TAS (test-and-set). This can be overridden by the template file
2899 # when it's executed.
2906 ## Command line options
2910 # Add non-standard directories to the include path
2915 # Check whether --with-includes was given.
2916 if test "${with_includes+set}" = set; then :
2917 withval=$with_includes;
2920 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2923 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2936 # Add non-standard directories to the library search path
2941 # Check whether --with-libraries was given.
2942 if test "${with_libraries+set}" = set; then :
2943 withval=$with_libraries;
2946 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2949 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2952 LIBRARY_DIRS=$withval
2963 # Check whether --with-libs was given.
2964 if test "${with_libs+set}" = set; then :
2968 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2971 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2974 LIBRARY_DIRS=$withval
2984 # 64-bit integer date/time storage: enabled by default.
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with 64-bit integer date/time support" >&5
2987 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2990 # Check whether --enable-integer-datetimes was given.
2991 if test "${enable_integer_datetimes+set}" = set; then :
2992 enableval=$enable_integer_datetimes;
2996 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
3003 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3008 enable_integer_datetimes=yes
3010 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_integer_datetimes" >&5
3016 $as_echo "$enable_integer_datetimes" >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3023 $as_echo_n "checking whether NLS is wanted... " >&6; }
3026 # Check whether --enable-nls was given.
3027 if test "${enable_nls+set}" = set; then :
3028 enableval=$enable_nls;
3038 WANTED_LANGUAGES=$enableval
3048 if test "$enable_nls" = yes; then
3050 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3055 $as_echo "$enable_nls" >&6; }
3060 # Default port number (--with-pgport), default 5432
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3063 $as_echo_n "checking for default port number... " >&6; }
3067 # Check whether --with-pgport was given.
3068 if test "${with_pgport+set}" = set; then :
3069 withval=$with_pgport;
3072 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3075 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3078 default_port=$withval
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3088 $as_echo "$default_port" >&6; }
3089 # Need both of these because some places want an integer and some a string
3091 cat >>confdefs.h <<_ACEOF
3092 #define DEF_PGPORT ${default_port}
3096 cat >>confdefs.h <<_ACEOF
3097 #define DEF_PGPORT_STR "${default_port}"
3102 # It's worth validating port; you can get very confusing errors otherwise
3103 if test x"$default_port" = x""; then
3104 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3105 elif test ! x`echo "$default_port" | sed -e 's/[0-9]*//'` = x""; then
3106 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3107 elif test ! x`echo "$default_port" | sed -e 's/^0.//'` = x"$default_port"; then
3108 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3109 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3110 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3114 # '-rpath'-like feature can be disabled
3118 # Check whether --enable-rpath was given.
3119 if test "${enable_rpath+set}" = set; then :
3120 enableval=$enable_rpath;
3129 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3146 # Check whether --enable-spinlocks was given.
3147 if test "${enable_spinlocks+set}" = set; then :
3148 enableval=$enable_spinlocks;
3157 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3162 enable_spinlocks=yes
3173 # Check whether --enable-atomics was given.
3174 if test "${enable_atomics+set}" = set; then :
3175 enableval=$enable_atomics;
3184 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3196 # --enable-debug adds -g to compiler flags
3200 # Check whether --enable-debug was given.
3201 if test "${enable_debug+set}" = set; then :
3202 enableval=$enable_debug;
3211 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3224 # --enable-profiling enables gcc profiling
3228 # Check whether --enable-profiling was given.
3229 if test "${enable_profiling+set}" = set; then :
3230 enableval=$enable_profiling;
3239 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3251 # --enable-coverage enables generation of code coverage metrics with gcov
3255 # Check whether --enable-coverage was given.
3256 if test "${enable_coverage+set}" = set; then :
3257 enableval=$enable_coverage;
3262 # Extract the first word of "$ac_prog", so it can be a program name with args.
3263 set dummy $ac_prog; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_GCOV+:} false; then :
3267 $as_echo_n "(cached) " >&6
3269 if test -n "$GCOV"; then
3270 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_GCOV="$ac_prog"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 GCOV=$ac_cv_prog_GCOV
3290 if test -n "$GCOV"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3292 $as_echo "$GCOV" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3299 test -n "$GCOV" && break
3302 if test -z "$GCOV"; then
3303 as_fn_error $? "gcov not found" "$LINENO" 5
3307 # Extract the first word of "$ac_prog", so it can be a program name with args.
3308 set dummy $ac_prog; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_LCOV+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 if test -n "$LCOV"; then
3315 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_LCOV="$ac_prog"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 LCOV=$ac_cv_prog_LCOV
3335 if test -n "$LCOV"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3337 $as_echo "$LCOV" >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3344 test -n "$LCOV" && break
3347 if test -z "$LCOV"; then
3348 as_fn_error $? "lcov not found" "$LINENO" 5
3350 for ac_prog in genhtml
3352 # Extract the first word of "$ac_prog", so it can be a program name with args.
3353 set dummy $ac_prog; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_GENHTML+:} false; then :
3357 $as_echo_n "(cached) " >&6
3359 if test -n "$GENHTML"; then
3360 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_GENHTML="$ac_prog"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 GENHTML=$ac_cv_prog_GENHTML
3380 if test -n "$GENHTML"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3382 $as_echo "$GENHTML" >&6; }
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3389 test -n "$GENHTML" && break
3392 if test -z "$GENHTML"; then
3393 as_fn_error $? "genhtml not found" "$LINENO" 5
3400 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3417 # Check whether --enable-dtrace was given.
3418 if test "${enable_dtrace+set}" = set; then :
3419 enableval=$enable_dtrace;
3422 for ac_prog in dtrace
3424 # Extract the first word of "$ac_prog", so it can be a program name with args.
3425 set dummy $ac_prog; ac_word=$2
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427 $as_echo_n "checking for $ac_word... " >&6; }
3428 if ${ac_cv_prog_DTRACE+:} false; then :
3429 $as_echo_n "(cached) " >&6
3431 if test -n "$DTRACE"; then
3432 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441 ac_cv_prog_DTRACE="$ac_prog"
3442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 DTRACE=$ac_cv_prog_DTRACE
3452 if test -n "$DTRACE"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3454 $as_echo "$DTRACE" >&6; }
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3461 test -n "$DTRACE" && break
3464 if test -z "$DTRACE"; then
3465 as_fn_error $? "dtrace not found" "$LINENO" 5
3473 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3490 # Check whether --enable-tap-tests was given.
3491 if test "${enable_tap_tests+set}" = set; then :
3492 enableval=$enable_tap_tests;
3501 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3517 $as_echo_n "checking for block size... " >&6; }
3521 # Check whether --with-blocksize was given.
3522 if test "${with_blocksize+set}" = set; then :
3523 withval=$with_blocksize;
3526 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3529 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3541 case ${blocksize} in
3548 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3551 $as_echo "${blocksize}kB" >&6; }
3554 cat >>confdefs.h <<_ACEOF
3555 #define BLCKSZ ${BLCKSZ}
3560 # Relation segment size
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3563 $as_echo_n "checking for segment size... " >&6; }
3567 # Check whether --with-segsize was given.
3568 if test "${with_segsize+set}" = set; then :
3569 withval=$with_segsize;
3572 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3575 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3587 # this expression is set up to avoid unnecessary integer overflow
3588 # blocksize is already guaranteed to be a factor of 1024
3589 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3590 test $? -eq 0 || exit 1
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3592 $as_echo "${segsize}GB" >&6; }
3595 cat >>confdefs.h <<_ACEOF
3596 #define RELSEG_SIZE ${RELSEG_SIZE}
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3604 $as_echo_n "checking for WAL block size... " >&6; }
3608 # Check whether --with-wal-blocksize was given.
3609 if test "${with_wal_blocksize+set}" = set; then :
3610 withval=$with_wal_blocksize;
3613 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3616 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3619 wal_blocksize=$withval
3628 case ${wal_blocksize} in
3629 1) XLOG_BLCKSZ=1024;;
3630 2) XLOG_BLCKSZ=2048;;
3631 4) XLOG_BLCKSZ=4096;;
3632 8) XLOG_BLCKSZ=8192;;
3633 16) XLOG_BLCKSZ=16384;;
3634 32) XLOG_BLCKSZ=32768;;
3635 64) XLOG_BLCKSZ=65536;;
3636 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3639 $as_echo "${wal_blocksize}kB" >&6; }
3642 cat >>confdefs.h <<_ACEOF
3643 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL segment size" >&5
3651 $as_echo_n "checking for WAL segment size... " >&6; }
3655 # Check whether --with-wal-segsize was given.
3656 if test "${with_wal_segsize+set}" = set; then :
3657 withval=$with_wal_segsize;
3660 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3663 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3666 wal_segsize=$withval
3675 case ${wal_segsize} in
3683 *) as_fn_error $? "Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_segsize}MB" >&5
3686 $as_echo "${wal_segsize}MB" >&6; }
3689 cat >>confdefs.h <<_ACEOF
3690 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3698 # For historical reasons you can also use --with-CC to specify the C compiler
3699 # to use, although the standard way to do this is to set the CC environment
3704 # Check whether --with-CC was given.
3705 if test "${with_CC+set}" = set; then :
3709 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3712 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3724 aix) pgac_cc_list="gcc xlc";;
3725 *) pgac_cc_list="gcc cc";;
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733 if test -n "$ac_tool_prefix"; then
3734 for ac_prog in $pgac_cc_list
3736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if ${ac_cv_prog_CC+:} false; then :
3741 $as_echo_n "(cached) " >&6
3743 if test -n "$CC"; then
3744 ac_cv_prog_CC="$CC" # Let the user override the test.
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 if test -n "$CC"; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3766 $as_echo "$CC" >&6; }
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3773 test -n "$CC" && break
3776 if test -z "$CC"; then
3778 for ac_prog in $pgac_cc_list
3780 # Extract the first word of "$ac_prog", so it can be a program name with args.
3781 set dummy $ac_prog; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3785 $as_echo_n "(cached) " >&6
3787 if test -n "$ac_ct_CC"; then
3788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_prog_ac_ct_CC="$ac_prog"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3808 if test -n "$ac_ct_CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3810 $as_echo "$ac_ct_CC" >&6; }
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3817 test -n "$ac_ct_CC" && break
3820 if test "x$ac_ct_CC" = x; then
3823 case $cross_compiling:$ac_tool_warned in
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3827 ac_tool_warned=yes ;;
3834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error $? "no acceptable C compiler found in \$PATH
3837 See \`config.log' for more details" "$LINENO" 5; }
3839 # Provide some information about the compiler.
3840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3843 for ac_option in --version -v -V -qversion; do
3844 { { ac_try="$ac_compiler $ac_option >&5"
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3853 if test -s conftest.err; then
3855 ... rest of stderr output deleted ...
3856 10q' conftest.err >conftest.er1
3857 cat conftest.er1 >&5
3859 rm -f conftest.er1 conftest.err
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3875 ac_clean_files_save=$ac_clean_files
3876 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3877 # Try to create an executable without -o first, disregard a.out.
3878 # It will help us diagnose broken compilers, and finding out an intuition
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3881 $as_echo_n "checking whether the C compiler works... " >&6; }
3882 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3884 # The possible output files:
3885 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3888 for ac_file in $ac_files
3891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3892 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3897 if { { ac_try="$ac_link_default"
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 $as_echo "$ac_try_echo"; } >&5
3904 (eval "$ac_link_default") 2>&5
3906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907 test $ac_status = 0; }; then :
3908 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3909 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3910 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3911 # so that the user can short-circuit this test for compilers unknown to
3913 for ac_file in $ac_files ''
3915 test -f "$ac_file" || continue
3917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3920 # We found the default executable, but exeext='' is most
3924 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3928 # We set ac_cv_exeext here because the later test for it is not
3929 # safe: cross compilers may not add the suffix if given an `-o'
3930 # argument, so we may need to know it at that point already.
3931 # Even if this section looks crufty: it has the advantage of
3938 test "$ac_cv_exeext" = no && ac_cv_exeext=
3943 if test -z "$ac_file"; then :
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3946 $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error 77 "C compiler cannot create executables
3952 See \`config.log' for more details" "$LINENO" 5; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3955 $as_echo "yes" >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3958 $as_echo_n "checking for C compiler default output file name... " >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3960 $as_echo "$ac_file" >&6; }
3961 ac_exeext=$ac_cv_exeext
3963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3964 ac_clean_files=$ac_clean_files_save
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3966 $as_echo_n "checking for suffix of executables... " >&6; }
3967 if { { ac_try="$ac_link"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_link") 2>&5
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; then :
3978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3979 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3980 # work properly (i.e., refer to `conftest.exe'), while it won't with
3982 for ac_file in conftest.exe conftest conftest.*; do
3983 test -f "$ac_file" || continue
3985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3995 See \`config.log' for more details" "$LINENO" 5; }
3997 rm -f conftest conftest$ac_cv_exeext
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3999 $as_echo "$ac_cv_exeext" >&6; }
4001 rm -f conftest.$ac_ext
4002 EXEEXT=$ac_cv_exeext
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4010 FILE *f = fopen ("conftest.out", "w");
4011 return ferror (f) || fclose (f) != 0;
4017 ac_clean_files="$ac_clean_files conftest.out"
4018 # Check that the compiler produces executables we can run. If not, either
4019 # the compiler is broken, or we cross compile.
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4021 $as_echo_n "checking whether we are cross compiling... " >&6; }
4022 if test "$cross_compiling" != yes; then
4023 { { ac_try="$ac_link"
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029 $as_echo "$ac_try_echo"; } >&5
4030 (eval "$ac_link") 2>&5
4032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033 test $ac_status = 0; }
4034 if { ac_try='./conftest$ac_cv_exeext'
4035 { { case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 $as_echo "$ac_try_echo"; } >&5
4041 (eval "$ac_try") 2>&5
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }; }; then
4047 if test "$cross_compiling" = maybe; then
4050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4052 as_fn_error $? "cannot run C compiled programs.
4053 If you meant to cross compile, use \`--host'.
4054 See \`config.log' for more details" "$LINENO" 5; }
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4059 $as_echo "$cross_compiling" >&6; }
4061 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4062 ac_clean_files=$ac_clean_files_save
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4064 $as_echo_n "checking for suffix of object files... " >&6; }
4065 if ${ac_cv_objext+:} false; then :
4066 $as_echo_n "(cached) " >&6
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4079 rm -f conftest.o conftest.obj
4080 if { { ac_try="$ac_compile"
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086 $as_echo "$ac_try_echo"; } >&5
4087 (eval "$ac_compile") 2>&5
4089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4090 test $ac_status = 0; }; then :
4091 for ac_file in conftest.o conftest.obj conftest.*; do
4092 test -f "$ac_file" || continue;
4094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4100 $as_echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105 as_fn_error $? "cannot compute suffix of object files: cannot compile
4106 See \`config.log' for more details" "$LINENO" 5; }
4108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4111 $as_echo "$ac_cv_objext" >&6; }
4112 OBJEXT=$ac_cv_objext
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4116 if ${ac_cv_c_compiler_gnu+:} false; then :
4117 $as_echo_n "(cached) " >&6
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4133 if ac_fn_c_try_compile "$LINENO"; then :
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4144 if test $ac_compiler_gnu = yes; then
4149 ac_test_CFLAGS=${CFLAGS+set}
4150 ac_save_CFLAGS=$CFLAGS
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4153 if ${ac_cv_prog_cc_g+:} false; then :
4154 $as_echo_n "(cached) " >&6
4156 ac_save_c_werror_flag=$ac_c_werror_flag
4157 ac_c_werror_flag=yes
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4171 if ac_fn_c_try_compile "$LINENO"; then :
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4186 if ac_fn_c_try_compile "$LINENO"; then :
4189 ac_c_werror_flag=$ac_save_c_werror_flag
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4202 if ac_fn_c_try_compile "$LINENO"; then :
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 ac_c_werror_flag=$ac_save_c_werror_flag
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4213 $as_echo "$ac_cv_prog_cc_g" >&6; }
4214 if test "$ac_test_CFLAGS" = set; then
4215 CFLAGS=$ac_save_CFLAGS
4216 elif test $ac_cv_prog_cc_g = yes; then
4217 if test "$GCC" = yes; then
4223 if test "$GCC" = yes; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4231 if ${ac_cv_prog_cc_c89+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 ac_cv_prog_cc_c89=no
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4241 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4242 struct buf { int x; };
4243 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4244 static char *e (p, i)
4250 static char *f (char * (*g) (char **, int), char **p, ...)
4255 s = g (p, va_arg (v,int));
4260 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4261 function prototypes and stuff, but not '\xHH' hex character constants.
4262 These don't provoke an error unfortunately, instead are silently treated
4263 as 'x'. The following induces an error, until -std is added to get
4264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4265 array size at least. It's necessary to write '\x00'==0 to get something
4266 that's true only with -std. */
4267 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4269 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4270 inside strings and character constants. */
4272 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4274 int test (int i, double x);
4275 struct s1 {int (*f) (int a);};
4276 struct s2 {int (*f) (double a);};
4277 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4283 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4288 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4291 CC="$ac_save_CC $ac_arg"
4292 if ac_fn_c_try_compile "$LINENO"; then :
4293 ac_cv_prog_cc_c89=$ac_arg
4295 rm -f core conftest.err conftest.$ac_objext
4296 test "x$ac_cv_prog_cc_c89" != "xno" && break
4298 rm -f conftest.$ac_ext
4303 case "x$ac_cv_prog_cc_c89" in
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4306 $as_echo "none needed" >&6; } ;;
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4309 $as_echo "unsupported" >&6; } ;;
4311 CC="$CC $ac_cv_prog_cc_c89"
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4313 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4315 if test "x$ac_cv_prog_cc_c89" != xno; then :
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4327 # but has idiosyncrasies of its own. We assume icc will define
4328 # __INTEL_COMPILER regardless of CFLAGS.
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4336 #ifndef __INTEL_COMPILER
4343 if ac_fn_c_try_compile "$LINENO"; then :
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 # Check if it's Sun Studio compiler. We assume that
4351 # __SUNPRO_C will be defined for Sun Studio compilers
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4365 if ac_fn_c_try_compile "$LINENO"; then :
4370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 . "$srcdir/src/template/$template" || exit
4381 # CFLAGS are selected so:
4382 # If the user specifies something in the environment, that is used.
4383 # else: If the template file set something, that is used.
4384 # else: If coverage was enabled, don't set anything.
4385 # else: If the compiler is GCC, then we use -O2.
4386 # else: If the compiler is something else, then we use -O, unless debugging.
4388 if test "$ac_env_CFLAGS_set" = set; then
4389 CFLAGS=$ac_env_CFLAGS_value
4390 elif test "${CFLAGS+set}" = set; then
4391 : # (keep what template set)
4392 elif test "$enable_coverage" = yes; then
4393 : # no optimization by default
4394 elif test "$GCC" = yes; then
4397 # if the user selected debug mode, don't use -O
4398 if test "$enable_debug" != yes; then
4403 # CFLAGS we determined above will be added back at the end
4407 # set CFLAGS_VECTOR from the environment, if available
4408 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
4409 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
4412 # Some versions of GCC support some additional useful warning flags.
4413 # Check whether they are supported, and add them to CFLAGS if so.
4414 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4415 # but has its own. Also check other compiler-specific flags here.
4417 if test "$GCC" = yes -a "$ICC" = no; then
4418 CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith"
4419 # These work in some but not all gcc versions
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
4421 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4422 if ${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+:} false; then :
4423 $as_echo_n "(cached) " >&6
4425 pgac_save_CFLAGS=$CFLAGS
4426 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4427 ac_save_c_werror_flag=$ac_c_werror_flag
4428 ac_c_werror_flag=yes
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4440 if ac_fn_c_try_compile "$LINENO"; then :
4441 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4443 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 ac_c_werror_flag=$ac_save_c_werror_flag
4447 CFLAGS="$pgac_save_CFLAGS"
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4450 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4451 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4452 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wendif-labels" >&5
4456 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4457 if ${pgac_cv_prog_cc_cflags__Wendif_labels+:} false; then :
4458 $as_echo_n "(cached) " >&6
4460 pgac_save_CFLAGS=$CFLAGS
4461 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4462 ac_save_c_werror_flag=$ac_c_werror_flag
4463 ac_c_werror_flag=yes
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4475 if ac_fn_c_try_compile "$LINENO"; then :
4476 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4478 pgac_cv_prog_cc_cflags__Wendif_labels=no
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 ac_c_werror_flag=$ac_save_c_werror_flag
4482 CFLAGS="$pgac_save_CFLAGS"
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4485 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4486 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4487 CFLAGS="$CFLAGS -Wendif-labels"
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-format-attribute" >&5
4491 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4492 if ${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+:} false; then :
4493 $as_echo_n "(cached) " >&6
4495 pgac_save_CFLAGS=$CFLAGS
4496 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4497 ac_save_c_werror_flag=$ac_c_werror_flag
4498 ac_c_werror_flag=yes
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4510 if ac_fn_c_try_compile "$LINENO"; then :
4511 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4513 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 ac_c_werror_flag=$ac_save_c_werror_flag
4517 CFLAGS="$pgac_save_CFLAGS"
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4520 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4521 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4522 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4525 # This was included in -Wall/-Wformat in older GCC versions
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security" >&5
4527 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4528 if ${pgac_cv_prog_cc_cflags__Wformat_security+:} false; then :
4529 $as_echo_n "(cached) " >&6
4531 pgac_save_CFLAGS=$CFLAGS
4532 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4533 ac_save_c_werror_flag=$ac_c_werror_flag
4534 ac_c_werror_flag=yes
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4546 if ac_fn_c_try_compile "$LINENO"; then :
4547 pgac_cv_prog_cc_cflags__Wformat_security=yes
4549 pgac_cv_prog_cc_cflags__Wformat_security=no
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 ac_c_werror_flag=$ac_save_c_werror_flag
4553 CFLAGS="$pgac_save_CFLAGS"
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4556 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4557 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4558 CFLAGS="$CFLAGS -Wformat-security"
4561 # Disable strict-aliasing rules; needed for gcc 3.3+
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4563 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4564 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4565 $as_echo_n "(cached) " >&6
4567 pgac_save_CFLAGS=$CFLAGS
4568 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4569 ac_save_c_werror_flag=$ac_c_werror_flag
4570 ac_c_werror_flag=yes
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4582 if ac_fn_c_try_compile "$LINENO"; then :
4583 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4585 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 ac_c_werror_flag=$ac_save_c_werror_flag
4589 CFLAGS="$pgac_save_CFLAGS"
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4592 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4593 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4594 CFLAGS="$CFLAGS -fno-strict-aliasing"
4597 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fwrapv" >&5
4599 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4600 if ${pgac_cv_prog_cc_cflags__fwrapv+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 pgac_save_CFLAGS=$CFLAGS
4604 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4605 ac_save_c_werror_flag=$ac_c_werror_flag
4606 ac_c_werror_flag=yes
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4618 if ac_fn_c_try_compile "$LINENO"; then :
4619 pgac_cv_prog_cc_cflags__fwrapv=yes
4621 pgac_cv_prog_cc_cflags__fwrapv=no
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 ac_c_werror_flag=$ac_save_c_werror_flag
4625 CFLAGS="$pgac_save_CFLAGS"
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4628 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4629 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4630 CFLAGS="$CFLAGS -fwrapv"
4633 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fexcess-precision=standard" >&5
4635 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4636 if ${pgac_cv_prog_cc_cflags__fexcess_precision_standard+:} false; then :
4637 $as_echo_n "(cached) " >&6
4639 pgac_save_CFLAGS=$CFLAGS
4640 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4641 ac_save_c_werror_flag=$ac_c_werror_flag
4642 ac_c_werror_flag=yes
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4654 if ac_fn_c_try_compile "$LINENO"; then :
4655 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4657 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_c_werror_flag=$ac_save_c_werror_flag
4661 CFLAGS="$pgac_save_CFLAGS"
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4664 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4665 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4666 CFLAGS="$CFLAGS -fexcess-precision=standard"
4669 # Optimization flags for specific files that benefit from vectorization
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -funroll-loops" >&5
4671 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4672 if ${pgac_cv_prog_cc_cflags__funroll_loops+:} false; then :
4673 $as_echo_n "(cached) " >&6
4675 pgac_save_CFLAGS=$CFLAGS
4676 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4677 ac_save_c_werror_flag=$ac_c_werror_flag
4678 ac_c_werror_flag=yes
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691 pgac_cv_prog_cc_cflags__funroll_loops=yes
4693 pgac_cv_prog_cc_cflags__funroll_loops=no
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 ac_c_werror_flag=$ac_save_c_werror_flag
4697 CFLAGS="$pgac_save_CFLAGS"
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4700 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4701 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4702 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftree-vectorize" >&5
4706 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4707 if ${pgac_cv_prog_cc_cflags__ftree_vectorize+:} false; then :
4708 $as_echo_n "(cached) " >&6
4710 pgac_save_CFLAGS=$CFLAGS
4711 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4712 ac_save_c_werror_flag=$ac_c_werror_flag
4713 ac_c_werror_flag=yes
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4725 if ac_fn_c_try_compile "$LINENO"; then :
4726 pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4728 pgac_cv_prog_cc_cflags__ftree_vectorize=no
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_c_werror_flag=$ac_save_c_werror_flag
4732 CFLAGS="$pgac_save_CFLAGS"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4735 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4736 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4737 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4740 # We want to suppress clang's unhelpful unused-command-line-argument warnings
4741 # but gcc won't complain about unrecognized -Wno-foo switches, so we have to
4742 # test for the positive form and if that works, add the negative form
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-command-line-argument" >&5
4744 $as_echo_n "checking whether $CC supports -Wunused-command-line-argument... " >&6; }
4745 if ${pgac_cv_prog_cc_cflags__Wunused_command_line_argument+:} false; then :
4746 $as_echo_n "(cached) " >&6
4748 pgac_save_CFLAGS=$CFLAGS
4749 CFLAGS="$pgac_save_CFLAGS -Wunused-command-line-argument"
4750 ac_save_c_werror_flag=$ac_c_werror_flag
4751 ac_c_werror_flag=yes
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 pgac_cv_prog_cc_cflags__Wunused_command_line_argument=yes
4766 pgac_cv_prog_cc_cflags__Wunused_command_line_argument=no
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 ac_c_werror_flag=$ac_save_c_werror_flag
4770 CFLAGS="$pgac_save_CFLAGS"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wunused_command_line_argument" >&5
4773 $as_echo "$pgac_cv_prog_cc_cflags__Wunused_command_line_argument" >&6; }
4774 if test x"$pgac_cv_prog_cc_cflags__Wunused_command_line_argument" = x"yes"; then
4775 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
4778 if test -n "$NOT_THE_CFLAGS"; then
4779 CFLAGS="$CFLAGS -Wno-unused-command-line-argument"
4781 elif test "$ICC" = yes; then
4782 # Intel's compiler has a bug/misoptimization in checking for
4783 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mp1" >&5
4785 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4786 if ${pgac_cv_prog_cc_cflags__mp1+:} false; then :
4787 $as_echo_n "(cached) " >&6
4789 pgac_save_CFLAGS=$CFLAGS
4790 CFLAGS="$pgac_save_CFLAGS -mp1"
4791 ac_save_c_werror_flag=$ac_c_werror_flag
4792 ac_c_werror_flag=yes
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4804 if ac_fn_c_try_compile "$LINENO"; then :
4805 pgac_cv_prog_cc_cflags__mp1=yes
4807 pgac_cv_prog_cc_cflags__mp1=no
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 ac_c_werror_flag=$ac_save_c_werror_flag
4811 CFLAGS="$pgac_save_CFLAGS"
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4814 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4815 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4816 CFLAGS="$CFLAGS -mp1"
4819 # Make sure strict aliasing is off (though this is said to be the default)
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4821 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4822 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4823 $as_echo_n "(cached) " >&6
4825 pgac_save_CFLAGS=$CFLAGS
4826 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4827 ac_save_c_werror_flag=$ac_c_werror_flag
4828 ac_c_werror_flag=yes
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4843 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 ac_c_werror_flag=$ac_save_c_werror_flag
4847 CFLAGS="$pgac_save_CFLAGS"
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4850 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4851 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4852 CFLAGS="$CFLAGS -fno-strict-aliasing"
4855 elif test "$PORTNAME" = "aix"; then
4856 # AIX's xlc has to have strict aliasing turned off too
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qnoansialias" >&5
4858 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4859 if ${pgac_cv_prog_cc_cflags__qnoansialias+:} false; then :
4860 $as_echo_n "(cached) " >&6
4862 pgac_save_CFLAGS=$CFLAGS
4863 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4864 ac_save_c_werror_flag=$ac_c_werror_flag
4865 ac_c_werror_flag=yes
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 pgac_cv_prog_cc_cflags__qnoansialias=yes
4880 pgac_cv_prog_cc_cflags__qnoansialias=no
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 ac_c_werror_flag=$ac_save_c_werror_flag
4884 CFLAGS="$pgac_save_CFLAGS"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4887 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4888 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4889 CFLAGS="$CFLAGS -qnoansialias"
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qlonglong" >&5
4893 $as_echo_n "checking whether $CC supports -qlonglong... " >&6; }
4894 if ${pgac_cv_prog_cc_cflags__qlonglong+:} false; then :
4895 $as_echo_n "(cached) " >&6
4897 pgac_save_CFLAGS=$CFLAGS
4898 CFLAGS="$pgac_save_CFLAGS -qlonglong"
4899 ac_save_c_werror_flag=$ac_c_werror_flag
4900 ac_c_werror_flag=yes
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4912 if ac_fn_c_try_compile "$LINENO"; then :
4913 pgac_cv_prog_cc_cflags__qlonglong=yes
4915 pgac_cv_prog_cc_cflags__qlonglong=no
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 ac_c_werror_flag=$ac_save_c_werror_flag
4919 CFLAGS="$pgac_save_CFLAGS"
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qlonglong" >&5
4922 $as_echo "$pgac_cv_prog_cc_cflags__qlonglong" >&6; }
4923 if test x"$pgac_cv_prog_cc_cflags__qlonglong" = x"yes"; then
4924 CFLAGS="$CFLAGS -qlonglong"
4927 elif test "$PORTNAME" = "hpux"; then
4928 # On some versions of HP-UX, libm functions do not set errno by default.
4929 # Fix that by using +Olibmerrno if the compiler recognizes it.
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports +Olibmerrno" >&5
4931 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4932 if ${pgac_cv_prog_cc_cflags_pOlibmerrno+:} false; then :
4933 $as_echo_n "(cached) " >&6
4935 pgac_save_CFLAGS=$CFLAGS
4936 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4937 ac_save_c_werror_flag=$ac_c_werror_flag
4938 ac_c_werror_flag=yes
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4950 if ac_fn_c_try_compile "$LINENO"; then :
4951 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4953 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 ac_c_werror_flag=$ac_save_c_werror_flag
4957 CFLAGS="$pgac_save_CFLAGS"
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4960 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4961 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4962 CFLAGS="$CFLAGS +Olibmerrno"
4967 CFLAGS_VECTOR=$CFLAGS_VECTOR
4970 # supply -g if --enable-debug
4971 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4975 # enable code coverage if --enable-coverage
4976 if test "$enable_coverage" = yes; then
4977 if test "$GCC" = yes; then
4978 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4980 as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5
4984 # enable profiling if --enable-profiling
4985 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4986 if test "$GCC" = yes; then
4988 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
4990 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4992 as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5
4996 # We already have this in Makefile.win32, but configure needs it too
4997 if test "$PORTNAME" = "win32"; then
4998 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
5001 # Now that we're done automatically adding stuff to CFLAGS, put back the
5002 # user-specified flags (if any) at the end. This lets users override
5003 # the automatic additions.
5004 CFLAGS="$CFLAGS $user_CFLAGS"
5006 # Check if the compiler still works with the final flag settings
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
5008 $as_echo_n "checking whether the C compiler still works... " >&6; }
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5020 if ac_fn_c_try_link "$LINENO"; then :
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5022 $as_echo "yes" >&6; }
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5026 as_fn_error $? "cannot proceed" "$LINENO" 5
5028 rm -f core conftest.err conftest.$ac_objext \
5029 conftest$ac_exeext conftest.$ac_ext
5031 # Defend against gcc -ffast-math
5032 if test "$GCC" = yes; then
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5039 #ifdef __FAST_MATH__
5046 if ac_fn_c_try_compile "$LINENO"; then :
5049 as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 ac_cpp='$CPP $CPPFLAGS'
5056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5060 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5061 # On Suns, sometimes $CPP names a directory.
5062 if test -n "$CPP" && test -d "$CPP"; then
5065 if test -z "$CPP"; then
5066 if ${ac_cv_prog_CPP+:} false; then :
5067 $as_echo_n "(cached) " >&6
5069 # Double quotes because CPP needs to be expanded
5070 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5073 for ac_c_preproc_warn_flag in '' yes
5075 # Use a header file that comes with gcc, so configuring glibc
5076 # with a fresh cross-compiler works.
5077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5078 # <limits.h> exists even on freestanding compilers.
5079 # On the NeXT, cc -E runs the code through the compiler's parser,
5080 # not just through cpp. "Syntax error" is here to catch this case.
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5084 # include <limits.h>
5086 # include <assert.h>
5090 if ac_fn_c_try_cpp "$LINENO"; then :
5093 # Broken: fails on valid input.
5096 rm -f conftest.err conftest.i conftest.$ac_ext
5098 # OK, works on sane cases. Now check whether nonexistent headers
5099 # can be detected and how.
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 #include <ac_nonexistent.h>
5104 if ac_fn_c_try_cpp "$LINENO"; then :
5105 # Broken: success on invalid input.
5108 # Passes both tests.
5112 rm -f conftest.err conftest.i conftest.$ac_ext
5115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116 rm -f conftest.i conftest.err conftest.$ac_ext
5117 if $ac_preproc_ok; then :
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5130 $as_echo "$CPP" >&6; }
5132 for ac_c_preproc_warn_flag in '' yes
5134 # Use a header file that comes with gcc, so configuring glibc
5135 # with a fresh cross-compiler works.
5136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5137 # <limits.h> exists even on freestanding compilers.
5138 # On the NeXT, cc -E runs the code through the compiler's parser,
5139 # not just through cpp. "Syntax error" is here to catch this case.
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5143 # include <limits.h>
5145 # include <assert.h>
5149 if ac_fn_c_try_cpp "$LINENO"; then :
5152 # Broken: fails on valid input.
5155 rm -f conftest.err conftest.i conftest.$ac_ext
5157 # OK, works on sane cases. Now check whether nonexistent headers
5158 # can be detected and how.
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 #include <ac_nonexistent.h>
5163 if ac_fn_c_try_cpp "$LINENO"; then :
5164 # Broken: success on invalid input.
5167 # Passes both tests.
5171 rm -f conftest.err conftest.i conftest.$ac_ext
5174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5175 rm -f conftest.i conftest.err conftest.$ac_ext
5176 if $ac_preproc_ok; then :
5179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5181 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5182 See \`config.log' for more details" "$LINENO" 5; }
5186 ac_cpp='$CPP $CPPFLAGS'
5187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195 # Set up TAS assembly code if needed; the template file has now had its
5196 # chance to request this.
5198 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5201 if test "$need_tas" = yes ; then
5210 # Automatic dependency tracking
5214 # Check whether --enable-depend was given.
5215 if test "${enable_depend+set}" = set; then :
5216 enableval=$enable_depend;
5225 as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5
5239 # Enable assert checks
5243 # Check whether --enable-cassert was given.
5244 if test "${enable_cassert+set}" = set; then :
5245 enableval=$enable_cassert;
5249 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
5256 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
5269 # Include directories
5272 IFS="${IFS}${PATH_SEPARATOR}"
5273 # SRCH_INC comes from the template file
5274 for dir in $with_includes $SRCH_INC; do
5275 if test -d "$dir"; then
5276 INCLUDES="$INCLUDES -I$dir"
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
5279 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5287 # Library directories
5290 IFS="${IFS}${PATH_SEPARATOR}"
5291 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5292 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5293 if test -d "$dir"; then
5294 LIBDIRS="$LIBDIRS -L$dir"
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
5297 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5303 # Enable thread-safe client libraries
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
5306 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5309 # Check whether --enable-thread-safety was given.
5310 if test "${enable_thread_safety+set}" = set; then :
5311 enableval=$enable_thread_safety;
5320 as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5
5325 enable_thread_safety=yes
5330 if test "$enable_thread_safety" = yes; then
5332 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
5336 $as_echo "$enable_thread_safety" >&6; }
5340 # Optionally build Tcl modules (PL/Tcl)
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
5343 $as_echo_n "checking whether to build with Tcl... " >&6; }
5347 # Check whether --with-tcl was given.
5348 if test "${with_tcl+set}" = set; then :
5358 as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
5369 $as_echo "$with_tcl" >&6; }
5372 # We see if the path to the Tcl/Tk configuration scripts is specified.
5373 # This will override the use of tclsh to find the paths to search.
5378 # Check whether --with-tclconfig was given.
5379 if test "${with_tclconfig+set}" = set; then :
5380 withval=$with_tclconfig;
5383 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5386 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5398 # Optionally build Perl modules (PL/Perl)
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
5401 $as_echo_n "checking whether to build Perl modules... " >&6; }
5405 # Check whether --with-perl was given.
5406 if test "${with_perl+set}" = set; then :
5416 as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
5427 $as_echo "$with_perl" >&6; }
5431 # Optionally build Python modules (PL/Python)
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
5434 $as_echo_n "checking whether to build Python modules... " >&6; }
5438 # Check whether --with-python was given.
5439 if test "${with_python+set}" = set; then :
5440 withval=$with_python;
5449 as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
5460 $as_echo "$with_python" >&6; }
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
5467 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5471 # Check whether --with-gssapi was given.
5472 if test "${with_gssapi+set}" = set; then :
5473 withval=$with_gssapi;
5478 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
5480 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5487 as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
5498 $as_echo "$with_gssapi" >&6; }
5505 # Kerberos configuration parameters
5510 # Check whether --with-krb-srvnam was given.
5511 if test "${with_krb_srvnam+set}" = set; then :
5512 withval=$with_krb_srvnam;
5515 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5518 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5526 with_krb_srvnam="postgres"
5531 cat >>confdefs.h <<_ACEOF
5532 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
5541 $as_echo_n "checking whether to build with PAM support... " >&6; }
5545 # Check whether --with-pam was given.
5546 if test "${with_pam+set}" = set; then :
5551 $as_echo "#define USE_PAM 1" >>confdefs.h
5558 as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
5569 $as_echo "$with_pam" >&6; }
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
5576 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
5580 # Check whether --with-bsd-auth was given.
5581 if test "${with_bsd_auth+set}" = set; then :
5582 withval=$with_bsd_auth;
5586 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
5593 as_fn_error $? "no argument expected for --with-bsd-auth option" "$LINENO" 5
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
5604 $as_echo "$with_bsd_auth" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
5611 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5615 # Check whether --with-ldap was given.
5616 if test "${with_ldap+set}" = set; then :
5621 $as_echo "#define USE_LDAP 1" >>confdefs.h
5628 as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
5639 $as_echo "$with_ldap" >&6; }
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
5646 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5650 # Check whether --with-bonjour was given.
5651 if test "${with_bonjour+set}" = set; then :
5652 withval=$with_bonjour;
5656 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
5663 as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
5674 $as_echo "$with_bonjour" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
5681 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5685 # Check whether --with-openssl was given.
5686 if test "${with_openssl+set}" = set; then :
5687 withval=$with_openssl;
5691 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
5698 as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
5709 $as_echo "$with_openssl" >&6; }
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
5716 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5720 # Check whether --with-selinux was given.
5721 if test "${with_selinux+set}" = set; then :
5722 withval=$with_selinux;
5731 as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
5743 $as_echo "$with_selinux" >&6; }
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
5749 $as_echo_n "checking whether to build with systemd support... " >&6; }
5753 # Check whether --with-systemd was given.
5754 if test "${with_systemd+set}" = set; then :
5755 withval=$with_systemd;
5759 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
5766 as_fn_error $? "no argument expected for --with-systemd option" "$LINENO" 5
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
5778 $as_echo "$with_systemd" >&6; }
5786 # Check whether --with-readline was given.
5787 if test "${with_readline+set}" = set; then :
5788 withval=$with_readline;
5797 as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5
5807 # readline on MinGW has problems with backslashes in psql and other bugs.
5808 # This is particularly a problem with non-US code pages.
5809 # Therefore disable its use until we understand the cause. 2004-07-20
5810 if test "$PORTNAME" = "win32"; then
5811 if test "$with_readline" = yes; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5813 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5825 # Check whether --with-libedit-preferred was given.
5826 if test "${with_libedit_preferred+set}" = set; then :
5827 withval=$with_libedit_preferred;
5836 as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5
5841 with_libedit_preferred=no
5851 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
5852 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
5853 # UUID library. More than one of these might be present on a given platform,
5854 # so we make the user say which one she wants.
5859 # Check whether --with-uuid was given.
5860 if test "${with_uuid+set}" = set; then :
5864 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5867 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5877 if test x"$with_uuid" = x"" ; then
5883 # Check whether --with-ossp-uuid was given.
5884 if test "${with_ossp_uuid+set}" = set; then :
5885 withval=$with_ossp_uuid;
5894 as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5
5904 if test "$with_ossp_uuid" = yes ; then
5908 if test "$with_uuid" = bsd ; then
5910 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
5912 UUID_EXTRA_OBJS="md5.o sha1.o"
5913 elif test "$with_uuid" = e2fs ; then
5915 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
5917 UUID_EXTRA_OBJS="md5.o sha1.o"
5918 elif test "$with_uuid" = ossp ; then
5920 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
5923 elif test "$with_uuid" = no ; then
5926 as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
5938 # Check whether --with-libxml was given.
5939 if test "${with_libxml+set}" = set; then :
5940 withval=$with_libxml;
5944 $as_echo "#define USE_LIBXML 1" >>confdefs.h
5951 as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5
5962 if test "$with_libxml" = yes ; then
5963 for ac_prog in xml2-config
5965 # Extract the first word of "$ac_prog", so it can be a program name with args.
5966 set dummy $ac_prog; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_prog_XML2_CONFIG+:} false; then :
5970 $as_echo_n "(cached) " >&6
5972 if test -n "$XML2_CONFIG"; then
5973 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_XML2_CONFIG="$ac_prog"
5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5993 if test -n "$XML2_CONFIG"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
5995 $as_echo "$XML2_CONFIG" >&6; }
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
6002 test -n "$XML2_CONFIG" && break
6005 if test -n "$XML2_CONFIG"; then
6006 for pgac_option in `$XML2_CONFIG --cflags`; do
6007 case $pgac_option in
6008 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
6011 for pgac_option in `$XML2_CONFIG --libs`; do
6012 case $pgac_option in
6013 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
6027 # Check whether --with-libxslt was given.
6028 if test "${with_libxslt+set}" = set; then :
6029 withval=$with_libxslt;
6033 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
6040 as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5
6060 # Check whether --with-system-tzdata was given.
6061 if test "${with_system_tzdata+set}" = set; then :
6062 withval=$with_system_tzdata;
6065 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
6068 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
6086 # Check whether --with-zlib was given.
6087 if test "${with_zlib+set}" = set; then :
6097 as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5
6113 # Assume system is ELF if it predefines __ELF__ as 1,
6114 # otherwise believe host_os based default.
6116 freebsd1*|freebsd2*) elf=no;;
6117 freebsd3*|freebsd4*) elf=yes;;
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6122 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6123 if ${ac_cv_path_GREP+:} false; then :
6124 $as_echo_n "(cached) " >&6
6126 if test -z "$GREP"; then
6127 ac_path_GREP_found=false
6128 # Loop through the user's path and test for each of PROGNAME-LIST
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6133 test -z "$as_dir" && as_dir=.
6134 for ac_prog in grep ggrep; do
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6137 as_fn_executable_p "$ac_path_GREP" || continue
6138 # Check for GNU ac_path_GREP and select it if it is found.
6139 # Check for GNU $ac_path_GREP
6140 case `"$ac_path_GREP" --version 2>&1` in
6142 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6145 $as_echo_n 0123456789 >"conftest.in"
6148 cat "conftest.in" "conftest.in" >"conftest.tmp"
6149 mv "conftest.tmp" "conftest.in"
6150 cp "conftest.in" "conftest.nl"
6151 $as_echo 'GREP' >> "conftest.nl"
6152 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154 as_fn_arith $ac_count + 1 && ac_count=$as_val
6155 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6156 # Best one so far, save it but keep looking for a better one
6157 ac_cv_path_GREP="$ac_path_GREP"
6158 ac_path_GREP_max=$ac_count
6160 # 10*(2^10) chars as input seems more than enough
6161 test $ac_count -gt 10 && break
6163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6166 $ac_path_GREP_found && break 3
6171 if test -z "$ac_cv_path_GREP"; then
6172 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6175 ac_cv_path_GREP=$GREP
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6180 $as_echo "$ac_cv_path_GREP" >&6; }
6181 GREP="$ac_cv_path_GREP"
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6185 $as_echo_n "checking for egrep... " >&6; }
6186 if ${ac_cv_path_EGREP+:} false; then :
6187 $as_echo_n "(cached) " >&6
6189 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6190 then ac_cv_path_EGREP="$GREP -E"
6192 if test -z "$EGREP"; then
6193 ac_path_EGREP_found=false
6194 # Loop through the user's path and test for each of PROGNAME-LIST
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6199 test -z "$as_dir" && as_dir=.
6200 for ac_prog in egrep; do
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6203 as_fn_executable_p "$ac_path_EGREP" || continue
6204 # Check for GNU ac_path_EGREP and select it if it is found.
6205 # Check for GNU $ac_path_EGREP
6206 case `"$ac_path_EGREP" --version 2>&1` in
6208 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6211 $as_echo_n 0123456789 >"conftest.in"
6214 cat "conftest.in" "conftest.in" >"conftest.tmp"
6215 mv "conftest.tmp" "conftest.in"
6216 cp "conftest.in" "conftest.nl"
6217 $as_echo 'EGREP' >> "conftest.nl"
6218 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6220 as_fn_arith $ac_count + 1 && ac_count=$as_val
6221 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6222 # Best one so far, save it but keep looking for a better one
6223 ac_cv_path_EGREP="$ac_path_EGREP"
6224 ac_path_EGREP_max=$ac_count
6226 # 10*(2^10) chars as input seems more than enough
6227 test $ac_count -gt 10 && break
6229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6232 $ac_path_EGREP_found && break 3
6237 if test -z "$ac_cv_path_EGREP"; then
6238 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6241 ac_cv_path_EGREP=$EGREP
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6247 $as_echo "$ac_cv_path_EGREP" >&6; }
6248 EGREP="$ac_cv_path_EGREP"
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6259 $EGREP "yes" >/dev/null 2>&1; then :
6262 if test "X$elf" = "Xyes" ; then
6276 CPPFLAGS="$CPPFLAGS $INCLUDES"
6277 LDFLAGS="$LDFLAGS $LIBDIRS"
6283 # Check whether --with-gnu-ld was given.
6284 if test "${with_gnu_ld+set}" = set; then :
6285 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6291 if test "$GCC" = yes; then
6292 # Check if gcc -print-prog-name=ld gives a path.
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6294 $as_echo_n "checking for ld used by GCC... " >&6; }
6297 # gcc leaves a trailing carriage return which upsets mingw
6298 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6300 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6303 # Accept absolute paths.
6304 [\\/]* | [A-Za-z]:[\\/]*)
6305 re_direlt='/[^/][^/]*/\.\./'
6306 # Canonicalize the path of ld
6307 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6308 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6309 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6311 test -z "$LD" && LD="$ac_prog"
6314 # If it fails, then pretend we aren't using GCC.
6318 # If it is relative, then search for the first ld in PATH.
6322 elif test "$with_gnu_ld" = yes; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6324 $as_echo_n "checking for GNU ld... " >&6; }
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6327 $as_echo_n "checking for non-GNU ld... " >&6; }
6329 if ${ac_cv_path_LD+:} false; then :
6330 $as_echo_n "(cached) " >&6
6332 if test -z "$LD"; then
6333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6334 for ac_dir in $PATH; do
6335 test -z "$ac_dir" && ac_dir=.
6336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6337 ac_cv_path_LD="$ac_dir/$ac_prog"
6338 # Check to see if the program is GNU ld. I'd rather use --version,
6339 # but apparently some GNU ld's only accept -v.
6340 # Break only if it was the GNU/non-GNU ld that we prefer.
6341 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6342 test "$with_gnu_ld" != no && break
6344 test "$with_gnu_ld" != yes && break
6350 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6355 if test -n "$LD"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6357 $as_echo "$LD" >&6; }
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6362 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6364 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6365 if ${ac_cv_prog_gnu_ld+:} false; then :
6366 $as_echo_n "(cached) " >&6
6368 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6369 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6370 ac_cv_prog_gnu_ld=yes
6372 ac_cv_prog_gnu_ld=no
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6376 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6377 with_gnu_ld=$ac_cv_prog_gnu_ld
6382 if test -n "$ac_tool_prefix"; then
6383 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6384 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if ${ac_cv_prog_RANLIB+:} false; then :
6388 $as_echo_n "(cached) " >&6
6390 if test -n "$RANLIB"; then
6391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6400 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 RANLIB=$ac_cv_prog_RANLIB
6411 if test -n "$RANLIB"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6413 $as_echo "$RANLIB" >&6; }
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6421 if test -z "$ac_cv_prog_RANLIB"; then
6422 ac_ct_RANLIB=$RANLIB
6423 # Extract the first word of "ranlib", so it can be a program name with args.
6424 set dummy ranlib; ac_word=$2
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6428 $as_echo_n "(cached) " >&6
6430 if test -n "$ac_ct_RANLIB"; then
6431 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440 ac_cv_prog_ac_ct_RANLIB="ranlib"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6451 if test -n "$ac_ct_RANLIB"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6453 $as_echo "$ac_ct_RANLIB" >&6; }
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6459 if test "x$ac_ct_RANLIB" = x; then
6462 case $cross_compiling:$ac_tool_warned in
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466 ac_tool_warned=yes ;;
6468 RANLIB=$ac_ct_RANLIB
6471 RANLIB="$ac_cv_prog_RANLIB"
6475 if test -n "$ac_tool_prefix"; then
6476 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6477 set dummy ${ac_tool_prefix}strip; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_prog_STRIP+:} false; then :
6481 $as_echo_n "(cached) " >&6
6483 if test -n "$STRIP"; then
6484 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 STRIP=$ac_cv_prog_STRIP
6504 if test -n "$STRIP"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6506 $as_echo "$STRIP" >&6; }
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6514 if test -z "$ac_cv_prog_STRIP"; then
6516 # Extract the first word of "strip", so it can be a program name with args.
6517 set dummy strip; ac_word=$2
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519 $as_echo_n "checking for $ac_word... " >&6; }
6520 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6521 $as_echo_n "(cached) " >&6
6523 if test -n "$ac_ct_STRIP"; then
6524 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533 ac_cv_prog_ac_ct_STRIP="strip"
6534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6544 if test -n "$ac_ct_STRIP"; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6546 $as_echo "$ac_ct_STRIP" >&6; }
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; }
6552 if test "x$ac_ct_STRIP" = x; then
6555 case $cross_compiling:$ac_tool_warned in
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6559 ac_tool_warned=yes ;;
6564 STRIP="$ac_cv_prog_STRIP"
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
6569 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6570 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6571 STRIP_STATIC_LIB="$STRIP -x"
6572 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6574 $as_echo "yes" >&6; }
6579 STRIP_STATIC_LIB=$STRIP
6580 STRIP_SHARED_LIB=$STRIP
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6582 $as_echo "yes" >&6; }
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6595 if test -n "$ac_tool_prefix"; then
6596 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6597 set dummy ${ac_tool_prefix}ar; ac_word=$2
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if ${ac_cv_prog_AR+:} false; then :
6601 $as_echo_n "(cached) " >&6
6603 if test -n "$AR"; then
6604 ac_cv_prog_AR="$AR" # Let the user override the test.
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613 ac_cv_prog_AR="${ac_tool_prefix}ar"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 if test -n "$AR"; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6626 $as_echo "$AR" >&6; }
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6634 if test -z "$ac_cv_prog_AR"; then
6636 # Extract the first word of "ar", so it can be a program name with args.
6637 set dummy ar; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6641 $as_echo_n "(cached) " >&6
6643 if test -n "$ac_ct_AR"; then
6644 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653 ac_cv_prog_ac_ct_AR="ar"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6664 if test -n "$ac_ct_AR"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6666 $as_echo "$ac_ct_AR" >&6; }
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6672 if test "x$ac_ct_AR" = x; then
6675 case $cross_compiling:$ac_tool_warned in
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679 ac_tool_warned=yes ;;
6687 if test "$PORTNAME" = "win32"; then
6688 if test -n "$ac_tool_prefix"; then
6689 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if ${ac_cv_prog_DLLTOOL+:} false; then :
6694 $as_echo_n "(cached) " >&6
6696 if test -n "$DLLTOOL"; then
6697 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 DLLTOOL=$ac_cv_prog_DLLTOOL
6717 if test -n "$DLLTOOL"; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6719 $as_echo "$DLLTOOL" >&6; }
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6727 if test -z "$ac_cv_prog_DLLTOOL"; then
6728 ac_ct_DLLTOOL=$DLLTOOL
6729 # Extract the first word of "dlltool", so it can be a program name with args.
6730 set dummy dlltool; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6734 $as_echo_n "(cached) " >&6
6736 if test -n "$ac_ct_DLLTOOL"; then
6737 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6757 if test -n "$ac_ct_DLLTOOL"; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6759 $as_echo "$ac_ct_DLLTOOL" >&6; }
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6765 if test "x$ac_ct_DLLTOOL" = x; then
6768 case $cross_compiling:$ac_tool_warned in
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6774 DLLTOOL=$ac_ct_DLLTOOL
6777 DLLTOOL="$ac_cv_prog_DLLTOOL"
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if ${ac_cv_prog_DLLWRAP+:} false; then :
6786 $as_echo_n "(cached) " >&6
6788 if test -n "$DLLWRAP"; then
6789 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 DLLWRAP=$ac_cv_prog_DLLWRAP
6809 if test -n "$DLLWRAP"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6811 $as_echo "$DLLWRAP" >&6; }
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6819 if test -z "$ac_cv_prog_DLLWRAP"; then
6820 ac_ct_DLLWRAP=$DLLWRAP
6821 # Extract the first word of "dllwrap", so it can be a program name with args.
6822 set dummy dllwrap; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6826 $as_echo_n "(cached) " >&6
6828 if test -n "$ac_ct_DLLWRAP"; then
6829 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6849 if test -n "$ac_ct_DLLWRAP"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6851 $as_echo "$ac_ct_DLLWRAP" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6857 if test "x$ac_ct_DLLWRAP" = x; then
6860 case $cross_compiling:$ac_tool_warned in
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6866 DLLWRAP=$ac_ct_DLLWRAP
6869 DLLWRAP="$ac_cv_prog_DLLWRAP"
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}windres; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if ${ac_cv_prog_WINDRES+:} false; then :
6878 $as_echo_n "(cached) " >&6
6880 if test -n "$WINDRES"; then
6881 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 WINDRES=$ac_cv_prog_WINDRES
6901 if test -n "$WINDRES"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6903 $as_echo "$WINDRES" >&6; }
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6911 if test -z "$ac_cv_prog_WINDRES"; then
6912 ac_ct_WINDRES=$WINDRES
6913 # Extract the first word of "windres", so it can be a program name with args.
6914 set dummy windres; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
6918 $as_echo_n "(cached) " >&6
6920 if test -n "$ac_ct_WINDRES"; then
6921 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_ac_ct_WINDRES="windres"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6941 if test -n "$ac_ct_WINDRES"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6943 $as_echo "$ac_ct_WINDRES" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6949 if test "x$ac_ct_WINDRES" = x; then
6952 case $cross_compiling:$ac_tool_warned in
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6958 WINDRES=$ac_ct_WINDRES
6961 WINDRES="$ac_cv_prog_WINDRES"
6966 # Find a good install program. We prefer a C program (faster),
6967 # so one script is as good as another. But avoid the broken or
6968 # incompatible versions:
6969 # SysV /etc/install, /usr/sbin/install
6970 # SunOS /usr/etc/install
6971 # IRIX /sbin/install
6973 # AmigaOS /C/install, which installs bootblocks on floppy discs
6974 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6975 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6977 # OS/2's system install, which has a completely different semantic
6978 # ./install, which can be erroneously created by make from ./install.sh.
6979 # Reject install programs that cannot install multiple files.
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6981 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6982 if test -z "$INSTALL"; then
6983 if ${ac_cv_path_install+:} false; then :
6984 $as_echo_n "(cached) " >&6
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 test -z "$as_dir" && as_dir=.
6991 # Account for people who put trailing slashes in PATH elements.
6992 case $as_dir/ in #((
6993 ./ | .// | /[cC]/* | \
6994 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6995 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6998 # OSF1 and SCO ODT 3.0 have their own names for install.
6999 # Don't use installbsd from OSF since it installs stuff as root
7001 for ac_prog in ginstall scoinst install; do
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7004 if test $ac_prog = install &&
7005 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7006 # AIX install. It has an incompatible calling convention.
7008 elif test $ac_prog = install &&
7009 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7010 # program-specific install script used by HP pwplus--don't use.
7013 rm -rf conftest.one conftest.two conftest.dir
7014 echo one > conftest.one
7015 echo two > conftest.two
7017 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7018 test -s conftest.one && test -s conftest.two &&
7019 test -s conftest.dir/conftest.one &&
7020 test -s conftest.dir/conftest.two
7022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7035 rm -rf conftest.one conftest.two conftest.dir
7038 if test "${ac_cv_path_install+set}" = set; then
7039 INSTALL=$ac_cv_path_install
7041 # As a last resort, use the slow shell script. Don't cache a
7042 # value for INSTALL within a source directory, because that will
7043 # break other packages using the cache if that directory is
7044 # removed, or if the value is a relative name.
7045 INSTALL=$ac_install_sh
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7049 $as_echo "$INSTALL" >&6; }
7051 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7052 # It thinks the first close brace ends the variable substitution.
7053 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7055 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7057 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7059 # When Autoconf chooses install-sh as install program it tries to generate
7060 # a relative path to it in each makefile where it subsitutes it. This clashes
7061 # with our Makefile.global concept. This workaround helps.
7063 *install-sh*) install_bin='';;
7064 *) install_bin=$INSTALL;;
7068 # Extract the first word of "tar", so it can be a program name with args.
7069 set dummy tar; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_path_TAR+:} false; then :
7073 $as_echo_n "(cached) " >&6
7077 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 if test -n "$TAR"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7101 $as_echo "$TAR" >&6; }
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7109 $as_echo_n "checking whether ln -s works... " >&6; }
7111 if test "$LN_S" = "ln -s"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7116 $as_echo "no, using $LN_S" >&6; }
7119 for ac_prog in gawk mawk nawk awk
7121 # Extract the first word of "$ac_prog", so it can be a program name with args.
7122 set dummy $ac_prog; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_AWK+:} false; then :
7126 $as_echo_n "(cached) " >&6
7128 if test -n "$AWK"; then
7129 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_AWK="$ac_prog"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 if test -n "$AWK"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7151 $as_echo "$AWK" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7158 test -n "$AWK" && break
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7162 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7163 if test -z "$MKDIR_P"; then
7164 if ${ac_cv_path_mkdir+:} false; then :
7165 $as_echo_n "(cached) " >&6
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7171 test -z "$as_dir" && as_dir=.
7172 for ac_prog in mkdir gmkdir; do
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
7175 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7176 'mkdir (GNU coreutils) '* | \
7177 'mkdir (coreutils) '* | \
7178 'mkdir (fileutils) '4.1*)
7179 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7189 test -d ./--version && rmdir ./--version
7190 if test "${ac_cv_path_mkdir+set}" = set; then
7191 MKDIR_P="$ac_cv_path_mkdir -p"
7193 # As a last resort, use the slow shell script. Don't cache a
7194 # value for MKDIR_P within a source directory, because that will
7195 # break other packages using the cache if that directory is
7196 # removed, or if the value is a relative name.
7197 MKDIR_P="$ac_install_sh -d"
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7201 $as_echo "$MKDIR_P" >&6; }
7203 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7204 # a relative path to it in each makefile where it subsitutes it. This clashes
7205 # with our Makefile.global concept. This workaround helps.
7207 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7210 # Let the user override the search
7211 if test -z "$BISON"; then
7212 for ac_prog in bison
7214 # Extract the first word of "$ac_prog", so it can be a program name with args.
7215 set dummy $ac_prog; ac_word=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if ${ac_cv_path_BISON+:} false; then :
7219 $as_echo_n "(cached) " >&6
7223 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 BISON=$ac_cv_path_BISON
7245 if test -n "$BISON"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7247 $as_echo "$BISON" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7254 test -n "$BISON" && break
7259 if test "$BISON"; then
7260 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
7262 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7263 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7266 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7267 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7268 $as_echo "$as_me: WARNING:
7269 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7270 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7273 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
7274 # of the now preferred %name-prefix "base_yy", but the latter
7275 # doesn't work with Bison 2.3 or less. So for now we silence the
7276 # deprecation warnings.
7277 if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
7279 BISONFLAGS="$BISONFLAGS -Wno-deprecated"
7283 if test -z "$BISON"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7285 *** Without Bison you will not be able to build PostgreSQL from Git nor
7286 *** change any of the parser definition files. You can obtain Bison from
7287 *** a GNU mirror site. (If you are using the official distribution of
7288 *** PostgreSQL then you do not need to worry about this, because the Bison
7289 *** output is pre-generated.)" >&5
7290 $as_echo "$as_me: WARNING:
7291 *** Without Bison you will not be able to build PostgreSQL from Git nor
7292 *** change any of the parser definition files. You can obtain Bison from
7293 *** a GNU mirror site. (If you are using the official distribution of
7294 *** PostgreSQL then you do not need to worry about this, because the Bison
7295 *** output is pre-generated.)" >&2;}
7297 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
7301 $as_echo_n "checking for flex... " >&6; }
7302 if ${pgac_cv_path_flex+:} false; then :
7303 $as_echo_n "(cached) " >&6
7305 # Let the user override the test
7306 if test -n "$FLEX"; then
7307 pgac_cv_path_flex=$FLEX
7311 for pgac_dir in $PATH; do
7313 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7316 for pgac_prog in flex lex; do
7317 pgac_candidate="$pgac_dir/$pgac_prog"
7318 if test -f "$pgac_candidate" \
7319 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7321 echo '%%' > conftest.l
7322 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7323 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7324 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;}'
7326 pgac_cv_path_flex=$pgac_candidate
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7330 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7331 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7332 $as_echo "$as_me: WARNING:
7333 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7334 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7340 rm -f conftest.l lex.yy.c
7341 : ${pgac_cv_path_flex=no}
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
7346 $as_echo "$pgac_cv_path_flex" >&6; }
7347 if test x"$pgac_cv_path_flex" = x"no"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7349 *** Without Flex you will not be able to build PostgreSQL from Git nor
7350 *** change any of the scanner definition files. You can obtain Flex from
7351 *** a GNU mirror site. (If you are using the official distribution of
7352 *** PostgreSQL then you do not need to worry about this because the Flex
7353 *** output is pre-generated.)" >&5
7354 $as_echo "$as_me: WARNING:
7355 *** Without Flex you will not be able to build PostgreSQL from Git nor
7356 *** change any of the scanner definition files. You can obtain Flex from
7357 *** a GNU mirror site. (If you are using the official distribution of
7358 *** PostgreSQL then you do not need to worry about this because the Flex
7359 *** output is pre-generated.)" >&2;}
7363 FLEX=$pgac_cv_path_flex
7364 pgac_flex_version=`$FLEX --version 2>/dev/null`
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
7366 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7373 # Let the user override the search
7374 if test -z "$PERL"; then
7375 # Extract the first word of "perl", so it can be a program name with args.
7376 set dummy perl; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_path_PERL+:} false; then :
7380 $as_echo_n "(cached) " >&6
7384 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 PERL=$ac_cv_path_PERL
7406 if test -n "$PERL"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7408 $as_echo "$PERL" >&6; }
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7417 if test "$PERL"; then
7418 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'`
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
7420 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7421 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7422 $AWK '{ if ($1 == 5 && $2 >= 8) exit 1; else exit 0;}'
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7425 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7426 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7427 $as_echo "$as_me: WARNING:
7428 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7429 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7434 if test -z "$PERL"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7436 *** Without Perl you will not be able to build PostgreSQL from Git.
7437 *** You can obtain Perl from any CPAN mirror site.
7438 *** (If you are using the official distribution of PostgreSQL then you do not
7439 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7440 $as_echo "$as_me: WARNING:
7441 *** Without Perl you will not be able to build PostgreSQL from Git.
7442 *** You can obtain Perl from any CPAN mirror site.
7443 *** (If you are using the official distribution of PostgreSQL then you do not
7444 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7447 if test "$with_perl" = yes; then
7448 if test -z "$PERL"; then
7449 as_fn_error $? "Perl not found" "$LINENO" 5
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
7453 $as_echo_n "checking for Perl archlibexp... " >&6; }
7454 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7455 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
7457 $as_echo "$perl_archlibexp" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
7459 $as_echo_n "checking for Perl privlibexp... " >&6; }
7460 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7461 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
7463 $as_echo "$perl_privlibexp" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
7465 $as_echo_n "checking for Perl useshrplib... " >&6; }
7466 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7467 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
7469 $as_echo "$perl_useshrplib" >&6; }
7470 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true; then
7471 as_fn_error $? "cannot build PL/Perl because libperl is not a shared library
7472 You might have to rebuild your Perl installation. Refer to the
7473 documentation for details. Use --without-perl to disable building
7474 PL/Perl." "$LINENO" 5
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
7478 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7479 if test "$PORTNAME" = "win32" ; then
7480 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7481 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7483 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7484 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7485 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7487 if test -z "$perl_embed_ldflags" ; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 as_fn_error $? "could not determine flags for linking embedded Perl.
7491 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7492 installed." "$LINENO" 5
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
7495 $as_echo "$perl_embed_ldflags" >&6; }
7500 if test "$with_python" = yes; then
7501 # Extract the first word of "python", so it can be a program name with args.
7502 set dummy python; ac_word=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if ${ac_cv_path_PYTHON+:} false; then :
7506 $as_echo_n "(cached) " >&6
7510 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 PYTHON=$ac_cv_path_PYTHON
7532 if test -n "$PYTHON"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7534 $as_echo "$PYTHON" >&6; }
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7541 if test x"$PYTHON" = x""; then
7542 as_fn_error $? "Python not found" "$LINENO" 5
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
7547 $as_echo_n "checking for Python distutils module... " >&6; }
7548 if "${PYTHON}" -c 'import distutils' 2>&5
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7551 $as_echo "yes" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7555 as_fn_error $? "distutils module not found" "$LINENO" 5
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
7558 $as_echo_n "checking Python configuration directory... " >&6; }
7559 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7560 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7561 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
7563 $as_echo "$python_configdir" >&6; }
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
7566 $as_echo_n "checking Python include directories... " >&6; }
7567 python_includespec=`${PYTHON} -c "
7568 import distutils.sysconfig
7569 a = '-I' + distutils.sysconfig.get_python_inc(False)
7570 b = '-I' + distutils.sysconfig.get_python_inc(True)
7574 print(a + ' ' + b)"`
7575 if test "$PORTNAME" = win32 ; then
7576 python_includespec=`echo $python_includespec | sed 's,[\],/,g'`
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
7579 $as_echo "$python_includespec" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
7584 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7586 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7587 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7589 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
7590 ldlibrary=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
7591 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7593 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7596 # Otherwise, guess the base name of the shlib.
7597 # LDVERSION was added in Python 3.2, before that use VERSION,
7598 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
7599 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7600 if test x"${python_ldversion}" != x""; then
7601 ldlibrary="python${python_ldversion}"
7603 python_version_var=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('VERSION'))))"`
7604 if test x"${python_version_var}" != x""; then
7605 ldlibrary="python${python_version_var}"
7607 ldlibrary="python${python_version}"
7610 # Search for a likely-looking file.
7612 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib
7614 # We don't know the platform DLSUFFIX here, so check 'em all.
7615 for e in .so .dll .dylib .sl; do
7616 if test -e "$d/lib${ldlibrary}$e"; then
7623 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
7624 # (".so.n.n") as well. However, check this only after failing to find
7625 # ".so" anywhere, because yet other platforms (Debian) put the .so
7626 # symlink in a different directory from the underlying versioned shlib.
7627 if test "$found_shlib" != 1; then
7628 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib
7630 for f in "$d/lib${ldlibrary}.so."* ; do
7631 if test -e "$f"; then
7639 # As usual, Windows has its own ideas. Possible default library
7640 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
7641 # and the "lib" prefix might not be there.
7642 if test "$found_shlib" != 1 -a \( "$PORTNAME" = win32 -o "$PORTNAME" = cygwin \); then
7643 for d in "${python_libdir}" "${python_configdir}" c:/Windows/System32 /usr/bin
7645 for f in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
7646 if test -e "$f"; then
7655 if test "$found_shlib" != 1; then
7656 as_fn_error $? "could not find shared library for Python
7657 You might have to rebuild your Python installation. Refer to the
7658 documentation for details. Use --without-python to disable building
7659 PL/Python." "$LINENO" 5
7661 python_libspec="-L${python_libdir} -l${ldlibrary}"
7663 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
7666 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7672 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7673 # Extract the first word of "zic", so it can be a program name with args.
7674 set dummy zic; ac_word=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_path_ZIC+:} false; then :
7678 $as_echo_n "(cached) " >&6
7682 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 if test -n "$ZIC"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
7706 $as_echo "$ZIC" >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7713 if test -z "$ZIC"; then
7715 When cross-compiling, either use the option --with-system-tzdata to use
7716 existing time-zone data, or set the environment variable ZIC to a zic
7717 program to use during the build." "$LINENO" 5
7724 # For each platform, we need to know about any special compile and link
7725 # libraries, and whether the normal C function names are thread-safe.
7726 # See the comment at the top of src/port/thread.c for more information.
7727 # WIN32 doesn't need the pthread tests; it always uses threads
7729 # These tests are run before the library-tests, because linking with the
7730 # other libraries can pull in the pthread functions as a side-effect. We
7731 # want to use the -pthread or similar flags directly, and not rely on
7732 # the side-effects of linking with some other library.
7734 # note: We have to use AS_IF here rather than plain if. The AC_CHECK_HEADER
7735 # invocation below is the first one in the script, and autoconf generates
7736 # additional code for that, which must not be inside the if-block. AS_IF
7737 # knows how to do that.
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7739 $as_echo_n "checking for ANSI C header files... " >&6; }
7740 if ${ac_cv_header_stdc+:} false; then :
7741 $as_echo_n "(cached) " >&6
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7758 if ac_fn_c_try_compile "$LINENO"; then :
7759 ac_cv_header_stdc=yes
7761 ac_cv_header_stdc=no
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 if test $ac_cv_header_stdc = yes; then
7766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7773 $EGREP "memchr" >/dev/null 2>&1; then :
7776 ac_cv_header_stdc=no
7782 if test $ac_cv_header_stdc = yes; then
7783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7790 $EGREP "free" >/dev/null 2>&1; then :
7793 ac_cv_header_stdc=no
7799 if test $ac_cv_header_stdc = yes; then
7800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7801 if test "$cross_compiling" = yes; then :
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7808 #if ((' ' & 0x0FF) == 0x020)
7809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7812 # define ISLOWER(c) \
7813 (('a' <= (c) && (c) <= 'i') \
7814 || ('j' <= (c) && (c) <= 'r') \
7815 || ('s' <= (c) && (c) <= 'z'))
7816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7824 for (i = 0; i < 256; i++)
7825 if (XOR (islower (i), ISLOWER (i))
7826 || toupper (i) != TOUPPER (i))
7831 if ac_fn_c_try_run "$LINENO"; then :
7834 ac_cv_header_stdc=no
7836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7837 conftest.$ac_objext conftest.beam conftest.$ac_ext
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7843 $as_echo "$ac_cv_header_stdc" >&6; }
7844 if test $ac_cv_header_stdc = yes; then
7846 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7850 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7851 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7852 inttypes.h stdint.h unistd.h
7854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7855 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7857 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7858 cat >>confdefs.h <<_ACEOF
7859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7867 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
7873 ac_cpp='$CPP $CPPFLAGS'
7874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7880 # We used to check for pthread.h first, but this fails if pthread.h
7881 # requires special compiler flags (e.g. on Tru64 or Sequent).
7882 # It gets checked for in the link test anyway.
7884 # First of all, check if the user has set any of the PTHREAD_LIBS,
7885 # etcetera environment variables, and if threads linking works using
7887 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7888 save_CFLAGS="$CFLAGS"
7889 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7891 LIBS="$PTHREAD_LIBS $LIBS"
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7893 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7897 /* Override any GCC internal prototype to avoid an error.
7898 Use char because int might match the return type of a GCC
7899 builtin and then its argument prototype would still apply. */
7903 char pthread_join ();
7907 return pthread_join ();
7912 if ac_fn_c_try_link "$LINENO"; then :
7915 rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7918 $as_echo "$ax_pthread_ok" >&6; }
7919 if test x"$ax_pthread_ok" = xno; then
7924 CFLAGS="$save_CFLAGS"
7927 # We must check for the threads library under a number of different
7928 # names; the ordering is very important because some systems
7929 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7930 # libraries is broken (non-POSIX).
7932 # Create a list of thread flags to try. Items starting with a "-" are
7933 # C compiler flags, and other items are library names, except for "none"
7934 # which indicates that we try without any flags at all, and "pthread-config"
7935 # which is a program returning the flags for the Pth emulation library.
7937 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
7939 # The ordering *is* (sometimes) important. Some notes on the
7940 # individual items follow:
7942 # pthreads: AIX (must check this before -lpthread)
7943 # none: in case threads are in libc; should be tried before -Kthread and
7944 # other compiler flags to prevent continual compiler warnings
7945 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7946 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7947 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7948 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7949 # -pthreads: Solaris/gcc
7950 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7951 # doesn't hurt to check since this sometimes defines pthreads and
7952 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7953 # is present but should not be used directly)
7954 # -mthreads: Mingw32/gcc, Lynx/gcc
7955 # pthread: Linux, etcetera
7956 # --thread-safe: KAI C++
7957 # pthread-config: use pthread-config program (for GNU Pth library)
7963 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7964 # multi-threading and also sets -lpthread."
7966 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7971 # IBM z/OS requires a feature-test macro to be defined in order to
7972 # enable POSIX threads at all, so give the user a hint if this is
7973 # not set. (We don't define these ourselves, as they can affect
7974 # other portions of the system API in unpredictable ways.)
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7979 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7980 AX_PTHREAD_ZOS_MISSING
7984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7985 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7987 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7995 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
7996 # check that first. On some older versions, libc contains stubbed
7997 # (non-functional) versions of the pthreads routines, so link-based
7998 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7999 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8000 # a function called by this macro, so we could check for that, but
8001 # who knows whether they'll stub that too in a future libc.) So
8002 # we'll look for -pthreads and -lpthread shortly thereafter.
8004 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
8008 # Older versions of Clang only give a warning instead of an error for an
8009 # unrecognized option, unless we specify -Werror. (We throw in some extra
8010 # Clang warning flags for good measure.)
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
8013 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
8014 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
8015 $as_echo_n "(cached) " >&6
8017 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
8018 save_CFLAGS="$CFLAGS"
8019 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
8020 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8032 if ac_fn_c_try_compile "$LINENO"; then :
8033 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
8035 ax_cv_PTHREAD_REJECT_UNKNOWN=no
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 CFLAGS="$save_CFLAGS"
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
8042 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
8043 ax_pthread_extra_flags=
8044 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
8045 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
8048 if test x"$ax_pthread_ok" = xno; then
8049 for flag in $ax_pthread_flags; do
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8054 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8059 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8060 PTHREAD_CFLAGS="-mt"
8061 PTHREAD_LIBS="-lpthread"
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8066 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8067 PTHREAD_CFLAGS="$flag"
8071 # Extract the first word of "pthread-config", so it can be a program name with args.
8072 set dummy pthread-config; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8076 $as_echo_n "(cached) " >&6
8078 if test -n "$ax_pthread_config"; then
8079 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_ax_pthread_config="yes"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8099 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8100 if test -n "$ax_pthread_config"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8102 $as_echo "$ax_pthread_config" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8109 if test x"$ax_pthread_config" = xno; then continue; fi
8110 PTHREAD_CFLAGS="`pthread-config --cflags`"
8111 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8116 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8117 PTHREAD_LIBS="-l$flag"
8122 save_CFLAGS="$CFLAGS"
8123 LIBS="$PTHREAD_LIBS $LIBS"
8124 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
8126 # Check for various functions. We must include pthread.h,
8127 # since some functions may be macros. (On the Sequent, we
8128 # need a special flag -Kthread to make this header compile.)
8129 # We check for pthread_join because it is in -lpthread on IRIX
8130 # while pthread_create is in libc. We check for pthread_attr_init
8131 # due to DEC craziness with -lpthreads. We check for
8132 # pthread_cleanup_push because it is one of the few pthread
8133 # functions on Solaris that doesn't have a non-functional libc stub.
8134 # We try pthread_create on general principles.
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8137 #include <pthread.h>
8138 static void routine(void *a) { a = 0; }
8139 static void *start_routine(void *a) { return a; }
8143 pthread_t th; pthread_attr_t attr;
8144 pthread_create(&th, 0, start_routine, 0);
8145 pthread_join(th, 0);
8146 pthread_attr_init(&attr);
8147 pthread_cleanup_push(routine, 0);
8148 pthread_cleanup_pop(0) /* ; */
8153 if ac_fn_c_try_link "$LINENO"; then :
8156 rm -f core conftest.err conftest.$ac_objext \
8157 conftest$ac_exeext conftest.$ac_ext
8160 CFLAGS="$save_CFLAGS"
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8163 $as_echo "$ax_pthread_ok" >&6; }
8164 if test "x$ax_pthread_ok" = xyes; then
8173 # Various other checks:
8174 if test "x$ax_pthread_ok" = xyes; then
8176 LIBS="$PTHREAD_LIBS $LIBS"
8177 save_CFLAGS="$CFLAGS"
8178 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8180 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8182 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8183 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
8184 $as_echo_n "(cached) " >&6
8186 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8187 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8190 #include <pthread.h>
8194 int attr = $attr; return attr /* ; */
8199 if ac_fn_c_try_link "$LINENO"; then :
8200 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
8202 rm -f core conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8208 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8209 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
8210 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
8212 cat >>confdefs.h <<_ACEOF
8213 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8219 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8220 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
8221 $as_echo_n "(cached) " >&6
8223 ax_cv_PTHREAD_SPECIAL_FLAGS=no
8224 ax_pthread_special_flags_added=no
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8228 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
8229 AX_PTHREAD_NEED_SPECIAL_FLAG
8233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8234 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
8237 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
8239 darwin* | hpux* | osf* | solaris*)
8240 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8250 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8251 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8252 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8253 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8254 ax_pthread_special_flags_added=yes
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8258 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8259 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8260 $as_echo_n "(cached) " >&6
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8264 #include <pthread.h>
8268 int i = PTHREAD_PRIO_INHERIT;
8273 if ac_fn_c_try_link "$LINENO"; then :
8274 ax_cv_PTHREAD_PRIO_INHERIT=yes
8276 ax_cv_PTHREAD_PRIO_INHERIT=no
8278 rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8283 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8284 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8286 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8291 CFLAGS="$save_CFLAGS"
8293 # More AIX lossage: compile with *_r variant
8294 if test "x$GCC" != xyes; then
8298 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8299 #handle absolute path differently from PATH based program lookup
8302 if as_fn_executable_p ${CC}_r; then :
8303 PTHREAD_CC="${CC}_r"
8306 for ac_prog in ${CC}_r
8308 # Extract the first word of "$ac_prog", so it can be a program name with args.
8309 set dummy $ac_prog; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8313 $as_echo_n "(cached) " >&6
8315 if test -n "$PTHREAD_CC"; then
8316 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325 ac_cv_prog_PTHREAD_CC="$ac_prog"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8336 if test -n "$PTHREAD_CC"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8338 $as_echo "$PTHREAD_CC" >&6; }
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8345 test -n "$PTHREAD_CC" && break
8347 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8358 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8364 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8365 if test x"$ax_pthread_ok" = xyes; then
8367 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8375 ac_cpp='$CPP $CPPFLAGS'
8376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8382 # Some platforms use these, so just define them. They can't hurt if they
8383 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
8384 # enables 5-arg getpwuid_r, among other things.
8385 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
8387 # Check for *_r functions
8390 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8391 LIBS="$LIBS $PTHREAD_LIBS"
8393 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8394 if test "x$ac_cv_header_pthread_h" = xyes; then :
8398 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
8403 for ac_func in strerror_r getpwuid_r gethostbyname_r
8405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8406 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8407 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8408 cat >>confdefs.h <<_ACEOF
8409 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8416 # Do test here with the proper thread flags
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
8418 $as_echo_n "checking whether strerror_r returns int... " >&6; }
8419 if ${pgac_cv_func_strerror_r_int+:} false; then :
8420 $as_echo_n "(cached) " >&6
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8429 int strerror_r(int, char *, size_t);
8431 /* Older AIX has 'int' for the third argument so we don't test the args. */
8438 if ac_fn_c_try_compile "$LINENO"; then :
8439 pgac_cv_func_strerror_r_int=yes
8441 pgac_cv_func_strerror_r_int=no
8443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
8446 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
8447 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
8449 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
8460 # do not use values from template file
8473 ## Most libraries are included only if they demonstrably provide a function
8474 ## we need, but libm is an exception: always include it, because there are
8475 ## too many compilers that play cute optimization games that will break
8476 ## probes for standard functions such as pow().
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8480 $as_echo_n "checking for main in -lm... " >&6; }
8481 if ${ac_cv_lib_m_main+:} false; then :
8482 $as_echo_n "(cached) " >&6
8484 ac_check_lib_save_LIBS=$LIBS
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8498 if ac_fn_c_try_link "$LINENO"; then :
8499 ac_cv_lib_m_main=yes
8503 rm -f core conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
8505 LIBS=$ac_check_lib_save_LIBS
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8508 $as_echo "$ac_cv_lib_m_main" >&6; }
8509 if test "x$ac_cv_lib_m_main" = xyes; then :
8510 cat >>confdefs.h <<_ACEOF
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
8519 $as_echo_n "checking for library containing setproctitle... " >&6; }
8520 if ${ac_cv_search_setproctitle+:} false; then :
8521 $as_echo_n "(cached) " >&6
8523 ac_func_search_save_LIBS=$LIBS
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8527 /* Override any GCC internal prototype to avoid an error.
8528 Use char because int might match the return type of a GCC
8529 builtin and then its argument prototype would still apply. */
8533 char setproctitle ();
8537 return setproctitle ();
8542 for ac_lib in '' util; do
8543 if test -z "$ac_lib"; then
8544 ac_res="none required"
8547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8549 if ac_fn_c_try_link "$LINENO"; then :
8550 ac_cv_search_setproctitle=$ac_res
8552 rm -f core conftest.err conftest.$ac_objext \
8554 if ${ac_cv_search_setproctitle+:} false; then :
8558 if ${ac_cv_search_setproctitle+:} false; then :
8561 ac_cv_search_setproctitle=no
8564 LIBS=$ac_func_search_save_LIBS
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
8567 $as_echo "$ac_cv_search_setproctitle" >&6; }
8568 ac_res=$ac_cv_search_setproctitle
8569 if test "$ac_res" != no; then :
8570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8575 $as_echo_n "checking for library containing dlopen... " >&6; }
8576 if ${ac_cv_search_dlopen+:} false; then :
8577 $as_echo_n "(cached) " >&6
8579 ac_func_search_save_LIBS=$LIBS
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8583 /* Override any GCC internal prototype to avoid an error.
8584 Use char because int might match the return type of a GCC
8585 builtin and then its argument prototype would still apply. */
8598 for ac_lib in '' dl; do
8599 if test -z "$ac_lib"; then
8600 ac_res="none required"
8603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8605 if ac_fn_c_try_link "$LINENO"; then :
8606 ac_cv_search_dlopen=$ac_res
8608 rm -f core conftest.err conftest.$ac_objext \
8610 if ${ac_cv_search_dlopen+:} false; then :
8614 if ${ac_cv_search_dlopen+:} false; then :
8617 ac_cv_search_dlopen=no
8620 LIBS=$ac_func_search_save_LIBS
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8623 $as_echo "$ac_cv_search_dlopen" >&6; }
8624 ac_res=$ac_cv_search_dlopen
8625 if test "$ac_res" != no; then :
8626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
8631 $as_echo_n "checking for library containing socket... " >&6; }
8632 if ${ac_cv_search_socket+:} false; then :
8633 $as_echo_n "(cached) " >&6
8635 ac_func_search_save_LIBS=$LIBS
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8639 /* Override any GCC internal prototype to avoid an error.
8640 Use char because int might match the return type of a GCC
8641 builtin and then its argument prototype would still apply. */
8654 for ac_lib in '' socket ws2_32; do
8655 if test -z "$ac_lib"; then
8656 ac_res="none required"
8659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8661 if ac_fn_c_try_link "$LINENO"; then :
8662 ac_cv_search_socket=$ac_res
8664 rm -f core conftest.err conftest.$ac_objext \
8666 if ${ac_cv_search_socket+:} false; then :
8670 if ${ac_cv_search_socket+:} false; then :
8673 ac_cv_search_socket=no
8676 LIBS=$ac_func_search_save_LIBS
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
8679 $as_echo "$ac_cv_search_socket" >&6; }
8680 ac_res=$ac_cv_search_socket
8681 if test "$ac_res" != no; then :
8682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
8687 $as_echo_n "checking for library containing shl_load... " >&6; }
8688 if ${ac_cv_search_shl_load+:} false; then :
8689 $as_echo_n "(cached) " >&6
8691 ac_func_search_save_LIBS=$LIBS
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8695 /* Override any GCC internal prototype to avoid an error.
8696 Use char because int might match the return type of a GCC
8697 builtin and then its argument prototype would still apply. */
8710 for ac_lib in '' dld; do
8711 if test -z "$ac_lib"; then
8712 ac_res="none required"
8715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8717 if ac_fn_c_try_link "$LINENO"; then :
8718 ac_cv_search_shl_load=$ac_res
8720 rm -f core conftest.err conftest.$ac_objext \
8722 if ${ac_cv_search_shl_load+:} false; then :
8726 if ${ac_cv_search_shl_load+:} false; then :
8729 ac_cv_search_shl_load=no
8732 LIBS=$ac_func_search_save_LIBS
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8735 $as_echo "$ac_cv_search_shl_load" >&6; }
8736 ac_res=$ac_cv_search_shl_load
8737 if test "$ac_res" != no; then :
8738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8742 # We only use libld in port/dynloader/aix.c
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldopen" >&5
8746 $as_echo_n "checking for library containing ldopen... " >&6; }
8747 if ${ac_cv_search_ldopen+:} false; then :
8748 $as_echo_n "(cached) " >&6
8750 ac_func_search_save_LIBS=$LIBS
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8754 /* Override any GCC internal prototype to avoid an error.
8755 Use char because int might match the return type of a GCC
8756 builtin and then its argument prototype would still apply. */
8769 for ac_lib in '' ld; do
8770 if test -z "$ac_lib"; then
8771 ac_res="none required"
8774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8776 if ac_fn_c_try_link "$LINENO"; then :
8777 ac_cv_search_ldopen=$ac_res
8779 rm -f core conftest.err conftest.$ac_objext \
8781 if ${ac_cv_search_ldopen+:} false; then :
8785 if ${ac_cv_search_ldopen+:} false; then :
8788 ac_cv_search_ldopen=no
8791 LIBS=$ac_func_search_save_LIBS
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldopen" >&5
8794 $as_echo "$ac_cv_search_ldopen" >&6; }
8795 ac_res=$ac_cv_search_ldopen
8796 if test "$ac_res" != no; then :
8797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
8804 $as_echo_n "checking for library containing getopt_long... " >&6; }
8805 if ${ac_cv_search_getopt_long+:} false; then :
8806 $as_echo_n "(cached) " >&6
8808 ac_func_search_save_LIBS=$LIBS
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8812 /* Override any GCC internal prototype to avoid an error.
8813 Use char because int might match the return type of a GCC
8814 builtin and then its argument prototype would still apply. */
8818 char getopt_long ();
8822 return getopt_long ();
8827 for ac_lib in '' getopt gnugetopt; do
8828 if test -z "$ac_lib"; then
8829 ac_res="none required"
8832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8834 if ac_fn_c_try_link "$LINENO"; then :
8835 ac_cv_search_getopt_long=$ac_res
8837 rm -f core conftest.err conftest.$ac_objext \
8839 if ${ac_cv_search_getopt_long+:} false; then :
8843 if ${ac_cv_search_getopt_long+:} false; then :
8846 ac_cv_search_getopt_long=no
8849 LIBS=$ac_func_search_save_LIBS
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
8852 $as_echo "$ac_cv_search_getopt_long" >&6; }
8853 ac_res=$ac_cv_search_getopt_long
8854 if test "$ac_res" != no; then :
8855 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
8860 $as_echo_n "checking for library containing crypt... " >&6; }
8861 if ${ac_cv_search_crypt+:} false; then :
8862 $as_echo_n "(cached) " >&6
8864 ac_func_search_save_LIBS=$LIBS
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8868 /* Override any GCC internal prototype to avoid an error.
8869 Use char because int might match the return type of a GCC
8870 builtin and then its argument prototype would still apply. */
8883 for ac_lib in '' crypt; do
8884 if test -z "$ac_lib"; then
8885 ac_res="none required"
8888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8890 if ac_fn_c_try_link "$LINENO"; then :
8891 ac_cv_search_crypt=$ac_res
8893 rm -f core conftest.err conftest.$ac_objext \
8895 if ${ac_cv_search_crypt+:} false; then :
8899 if ${ac_cv_search_crypt+:} false; then :
8902 ac_cv_search_crypt=no
8905 LIBS=$ac_func_search_save_LIBS
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
8908 $as_echo "$ac_cv_search_crypt" >&6; }
8909 ac_res=$ac_cv_search_crypt
8910 if test "$ac_res" != no; then :
8911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
8916 $as_echo_n "checking for library containing shm_open... " >&6; }
8917 if ${ac_cv_search_shm_open+:} false; then :
8918 $as_echo_n "(cached) " >&6
8920 ac_func_search_save_LIBS=$LIBS
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8924 /* Override any GCC internal prototype to avoid an error.
8925 Use char because int might match the return type of a GCC
8926 builtin and then its argument prototype would still apply. */
8939 for ac_lib in '' rt; do
8940 if test -z "$ac_lib"; then
8941 ac_res="none required"
8944 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8946 if ac_fn_c_try_link "$LINENO"; then :
8947 ac_cv_search_shm_open=$ac_res
8949 rm -f core conftest.err conftest.$ac_objext \
8951 if ${ac_cv_search_shm_open+:} false; then :
8955 if ${ac_cv_search_shm_open+:} false; then :
8958 ac_cv_search_shm_open=no
8961 LIBS=$ac_func_search_save_LIBS
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
8964 $as_echo "$ac_cv_search_shm_open" >&6; }
8965 ac_res=$ac_cv_search_shm_open
8966 if test "$ac_res" != no; then :
8967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
8972 $as_echo_n "checking for library containing shm_unlink... " >&6; }
8973 if ${ac_cv_search_shm_unlink+:} false; then :
8974 $as_echo_n "(cached) " >&6
8976 ac_func_search_save_LIBS=$LIBS
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h. */
8980 /* Override any GCC internal prototype to avoid an error.
8981 Use char because int might match the return type of a GCC
8982 builtin and then its argument prototype would still apply. */
8990 return shm_unlink ();
8995 for ac_lib in '' rt; do
8996 if test -z "$ac_lib"; then
8997 ac_res="none required"
9000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9002 if ac_fn_c_try_link "$LINENO"; then :
9003 ac_cv_search_shm_unlink=$ac_res
9005 rm -f core conftest.err conftest.$ac_objext \
9007 if ${ac_cv_search_shm_unlink+:} false; then :
9011 if ${ac_cv_search_shm_unlink+:} false; then :
9014 ac_cv_search_shm_unlink=no
9017 LIBS=$ac_func_search_save_LIBS
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
9020 $as_echo "$ac_cv_search_shm_unlink" >&6; }
9021 ac_res=$ac_cv_search_shm_unlink
9022 if test "$ac_res" != no; then :
9023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
9029 $as_echo_n "checking for library containing fdatasync... " >&6; }
9030 if ${ac_cv_search_fdatasync+:} false; then :
9031 $as_echo_n "(cached) " >&6
9033 ac_func_search_save_LIBS=$LIBS
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9037 /* Override any GCC internal prototype to avoid an error.
9038 Use char because int might match the return type of a GCC
9039 builtin and then its argument prototype would still apply. */
9047 return fdatasync ();
9052 for ac_lib in '' rt posix4; do
9053 if test -z "$ac_lib"; then
9054 ac_res="none required"
9057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9059 if ac_fn_c_try_link "$LINENO"; then :
9060 ac_cv_search_fdatasync=$ac_res
9062 rm -f core conftest.err conftest.$ac_objext \
9064 if ${ac_cv_search_fdatasync+:} false; then :
9068 if ${ac_cv_search_fdatasync+:} false; then :
9071 ac_cv_search_fdatasync=no
9074 LIBS=$ac_func_search_save_LIBS
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
9077 $as_echo "$ac_cv_search_fdatasync" >&6; }
9078 ac_res=$ac_cv_search_fdatasync
9079 if test "$ac_res" != no; then :
9080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9084 # Required for thread_test.c on Solaris
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
9086 $as_echo_n "checking for library containing sched_yield... " >&6; }
9087 if ${ac_cv_search_sched_yield+:} false; then :
9088 $as_echo_n "(cached) " >&6
9090 ac_func_search_save_LIBS=$LIBS
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9094 /* Override any GCC internal prototype to avoid an error.
9095 Use char because int might match the return type of a GCC
9096 builtin and then its argument prototype would still apply. */
9100 char sched_yield ();
9104 return sched_yield ();
9109 for ac_lib in '' rt; do
9110 if test -z "$ac_lib"; then
9111 ac_res="none required"
9114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9116 if ac_fn_c_try_link "$LINENO"; then :
9117 ac_cv_search_sched_yield=$ac_res
9119 rm -f core conftest.err conftest.$ac_objext \
9121 if ${ac_cv_search_sched_yield+:} false; then :
9125 if ${ac_cv_search_sched_yield+:} false; then :
9128 ac_cv_search_sched_yield=no
9131 LIBS=$ac_func_search_save_LIBS
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
9134 $as_echo "$ac_cv_search_sched_yield" >&6; }
9135 ac_res=$ac_cv_search_sched_yield
9136 if test "$ac_res" != no; then :
9137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9141 # Required for thread_test.c on Solaris 2.5:
9142 # Other ports use it too (HP-UX) so test unconditionally
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
9144 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
9145 if ${ac_cv_search_gethostbyname_r+:} false; then :
9146 $as_echo_n "(cached) " >&6
9148 ac_func_search_save_LIBS=$LIBS
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9152 /* Override any GCC internal prototype to avoid an error.
9153 Use char because int might match the return type of a GCC
9154 builtin and then its argument prototype would still apply. */
9158 char gethostbyname_r ();
9162 return gethostbyname_r ();
9167 for ac_lib in '' nsl; do
9168 if test -z "$ac_lib"; then
9169 ac_res="none required"
9172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9174 if ac_fn_c_try_link "$LINENO"; then :
9175 ac_cv_search_gethostbyname_r=$ac_res
9177 rm -f core conftest.err conftest.$ac_objext \
9179 if ${ac_cv_search_gethostbyname_r+:} false; then :
9183 if ${ac_cv_search_gethostbyname_r+:} false; then :
9186 ac_cv_search_gethostbyname_r=no
9189 LIBS=$ac_func_search_save_LIBS
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
9192 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
9193 ac_res=$ac_cv_search_gethostbyname_r
9194 if test "$ac_res" != no; then :
9195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
9201 $as_echo_n "checking for library containing shmget... " >&6; }
9202 if ${ac_cv_search_shmget+:} false; then :
9203 $as_echo_n "(cached) " >&6
9205 ac_func_search_save_LIBS=$LIBS
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9209 /* Override any GCC internal prototype to avoid an error.
9210 Use char because int might match the return type of a GCC
9211 builtin and then its argument prototype would still apply. */
9224 for ac_lib in '' cygipc; do
9225 if test -z "$ac_lib"; then
9226 ac_res="none required"
9229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9231 if ac_fn_c_try_link "$LINENO"; then :
9232 ac_cv_search_shmget=$ac_res
9234 rm -f core conftest.err conftest.$ac_objext \
9236 if ${ac_cv_search_shmget+:} false; then :
9240 if ${ac_cv_search_shmget+:} false; then :
9243 ac_cv_search_shmget=no
9246 LIBS=$ac_func_search_save_LIBS
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
9249 $as_echo "$ac_cv_search_shmget" >&6; }
9250 ac_res=$ac_cv_search_shmget
9251 if test "$ac_res" != no; then :
9252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9257 if test "$with_readline" = yes; then
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
9261 $as_echo_n "checking for library containing readline... " >&6; }
9262 if ${pgac_cv_check_readline+:} false; then :
9263 $as_echo_n "(cached) " >&6
9265 pgac_cv_check_readline=no
9266 pgac_save_LIBS=$LIBS
9267 if test x"$with_libedit_preferred" != x"yes"
9268 then READLINE_ORDER="-lreadline -ledit"
9269 else READLINE_ORDER="-ledit -lreadline"
9271 for pgac_rllib in $READLINE_ORDER ; do
9272 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
9273 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9277 /* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
9292 if ac_fn_c_try_link "$LINENO"; then :
9294 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
9295 # recognize dependent libraries; assume curses is needed if we didn't
9296 # find any dependency.
9298 netbsd* | openbsd* | irix*)
9299 if test x"$pgac_lib" = x"" ; then
9300 pgac_lib=" -lcurses"
9304 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
9308 rm -f core conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
9311 if test "$pgac_cv_check_readline" != no ; then
9315 LIBS=$pgac_save_LIBS
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
9319 $as_echo "$pgac_cv_check_readline" >&6; }
9320 if test "$pgac_cv_check_readline" != no ; then
9321 LIBS="$pgac_cv_check_readline $LIBS"
9323 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
9328 if test x"$pgac_cv_check_readline" = x"no"; then
9329 as_fn_error $? "readline library not found
9330 If you have readline already installed, see config.log for details on the
9331 failure. It is possible the compiler isn't looking in the proper directory.
9332 Use --without-readline to disable readline support." "$LINENO" 5
9336 if test "$with_zlib" = yes; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
9338 $as_echo_n "checking for inflate in -lz... " >&6; }
9339 if ${ac_cv_lib_z_inflate+:} false; then :
9340 $as_echo_n "(cached) " >&6
9342 ac_check_lib_save_LIBS=$LIBS
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9347 /* Override any GCC internal prototype to avoid an error.
9348 Use char because int might match the return type of a GCC
9349 builtin and then its argument prototype would still apply. */
9362 if ac_fn_c_try_link "$LINENO"; then :
9363 ac_cv_lib_z_inflate=yes
9365 ac_cv_lib_z_inflate=no
9367 rm -f core conftest.err conftest.$ac_objext \
9368 conftest$ac_exeext conftest.$ac_ext
9369 LIBS=$ac_check_lib_save_LIBS
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
9372 $as_echo "$ac_cv_lib_z_inflate" >&6; }
9373 if test "x$ac_cv_lib_z_inflate" = xyes; then :
9374 cat >>confdefs.h <<_ACEOF
9381 as_fn_error $? "zlib library not found
9382 If you have zlib already installed, see config.log for details on the
9383 failure. It is possible the compiler isn't looking in the proper directory.
9384 Use --without-zlib to disable zlib support." "$LINENO" 5
9389 if test "$enable_spinlocks" = yes; then
9391 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9395 *** Not using spinlocks will cause poor performance." >&5
9396 $as_echo "$as_me: WARNING:
9397 *** Not using spinlocks will cause poor performance." >&2;}
9400 if test "$enable_atomics" = yes; then
9402 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9406 *** Not using atomic operations will cause poor performance." >&5
9407 $as_echo "$as_me: WARNING:
9408 *** Not using atomic operations will cause poor performance." >&2;}
9411 if test "$with_gssapi" = yes ; then
9412 if test "$PORTNAME" != "win32"; then
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
9414 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
9415 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9416 $as_echo_n "(cached) " >&6
9418 ac_func_search_save_LIBS=$LIBS
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9422 /* Override any GCC internal prototype to avoid an error.
9423 Use char because int might match the return type of a GCC
9424 builtin and then its argument prototype would still apply. */
9428 char gss_init_sec_context ();
9432 return gss_init_sec_context ();
9437 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
9438 if test -z "$ac_lib"; then
9439 ac_res="none required"
9442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9444 if ac_fn_c_try_link "$LINENO"; then :
9445 ac_cv_search_gss_init_sec_context=$ac_res
9447 rm -f core conftest.err conftest.$ac_objext \
9449 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9453 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9456 ac_cv_search_gss_init_sec_context=no
9459 LIBS=$ac_func_search_save_LIBS
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
9462 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
9463 ac_res=$ac_cv_search_gss_init_sec_context
9464 if test "$ac_res" != no; then :
9465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9468 as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
9472 LIBS="$LIBS -lgssapi32"
9476 if test "$with_openssl" = yes ; then
9477 if test "$PORTNAME" != "win32"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9479 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9480 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
9481 $as_echo_n "(cached) " >&6
9483 ac_check_lib_save_LIBS=$LIBS
9484 LIBS="-lcrypto $LIBS"
9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h. */
9488 /* Override any GCC internal prototype to avoid an error.
9489 Use char because int might match the return type of a GCC
9490 builtin and then its argument prototype would still apply. */
9494 char CRYPTO_new_ex_data ();
9498 return CRYPTO_new_ex_data ();
9503 if ac_fn_c_try_link "$LINENO"; then :
9504 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9506 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9508 rm -f core conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9510 LIBS=$ac_check_lib_save_LIBS
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9513 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9514 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
9515 cat >>confdefs.h <<_ACEOF
9516 #define HAVE_LIBCRYPTO 1
9519 LIBS="-lcrypto $LIBS"
9522 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
9526 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
9527 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
9528 $as_echo_n "(cached) " >&6
9530 ac_check_lib_save_LIBS=$LIBS
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9535 /* Override any GCC internal prototype to avoid an error.
9536 Use char because int might match the return type of a GCC
9537 builtin and then its argument prototype would still apply. */
9550 if ac_fn_c_try_link "$LINENO"; then :
9551 ac_cv_lib_ssl_SSL_new=yes
9553 ac_cv_lib_ssl_SSL_new=no
9555 rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557 LIBS=$ac_check_lib_save_LIBS
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
9560 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
9561 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
9562 cat >>confdefs.h <<_ACEOF
9563 #define HAVE_LIBSSL 1
9569 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
9574 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9575 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
9576 $as_echo_n "(cached) " >&6
9578 ac_func_search_save_LIBS=$LIBS
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9582 /* Override any GCC internal prototype to avoid an error.
9583 Use char because int might match the return type of a GCC
9584 builtin and then its argument prototype would still apply. */
9588 char CRYPTO_new_ex_data ();
9592 return CRYPTO_new_ex_data ();
9597 for ac_lib in '' eay32 crypto; do
9598 if test -z "$ac_lib"; then
9599 ac_res="none required"
9602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9604 if ac_fn_c_try_link "$LINENO"; then :
9605 ac_cv_search_CRYPTO_new_ex_data=$ac_res
9607 rm -f core conftest.err conftest.$ac_objext \
9609 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
9613 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
9616 ac_cv_search_CRYPTO_new_ex_data=no
9619 LIBS=$ac_func_search_save_LIBS
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9622 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9623 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9624 if test "$ac_res" != no; then :
9625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9628 as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
9632 $as_echo_n "checking for library containing SSL_new... " >&6; }
9633 if ${ac_cv_search_SSL_new+:} false; then :
9634 $as_echo_n "(cached) " >&6
9636 ac_func_search_save_LIBS=$LIBS
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9640 /* Override any GCC internal prototype to avoid an error.
9641 Use char because int might match the return type of a GCC
9642 builtin and then its argument prototype would still apply. */
9655 for ac_lib in '' ssleay32 ssl; do
9656 if test -z "$ac_lib"; then
9657 ac_res="none required"
9660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9662 if ac_fn_c_try_link "$LINENO"; then :
9663 ac_cv_search_SSL_new=$ac_res
9665 rm -f core conftest.err conftest.$ac_objext \
9667 if ${ac_cv_search_SSL_new+:} false; then :
9671 if ${ac_cv_search_SSL_new+:} false; then :
9674 ac_cv_search_SSL_new=no
9677 LIBS=$ac_func_search_save_LIBS
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
9680 $as_echo "$ac_cv_search_SSL_new" >&6; }
9681 ac_res=$ac_cv_search_SSL_new
9682 if test "$ac_res" != no; then :
9683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9686 as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
9690 for ac_func in SSL_get_current_compression
9692 ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
9693 if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
9694 cat >>confdefs.h <<_ACEOF
9695 #define HAVE_SSL_GET_CURRENT_COMPRESSION 1
9701 # Functions introduced in OpenSSL 1.1.0. We used to check for
9702 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
9703 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
9704 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
9706 for ac_func in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data RAND_OpenSSL
9708 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9709 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9710 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9711 cat >>confdefs.h <<_ACEOF
9712 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9718 # OpenSSL versions before 1.1.0 required setting callback functions, for
9719 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
9720 # function was removed.
9721 for ac_func in CRYPTO_lock
9723 ac_fn_c_check_func "$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
9724 if test "x$ac_cv_func_CRYPTO_lock" = xyes; then :
9725 cat >>confdefs.h <<_ACEOF
9726 #define HAVE_CRYPTO_LOCK 1
9734 if test "$with_pam" = yes ; then
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
9736 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9737 if ${ac_cv_lib_pam_pam_start+:} false; then :
9738 $as_echo_n "(cached) " >&6
9740 ac_check_lib_save_LIBS=$LIBS
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9745 /* Override any GCC internal prototype to avoid an error.
9746 Use char because int might match the return type of a GCC
9747 builtin and then its argument prototype would still apply. */
9755 return pam_start ();
9760 if ac_fn_c_try_link "$LINENO"; then :
9761 ac_cv_lib_pam_pam_start=yes
9763 ac_cv_lib_pam_pam_start=no
9765 rm -f core conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767 LIBS=$ac_check_lib_save_LIBS
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
9770 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9771 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
9772 cat >>confdefs.h <<_ACEOF
9773 #define HAVE_LIBPAM 1
9779 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
9784 if test "$with_libxml" = yes ; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
9786 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9787 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
9788 $as_echo_n "(cached) " >&6
9790 ac_check_lib_save_LIBS=$LIBS
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9795 /* Override any GCC internal prototype to avoid an error.
9796 Use char because int might match the return type of a GCC
9797 builtin and then its argument prototype would still apply. */
9801 char xmlSaveToBuffer ();
9805 return xmlSaveToBuffer ();
9810 if ac_fn_c_try_link "$LINENO"; then :
9811 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9813 ac_cv_lib_xml2_xmlSaveToBuffer=no
9815 rm -f core conftest.err conftest.$ac_objext \
9816 conftest$ac_exeext conftest.$ac_ext
9817 LIBS=$ac_check_lib_save_LIBS
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9820 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9821 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
9822 cat >>confdefs.h <<_ACEOF
9823 #define HAVE_LIBXML2 1
9829 as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
9834 if test "$with_libxslt" = yes ; then
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
9836 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9837 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
9838 $as_echo_n "(cached) " >&6
9840 ac_check_lib_save_LIBS=$LIBS
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9845 /* Override any GCC internal prototype to avoid an error.
9846 Use char because int might match the return type of a GCC
9847 builtin and then its argument prototype would still apply. */
9851 char xsltCleanupGlobals ();
9855 return xsltCleanupGlobals ();
9860 if ac_fn_c_try_link "$LINENO"; then :
9861 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9863 ac_cv_lib_xslt_xsltCleanupGlobals=no
9865 rm -f core conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9867 LIBS=$ac_check_lib_save_LIBS
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9870 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9871 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
9872 cat >>confdefs.h <<_ACEOF
9873 #define HAVE_LIBXSLT 1
9879 as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
9884 # Note: We can test for libldap_r only after we know PTHREAD_LIBS
9885 if test "$with_ldap" = yes ; then
9887 if test "$PORTNAME" != "win32"; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
9889 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
9890 if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
9891 $as_echo_n "(cached) " >&6
9893 ac_check_lib_save_LIBS=$LIBS
9894 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9898 /* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9908 return ldap_bind ();
9913 if ac_fn_c_try_link "$LINENO"; then :
9914 ac_cv_lib_ldap_ldap_bind=yes
9916 ac_cv_lib_ldap_ldap_bind=no
9918 rm -f core conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920 LIBS=$ac_check_lib_save_LIBS
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
9923 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
9924 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
9925 cat >>confdefs.h <<_ACEOF
9926 #define HAVE_LIBLDAP 1
9932 as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
9935 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
9936 if test "$enable_thread_safety" = yes; then
9937 # on some platforms ldap_r fails to link without PTHREAD_LIBS
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
9939 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
9940 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false; then :
9941 $as_echo_n "(cached) " >&6
9943 ac_check_lib_save_LIBS=$LIBS
9944 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
9945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946 /* end confdefs.h. */
9948 /* Override any GCC internal prototype to avoid an error.
9949 Use char because int might match the return type of a GCC
9950 builtin and then its argument prototype would still apply. */
9954 char ldap_simple_bind ();
9958 return ldap_simple_bind ();
9963 if ac_fn_c_try_link "$LINENO"; then :
9964 ac_cv_lib_ldap_r_ldap_simple_bind=yes
9966 ac_cv_lib_ldap_r_ldap_simple_bind=no
9968 rm -f core conftest.err conftest.$ac_objext \
9969 conftest$ac_exeext conftest.$ac_ext
9970 LIBS=$ac_check_lib_save_LIBS
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
9973 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
9974 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes; then :
9975 cat >>confdefs.h <<_ACEOF
9976 #define HAVE_LIBLDAP_R 1
9979 LIBS="-lldap_r $LIBS"
9982 as_fn_error $? "library 'ldap_r' is required for LDAP" "$LINENO" 5
9985 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
9987 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
9991 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
9992 if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
9993 $as_echo_n "(cached) " >&6
9995 ac_check_lib_save_LIBS=$LIBS
9996 LIBS="-lwldap32 $LIBS"
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
10000 /* Override any GCC internal prototype to avoid an error.
10001 Use char because int might match the return type of a GCC
10002 builtin and then its argument prototype would still apply. */
10010 return ldap_bind ();
10015 if ac_fn_c_try_link "$LINENO"; then :
10016 ac_cv_lib_wldap32_ldap_bind=yes
10018 ac_cv_lib_wldap32_ldap_bind=no
10020 rm -f core conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
10025 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
10026 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
10027 cat >>confdefs.h <<_ACEOF
10028 #define HAVE_LIBWLDAP32 1
10031 LIBS="-lwldap32 $LIBS"
10034 as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
10037 LDAP_LIBS_FE="-lwldap32"
10038 LDAP_LIBS_BE="-lwldap32"
10045 # for contrib/sepgsql
10046 if test "$with_selinux" = yes; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
10048 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
10049 if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
10050 $as_echo_n "(cached) " >&6
10052 ac_check_lib_save_LIBS=$LIBS
10053 LIBS="-lselinux $LIBS"
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10057 /* Override any GCC internal prototype to avoid an error.
10058 Use char because int might match the return type of a GCC
10059 builtin and then its argument prototype would still apply. */
10063 char security_compute_create_name ();
10067 return security_compute_create_name ();
10072 if ac_fn_c_try_link "$LINENO"; then :
10073 ac_cv_lib_selinux_security_compute_create_name=yes
10075 ac_cv_lib_selinux_security_compute_create_name=no
10077 rm -f core conftest.err conftest.$ac_objext \
10078 conftest$ac_exeext conftest.$ac_ext
10079 LIBS=$ac_check_lib_save_LIBS
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
10082 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
10083 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
10084 cat >>confdefs.h <<_ACEOF
10085 #define HAVE_LIBSELINUX 1
10088 LIBS="-lselinux $LIBS"
10091 as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
10096 # for contrib/uuid-ossp
10097 if test "$with_uuid" = bsd ; then
10098 # On BSD, the UUID functions are in libc
10099 ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
10100 if test "x$ac_cv_func_uuid_to_string" = xyes; then :
10103 as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
10106 elif test "$with_uuid" = e2fs ; then
10107 # On macOS, the UUID functions are in libc
10108 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
10109 if test "x$ac_cv_func_uuid_generate" = xyes; then :
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
10113 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
10114 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
10115 $as_echo_n "(cached) " >&6
10117 ac_check_lib_save_LIBS=$LIBS
10118 LIBS="-luuid $LIBS"
10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10122 /* Override any GCC internal prototype to avoid an error.
10123 Use char because int might match the return type of a GCC
10124 builtin and then its argument prototype would still apply. */
10128 char uuid_generate ();
10132 return uuid_generate ();
10137 if ac_fn_c_try_link "$LINENO"; then :
10138 ac_cv_lib_uuid_uuid_generate=yes
10140 ac_cv_lib_uuid_uuid_generate=no
10142 rm -f core conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 LIBS=$ac_check_lib_save_LIBS
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
10147 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
10148 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
10151 as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
10156 elif test "$with_uuid" = ossp ; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
10158 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
10159 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
10160 $as_echo_n "(cached) " >&6
10162 ac_check_lib_save_LIBS=$LIBS
10163 LIBS="-lossp-uuid $LIBS"
10164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165 /* end confdefs.h. */
10167 /* Override any GCC internal prototype to avoid an error.
10168 Use char because int might match the return type of a GCC
10169 builtin and then its argument prototype would still apply. */
10173 char uuid_export ();
10177 return uuid_export ();
10182 if ac_fn_c_try_link "$LINENO"; then :
10183 ac_cv_lib_ossp_uuid_uuid_export=yes
10185 ac_cv_lib_ossp_uuid_uuid_export=no
10187 rm -f core conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
10192 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
10193 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
10194 UUID_LIBS="-lossp-uuid"
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
10197 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
10198 if ${ac_cv_lib_uuid_uuid_export+:} false; then :
10199 $as_echo_n "(cached) " >&6
10201 ac_check_lib_save_LIBS=$LIBS
10202 LIBS="-luuid $LIBS"
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10206 /* Override any GCC internal prototype to avoid an error.
10207 Use char because int might match the return type of a GCC
10208 builtin and then its argument prototype would still apply. */
10212 char uuid_export ();
10216 return uuid_export ();
10221 if ac_fn_c_try_link "$LINENO"; then :
10222 ac_cv_lib_uuid_uuid_export=yes
10224 ac_cv_lib_uuid_uuid_export=no
10226 rm -f core conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
10231 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
10232 if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
10235 as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
10248 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 pwd.h sys/epoll.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10251 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10252 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10253 cat >>confdefs.h <<_ACEOF
10254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10262 # On BSD, test for net/if.h will fail unless sys/socket.h
10263 # is included first.
10264 for ac_header in net/if.h
10266 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
10267 #ifdef HAVE_SYS_SOCKET_H
10268 #include <sys/socket.h>
10272 if test "x$ac_cv_header_net_if_h" = xyes; then :
10273 cat >>confdefs.h <<_ACEOF
10274 #define HAVE_NET_IF_H 1
10282 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
10283 # is included first.
10284 for ac_header in sys/ucred.h
10286 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
10287 #include <sys/param.h>
10290 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
10291 cat >>confdefs.h <<_ACEOF
10292 #define HAVE_SYS_UCRED_H 1
10300 # At least on IRIX, test for netinet/tcp.h will fail unless
10301 # netinet/in.h is included first.
10302 for ac_header in netinet/in.h
10304 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
10305 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
10306 cat >>confdefs.h <<_ACEOF
10307 #define HAVE_NETINET_IN_H 1
10314 for ac_header in netinet/tcp.h
10316 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
10317 #ifdef HAVE_NETINET_IN_H
10318 #include <netinet/in.h>
10322 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
10323 cat >>confdefs.h <<_ACEOF
10324 #define HAVE_NETINET_TCP_H 1
10332 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10333 for ac_header in readline/readline.h
10335 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
10336 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
10337 cat >>confdefs.h <<_ACEOF
10338 #define HAVE_READLINE_READLINE_H 1
10342 for ac_header in readline.h
10344 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
10345 if test "x$ac_cv_header_readline_h" = xyes; then :
10346 cat >>confdefs.h <<_ACEOF
10347 #define HAVE_READLINE_H 1
10351 as_fn_error $? "readline header not found
10352 If you have readline already installed, see config.log for details on the
10353 failure. It is possible the compiler isn't looking in the proper directory.
10354 Use --without-readline to disable readline support." "$LINENO" 5
10363 for ac_header in readline/history.h
10365 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
10366 if test "x$ac_cv_header_readline_history_h" = xyes; then :
10367 cat >>confdefs.h <<_ACEOF
10368 #define HAVE_READLINE_HISTORY_H 1
10372 for ac_header in history.h
10374 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
10375 if test "x$ac_cv_header_history_h" = xyes; then :
10376 cat >>confdefs.h <<_ACEOF
10377 #define HAVE_HISTORY_H 1
10381 as_fn_error $? "history header not found
10382 If you have readline already installed, see config.log for details on the
10383 failure. It is possible the compiler isn't looking in the proper directory.
10384 Use --without-readline to disable readline support." "$LINENO" 5
10395 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10396 # Some installations of libedit usurp /usr/include/readline/, which seems
10397 # bad practice, since in combined installations readline will have its headers
10398 # there. We might have to resort to AC_EGREP checks to make sure we found
10399 # the proper header...
10400 for ac_header in editline/readline.h
10402 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
10403 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
10404 cat >>confdefs.h <<_ACEOF
10405 #define HAVE_EDITLINE_READLINE_H 1
10409 for ac_header in readline.h
10411 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
10412 if test "x$ac_cv_header_readline_h" = xyes; then :
10413 cat >>confdefs.h <<_ACEOF
10414 #define HAVE_READLINE_H 1
10418 for ac_header in readline/readline.h
10420 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
10421 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
10422 cat >>confdefs.h <<_ACEOF
10423 #define HAVE_READLINE_READLINE_H 1
10427 as_fn_error $? "readline header not found
10428 If you have libedit already installed, see config.log for details on the
10429 failure. It is possible the compiler isn't looking in the proper directory.
10430 Use --without-readline to disable libedit support." "$LINENO" 5
10443 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10444 # not be there at all. Hence, don't complain if not found. We must check
10445 # though, since in yet other versions it is an independent header.
10446 for ac_header in editline/history.h
10448 ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
10449 if test "x$ac_cv_header_editline_history_h" = xyes; then :
10450 cat >>confdefs.h <<_ACEOF
10451 #define HAVE_EDITLINE_HISTORY_H 1
10455 for ac_header in history.h
10457 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
10458 if test "x$ac_cv_header_history_h" = xyes; then :
10459 cat >>confdefs.h <<_ACEOF
10460 #define HAVE_HISTORY_H 1
10464 for ac_header in readline/history.h
10466 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
10467 if test "x$ac_cv_header_readline_history_h" = xyes; then :
10468 cat >>confdefs.h <<_ACEOF
10469 #define HAVE_READLINE_HISTORY_H 1
10486 if test "$with_zlib" = yes; then
10487 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10488 if test "x$ac_cv_header_zlib_h" = xyes; then :
10491 as_fn_error $? "zlib header not found
10492 If you have zlib already installed, see config.log for details on the
10493 failure. It is possible the compiler isn't looking in the proper directory.
10494 Use --without-zlib to disable zlib support." "$LINENO" 5
10500 if test "$with_gssapi" = yes ; then
10501 for ac_header in gssapi/gssapi.h
10503 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
10504 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
10505 cat >>confdefs.h <<_ACEOF
10506 #define HAVE_GSSAPI_GSSAPI_H 1
10510 for ac_header in gssapi.h
10512 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
10513 if test "x$ac_cv_header_gssapi_h" = xyes; then :
10514 cat >>confdefs.h <<_ACEOF
10515 #define HAVE_GSSAPI_H 1
10519 as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5
10530 if test "$with_openssl" = yes ; then
10531 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
10532 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
10535 as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
10539 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
10540 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
10543 as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
10549 if test "$with_pam" = yes ; then
10550 for ac_header in security/pam_appl.h
10552 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
10553 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
10554 cat >>confdefs.h <<_ACEOF
10555 #define HAVE_SECURITY_PAM_APPL_H 1
10559 for ac_header in pam/pam_appl.h
10561 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
10562 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
10563 cat >>confdefs.h <<_ACEOF
10564 #define HAVE_PAM_PAM_APPL_H 1
10568 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
10579 if test "$with_bsd_auth" = yes ; then
10580 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
10581 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
10584 as_fn_error $? "header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
10590 if test "$with_systemd" = yes ; then
10591 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
10592 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
10595 as_fn_error $? "header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
10601 if test "$with_libxml" = yes ; then
10602 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
10603 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
10606 as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5
10612 if test "$with_libxslt" = yes ; then
10613 ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
10614 if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
10617 as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
10623 if test "$with_ldap" = yes ; then
10624 if test "$PORTNAME" != "win32"; then
10625 for ac_header in ldap.h
10627 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
10628 if test "x$ac_cv_header_ldap_h" = xyes; then :
10629 cat >>confdefs.h <<_ACEOF
10630 #define HAVE_LDAP_H 1
10634 as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
10640 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
10641 if ${pgac_cv_ldap_safe+:} false; then :
10642 $as_echo_n "(cached) " >&6
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10647 #if !defined(LDAP_VENDOR_VERSION) || \
10648 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
10649 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
10660 if ac_fn_c_try_compile "$LINENO"; then :
10661 pgac_cv_ldap_safe=yes
10663 pgac_cv_ldap_safe=no
10665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
10668 $as_echo "$pgac_cv_ldap_safe" >&6; }
10670 if test "$pgac_cv_ldap_safe" != yes; then
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10672 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
10673 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
10674 *** also uses LDAP will crash on exit." >&5
10675 $as_echo "$as_me: WARNING:
10676 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
10677 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
10678 *** also uses LDAP will crash on exit." >&2;}
10681 for ac_header in winldap.h
10683 ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
10684 #include <windows.h>
10687 if test "x$ac_cv_header_winldap_h" = xyes; then :
10688 cat >>confdefs.h <<_ACEOF
10689 #define HAVE_WINLDAP_H 1
10693 as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
10701 if test "$with_bonjour" = yes ; then
10702 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
10703 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
10706 as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
10712 # for contrib/uuid-ossp
10713 if test "$with_uuid" = bsd ; then
10714 for ac_header in uuid.h
10716 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
10717 if test "x$ac_cv_header_uuid_h" = xyes; then :
10718 cat >>confdefs.h <<_ACEOF
10719 #define HAVE_UUID_H 1
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10727 $EGREP "uuid_to_string" >/dev/null 2>&1; then :
10730 as_fn_error $? "header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
10735 as_fn_error $? "header file <uuid.h> is required for BSD UUID" "$LINENO" 5
10740 elif test "$with_uuid" = e2fs ; then
10741 for ac_header in uuid/uuid.h
10743 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
10744 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
10745 cat >>confdefs.h <<_ACEOF
10746 #define HAVE_UUID_UUID_H 1
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10750 #include <uuid/uuid.h>
10753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10754 $EGREP "uuid_generate" >/dev/null 2>&1; then :
10757 as_fn_error $? "header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
10762 for ac_header in uuid.h
10764 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
10765 if test "x$ac_cv_header_uuid_h" = xyes; then :
10766 cat >>confdefs.h <<_ACEOF
10767 #define HAVE_UUID_H 1
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10775 $EGREP "uuid_generate" >/dev/null 2>&1; then :
10778 as_fn_error $? "header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
10783 as_fn_error $? "header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
10792 elif test "$with_uuid" = ossp ; then
10793 for ac_header in ossp/uuid.h
10795 ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
10796 if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
10797 cat >>confdefs.h <<_ACEOF
10798 #define HAVE_OSSP_UUID_H 1
10800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801 /* end confdefs.h. */
10802 #include <ossp/uuid.h>
10805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10806 $EGREP "uuid_export" >/dev/null 2>&1; then :
10809 as_fn_error $? "header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
10814 for ac_header in uuid.h
10816 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
10817 if test "x$ac_cv_header_uuid_h" = xyes; then :
10818 cat >>confdefs.h <<_ACEOF
10819 #define HAVE_UUID_H 1
10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h. */
10826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10827 $EGREP "uuid_export" >/dev/null 2>&1; then :
10830 as_fn_error $? "header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
10835 as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
10846 if test "$PORTNAME" = "win32" ; then
10847 for ac_header in crtdefs.h
10849 ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
10850 if test "x$ac_cv_header_crtdefs_h" = xyes; then :
10851 cat >>confdefs.h <<_ACEOF
10852 #define HAVE_CRTDEFS_H 1
10862 ## Types, structures, compiler characteristics
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10866 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10867 if ${ac_cv_c_bigendian+:} false; then :
10868 $as_echo_n "(cached) " >&6
10870 ac_cv_c_bigendian=unknown
10871 # See if we're dealing with a universal compiler.
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10874 #ifndef __APPLE_CC__
10875 not a universal capable compiler
10880 if ac_fn_c_try_compile "$LINENO"; then :
10882 # Check for potential -arch flags. It is not universal unless
10883 # there are at least two -arch flags with different values.
10886 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10887 if test -n "$ac_prev"; then
10889 i?86 | x86_64 | ppc | ppc64)
10890 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10893 ac_cv_c_bigendian=universal
10899 elif test "x$ac_word" = "x-arch"; then
10904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10905 if test $ac_cv_c_bigendian = unknown; then
10906 # See if sys/param.h defines the BYTE_ORDER macro.
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10909 #include <sys/types.h>
10910 #include <sys/param.h>
10915 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10916 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10918 bogus endian macros
10925 if ac_fn_c_try_compile "$LINENO"; then :
10926 # It does; now see whether it defined to BIG_ENDIAN or not.
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10929 #include <sys/types.h>
10930 #include <sys/param.h>
10935 #if BYTE_ORDER != BIG_ENDIAN
10943 if ac_fn_c_try_compile "$LINENO"; then :
10944 ac_cv_c_bigendian=yes
10946 ac_cv_c_bigendian=no
10948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952 if test $ac_cv_c_bigendian = unknown; then
10953 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10956 #include <limits.h>
10961 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10962 bogus endian macros
10969 if ac_fn_c_try_compile "$LINENO"; then :
10970 # It does; now see whether it defined to _BIG_ENDIAN or not.
10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973 #include <limits.h>
10978 #ifndef _BIG_ENDIAN
10986 if ac_fn_c_try_compile "$LINENO"; then :
10987 ac_cv_c_bigendian=yes
10989 ac_cv_c_bigendian=no
10991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10995 if test $ac_cv_c_bigendian = unknown; then
10996 # Compile a test program.
10997 if test "$cross_compiling" = yes; then :
10998 # Try to guess by grepping values from an object file.
10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11001 short int ascii_mm[] =
11002 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11003 short int ascii_ii[] =
11004 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11005 int use_ascii (int i) {
11006 return ascii_mm[i] + ascii_ii[i];
11008 short int ebcdic_ii[] =
11009 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11010 short int ebcdic_mm[] =
11011 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11012 int use_ebcdic (int i) {
11013 return ebcdic_mm[i] + ebcdic_ii[i];
11020 return use_ascii (foo) == use_ebcdic (foo);
11025 if ac_fn_c_try_compile "$LINENO"; then :
11026 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11027 ac_cv_c_bigendian=yes
11029 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11030 if test "$ac_cv_c_bigendian" = unknown; then
11031 ac_cv_c_bigendian=no
11033 # finding both strings is unlikely to happen, but who knows?
11034 ac_cv_c_bigendian=unknown
11038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11042 $ac_includes_default
11047 /* Are we little or big endian? From Harbison&Steele. */
11051 char c[sizeof (long int)];
11054 return u.c[sizeof (long int) - 1] == 1;
11060 if ac_fn_c_try_run "$LINENO"; then :
11061 ac_cv_c_bigendian=no
11063 ac_cv_c_bigendian=yes
11065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11066 conftest.$ac_objext conftest.beam conftest.$ac_ext
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11072 $as_echo "$ac_cv_c_bigendian" >&6; }
11073 case $ac_cv_c_bigendian in #(
11075 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11081 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11085 as_fn_error $? "unknown endianness
11086 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11090 $as_echo_n "checking for inline... " >&6; }
11091 if ${ac_cv_c_inline+:} false; then :
11092 $as_echo_n "(cached) " >&6
11095 for ac_kw in inline __inline__ __inline; do
11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11098 #ifndef __cplusplus
11100 static $ac_kw foo_t static_foo () {return 0; }
11101 $ac_kw foo_t foo () {return 0; }
11105 if ac_fn_c_try_compile "$LINENO"; then :
11106 ac_cv_c_inline=$ac_kw
11108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11109 test "$ac_cv_c_inline" != no && break
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11114 $as_echo "$ac_cv_c_inline" >&6; }
11116 case $ac_cv_c_inline in
11119 case $ac_cv_c_inline in
11121 *) ac_val=$ac_cv_c_inline;;
11123 cat >>confdefs.h <<_ACEOF
11124 #ifndef __cplusplus
11125 #define inline $ac_val
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
11132 $as_echo_n "checking for printf format archetype... " >&6; }
11133 if ${pgac_cv_printf_archetype+:} false; then :
11134 $as_echo_n "(cached) " >&6
11136 ac_save_c_werror_flag=$ac_c_werror_flag
11137 ac_c_werror_flag=yes
11138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139 /* end confdefs.h. */
11141 pgac_write(int ignore, const char *fmt,...)
11142 __attribute__((format(gnu_printf, 2, 3)));
11151 if ac_fn_c_try_compile "$LINENO"; then :
11152 pgac_cv_printf_archetype=gnu_printf
11154 pgac_cv_printf_archetype=printf
11156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11157 ac_c_werror_flag=$ac_save_c_werror_flag
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
11160 $as_echo "$pgac_cv_printf_archetype" >&6; }
11162 cat >>confdefs.h <<_ACEOF
11163 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
11169 $as_echo_n "checking for flexible array members... " >&6; }
11170 if ${ac_cv_c_flexmember+:} false; then :
11171 $as_echo_n "(cached) " >&6
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11175 #include <stdlib.h>
11177 #include <stddef.h>
11178 struct s { int n; double d[]; };
11182 int m = getchar ();
11183 struct s *p = malloc (offsetof (struct s, d)
11184 + m * sizeof (double));
11186 return p->d != (double *) NULL;
11191 if ac_fn_c_try_compile "$LINENO"; then :
11192 ac_cv_c_flexmember=yes
11194 ac_cv_c_flexmember=no
11196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
11199 $as_echo "$ac_cv_c_flexmember" >&6; }
11200 if test $ac_cv_c_flexmember = yes; then
11202 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
11205 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
11210 $as_echo_n "checking for signed types... " >&6; }
11211 if ${pgac_cv_c_signed+:} false; then :
11212 $as_echo_n "(cached) " >&6
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11220 signed char c; signed short s; signed int i;
11225 if ac_fn_c_try_compile "$LINENO"; then :
11226 pgac_cv_c_signed=yes
11228 pgac_cv_c_signed=no
11230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
11233 $as_echo "$pgac_cv_c_signed" >&6; }
11234 if test x"$pgac_cv_c_signed" = xno ; then
11236 $as_echo "#define signed /**/" >>confdefs.h
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
11240 $as_echo_n "checking for __func__... " >&6; }
11241 if ${pgac_cv_funcname_func_support+:} false; then :
11242 $as_echo_n "(cached) " >&6
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11250 printf("%s\n", __func__);
11255 if ac_fn_c_try_compile "$LINENO"; then :
11256 pgac_cv_funcname_func_support=yes
11258 pgac_cv_funcname_func_support=no
11260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
11263 $as_echo "$pgac_cv_funcname_func_support" >&6; }
11264 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11266 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
11270 $as_echo_n "checking for __FUNCTION__... " >&6; }
11271 if ${pgac_cv_funcname_function_support+:} false; then :
11272 $as_echo_n "(cached) " >&6
11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11280 printf("%s\n", __FUNCTION__);
11285 if ac_fn_c_try_compile "$LINENO"; then :
11286 pgac_cv_funcname_function_support=yes
11288 pgac_cv_funcname_function_support=no
11290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
11293 $as_echo "$pgac_cv_funcname_function_support" >&6; }
11294 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11296 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
11301 $as_echo_n "checking for _Static_assert... " >&6; }
11302 if ${pgac_cv__static_assert+:} false; then :
11303 $as_echo_n "(cached) " >&6
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11311 ({ _Static_assert(1, "foo"); })
11316 if ac_fn_c_try_link "$LINENO"; then :
11317 pgac_cv__static_assert=yes
11319 pgac_cv__static_assert=no
11321 rm -f core conftest.err conftest.$ac_objext \
11322 conftest$ac_exeext conftest.$ac_ext
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
11325 $as_echo "$pgac_cv__static_assert" >&6; }
11326 if test x"$pgac_cv__static_assert" = xyes ; then
11328 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
11332 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
11333 if ${pgac_cv__types_compatible+:} false; then :
11334 $as_echo_n "(cached) " >&6
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11342 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
11347 if ac_fn_c_try_compile "$LINENO"; then :
11348 pgac_cv__types_compatible=yes
11350 pgac_cv__types_compatible=no
11352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
11355 $as_echo "$pgac_cv__types_compatible" >&6; }
11356 if test x"$pgac_cv__types_compatible" = xyes ; then
11358 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
11362 $as_echo_n "checking for __builtin_bswap32... " >&6; }
11363 if ${pgac_cv__builtin_bswap32+:} false; then :
11364 $as_echo_n "(cached) " >&6
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11368 static unsigned long int x = __builtin_bswap32(0xaabbccdd);
11371 if ac_fn_c_try_compile "$LINENO"; then :
11372 pgac_cv__builtin_bswap32=yes
11374 pgac_cv__builtin_bswap32=no
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
11379 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
11380 if test x"$pgac_cv__builtin_bswap32" = xyes ; then
11382 $as_echo "#define HAVE__BUILTIN_BSWAP32 1" >>confdefs.h
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
11386 $as_echo_n "checking for __builtin_bswap64... " >&6; }
11387 if ${pgac_cv__builtin_bswap64+:} false; then :
11388 $as_echo_n "(cached) " >&6
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11392 static unsigned long int x = __builtin_bswap64(0xaabbccddeeff0011);
11395 if ac_fn_c_try_compile "$LINENO"; then :
11396 pgac_cv__builtin_bswap64=yes
11398 pgac_cv__builtin_bswap64=no
11400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
11403 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
11404 if test x"$pgac_cv__builtin_bswap64" = xyes ; then
11406 $as_echo "#define HAVE__BUILTIN_BSWAP64 1" >>confdefs.h
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
11410 $as_echo_n "checking for __builtin_constant_p... " >&6; }
11411 if ${pgac_cv__builtin_constant_p+:} false; then :
11412 $as_echo_n "(cached) " >&6
11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11416 static int x; static int y[__builtin_constant_p(x) ? x : 1];
11419 if ac_fn_c_try_compile "$LINENO"; then :
11420 pgac_cv__builtin_constant_p=yes
11422 pgac_cv__builtin_constant_p=no
11424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
11427 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
11428 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
11430 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
11434 $as_echo_n "checking for __builtin_unreachable... " >&6; }
11435 if ${pgac_cv__builtin_unreachable+:} false; then :
11436 $as_echo_n "(cached) " >&6
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11444 __builtin_unreachable();
11449 if ac_fn_c_try_link "$LINENO"; then :
11450 pgac_cv__builtin_unreachable=yes
11452 pgac_cv__builtin_unreachable=no
11454 rm -f core conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
11458 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
11459 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
11461 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __VA_ARGS__" >&5
11465 $as_echo_n "checking for __VA_ARGS__... " >&6; }
11466 if ${pgac_cv__va_args+:} false; then :
11467 $as_echo_n "(cached) " >&6
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11475 #define debug(...) fprintf(stderr, __VA_ARGS__)
11476 debug("%s", "blarg");
11482 if ac_fn_c_try_compile "$LINENO"; then :
11483 pgac_cv__va_args=yes
11485 pgac_cv__va_args=no
11487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__va_args" >&5
11490 $as_echo "$pgac_cv__va_args" >&6; }
11491 if test x"$pgac_cv__va_args" = xyes ; then
11493 $as_echo "#define HAVE__VA_ARGS 1" >>confdefs.h
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11497 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11498 if ${ac_cv_struct_tm+:} false; then :
11499 $as_echo_n "(cached) " >&6
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11503 #include <sys/types.h>
11510 int *p = &tm.tm_sec;
11516 if ac_fn_c_try_compile "$LINENO"; then :
11517 ac_cv_struct_tm=time.h
11519 ac_cv_struct_tm=sys/time.h
11521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11524 $as_echo "$ac_cv_struct_tm" >&6; }
11525 if test $ac_cv_struct_tm = sys/time.h; then
11527 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11531 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
11532 #include <$ac_cv_struct_tm>
11535 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
11537 cat >>confdefs.h <<_ACEOF
11538 #define HAVE_STRUCT_TM_TM_ZONE 1
11544 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11546 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
11550 $as_echo_n "checking for tzname... " >&6; }
11551 if ${ac_cv_var_tzname+:} false; then :
11552 $as_echo_n "(cached) " >&6
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11556 #include <stdlib.h>
11558 #ifndef tzname /* For SGI. */
11559 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11570 if ac_fn_c_try_link "$LINENO"; then :
11571 ac_cv_var_tzname=yes
11573 ac_cv_var_tzname=no
11575 rm -f core conftest.err conftest.$ac_objext \
11576 conftest$ac_exeext conftest.$ac_ext
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
11579 $as_echo "$ac_cv_var_tzname" >&6; }
11580 if test $ac_cv_var_tzname = yes; then
11582 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
11586 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
11587 #include <sys/ipc.h>
11588 #include <sys/sem.h>
11590 if test "x$ac_cv_type_union_semun" = xyes; then :
11592 cat >>confdefs.h <<_ACEOF
11593 #define HAVE_UNION_SEMUN 1
11599 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
11600 #ifdef HAVE_SYS_UN_H
11601 #include <sys/un.h>
11605 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
11607 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
11611 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
11612 #ifdef HAVE_SYS_SOCKET_H
11613 #include <sys/socket.h>
11617 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
11619 cat >>confdefs.h <<_ACEOF
11620 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11626 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
11627 #ifdef HAVE_SYS_SOCKET_H
11628 #include <sys/socket.h>
11632 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
11634 cat >>confdefs.h <<_ACEOF
11635 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11640 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
11641 #ifdef HAVE_SYS_SOCKET_H
11642 #include <sys/socket.h>
11646 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
11648 cat >>confdefs.h <<_ACEOF
11649 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
11654 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
11655 #ifdef HAVE_SYS_SOCKET_H
11656 #include <sys/socket.h>
11660 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
11662 cat >>confdefs.h <<_ACEOF
11663 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
11668 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
11669 #ifdef HAVE_SYS_SOCKET_H
11670 #include <sys/socket.h>
11674 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
11676 cat >>confdefs.h <<_ACEOF
11677 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
11682 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11683 #ifdef HAVE_SYS_SOCKET_H
11684 #include <sys/socket.h>
11688 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11690 cat >>confdefs.h <<_ACEOF
11691 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
11697 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
11698 #include <sys/socket.h>
11702 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
11704 cat >>confdefs.h <<_ACEOF
11705 #define HAVE_STRUCT_ADDRINFO 1
11712 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11713 if test "x$ac_cv_type_intptr_t" = xyes; then :
11715 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
11718 for ac_type in 'int' 'long int' 'long long int'; do
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721 $ac_includes_default
11725 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
11726 test_array [0] = 0;
11727 return test_array [0];
11733 if ac_fn_c_try_compile "$LINENO"; then :
11735 cat >>confdefs.h <<_ACEOF
11736 #define intptr_t $ac_type
11741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742 test -z "$ac_type" && break
11748 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
11749 if test "x$ac_cv_type_uintptr_t" = xyes; then :
11751 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
11754 for ac_type in 'unsigned int' 'unsigned long int' \
11755 'unsigned long long int'; do
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11758 $ac_includes_default
11762 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
11763 test_array [0] = 0;
11764 return test_array [0];
11770 if ac_fn_c_try_compile "$LINENO"; then :
11772 cat >>confdefs.h <<_ACEOF
11773 #define uintptr_t $ac_type
11778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11779 test -z "$ac_type" && break
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
11786 $as_echo_n "checking for unsigned long long int... " >&6; }
11787 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
11788 $as_echo_n "(cached) " >&6
11790 ac_cv_type_unsigned_long_long_int=yes
11791 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11795 /* For now, do not test the preprocessor; as of 2007 there are too many
11796 implementations with broken preprocessors. Perhaps this can
11797 be revisited in 2012. In the meantime, code should not expect
11798 #if to work with literals wider than 32 bits. */
11799 /* Test literals. */
11800 long long int ll = 9223372036854775807ll;
11801 long long int nll = -9223372036854775807LL;
11802 unsigned long long int ull = 18446744073709551615ULL;
11803 /* Test constant expressions. */
11804 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11806 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11812 /* Test availability of runtime routines for shift and division. */
11813 long long int llmax = 9223372036854775807ll;
11814 unsigned long long int ullmax = 18446744073709551615ull;
11815 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11816 | (llmax / ll) | (llmax % ll)
11817 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11818 | (ullmax / ull) | (ullmax % ull));
11824 if ac_fn_c_try_link "$LINENO"; then :
11827 ac_cv_type_unsigned_long_long_int=no
11829 rm -f core conftest.err conftest.$ac_objext \
11830 conftest$ac_exeext conftest.$ac_ext
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
11834 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11835 if test $ac_cv_type_unsigned_long_long_int = yes; then
11837 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11844 $as_echo_n "checking for long long int... " >&6; }
11845 if ${ac_cv_type_long_long_int+:} false; then :
11846 $as_echo_n "(cached) " >&6
11848 ac_cv_type_long_long_int=yes
11849 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
11850 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
11851 if test $ac_cv_type_long_long_int = yes; then
11852 if test "$cross_compiling" = yes; then :
11855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11856 /* end confdefs.h. */
11857 #include <limits.h>
11860 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11861 # define LLONG_MAX (HALF - 1 + HALF)
11866 long long int n = 1;
11870 long long int m = n << i;
11873 if (LLONG_MAX / 2 < m)
11881 if ac_fn_c_try_run "$LINENO"; then :
11884 ac_cv_type_long_long_int=no
11886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11887 conftest.$ac_objext conftest.beam conftest.$ac_ext
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11894 $as_echo "$ac_cv_type_long_long_int" >&6; }
11895 if test $ac_cv_type_long_long_int = yes; then
11897 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
11903 $as_echo_n "checking for locale_t... " >&6; }
11904 if ${pgac_cv_type_locale_t+:} false; then :
11905 $as_echo_n "(cached) " >&6
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11909 #include <locale.h>
11919 if ac_fn_c_try_compile "$LINENO"; then :
11920 pgac_cv_type_locale_t=yes
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11924 #include <xlocale.h>
11934 if ac_fn_c_try_compile "$LINENO"; then :
11935 pgac_cv_type_locale_t='yes (in xlocale.h)'
11937 pgac_cv_type_locale_t=no
11939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
11944 $as_echo "$pgac_cv_type_locale_t" >&6; }
11945 if test "$pgac_cv_type_locale_t" != no; then
11947 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
11950 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
11952 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
11956 ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
11957 #include <sys/param.h>
11958 #ifdef HAVE_SYS_UCRED_H
11959 #include <sys/ucred.h>
11962 if test "x$ac_cv_type_struct_cmsgcred" = xyes; then :
11964 cat >>confdefs.h <<_ACEOF
11965 #define HAVE_STRUCT_CMSGCRED 1
11972 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
11973 #include <getopt.h>
11976 if test "x$ac_cv_type_struct_option" = xyes; then :
11978 cat >>confdefs.h <<_ACEOF
11979 #define HAVE_STRUCT_OPTION 1
11986 if test "$with_zlib" = yes; then
11987 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
11988 # did not). While we could work around the lack of z_streamp, it
11989 # seems unwise to encourage people to use such old zlib versions...
11990 ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
11992 if test "x$ac_cv_type_z_streamp" = xyes; then :
11995 as_fn_error $? "zlib version is too old
11996 Use --without-zlib to disable zlib support." "$LINENO" 5
12001 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
12005 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h. */
12012 int a = 0; int *p = &a; int r;
12013 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
12018 if ac_fn_c_try_compile "$LINENO"; then :
12019 pgac_cv_have_ppc_mutex_hint=yes
12021 pgac_cv_have_ppc_mutex_hint=no
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
12025 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
12026 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
12028 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
12034 # Check largefile support. You might think this is a system service not a
12035 # compiler characteristic, but you'd be wrong. We must check this before
12036 # probing existence of related functions such as fseeko, since the largefile
12037 # defines can affect what is generated for that.
12038 if test "$PORTNAME" != "win32"; then
12039 # Check whether --enable-largefile was given.
12040 if test "${enable_largefile+set}" = set; then :
12041 enableval=$enable_largefile;
12044 if test "$enable_largefile" != no; then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12047 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12048 if ${ac_cv_sys_largefile_CC+:} false; then :
12049 $as_echo_n "(cached) " >&6
12051 ac_cv_sys_largefile_CC=no
12052 if test "$GCC" != yes; then
12055 # IRIX 6.2 and later do not support large files by default,
12056 # so use the C compiler's -n32 option if that helps.
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059 #include <sys/types.h>
12060 /* Check that off_t can represent 2**63 - 1 correctly.
12061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12062 since some C++ compilers masquerading as C compilers
12063 incorrectly reject 9223372036854775807. */
12064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12066 && LARGE_OFF_T % 2147483647 == 1)
12076 if ac_fn_c_try_compile "$LINENO"; then :
12079 rm -f core conftest.err conftest.$ac_objext
12081 if ac_fn_c_try_compile "$LINENO"; then :
12082 ac_cv_sys_largefile_CC=' -n32'; break
12084 rm -f core conftest.err conftest.$ac_objext
12088 rm -f conftest.$ac_ext
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12092 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12093 if test "$ac_cv_sys_largefile_CC" != no; then
12094 CC=$CC$ac_cv_sys_largefile_CC
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12098 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12099 if ${ac_cv_sys_file_offset_bits+:} false; then :
12100 $as_echo_n "(cached) " >&6
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12105 #include <sys/types.h>
12106 /* Check that off_t can represent 2**63 - 1 correctly.
12107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12108 since some C++ compilers masquerading as C compilers
12109 incorrectly reject 9223372036854775807. */
12110 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12112 && LARGE_OFF_T % 2147483647 == 1)
12122 if ac_fn_c_try_compile "$LINENO"; then :
12123 ac_cv_sys_file_offset_bits=no; break
12125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12128 #define _FILE_OFFSET_BITS 64
12129 #include <sys/types.h>
12130 /* Check that off_t can represent 2**63 - 1 correctly.
12131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12132 since some C++ compilers masquerading as C compilers
12133 incorrectly reject 9223372036854775807. */
12134 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12136 && LARGE_OFF_T % 2147483647 == 1)
12146 if ac_fn_c_try_compile "$LINENO"; then :
12147 ac_cv_sys_file_offset_bits=64; break
12149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12150 ac_cv_sys_file_offset_bits=unknown
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12155 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12156 case $ac_cv_sys_file_offset_bits in #(
12159 cat >>confdefs.h <<_ACEOF
12160 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12165 if test $ac_cv_sys_file_offset_bits = unknown; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12167 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12168 if ${ac_cv_sys_large_files+:} false; then :
12169 $as_echo_n "(cached) " >&6
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12174 #include <sys/types.h>
12175 /* Check that off_t can represent 2**63 - 1 correctly.
12176 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12177 since some C++ compilers masquerading as C compilers
12178 incorrectly reject 9223372036854775807. */
12179 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12180 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12181 && LARGE_OFF_T % 2147483647 == 1)
12191 if ac_fn_c_try_compile "$LINENO"; then :
12192 ac_cv_sys_large_files=no; break
12194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197 #define _LARGE_FILES 1
12198 #include <sys/types.h>
12199 /* Check that off_t can represent 2**63 - 1 correctly.
12200 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12201 since some C++ compilers masquerading as C compilers
12202 incorrectly reject 9223372036854775807. */
12203 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12204 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12205 && LARGE_OFF_T % 2147483647 == 1)
12215 if ac_fn_c_try_compile "$LINENO"; then :
12216 ac_cv_sys_large_files=1; break
12218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219 ac_cv_sys_large_files=unknown
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12224 $as_echo "$ac_cv_sys_large_files" >&6; }
12225 case $ac_cv_sys_large_files in #(
12228 cat >>confdefs.h <<_ACEOF
12229 #define _LARGE_FILES $ac_cv_sys_large_files
12242 # Check for largefile support (must be after AC_SYS_LARGEFILE)
12243 # The cast to long int works around a bug in the HP C Compiler
12244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12246 # This bug is HP SR number 8606223364.
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12248 $as_echo_n "checking size of off_t... " >&6; }
12249 if ${ac_cv_sizeof_off_t+:} false; then :
12250 $as_echo_n "(cached) " >&6
12252 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12255 if test "$ac_cv_type_off_t" = yes; then
12256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12258 as_fn_error 77 "cannot compute sizeof (off_t)
12259 See \`config.log' for more details" "$LINENO" 5; }
12261 ac_cv_sizeof_off_t=0
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12267 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12271 cat >>confdefs.h <<_ACEOF
12272 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12277 # If we don't have largefile support, can't handle segsize >= 2GB.
12278 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
12279 as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
12284 ## Functions, global variables
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
12288 $as_echo_n "checking for int timezone... " >&6; }
12289 if ${pgac_cv_var_int_timezone+:} false; then :
12290 $as_echo_n "(cached) " >&6
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12300 res = timezone / 60;
12302 res = _timezone / 60;
12308 if ac_fn_c_try_link "$LINENO"; then :
12309 pgac_cv_var_int_timezone=yes
12311 pgac_cv_var_int_timezone=no
12313 rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
12317 $as_echo "$pgac_cv_var_int_timezone" >&6; }
12318 if test x"$pgac_cv_var_int_timezone" = xyes ; then
12320 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
12324 $as_echo_n "checking types of arguments for accept()... " >&6; }
12325 if ${ac_cv_func_accept_return+:} false; then :
12326 $as_echo_n "(cached) " >&6
12328 if ${ac_cv_func_accept_arg1+:} false; then :
12329 $as_echo_n "(cached) " >&6
12331 if ${ac_cv_func_accept_arg2+:} false; then :
12332 $as_echo_n "(cached) " >&6
12334 if ${ac_cv_func_accept_arg3+:} false; then :
12335 $as_echo_n "(cached) " >&6
12337 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
12338 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
12339 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
12340 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343 #ifdef HAVE_SYS_TYPES_H
12344 #include <sys/types.h>
12346 #ifdef HAVE_SYS_SOCKET_H
12347 #include <sys/socket.h>
12349 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
12351 if ac_fn_c_try_compile "$LINENO"; then :
12352 ac_not_found=no; break 4
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 if test "$ac_not_found" = yes; then
12362 as_fn_error $? "could not determine argument types" "$LINENO" 5
12364 if test "$ac_cv_func_accept_arg3" = "void"; then
12365 ac_cv_func_accept_arg3=int
12375 { $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
12376 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
12378 cat >>confdefs.h <<_ACEOF
12379 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
12383 cat >>confdefs.h <<_ACEOF
12384 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
12388 cat >>confdefs.h <<_ACEOF
12389 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
12393 cat >>confdefs.h <<_ACEOF
12394 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
12399 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
12400 if ${pgac_cv_func_gettimeofday_1arg+:} false; then :
12401 $as_echo_n "(cached) " >&6
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12405 #include <sys/time.h>
12409 struct timeval *tp;
12410 struct timezone *tzp;
12411 gettimeofday(tp,tzp);
12416 if ac_fn_c_try_compile "$LINENO"; then :
12417 pgac_cv_func_gettimeofday_1arg=no
12419 pgac_cv_func_gettimeofday_1arg=yes
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
12424 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
12425 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
12427 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
12432 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
12433 if ${pgac_cv_func_wcstombs_l+:} false; then :
12434 $as_echo_n "(cached) " >&6
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12438 #include <stdlib.h>
12439 #include <locale.h>
12450 if ac_fn_c_try_compile "$LINENO"; then :
12451 pgac_cv_func_wcstombs_l='yes'
12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h. */
12455 #include <stdlib.h>
12456 #include <locale.h>
12457 #include <xlocale.h>
12468 if ac_fn_c_try_compile "$LINENO"; then :
12469 pgac_cv_func_wcstombs_l='yes (in xlocale.h)'
12471 pgac_cv_func_wcstombs_l='no'
12473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
12478 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
12479 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
12481 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
12485 # Some versions of libedit contain strlcpy(), setproctitle(), and other
12486 # symbols that that library has no business exposing to the world. Pending
12487 # acquisition of a clue by those developers, ignore libedit (including its
12488 # possible alias of libreadline) while checking for everything else.
12489 LIBS_including_readline="$LIBS"
12490 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
12492 for ac_func in cbrt 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
12494 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12495 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12496 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12497 cat >>confdefs.h <<_ACEOF
12498 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12505 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
12506 if test "x$ac_cv_func_fseeko" = xyes; then :
12507 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12510 case " $LIBOBJS " in
12511 *" fseeko.$ac_objext "* ) ;;
12512 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
12520 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
12521 # Mingw uses macros to access Win32 API calls
12524 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12526 ac_cv_func_fseeko=yes;;
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12529 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12530 if ${ac_cv_sys_largefile_source+:} false; then :
12531 $as_echo_n "(cached) " >&6
12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h. */
12536 #include <sys/types.h> /* for off_t */
12541 int (*fp) (FILE *, off_t, int) = fseeko;
12542 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12547 if ac_fn_c_try_link "$LINENO"; then :
12548 ac_cv_sys_largefile_source=no; break
12550 rm -f core conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12554 #define _LARGEFILE_SOURCE 1
12555 #include <sys/types.h> /* for off_t */
12560 int (*fp) (FILE *, off_t, int) = fseeko;
12561 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12566 if ac_fn_c_try_link "$LINENO"; then :
12567 ac_cv_sys_largefile_source=1; break
12569 rm -f core conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12571 ac_cv_sys_largefile_source=unknown
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12576 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12577 case $ac_cv_sys_largefile_source in #(
12580 cat >>confdefs.h <<_ACEOF
12581 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12587 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12588 # in glibc 2.1.3, but that breaks too many other things.
12589 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12590 if test $ac_cv_sys_largefile_source != unknown; then
12592 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12598 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
12599 # by calling it, 2009-04-02
12600 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
12601 if test "$PORTNAME" != "solaris"; then
12602 for ac_func in posix_fadvise
12604 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
12605 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
12606 cat >>confdefs.h <<_ACEOF
12607 #define HAVE_POSIX_FADVISE 1
12613 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
12615 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
12621 cat >>confdefs.h <<_ACEOF
12622 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
12627 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
12629 if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
12635 cat >>confdefs.h <<_ACEOF
12636 #define HAVE_DECL_FDATASYNC $ac_have_decl
12639 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
12640 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
12646 cat >>confdefs.h <<_ACEOF
12647 #define HAVE_DECL_STRLCAT $ac_have_decl
12649 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
12650 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
12656 cat >>confdefs.h <<_ACEOF
12657 #define HAVE_DECL_STRLCPY $ac_have_decl
12660 # This is probably only present on macOS, but may as well check always
12661 ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
12663 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then :
12669 cat >>confdefs.h <<_ACEOF
12670 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
12675 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
12676 #include <netinet/in.h>
12678 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
12680 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
12688 $as_echo_n "checking for PS_STRINGS... " >&6; }
12689 if ${pgac_cv_var_PS_STRINGS+:} false; then :
12690 $as_echo_n "(cached) " >&6
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h. */
12694 #include <machine/vmparam.h>
12695 #include <sys/exec.h>
12700 PS_STRINGS->ps_nargvstr = 1;
12701 PS_STRINGS->ps_argvstr = "foo";
12706 if ac_fn_c_try_link "$LINENO"; then :
12707 pgac_cv_var_PS_STRINGS=yes
12709 pgac_cv_var_PS_STRINGS=no
12711 rm -f core conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
12715 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
12716 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
12718 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
12723 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
12724 # is missing. Yes, there are machines that have only one. We may
12725 # also decide to use snprintf.c if snprintf() is present but does not
12726 # have all the features we need --- see below.
12728 if test "$PORTNAME" = "win32"; then
12729 # Win32 gets snprintf.c built unconditionally.
12731 # To properly translate all NLS languages strings, we must support the
12732 # *printf() %$ format, which allows *printf() arguments to be selected
12733 # by position in the translated string.
12735 # libintl versions < 0.13 use the native *printf() functions, and Win32
12736 # *printf() doesn't understand %$, so we must use our /port versions,
12737 # which do understand %$. libintl versions >= 0.13 include their own
12738 # *printf versions on Win32. The libintl 0.13 release note text is:
12740 # C format strings with positions, as they arise when a translator
12741 # needs to reorder a sentence, are now supported on all platforms.
12742 # On those few platforms (NetBSD and Woe32) for which the native
12743 # printf()/fprintf()/... functions don't support such format
12744 # strings, replacements are provided through <libintl.h>.
12746 # We could use libintl >= 0.13's *printf() if we were sure that we had
12747 # a litint >= 0.13 at runtime, but seeing that there is no clean way
12748 # to guarantee that, it is best to just use our own, so we are sure to
12749 # get %$ support. In include/port.h we disable the *printf() macros
12750 # that might have been defined by libintl.
12752 # We do this unconditionally whether NLS is used or not so we are sure
12753 # that all Win32 libraries and binaries behave the same.
12754 pgac_need_repl_snprintf=yes
12756 pgac_need_repl_snprintf=no
12757 for ac_func in snprintf
12759 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
12760 if test "x$ac_cv_func_snprintf" = xyes; then :
12761 cat >>confdefs.h <<_ACEOF
12762 #define HAVE_SNPRINTF 1
12766 pgac_need_repl_snprintf=yes
12770 for ac_func in vsnprintf
12772 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
12773 if test "x$ac_cv_func_vsnprintf" = xyes; then :
12774 cat >>confdefs.h <<_ACEOF
12775 #define HAVE_VSNPRINTF 1
12779 pgac_need_repl_snprintf=yes
12786 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
12787 # include/c.h will provide declarations. Note this is a separate test
12788 # from whether the functions exist in the C library --- there are
12789 # systems that have the functions but don't bother to declare them :-(
12791 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12792 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12798 cat >>confdefs.h <<_ACEOF
12799 #define HAVE_DECL_SNPRINTF $ac_have_decl
12801 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12802 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12808 cat >>confdefs.h <<_ACEOF
12809 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
12815 $as_echo_n "checking for isinf... " >&6; }
12816 if ${ac_cv_func_isinf+:} false; then :
12817 $as_echo_n "(cached) " >&6
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12823 double glob_double;
12828 return isinf(glob_double) ? 0 : 1;
12833 if ac_fn_c_try_link "$LINENO"; then :
12834 ac_cv_func_isinf=yes
12836 ac_cv_func_isinf=no
12838 rm -f core conftest.err conftest.$ac_objext \
12839 conftest$ac_exeext conftest.$ac_ext
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
12842 $as_echo "$ac_cv_func_isinf" >&6; }
12844 if test $ac_cv_func_isinf = yes ; then
12846 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
12849 case " $LIBOBJS " in
12850 *" isinf.$ac_objext "* ) ;;
12851 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
12855 # Look for a way to implement a substitute for isinf()
12856 for ac_func in fpclass fp_class fp_class_d class
12858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12859 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12860 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12861 cat >>confdefs.h <<_ACEOF
12862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12870 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
12871 if test "x$ac_cv_func_crypt" = xyes; then :
12872 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
12875 case " $LIBOBJS " in
12876 *" crypt.$ac_objext "* ) ;;
12877 *) LIBOBJS="$LIBOBJS crypt.$ac_objext"
12883 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
12884 if test "x$ac_cv_func_fls" = xyes; then :
12885 $as_echo "#define HAVE_FLS 1" >>confdefs.h
12888 case " $LIBOBJS " in
12889 *" fls.$ac_objext "* ) ;;
12890 *) LIBOBJS="$LIBOBJS fls.$ac_objext"
12896 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
12897 if test "x$ac_cv_func_getopt" = xyes; then :
12898 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
12901 case " $LIBOBJS " in
12902 *" getopt.$ac_objext "* ) ;;
12903 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
12909 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
12910 if test "x$ac_cv_func_getrusage" = xyes; then :
12911 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
12914 case " $LIBOBJS " in
12915 *" getrusage.$ac_objext "* ) ;;
12916 *) LIBOBJS="$LIBOBJS getrusage.$ac_objext"
12922 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
12923 if test "x$ac_cv_func_inet_aton" = xyes; then :
12924 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
12927 case " $LIBOBJS " in
12928 *" inet_aton.$ac_objext "* ) ;;
12929 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
12935 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
12936 if test "x$ac_cv_func_mkdtemp" = xyes; then :
12937 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
12940 case " $LIBOBJS " in
12941 *" mkdtemp.$ac_objext "* ) ;;
12942 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
12948 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
12949 if test "x$ac_cv_func_random" = xyes; then :
12950 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
12953 case " $LIBOBJS " in
12954 *" random.$ac_objext "* ) ;;
12955 *) LIBOBJS="$LIBOBJS random.$ac_objext"
12961 ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
12962 if test "x$ac_cv_func_rint" = xyes; then :
12963 $as_echo "#define HAVE_RINT 1" >>confdefs.h
12966 case " $LIBOBJS " in
12967 *" rint.$ac_objext "* ) ;;
12968 *) LIBOBJS="$LIBOBJS rint.$ac_objext"
12974 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
12975 if test "x$ac_cv_func_srandom" = xyes; then :
12976 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
12979 case " $LIBOBJS " in
12980 *" srandom.$ac_objext "* ) ;;
12981 *) LIBOBJS="$LIBOBJS srandom.$ac_objext"
12987 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
12988 if test "x$ac_cv_func_strerror" = xyes; then :
12989 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
12992 case " $LIBOBJS " in
12993 *" strerror.$ac_objext "* ) ;;
12994 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
13000 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
13001 if test "x$ac_cv_func_strlcat" = xyes; then :
13002 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
13005 case " $LIBOBJS " in
13006 *" strlcat.$ac_objext "* ) ;;
13007 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
13013 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
13014 if test "x$ac_cv_func_strlcpy" = xyes; then :
13015 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
13018 case " $LIBOBJS " in
13019 *" strlcpy.$ac_objext "* ) ;;
13020 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
13030 # Windows uses a specialised env handler
13031 # and doesn't need a replacement getpeereid because it doesn't use
13035 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
13038 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
13040 ac_cv_func_unsetenv=yes
13041 ac_cv_func_getpeereid=yes;;
13043 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
13044 if test "x$ac_cv_func_unsetenv" = xyes; then :
13045 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
13048 case " $LIBOBJS " in
13049 *" unsetenv.$ac_objext "* ) ;;
13050 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
13056 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
13057 if test "x$ac_cv_func_getpeereid" = xyes; then :
13058 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
13061 case " $LIBOBJS " in
13062 *" getpeereid.$ac_objext "* ) ;;
13063 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
13073 # System's version of getaddrinfo(), if any, may be used only if we found
13074 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
13075 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
13076 if test x"$ac_cv_type_struct_addrinfo" = xyes && \
13077 test "$PORTNAME" != "win32"; then
13078 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13079 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13080 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13083 case " $LIBOBJS " in
13084 *" getaddrinfo.$ac_objext "* ) ;;
13085 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
13093 case " $LIBOBJS " in
13094 *" getaddrinfo.$ac_objext "* ) ;;
13095 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
13101 # Similarly, use system's getopt_long() only if system provides struct option.
13102 if test x"$ac_cv_type_struct_option" = xyes ; then
13103 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
13104 if test "x$ac_cv_func_getopt_long" = xyes; then :
13105 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
13108 case " $LIBOBJS " in
13109 *" getopt_long.$ac_objext "* ) ;;
13110 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13118 case " $LIBOBJS " in
13119 *" getopt_long.$ac_objext "* ) ;;
13120 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13126 # Solaris' getopt() doesn't do what we want for long options, so always use
13127 # our version on that platform.
13128 if test "$PORTNAME" = "solaris"; then
13129 case " $LIBOBJS " in
13130 *" getopt.$ac_objext "* ) ;;
13131 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
13137 # mingw has adopted a GNU-centric interpretation of optind/optreset,
13138 # so always use our version on Windows.
13139 if test "$PORTNAME" = "win32"; then
13140 case " $LIBOBJS " in
13141 *" getopt.$ac_objext "* ) ;;
13142 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
13146 case " $LIBOBJS " in
13147 *" getopt_long.$ac_objext "* ) ;;
13148 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13154 # Win32 (really MinGW) support
13155 if test "$PORTNAME" = "win32"; then
13156 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13157 if test "x$ac_cv_func_gettimeofday" = xyes; then :
13158 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
13161 case " $LIBOBJS " in
13162 *" gettimeofday.$ac_objext "* ) ;;
13163 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
13170 case " $LIBOBJS " in
13171 *" dirmod.$ac_objext "* ) ;;
13172 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
13176 case " $LIBOBJS " in
13177 *" kill.$ac_objext "* ) ;;
13178 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
13182 case " $LIBOBJS " in
13183 *" open.$ac_objext "* ) ;;
13184 *) LIBOBJS="$LIBOBJS open.$ac_objext"
13188 case " $LIBOBJS " in
13189 *" system.$ac_objext "* ) ;;
13190 *) LIBOBJS="$LIBOBJS system.$ac_objext"
13194 case " $LIBOBJS " in
13195 *" win32env.$ac_objext "* ) ;;
13196 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
13200 case " $LIBOBJS " in
13201 *" win32error.$ac_objext "* ) ;;
13202 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
13206 case " $LIBOBJS " in
13207 *" win32security.$ac_objext "* ) ;;
13208 *) LIBOBJS="$LIBOBJS win32security.$ac_objext"
13212 case " $LIBOBJS " in
13213 *" win32setlocale.$ac_objext "* ) ;;
13214 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
13219 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
13221 ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
13222 #define WIN32_LEAN_AND_MEAN
13223 #include <windows.h>
13224 #include <string.h>
13225 #include <dbghelp.h>
13227 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
13229 cat >>confdefs.h <<_ACEOF
13230 #define HAVE_MINIDUMP_TYPE 1
13233 pgac_minidump_type=yes
13235 pgac_minidump_type=no
13239 if test x"$pgac_minidump_type" = x"yes" ; then
13240 have_win32_dbghelp=yes
13243 have_win32_dbghelp=no
13247 # Cygwin needs only a bit of that
13248 if test "$PORTNAME" = "cygwin"; then
13249 case " $LIBOBJS " in
13250 *" dirmod.$ac_objext "* ) ;;
13251 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
13257 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13258 /* NetBSD declares sys_siglist in unistd.h. */
13259 #ifdef HAVE_UNISTD_H
13260 # include <unistd.h>
13264 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13270 cat >>confdefs.h <<_ACEOF
13271 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13275 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
13276 if test "x$ac_cv_func_syslog" = xyes; then :
13277 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
13278 if test "x$ac_cv_header_syslog_h" = xyes; then :
13280 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
13289 $as_echo_n "checking for opterr... " >&6; }
13290 if ${pgac_cv_var_int_opterr+:} false; then :
13291 $as_echo_n "(cached) " >&6
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13295 #include <unistd.h>
13299 extern int opterr; opterr = 1;
13304 if ac_fn_c_try_link "$LINENO"; then :
13305 pgac_cv_var_int_opterr=yes
13307 pgac_cv_var_int_opterr=no
13309 rm -f core conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext conftest.$ac_ext
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
13313 $as_echo "$pgac_cv_var_int_opterr" >&6; }
13314 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
13316 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13321 $as_echo_n "checking for optreset... " >&6; }
13322 if ${pgac_cv_var_int_optreset+:} false; then :
13323 $as_echo_n "(cached) " >&6
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13327 #include <unistd.h>
13331 extern int optreset; optreset = 1;
13336 if ac_fn_c_try_link "$LINENO"; then :
13337 pgac_cv_var_int_optreset=yes
13339 pgac_cv_var_int_optreset=no
13341 rm -f core conftest.err conftest.$ac_objext \
13342 conftest$ac_exeext conftest.$ac_ext
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
13345 $as_echo "$pgac_cv_var_int_optreset" >&6; }
13346 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
13348 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
13352 for ac_func in strtoll strtoq
13354 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13355 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13356 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13357 cat >>confdefs.h <<_ACEOF
13358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13364 for ac_func in strtoull strtouq
13366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13367 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13368 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13369 cat >>confdefs.h <<_ACEOF
13370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13377 # Lastly, restore full LIBS list and check for readline/libedit symbols
13378 LIBS="$LIBS_including_readline"
13380 if test "$with_readline" = yes; then
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
13382 $as_echo_n "checking for rl_completion_append_character... " >&6; }
13383 if ${pgac_cv_var_rl_completion_append_character+:} false; then :
13384 $as_echo_n "(cached) " >&6
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13389 #ifdef HAVE_READLINE_READLINE_H
13390 # include <readline/readline.h>
13391 #elif defined(HAVE_READLINE_H)
13392 # include <readline.h>
13398 rl_completion_append_character = 'x';
13403 if ac_fn_c_try_link "$LINENO"; then :
13404 pgac_cv_var_rl_completion_append_character=yes
13406 pgac_cv_var_rl_completion_append_character=no
13408 rm -f core conftest.err conftest.$ac_objext \
13409 conftest$ac_exeext conftest.$ac_ext
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
13412 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
13413 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
13415 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
13418 for ac_func in rl_completion_matches rl_filename_completion_function rl_reset_screen_size
13420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13421 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13422 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13423 cat >>confdefs.h <<_ACEOF
13424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13430 for ac_func in append_history history_truncate_file
13432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13433 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13434 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13435 cat >>confdefs.h <<_ACEOF
13436 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13445 # This test makes sure that run tests work at all. Sometimes a shared
13446 # library is found by the linker, but the runtime linker can't find it.
13447 # This check should come after all modifications of compiler or linker
13448 # variables, and before any other run tests.
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
13450 $as_echo_n "checking test program... " >&6; }
13451 if test "$cross_compiling" = yes; then :
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
13453 $as_echo "cross-compiling" >&6; }
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13457 int main() { return 0; }
13459 if ac_fn_c_try_run "$LINENO"; then :
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13461 $as_echo "ok" >&6; }
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13464 $as_echo "failed" >&6; }
13466 Could not execute a simple test program. This may be a problem
13467 related to locating shared libraries. Check the file 'config.log'
13468 for the exact reason." "$LINENO" 5
13470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13471 conftest.$ac_objext conftest.beam conftest.$ac_ext
13475 # --------------------
13476 # Run tests below here
13477 # --------------------
13479 # Force use of our snprintf if system's doesn't do arg control
13480 # See comment above at snprintf test for details.
13481 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports argument control" >&5
13483 $as_echo_n "checking whether snprintf supports argument control... " >&6; }
13484 if ${pgac_cv_snprintf_arg_control+:} false; then :
13485 $as_echo_n "(cached) " >&6
13487 if test "$cross_compiling" = yes; then :
13488 pgac_cv_snprintf_arg_control=cross
13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h. */
13493 #include <string.h>
13499 /* can it swap arguments? */
13500 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
13501 if (strcmp(buf, "4 3") != 0)
13506 if ac_fn_c_try_run "$LINENO"; then :
13507 pgac_cv_snprintf_arg_control=yes
13509 pgac_cv_snprintf_arg_control=no
13511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13512 conftest.$ac_objext conftest.beam conftest.$ac_ext
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_arg_control" >&5
13518 $as_echo "$pgac_cv_snprintf_arg_control" >&6; }
13520 if test $pgac_cv_snprintf_arg_control != yes ; then
13521 pgac_need_repl_snprintf=yes
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
13529 $as_echo_n "checking whether long int is 64 bits... " >&6; }
13530 if ${pgac_cv_type_long_int_64+:} false; then :
13531 $as_echo_n "(cached) " >&6
13533 if test "$cross_compiling" = yes; then :
13534 # If cross-compiling, check the size reported by the compiler and
13535 # trust that the arithmetic works.
13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537 /* end confdefs.h. */
13542 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13543 test_array [0] = 0;
13544 return test_array [0];
13550 if ac_fn_c_try_compile "$LINENO"; then :
13551 pgac_cv_type_long_int_64=yes
13553 pgac_cv_type_long_int_64=no
13555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 typedef long int ac_int64;
13562 * These are globals to discourage the compiler from folding all the
13563 * arithmetic tests down to compile-time constants.
13565 ac_int64 a = 20000001;
13566 ac_int64 b = 40000005;
13568 int does_int64_work()
13572 if (sizeof(ac_int64) != 8)
13573 return 0; /* definitely not the right size */
13575 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13585 return (! does_int64_work());
13588 if ac_fn_c_try_run "$LINENO"; then :
13589 pgac_cv_type_long_int_64=yes
13591 pgac_cv_type_long_int_64=no
13593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13594 conftest.$ac_objext conftest.beam conftest.$ac_ext
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
13599 $as_echo "$pgac_cv_type_long_int_64" >&6; }
13601 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13602 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13604 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
13609 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
13610 pg_int64_type="long int"
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
13613 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
13614 if ${pgac_cv_type_long_long_int_64+:} false; then :
13615 $as_echo_n "(cached) " >&6
13617 if test "$cross_compiling" = yes; then :
13618 # If cross-compiling, check the size reported by the compiler and
13619 # trust that the arithmetic works.
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13626 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13627 test_array [0] = 0;
13628 return test_array [0];
13634 if ac_fn_c_try_compile "$LINENO"; then :
13635 pgac_cv_type_long_long_int_64=yes
13637 pgac_cv_type_long_long_int_64=no
13639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13643 typedef long long int ac_int64;
13646 * These are globals to discourage the compiler from folding all the
13647 * arithmetic tests down to compile-time constants.
13649 ac_int64 a = 20000001;
13650 ac_int64 b = 40000005;
13652 int does_int64_work()
13656 if (sizeof(ac_int64) != 8)
13657 return 0; /* definitely not the right size */
13659 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13669 return (! does_int64_work());
13672 if ac_fn_c_try_run "$LINENO"; then :
13673 pgac_cv_type_long_long_int_64=yes
13675 pgac_cv_type_long_long_int_64=no
13677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13678 conftest.$ac_objext conftest.beam conftest.$ac_ext
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
13683 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
13685 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13686 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13688 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
13692 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13693 pg_int64_type="long long int"
13695 as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5
13700 cat >>confdefs.h <<_ACEOF
13701 #define PG_INT64_TYPE $pg_int64_type
13706 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13710 #define INT64CONST(x) x##LL
13711 long long int foo = INT64CONST(0x1234567890123456);
13714 if ac_fn_c_try_compile "$LINENO"; then :
13716 $as_echo "#define HAVE_LL_CONSTANTS 1" >>confdefs.h
13719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13723 # If we found "long int" is 64 bits, assume snprintf handles it. If
13724 # we found we need to use "long long int", better check. We cope with
13725 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
13726 # work, fall back to our own snprintf emulation (which we know uses %lld).
13728 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13729 if test $pgac_need_repl_snprintf = no; then
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf length modifier for long long int" >&5
13731 $as_echo_n "checking snprintf length modifier for long long int... " >&6; }
13732 if ${pgac_cv_snprintf_long_long_int_modifier+:} false; then :
13733 $as_echo_n "(cached) " >&6
13735 for pgac_modifier in 'll' 'q' 'I64'; do
13736 if test "$cross_compiling" = yes; then :
13737 pgac_cv_snprintf_long_long_int_modifier=cross; break
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13742 #include <string.h>
13743 typedef long long int ac_int64;
13744 #define INT64_FORMAT "%${pgac_modifier}d"
13746 ac_int64 a = 20000001;
13747 ac_int64 b = 40000005;
13749 int does_int64_snprintf_work()
13754 if (sizeof(ac_int64) != 8)
13755 return 0; /* doesn't look like the right size */
13758 snprintf(buf, 100, INT64_FORMAT, c);
13759 if (strcmp(buf, "800000140000005") != 0)
13760 return 0; /* either multiply or snprintf is busted */
13766 return (! does_int64_snprintf_work());
13769 if ac_fn_c_try_run "$LINENO"; then :
13770 pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break
13772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13773 conftest.$ac_objext conftest.beam conftest.$ac_ext
13779 LONG_LONG_INT_MODIFIER=''
13781 case $pgac_cv_snprintf_long_long_int_modifier in
13782 cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5
13783 $as_echo "cannot test (not on host machine)" >&6; };;
13784 ?*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_modifier" >&5
13785 $as_echo "$pgac_cv_snprintf_long_long_int_modifier" >&6; }
13786 LONG_LONG_INT_MODIFIER=$pgac_cv_snprintf_long_long_int_modifier;;
13787 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13788 $as_echo "none" >&6; };;
13790 if test "$LONG_LONG_INT_MODIFIER" = ""; then
13791 # Force usage of our own snprintf, since system snprintf is broken
13792 pgac_need_repl_snprintf=yes
13793 LONG_LONG_INT_MODIFIER='ll'
13796 # Here if we previously decided we needed to use our own snprintf
13797 LONG_LONG_INT_MODIFIER='ll'
13800 # Here if we are not using 'long long int' at all
13801 LONG_LONG_INT_MODIFIER='l'
13804 INT64_MODIFIER="\"$LONG_LONG_INT_MODIFIER\""
13807 cat >>confdefs.h <<_ACEOF
13808 #define INT64_MODIFIER $INT64_MODIFIER
13812 # Also force use of our snprintf if the system's doesn't support the %z flag.
13813 if test "$pgac_need_repl_snprintf" = no; then
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports the %z modifier" >&5
13815 $as_echo_n "checking whether snprintf supports the %z modifier... " >&6; }
13816 if ${pgac_cv_snprintf_size_t_support+:} false; then :
13817 $as_echo_n "(cached) " >&6
13819 if test "$cross_compiling" = yes; then :
13820 pgac_cv_snprintf_size_t_support=cross
13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h. */
13825 #include <string.h>
13833 * Print the largest unsigned number fitting in a size_t using both %zu
13834 * and the previously-determined format for 64-bit integers. Note that
13835 * we don't run this code unless we know snprintf handles 64-bit ints.
13837 bufz[0] = '\0'; /* in case snprintf fails to emit anything */
13838 snprintf(bufz, sizeof(bufz), "%zu", ~((size_t) 0));
13839 snprintf(buf64, sizeof(buf64), "%" INT64_MODIFIER "u",
13840 (unsigned PG_INT64_TYPE) ~((size_t) 0));
13841 if (strcmp(bufz, buf64) != 0)
13846 if ac_fn_c_try_run "$LINENO"; then :
13847 pgac_cv_snprintf_size_t_support=yes
13849 pgac_cv_snprintf_size_t_support=no
13851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13852 conftest.$ac_objext conftest.beam conftest.$ac_ext
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_size_t_support" >&5
13858 $as_echo "$pgac_cv_snprintf_size_t_support" >&6; }
13860 if test "$pgac_cv_snprintf_size_t_support" != yes; then
13861 pgac_need_repl_snprintf=yes
13865 # Now we have checked all the reasons to replace snprintf
13866 if test $pgac_need_repl_snprintf = yes; then
13868 $as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h
13870 case " $LIBOBJS " in
13871 *" snprintf.$ac_objext "* ) ;;
13872 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13878 # Check size of void *, size_t (enables tweaks for > 32bit address space)
13879 # The cast to long int works around a bug in the HP C Compiler
13880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13882 # This bug is HP SR number 8606223364.
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13884 $as_echo_n "checking size of void *... " >&6; }
13885 if ${ac_cv_sizeof_void_p+:} false; then :
13886 $as_echo_n "(cached) " >&6
13888 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13891 if test "$ac_cv_type_void_p" = yes; then
13892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13894 as_fn_error 77 "cannot compute sizeof (void *)
13895 See \`config.log' for more details" "$LINENO" 5; }
13897 ac_cv_sizeof_void_p=0
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13903 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13907 cat >>confdefs.h <<_ACEOF
13908 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13912 # The cast to long int works around a bug in the HP C Compiler
13913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13915 # This bug is HP SR number 8606223364.
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13917 $as_echo_n "checking size of size_t... " >&6; }
13918 if ${ac_cv_sizeof_size_t+:} false; then :
13919 $as_echo_n "(cached) " >&6
13921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13924 if test "$ac_cv_type_size_t" = yes; then
13925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13927 as_fn_error 77 "cannot compute sizeof (size_t)
13928 See \`config.log' for more details" "$LINENO" 5; }
13930 ac_cv_sizeof_size_t=0
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13936 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13940 cat >>confdefs.h <<_ACEOF
13941 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13945 # The cast to long int works around a bug in the HP C Compiler
13946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13948 # This bug is HP SR number 8606223364.
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13950 $as_echo_n "checking size of long... " >&6; }
13951 if ${ac_cv_sizeof_long+:} false; then :
13952 $as_echo_n "(cached) " >&6
13954 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13957 if test "$ac_cv_type_long" = yes; then
13958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13960 as_fn_error 77 "cannot compute sizeof (long)
13961 See \`config.log' for more details" "$LINENO" 5; }
13963 ac_cv_sizeof_long=0
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13969 $as_echo "$ac_cv_sizeof_long" >&6; }
13973 cat >>confdefs.h <<_ACEOF
13974 #define SIZEOF_LONG $ac_cv_sizeof_long
13979 # Decide whether float4 is passed by value: user-selectable, enabled by default
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
13981 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
13984 # Check whether --enable-float4-byval was given.
13985 if test "${enable_float4_byval+set}" = set; then :
13986 enableval=$enable_float4_byval;
13990 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
13992 float4passbyval=true
13995 float4passbyval=false
13998 as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
14003 enable_float4_byval=yes
14005 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
14007 float4passbyval=true
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
14012 $as_echo "$enable_float4_byval" >&6; }
14014 cat >>confdefs.h <<_ACEOF
14015 #define FLOAT4PASSBYVAL $float4passbyval
14019 # Decide whether float8 is passed by value.
14020 # Note: this setting also controls int8 and related types such as timestamp.
14021 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
14022 # If not, trying to select it is an error.
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
14024 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
14025 if test $ac_cv_sizeof_void_p -ge 8 ; then
14028 # Check whether --enable-float8-byval was given.
14029 if test "${enable_float8_byval+set}" = set; then :
14030 enableval=$enable_float8_byval;
14039 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
14044 enable_float8_byval=yes
14052 # Check whether --enable-float8-byval was given.
14053 if test "${enable_float8_byval+set}" = set; then :
14054 enableval=$enable_float8_byval;
14063 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
14068 enable_float8_byval=no
14073 if test "$enable_float8_byval" = yes ; then
14074 as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
14077 if test "$enable_float8_byval" = yes ; then
14079 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
14081 float8passbyval=true
14083 float8passbyval=false
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
14086 $as_echo "$enable_float8_byval" >&6; }
14088 cat >>confdefs.h <<_ACEOF
14089 #define FLOAT8PASSBYVAL $float8passbyval
14093 # Determine memory alignment requirements for the basic C data types.
14095 # The cast to long int works around a bug in the HP C Compiler,
14096 # see AC_CHECK_SIZEOF for more information.
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
14098 $as_echo_n "checking alignment of short... " >&6; }
14099 if ${ac_cv_alignof_short+:} false; then :
14100 $as_echo_n "(cached) " >&6
14102 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
14104 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14106 typedef struct { char x; short y; } ac__type_alignof_;"; then :
14109 if test "$ac_cv_type_short" = yes; then
14110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14112 as_fn_error 77 "cannot compute alignment of short
14113 See \`config.log' for more details" "$LINENO" 5; }
14115 ac_cv_alignof_short=0
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
14121 $as_echo "$ac_cv_alignof_short" >&6; }
14125 cat >>confdefs.h <<_ACEOF
14126 #define ALIGNOF_SHORT $ac_cv_alignof_short
14130 # The cast to long int works around a bug in the HP C Compiler,
14131 # see AC_CHECK_SIZEOF for more information.
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
14133 $as_echo_n "checking alignment of int... " >&6; }
14134 if ${ac_cv_alignof_int+:} false; then :
14135 $as_echo_n "(cached) " >&6
14137 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
14139 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14141 typedef struct { char x; int y; } ac__type_alignof_;"; then :
14144 if test "$ac_cv_type_int" = yes; then
14145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14147 as_fn_error 77 "cannot compute alignment of int
14148 See \`config.log' for more details" "$LINENO" 5; }
14150 ac_cv_alignof_int=0
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
14156 $as_echo "$ac_cv_alignof_int" >&6; }
14160 cat >>confdefs.h <<_ACEOF
14161 #define ALIGNOF_INT $ac_cv_alignof_int
14165 # The cast to long int works around a bug in the HP C Compiler,
14166 # see AC_CHECK_SIZEOF for more information.
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
14168 $as_echo_n "checking alignment of long... " >&6; }
14169 if ${ac_cv_alignof_long+:} false; then :
14170 $as_echo_n "(cached) " >&6
14172 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
14174 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14176 typedef struct { char x; long y; } ac__type_alignof_;"; then :
14179 if test "$ac_cv_type_long" = yes; then
14180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14182 as_fn_error 77 "cannot compute alignment of long
14183 See \`config.log' for more details" "$LINENO" 5; }
14185 ac_cv_alignof_long=0
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
14191 $as_echo "$ac_cv_alignof_long" >&6; }
14195 cat >>confdefs.h <<_ACEOF
14196 #define ALIGNOF_LONG $ac_cv_alignof_long
14200 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14201 # The cast to long int works around a bug in the HP C Compiler,
14202 # see AC_CHECK_SIZEOF for more information.
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
14204 $as_echo_n "checking alignment of long long int... " >&6; }
14205 if ${ac_cv_alignof_long_long_int+:} false; then :
14206 $as_echo_n "(cached) " >&6
14208 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
14210 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14212 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
14215 if test "$ac_cv_type_long_long_int" = yes; then
14216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14218 as_fn_error 77 "cannot compute alignment of long long int
14219 See \`config.log' for more details" "$LINENO" 5; }
14221 ac_cv_alignof_long_long_int=0
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
14227 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
14231 cat >>confdefs.h <<_ACEOF
14232 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
14237 # The cast to long int works around a bug in the HP C Compiler,
14238 # see AC_CHECK_SIZEOF for more information.
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
14240 $as_echo_n "checking alignment of double... " >&6; }
14241 if ${ac_cv_alignof_double+:} false; then :
14242 $as_echo_n "(cached) " >&6
14244 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
14246 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14248 typedef struct { char x; double y; } ac__type_alignof_;"; then :
14251 if test "$ac_cv_type_double" = yes; then
14252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14254 as_fn_error 77 "cannot compute alignment of double
14255 See \`config.log' for more details" "$LINENO" 5; }
14257 ac_cv_alignof_double=0
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
14263 $as_echo "$ac_cv_alignof_double" >&6; }
14267 cat >>confdefs.h <<_ACEOF
14268 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
14273 # Compute maximum alignment of any basic type.
14274 # We assume long's alignment is at least as strong as char, short, or int;
14275 # but we must check long long (if it exists) and double.
14277 MAX_ALIGNOF=$ac_cv_alignof_long
14278 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
14279 MAX_ALIGNOF=$ac_cv_alignof_double
14281 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
14282 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
14285 cat >>confdefs.h <<_ACEOF
14286 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14291 # Some platforms predefine the types int8, int16, etc. Only check
14292 # a (hopefully) representative subset.
14293 ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
14295 if test "x$ac_cv_type_int8" = xyes; then :
14297 cat >>confdefs.h <<_ACEOF
14298 #define HAVE_INT8 1
14303 ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
14305 if test "x$ac_cv_type_uint8" = xyes; then :
14307 cat >>confdefs.h <<_ACEOF
14308 #define HAVE_UINT8 1
14313 ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
14315 if test "x$ac_cv_type_int64" = xyes; then :
14317 cat >>confdefs.h <<_ACEOF
14318 #define HAVE_INT64 1
14323 ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
14325 if test "x$ac_cv_type_uint64" = xyes; then :
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_UINT64 1
14335 # Check for extensions offering the integer scalar type __int128.
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
14337 $as_echo_n "checking for __int128... " >&6; }
14338 if ${pgac_cv__128bit_int+:} false; then :
14339 $as_echo_n "(cached) " >&6
14341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342 /* end confdefs.h. */
14345 * These are globals to discourage the compiler from folding all the
14346 * arithmetic tests down to compile-time constants. We do not have
14347 * convenient support for 64bit literals at this point...
14349 __int128 a = 48828125;
14350 __int128 b = 97656255;
14357 a = (a << 12) + 1; /* 200000000001 */
14358 b = (b << 12) + 5; /* 400000000005 */
14359 /* use the most relevant arithmetic ops */
14362 /* return different values, to prevent optimizations */
14371 if ac_fn_c_try_link "$LINENO"; then :
14372 pgac_cv__128bit_int=yes
14374 pgac_cv__128bit_int=no
14376 rm -f core conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
14380 $as_echo "$pgac_cv__128bit_int" >&6; }
14381 if test x"$pgac_cv__128bit_int" = xyes ; then
14383 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
14387 # Check for various atomic operations now that we have checked how to declare
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
14390 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
14391 if ${pgac_cv_gcc_sync_char_tas+:} false; then :
14392 $as_echo_n "(cached) " >&6
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14401 __sync_lock_test_and_set(&lock, 1);
14402 __sync_lock_release(&lock);
14407 if ac_fn_c_try_link "$LINENO"; then :
14408 pgac_cv_gcc_sync_char_tas="yes"
14410 pgac_cv_gcc_sync_char_tas="no"
14412 rm -f core conftest.err conftest.$ac_objext \
14413 conftest$ac_exeext conftest.$ac_ext
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
14416 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
14417 if test x"$pgac_cv_gcc_sync_char_tas" = x"yes"; then
14419 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
14423 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
14424 if ${pgac_cv_gcc_sync_int32_tas+:} false; then :
14425 $as_echo_n "(cached) " >&6
14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h. */
14434 __sync_lock_test_and_set(&lock, 1);
14435 __sync_lock_release(&lock);
14440 if ac_fn_c_try_link "$LINENO"; then :
14441 pgac_cv_gcc_sync_int32_tas="yes"
14443 pgac_cv_gcc_sync_int32_tas="no"
14445 rm -f core conftest.err conftest.$ac_objext \
14446 conftest$ac_exeext conftest.$ac_ext
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
14449 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
14450 if test x"$pgac_cv_gcc_sync_int32_tas" = x"yes"; then
14452 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
14456 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
14457 if ${pgac_cv_gcc_sync_int32_cas+:} false; then :
14458 $as_echo_n "(cached) " >&6
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14467 __sync_val_compare_and_swap(&val, 0, 37);
14472 if ac_fn_c_try_link "$LINENO"; then :
14473 pgac_cv_gcc_sync_int32_cas="yes"
14475 pgac_cv_gcc_sync_int32_cas="no"
14477 rm -f core conftest.err conftest.$ac_objext \
14478 conftest$ac_exeext conftest.$ac_ext
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
14481 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
14482 if test x"$pgac_cv_gcc_sync_int32_cas" = x"yes"; then
14484 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
14488 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
14489 if ${pgac_cv_gcc_sync_int64_cas+:} false; then :
14490 $as_echo_n "(cached) " >&6
14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14498 PG_INT64_TYPE lock = 0;
14499 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
14504 if ac_fn_c_try_link "$LINENO"; then :
14505 pgac_cv_gcc_sync_int64_cas="yes"
14507 pgac_cv_gcc_sync_int64_cas="no"
14509 rm -f core conftest.err conftest.$ac_objext \
14510 conftest$ac_exeext conftest.$ac_ext
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
14513 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
14514 if test x"$pgac_cv_gcc_sync_int64_cas" = x"yes"; then
14516 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
14520 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
14521 if ${pgac_cv_gcc_atomic_int32_cas+:} false; then :
14522 $as_echo_n "(cached) " >&6
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14532 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
14537 if ac_fn_c_try_link "$LINENO"; then :
14538 pgac_cv_gcc_atomic_int32_cas="yes"
14540 pgac_cv_gcc_atomic_int32_cas="no"
14542 rm -f core conftest.err conftest.$ac_objext \
14543 conftest$ac_exeext conftest.$ac_ext
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
14546 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
14547 if test x"$pgac_cv_gcc_atomic_int32_cas" = x"yes"; then
14549 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
14553 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
14554 if ${pgac_cv_gcc_atomic_int64_cas+:} false; then :
14555 $as_echo_n "(cached) " >&6
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14563 PG_INT64_TYPE val = 0;
14564 PG_INT64_TYPE expect = 0;
14565 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
14570 if ac_fn_c_try_link "$LINENO"; then :
14571 pgac_cv_gcc_atomic_int64_cas="yes"
14573 pgac_cv_gcc_atomic_int64_cas="no"
14575 rm -f core conftest.err conftest.$ac_objext \
14576 conftest$ac_exeext conftest.$ac_ext
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
14579 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
14580 if test x"$pgac_cv_gcc_atomic_int64_cas" = x"yes"; then
14582 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
14587 # Check for x86 cpuid instruction
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
14589 $as_echo_n "checking for __get_cpuid... " >&6; }
14590 if ${pgac_cv__get_cpuid+:} false; then :
14591 $as_echo_n "(cached) " >&6
14593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14594 /* end confdefs.h. */
14599 unsigned int exx[4] = {0, 0, 0, 0};
14600 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
14606 if ac_fn_c_try_link "$LINENO"; then :
14607 pgac_cv__get_cpuid="yes"
14609 pgac_cv__get_cpuid="no"
14611 rm -f core conftest.err conftest.$ac_objext \
14612 conftest$ac_exeext conftest.$ac_ext
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
14615 $as_echo "$pgac_cv__get_cpuid" >&6; }
14616 if test x"$pgac_cv__get_cpuid" = x"yes"; then
14618 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
14623 $as_echo_n "checking for __cpuid... " >&6; }
14624 if ${pgac_cv__cpuid+:} false; then :
14625 $as_echo_n "(cached) " >&6
14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628 /* end confdefs.h. */
14629 #include <intrin.h>
14633 unsigned int exx[4] = {0, 0, 0, 0};
14634 __get_cpuid(exx[0], 1);
14640 if ac_fn_c_try_link "$LINENO"; then :
14641 pgac_cv__cpuid="yes"
14643 pgac_cv__cpuid="no"
14645 rm -f core conftest.err conftest.$ac_objext \
14646 conftest$ac_exeext conftest.$ac_ext
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
14649 $as_echo "$pgac_cv__cpuid" >&6; }
14650 if test x"$pgac_cv__cpuid" = x"yes"; then
14652 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
14656 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
14658 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
14659 # with the default compiler flags. If not, check if adding the -msse4.2
14660 # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
14662 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
14663 if ${pgac_cv_sse42_crc32_intrinsics_+:} false; then :
14664 $as_echo_n "(cached) " >&6
14666 pgac_save_CFLAGS=$CFLAGS
14667 CFLAGS="$pgac_save_CFLAGS "
14668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14669 /* end confdefs.h. */
14670 #include <nmmintrin.h>
14674 unsigned int crc = 0;
14675 crc = _mm_crc32_u8(crc, 0);
14676 crc = _mm_crc32_u32(crc, 0);
14677 /* return computed value, to prevent the above being optimized away */
14683 if ac_fn_c_try_link "$LINENO"; then :
14684 pgac_cv_sse42_crc32_intrinsics_=yes
14686 pgac_cv_sse42_crc32_intrinsics_=no
14688 rm -f core conftest.err conftest.$ac_objext \
14689 conftest$ac_exeext conftest.$ac_ext
14690 CFLAGS="$pgac_save_CFLAGS"
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
14693 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
14694 if test x"$pgac_cv_sse42_crc32_intrinsics_" = x"yes"; then
14696 pgac_sse42_crc32_intrinsics=yes
14699 if test x"$pgac_sse42_crc32_intrinsics" != x"yes"; then
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
14701 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
14702 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false; then :
14703 $as_echo_n "(cached) " >&6
14705 pgac_save_CFLAGS=$CFLAGS
14706 CFLAGS="$pgac_save_CFLAGS -msse4.2"
14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h. */
14709 #include <nmmintrin.h>
14713 unsigned int crc = 0;
14714 crc = _mm_crc32_u8(crc, 0);
14715 crc = _mm_crc32_u32(crc, 0);
14716 /* return computed value, to prevent the above being optimized away */
14722 if ac_fn_c_try_link "$LINENO"; then :
14723 pgac_cv_sse42_crc32_intrinsics__msse4_2=yes
14725 pgac_cv_sse42_crc32_intrinsics__msse4_2=no
14727 rm -f core conftest.err conftest.$ac_objext \
14728 conftest$ac_exeext conftest.$ac_ext
14729 CFLAGS="$pgac_save_CFLAGS"
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
14732 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
14733 if test x"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x"yes"; then
14734 CFLAGS_SSE42="-msse4.2"
14735 pgac_sse42_crc32_intrinsics=yes
14741 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
14742 # define __SSE4_2__ in that case.
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14751 #error __SSE4_2__ not defined
14758 if ac_fn_c_try_compile "$LINENO"; then :
14761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14763 # Select CRC-32C implementation.
14765 # If we are targeting a processor that has SSE 4.2 instructions, we can use the
14766 # special CRC instructions for calculating CRC-32C. If we're not targeting such
14767 # a processor, but we can nevertheless produce code that uses the SSE
14768 # intrinsics, perhaps with some extra CFLAGS, compile both implementations and
14769 # select which one to use at runtime, depending on whether SSE 4.2 is supported
14770 # by the processor we're running on.
14772 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
14773 # in the template or configure command line.
14774 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
14775 if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && test x"$SSE4_2_TARGETED" = x"1" ; then
14778 # the CPUID instruction is needed for the runtime check.
14779 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
14780 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK=1
14782 # fall back to slicing-by-8 algorithm which doesn't require any special
14784 USE_SLICING_BY_8_CRC32C=1
14789 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
14791 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
14792 if test x"$USE_SSE42_CRC32C" = x"1"; then
14794 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
14796 PG_CRC32C_OBJS="pg_crc32c_sse42.o"
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
14798 $as_echo "SSE 4.2" >&6; }
14800 if test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then
14802 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
14804 PG_CRC32C_OBJS="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_choose.o"
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
14806 $as_echo "SSE 4.2 with runtime check" >&6; }
14809 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
14811 PG_CRC32C_OBJS="pg_crc32c_sb8.o"
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
14813 $as_echo "slicing-by-8" >&6; }
14819 # Select semaphore implementation type.
14820 if test "$PORTNAME" != "win32"; then
14821 if test x"$PREFERRED_SEMAPHORES" = x"NAMED_POSIX" ; then
14822 # Need sem_open for this
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
14824 $as_echo_n "checking for library containing sem_open... " >&6; }
14825 if ${ac_cv_search_sem_open+:} false; then :
14826 $as_echo_n "(cached) " >&6
14828 ac_func_search_save_LIBS=$LIBS
14829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830 /* end confdefs.h. */
14832 /* Override any GCC internal prototype to avoid an error.
14833 Use char because int might match the return type of a GCC
14834 builtin and then its argument prototype would still apply. */
14842 return sem_open ();
14847 for ac_lib in '' rt pthread; do
14848 if test -z "$ac_lib"; then
14849 ac_res="none required"
14852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14854 if ac_fn_c_try_link "$LINENO"; then :
14855 ac_cv_search_sem_open=$ac_res
14857 rm -f core conftest.err conftest.$ac_objext \
14859 if ${ac_cv_search_sem_open+:} false; then :
14863 if ${ac_cv_search_sem_open+:} false; then :
14866 ac_cv_search_sem_open=no
14868 rm conftest.$ac_ext
14869 LIBS=$ac_func_search_save_LIBS
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
14872 $as_echo "$ac_cv_search_sem_open" >&6; }
14873 ac_res=$ac_cv_search_sem_open
14874 if test "$ac_res" != no; then :
14875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14876 USE_NAMED_POSIX_SEMAPHORES=1
14880 if test x"$PREFERRED_SEMAPHORES" = x"UNNAMED_POSIX" ; then
14881 # Need sem_init for this
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
14883 $as_echo_n "checking for library containing sem_init... " >&6; }
14884 if ${ac_cv_search_sem_init+:} false; then :
14885 $as_echo_n "(cached) " >&6
14887 ac_func_search_save_LIBS=$LIBS
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14891 /* Override any GCC internal prototype to avoid an error.
14892 Use char because int might match the return type of a GCC
14893 builtin and then its argument prototype would still apply. */
14901 return sem_init ();
14906 for ac_lib in '' rt pthread; do
14907 if test -z "$ac_lib"; then
14908 ac_res="none required"
14911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14913 if ac_fn_c_try_link "$LINENO"; then :
14914 ac_cv_search_sem_init=$ac_res
14916 rm -f core conftest.err conftest.$ac_objext \
14918 if ${ac_cv_search_sem_init+:} false; then :
14922 if ${ac_cv_search_sem_init+:} false; then :
14925 ac_cv_search_sem_init=no
14927 rm conftest.$ac_ext
14928 LIBS=$ac_func_search_save_LIBS
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
14931 $as_echo "$ac_cv_search_sem_init" >&6; }
14932 ac_res=$ac_cv_search_sem_init
14933 if test "$ac_res" != no; then :
14934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14935 USE_UNNAMED_POSIX_SEMAPHORES=1
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
14940 $as_echo_n "checking which semaphore API to use... " >&6; }
14941 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
14943 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
14945 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14946 sematype="named POSIX"
14948 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
14950 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
14952 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14953 sematype="unnamed POSIX"
14956 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
14958 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
14959 sematype="System V"
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
14962 $as_echo "$sematype" >&6; }
14966 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
14968 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
14972 # Select shared-memory implementation type.
14973 if test "$PORTNAME" != "win32"; then
14975 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
14977 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
14980 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
14982 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
14985 # If not set in template file, set bytes to use libc memset()
14986 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
14987 MEMSET_LOOP_LIMIT=1024
14990 cat >>confdefs.h <<_ACEOF
14991 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
14996 if test "$enable_nls" = yes ; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
14999 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
15000 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
15001 $as_echo_n "(cached) " >&6
15003 ac_func_search_save_LIBS=$LIBS
15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005 /* end confdefs.h. */
15007 /* Override any GCC internal prototype to avoid an error.
15008 Use char because int might match the return type of a GCC
15009 builtin and then its argument prototype would still apply. */
15013 char bind_textdomain_codeset ();
15017 return bind_textdomain_codeset ();
15022 for ac_lib in '' intl; do
15023 if test -z "$ac_lib"; then
15024 ac_res="none required"
15027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15029 if ac_fn_c_try_link "$LINENO"; then :
15030 ac_cv_search_bind_textdomain_codeset=$ac_res
15032 rm -f core conftest.err conftest.$ac_objext \
15034 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
15038 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
15041 ac_cv_search_bind_textdomain_codeset=no
15043 rm conftest.$ac_ext
15044 LIBS=$ac_func_search_save_LIBS
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
15047 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
15048 ac_res=$ac_cv_search_bind_textdomain_codeset
15049 if test "$ac_res" != no; then :
15050 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15053 as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5
15056 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
15057 if test "x$ac_cv_header_libintl_h" = xyes; then :
15060 as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5
15064 for ac_prog in msgfmt
15066 # Extract the first word of "$ac_prog", so it can be a program name with args.
15067 set dummy $ac_prog; ac_word=$2
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15069 $as_echo_n "checking for $ac_word... " >&6; }
15070 if ${ac_cv_prog_MSGFMT+:} false; then :
15071 $as_echo_n "(cached) " >&6
15073 if test -n "$MSGFMT"; then
15074 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15077 for as_dir in $PATH
15080 test -z "$as_dir" && as_dir=.
15081 for ac_exec_ext in '' $ac_executable_extensions; do
15082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15083 ac_cv_prog_MSGFMT="$ac_prog"
15084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15093 MSGFMT=$ac_cv_prog_MSGFMT
15094 if test -n "$MSGFMT"; then
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15096 $as_echo "$MSGFMT" >&6; }
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15099 $as_echo "no" >&6; }
15103 test -n "$MSGFMT" && break
15106 if test -z "$MSGFMT"; then
15107 as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
15110 $as_echo_n "checking for msgfmt flags... " >&6; }
15111 if ${pgac_cv_msgfmt_flags+:} false; then :
15112 $as_echo_n "(cached) " >&6
15114 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
15115 pgac_cv_msgfmt_flags=-c
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
15119 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
15120 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
15122 for ac_prog in msgmerge
15124 # Extract the first word of "$ac_prog", so it can be a program name with args.
15125 set dummy $ac_prog; ac_word=$2
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15127 $as_echo_n "checking for $ac_word... " >&6; }
15128 if ${ac_cv_prog_MSGMERGE+:} false; then :
15129 $as_echo_n "(cached) " >&6
15131 if test -n "$MSGMERGE"; then
15132 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15135 for as_dir in $PATH
15138 test -z "$as_dir" && as_dir=.
15139 for ac_exec_ext in '' $ac_executable_extensions; do
15140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15141 ac_cv_prog_MSGMERGE="$ac_prog"
15142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15151 MSGMERGE=$ac_cv_prog_MSGMERGE
15152 if test -n "$MSGMERGE"; then
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15154 $as_echo "$MSGMERGE" >&6; }
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157 $as_echo "no" >&6; }
15161 test -n "$MSGMERGE" && break
15164 for ac_prog in xgettext
15166 # Extract the first word of "$ac_prog", so it can be a program name with args.
15167 set dummy $ac_prog; ac_word=$2
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15169 $as_echo_n "checking for $ac_word... " >&6; }
15170 if ${ac_cv_prog_XGETTEXT+:} false; then :
15171 $as_echo_n "(cached) " >&6
15173 if test -n "$XGETTEXT"; then
15174 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15177 for as_dir in $PATH
15180 test -z "$as_dir" && as_dir=.
15181 for ac_exec_ext in '' $ac_executable_extensions; do
15182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15183 ac_cv_prog_XGETTEXT="$ac_prog"
15184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15193 XGETTEXT=$ac_cv_prog_XGETTEXT
15194 if test -n "$XGETTEXT"; then
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15196 $as_echo "$XGETTEXT" >&6; }
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15199 $as_echo "no" >&6; }
15203 test -n "$XGETTEXT" && break
15209 # Check for Tcl configuration script tclConfig.sh
15210 if test "$with_tcl" = yes; then
15211 for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
15213 # Extract the first word of "$ac_prog", so it can be a program name with args.
15214 set dummy $ac_prog; ac_word=$2
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15216 $as_echo_n "checking for $ac_word... " >&6; }
15217 if ${ac_cv_path_TCLSH+:} false; then :
15218 $as_echo_n "(cached) " >&6
15222 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15226 for as_dir in $PATH
15229 test -z "$as_dir" && as_dir=.
15230 for ac_exec_ext in '' $ac_executable_extensions; do
15231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15232 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15243 TCLSH=$ac_cv_path_TCLSH
15244 if test -n "$TCLSH"; then
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
15246 $as_echo "$TCLSH" >&6; }
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15249 $as_echo "no" >&6; }
15253 test -n "$TCLSH" && break
15256 if test x"$TCLSH" = x""; then
15257 as_fn_error $? "Tcl shell not found" "$LINENO" 5
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
15261 $as_echo_n "checking for tclConfig.sh... " >&6; }
15262 # Let user override test
15263 if test -z "$TCL_CONFIG_SH"; then
15264 pgac_test_dirs="$with_tclconfig"
15266 set X $pgac_test_dirs; shift
15267 if test $# -eq 0; then
15268 test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
15269 set X `echo 'puts $auto_path' | $TCLSH`; shift
15273 if test -r "$pgac_dir/tclConfig.sh"; then
15274 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15280 if test -z "$TCL_CONFIG_SH"; then
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15282 $as_echo "no" >&6; }
15283 as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
15286 $as_echo "$TCL_CONFIG_SH" >&6; }
15292 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
15293 eval TCL_LIBS=\"$TCL_LIBS\"
15294 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15295 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15297 if test "$TCL_SHARED_BUILD" != 1; then
15298 as_fn_error $? "cannot build PL/Tcl because Tcl is not a shared library
15299 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
15301 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
15302 ac_save_CPPFLAGS=$CPPFLAGS
15303 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
15304 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
15305 if test "x$ac_cv_header_tcl_h" = xyes; then :
15308 as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5
15312 CPPFLAGS=$ac_save_CPPFLAGS
15315 # check for <perl.h>
15316 if test "$with_perl" = yes; then
15317 ac_save_CPPFLAGS=$CPPFLAGS
15318 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
15319 ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
15321 if test "x$ac_cv_header_perl_h" = xyes; then :
15324 as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5
15328 # While we're at it, check that we can link to libperl.
15329 # On most platforms, if perl.h is there then libperl.so will be too, but at
15330 # this writing Debian packages them separately. There is no known reason to
15331 # waste cycles on separate probes for the Tcl or Python libraries, though.
15332 pgac_save_LIBS=$LIBS
15333 LIBS="$perl_embed_ldflags"
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
15335 $as_echo_n "checking for libperl... " >&6; }
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15339 #include <EXTERN.h>
15350 if ac_fn_c_try_link "$LINENO"; then :
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15352 $as_echo "yes" >&6; }
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355 $as_echo "no" >&6; }
15356 as_fn_error $? "libperl library is required for Perl" "$LINENO" 5
15358 rm -f core conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext conftest.$ac_ext
15360 LIBS=$pgac_save_LIBS
15361 CPPFLAGS=$ac_save_CPPFLAGS
15364 # check for <Python.h>
15365 if test "$with_python" = yes; then
15366 ac_save_CPPFLAGS=$CPPFLAGS
15367 CPPFLAGS="$python_includespec $CPPFLAGS"
15368 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
15369 if test "x$ac_cv_header_Python_h" = xyes; then :
15372 as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5
15376 CPPFLAGS=$ac_save_CPPFLAGS
15380 # Check for DocBook and tools
15382 for ac_prog in onsgmls nsgmls
15384 # Extract the first word of "$ac_prog", so it can be a program name with args.
15385 set dummy $ac_prog; ac_word=$2
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15387 $as_echo_n "checking for $ac_word... " >&6; }
15388 if ${ac_cv_prog_NSGMLS+:} false; then :
15389 $as_echo_n "(cached) " >&6
15391 if test -n "$NSGMLS"; then
15392 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15395 for as_dir in $PATH
15398 test -z "$as_dir" && as_dir=.
15399 for ac_exec_ext in '' $ac_executable_extensions; do
15400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15401 ac_cv_prog_NSGMLS="$ac_prog"
15402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15411 NSGMLS=$ac_cv_prog_NSGMLS
15412 if test -n "$NSGMLS"; then
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
15414 $as_echo "$NSGMLS" >&6; }
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15417 $as_echo "no" >&6; }
15421 test -n "$NSGMLS" && break
15424 for ac_prog in openjade jade
15426 # Extract the first word of "$ac_prog", so it can be a program name with args.
15427 set dummy $ac_prog; ac_word=$2
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15429 $as_echo_n "checking for $ac_word... " >&6; }
15430 if ${ac_cv_prog_JADE+:} false; then :
15431 $as_echo_n "(cached) " >&6
15433 if test -n "$JADE"; then
15434 ac_cv_prog_JADE="$JADE" # Let the user override the test.
15436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15437 for as_dir in $PATH
15440 test -z "$as_dir" && as_dir=.
15441 for ac_exec_ext in '' $ac_executable_extensions; do
15442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15443 ac_cv_prog_JADE="$ac_prog"
15444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15453 JADE=$ac_cv_prog_JADE
15454 if test -n "$JADE"; then
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
15456 $as_echo "$JADE" >&6; }
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459 $as_echo "no" >&6; }
15463 test -n "$JADE" && break
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook V4.2" >&5
15468 $as_echo_n "checking for DocBook V4.2... " >&6; }
15469 if ${pgac_cv_check_docbook+:} false; then :
15470 $as_echo_n "(cached) " >&6
15472 cat >conftest.sgml <<EOF
15473 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
15475 <title>test</title>
15477 <title>random</title>
15479 <title>testsect</title>
15486 pgac_cv_check_docbook=no
15488 if test -n "$NSGMLS"; then
15489 $NSGMLS -s conftest.sgml 1>&5 2>&1
15490 if test $? -eq 0; then
15491 pgac_cv_check_docbook=yes
15494 rm -f conftest.sgml
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
15497 $as_echo "$pgac_cv_check_docbook" >&6; }
15499 have_docbook=$pgac_cv_check_docbook
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook stylesheets" >&5
15503 $as_echo_n "checking for DocBook stylesheets... " >&6; }
15504 if ${pgac_cv_path_stylesheets+:} false; then :
15505 $as_echo_n "(cached) " >&6
15507 if test -n "$DOCBOOKSTYLE"; then
15508 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15510 for pgac_prefix in /usr /usr/local /opt /sw; do
15511 for pgac_infix in share lib; do
15512 for pgac_postfix in \
15513 sgml/stylesheets/nwalsh-modular \
15514 sgml/stylesheets/docbook \
15515 sgml/stylesheets/dsssl/docbook \
15516 sgml/docbook-dsssl \
15517 sgml/docbook/dsssl/modular \
15518 sgml/docbook/stylesheet/dsssl/modular \
15519 sgml/docbook/dsssl-stylesheets \
15520 sgml/dsssl/docbook-dsssl-nwalsh
15522 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15523 if test -r "$pgac_candidate/html/docbook.dsl" \
15524 && test -r "$pgac_candidate/print/docbook.dsl"
15526 pgac_cv_path_stylesheets=$pgac_candidate
15535 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15537 if test -n "$DOCBOOKSTYLE"; then
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOKSTYLE" >&5
15539 $as_echo "$DOCBOOKSTYLE" >&6; }
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15542 $as_echo "no" >&6; }
15544 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
15545 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
15548 # Extract the first word of "collateindex.pl", so it can be a program name with args.
15549 set dummy collateindex.pl; ac_word=$2
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15551 $as_echo_n "checking for $ac_word... " >&6; }
15552 if ${ac_cv_path_COLLATEINDEX+:} false; then :
15553 $as_echo_n "(cached) " >&6
15555 case $COLLATEINDEX in
15557 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15561 for as_dir in $PATH
15564 test -z "$as_dir" && as_dir=.
15565 for ac_exec_ext in '' $ac_executable_extensions; do
15566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15567 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15578 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15579 if test -n "$COLLATEINDEX"; then
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COLLATEINDEX" >&5
15581 $as_echo "$COLLATEINDEX" >&6; }
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15584 $as_echo "no" >&6; }
15589 for ac_prog in dbtoepub
15591 # Extract the first word of "$ac_prog", so it can be a program name with args.
15592 set dummy $ac_prog; ac_word=$2
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15594 $as_echo_n "checking for $ac_word... " >&6; }
15595 if ${ac_cv_prog_DBTOEPUB+:} false; then :
15596 $as_echo_n "(cached) " >&6
15598 if test -n "$DBTOEPUB"; then
15599 ac_cv_prog_DBTOEPUB="$DBTOEPUB" # Let the user override the test.
15601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15602 for as_dir in $PATH
15605 test -z "$as_dir" && as_dir=.
15606 for ac_exec_ext in '' $ac_executable_extensions; do
15607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15608 ac_cv_prog_DBTOEPUB="$ac_prog"
15609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15618 DBTOEPUB=$ac_cv_prog_DBTOEPUB
15619 if test -n "$DBTOEPUB"; then
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
15621 $as_echo "$DBTOEPUB" >&6; }
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15624 $as_echo "no" >&6; }
15628 test -n "$DBTOEPUB" && break
15631 for ac_prog in xmllint
15633 # Extract the first word of "$ac_prog", so it can be a program name with args.
15634 set dummy $ac_prog; ac_word=$2
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15636 $as_echo_n "checking for $ac_word... " >&6; }
15637 if ${ac_cv_prog_XMLLINT+:} false; then :
15638 $as_echo_n "(cached) " >&6
15640 if test -n "$XMLLINT"; then
15641 ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
15643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15644 for as_dir in $PATH
15647 test -z "$as_dir" && as_dir=.
15648 for ac_exec_ext in '' $ac_executable_extensions; do
15649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15650 ac_cv_prog_XMLLINT="$ac_prog"
15651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15660 XMLLINT=$ac_cv_prog_XMLLINT
15661 if test -n "$XMLLINT"; then
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
15663 $as_echo "$XMLLINT" >&6; }
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15666 $as_echo "no" >&6; }
15670 test -n "$XMLLINT" && break
15673 for ac_prog in xsltproc
15675 # Extract the first word of "$ac_prog", so it can be a program name with args.
15676 set dummy $ac_prog; ac_word=$2
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15678 $as_echo_n "checking for $ac_word... " >&6; }
15679 if ${ac_cv_prog_XSLTPROC+:} false; then :
15680 $as_echo_n "(cached) " >&6
15682 if test -n "$XSLTPROC"; then
15683 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
15685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15686 for as_dir in $PATH
15689 test -z "$as_dir" && as_dir=.
15690 for ac_exec_ext in '' $ac_executable_extensions; do
15691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15692 ac_cv_prog_XSLTPROC="$ac_prog"
15693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15702 XSLTPROC=$ac_cv_prog_XSLTPROC
15703 if test -n "$XSLTPROC"; then
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
15705 $as_echo "$XSLTPROC" >&6; }
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15708 $as_echo "no" >&6; }
15712 test -n "$XSLTPROC" && break
15715 for ac_prog in osx sgml2xml sx
15717 # Extract the first word of "$ac_prog", so it can be a program name with args.
15718 set dummy $ac_prog; ac_word=$2
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15720 $as_echo_n "checking for $ac_word... " >&6; }
15721 if ${ac_cv_prog_OSX+:} false; then :
15722 $as_echo_n "(cached) " >&6
15724 if test -n "$OSX"; then
15725 ac_cv_prog_OSX="$OSX" # Let the user override the test.
15727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15728 for as_dir in $PATH
15731 test -z "$as_dir" && as_dir=.
15732 for ac_exec_ext in '' $ac_executable_extensions; do
15733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15734 ac_cv_prog_OSX="$ac_prog"
15735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15744 OSX=$ac_cv_prog_OSX
15745 if test -n "$OSX"; then
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5
15747 $as_echo "$OSX" >&6; }
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15750 $as_echo "no" >&6; }
15754 test -n "$OSX" && break
15759 # Check for test tools
15761 if test "$enable_tap_tests" = yes; then
15762 for ac_prog in prove
15764 # Extract the first word of "$ac_prog", so it can be a program name with args.
15765 set dummy $ac_prog; ac_word=$2
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15767 $as_echo_n "checking for $ac_word... " >&6; }
15768 if ${ac_cv_prog_PROVE+:} false; then :
15769 $as_echo_n "(cached) " >&6
15771 if test -n "$PROVE"; then
15772 ac_cv_prog_PROVE="$PROVE" # Let the user override the test.
15774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15775 for as_dir in $PATH
15778 test -z "$as_dir" && as_dir=.
15779 for ac_exec_ext in '' $ac_executable_extensions; do
15780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15781 ac_cv_prog_PROVE="$ac_prog"
15782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15791 PROVE=$ac_cv_prog_PROVE
15792 if test -n "$PROVE"; then
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
15794 $as_echo "$PROVE" >&6; }
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15797 $as_echo "no" >&6; }
15801 test -n "$PROVE" && break
15804 if test -z "$PROVE"; then
15805 as_fn_error $? "prove not found" "$LINENO" 5
15807 if test -z "$PERL"; then
15808 as_fn_error $? "Perl not found" "$LINENO" 5
15814 # We have to run the thread test near the end so we have all our symbols
15815 # defined. Cross compiling throws a warning.
15817 if test "$enable_thread_safety" = yes; then
15818 if test "$PORTNAME" != "win32"
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
15821 $as_echo_n "checking thread safety of required library functions... " >&6; }
15825 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
15826 LIBS="$LIBS $PTHREAD_LIBS"
15827 if test "$cross_compiling" = yes; then :
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
15829 $as_echo "maybe" >&6; }
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15831 *** Skipping thread test program because of cross-compile build.
15832 *** Run the program in src/test/thread on the target machine.
15834 $as_echo "$as_me: WARNING:
15835 *** Skipping thread test program because of cross-compile build.
15836 *** Run the program in src/test/thread on the target machine.
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841 #include "$srcdir/src/test/thread/thread_test.c"
15843 if ac_fn_c_try_run "$LINENO"; then :
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15845 $as_echo "yes" >&6; }
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15848 $as_echo "no" >&6; }
15849 as_fn_error $? "thread test program failed
15850 This platform is not thread-safe. Check the file 'config.log' or compile
15851 and run src/test/thread/thread_test for the exact reason.
15852 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
15854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15855 conftest.$ac_objext conftest.beam conftest.$ac_ext
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
15862 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
15866 # If compiler will take -Wl,--as-needed (or various platform-specific
15867 # spellings thereof) then add that to LDFLAGS. This is much easier than
15868 # trying to filter LIBS to the minimum for each executable.
15869 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
15870 # libreadline; therefore we postpone testing it until we know what library
15871 # dependencies readline has. The test code will try to link with $LIBS.
15872 if test "$with_readline" = yes; then
15873 link_test_func=readline
15875 link_test_func=exit
15878 if test "$PORTNAME" = "darwin"; then
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
15880 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
15881 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then :
15882 $as_echo_n "(cached) " >&6
15884 pgac_save_LDFLAGS=$LDFLAGS
15885 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
15886 if test "$cross_compiling" = yes; then :
15887 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
15889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890 /* end confdefs.h. */
15891 extern void $link_test_func (); void (*fptr) () = $link_test_func;
15900 if ac_fn_c_try_run "$LINENO"; then :
15901 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
15903 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
15905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15906 conftest.$ac_objext conftest.beam conftest.$ac_ext
15909 LDFLAGS="$pgac_save_LDFLAGS"
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
15912 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
15913 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
15914 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
15917 elif test "$PORTNAME" = "openbsd"; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
15919 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
15920 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then :
15921 $as_echo_n "(cached) " >&6
15923 pgac_save_LDFLAGS=$LDFLAGS
15924 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
15925 if test "$cross_compiling" = yes; then :
15926 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
15928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h. */
15930 extern void $link_test_func (); void (*fptr) () = $link_test_func;
15939 if ac_fn_c_try_run "$LINENO"; then :
15940 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
15942 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
15944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15945 conftest.$ac_objext conftest.beam conftest.$ac_ext
15948 LDFLAGS="$pgac_save_LDFLAGS"
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
15951 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
15952 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
15953 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
15958 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
15959 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then :
15960 $as_echo_n "(cached) " >&6
15962 pgac_save_LDFLAGS=$LDFLAGS
15963 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
15964 if test "$cross_compiling" = yes; then :
15965 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969 extern void $link_test_func (); void (*fptr) () = $link_test_func;
15978 if ac_fn_c_try_run "$LINENO"; then :
15979 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
15981 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
15983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15984 conftest.$ac_objext conftest.beam conftest.$ac_ext
15987 LDFLAGS="$pgac_save_LDFLAGS"
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
15990 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
15991 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
15992 LDFLAGS="$LDFLAGS -Wl,--as-needed"
15997 # Create compiler version string
15998 if test x"$GCC" = x"yes" ; then
15999 cc_string=`${CC} --version | sed q`
16000 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
16001 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
16002 cc_string=`${CC} -V 2>&1 | sed q`
16008 cat >>confdefs.h <<_ACEOF
16009 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
16013 # Supply a numeric version string for use by 3rd party add-ons
16014 # awk -F is a regex on some platforms, and not on others, so make "." a tab
16015 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
16017 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
16019 cat >>confdefs.h <<_ACEOF
16020 #define PG_VERSION_NUM $PG_VERSION_NUM
16026 # Begin output steps
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
16029 $as_echo "$as_me: using compiler=$cc_string" >&6;}
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
16031 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
16033 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
16035 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
16037 # prepare build tree if outside source tree
16038 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16039 # Note 2: /bin/pwd might be better than shell's built-in at getting
16040 # a symlink-free name.
16041 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16045 if test "$no_create" != yes; then
16046 $as_echo_n "preparing build tree... " >&6
16047 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16048 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16049 || as_fn_error $? "failed" "$LINENO" 5
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16051 $as_echo "done" >&6; }
16057 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16060 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}"
16063 if test "$PORTNAME" = "win32"; then
16064 ac_config_commands="$ac_config_commands check_win32_symlinks"
16068 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16071 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
16074 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
16077 cat >confcache <<\_ACEOF
16078 # This file is a shell script that caches the results of configure
16079 # tests run on this system so they can be shared between configure
16080 # scripts and configure runs, see configure's option --config-cache.
16081 # It is not useful on other systems. If it contains results you don't
16082 # want to keep, you may remove or edit it.
16084 # config.status only pays attention to the cache file if you give it
16085 # the --recheck option to rerun configure.
16087 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16088 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16089 # following values.
16093 # The following way of writing the cache mishandles newlines in values,
16094 # but we know of no workaround that is simple, portable, and efficient.
16095 # So, we kill variables containing newlines.
16096 # Ultrix sh set writes to stderr and can't be redirected directly,
16097 # and sets the high bit in the cache file unless we assign to the vars.
16099 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16100 eval ac_val=\$$ac_var
16104 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16105 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16108 _ | IFS | as_nl) ;; #(
16109 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16110 *) { eval $ac_var=; unset $ac_var;} ;;
16116 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16117 *${as_nl}ac_space=\ *)
16118 # `set' does not quote correctly, so add quotes: double-quote
16119 # substitution turns \\\\ into \\, and sed turns \\ into \.
16122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16125 # `set' quotes correctly as required by POSIX, so do not add quotes.
16126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16135 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16137 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16139 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16140 if test -w "$cache_file"; then
16141 if test "x$cache_file" != "x/dev/null"; then
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16143 $as_echo "$as_me: updating cache $cache_file" >&6;}
16144 if test ! -f "$cache_file" || test -h "$cache_file"; then
16145 cat confcache >"$cache_file"
16147 case $cache_file in #(
16149 mv -f confcache "$cache_file"$$ &&
16150 mv -f "$cache_file"$$ "$cache_file" ;; #(
16152 mv -f confcache "$cache_file" ;;
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16158 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16163 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16164 # Let make expand exec_prefix.
16165 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16167 DEFS=-DHAVE_CONFIG_H
16172 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16173 # 1. Remove the extension, and $U if already installed.
16174 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16175 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16176 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16177 # will be set to the directory where LIBOBJS objects are built.
16178 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16179 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16181 LIBOBJS=$ac_libobjs
16183 LTLIBOBJS=$ac_ltlibobjs
16188 : "${CONFIG_STATUS=./config.status}"
16190 ac_clean_files_save=$ac_clean_files
16191 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16193 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16195 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16197 # Generated by $as_me.
16198 # Run this file to recreate the current configuration.
16199 # Compiler output produced by configure, useful for debugging
16200 # configure, is in config.log if it exists.
16203 ac_cs_recheck=false
16206 SHELL=\${CONFIG_SHELL-$SHELL}
16209 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16210 ## -------------------- ##
16211 ## M4sh Initialization. ##
16212 ## -------------------- ##
16214 # Be more Bourne compatible
16215 DUALCASE=1; export DUALCASE # for MKS sh
16216 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16219 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16220 # is contrary to our usage. Disable this feature.
16221 alias -g '${1+"$@"}'='"$@"'
16222 setopt NO_GLOB_SUBST
16224 case `(set -o) 2>/dev/null` in #(
16236 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16237 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16238 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16239 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16240 # Prefer a ksh shell builtin over an external printf program on Solaris,
16241 # but without wasting forks for bash or zsh.
16242 if test -z "$BASH_VERSION$ZSH_VERSION" \
16243 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16244 as_echo='print -r --'
16245 as_echo_n='print -rn --'
16246 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16247 as_echo='printf %s\n'
16248 as_echo_n='printf %s'
16250 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16251 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16252 as_echo_n='/usr/ucb/echo -n'
16254 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16255 as_echo_n_body='eval
16259 expr "X$arg" : "X\\(.*\\)$as_nl";
16260 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16262 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16264 export as_echo_n_body
16265 as_echo_n='sh -c $as_echo_n_body as_echo'
16267 export as_echo_body
16268 as_echo='sh -c $as_echo_body as_echo'
16271 # The user is always right.
16272 if test "${PATH_SEPARATOR+set}" != set; then
16274 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16275 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16282 # We need space, tab and new line, in precisely that order. Quoting is
16283 # there to prevent editors from complaining about space-tab.
16284 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16285 # splitting by setting IFS to empty value.)
16288 # Find who we are. Look in the path if we contain no directory separator.
16291 *[\\/]* ) as_myself=$0 ;;
16292 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16293 for as_dir in $PATH
16296 test -z "$as_dir" && as_dir=.
16297 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16303 # We did not find ourselves, most probably we were run as `sh COMMAND'
16304 # in which case we are not to be found in the path.
16305 if test "x$as_myself" = x; then
16308 if test ! -f "$as_myself"; then
16309 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16313 # Unset variables that we do not need and which cause bugs (e.g. in
16314 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16315 # suppresses any "Segmentation fault" message there. '((' could
16316 # trigger a bug in pdksh 5.2.14.
16317 for as_var in BASH_ENV ENV MAIL MAILPATH
16318 do eval test x\${$as_var+set} = xset \
16319 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16332 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16335 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16336 # ----------------------------------------
16337 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16338 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16339 # script with STATUS, using 1 if that was 0.
16342 as_status=$1; test $as_status -eq 0 && as_status=1
16344 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16345 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16347 $as_echo "$as_me: error: $2" >&2
16348 as_fn_exit $as_status
16352 # as_fn_set_status STATUS
16353 # -----------------------
16354 # Set $? to STATUS, without forking.
16355 as_fn_set_status ()
16358 } # as_fn_set_status
16360 # as_fn_exit STATUS
16361 # -----------------
16362 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16366 as_fn_set_status $1
16372 # Portably unset VAR.
16375 { eval $1=; unset $1;}
16377 as_unset=as_fn_unset
16378 # as_fn_append VAR VALUE
16379 # ----------------------
16380 # Append the text in VALUE to the end of the definition contained in VAR. Take
16381 # advantage of any shell optimizations that allow amortized linear growth over
16382 # repeated appends, instead of the typical quadratic growth present in naive
16384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16385 eval 'as_fn_append ()
16396 # as_fn_arith ARG...
16397 # ------------------
16398 # Perform arithmetic evaluation on the ARGs, and store the result in the
16399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16400 # must be portable across $(()) and expr.
16401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16402 eval 'as_fn_arith ()
16409 as_val=`expr "$@" || test $? -eq 1`
16414 if expr a : '\(a\)' >/dev/null 2>&1 &&
16415 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16421 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16422 as_basename=basename
16427 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16433 as_me=`$as_basename -- "$0" ||
16434 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16435 X"$0" : 'X\(//\)$' \| \
16436 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16438 sed '/^.*\/\([^/][^/]*\)\/*$/{
16452 # Avoid depending upon Character Ranges.
16453 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16454 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16455 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16456 as_cr_digits='0123456789'
16457 as_cr_alnum=$as_cr_Letters$as_cr_digits
16459 ECHO_C= ECHO_N= ECHO_T=
16460 case `echo -n x` in #(((((
16462 case `echo 'xy\c'` in
16463 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16465 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16472 rm -f conf$$ conf$$.exe conf$$.file
16473 if test -d conf$$.dir; then
16474 rm -f conf$$.dir/conf$$.file
16477 mkdir conf$$.dir 2>/dev/null
16479 if (echo >conf$$.file) 2>/dev/null; then
16480 if ln -s conf$$.file conf$$ 2>/dev/null; then
16482 # ... but there are two gotchas:
16483 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16484 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16485 # In both cases, we have to default to `cp -pR'.
16486 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16488 elif ln conf$$.file conf$$ 2>/dev/null; then
16496 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16497 rmdir conf$$.dir 2>/dev/null
16502 # Create "$as_dir" as a directory, including parents if necessary.
16507 -*) as_dir=./$as_dir;;
16509 test -d "$as_dir" || eval $as_mkdir_p || {
16513 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16514 *) as_qdir=$as_dir;;
16516 as_dirs="'$as_qdir' $as_dirs"
16517 as_dir=`$as_dirname -- "$as_dir" ||
16518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16519 X"$as_dir" : 'X\(//\)[^/]' \| \
16520 X"$as_dir" : 'X\(//\)$' \| \
16521 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16522 $as_echo X"$as_dir" |
16523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16527 /^X\(\/\/\)[^/].*/{
16540 test -d "$as_dir" && break
16542 test -z "$as_dirs" || eval "mkdir $as_dirs"
16543 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16547 if mkdir -p . 2>/dev/null; then
16548 as_mkdir_p='mkdir -p "$as_dir"'
16550 test -d ./-p && rmdir ./-p
16555 # as_fn_executable_p FILE
16556 # -----------------------
16557 # Test if FILE is an executable regular file.
16558 as_fn_executable_p ()
16560 test -f "$1" && test -x "$1"
16561 } # as_fn_executable_p
16562 as_test_x='test -x'
16563 as_executable_p=as_fn_executable_p
16565 # Sed expression to map a string onto a valid CPP name.
16566 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16568 # Sed expression to map a string onto a valid variable name.
16569 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16573 ## ----------------------------------- ##
16574 ## Main body of $CONFIG_STATUS script. ##
16575 ## ----------------------------------- ##
16577 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16580 # Save the log message, to keep $0 and so on meaningful, and to
16581 # report actual input values of CONFIG_FILES etc. instead of their
16582 # values after options handling.
16584 This file was extended by PostgreSQL $as_me 10devel, which was
16585 generated by GNU Autoconf 2.69. Invocation command line was
16587 CONFIG_FILES = $CONFIG_FILES
16588 CONFIG_HEADERS = $CONFIG_HEADERS
16589 CONFIG_LINKS = $CONFIG_LINKS
16590 CONFIG_COMMANDS = $CONFIG_COMMANDS
16593 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16598 case $ac_config_files in *"
16599 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16602 case $ac_config_headers in *"
16603 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16608 # Files that config.status was made for.
16609 config_files="$ac_config_files"
16610 config_headers="$ac_config_headers"
16611 config_links="$ac_config_links"
16612 config_commands="$ac_config_commands"
16616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16618 \`$as_me' instantiates files and other configuration actions
16619 from templates according to the current configuration. Unless the files
16620 and actions are specified as TAGs, all are instantiated by default.
16622 Usage: $0 [OPTION]... [TAG]...
16624 -h, --help print this help, then exit
16625 -V, --version print version number and configuration settings, then exit
16626 --config print configuration, then exit
16627 -q, --quiet, --silent
16628 do not print progress messages
16629 -d, --debug don't remove temporary files
16630 --recheck update $as_me by reconfiguring in the same conditions
16631 --file=FILE[:TEMPLATE]
16632 instantiate the configuration file FILE
16633 --header=FILE[:TEMPLATE]
16634 instantiate the configuration header FILE
16636 Configuration files:
16639 Configuration headers:
16642 Configuration links:
16645 Configuration commands:
16648 Report bugs to <pgsql-bugs@postgresql.org>."
16651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16652 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16654 PostgreSQL config.status 10devel
16655 configured by $0, generated by GNU Autoconf 2.69,
16656 with options \\"\$ac_cs_config\\"
16658 Copyright (C) 2012 Free Software Foundation, Inc.
16659 This config.status script is free software; the Free Software Foundation
16660 gives unlimited permission to copy, distribute and modify it."
16667 test -n "\$AWK" || AWK=awk
16670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16671 # The default lists apply if the user does not specify any file.
16677 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16678 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16682 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16694 # Handling of the options.
16695 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16697 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16698 $as_echo "$ac_cs_version"; exit ;;
16699 --config | --confi | --conf | --con | --co | --c )
16700 $as_echo "$ac_cs_config"; exit ;;
16701 --debug | --debu | --deb | --de | --d | -d )
16703 --file | --fil | --fi | --f )
16706 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16707 '') as_fn_error $? "missing file argument" ;;
16709 as_fn_append CONFIG_FILES " '$ac_optarg'"
16710 ac_need_defaults=false;;
16711 --header | --heade | --head | --hea )
16714 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16716 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16717 ac_need_defaults=false;;
16719 # Conflict between --help and --header
16720 as_fn_error $? "ambiguous option: \`$1'
16721 Try \`$0 --help' for more information.";;
16722 --help | --hel | -h )
16723 $as_echo "$ac_cs_usage"; exit ;;
16724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16725 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16728 # This is an error.
16729 -*) as_fn_error $? "unrecognized option: \`$1'
16730 Try \`$0 --help' for more information." ;;
16732 *) as_fn_append ac_config_targets " $1"
16733 ac_need_defaults=false ;;
16739 ac_configure_extra_args=
16741 if $ac_cs_silent; then
16743 ac_configure_extra_args="$ac_configure_extra_args --silent"
16747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16748 if \$ac_cs_recheck; then
16749 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16751 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16752 CONFIG_SHELL='$SHELL'
16753 export CONFIG_SHELL
16758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16762 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16763 ## Running $as_me. ##
16769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16774 # Handling of arguments.
16775 for ac_config_target in $ac_config_targets
16777 case $ac_config_target in
16778 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16779 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16780 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16781 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16782 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16783 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16784 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16785 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16786 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16787 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
16788 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16789 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
16790 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
16792 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16797 # If the user did not use the arguments to specify the items to instantiate,
16798 # then the envvar interface is used. Set only those that are not.
16799 # We use the long form for the default assignment because of an extremely
16800 # bizarre bug on SunOS 4.1.3.
16801 if $ac_need_defaults; then
16802 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16803 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16804 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16805 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16808 # Have a temporary directory for convenience. Make it in the build tree
16809 # simply because there is no reason against having it here, and in addition,
16810 # creating and moving files from /tmp can sometimes cause problems.
16811 # Hook for its removal unless debugging.
16812 # Note that there is a small window in which the directory will not be cleaned:
16813 # after its creation but before its name has been assigned to `$tmp'.
16817 trap 'exit_status=$?
16818 : "${ac_tmp:=$tmp}"
16819 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16821 trap 'as_fn_exit 1' 1 2 13 15
16823 # Create a (secure) tmp directory for tmp files.
16826 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16830 tmp=./conf$$-$RANDOM
16831 (umask 077 && mkdir "$tmp")
16832 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16835 # Set up the scripts for CONFIG_FILES section.
16836 # No need to generate them if there are no CONFIG_FILES.
16837 # This happens for instance with `./config.status config.h'.
16838 if test -n "$CONFIG_FILES"; then
16841 ac_cr=`echo X | tr X '\015'`
16842 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16843 # But we know of no other shell where ac_cr would be empty at this
16844 # point, so we can use a bashism as a fallback.
16845 if test "x$ac_cr" = x; then
16846 eval ac_cr=\$\'\\r\'
16848 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16849 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16852 ac_cs_awk_cr=$ac_cr
16855 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16860 echo "cat >conf$$subs.awk <<_ACEOF" &&
16861 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16863 } >conf$$subs.sh ||
16864 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16865 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16867 for ac_last_try in false false false false false :; do
16868 . ./conf$$subs.sh ||
16869 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16871 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16872 if test $ac_delim_n = $ac_delim_num; then
16874 elif $ac_last_try; then
16875 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16877 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16880 rm -f conf$$subs.sh
16882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16883 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16887 s/^/S["/; s/!.*/"]=/
16897 s/\(.\{148\}\)..*/\1/
16899 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16904 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16911 s/\(.\{148\}\)..*/\1/
16913 s/["\\]/\\&/g; s/^/"/; s/$/"/
16917 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16922 ' <conf$$subs.awk | sed '
16927 ' >>$CONFIG_STATUS || ac_write_fail=1
16928 rm -f conf$$subs.awk
16929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16931 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16932 for (key in S) S_is_set[key] = 1
16938 nfields = split(line, field, "@")
16940 len = length(field[1])
16941 for (i = 2; i < nfields; i++) {
16943 keylen = length(key)
16944 if (S_is_set[key]) {
16946 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16947 len += length(value) + length(field[++i])
16958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16959 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16960 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16963 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16964 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16967 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16968 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16969 # trailing colons and then remove the whole line if VPATH becomes empty
16970 # (actually we leave an empty line to preserve line numbers).
16971 if test "x$srcdir" = x.; then
16972 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16991 fi # test -n "$CONFIG_FILES"
16993 # Set up the scripts for CONFIG_HEADERS section.
16994 # No need to generate them if there are no CONFIG_HEADERS.
16995 # This happens for instance with `./config.status Makefile'.
16996 if test -n "$CONFIG_HEADERS"; then
16997 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17001 # Transform confdefs.h into an awk script `defines.awk', embedded as
17002 # here-document in config.status, that substitutes the proper values into
17003 # config.h.in to produce config.h.
17005 # Create a delimiter string that does not exist in confdefs.h, to ease
17006 # handling of long lines.
17008 for ac_last_try in false false :; do
17009 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17010 if test -z "$ac_tt"; then
17012 elif $ac_last_try; then
17013 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17019 # For the awk script, D is an array of macro values keyed by name,
17020 # likewise P contains macro parameters if any. Preserve backslash
17021 # newline sequences.
17023 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17025 s/.\{148\}/&'"$ac_delim"'/g
17028 s/^[ ]*#[ ]*define[ ][ ]*/ /
17035 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17037 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17041 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17042 D["\1"]=" \3\\\\\\n"\\/p
17044 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17049 s/.\{148\}/&'"$ac_delim"'/g
17054 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17057 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17059 ' <confdefs.h | sed '
17060 s/'"$ac_delim"'/"\\\
17061 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17064 for (key in D) D_is_set[key] = 1
17067 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17069 split(line, arg, " ")
17070 if (arg[1] == "#") {
17074 defundef = substr(arg[1], 2)
17077 split(mac1, mac2, "(") #)
17079 prefix = substr(line, 1, index(line, defundef) - 1)
17080 if (D_is_set[macro]) {
17081 # Preserve the white space surrounding the "#".
17082 print prefix "define", macro P[macro] D[macro]
17085 # Replace #undef with comments. This is necessary, for example,
17086 # in the case of _POSIX_SOURCE, which is predefined and required
17087 # on some systems where configure will not decide to define it.
17088 if (defundef == "undef") {
17089 print "/*", prefix defundef, macro, "*/"
17097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17098 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17099 fi # test -n "$CONFIG_HEADERS"
17102 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17107 :[FHLC]) ac_mode=$ac_tag; continue;;
17109 case $ac_mode$ac_tag in
17111 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17112 :[FH]-) ac_tag=-:-;;
17113 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17130 -) ac_f="$ac_tmp/stdin";;
17131 *) # Look for the file first in the build tree, then in the source tree
17132 # (if the path is not absolute). The absolute path cannot be DOS-style,
17133 # because $ac_f cannot contain `:'.
17137 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17139 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17141 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17142 as_fn_append ac_file_inputs " '$ac_f'"
17145 # Let's still pretend it is `configure' which instantiates (i.e., don't
17146 # use $as_me), people would be surprised to read:
17147 # /* config.h. Generated by config.status. */
17148 configure_input='Generated from '`
17149 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17151 if test x"$ac_file" != x-; then
17152 configure_input="$ac_file. $configure_input"
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17154 $as_echo "$as_me: creating $ac_file" >&6;}
17156 # Neutralize special characters interpreted by sed in replacement strings.
17157 case $configure_input in #(
17158 *\&* | *\|* | *\\* )
17159 ac_sed_conf_input=`$as_echo "$configure_input" |
17160 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17161 *) ac_sed_conf_input=$configure_input;;
17165 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17171 ac_dir=`$as_dirname -- "$ac_file" ||
17172 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17173 X"$ac_file" : 'X\(//\)[^/]' \| \
17174 X"$ac_file" : 'X\(//\)$' \| \
17175 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17176 $as_echo X"$ac_file" |
17177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17181 /^X\(\/\/\)[^/].*/{
17194 as_dir="$ac_dir"; as_fn_mkdir_p
17198 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17200 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17201 # A ".." for each directory in $ac_dir_suffix.
17202 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17203 case $ac_top_builddir_sub in
17204 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17205 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17208 ac_abs_top_builddir=$ac_pwd
17209 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17210 # for backward compatibility:
17211 ac_top_builddir=$ac_top_build_prefix
17214 .) # We are building in place.
17216 ac_top_srcdir=$ac_top_builddir_sub
17217 ac_abs_top_srcdir=$ac_pwd ;;
17218 [\\/]* | ?:[\\/]* ) # Absolute name.
17219 ac_srcdir=$srcdir$ac_dir_suffix;
17220 ac_top_srcdir=$srcdir
17221 ac_abs_top_srcdir=$srcdir ;;
17222 *) # Relative name.
17223 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17224 ac_top_srcdir=$ac_top_build_prefix$srcdir
17225 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17227 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17237 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17238 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17240 ac_MKDIR_P=$MKDIR_P
17242 [\\/$]* | ?:[\\/]* ) ;;
17243 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17248 # If the template does not know about datarootdir, expand it.
17249 # FIXME: This hack should be removed a few years after 2.60.
17250 ac_datarootdir_hack=; ac_datarootdir_seen=
17261 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17262 *datarootdir*) ac_datarootdir_seen=yes;;
17263 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17265 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17268 ac_datarootdir_hack='
17269 s&@datadir@&$datadir&g
17270 s&@docdir@&$docdir&g
17271 s&@infodir@&$infodir&g
17272 s&@localedir@&$localedir&g
17273 s&@mandir@&$mandir&g
17274 s&\\\${datarootdir}&$datarootdir&g' ;;
17278 # Neutralize VPATH when `$srcdir' = `.'.
17279 # Shell code in configure.ac might set extrasub.
17280 # FIXME: do we really want to maintain this feature?
17281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17282 ac_sed_extra="$ac_vpsub
17285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17288 s|@configure_input@|$ac_sed_conf_input|;t t
17289 s&@top_builddir@&$ac_top_builddir_sub&;t t
17290 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17291 s&@srcdir@&$ac_srcdir&;t t
17292 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17293 s&@top_srcdir@&$ac_top_srcdir&;t t
17294 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17295 s&@builddir@&$ac_builddir&;t t
17296 s&@abs_builddir@&$ac_abs_builddir&;t t
17297 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17298 s&@INSTALL@&$ac_INSTALL&;t t
17299 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17300 $ac_datarootdir_hack
17302 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17303 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17306 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17308 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17310 which seems to be undefined. Please make sure it is defined" >&5
17311 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17312 which seems to be undefined. Please make sure it is defined" >&2;}
17314 rm -f "$ac_tmp/stdin"
17316 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17317 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17325 if test x"$ac_file" != x-; then
17327 $as_echo "/* $configure_input */" \
17328 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17329 } >"$ac_tmp/config.h" \
17330 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17331 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17333 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17336 mv "$ac_tmp/config.h" "$ac_file" \
17337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17340 $as_echo "/* $configure_input */" \
17341 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17342 || as_fn_error $? "could not create -" "$LINENO" 5
17350 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17353 # Prefer the file from the source tree if names are identical.
17354 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17355 ac_source=$srcdir/$ac_source
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17359 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17361 if test ! -r "$ac_source"; then
17362 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17366 # Try a relative symlink, then a hard link, then a copy.
17368 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17369 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17371 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17372 ln "$ac_source" "$ac_file" 2>/dev/null ||
17373 cp -p "$ac_source" "$ac_file" ||
17374 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17377 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17378 $as_echo "$as_me: executing $ac_file commands" >&6;}
17383 case $ac_file$ac_mode in
17384 "check_win32_symlinks":C)
17385 # Links sometimes fail undetected on Mingw -
17386 # so here we detect it and warn the user
17387 for FILE in $CONFIG_LINKS
17389 # test -e works for symlinks in the MinGW console
17390 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
17391 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
17394 "src/include/pg_config.h":H)
17395 # Update timestamp for pg_config.h (see Makefile.global)
17396 echo >src/include/stamp-h
17398 "src/include/pg_config_ext.h":H)
17399 # Update timestamp for pg_config_ext.h (see Makefile.global)
17400 echo >src/include/stamp-ext-h
17402 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
17410 ac_clean_files=$ac_clean_files_save
17412 test $ac_write_fail = 0 ||
17413 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17416 # configure is writing to config.log, and then calls config.status.
17417 # config.status does its own redirection, appending to config.log.
17418 # Unfortunately, on DOS this fails, as config.log is still kept open
17419 # by configure, so config.status won't be able to write to it; its
17420 # output is simply discarded. So we exec the FD to /dev/null,
17421 # effectively closing config.log, so it can be properly (re)opened and
17422 # appended to by config.status. When coming back to configure, we
17423 # need to make the FD available again.
17424 if test "$no_create" != yes; then
17426 ac_config_status_args=
17427 test "$silent" = yes &&
17428 ac_config_status_args="$ac_config_status_args --quiet"
17430 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17432 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17433 # would make configure fail if this is the last instruction.
17434 $ac_cs_success || as_fn_exit 1
17436 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17438 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}