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-2017, PostgreSQL Global Development Group
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
151 *v*x* | *x*v* ) as_opts=-vx ;;
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
173 case \`(set -o) 2>/dev/null\` in #(
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
195 exitcode=1; echo positional parameters were not saved.
197 test x\$exitcode = x0 || exit 1
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test \$(( 1 + 1 )) = 2 || exit 1"
204 if (eval "$as_required") 2>/dev/null; then :
209 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
214 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
217 test -z "$as_dir" && as_dir=.
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir/$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
236 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
237 CONFIG_SHELL=$SHELL as_have_required=yes
242 if test "x$CONFIG_SHELL" != x; then :
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 *v*x* | *x*v* ) as_opts=-vx ;;
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed `exec'.
260 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
264 if test x$as_have_required = xno; then :
265 $as_echo "$0: This script requires a shell more modern than all"
266 $as_echo "$0: the shells that I found on your system."
267 if test x${ZSH_VERSION+set} = xset ; then
268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
271 $as_echo "$0: Please tell bug-autoconf@gnu.org and
272 $0: pgsql-bugs@postgresql.org about your system, including
273 $0: any error possibly output before this message. Then
274 $0: install a modern shell, or manually run the script
275 $0: under such a shell if you do have one."
281 SHELL=${CONFIG_SHELL-/bin/sh}
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
292 # Portably unset VAR.
295 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 # Create "$as_dir" as a directory, including parents if necessary.
324 -*) as_dir=./$as_dir;;
326 test -d "$as_dir" || eval $as_mkdir_p || {
330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 $as_echo X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 test -d "$as_dir" && break
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
379 eval 'as_fn_append ()
392 # Perform arithmetic evaluation on the ARGs, and store the result in the
393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
394 # must be portable across $(()) and expr.
395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 as_val=`expr "$@" || test $? -eq 1`
408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
409 # ----------------------------------------
410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412 # script with STATUS, using 1 if that was 0.
415 as_status=$1; test $as_status -eq 0 && as_status=1
417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
420 $as_echo "$as_me: error: $2" >&2
421 as_fn_exit $as_status
424 if expr a : '\(a\)' >/dev/null 2>&1 &&
425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_me=`$as_basename -- "$0" ||
444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445 X"$0" : 'X\(//\)$' \| \
446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
448 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 # Avoid depending upon Character Ranges.
463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
466 as_cr_digits='0123456789'
467 as_cr_alnum=$as_cr_Letters$as_cr_digits
470 as_lineno_1=$LINENO as_lineno_1a=$LINENO
471 as_lineno_2=$LINENO as_lineno_2a=$LINENO
472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 chmod +x "$as_me.lineno" ||
491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494 # already done that, so ensure we don't try to do so again and fall
495 # in an infinite loop. This has already happened in practice.
496 _as_can_reexec=no; export _as_can_reexec
497 # Don't try to exec as it changes $[0], causing all sort of problems
498 # (the dirname of $[0] is not the place where we might find the
499 # original and so on. Autoconf is especially sensitive to this).
501 # Exit status is that of the last command.
505 ECHO_C= ECHO_N= ECHO_T=
506 case `echo -n x` in #(((((
508 case `echo 'xy\c'` in
509 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 rm -f conf$$ conf$$.exe conf$$.file
519 if test -d conf$$.dir; then
520 rm -f conf$$.dir/conf$$.file
523 mkdir conf$$.dir 2>/dev/null
525 if (echo >conf$$.file) 2>/dev/null; then
526 if ln -s conf$$.file conf$$ 2>/dev/null; then
528 # ... but there are two gotchas:
529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
531 # In both cases, we have to default to `cp -pR'.
532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
534 elif ln conf$$.file conf$$ 2>/dev/null; then
542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 rmdir conf$$.dir 2>/dev/null
545 if mkdir -p . 2>/dev/null; then
546 as_mkdir_p='mkdir -p "$as_dir"'
548 test -d ./-p && rmdir ./-p
553 as_executable_p=as_fn_executable_p
555 # Sed expression to map a string onto a valid CPP name.
556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558 # Sed expression to map a string onto a valid variable name.
559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562 test -n "$DJDIR" || exec 7<&0 </dev/null
566 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
567 # so uname gets run too.
568 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
573 ac_default_prefix=/usr/local
575 ac_config_libobj_dir=.
582 # Identity of this package.
583 PACKAGE_NAME='PostgreSQL'
584 PACKAGE_TARNAME='postgresql'
585 PACKAGE_VERSION='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
785 program_transform_name
798 enable_option_checking
804 enable_integer_datetimes
838 with_libedit_preferred
850 ac_precious_vars='build_alias
864 # Initialize some variables set by options.
866 ac_init_version=false
867 ac_unrecognized_opts=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
878 program_transform_name=s,x,x,
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 # Accept the important Cygnus configure options, so we can diagnose typos.
931 case $ac_dashdash$ac_option in
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
953 cache_file=config.cache ;;
955 -datadir | --datadir | --datadi | --datad)
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
981 eval enable_$ac_useropt=no ;;
983 -docdir | --docdir | --docdi | --doc | --do)
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_$ac_useropt"
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 htmldir=$ac_optarg ;;
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1052 -libdir | --libdir | --libdi | --libd)
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1143 -psdir | --psdir | --psdi | --psd | --ps)
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 sbindir=$ac_optarg ;;
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 sharedstatedir=$ac_optarg ;;
1169 -site | --site | --sit)
1171 -site=* | --site=* | --sit=*)
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1211 eval with_$ac_useropt=\$ac_optarg ;;
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1227 eval with_$ac_useropt=no ;;
1230 # Obsolete; use --with-x.
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248 Try \`$0 --help' for more information"
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1277 if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1298 # Be sure to have absolute directory names.
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1311 target=$target_alias
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 elif test "x$build_alias" != "x$host_alias"; then
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325 test "$silent" = yes && exec 6>/dev/null
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error $? "working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error $? "pwd does not report name of working directory"
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 $as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1368 ac_srcdir_defaulted=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1402 \`configure' configures PostgreSQL 10devel to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking ...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of PostgreSQL 10devel:";;
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --disable-integer-datetimes
1476 disable 64-bit integer date/time support
1477 --enable-nls[=LANGUAGES]
1478 enable Native Language Support
1479 --disable-rpath do not embed shared library search path in
1481 --disable-spinlocks do not use spinlocks
1482 --disable-atomics do not use atomic operations
1483 --disable-strong-random do not use a strong random number source
1484 --enable-debug build with debugging symbols (-g)
1485 --enable-profiling build with profiling enabled
1486 --enable-coverage build with coverage testing instrumentation
1487 --enable-dtrace build with DTrace support
1488 --enable-tap-tests enable TAP tests (requires Perl and IPC::Run)
1489 --enable-depend turn on automatic dependency tracking
1490 --enable-cassert enable assertion checks (for debugging)
1491 --disable-thread-safety disable thread-safety in client libraries
1492 --disable-largefile omit support for large files
1493 --disable-float4-byval disable float4 passed by value
1494 --disable-float8-byval disable float8 passed by value
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-extra-version=STRING
1500 append STRING to version
1501 --with-template=NAME override operating system template
1502 --with-includes=DIRS look for additional header files in DIRS
1503 --with-libraries=DIRS look for additional libraries in DIRS
1504 --with-libs=DIRS alternative spelling of --with-libraries
1505 --with-pgport=PORTNUM set default port number [5432]
1506 --with-blocksize=BLOCKSIZE
1507 set table block size in kB [8]
1508 --with-segsize=SEGSIZE set table segment size in GB [1]
1509 --with-wal-blocksize=BLOCKSIZE
1510 set WAL block size in kB [8]
1511 --with-wal-segsize=SEGSIZE
1512 set WAL segment size in MB [16]
1513 --with-CC=CMD set compiler (deprecated)
1514 --with-tcl build Tcl modules (PL/Tcl)
1515 --with-tclconfig=DIR tclConfig.sh is in DIR
1516 --with-perl build Perl modules (PL/Perl)
1517 --with-python build Python modules (PL/Python)
1518 --with-gssapi build with GSSAPI support
1519 --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
1521 --with-pam build with PAM support
1522 --with-bsd-auth build with BSD Authentication support
1523 --with-ldap build with LDAP support
1524 --with-bonjour build with Bonjour support
1525 --with-openssl build with OpenSSL support
1526 --with-selinux build with SELinux support
1527 --with-systemd build with systemd support
1528 --without-readline do not use GNU Readline nor BSD Libedit for editing
1529 --with-libedit-preferred
1530 prefer BSD Libedit over GNU Readline
1531 --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
1532 --with-ossp-uuid obsolete spelling of --with-uuid=ossp
1533 --with-libxml build with XML support
1534 --with-libxslt use XSLT support when building contrib/xml2
1535 --with-system-tzdata=DIR
1536 use system time zone data in DIR
1537 --without-zlib do not use Zlib
1538 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1540 Some influential environment variables:
1541 CC C compiler command
1542 CFLAGS C compiler flags
1543 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1544 nonstandard directory <lib dir>
1545 LIBS libraries to pass to the linker, e.g. -l<library>
1546 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1547 you have headers in a nonstandard directory <include dir>
1549 LDFLAGS_EX extra linker flags for linking executables only
1550 LDFLAGS_SL extra linker flags for linking shared libraries only
1552 location of DocBook stylesheets
1554 Use these variables to override the choices made by `configure' or to help
1555 it to find libraries and programs with nonstandard names/locations.
1557 Report bugs to <pgsql-bugs@postgresql.org>.
1562 if test "$ac_init_help" = "recursive"; then
1563 # If there are subdirs, report their specific --help.
1564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1565 test -d "$ac_dir" ||
1566 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1574 # A ".." for each directory in $ac_dir_suffix.
1575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1576 case $ac_top_builddir_sub in
1577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 ac_abs_top_builddir=$ac_pwd
1582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1583 # for backward compatibility:
1584 ac_top_builddir=$ac_top_build_prefix
1587 .) # We are building in place.
1589 ac_top_srcdir=$ac_top_builddir_sub
1590 ac_abs_top_srcdir=$ac_pwd ;;
1591 [\\/]* | ?:[\\/]* ) # Absolute name.
1592 ac_srcdir=$srcdir$ac_dir_suffix;
1593 ac_top_srcdir=$srcdir
1594 ac_abs_top_srcdir=$srcdir ;;
1596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597 ac_top_srcdir=$ac_top_build_prefix$srcdir
1598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602 cd "$ac_dir" || { ac_status=$?; continue; }
1603 # Check for guested configure.
1604 if test -f "$ac_srcdir/configure.gnu"; then
1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607 elif test -f "$ac_srcdir/configure"; then
1609 $SHELL "$ac_srcdir/configure" --help=recursive
1611 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613 cd "$ac_pwd" || { ac_status=$?; break; }
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1620 PostgreSQL configure 10devel
1621 generated by GNU Autoconf 2.69
1623 Copyright (C) 2012 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1627 Copyright (c) 1996-2017, PostgreSQL Global Development Group
1632 ## ------------------------ ##
1633 ## Autoconf initialization. ##
1634 ## ------------------------ ##
1636 # ac_fn_c_try_compile LINENO
1637 # --------------------------
1638 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_compile ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext
1643 if { { ac_try="$ac_compile"
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_compile") 2>conftest.err
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext; then :
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1672 } # ac_fn_c_try_compile
1674 # ac_fn_c_try_link LINENO
1675 # -----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext conftest$ac_exeext
1681 if { { ac_try="$ac_link"
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>conftest.err
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest$ac_exeext && {
1700 test "$cross_compiling" = yes ||
1701 test -x conftest$ac_exeext
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1718 } # ac_fn_c_try_link
1720 # ac_fn_c_try_cpp LINENO
1721 # ----------------------
1722 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_cpp conftest.$ac_ext"
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } > conftest.i && {
1742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1757 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1758 # -------------------------------------------------------
1759 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1760 # the include files in INCLUDES and setting the cache variable VAR
1762 ac_fn_c_check_header_mongrel ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if eval \${$3+:} false; then :
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if eval \${$3+:} false; then :
1769 $as_echo_n "(cached) " >&6
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1775 # Is the header compilable?
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1777 $as_echo_n "checking $2 usability... " >&6; }
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784 ac_header_compiler=yes
1786 ac_header_compiler=no
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1790 $as_echo "$ac_header_compiler" >&6; }
1792 # Is the header present?
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1794 $as_echo_n "checking $2 presence... " >&6; }
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1799 if ac_fn_c_try_cpp "$LINENO"; then :
1800 ac_header_preproc=yes
1802 ac_header_preproc=no
1804 rm -f conftest.err conftest.i conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1806 $as_echo "$ac_header_preproc" >&6; }
1808 # So? What about this header?
1809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1812 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1814 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1818 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1820 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1822 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1824 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827 ( $as_echo "## ---------------------------------------- ##
1828 ## Report this to pgsql-bugs@postgresql.org ##
1829 ## ---------------------------------------- ##"
1830 ) | sed "s/^/$as_me: WARNING: /" >&2
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1838 eval "$3=\$ac_header_compiler"
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 } # ac_fn_c_check_header_mongrel
1848 # ac_fn_c_try_run LINENO
1849 # ----------------------
1850 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1851 # that executables *can* be run.
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_link"
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_link") 2>&5
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1866 { { case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_try") 2>&5
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; }; }; then :
1878 $as_echo "$as_me: program exited with status $ac_status" >&5
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 ac_retval=$ac_status
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1890 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1891 # -------------------------------------------------------
1892 # Tests whether HEADER exists and can be compiled using the include files in
1893 # INCLUDES, setting the cache variable VAR accordingly.
1894 ac_fn_c_check_header_compile ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1907 if ac_fn_c_try_compile "$LINENO"; then :
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 } # ac_fn_c_check_header_compile
1921 # ac_fn_c_check_func LINENO FUNC VAR
1922 # ----------------------------------
1923 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1924 ac_fn_c_check_func ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1936 #define $2 innocuous_$2
1938 /* System header to define __stub macros and hopefully few prototypes,
1939 which can conflict with char $2 (); below.
1940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941 <limits.h> exists even on freestanding compilers. */
1944 # include <limits.h>
1946 # include <assert.h>
1951 /* Override any GCC internal prototype to avoid an error.
1952 Use char because int might match the return type of a GCC
1953 builtin and then its argument prototype would still apply. */
1958 /* The GNU C library defines this for functions which it implements
1959 to always fail with ENOSYS. Some functions are actually named
1960 something starting with __ and the normal name is an alias. */
1961 #if defined __stub_$2 || defined __stub___$2
1973 if ac_fn_c_try_link "$LINENO"; then :
1978 rm -f core conftest.err conftest.$ac_objext \
1979 conftest$ac_exeext conftest.$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 } # ac_fn_c_check_func
1988 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1989 # ----------------------------------------------------
1990 # Tries to find if the field MEMBER exists in type AGGR, after including
1991 # INCLUDES, setting cache variable VAR accordingly.
1992 ac_fn_c_check_member ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1996 $as_echo_n "checking for $2.$3... " >&6; }
1997 if eval \${$4+:} false; then :
1998 $as_echo_n "(cached) " >&6
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2013 if ac_fn_c_try_compile "$LINENO"; then :
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2023 if (sizeof ac_aggr.$3)
2029 if ac_fn_c_try_compile "$LINENO"; then :
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 } # ac_fn_c_check_member
2045 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2046 # -------------------------------------------
2047 # Tests whether TYPE exists after having included INCLUDES, setting cache
2048 # variable VAR accordingly.
2049 ac_fn_c_check_type ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if eval \${$3+:} false; then :
2055 $as_echo_n "(cached) " >&6
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2083 if ac_fn_c_try_compile "$LINENO"; then :
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 } # ac_fn_c_check_type
2099 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2100 # --------------------------------------------
2101 # Tries to find the compile-time value of EXPR in a program that includes
2102 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2104 ac_fn_c_compute_int ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 if test "$cross_compiling" = yes; then
2108 # Depending upon the size, compute the lo and hi bounds.
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2115 static int test_array [1 - 2 * !(($2) >= 0)];
2117 return test_array [0];
2123 if ac_fn_c_try_compile "$LINENO"; then :
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2132 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2134 return test_array [0];
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_hi=$ac_mid; break
2143 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2144 if test $ac_lo -le $ac_mid; then
2148 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2159 static int test_array [1 - 2 * !(($2) < 0)];
2161 return test_array [0];
2167 if ac_fn_c_try_compile "$LINENO"; then :
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2176 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2178 return test_array [0];
2184 if ac_fn_c_try_compile "$LINENO"; then :
2185 ac_lo=$ac_mid; break
2187 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2188 if test $ac_mid -le $ac_hi; then
2192 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 # Binary search between lo and hi bounds.
2203 while test "x$ac_lo" != "x$ac_hi"; do
2204 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2211 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2213 return test_array [0];
2219 if ac_fn_c_try_compile "$LINENO"; then :
2222 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2234 static long int longval () { return $2; }
2235 static unsigned long int ulongval () { return $2; }
2242 FILE *f = fopen ("conftest.val", "w");
2247 long int i = longval ();
2250 fprintf (f, "%ld", i);
2254 unsigned long int i = ulongval ();
2257 fprintf (f, "%lu", i);
2259 /* Do not output a trailing newline, as this causes \r\n confusion
2260 on some platforms. */
2261 return ferror (f) || fclose (f) != 0;
2267 if ac_fn_c_try_run "$LINENO"; then :
2268 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2273 conftest.$ac_objext conftest.beam conftest.$ac_ext
2277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278 as_fn_set_status $ac_retval
2280 } # ac_fn_c_compute_int
2282 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2283 # ---------------------------------------------
2284 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2286 ac_fn_c_check_decl ()
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 as_decl_name=`echo $2|sed 's/ *(.*//'`
2290 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2292 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2293 if eval \${$3+:} false; then :
2294 $as_echo_n "(cached) " >&6
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2302 #ifndef $as_decl_name
2304 (void) $as_decl_use;
2306 (void) $as_decl_name;
2314 if ac_fn_c_try_compile "$LINENO"; then :
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2323 $as_echo "$ac_res" >&6; }
2324 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2326 } # ac_fn_c_check_decl
2327 cat >config.log <<_ACEOF
2328 This file contains any messages produced by compilers while
2329 running configure, to aid debugging if configure makes a mistake.
2331 It was created by PostgreSQL $as_me 10devel, which was
2332 generated by GNU Autoconf 2.69. Invocation command line was
2344 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2345 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2346 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2347 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2348 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2350 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2351 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2353 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2354 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2355 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2356 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2357 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2358 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2359 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 $as_echo "PATH: $as_dir"
2384 # Keep a trace of the command line.
2385 # Strip out --no-create and --no-recursion so they do not pile up.
2386 # Strip out --silent because we don't want to record it for future runs.
2387 # Also quote any args containing shell meta-characters.
2388 # Make two passes to allow for proper duplicate-argument suppression.
2392 ac_must_keep_next=false
2398 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2400 | -silent | --silent | --silen | --sile | --sil)
2403 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2406 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2408 as_fn_append ac_configure_args1 " '$ac_arg'"
2409 if test $ac_must_keep_next = true; then
2410 ac_must_keep_next=false # Got value, back to normal.
2413 *=* | --config-cache | -C | -disable-* | --disable-* \
2414 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2415 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2416 | -with-* | --with-* | -without-* | --without-* | --x)
2417 case "$ac_configure_args0 " in
2418 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2421 -* ) ac_must_keep_next=true ;;
2424 as_fn_append ac_configure_args " '$ac_arg'"
2429 { ac_configure_args0=; unset ac_configure_args0;}
2430 { ac_configure_args1=; unset ac_configure_args1;}
2432 # When interrupted or exit'd, cleanup temporary files, and complete
2433 # config.log. We remove comments because anyway the quotes in there
2434 # would cause problems or look ugly.
2435 # WARNING: Use '\'' to represent an apostrophe within the trap.
2436 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2437 trap 'exit_status=$?
2438 # Save into config.log some information that might help in debugging.
2442 $as_echo "## ---------------- ##
2443 ## Cache variables. ##
2444 ## ---------------- ##"
2446 # The following way of writing the cache mishandles newlines in values,
2448 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2449 eval ac_val=\$$ac_var
2453 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2454 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2457 _ | IFS | as_nl) ;; #(
2458 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2459 *) { eval $ac_var=; unset $ac_var;} ;;
2464 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2465 *${as_nl}ac_space=\ *)
2467 "s/'\''/'\''\\\\'\'''\''/g;
2468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2478 $as_echo "## ----------------- ##
2479 ## Output variables. ##
2480 ## ----------------- ##"
2482 for ac_var in $ac_subst_vars
2484 eval ac_val=\$$ac_var
2486 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488 $as_echo "$ac_var='\''$ac_val'\''"
2492 if test -n "$ac_subst_files"; then
2493 $as_echo "## ------------------- ##
2494 ## File substitutions. ##
2495 ## ------------------- ##"
2497 for ac_var in $ac_subst_files
2499 eval ac_val=\$$ac_var
2501 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2503 $as_echo "$ac_var='\''$ac_val'\''"
2508 if test -s confdefs.h; then
2509 $as_echo "## ----------- ##
2516 test "$ac_signal" != 0 &&
2517 $as_echo "$as_me: caught signal $ac_signal"
2518 $as_echo "$as_me: exit $exit_status"
2520 rm -f core *.core core.conftest.* &&
2521 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2524 for ac_signal in 1 2 13 15; do
2525 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2529 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2530 rm -f -r conftest* confdefs.h
2532 $as_echo "/* confdefs.h */" > confdefs.h
2534 # Predefined preprocessor variables.
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_NAME "$PACKAGE_NAME"
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_STRING "$PACKAGE_STRING"
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_URL "$PACKAGE_URL"
2561 # Let the site file select an alternate cache file if it wants to.
2562 # Prefer an explicitly selected file to automatically selected ones.
2565 if test -n "$CONFIG_SITE"; then
2566 # We do not want a PATH search for config.site.
2567 case $CONFIG_SITE in #((
2568 -*) ac_site_file1=./$CONFIG_SITE;;
2569 */*) ac_site_file1=$CONFIG_SITE;;
2570 *) ac_site_file1=./$CONFIG_SITE;;
2572 elif test "x$prefix" != xNONE; then
2573 ac_site_file1=$prefix/share/config.site
2574 ac_site_file2=$prefix/etc/config.site
2576 ac_site_file1=$ac_default_prefix/share/config.site
2577 ac_site_file2=$ac_default_prefix/etc/config.site
2579 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2581 test "x$ac_site_file" = xNONE && continue
2582 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2584 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2585 sed 's/^/| /' "$ac_site_file" >&5
2587 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2589 as_fn_error $? "failed to load site script $ac_site_file
2590 See \`config.log' for more details" "$LINENO" 5; }
2594 if test -r "$cache_file"; then
2595 # Some versions of bash will fail to source /dev/null (special files
2596 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2597 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2599 $as_echo "$as_me: loading cache $cache_file" >&6;}
2601 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2602 *) . "./$cache_file";;
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2607 $as_echo "$as_me: creating cache $cache_file" >&6;}
2611 # Check that the precious variables saved in the cache have kept the same
2613 ac_cache_corrupted=false
2614 for ac_var in $ac_precious_vars; do
2615 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2616 eval ac_new_set=\$ac_env_${ac_var}_set
2617 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2618 eval ac_new_val=\$ac_env_${ac_var}_value
2619 case $ac_old_set,$ac_new_set in
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2626 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2627 ac_cache_corrupted=: ;;
2630 if test "x$ac_old_val" != "x$ac_new_val"; then
2631 # differences in whitespace do not lead to failure.
2632 ac_old_val_w=`echo x $ac_old_val`
2633 ac_new_val_w=`echo x $ac_new_val`
2634 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2636 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2637 ac_cache_corrupted=:
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2640 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2641 eval $ac_var=\$ac_old_val
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2644 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2646 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2649 # Pass precious variables to config.status.
2650 if test "$ac_new_set" = set; then
2652 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2653 *) ac_arg=$ac_var=$ac_new_val ;;
2655 case " $ac_configure_args " in
2656 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2657 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2661 if $ac_cache_corrupted; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2665 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2666 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2668 ## -------------------- ##
2669 ## Main body of script. ##
2670 ## -------------------- ##
2673 ac_cpp='$CPP $CPPFLAGS'
2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684 for ac_dir in config "$srcdir"/config; do
2685 if test -f "$ac_dir/install-sh"; then
2687 ac_install_sh="$ac_aux_dir/install-sh -c"
2689 elif test -f "$ac_dir/install.sh"; then
2691 ac_install_sh="$ac_aux_dir/install.sh -c"
2693 elif test -f "$ac_dir/shtool"; then
2695 ac_install_sh="$ac_aux_dir/shtool install -c"
2699 if test -z "$ac_aux_dir"; then
2700 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2703 # These three variables are undocumented and unsupported,
2704 # and are intended to be withdrawn in a future Autoconf release.
2705 # They can cause serious problems if a builder's source tree is in a directory
2706 # whose full name contains unusual characters.
2707 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2708 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2709 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2713 configure_args=$ac_configure_args
2716 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2719 cat >>confdefs.h <<_ACEOF
2720 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2727 # Check whether --with-extra-version was given.
2728 if test "${with_extra_version+set}" = set; then :
2729 withval=$with_extra_version;
2732 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2735 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2738 PG_VERSION="$PACKAGE_VERSION$withval"
2743 PG_VERSION="$PACKAGE_VERSION"
2748 cat >>confdefs.h <<_ACEOF
2749 #define PG_VERSION "$PG_VERSION"
2753 # Make sure we can run config.sub.
2754 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2755 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2758 $as_echo_n "checking build system type... " >&6; }
2759 if ${ac_cv_build+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 ac_build_alias=$build_alias
2763 test "x$ac_build_alias" = x &&
2764 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2765 test "x$ac_build_alias" = x &&
2766 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2767 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2768 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2772 $as_echo "$ac_cv_build" >&6; }
2773 case $ac_cv_build in
2775 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2778 ac_save_IFS=$IFS; IFS='-'
2784 # Remember, the first character of IFS is used to create $*,
2785 # except with old shells:
2788 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2792 $as_echo_n "checking host system type... " >&6; }
2793 if ${ac_cv_host+:} false; then :
2794 $as_echo_n "(cached) " >&6
2796 if test "x$host_alias" = x; then
2797 ac_cv_host=$ac_cv_build
2799 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2800 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2805 $as_echo "$ac_cv_host" >&6; }
2808 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2811 ac_save_IFS=$IFS; IFS='-'
2817 # Remember, the first character of IFS is used to create $*,
2818 # except with old shells:
2821 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2827 $as_echo_n "checking which template to use... " >&6; }
2832 # Check whether --with-template was given.
2833 if test "${with_template+set}" = set; then :
2834 withval=$with_template;
2837 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2840 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2845 list) echo; ls "$srcdir/src/template"; exit;;
2846 *) if test -f "$srcdir/src/template/$with_template" ; then
2849 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2858 # --with-template not given
2861 aix*) template=aix ;;
2862 cygwin*) template=cygwin ;;
2863 darwin*) template=darwin ;;
2864 dragonfly*) template=netbsd ;;
2865 freebsd*) template=freebsd ;;
2866 hpux*) template=hpux ;;
2867 linux*|gnu*|k*bsd*-gnu)
2869 mingw*) template=win32 ;;
2870 netbsd*) template=netbsd ;;
2871 openbsd*) template=openbsd ;;
2872 solaris*) template=solaris ;;
2875 if test x"$template" = x"" ; then
2877 *******************************************************************
2878 PostgreSQL has apparently not been ported to your platform yet.
2879 To try a manual configuration, look into the src/template directory
2880 for a similar platform and use the '--with-template=' option.
2882 Please also contact <pgsql-bugs@postgresql.org> to see about
2883 rectifying this. Include the above 'checking host system type...'
2885 *******************************************************************
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2895 $as_echo "$template" >&6; }
2900 # Initialize default assumption that we do not need separate assembly code
2901 # for TAS (test-and-set). This can be overridden by the template file
2902 # when it's executed.
2909 ## Command line options
2913 # Add non-standard directories to the include path
2918 # Check whether --with-includes was given.
2919 if test "${with_includes+set}" = set; then :
2920 withval=$with_includes;
2923 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2926 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2939 # Add non-standard directories to the library search path
2944 # Check whether --with-libraries was given.
2945 if test "${with_libraries+set}" = set; then :
2946 withval=$with_libraries;
2949 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2952 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2955 LIBRARY_DIRS=$withval
2966 # Check whether --with-libs was given.
2967 if test "${with_libs+set}" = set; then :
2971 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2974 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2977 LIBRARY_DIRS=$withval
2987 # 64-bit integer date/time storage: enabled by default.
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with 64-bit integer date/time support" >&5
2990 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2993 # Check whether --enable-integer-datetimes was given.
2994 if test "${enable_integer_datetimes+set}" = set; then :
2995 enableval=$enable_integer_datetimes;
2999 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
3006 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3011 enable_integer_datetimes=yes
3013 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_integer_datetimes" >&5
3019 $as_echo "$enable_integer_datetimes" >&6; }
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3026 $as_echo_n "checking whether NLS is wanted... " >&6; }
3029 # Check whether --enable-nls was given.
3030 if test "${enable_nls+set}" = set; then :
3031 enableval=$enable_nls;
3041 WANTED_LANGUAGES=$enableval
3051 if test "$enable_nls" = yes; then
3053 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3058 $as_echo "$enable_nls" >&6; }
3063 # Default port number (--with-pgport), default 5432
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3066 $as_echo_n "checking for default port number... " >&6; }
3070 # Check whether --with-pgport was given.
3071 if test "${with_pgport+set}" = set; then :
3072 withval=$with_pgport;
3075 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3078 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3081 default_port=$withval
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3091 $as_echo "$default_port" >&6; }
3092 # Need both of these because some places want an integer and some a string
3094 cat >>confdefs.h <<_ACEOF
3095 #define DEF_PGPORT ${default_port}
3099 cat >>confdefs.h <<_ACEOF
3100 #define DEF_PGPORT_STR "${default_port}"
3105 # It's worth validating port; you can get very confusing errors otherwise
3106 if test x"$default_port" = x""; then
3107 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3108 elif test ! x`echo "$default_port" | sed -e 's/[0-9]*//'` = x""; then
3109 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3110 elif test ! x`echo "$default_port" | sed -e 's/^0.//'` = x"$default_port"; then
3111 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3112 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3113 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3117 # '-rpath'-like feature can be disabled
3121 # Check whether --enable-rpath was given.
3122 if test "${enable_rpath+set}" = set; then :
3123 enableval=$enable_rpath;
3132 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3149 # Check whether --enable-spinlocks was given.
3150 if test "${enable_spinlocks+set}" = set; then :
3151 enableval=$enable_spinlocks;
3160 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3165 enable_spinlocks=yes
3176 # Check whether --enable-atomics was given.
3177 if test "${enable_atomics+set}" = set; then :
3178 enableval=$enable_atomics;
3187 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3199 # Random number generation
3203 # Check whether --enable-strong-random was given.
3204 if test "${enable_strong_random+set}" = set; then :
3205 enableval=$enable_strong_random;
3214 as_fn_error $? "no argument expected for --enable-strong-random option" "$LINENO" 5
3219 enable_strong_random=yes
3227 # --enable-debug adds -g to compiler flags
3231 # Check whether --enable-debug was given.
3232 if test "${enable_debug+set}" = set; then :
3233 enableval=$enable_debug;
3242 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3255 # --enable-profiling enables gcc profiling
3259 # Check whether --enable-profiling was given.
3260 if test "${enable_profiling+set}" = set; then :
3261 enableval=$enable_profiling;
3270 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3282 # --enable-coverage enables generation of code coverage metrics with gcov
3286 # Check whether --enable-coverage was given.
3287 if test "${enable_coverage+set}" = set; then :
3288 enableval=$enable_coverage;
3293 # Extract the first word of "$ac_prog", so it can be a program name with args.
3294 set dummy $ac_prog; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_GCOV+:} false; then :
3298 $as_echo_n "(cached) " >&6
3300 if test -n "$GCOV"; then
3301 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310 ac_cv_prog_GCOV="$ac_prog"
3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 GCOV=$ac_cv_prog_GCOV
3321 if test -n "$GCOV"; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3323 $as_echo "$GCOV" >&6; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3330 test -n "$GCOV" && break
3333 if test -z "$GCOV"; then
3334 as_fn_error $? "gcov not found" "$LINENO" 5
3338 # Extract the first word of "$ac_prog", so it can be a program name with args.
3339 set dummy $ac_prog; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_LCOV+:} false; then :
3343 $as_echo_n "(cached) " >&6
3345 if test -n "$LCOV"; then
3346 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_LCOV="$ac_prog"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 LCOV=$ac_cv_prog_LCOV
3366 if test -n "$LCOV"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3368 $as_echo "$LCOV" >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3375 test -n "$LCOV" && break
3378 if test -z "$LCOV"; then
3379 as_fn_error $? "lcov not found" "$LINENO" 5
3381 for ac_prog in genhtml
3383 # Extract the first word of "$ac_prog", so it can be a program name with args.
3384 set dummy $ac_prog; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if ${ac_cv_prog_GENHTML+:} false; then :
3388 $as_echo_n "(cached) " >&6
3390 if test -n "$GENHTML"; then
3391 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_GENHTML="$ac_prog"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 GENHTML=$ac_cv_prog_GENHTML
3411 if test -n "$GENHTML"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3413 $as_echo "$GENHTML" >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3420 test -n "$GENHTML" && break
3423 if test -z "$GENHTML"; then
3424 as_fn_error $? "genhtml not found" "$LINENO" 5
3431 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3448 # Check whether --enable-dtrace was given.
3449 if test "${enable_dtrace+set}" = set; then :
3450 enableval=$enable_dtrace;
3453 for ac_prog in dtrace
3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy $ac_prog; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_DTRACE+:} false; then :
3460 $as_echo_n "(cached) " >&6
3462 if test -n "$DTRACE"; then
3463 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_DTRACE="$ac_prog"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 DTRACE=$ac_cv_prog_DTRACE
3483 if test -n "$DTRACE"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3485 $as_echo "$DTRACE" >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3492 test -n "$DTRACE" && break
3495 if test -z "$DTRACE"; then
3496 as_fn_error $? "dtrace not found" "$LINENO" 5
3504 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3521 # Check whether --enable-tap-tests was given.
3522 if test "${enable_tap_tests+set}" = set; then :
3523 enableval=$enable_tap_tests;
3532 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3548 $as_echo_n "checking for block size... " >&6; }
3552 # Check whether --with-blocksize was given.
3553 if test "${with_blocksize+set}" = set; then :
3554 withval=$with_blocksize;
3557 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3560 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3572 case ${blocksize} in
3579 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3582 $as_echo "${blocksize}kB" >&6; }
3585 cat >>confdefs.h <<_ACEOF
3586 #define BLCKSZ ${BLCKSZ}
3591 # Relation segment size
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3594 $as_echo_n "checking for segment size... " >&6; }
3598 # Check whether --with-segsize was given.
3599 if test "${with_segsize+set}" = set; then :
3600 withval=$with_segsize;
3603 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3606 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3618 # this expression is set up to avoid unnecessary integer overflow
3619 # blocksize is already guaranteed to be a factor of 1024
3620 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3621 test $? -eq 0 || exit 1
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3623 $as_echo "${segsize}GB" >&6; }
3626 cat >>confdefs.h <<_ACEOF
3627 #define RELSEG_SIZE ${RELSEG_SIZE}
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3635 $as_echo_n "checking for WAL block size... " >&6; }
3639 # Check whether --with-wal-blocksize was given.
3640 if test "${with_wal_blocksize+set}" = set; then :
3641 withval=$with_wal_blocksize;
3644 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3647 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3650 wal_blocksize=$withval
3659 case ${wal_blocksize} in
3660 1) XLOG_BLCKSZ=1024;;
3661 2) XLOG_BLCKSZ=2048;;
3662 4) XLOG_BLCKSZ=4096;;
3663 8) XLOG_BLCKSZ=8192;;
3664 16) XLOG_BLCKSZ=16384;;
3665 32) XLOG_BLCKSZ=32768;;
3666 64) XLOG_BLCKSZ=65536;;
3667 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3670 $as_echo "${wal_blocksize}kB" >&6; }
3673 cat >>confdefs.h <<_ACEOF
3674 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL segment size" >&5
3682 $as_echo_n "checking for WAL segment size... " >&6; }
3686 # Check whether --with-wal-segsize was given.
3687 if test "${with_wal_segsize+set}" = set; then :
3688 withval=$with_wal_segsize;
3691 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3694 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3697 wal_segsize=$withval
3706 case ${wal_segsize} in
3714 *) as_fn_error $? "Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_segsize}MB" >&5
3717 $as_echo "${wal_segsize}MB" >&6; }
3720 cat >>confdefs.h <<_ACEOF
3721 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3729 # For historical reasons you can also use --with-CC to specify the C compiler
3730 # to use, although the standard way to do this is to set the CC environment
3735 # Check whether --with-CC was given.
3736 if test "${with_CC+set}" = set; then :
3740 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3743 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3755 aix) pgac_cc_list="gcc xlc";;
3756 *) pgac_cc_list="gcc cc";;
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764 if test -n "$ac_tool_prefix"; then
3765 for ac_prog in $pgac_cc_list
3767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 $as_echo_n "checking for $ac_word... " >&6; }
3771 if ${ac_cv_prog_CC+:} false; then :
3772 $as_echo_n "(cached) " >&6
3774 if test -n "$CC"; then
3775 ac_cv_prog_CC="$CC" # Let the user override the test.
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 if test -n "$CC"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797 $as_echo "$CC" >&6; }
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3804 test -n "$CC" && break
3807 if test -z "$CC"; then
3809 for ac_prog in $pgac_cc_list
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3816 $as_echo_n "(cached) " >&6
3818 if test -n "$ac_ct_CC"; then
3819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_ac_ct_CC="$ac_prog"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3839 if test -n "$ac_ct_CC"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3841 $as_echo "$ac_ct_CC" >&6; }
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3848 test -n "$ac_ct_CC" && break
3851 if test "x$ac_ct_CC" = x; then
3854 case $cross_compiling:$ac_tool_warned in
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3858 ac_tool_warned=yes ;;
3865 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 as_fn_error $? "no acceptable C compiler found in \$PATH
3868 See \`config.log' for more details" "$LINENO" 5; }
3870 # Provide some information about the compiler.
3871 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3874 for ac_option in --version -v -V -qversion; do
3875 { { ac_try="$ac_compiler $ac_option >&5"
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 $as_echo "$ac_try_echo"; } >&5
3882 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3884 if test -s conftest.err; then
3886 ... rest of stderr output deleted ...
3887 10q' conftest.err >conftest.er1
3888 cat conftest.er1 >&5
3890 rm -f conftest.er1 conftest.err
3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; }
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3906 ac_clean_files_save=$ac_clean_files
3907 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3908 # Try to create an executable without -o first, disregard a.out.
3909 # It will help us diagnose broken compilers, and finding out an intuition
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3912 $as_echo_n "checking whether the C compiler works... " >&6; }
3913 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3915 # The possible output files:
3916 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3919 for ac_file in $ac_files
3922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3923 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3928 if { { ac_try="$ac_link_default"
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_link_default") 2>&5
3937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }; then :
3939 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3940 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3941 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3942 # so that the user can short-circuit this test for compilers unknown to
3944 for ac_file in $ac_files ''
3946 test -f "$ac_file" || continue
3948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951 # We found the default executable, but exeext='' is most
3955 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3957 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3959 # We set ac_cv_exeext here because the later test for it is not
3960 # safe: cross compilers may not add the suffix if given an `-o'
3961 # argument, so we may need to know it at that point already.
3962 # Even if this section looks crufty: it has the advantage of
3969 test "$ac_cv_exeext" = no && ac_cv_exeext=
3974 if test -z "$ac_file"; then :
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3977 $as_echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error 77 "C compiler cannot create executables
3983 See \`config.log' for more details" "$LINENO" 5; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3986 $as_echo "yes" >&6; }
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3989 $as_echo_n "checking for C compiler default output file name... " >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3991 $as_echo "$ac_file" >&6; }
3992 ac_exeext=$ac_cv_exeext
3994 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3995 ac_clean_files=$ac_clean_files_save
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3997 $as_echo_n "checking for suffix of executables... " >&6; }
3998 if { { ac_try="$ac_link"
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 $as_echo "$ac_try_echo"; } >&5
4005 (eval "$ac_link") 2>&5
4007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008 test $ac_status = 0; }; then :
4009 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4010 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4011 # work properly (i.e., refer to `conftest.exe'), while it won't with
4013 for ac_file in conftest.exe conftest conftest.*; do
4014 test -f "$ac_file" || continue
4016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4017 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4026 See \`config.log' for more details" "$LINENO" 5; }
4028 rm -f conftest conftest$ac_cv_exeext
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4030 $as_echo "$ac_cv_exeext" >&6; }
4032 rm -f conftest.$ac_ext
4033 EXEEXT=$ac_cv_exeext
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4041 FILE *f = fopen ("conftest.out", "w");
4042 return ferror (f) || fclose (f) != 0;
4048 ac_clean_files="$ac_clean_files conftest.out"
4049 # Check that the compiler produces executables we can run. If not, either
4050 # the compiler is broken, or we cross compile.
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4052 $as_echo_n "checking whether we are cross compiling... " >&6; }
4053 if test "$cross_compiling" != yes; then
4054 { { ac_try="$ac_link"
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060 $as_echo "$ac_try_echo"; } >&5
4061 (eval "$ac_link") 2>&5
4063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064 test $ac_status = 0; }
4065 if { ac_try='./conftest$ac_cv_exeext'
4066 { { case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071 $as_echo "$ac_try_echo"; } >&5
4072 (eval "$ac_try") 2>&5
4074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075 test $ac_status = 0; }; }; then
4078 if test "$cross_compiling" = maybe; then
4081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4083 as_fn_error $? "cannot run C compiled programs.
4084 If you meant to cross compile, use \`--host'.
4085 See \`config.log' for more details" "$LINENO" 5; }
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4090 $as_echo "$cross_compiling" >&6; }
4092 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4093 ac_clean_files=$ac_clean_files_save
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4095 $as_echo_n "checking for suffix of object files... " >&6; }
4096 if ${ac_cv_objext+:} false; then :
4097 $as_echo_n "(cached) " >&6
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4110 rm -f conftest.o conftest.obj
4111 if { { ac_try="$ac_compile"
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117 $as_echo "$ac_try_echo"; } >&5
4118 (eval "$ac_compile") 2>&5
4120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121 test $ac_status = 0; }; then :
4122 for ac_file in conftest.o conftest.obj conftest.*; do
4123 test -f "$ac_file" || continue;
4125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4131 $as_echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4136 as_fn_error $? "cannot compute suffix of object files: cannot compile
4137 See \`config.log' for more details" "$LINENO" 5; }
4139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4142 $as_echo "$ac_cv_objext" >&6; }
4143 OBJEXT=$ac_cv_objext
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4146 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4147 if ${ac_cv_c_compiler_gnu+:} false; then :
4148 $as_echo_n "(cached) " >&6
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4164 if ac_fn_c_try_compile "$LINENO"; then :
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4174 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4175 if test $ac_compiler_gnu = yes; then
4180 ac_test_CFLAGS=${CFLAGS+set}
4181 ac_save_CFLAGS=$CFLAGS
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4183 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4184 if ${ac_cv_prog_cc_g+:} false; then :
4185 $as_echo_n "(cached) " >&6
4187 ac_save_c_werror_flag=$ac_c_werror_flag
4188 ac_c_werror_flag=yes
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4202 if ac_fn_c_try_compile "$LINENO"; then :
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4217 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_c_werror_flag=$ac_save_c_werror_flag
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4233 if ac_fn_c_try_compile "$LINENO"; then :
4236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 ac_c_werror_flag=$ac_save_c_werror_flag
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4244 $as_echo "$ac_cv_prog_cc_g" >&6; }
4245 if test "$ac_test_CFLAGS" = set; then
4246 CFLAGS=$ac_save_CFLAGS
4247 elif test $ac_cv_prog_cc_g = yes; then
4248 if test "$GCC" = yes; then
4254 if test "$GCC" = yes; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4261 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4262 if ${ac_cv_prog_cc_c89+:} false; then :
4263 $as_echo_n "(cached) " >&6
4265 ac_cv_prog_cc_c89=no
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4272 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4273 struct buf { int x; };
4274 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4275 static char *e (p, i)
4281 static char *f (char * (*g) (char **, int), char **p, ...)
4286 s = g (p, va_arg (v,int));
4291 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4292 function prototypes and stuff, but not '\xHH' hex character constants.
4293 These don't provoke an error unfortunately, instead are silently treated
4294 as 'x'. The following induces an error, until -std is added to get
4295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4296 array size at least. It's necessary to write '\x00'==0 to get something
4297 that's true only with -std. */
4298 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4300 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4301 inside strings and character constants. */
4303 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4305 int test (int i, double x);
4306 struct s1 {int (*f) (int a);};
4307 struct s2 {int (*f) (double a);};
4308 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4314 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4319 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4320 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4322 CC="$ac_save_CC $ac_arg"
4323 if ac_fn_c_try_compile "$LINENO"; then :
4324 ac_cv_prog_cc_c89=$ac_arg
4326 rm -f core conftest.err conftest.$ac_objext
4327 test "x$ac_cv_prog_cc_c89" != "xno" && break
4329 rm -f conftest.$ac_ext
4334 case "x$ac_cv_prog_cc_c89" in
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4337 $as_echo "none needed" >&6; } ;;
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4340 $as_echo "unsupported" >&6; } ;;
4342 CC="$CC $ac_cv_prog_cc_c89"
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4344 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4346 if test "x$ac_cv_prog_cc_c89" != xno; then :
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4358 # but has idiosyncrasies of its own. We assume icc will define
4359 # __INTEL_COMPILER regardless of CFLAGS.
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4367 #ifndef __INTEL_COMPILER
4374 if ac_fn_c_try_compile "$LINENO"; then :
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 # Check if it's Sun Studio compiler. We assume that
4382 # __SUNPRO_C will be defined for Sun Studio compilers
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4396 if ac_fn_c_try_compile "$LINENO"; then :
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 . "$srcdir/src/template/$template" || exit
4412 # CFLAGS are selected so:
4413 # If the user specifies something in the environment, that is used.
4414 # else: If the template file set something, that is used.
4415 # else: If coverage was enabled, don't set anything.
4416 # else: If the compiler is GCC, then we use -O2.
4417 # else: If the compiler is something else, then we use -O, unless debugging.
4419 if test "$ac_env_CFLAGS_set" = set; then
4420 CFLAGS=$ac_env_CFLAGS_value
4421 elif test "${CFLAGS+set}" = set; then
4422 : # (keep what template set)
4423 elif test "$enable_coverage" = yes; then
4424 : # no optimization by default
4425 elif test "$GCC" = yes; then
4428 # if the user selected debug mode, don't use -O
4429 if test "$enable_debug" != yes; then
4434 # CFLAGS we determined above will be added back at the end
4438 # set CFLAGS_VECTOR from the environment, if available
4439 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
4440 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
4443 # Some versions of GCC support some additional useful warning flags.
4444 # Check whether they are supported, and add them to CFLAGS if so.
4445 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4446 # but has its own. Also check other compiler-specific flags here.
4448 if test "$GCC" = yes -a "$ICC" = no; then
4449 CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith"
4450 # These work in some but not all gcc versions
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
4452 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4453 if ${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+:} false; then :
4454 $as_echo_n "(cached) " >&6
4456 pgac_save_CFLAGS=$CFLAGS
4457 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4458 ac_save_c_werror_flag=$ac_c_werror_flag
4459 ac_c_werror_flag=yes
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4471 if ac_fn_c_try_compile "$LINENO"; then :
4472 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4474 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 ac_c_werror_flag=$ac_save_c_werror_flag
4478 CFLAGS="$pgac_save_CFLAGS"
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4481 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4482 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4483 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wendif-labels" >&5
4487 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4488 if ${pgac_cv_prog_cc_cflags__Wendif_labels+:} false; then :
4489 $as_echo_n "(cached) " >&6
4491 pgac_save_CFLAGS=$CFLAGS
4492 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4493 ac_save_c_werror_flag=$ac_c_werror_flag
4494 ac_c_werror_flag=yes
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4506 if ac_fn_c_try_compile "$LINENO"; then :
4507 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4509 pgac_cv_prog_cc_cflags__Wendif_labels=no
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 ac_c_werror_flag=$ac_save_c_werror_flag
4513 CFLAGS="$pgac_save_CFLAGS"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4516 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4517 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4518 CFLAGS="$CFLAGS -Wendif-labels"
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-format-attribute" >&5
4522 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4523 if ${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+:} false; then :
4524 $as_echo_n "(cached) " >&6
4526 pgac_save_CFLAGS=$CFLAGS
4527 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4528 ac_save_c_werror_flag=$ac_c_werror_flag
4529 ac_c_werror_flag=yes
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4541 if ac_fn_c_try_compile "$LINENO"; then :
4542 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4544 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 ac_c_werror_flag=$ac_save_c_werror_flag
4548 CFLAGS="$pgac_save_CFLAGS"
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4551 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4552 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4553 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4556 # This was included in -Wall/-Wformat in older GCC versions
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security" >&5
4558 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4559 if ${pgac_cv_prog_cc_cflags__Wformat_security+:} false; then :
4560 $as_echo_n "(cached) " >&6
4562 pgac_save_CFLAGS=$CFLAGS
4563 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4564 ac_save_c_werror_flag=$ac_c_werror_flag
4565 ac_c_werror_flag=yes
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4577 if ac_fn_c_try_compile "$LINENO"; then :
4578 pgac_cv_prog_cc_cflags__Wformat_security=yes
4580 pgac_cv_prog_cc_cflags__Wformat_security=no
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 ac_c_werror_flag=$ac_save_c_werror_flag
4584 CFLAGS="$pgac_save_CFLAGS"
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4587 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4588 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4589 CFLAGS="$CFLAGS -Wformat-security"
4592 # Disable strict-aliasing rules; needed for gcc 3.3+
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4594 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4595 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4596 $as_echo_n "(cached) " >&6
4598 pgac_save_CFLAGS=$CFLAGS
4599 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4600 ac_save_c_werror_flag=$ac_c_werror_flag
4601 ac_c_werror_flag=yes
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4613 if ac_fn_c_try_compile "$LINENO"; then :
4614 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4616 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4620 CFLAGS="$pgac_save_CFLAGS"
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4623 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4624 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4625 CFLAGS="$CFLAGS -fno-strict-aliasing"
4628 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fwrapv" >&5
4630 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4631 if ${pgac_cv_prog_cc_cflags__fwrapv+:} false; then :
4632 $as_echo_n "(cached) " >&6
4634 pgac_save_CFLAGS=$CFLAGS
4635 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4636 ac_save_c_werror_flag=$ac_c_werror_flag
4637 ac_c_werror_flag=yes
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650 pgac_cv_prog_cc_cflags__fwrapv=yes
4652 pgac_cv_prog_cc_cflags__fwrapv=no
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 ac_c_werror_flag=$ac_save_c_werror_flag
4656 CFLAGS="$pgac_save_CFLAGS"
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4659 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4660 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4661 CFLAGS="$CFLAGS -fwrapv"
4664 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fexcess-precision=standard" >&5
4666 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4667 if ${pgac_cv_prog_cc_cflags__fexcess_precision_standard+:} false; then :
4668 $as_echo_n "(cached) " >&6
4670 pgac_save_CFLAGS=$CFLAGS
4671 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4672 ac_save_c_werror_flag=$ac_c_werror_flag
4673 ac_c_werror_flag=yes
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4685 if ac_fn_c_try_compile "$LINENO"; then :
4686 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4688 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_c_werror_flag=$ac_save_c_werror_flag
4692 CFLAGS="$pgac_save_CFLAGS"
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4695 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4696 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4697 CFLAGS="$CFLAGS -fexcess-precision=standard"
4700 # Optimization flags for specific files that benefit from vectorization
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -funroll-loops" >&5
4702 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4703 if ${pgac_cv_prog_cc_cflags__funroll_loops+:} false; then :
4704 $as_echo_n "(cached) " >&6
4706 pgac_save_CFLAGS=$CFLAGS
4707 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4708 ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4721 if ac_fn_c_try_compile "$LINENO"; then :
4722 pgac_cv_prog_cc_cflags__funroll_loops=yes
4724 pgac_cv_prog_cc_cflags__funroll_loops=no
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 ac_c_werror_flag=$ac_save_c_werror_flag
4728 CFLAGS="$pgac_save_CFLAGS"
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4731 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4732 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4733 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftree-vectorize" >&5
4737 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4738 if ${pgac_cv_prog_cc_cflags__ftree_vectorize+:} false; then :
4739 $as_echo_n "(cached) " >&6
4741 pgac_save_CFLAGS=$CFLAGS
4742 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4743 ac_save_c_werror_flag=$ac_c_werror_flag
4744 ac_c_werror_flag=yes
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4759 pgac_cv_prog_cc_cflags__ftree_vectorize=no
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_c_werror_flag=$ac_save_c_werror_flag
4763 CFLAGS="$pgac_save_CFLAGS"
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4766 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4767 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4768 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4771 # We want to suppress clang's unhelpful unused-command-line-argument warnings
4772 # but gcc won't complain about unrecognized -Wno-foo switches, so we have to
4773 # test for the positive form and if that works, add the negative form
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-command-line-argument" >&5
4775 $as_echo_n "checking whether $CC supports -Wunused-command-line-argument... " >&6; }
4776 if ${pgac_cv_prog_cc_cflags__Wunused_command_line_argument+:} false; then :
4777 $as_echo_n "(cached) " >&6
4779 pgac_save_CFLAGS=$CFLAGS
4780 CFLAGS="$pgac_save_CFLAGS -Wunused-command-line-argument"
4781 ac_save_c_werror_flag=$ac_c_werror_flag
4782 ac_c_werror_flag=yes
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4794 if ac_fn_c_try_compile "$LINENO"; then :
4795 pgac_cv_prog_cc_cflags__Wunused_command_line_argument=yes
4797 pgac_cv_prog_cc_cflags__Wunused_command_line_argument=no
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 ac_c_werror_flag=$ac_save_c_werror_flag
4801 CFLAGS="$pgac_save_CFLAGS"
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wunused_command_line_argument" >&5
4804 $as_echo "$pgac_cv_prog_cc_cflags__Wunused_command_line_argument" >&6; }
4805 if test x"$pgac_cv_prog_cc_cflags__Wunused_command_line_argument" = x"yes"; then
4806 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
4809 if test -n "$NOT_THE_CFLAGS"; then
4810 CFLAGS="$CFLAGS -Wno-unused-command-line-argument"
4812 elif test "$ICC" = yes; then
4813 # Intel's compiler has a bug/misoptimization in checking for
4814 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mp1" >&5
4816 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4817 if ${pgac_cv_prog_cc_cflags__mp1+:} false; then :
4818 $as_echo_n "(cached) " >&6
4820 pgac_save_CFLAGS=$CFLAGS
4821 CFLAGS="$pgac_save_CFLAGS -mp1"
4822 ac_save_c_werror_flag=$ac_c_werror_flag
4823 ac_c_werror_flag=yes
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4835 if ac_fn_c_try_compile "$LINENO"; then :
4836 pgac_cv_prog_cc_cflags__mp1=yes
4838 pgac_cv_prog_cc_cflags__mp1=no
4840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 ac_c_werror_flag=$ac_save_c_werror_flag
4842 CFLAGS="$pgac_save_CFLAGS"
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4845 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4846 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4847 CFLAGS="$CFLAGS -mp1"
4850 # Make sure strict aliasing is off (though this is said to be the default)
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4852 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4853 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4854 $as_echo_n "(cached) " >&6
4856 pgac_save_CFLAGS=$CFLAGS
4857 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4858 ac_save_c_werror_flag=$ac_c_werror_flag
4859 ac_c_werror_flag=yes
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4871 if ac_fn_c_try_compile "$LINENO"; then :
4872 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4874 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 ac_c_werror_flag=$ac_save_c_werror_flag
4878 CFLAGS="$pgac_save_CFLAGS"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4881 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4882 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4883 CFLAGS="$CFLAGS -fno-strict-aliasing"
4886 elif test "$PORTNAME" = "aix"; then
4887 # AIX's xlc has to have strict aliasing turned off too
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qnoansialias" >&5
4889 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4890 if ${pgac_cv_prog_cc_cflags__qnoansialias+:} false; then :
4891 $as_echo_n "(cached) " >&6
4893 pgac_save_CFLAGS=$CFLAGS
4894 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4895 ac_save_c_werror_flag=$ac_c_werror_flag
4896 ac_c_werror_flag=yes
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4908 if ac_fn_c_try_compile "$LINENO"; then :
4909 pgac_cv_prog_cc_cflags__qnoansialias=yes
4911 pgac_cv_prog_cc_cflags__qnoansialias=no
4913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914 ac_c_werror_flag=$ac_save_c_werror_flag
4915 CFLAGS="$pgac_save_CFLAGS"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4918 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4919 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4920 CFLAGS="$CFLAGS -qnoansialias"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qlonglong" >&5
4924 $as_echo_n "checking whether $CC supports -qlonglong... " >&6; }
4925 if ${pgac_cv_prog_cc_cflags__qlonglong+:} false; then :
4926 $as_echo_n "(cached) " >&6
4928 pgac_save_CFLAGS=$CFLAGS
4929 CFLAGS="$pgac_save_CFLAGS -qlonglong"
4930 ac_save_c_werror_flag=$ac_c_werror_flag
4931 ac_c_werror_flag=yes
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4943 if ac_fn_c_try_compile "$LINENO"; then :
4944 pgac_cv_prog_cc_cflags__qlonglong=yes
4946 pgac_cv_prog_cc_cflags__qlonglong=no
4948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 ac_c_werror_flag=$ac_save_c_werror_flag
4950 CFLAGS="$pgac_save_CFLAGS"
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qlonglong" >&5
4953 $as_echo "$pgac_cv_prog_cc_cflags__qlonglong" >&6; }
4954 if test x"$pgac_cv_prog_cc_cflags__qlonglong" = x"yes"; then
4955 CFLAGS="$CFLAGS -qlonglong"
4958 elif test "$PORTNAME" = "hpux"; then
4959 # On some versions of HP-UX, libm functions do not set errno by default.
4960 # Fix that by using +Olibmerrno if the compiler recognizes it.
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports +Olibmerrno" >&5
4962 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4963 if ${pgac_cv_prog_cc_cflags_pOlibmerrno+:} false; then :
4964 $as_echo_n "(cached) " >&6
4966 pgac_save_CFLAGS=$CFLAGS
4967 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4968 ac_save_c_werror_flag=$ac_c_werror_flag
4969 ac_c_werror_flag=yes
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4984 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 ac_c_werror_flag=$ac_save_c_werror_flag
4988 CFLAGS="$pgac_save_CFLAGS"
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4991 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4992 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4993 CFLAGS="$CFLAGS +Olibmerrno"
4998 CFLAGS_VECTOR=$CFLAGS_VECTOR
5001 # supply -g if --enable-debug
5002 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
5006 # enable code coverage if --enable-coverage
5007 if test "$enable_coverage" = yes; then
5008 if test "$GCC" = yes; then
5009 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
5011 as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5
5015 # enable profiling if --enable-profiling
5016 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
5017 if test "$GCC" = yes; then
5019 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
5021 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
5023 as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5
5027 # We already have this in Makefile.win32, but configure needs it too
5028 if test "$PORTNAME" = "win32"; then
5029 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
5032 # Now that we're done automatically adding stuff to CFLAGS, put back the
5033 # user-specified flags (if any) at the end. This lets users override
5034 # the automatic additions.
5035 CFLAGS="$CFLAGS $user_CFLAGS"
5037 # Check if the compiler still works with the final flag settings
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
5039 $as_echo_n "checking whether the C compiler still works... " >&6; }
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5051 if ac_fn_c_try_link "$LINENO"; then :
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5053 $as_echo "yes" >&6; }
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5057 as_fn_error $? "cannot proceed" "$LINENO" 5
5059 rm -f core conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5062 # Defend against gcc -ffast-math
5063 if test "$GCC" = yes; then
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5070 #ifdef __FAST_MATH__
5077 if ac_fn_c_try_compile "$LINENO"; then :
5080 as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5
5082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5091 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5092 # On Suns, sometimes $CPP names a directory.
5093 if test -n "$CPP" && test -d "$CPP"; then
5096 if test -z "$CPP"; then
5097 if ${ac_cv_prog_CPP+:} false; then :
5098 $as_echo_n "(cached) " >&6
5100 # Double quotes because CPP needs to be expanded
5101 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5104 for ac_c_preproc_warn_flag in '' yes
5106 # Use a header file that comes with gcc, so configuring glibc
5107 # with a fresh cross-compiler works.
5108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5109 # <limits.h> exists even on freestanding compilers.
5110 # On the NeXT, cc -E runs the code through the compiler's parser,
5111 # not just through cpp. "Syntax error" is here to catch this case.
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5115 # include <limits.h>
5117 # include <assert.h>
5121 if ac_fn_c_try_cpp "$LINENO"; then :
5124 # Broken: fails on valid input.
5127 rm -f conftest.err conftest.i conftest.$ac_ext
5129 # OK, works on sane cases. Now check whether nonexistent headers
5130 # can be detected and how.
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5133 #include <ac_nonexistent.h>
5135 if ac_fn_c_try_cpp "$LINENO"; then :
5136 # Broken: success on invalid input.
5139 # Passes both tests.
5143 rm -f conftest.err conftest.i conftest.$ac_ext
5146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5147 rm -f conftest.i conftest.err conftest.$ac_ext
5148 if $ac_preproc_ok; then :
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5161 $as_echo "$CPP" >&6; }
5163 for ac_c_preproc_warn_flag in '' yes
5165 # Use a header file that comes with gcc, so configuring glibc
5166 # with a fresh cross-compiler works.
5167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5168 # <limits.h> exists even on freestanding compilers.
5169 # On the NeXT, cc -E runs the code through the compiler's parser,
5170 # not just through cpp. "Syntax error" is here to catch this case.
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5174 # include <limits.h>
5176 # include <assert.h>
5180 if ac_fn_c_try_cpp "$LINENO"; then :
5183 # Broken: fails on valid input.
5186 rm -f conftest.err conftest.i conftest.$ac_ext
5188 # OK, works on sane cases. Now check whether nonexistent headers
5189 # can be detected and how.
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 #include <ac_nonexistent.h>
5194 if ac_fn_c_try_cpp "$LINENO"; then :
5195 # Broken: success on invalid input.
5198 # Passes both tests.
5202 rm -f conftest.err conftest.i conftest.$ac_ext
5205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5206 rm -f conftest.i conftest.err conftest.$ac_ext
5207 if $ac_preproc_ok; then :
5210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5212 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5213 See \`config.log' for more details" "$LINENO" 5; }
5217 ac_cpp='$CPP $CPPFLAGS'
5218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5226 # Set up TAS assembly code if needed; the template file has now had its
5227 # chance to request this.
5229 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5232 if test "$need_tas" = yes ; then
5241 # Automatic dependency tracking
5245 # Check whether --enable-depend was given.
5246 if test "${enable_depend+set}" = set; then :
5247 enableval=$enable_depend;
5256 as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5
5270 # Enable assert checks
5274 # Check whether --enable-cassert was given.
5275 if test "${enable_cassert+set}" = set; then :
5276 enableval=$enable_cassert;
5280 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
5287 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
5300 # Include directories
5303 IFS="${IFS}${PATH_SEPARATOR}"
5304 # SRCH_INC comes from the template file
5305 for dir in $with_includes $SRCH_INC; do
5306 if test -d "$dir"; then
5307 INCLUDES="$INCLUDES -I$dir"
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
5310 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5318 # Library directories
5321 IFS="${IFS}${PATH_SEPARATOR}"
5322 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5323 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5324 if test -d "$dir"; then
5325 LIBDIRS="$LIBDIRS -L$dir"
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
5328 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5334 # Enable thread-safe client libraries
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
5337 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5340 # Check whether --enable-thread-safety was given.
5341 if test "${enable_thread_safety+set}" = set; then :
5342 enableval=$enable_thread_safety;
5351 as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5
5356 enable_thread_safety=yes
5361 if test "$enable_thread_safety" = yes; then
5363 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
5367 $as_echo "$enable_thread_safety" >&6; }
5371 # Optionally build Tcl modules (PL/Tcl)
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
5374 $as_echo_n "checking whether to build with Tcl... " >&6; }
5378 # Check whether --with-tcl was given.
5379 if test "${with_tcl+set}" = set; then :
5389 as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
5400 $as_echo "$with_tcl" >&6; }
5403 # We see if the path to the Tcl/Tk configuration scripts is specified.
5404 # This will override the use of tclsh to find the paths to search.
5409 # Check whether --with-tclconfig was given.
5410 if test "${with_tclconfig+set}" = set; then :
5411 withval=$with_tclconfig;
5414 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5417 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5429 # Optionally build Perl modules (PL/Perl)
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
5432 $as_echo_n "checking whether to build Perl modules... " >&6; }
5436 # Check whether --with-perl was given.
5437 if test "${with_perl+set}" = set; then :
5447 as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
5458 $as_echo "$with_perl" >&6; }
5462 # Optionally build Python modules (PL/Python)
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
5465 $as_echo_n "checking whether to build Python modules... " >&6; }
5469 # Check whether --with-python was given.
5470 if test "${with_python+set}" = set; then :
5471 withval=$with_python;
5480 as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
5491 $as_echo "$with_python" >&6; }
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
5498 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5502 # Check whether --with-gssapi was given.
5503 if test "${with_gssapi+set}" = set; then :
5504 withval=$with_gssapi;
5509 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
5511 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5518 as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
5529 $as_echo "$with_gssapi" >&6; }
5536 # Kerberos configuration parameters
5541 # Check whether --with-krb-srvnam was given.
5542 if test "${with_krb_srvnam+set}" = set; then :
5543 withval=$with_krb_srvnam;
5546 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5549 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5557 with_krb_srvnam="postgres"
5562 cat >>confdefs.h <<_ACEOF
5563 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
5572 $as_echo_n "checking whether to build with PAM support... " >&6; }
5576 # Check whether --with-pam was given.
5577 if test "${with_pam+set}" = set; then :
5582 $as_echo "#define USE_PAM 1" >>confdefs.h
5589 as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
5600 $as_echo "$with_pam" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
5607 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
5611 # Check whether --with-bsd-auth was given.
5612 if test "${with_bsd_auth+set}" = set; then :
5613 withval=$with_bsd_auth;
5617 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
5624 as_fn_error $? "no argument expected for --with-bsd-auth option" "$LINENO" 5
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
5635 $as_echo "$with_bsd_auth" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
5642 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5646 # Check whether --with-ldap was given.
5647 if test "${with_ldap+set}" = set; then :
5652 $as_echo "#define USE_LDAP 1" >>confdefs.h
5659 as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
5670 $as_echo "$with_ldap" >&6; }
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
5677 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5681 # Check whether --with-bonjour was given.
5682 if test "${with_bonjour+set}" = set; then :
5683 withval=$with_bonjour;
5687 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
5694 as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
5705 $as_echo "$with_bonjour" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
5712 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5716 # Check whether --with-openssl was given.
5717 if test "${with_openssl+set}" = set; then :
5718 withval=$with_openssl;
5722 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
5729 as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
5740 $as_echo "$with_openssl" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
5747 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5751 # Check whether --with-selinux was given.
5752 if test "${with_selinux+set}" = set; then :
5753 withval=$with_selinux;
5762 as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
5774 $as_echo "$with_selinux" >&6; }
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
5780 $as_echo_n "checking whether to build with systemd support... " >&6; }
5784 # Check whether --with-systemd was given.
5785 if test "${with_systemd+set}" = set; then :
5786 withval=$with_systemd;
5790 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
5797 as_fn_error $? "no argument expected for --with-systemd option" "$LINENO" 5
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
5809 $as_echo "$with_systemd" >&6; }
5817 # Check whether --with-readline was given.
5818 if test "${with_readline+set}" = set; then :
5819 withval=$with_readline;
5828 as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5
5838 # readline on MinGW has problems with backslashes in psql and other bugs.
5839 # This is particularly a problem with non-US code pages.
5840 # Therefore disable its use until we understand the cause. 2004-07-20
5841 if test "$PORTNAME" = "win32"; then
5842 if test "$with_readline" = yes; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5844 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5856 # Check whether --with-libedit-preferred was given.
5857 if test "${with_libedit_preferred+set}" = set; then :
5858 withval=$with_libedit_preferred;
5867 as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5
5872 with_libedit_preferred=no
5882 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
5883 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
5884 # UUID library. More than one of these might be present on a given platform,
5885 # so we make the user say which one she wants.
5890 # Check whether --with-uuid was given.
5891 if test "${with_uuid+set}" = set; then :
5895 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5898 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5908 if test x"$with_uuid" = x"" ; then
5914 # Check whether --with-ossp-uuid was given.
5915 if test "${with_ossp_uuid+set}" = set; then :
5916 withval=$with_ossp_uuid;
5925 as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5
5935 if test "$with_ossp_uuid" = yes ; then
5939 if test "$with_uuid" = bsd ; then
5941 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
5943 UUID_EXTRA_OBJS="md5.o sha1.o"
5944 elif test "$with_uuid" = e2fs ; then
5946 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
5948 UUID_EXTRA_OBJS="md5.o sha1.o"
5949 elif test "$with_uuid" = ossp ; then
5951 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
5954 elif test "$with_uuid" = no ; then
5957 as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
5969 # Check whether --with-libxml was given.
5970 if test "${with_libxml+set}" = set; then :
5971 withval=$with_libxml;
5975 $as_echo "#define USE_LIBXML 1" >>confdefs.h
5982 as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5
5993 if test "$with_libxml" = yes ; then
5994 for ac_prog in xml2-config
5996 # Extract the first word of "$ac_prog", so it can be a program name with args.
5997 set dummy $ac_prog; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if ${ac_cv_prog_XML2_CONFIG+:} false; then :
6001 $as_echo_n "(cached) " >&6
6003 if test -n "$XML2_CONFIG"; then
6004 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013 ac_cv_prog_XML2_CONFIG="$ac_prog"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
6024 if test -n "$XML2_CONFIG"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
6026 $as_echo "$XML2_CONFIG" >&6; }
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6033 test -n "$XML2_CONFIG" && break
6036 if test -n "$XML2_CONFIG"; then
6037 for pgac_option in `$XML2_CONFIG --cflags`; do
6038 case $pgac_option in
6039 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
6042 for pgac_option in `$XML2_CONFIG --libs`; do
6043 case $pgac_option in
6044 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
6058 # Check whether --with-libxslt was given.
6059 if test "${with_libxslt+set}" = set; then :
6060 withval=$with_libxslt;
6064 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
6071 as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5
6091 # Check whether --with-system-tzdata was given.
6092 if test "${with_system_tzdata+set}" = set; then :
6093 withval=$with_system_tzdata;
6096 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
6099 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
6117 # Check whether --with-zlib was given.
6118 if test "${with_zlib+set}" = set; then :
6128 as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5
6144 # Assume system is ELF if it predefines __ELF__ as 1,
6145 # otherwise believe host_os based default.
6147 freebsd1*|freebsd2*) elf=no;;
6148 freebsd3*|freebsd4*) elf=yes;;
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6153 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6154 if ${ac_cv_path_GREP+:} false; then :
6155 $as_echo_n "(cached) " >&6
6157 if test -z "$GREP"; then
6158 ac_path_GREP_found=false
6159 # Loop through the user's path and test for each of PROGNAME-LIST
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6164 test -z "$as_dir" && as_dir=.
6165 for ac_prog in grep ggrep; do
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6168 as_fn_executable_p "$ac_path_GREP" || continue
6169 # Check for GNU ac_path_GREP and select it if it is found.
6170 # Check for GNU $ac_path_GREP
6171 case `"$ac_path_GREP" --version 2>&1` in
6173 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6176 $as_echo_n 0123456789 >"conftest.in"
6179 cat "conftest.in" "conftest.in" >"conftest.tmp"
6180 mv "conftest.tmp" "conftest.in"
6181 cp "conftest.in" "conftest.nl"
6182 $as_echo 'GREP' >> "conftest.nl"
6183 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6185 as_fn_arith $ac_count + 1 && ac_count=$as_val
6186 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6187 # Best one so far, save it but keep looking for a better one
6188 ac_cv_path_GREP="$ac_path_GREP"
6189 ac_path_GREP_max=$ac_count
6191 # 10*(2^10) chars as input seems more than enough
6192 test $ac_count -gt 10 && break
6194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6197 $ac_path_GREP_found && break 3
6202 if test -z "$ac_cv_path_GREP"; then
6203 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6206 ac_cv_path_GREP=$GREP
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6211 $as_echo "$ac_cv_path_GREP" >&6; }
6212 GREP="$ac_cv_path_GREP"
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6216 $as_echo_n "checking for egrep... " >&6; }
6217 if ${ac_cv_path_EGREP+:} false; then :
6218 $as_echo_n "(cached) " >&6
6220 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6221 then ac_cv_path_EGREP="$GREP -E"
6223 if test -z "$EGREP"; then
6224 ac_path_EGREP_found=false
6225 # Loop through the user's path and test for each of PROGNAME-LIST
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6230 test -z "$as_dir" && as_dir=.
6231 for ac_prog in egrep; do
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6234 as_fn_executable_p "$ac_path_EGREP" || continue
6235 # Check for GNU ac_path_EGREP and select it if it is found.
6236 # Check for GNU $ac_path_EGREP
6237 case `"$ac_path_EGREP" --version 2>&1` in
6239 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6242 $as_echo_n 0123456789 >"conftest.in"
6245 cat "conftest.in" "conftest.in" >"conftest.tmp"
6246 mv "conftest.tmp" "conftest.in"
6247 cp "conftest.in" "conftest.nl"
6248 $as_echo 'EGREP' >> "conftest.nl"
6249 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6251 as_fn_arith $ac_count + 1 && ac_count=$as_val
6252 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6253 # Best one so far, save it but keep looking for a better one
6254 ac_cv_path_EGREP="$ac_path_EGREP"
6255 ac_path_EGREP_max=$ac_count
6257 # 10*(2^10) chars as input seems more than enough
6258 test $ac_count -gt 10 && break
6260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6263 $ac_path_EGREP_found && break 3
6268 if test -z "$ac_cv_path_EGREP"; then
6269 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6272 ac_cv_path_EGREP=$EGREP
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6278 $as_echo "$ac_cv_path_EGREP" >&6; }
6279 EGREP="$ac_cv_path_EGREP"
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6290 $EGREP "yes" >/dev/null 2>&1; then :
6293 if test "X$elf" = "Xyes" ; then
6307 CPPFLAGS="$CPPFLAGS $INCLUDES"
6308 LDFLAGS="$LDFLAGS $LIBDIRS"
6314 # Check whether --with-gnu-ld was given.
6315 if test "${with_gnu_ld+set}" = set; then :
6316 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6322 if test "$GCC" = yes; then
6323 # Check if gcc -print-prog-name=ld gives a path.
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6325 $as_echo_n "checking for ld used by GCC... " >&6; }
6328 # gcc leaves a trailing carriage return which upsets mingw
6329 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6331 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6334 # Accept absolute paths.
6335 [\\/]* | [A-Za-z]:[\\/]*)
6336 re_direlt='/[^/][^/]*/\.\./'
6337 # Canonicalize the path of ld
6338 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6339 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6340 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6342 test -z "$LD" && LD="$ac_prog"
6345 # If it fails, then pretend we aren't using GCC.
6349 # If it is relative, then search for the first ld in PATH.
6353 elif test "$with_gnu_ld" = yes; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6355 $as_echo_n "checking for GNU ld... " >&6; }
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6358 $as_echo_n "checking for non-GNU ld... " >&6; }
6360 if ${ac_cv_path_LD+:} false; then :
6361 $as_echo_n "(cached) " >&6
6363 if test -z "$LD"; then
6364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6365 for ac_dir in $PATH; do
6366 test -z "$ac_dir" && ac_dir=.
6367 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6368 ac_cv_path_LD="$ac_dir/$ac_prog"
6369 # Check to see if the program is GNU ld. I'd rather use --version,
6370 # but apparently some GNU ld's only accept -v.
6371 # Break only if it was the GNU/non-GNU ld that we prefer.
6372 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6373 test "$with_gnu_ld" != no && break
6375 test "$with_gnu_ld" != yes && break
6381 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6386 if test -n "$LD"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6388 $as_echo "$LD" >&6; }
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6393 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6395 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6396 if ${ac_cv_prog_gnu_ld+:} false; then :
6397 $as_echo_n "(cached) " >&6
6399 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6400 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6401 ac_cv_prog_gnu_ld=yes
6403 ac_cv_prog_gnu_ld=no
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6407 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6408 with_gnu_ld=$ac_cv_prog_gnu_ld
6413 if test -n "$ac_tool_prefix"; then
6414 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6415 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if ${ac_cv_prog_RANLIB+:} false; then :
6419 $as_echo_n "(cached) " >&6
6421 if test -n "$RANLIB"; then
6422 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 RANLIB=$ac_cv_prog_RANLIB
6442 if test -n "$RANLIB"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6444 $as_echo "$RANLIB" >&6; }
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6452 if test -z "$ac_cv_prog_RANLIB"; then
6453 ac_ct_RANLIB=$RANLIB
6454 # Extract the first word of "ranlib", so it can be a program name with args.
6455 set dummy ranlib; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$ac_ct_RANLIB"; then
6462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471 ac_cv_prog_ac_ct_RANLIB="ranlib"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6482 if test -n "$ac_ct_RANLIB"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6484 $as_echo "$ac_ct_RANLIB" >&6; }
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6490 if test "x$ac_ct_RANLIB" = x; then
6493 case $cross_compiling:$ac_tool_warned in
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497 ac_tool_warned=yes ;;
6499 RANLIB=$ac_ct_RANLIB
6502 RANLIB="$ac_cv_prog_RANLIB"
6506 if test -n "$ac_tool_prefix"; then
6507 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}strip; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_STRIP+:} false; then :
6512 $as_echo_n "(cached) " >&6
6514 if test -n "$STRIP"; then
6515 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 STRIP=$ac_cv_prog_STRIP
6535 if test -n "$STRIP"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6537 $as_echo "$STRIP" >&6; }
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6545 if test -z "$ac_cv_prog_STRIP"; then
6547 # Extract the first word of "strip", so it can be a program name with args.
6548 set dummy strip; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6552 $as_echo_n "(cached) " >&6
6554 if test -n "$ac_ct_STRIP"; then
6555 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564 ac_cv_prog_ac_ct_STRIP="strip"
6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6575 if test -n "$ac_ct_STRIP"; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6577 $as_echo "$ac_ct_STRIP" >&6; }
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 $as_echo "no" >&6; }
6583 if test "x$ac_ct_STRIP" = x; then
6586 case $cross_compiling:$ac_tool_warned in
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590 ac_tool_warned=yes ;;
6595 STRIP="$ac_cv_prog_STRIP"
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
6600 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6601 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6602 STRIP_STATIC_LIB="$STRIP -x"
6603 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6605 $as_echo "yes" >&6; }
6610 STRIP_STATIC_LIB=$STRIP
6611 STRIP_SHARED_LIB=$STRIP
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6613 $as_echo "yes" >&6; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}ar; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_AR+:} false; then :
6632 $as_echo_n "(cached) " >&6
6634 if test -n "$AR"; then
6635 ac_cv_prog_AR="$AR" # Let the user override the test.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644 ac_cv_prog_AR="${ac_tool_prefix}ar"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 if test -n "$AR"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6657 $as_echo "$AR" >&6; }
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6665 if test -z "$ac_cv_prog_AR"; then
6667 # Extract the first word of "ar", so it can be a program name with args.
6668 set dummy ar; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6672 $as_echo_n "(cached) " >&6
6674 if test -n "$ac_ct_AR"; then
6675 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684 ac_cv_prog_ac_ct_AR="ar"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6695 if test -n "$ac_ct_AR"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6697 $as_echo "$ac_ct_AR" >&6; }
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6703 if test "x$ac_ct_AR" = x; then
6706 case $cross_compiling:$ac_tool_warned in
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6718 if test "$PORTNAME" = "win32"; then
6719 if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if ${ac_cv_prog_DLLTOOL+:} false; then :
6725 $as_echo_n "(cached) " >&6
6727 if test -n "$DLLTOOL"; then
6728 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 DLLTOOL=$ac_cv_prog_DLLTOOL
6748 if test -n "$DLLTOOL"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6750 $as_echo "$DLLTOOL" >&6; }
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6758 if test -z "$ac_cv_prog_DLLTOOL"; then
6759 ac_ct_DLLTOOL=$DLLTOOL
6760 # Extract the first word of "dlltool", so it can be a program name with args.
6761 set dummy dlltool; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6765 $as_echo_n "(cached) " >&6
6767 if test -n "$ac_ct_DLLTOOL"; then
6768 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6777 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6788 if test -n "$ac_ct_DLLTOOL"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6790 $as_echo "$ac_ct_DLLTOOL" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6796 if test "x$ac_ct_DLLTOOL" = x; then
6799 case $cross_compiling:$ac_tool_warned in
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6805 DLLTOOL=$ac_ct_DLLTOOL
6808 DLLTOOL="$ac_cv_prog_DLLTOOL"
6811 if test -n "$ac_tool_prefix"; then
6812 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_DLLWRAP+:} false; then :
6817 $as_echo_n "(cached) " >&6
6819 if test -n "$DLLWRAP"; then
6820 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 DLLWRAP=$ac_cv_prog_DLLWRAP
6840 if test -n "$DLLWRAP"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6842 $as_echo "$DLLWRAP" >&6; }
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6850 if test -z "$ac_cv_prog_DLLWRAP"; then
6851 ac_ct_DLLWRAP=$DLLWRAP
6852 # Extract the first word of "dllwrap", so it can be a program name with args.
6853 set dummy dllwrap; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6857 $as_echo_n "(cached) " >&6
6859 if test -n "$ac_ct_DLLWRAP"; then
6860 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6880 if test -n "$ac_ct_DLLWRAP"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6882 $as_echo "$ac_ct_DLLWRAP" >&6; }
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6888 if test "x$ac_ct_DLLWRAP" = x; then
6891 case $cross_compiling:$ac_tool_warned in
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6895 ac_tool_warned=yes ;;
6897 DLLWRAP=$ac_ct_DLLWRAP
6900 DLLWRAP="$ac_cv_prog_DLLWRAP"
6903 if test -n "$ac_tool_prefix"; then
6904 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6905 set dummy ${ac_tool_prefix}windres; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_WINDRES+:} false; then :
6909 $as_echo_n "(cached) " >&6
6911 if test -n "$WINDRES"; then
6912 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 WINDRES=$ac_cv_prog_WINDRES
6932 if test -n "$WINDRES"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6934 $as_echo "$WINDRES" >&6; }
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6942 if test -z "$ac_cv_prog_WINDRES"; then
6943 ac_ct_WINDRES=$WINDRES
6944 # Extract the first word of "windres", so it can be a program name with args.
6945 set dummy windres; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
6949 $as_echo_n "(cached) " >&6
6951 if test -n "$ac_ct_WINDRES"; then
6952 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961 ac_cv_prog_ac_ct_WINDRES="windres"
6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6972 if test -n "$ac_ct_WINDRES"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6974 $as_echo "$ac_ct_WINDRES" >&6; }
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6980 if test "x$ac_ct_WINDRES" = x; then
6983 case $cross_compiling:$ac_tool_warned in
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
6989 WINDRES=$ac_ct_WINDRES
6992 WINDRES="$ac_cv_prog_WINDRES"
6997 # Find a good install program. We prefer a C program (faster),
6998 # so one script is as good as another. But avoid the broken or
6999 # incompatible versions:
7000 # SysV /etc/install, /usr/sbin/install
7001 # SunOS /usr/etc/install
7002 # IRIX /sbin/install
7004 # AmigaOS /C/install, which installs bootblocks on floppy discs
7005 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7006 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7007 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7008 # OS/2's system install, which has a completely different semantic
7009 # ./install, which can be erroneously created by make from ./install.sh.
7010 # Reject install programs that cannot install multiple files.
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7012 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7013 if test -z "$INSTALL"; then
7014 if ${ac_cv_path_install+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir=.
7022 # Account for people who put trailing slashes in PATH elements.
7023 case $as_dir/ in #((
7024 ./ | .// | /[cC]/* | \
7025 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7026 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7029 # OSF1 and SCO ODT 3.0 have their own names for install.
7030 # Don't use installbsd from OSF since it installs stuff as root
7032 for ac_prog in ginstall scoinst install; do
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7035 if test $ac_prog = install &&
7036 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7037 # AIX install. It has an incompatible calling convention.
7039 elif test $ac_prog = install &&
7040 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7041 # program-specific install script used by HP pwplus--don't use.
7044 rm -rf conftest.one conftest.two conftest.dir
7045 echo one > conftest.one
7046 echo two > conftest.two
7048 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7049 test -s conftest.one && test -s conftest.two &&
7050 test -s conftest.dir/conftest.one &&
7051 test -s conftest.dir/conftest.two
7053 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7066 rm -rf conftest.one conftest.two conftest.dir
7069 if test "${ac_cv_path_install+set}" = set; then
7070 INSTALL=$ac_cv_path_install
7072 # As a last resort, use the slow shell script. Don't cache a
7073 # value for INSTALL within a source directory, because that will
7074 # break other packages using the cache if that directory is
7075 # removed, or if the value is a relative name.
7076 INSTALL=$ac_install_sh
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7080 $as_echo "$INSTALL" >&6; }
7082 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7083 # It thinks the first close brace ends the variable substitution.
7084 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7086 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7088 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7090 # When Autoconf chooses install-sh as install program it tries to generate
7091 # a relative path to it in each makefile where it substitutes it. This clashes
7092 # with our Makefile.global concept. This workaround helps.
7094 *install-sh*) install_bin='';;
7095 *) install_bin=$INSTALL;;
7099 # Extract the first word of "tar", so it can be a program name with args.
7100 set dummy tar; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if ${ac_cv_path_TAR+:} false; then :
7104 $as_echo_n "(cached) " >&6
7108 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7118 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 if test -n "$TAR"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7132 $as_echo "$TAR" >&6; }
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7140 $as_echo_n "checking whether ln -s works... " >&6; }
7142 if test "$LN_S" = "ln -s"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144 $as_echo "yes" >&6; }
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7147 $as_echo "no, using $LN_S" >&6; }
7150 for ac_prog in gawk mawk nawk awk
7152 # Extract the first word of "$ac_prog", so it can be a program name with args.
7153 set dummy $ac_prog; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_prog_AWK+:} false; then :
7157 $as_echo_n "(cached) " >&6
7159 if test -n "$AWK"; then
7160 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169 ac_cv_prog_AWK="$ac_prog"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 if test -n "$AWK"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7182 $as_echo "$AWK" >&6; }
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7189 test -n "$AWK" && break
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7193 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7194 if test -z "$MKDIR_P"; then
7195 if ${ac_cv_path_mkdir+:} false; then :
7196 $as_echo_n "(cached) " >&6
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7202 test -z "$as_dir" && as_dir=.
7203 for ac_prog in mkdir gmkdir; do
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
7206 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7207 'mkdir (GNU coreutils) '* | \
7208 'mkdir (coreutils) '* | \
7209 'mkdir (fileutils) '4.1*)
7210 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7220 test -d ./--version && rmdir ./--version
7221 if test "${ac_cv_path_mkdir+set}" = set; then
7222 MKDIR_P="$ac_cv_path_mkdir -p"
7224 # As a last resort, use the slow shell script. Don't cache a
7225 # value for MKDIR_P within a source directory, because that will
7226 # break other packages using the cache if that directory is
7227 # removed, or if the value is a relative name.
7228 MKDIR_P="$ac_install_sh -d"
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7232 $as_echo "$MKDIR_P" >&6; }
7234 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7235 # a relative path to it in each makefile where it substitutes it. This clashes
7236 # with our Makefile.global concept. This workaround helps.
7238 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7241 # Let the user override the search
7242 if test -z "$BISON"; then
7243 for ac_prog in bison
7245 # Extract the first word of "$ac_prog", so it can be a program name with args.
7246 set dummy $ac_prog; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_path_BISON+:} false; then :
7250 $as_echo_n "(cached) " >&6
7254 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 BISON=$ac_cv_path_BISON
7276 if test -n "$BISON"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7278 $as_echo "$BISON" >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7285 test -n "$BISON" && break
7290 if test "$BISON"; then
7291 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
7293 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7294 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7297 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7298 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7299 $as_echo "$as_me: WARNING:
7300 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7301 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7304 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
7305 # of the now preferred %name-prefix "base_yy", but the latter
7306 # doesn't work with Bison 2.3 or less. So for now we silence the
7307 # deprecation warnings.
7308 if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
7310 BISONFLAGS="$BISONFLAGS -Wno-deprecated"
7314 if test -z "$BISON"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7316 *** Without Bison you will not be able to build PostgreSQL from Git nor
7317 *** change any of the parser definition files. You can obtain Bison from
7318 *** a GNU mirror site. (If you are using the official distribution of
7319 *** PostgreSQL then you do not need to worry about this, because the Bison
7320 *** output is pre-generated.)" >&5
7321 $as_echo "$as_me: WARNING:
7322 *** Without Bison you will not be able to build PostgreSQL from Git nor
7323 *** change any of the parser definition files. You can obtain Bison from
7324 *** a GNU mirror site. (If you are using the official distribution of
7325 *** PostgreSQL then you do not need to worry about this, because the Bison
7326 *** output is pre-generated.)" >&2;}
7328 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
7332 $as_echo_n "checking for flex... " >&6; }
7333 if ${pgac_cv_path_flex+:} false; then :
7334 $as_echo_n "(cached) " >&6
7336 # Let the user override the test
7337 if test -n "$FLEX"; then
7338 pgac_cv_path_flex=$FLEX
7342 for pgac_dir in $PATH; do
7344 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7347 for pgac_prog in flex lex; do
7348 pgac_candidate="$pgac_dir/$pgac_prog"
7349 if test -f "$pgac_candidate" \
7350 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7352 echo '%%' > conftest.l
7353 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7354 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7355 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;}'
7357 pgac_cv_path_flex=$pgac_candidate
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7361 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7362 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7363 $as_echo "$as_me: WARNING:
7364 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7365 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7371 rm -f conftest.l lex.yy.c
7372 : ${pgac_cv_path_flex=no}
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
7377 $as_echo "$pgac_cv_path_flex" >&6; }
7378 if test x"$pgac_cv_path_flex" = x"no"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7380 *** Without Flex you will not be able to build PostgreSQL from Git nor
7381 *** change any of the scanner definition files. You can obtain Flex from
7382 *** a GNU mirror site. (If you are using the official distribution of
7383 *** PostgreSQL then you do not need to worry about this because the Flex
7384 *** output is pre-generated.)" >&5
7385 $as_echo "$as_me: WARNING:
7386 *** Without Flex you will not be able to build PostgreSQL from Git nor
7387 *** change any of the scanner definition files. You can obtain Flex from
7388 *** a GNU mirror site. (If you are using the official distribution of
7389 *** PostgreSQL then you do not need to worry about this because the Flex
7390 *** output is pre-generated.)" >&2;}
7394 FLEX=$pgac_cv_path_flex
7395 pgac_flex_version=`$FLEX --version 2>/dev/null`
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
7397 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7404 # Let the user override the search
7405 if test -z "$PERL"; then
7406 # Extract the first word of "perl", so it can be a program name with args.
7407 set dummy perl; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_path_PERL+:} false; then :
7411 $as_echo_n "(cached) " >&6
7415 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 PERL=$ac_cv_path_PERL
7437 if test -n "$PERL"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7439 $as_echo "$PERL" >&6; }
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7448 if test "$PERL"; then
7449 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'`
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
7451 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7452 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7453 $AWK '{ if ($1 == 5 && $2 >= 8) exit 1; else exit 0;}'
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7456 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7457 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7458 $as_echo "$as_me: WARNING:
7459 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7460 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7465 if test -z "$PERL"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7467 *** Without Perl you will not be able to build PostgreSQL from Git.
7468 *** You can obtain Perl from any CPAN mirror site.
7469 *** (If you are using the official distribution of PostgreSQL then you do not
7470 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7471 $as_echo "$as_me: WARNING:
7472 *** Without Perl you will not be able to build PostgreSQL from Git.
7473 *** You can obtain Perl from any CPAN mirror site.
7474 *** (If you are using the official distribution of PostgreSQL then you do not
7475 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7478 if test "$with_perl" = yes; then
7479 if test -z "$PERL"; then
7480 as_fn_error $? "Perl not found" "$LINENO" 5
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
7484 $as_echo_n "checking for Perl archlibexp... " >&6; }
7485 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7486 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
7488 $as_echo "$perl_archlibexp" >&6; }
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
7490 $as_echo_n "checking for Perl privlibexp... " >&6; }
7491 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7492 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
7494 $as_echo "$perl_privlibexp" >&6; }
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
7496 $as_echo_n "checking for Perl useshrplib... " >&6; }
7497 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7498 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
7500 $as_echo "$perl_useshrplib" >&6; }
7501 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true; then
7502 as_fn_error $? "cannot build PL/Perl because libperl is not a shared library
7503 You might have to rebuild your Perl installation. Refer to the
7504 documentation for details. Use --without-perl to disable building
7505 PL/Perl." "$LINENO" 5
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
7509 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7510 if test "$PORTNAME" = "win32" ; then
7511 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7512 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7514 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7515 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7516 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7518 if test -z "$perl_embed_ldflags" ; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 as_fn_error $? "could not determine flags for linking embedded Perl.
7522 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7523 installed." "$LINENO" 5
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
7526 $as_echo "$perl_embed_ldflags" >&6; }
7531 if test "$with_python" = yes; then
7532 # Extract the first word of "python", so it can be a program name with args.
7533 set dummy python; ac_word=$2
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if ${ac_cv_path_PYTHON+:} false; then :
7537 $as_echo_n "(cached) " >&6
7541 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 PYTHON=$ac_cv_path_PYTHON
7563 if test -n "$PYTHON"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7565 $as_echo "$PYTHON" >&6; }
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7572 if test x"$PYTHON" = x""; then
7573 as_fn_error $? "Python not found" "$LINENO" 5
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
7578 $as_echo_n "checking for Python distutils module... " >&6; }
7579 if "${PYTHON}" -c 'import distutils' 2>&5
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7582 $as_echo "yes" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7586 as_fn_error $? "distutils module not found" "$LINENO" 5
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
7589 $as_echo_n "checking Python configuration directory... " >&6; }
7590 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7591 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7592 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
7594 $as_echo "$python_configdir" >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
7597 $as_echo_n "checking Python include directories... " >&6; }
7598 python_includespec=`${PYTHON} -c "
7599 import distutils.sysconfig
7600 a = '-I' + distutils.sysconfig.get_python_inc(False)
7601 b = '-I' + distutils.sysconfig.get_python_inc(True)
7605 print(a + ' ' + b)"`
7606 if test "$PORTNAME" = win32 ; then
7607 python_includespec=`echo $python_includespec | sed 's,[\],/,g'`
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
7610 $as_echo "$python_includespec" >&6; }
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
7615 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7617 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7618 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7620 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
7621 ldlibrary=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
7622 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7624 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7627 # Otherwise, guess the base name of the shlib.
7628 # LDVERSION was added in Python 3.2, before that use VERSION,
7629 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
7630 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7631 if test x"${python_ldversion}" != x""; then
7632 ldlibrary="python${python_ldversion}"
7634 python_version_var=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('VERSION'))))"`
7635 if test x"${python_version_var}" != x""; then
7636 ldlibrary="python${python_version_var}"
7638 ldlibrary="python${python_version}"
7641 # Search for a likely-looking file.
7643 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib
7645 # We don't know the platform DLSUFFIX here, so check 'em all.
7646 for e in .so .dll .dylib .sl; do
7647 if test -e "$d/lib${ldlibrary}$e"; then
7654 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
7655 # (".so.n.n") as well. However, check this only after failing to find
7656 # ".so" anywhere, because yet other platforms (Debian) put the .so
7657 # symlink in a different directory from the underlying versioned shlib.
7658 if test "$found_shlib" != 1; then
7659 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib
7661 for f in "$d/lib${ldlibrary}.so."* ; do
7662 if test -e "$f"; then
7670 # As usual, Windows has its own ideas. Possible default library
7671 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
7672 # and the "lib" prefix might not be there.
7673 if test "$found_shlib" != 1 -a \( "$PORTNAME" = win32 -o "$PORTNAME" = cygwin \); then
7674 for d in "${python_libdir}" "${python_configdir}" c:/Windows/System32 /usr/bin
7676 for f in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
7677 if test -e "$f"; then
7686 if test "$found_shlib" != 1; then
7687 as_fn_error $? "could not find shared library for Python
7688 You might have to rebuild your Python installation. Refer to the
7689 documentation for details. Use --without-python to disable building
7690 PL/Python." "$LINENO" 5
7692 python_libspec="-L${python_libdir} -l${ldlibrary}"
7694 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
7697 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7703 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7704 # Extract the first word of "zic", so it can be a program name with args.
7705 set dummy zic; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_path_ZIC+:} false; then :
7709 $as_echo_n "(cached) " >&6
7713 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 if test -n "$ZIC"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
7737 $as_echo "$ZIC" >&6; }
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7744 if test -z "$ZIC"; then
7746 When cross-compiling, either use the option --with-system-tzdata to use
7747 existing time-zone data, or set the environment variable ZIC to a zic
7748 program to use during the build." "$LINENO" 5
7755 # For each platform, we need to know about any special compile and link
7756 # libraries, and whether the normal C function names are thread-safe.
7757 # See the comment at the top of src/port/thread.c for more information.
7758 # WIN32 doesn't need the pthread tests; it always uses threads
7760 # These tests are run before the library-tests, because linking with the
7761 # other libraries can pull in the pthread functions as a side-effect. We
7762 # want to use the -pthread or similar flags directly, and not rely on
7763 # the side-effects of linking with some other library.
7765 # note: We have to use AS_IF here rather than plain if. The AC_CHECK_HEADER
7766 # invocation below is the first one in the script, and autoconf generates
7767 # additional code for that, which must not be inside the if-block. AS_IF
7768 # knows how to do that.
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7770 $as_echo_n "checking for ANSI C header files... " >&6; }
7771 if ${ac_cv_header_stdc+:} false; then :
7772 $as_echo_n "(cached) " >&6
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7789 if ac_fn_c_try_compile "$LINENO"; then :
7790 ac_cv_header_stdc=yes
7792 ac_cv_header_stdc=no
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796 if test $ac_cv_header_stdc = yes; then
7797 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7804 $EGREP "memchr" >/dev/null 2>&1; then :
7807 ac_cv_header_stdc=no
7813 if test $ac_cv_header_stdc = yes; then
7814 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7821 $EGREP "free" >/dev/null 2>&1; then :
7824 ac_cv_header_stdc=no
7830 if test $ac_cv_header_stdc = yes; then
7831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7832 if test "$cross_compiling" = yes; then :
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7839 #if ((' ' & 0x0FF) == 0x020)
7840 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7841 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7843 # define ISLOWER(c) \
7844 (('a' <= (c) && (c) <= 'i') \
7845 || ('j' <= (c) && (c) <= 'r') \
7846 || ('s' <= (c) && (c) <= 'z'))
7847 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7855 for (i = 0; i < 256; i++)
7856 if (XOR (islower (i), ISLOWER (i))
7857 || toupper (i) != TOUPPER (i))
7862 if ac_fn_c_try_run "$LINENO"; then :
7865 ac_cv_header_stdc=no
7867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7868 conftest.$ac_objext conftest.beam conftest.$ac_ext
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7874 $as_echo "$ac_cv_header_stdc" >&6; }
7875 if test $ac_cv_header_stdc = yes; then
7877 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7881 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7882 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7883 inttypes.h stdint.h unistd.h
7885 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7886 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7888 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7889 cat >>confdefs.h <<_ACEOF
7890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7898 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
7904 ac_cpp='$CPP $CPPFLAGS'
7905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7911 # We used to check for pthread.h first, but this fails if pthread.h
7912 # requires special compiler flags (e.g. on Tru64 or Sequent).
7913 # It gets checked for in the link test anyway.
7915 # First of all, check if the user has set any of the PTHREAD_LIBS,
7916 # etcetera environment variables, and if threads linking works using
7918 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7919 save_CFLAGS="$CFLAGS"
7920 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7922 LIBS="$PTHREAD_LIBS $LIBS"
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7924 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7928 /* Override any GCC internal prototype to avoid an error.
7929 Use char because int might match the return type of a GCC
7930 builtin and then its argument prototype would still apply. */
7934 char pthread_join ();
7938 return pthread_join ();
7943 if ac_fn_c_try_link "$LINENO"; then :
7946 rm -f core conftest.err conftest.$ac_objext \
7947 conftest$ac_exeext conftest.$ac_ext
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7949 $as_echo "$ax_pthread_ok" >&6; }
7950 if test x"$ax_pthread_ok" = xno; then
7955 CFLAGS="$save_CFLAGS"
7958 # We must check for the threads library under a number of different
7959 # names; the ordering is very important because some systems
7960 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7961 # libraries is broken (non-POSIX).
7963 # Create a list of thread flags to try. Items starting with a "-" are
7964 # C compiler flags, and other items are library names, except for "none"
7965 # which indicates that we try without any flags at all, and "pthread-config"
7966 # which is a program returning the flags for the Pth emulation library.
7968 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
7970 # The ordering *is* (sometimes) important. Some notes on the
7971 # individual items follow:
7973 # pthreads: AIX (must check this before -lpthread)
7974 # none: in case threads are in libc; should be tried before -Kthread and
7975 # other compiler flags to prevent continual compiler warnings
7976 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7977 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7978 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7979 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7980 # -pthreads: Solaris/gcc
7981 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7982 # doesn't hurt to check since this sometimes defines pthreads and
7983 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7984 # is present but should not be used directly)
7985 # -mthreads: Mingw32/gcc, Lynx/gcc
7986 # pthread: Linux, etcetera
7987 # --thread-safe: KAI C++
7988 # pthread-config: use pthread-config program (for GNU Pth library)
7994 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7995 # multi-threading and also sets -lpthread."
7997 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8002 # IBM z/OS requires a feature-test macro to be defined in order to
8003 # enable POSIX threads at all, so give the user a hint if this is
8004 # not set. (We don't define these ourselves, as they can affect
8005 # other portions of the system API in unpredictable ways.)
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8010 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8011 AX_PTHREAD_ZOS_MISSING
8015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8016 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8018 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8026 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
8027 # check that first. On some older versions, libc contains stubbed
8028 # (non-functional) versions of the pthreads routines, so link-based
8029 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8030 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8031 # a function called by this macro, so we could check for that, but
8032 # who knows whether they'll stub that too in a future libc.) So
8033 # we'll look for -pthreads and -lpthread shortly thereafter.
8035 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
8039 # Older versions of Clang only give a warning instead of an error for an
8040 # unrecognized option, unless we specify -Werror. (We throw in some extra
8041 # Clang warning flags for good measure.)
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
8044 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
8045 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
8046 $as_echo_n "(cached) " >&6
8048 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
8049 save_CFLAGS="$CFLAGS"
8050 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
8051 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8063 if ac_fn_c_try_compile "$LINENO"; then :
8064 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
8066 ax_cv_PTHREAD_REJECT_UNKNOWN=no
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 CFLAGS="$save_CFLAGS"
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
8073 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
8074 ax_pthread_extra_flags=
8075 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
8076 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
8079 if test x"$ax_pthread_ok" = xno; then
8080 for flag in $ax_pthread_flags; do
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8085 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8090 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8091 PTHREAD_CFLAGS="-mt"
8092 PTHREAD_LIBS="-lpthread"
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8097 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8098 PTHREAD_CFLAGS="$flag"
8102 # Extract the first word of "pthread-config", so it can be a program name with args.
8103 set dummy pthread-config; ac_word=$2
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8105 $as_echo_n "checking for $ac_word... " >&6; }
8106 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8107 $as_echo_n "(cached) " >&6
8109 if test -n "$ax_pthread_config"; then
8110 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8119 ac_cv_prog_ax_pthread_config="yes"
8120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8130 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8131 if test -n "$ax_pthread_config"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8133 $as_echo "$ax_pthread_config" >&6; }
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8140 if test x"$ax_pthread_config" = xno; then continue; fi
8141 PTHREAD_CFLAGS="`pthread-config --cflags`"
8142 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8147 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8148 PTHREAD_LIBS="-l$flag"
8153 save_CFLAGS="$CFLAGS"
8154 LIBS="$PTHREAD_LIBS $LIBS"
8155 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
8157 # Check for various functions. We must include pthread.h,
8158 # since some functions may be macros. (On the Sequent, we
8159 # need a special flag -Kthread to make this header compile.)
8160 # We check for pthread_join because it is in -lpthread on IRIX
8161 # while pthread_create is in libc. We check for pthread_attr_init
8162 # due to DEC craziness with -lpthreads. We check for
8163 # pthread_cleanup_push because it is one of the few pthread
8164 # functions on Solaris that doesn't have a non-functional libc stub.
8165 # We try pthread_create on general principles.
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 #include <pthread.h>
8169 static void routine(void *a) { a = 0; }
8170 static void *start_routine(void *a) { return a; }
8174 pthread_t th; pthread_attr_t attr;
8175 pthread_create(&th, 0, start_routine, 0);
8176 pthread_join(th, 0);
8177 pthread_attr_init(&attr);
8178 pthread_cleanup_push(routine, 0);
8179 pthread_cleanup_pop(0) /* ; */
8184 if ac_fn_c_try_link "$LINENO"; then :
8187 rm -f core conftest.err conftest.$ac_objext \
8188 conftest$ac_exeext conftest.$ac_ext
8191 CFLAGS="$save_CFLAGS"
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8194 $as_echo "$ax_pthread_ok" >&6; }
8195 if test "x$ax_pthread_ok" = xyes; then
8204 # Various other checks:
8205 if test "x$ax_pthread_ok" = xyes; then
8207 LIBS="$PTHREAD_LIBS $LIBS"
8208 save_CFLAGS="$CFLAGS"
8209 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8211 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8213 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8214 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
8215 $as_echo_n "(cached) " >&6
8217 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8218 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 #include <pthread.h>
8225 int attr = $attr; return attr /* ; */
8230 if ac_fn_c_try_link "$LINENO"; then :
8231 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
8233 rm -f core conftest.err conftest.$ac_objext \
8234 conftest$ac_exeext conftest.$ac_ext
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8239 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8240 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
8241 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
8243 cat >>confdefs.h <<_ACEOF
8244 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8250 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8251 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
8252 $as_echo_n "(cached) " >&6
8254 ax_cv_PTHREAD_SPECIAL_FLAGS=no
8255 ax_pthread_special_flags_added=no
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8259 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
8260 AX_PTHREAD_NEED_SPECIAL_FLAG
8264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8265 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
8268 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
8270 darwin* | hpux* | osf* | solaris*)
8271 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8281 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8282 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8283 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8284 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8285 ax_pthread_special_flags_added=yes
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8289 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8290 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8291 $as_echo_n "(cached) " >&6
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8295 #include <pthread.h>
8299 int i = PTHREAD_PRIO_INHERIT;
8304 if ac_fn_c_try_link "$LINENO"; then :
8305 ax_cv_PTHREAD_PRIO_INHERIT=yes
8307 ax_cv_PTHREAD_PRIO_INHERIT=no
8309 rm -f core conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8314 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8315 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8317 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8322 CFLAGS="$save_CFLAGS"
8324 # More AIX lossage: compile with *_r variant
8325 if test "x$GCC" != xyes; then
8329 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8330 #handle absolute path differently from PATH based program lookup
8333 if as_fn_executable_p ${CC}_r; then :
8334 PTHREAD_CC="${CC}_r"
8337 for ac_prog in ${CC}_r
8339 # Extract the first word of "$ac_prog", so it can be a program name with args.
8340 set dummy $ac_prog; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8344 $as_echo_n "(cached) " >&6
8346 if test -n "$PTHREAD_CC"; then
8347 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356 ac_cv_prog_PTHREAD_CC="$ac_prog"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8367 if test -n "$PTHREAD_CC"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8369 $as_echo "$PTHREAD_CC" >&6; }
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8376 test -n "$PTHREAD_CC" && break
8378 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8389 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8395 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8396 if test x"$ax_pthread_ok" = xyes; then
8398 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8406 ac_cpp='$CPP $CPPFLAGS'
8407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8413 # Some platforms use these, so just define them. They can't hurt if they
8414 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
8415 # enables 5-arg getpwuid_r, among other things.
8416 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
8418 # Check for *_r functions
8421 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8422 LIBS="$LIBS $PTHREAD_LIBS"
8424 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8425 if test "x$ac_cv_header_pthread_h" = xyes; then :
8429 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
8434 for ac_func in strerror_r getpwuid_r gethostbyname_r
8436 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8437 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8438 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8439 cat >>confdefs.h <<_ACEOF
8440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8447 # Do test here with the proper thread flags
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
8449 $as_echo_n "checking whether strerror_r returns int... " >&6; }
8450 if ${pgac_cv_func_strerror_r_int+:} false; then :
8451 $as_echo_n "(cached) " >&6
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8460 int strerror_r(int, char *, size_t);
8462 /* Older AIX has 'int' for the third argument so we don't test the args. */
8469 if ac_fn_c_try_compile "$LINENO"; then :
8470 pgac_cv_func_strerror_r_int=yes
8472 pgac_cv_func_strerror_r_int=no
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
8477 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
8478 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
8480 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
8491 # do not use values from template file
8504 ## Most libraries are included only if they demonstrably provide a function
8505 ## we need, but libm is an exception: always include it, because there are
8506 ## too many compilers that play cute optimization games that will break
8507 ## probes for standard functions such as pow().
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8511 $as_echo_n "checking for main in -lm... " >&6; }
8512 if ${ac_cv_lib_m_main+:} false; then :
8513 $as_echo_n "(cached) " >&6
8515 ac_check_lib_save_LIBS=$LIBS
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8529 if ac_fn_c_try_link "$LINENO"; then :
8530 ac_cv_lib_m_main=yes
8534 rm -f core conftest.err conftest.$ac_objext \
8535 conftest$ac_exeext conftest.$ac_ext
8536 LIBS=$ac_check_lib_save_LIBS
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8539 $as_echo "$ac_cv_lib_m_main" >&6; }
8540 if test "x$ac_cv_lib_m_main" = xyes; then :
8541 cat >>confdefs.h <<_ACEOF
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
8550 $as_echo_n "checking for library containing setproctitle... " >&6; }
8551 if ${ac_cv_search_setproctitle+:} false; then :
8552 $as_echo_n "(cached) " >&6
8554 ac_func_search_save_LIBS=$LIBS
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8558 /* Override any GCC internal prototype to avoid an error.
8559 Use char because int might match the return type of a GCC
8560 builtin and then its argument prototype would still apply. */
8564 char setproctitle ();
8568 return setproctitle ();
8573 for ac_lib in '' util; do
8574 if test -z "$ac_lib"; then
8575 ac_res="none required"
8578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8580 if ac_fn_c_try_link "$LINENO"; then :
8581 ac_cv_search_setproctitle=$ac_res
8583 rm -f core conftest.err conftest.$ac_objext \
8585 if ${ac_cv_search_setproctitle+:} false; then :
8589 if ${ac_cv_search_setproctitle+:} false; then :
8592 ac_cv_search_setproctitle=no
8595 LIBS=$ac_func_search_save_LIBS
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
8598 $as_echo "$ac_cv_search_setproctitle" >&6; }
8599 ac_res=$ac_cv_search_setproctitle
8600 if test "$ac_res" != no; then :
8601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8606 $as_echo_n "checking for library containing dlopen... " >&6; }
8607 if ${ac_cv_search_dlopen+:} false; then :
8608 $as_echo_n "(cached) " >&6
8610 ac_func_search_save_LIBS=$LIBS
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8614 /* Override any GCC internal prototype to avoid an error.
8615 Use char because int might match the return type of a GCC
8616 builtin and then its argument prototype would still apply. */
8629 for ac_lib in '' dl; do
8630 if test -z "$ac_lib"; then
8631 ac_res="none required"
8634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8636 if ac_fn_c_try_link "$LINENO"; then :
8637 ac_cv_search_dlopen=$ac_res
8639 rm -f core conftest.err conftest.$ac_objext \
8641 if ${ac_cv_search_dlopen+:} false; then :
8645 if ${ac_cv_search_dlopen+:} false; then :
8648 ac_cv_search_dlopen=no
8651 LIBS=$ac_func_search_save_LIBS
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8654 $as_echo "$ac_cv_search_dlopen" >&6; }
8655 ac_res=$ac_cv_search_dlopen
8656 if test "$ac_res" != no; then :
8657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
8662 $as_echo_n "checking for library containing socket... " >&6; }
8663 if ${ac_cv_search_socket+:} false; then :
8664 $as_echo_n "(cached) " >&6
8666 ac_func_search_save_LIBS=$LIBS
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8670 /* Override any GCC internal prototype to avoid an error.
8671 Use char because int might match the return type of a GCC
8672 builtin and then its argument prototype would still apply. */
8685 for ac_lib in '' socket ws2_32; do
8686 if test -z "$ac_lib"; then
8687 ac_res="none required"
8690 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8692 if ac_fn_c_try_link "$LINENO"; then :
8693 ac_cv_search_socket=$ac_res
8695 rm -f core conftest.err conftest.$ac_objext \
8697 if ${ac_cv_search_socket+:} false; then :
8701 if ${ac_cv_search_socket+:} false; then :
8704 ac_cv_search_socket=no
8707 LIBS=$ac_func_search_save_LIBS
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
8710 $as_echo "$ac_cv_search_socket" >&6; }
8711 ac_res=$ac_cv_search_socket
8712 if test "$ac_res" != no; then :
8713 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
8718 $as_echo_n "checking for library containing shl_load... " >&6; }
8719 if ${ac_cv_search_shl_load+:} false; then :
8720 $as_echo_n "(cached) " >&6
8722 ac_func_search_save_LIBS=$LIBS
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8726 /* Override any GCC internal prototype to avoid an error.
8727 Use char because int might match the return type of a GCC
8728 builtin and then its argument prototype would still apply. */
8741 for ac_lib in '' dld; do
8742 if test -z "$ac_lib"; then
8743 ac_res="none required"
8746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8748 if ac_fn_c_try_link "$LINENO"; then :
8749 ac_cv_search_shl_load=$ac_res
8751 rm -f core conftest.err conftest.$ac_objext \
8753 if ${ac_cv_search_shl_load+:} false; then :
8757 if ${ac_cv_search_shl_load+:} false; then :
8760 ac_cv_search_shl_load=no
8763 LIBS=$ac_func_search_save_LIBS
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8766 $as_echo "$ac_cv_search_shl_load" >&6; }
8767 ac_res=$ac_cv_search_shl_load
8768 if test "$ac_res" != no; then :
8769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8773 # We only use libld in port/dynloader/aix.c
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldopen" >&5
8777 $as_echo_n "checking for library containing ldopen... " >&6; }
8778 if ${ac_cv_search_ldopen+:} false; then :
8779 $as_echo_n "(cached) " >&6
8781 ac_func_search_save_LIBS=$LIBS
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8785 /* Override any GCC internal prototype to avoid an error.
8786 Use char because int might match the return type of a GCC
8787 builtin and then its argument prototype would still apply. */
8800 for ac_lib in '' ld; do
8801 if test -z "$ac_lib"; then
8802 ac_res="none required"
8805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8807 if ac_fn_c_try_link "$LINENO"; then :
8808 ac_cv_search_ldopen=$ac_res
8810 rm -f core conftest.err conftest.$ac_objext \
8812 if ${ac_cv_search_ldopen+:} false; then :
8816 if ${ac_cv_search_ldopen+:} false; then :
8819 ac_cv_search_ldopen=no
8822 LIBS=$ac_func_search_save_LIBS
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldopen" >&5
8825 $as_echo "$ac_cv_search_ldopen" >&6; }
8826 ac_res=$ac_cv_search_ldopen
8827 if test "$ac_res" != no; then :
8828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
8835 $as_echo_n "checking for library containing getopt_long... " >&6; }
8836 if ${ac_cv_search_getopt_long+:} false; then :
8837 $as_echo_n "(cached) " >&6
8839 ac_func_search_save_LIBS=$LIBS
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8849 char getopt_long ();
8853 return getopt_long ();
8858 for ac_lib in '' getopt gnugetopt; do
8859 if test -z "$ac_lib"; then
8860 ac_res="none required"
8863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8865 if ac_fn_c_try_link "$LINENO"; then :
8866 ac_cv_search_getopt_long=$ac_res
8868 rm -f core conftest.err conftest.$ac_objext \
8870 if ${ac_cv_search_getopt_long+:} false; then :
8874 if ${ac_cv_search_getopt_long+:} false; then :
8877 ac_cv_search_getopt_long=no
8880 LIBS=$ac_func_search_save_LIBS
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
8883 $as_echo "$ac_cv_search_getopt_long" >&6; }
8884 ac_res=$ac_cv_search_getopt_long
8885 if test "$ac_res" != no; then :
8886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
8891 $as_echo_n "checking for library containing crypt... " >&6; }
8892 if ${ac_cv_search_crypt+:} false; then :
8893 $as_echo_n "(cached) " >&6
8895 ac_func_search_save_LIBS=$LIBS
8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897 /* end confdefs.h. */
8899 /* Override any GCC internal prototype to avoid an error.
8900 Use char because int might match the return type of a GCC
8901 builtin and then its argument prototype would still apply. */
8914 for ac_lib in '' crypt; do
8915 if test -z "$ac_lib"; then
8916 ac_res="none required"
8919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8921 if ac_fn_c_try_link "$LINENO"; then :
8922 ac_cv_search_crypt=$ac_res
8924 rm -f core conftest.err conftest.$ac_objext \
8926 if ${ac_cv_search_crypt+:} false; then :
8930 if ${ac_cv_search_crypt+:} false; then :
8933 ac_cv_search_crypt=no
8936 LIBS=$ac_func_search_save_LIBS
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
8939 $as_echo "$ac_cv_search_crypt" >&6; }
8940 ac_res=$ac_cv_search_crypt
8941 if test "$ac_res" != no; then :
8942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
8947 $as_echo_n "checking for library containing shm_open... " >&6; }
8948 if ${ac_cv_search_shm_open+:} false; then :
8949 $as_echo_n "(cached) " >&6
8951 ac_func_search_save_LIBS=$LIBS
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8955 /* Override any GCC internal prototype to avoid an error.
8956 Use char because int might match the return type of a GCC
8957 builtin and then its argument prototype would still apply. */
8970 for ac_lib in '' rt; do
8971 if test -z "$ac_lib"; then
8972 ac_res="none required"
8975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8977 if ac_fn_c_try_link "$LINENO"; then :
8978 ac_cv_search_shm_open=$ac_res
8980 rm -f core conftest.err conftest.$ac_objext \
8982 if ${ac_cv_search_shm_open+:} false; then :
8986 if ${ac_cv_search_shm_open+:} false; then :
8989 ac_cv_search_shm_open=no
8992 LIBS=$ac_func_search_save_LIBS
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
8995 $as_echo "$ac_cv_search_shm_open" >&6; }
8996 ac_res=$ac_cv_search_shm_open
8997 if test "$ac_res" != no; then :
8998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
9003 $as_echo_n "checking for library containing shm_unlink... " >&6; }
9004 if ${ac_cv_search_shm_unlink+:} false; then :
9005 $as_echo_n "(cached) " >&6
9007 ac_func_search_save_LIBS=$LIBS
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9011 /* Override any GCC internal prototype to avoid an error.
9012 Use char because int might match the return type of a GCC
9013 builtin and then its argument prototype would still apply. */
9021 return shm_unlink ();
9026 for ac_lib in '' rt; do
9027 if test -z "$ac_lib"; then
9028 ac_res="none required"
9031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9033 if ac_fn_c_try_link "$LINENO"; then :
9034 ac_cv_search_shm_unlink=$ac_res
9036 rm -f core conftest.err conftest.$ac_objext \
9038 if ${ac_cv_search_shm_unlink+:} false; then :
9042 if ${ac_cv_search_shm_unlink+:} false; then :
9045 ac_cv_search_shm_unlink=no
9048 LIBS=$ac_func_search_save_LIBS
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
9051 $as_echo "$ac_cv_search_shm_unlink" >&6; }
9052 ac_res=$ac_cv_search_shm_unlink
9053 if test "$ac_res" != no; then :
9054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
9059 $as_echo_n "checking for library containing clock_gettime... " >&6; }
9060 if ${ac_cv_search_clock_gettime+:} false; then :
9061 $as_echo_n "(cached) " >&6
9063 ac_func_search_save_LIBS=$LIBS
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9067 /* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
9073 char clock_gettime ();
9077 return clock_gettime ();
9082 for ac_lib in '' rt posix4; do
9083 if test -z "$ac_lib"; then
9084 ac_res="none required"
9087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9089 if ac_fn_c_try_link "$LINENO"; then :
9090 ac_cv_search_clock_gettime=$ac_res
9092 rm -f core conftest.err conftest.$ac_objext \
9094 if ${ac_cv_search_clock_gettime+:} false; then :
9098 if ${ac_cv_search_clock_gettime+:} false; then :
9101 ac_cv_search_clock_gettime=no
9104 LIBS=$ac_func_search_save_LIBS
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
9107 $as_echo "$ac_cv_search_clock_gettime" >&6; }
9108 ac_res=$ac_cv_search_clock_gettime
9109 if test "$ac_res" != no; then :
9110 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
9116 $as_echo_n "checking for library containing fdatasync... " >&6; }
9117 if ${ac_cv_search_fdatasync+:} false; then :
9118 $as_echo_n "(cached) " >&6
9120 ac_func_search_save_LIBS=$LIBS
9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h. */
9124 /* Override any GCC internal prototype to avoid an error.
9125 Use char because int might match the return type of a GCC
9126 builtin and then its argument prototype would still apply. */
9134 return fdatasync ();
9139 for ac_lib in '' rt posix4; do
9140 if test -z "$ac_lib"; then
9141 ac_res="none required"
9144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9146 if ac_fn_c_try_link "$LINENO"; then :
9147 ac_cv_search_fdatasync=$ac_res
9149 rm -f core conftest.err conftest.$ac_objext \
9151 if ${ac_cv_search_fdatasync+:} false; then :
9155 if ${ac_cv_search_fdatasync+:} false; then :
9158 ac_cv_search_fdatasync=no
9161 LIBS=$ac_func_search_save_LIBS
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
9164 $as_echo "$ac_cv_search_fdatasync" >&6; }
9165 ac_res=$ac_cv_search_fdatasync
9166 if test "$ac_res" != no; then :
9167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9171 # Required for thread_test.c on Solaris
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
9173 $as_echo_n "checking for library containing sched_yield... " >&6; }
9174 if ${ac_cv_search_sched_yield+:} false; then :
9175 $as_echo_n "(cached) " >&6
9177 ac_func_search_save_LIBS=$LIBS
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9181 /* Override any GCC internal prototype to avoid an error.
9182 Use char because int might match the return type of a GCC
9183 builtin and then its argument prototype would still apply. */
9187 char sched_yield ();
9191 return sched_yield ();
9196 for ac_lib in '' rt; do
9197 if test -z "$ac_lib"; then
9198 ac_res="none required"
9201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9203 if ac_fn_c_try_link "$LINENO"; then :
9204 ac_cv_search_sched_yield=$ac_res
9206 rm -f core conftest.err conftest.$ac_objext \
9208 if ${ac_cv_search_sched_yield+:} false; then :
9212 if ${ac_cv_search_sched_yield+:} false; then :
9215 ac_cv_search_sched_yield=no
9218 LIBS=$ac_func_search_save_LIBS
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
9221 $as_echo "$ac_cv_search_sched_yield" >&6; }
9222 ac_res=$ac_cv_search_sched_yield
9223 if test "$ac_res" != no; then :
9224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9228 # Required for thread_test.c on Solaris 2.5:
9229 # Other ports use it too (HP-UX) so test unconditionally
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
9231 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
9232 if ${ac_cv_search_gethostbyname_r+:} false; then :
9233 $as_echo_n "(cached) " >&6
9235 ac_func_search_save_LIBS=$LIBS
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9239 /* Override any GCC internal prototype to avoid an error.
9240 Use char because int might match the return type of a GCC
9241 builtin and then its argument prototype would still apply. */
9245 char gethostbyname_r ();
9249 return gethostbyname_r ();
9254 for ac_lib in '' nsl; do
9255 if test -z "$ac_lib"; then
9256 ac_res="none required"
9259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9261 if ac_fn_c_try_link "$LINENO"; then :
9262 ac_cv_search_gethostbyname_r=$ac_res
9264 rm -f core conftest.err conftest.$ac_objext \
9266 if ${ac_cv_search_gethostbyname_r+:} false; then :
9270 if ${ac_cv_search_gethostbyname_r+:} false; then :
9273 ac_cv_search_gethostbyname_r=no
9276 LIBS=$ac_func_search_save_LIBS
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
9279 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
9280 ac_res=$ac_cv_search_gethostbyname_r
9281 if test "$ac_res" != no; then :
9282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
9288 $as_echo_n "checking for library containing shmget... " >&6; }
9289 if ${ac_cv_search_shmget+:} false; then :
9290 $as_echo_n "(cached) " >&6
9292 ac_func_search_save_LIBS=$LIBS
9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9296 /* Override any GCC internal prototype to avoid an error.
9297 Use char because int might match the return type of a GCC
9298 builtin and then its argument prototype would still apply. */
9311 for ac_lib in '' cygipc; do
9312 if test -z "$ac_lib"; then
9313 ac_res="none required"
9316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9318 if ac_fn_c_try_link "$LINENO"; then :
9319 ac_cv_search_shmget=$ac_res
9321 rm -f core conftest.err conftest.$ac_objext \
9323 if ${ac_cv_search_shmget+:} false; then :
9327 if ${ac_cv_search_shmget+:} false; then :
9330 ac_cv_search_shmget=no
9333 LIBS=$ac_func_search_save_LIBS
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
9336 $as_echo "$ac_cv_search_shmget" >&6; }
9337 ac_res=$ac_cv_search_shmget
9338 if test "$ac_res" != no; then :
9339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9344 if test "$with_readline" = yes; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
9348 $as_echo_n "checking for library containing readline... " >&6; }
9349 if ${pgac_cv_check_readline+:} false; then :
9350 $as_echo_n "(cached) " >&6
9352 pgac_cv_check_readline=no
9353 pgac_save_LIBS=$LIBS
9354 if test x"$with_libedit_preferred" != x"yes"
9355 then READLINE_ORDER="-lreadline -ledit"
9356 else READLINE_ORDER="-ledit -lreadline"
9358 for pgac_rllib in $READLINE_ORDER ; do
9359 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
9360 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9364 /* Override any GCC internal prototype to avoid an error.
9365 Use char because int might match the return type of a GCC
9366 builtin and then its argument prototype would still apply. */
9379 if ac_fn_c_try_link "$LINENO"; then :
9381 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
9382 # recognize dependent libraries; assume curses is needed if we didn't
9383 # find any dependency.
9385 netbsd* | openbsd* | irix*)
9386 if test x"$pgac_lib" = x"" ; then
9387 pgac_lib=" -lcurses"
9391 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
9395 rm -f core conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9398 if test "$pgac_cv_check_readline" != no ; then
9402 LIBS=$pgac_save_LIBS
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
9406 $as_echo "$pgac_cv_check_readline" >&6; }
9407 if test "$pgac_cv_check_readline" != no ; then
9408 LIBS="$pgac_cv_check_readline $LIBS"
9410 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
9415 if test x"$pgac_cv_check_readline" = x"no"; then
9416 as_fn_error $? "readline library not found
9417 If you have readline already installed, see config.log for details on the
9418 failure. It is possible the compiler isn't looking in the proper directory.
9419 Use --without-readline to disable readline support." "$LINENO" 5
9423 if test "$with_zlib" = yes; then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
9425 $as_echo_n "checking for inflate in -lz... " >&6; }
9426 if ${ac_cv_lib_z_inflate+:} false; then :
9427 $as_echo_n "(cached) " >&6
9429 ac_check_lib_save_LIBS=$LIBS
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9434 /* Override any GCC internal prototype to avoid an error.
9435 Use char because int might match the return type of a GCC
9436 builtin and then its argument prototype would still apply. */
9449 if ac_fn_c_try_link "$LINENO"; then :
9450 ac_cv_lib_z_inflate=yes
9452 ac_cv_lib_z_inflate=no
9454 rm -f core conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
9456 LIBS=$ac_check_lib_save_LIBS
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
9459 $as_echo "$ac_cv_lib_z_inflate" >&6; }
9460 if test "x$ac_cv_lib_z_inflate" = xyes; then :
9461 cat >>confdefs.h <<_ACEOF
9468 as_fn_error $? "zlib library not found
9469 If you have zlib already installed, see config.log for details on the
9470 failure. It is possible the compiler isn't looking in the proper directory.
9471 Use --without-zlib to disable zlib support." "$LINENO" 5
9476 if test "$enable_spinlocks" = yes; then
9478 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9482 *** Not using spinlocks will cause poor performance." >&5
9483 $as_echo "$as_me: WARNING:
9484 *** Not using spinlocks will cause poor performance." >&2;}
9487 if test "$enable_atomics" = yes; then
9489 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9493 *** Not using atomic operations will cause poor performance." >&5
9494 $as_echo "$as_me: WARNING:
9495 *** Not using atomic operations will cause poor performance." >&2;}
9498 if test "$with_gssapi" = yes ; then
9499 if test "$PORTNAME" != "win32"; then
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
9501 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
9502 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9503 $as_echo_n "(cached) " >&6
9505 ac_func_search_save_LIBS=$LIBS
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9509 /* Override any GCC internal prototype to avoid an error.
9510 Use char because int might match the return type of a GCC
9511 builtin and then its argument prototype would still apply. */
9515 char gss_init_sec_context ();
9519 return gss_init_sec_context ();
9524 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
9525 if test -z "$ac_lib"; then
9526 ac_res="none required"
9529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9531 if ac_fn_c_try_link "$LINENO"; then :
9532 ac_cv_search_gss_init_sec_context=$ac_res
9534 rm -f core conftest.err conftest.$ac_objext \
9536 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9540 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9543 ac_cv_search_gss_init_sec_context=no
9546 LIBS=$ac_func_search_save_LIBS
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
9549 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
9550 ac_res=$ac_cv_search_gss_init_sec_context
9551 if test "$ac_res" != no; then :
9552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9555 as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
9559 LIBS="$LIBS -lgssapi32"
9563 if test "$with_openssl" = yes ; then
9564 if test "$PORTNAME" != "win32"; then
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9566 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9567 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
9568 $as_echo_n "(cached) " >&6
9570 ac_check_lib_save_LIBS=$LIBS
9571 LIBS="-lcrypto $LIBS"
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9575 /* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9581 char CRYPTO_new_ex_data ();
9585 return CRYPTO_new_ex_data ();
9590 if ac_fn_c_try_link "$LINENO"; then :
9591 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9593 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9595 rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
9597 LIBS=$ac_check_lib_save_LIBS
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9600 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9601 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
9602 cat >>confdefs.h <<_ACEOF
9603 #define HAVE_LIBCRYPTO 1
9606 LIBS="-lcrypto $LIBS"
9609 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
9613 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
9614 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
9615 $as_echo_n "(cached) " >&6
9617 ac_check_lib_save_LIBS=$LIBS
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h. */
9622 /* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
9637 if ac_fn_c_try_link "$LINENO"; then :
9638 ac_cv_lib_ssl_SSL_new=yes
9640 ac_cv_lib_ssl_SSL_new=no
9642 rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644 LIBS=$ac_check_lib_save_LIBS
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
9647 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
9648 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
9649 cat >>confdefs.h <<_ACEOF
9650 #define HAVE_LIBSSL 1
9656 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
9661 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9662 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
9663 $as_echo_n "(cached) " >&6
9665 ac_func_search_save_LIBS=$LIBS
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9675 char CRYPTO_new_ex_data ();
9679 return CRYPTO_new_ex_data ();
9684 for ac_lib in '' eay32 crypto; do
9685 if test -z "$ac_lib"; then
9686 ac_res="none required"
9689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9691 if ac_fn_c_try_link "$LINENO"; then :
9692 ac_cv_search_CRYPTO_new_ex_data=$ac_res
9694 rm -f core conftest.err conftest.$ac_objext \
9696 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
9700 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
9703 ac_cv_search_CRYPTO_new_ex_data=no
9706 LIBS=$ac_func_search_save_LIBS
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9709 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9710 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9711 if test "$ac_res" != no; then :
9712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9715 as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
9719 $as_echo_n "checking for library containing SSL_new... " >&6; }
9720 if ${ac_cv_search_SSL_new+:} false; then :
9721 $as_echo_n "(cached) " >&6
9723 ac_func_search_save_LIBS=$LIBS
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9727 /* Override any GCC internal prototype to avoid an error.
9728 Use char because int might match the return type of a GCC
9729 builtin and then its argument prototype would still apply. */
9742 for ac_lib in '' ssleay32 ssl; do
9743 if test -z "$ac_lib"; then
9744 ac_res="none required"
9747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9749 if ac_fn_c_try_link "$LINENO"; then :
9750 ac_cv_search_SSL_new=$ac_res
9752 rm -f core conftest.err conftest.$ac_objext \
9754 if ${ac_cv_search_SSL_new+:} false; then :
9758 if ${ac_cv_search_SSL_new+:} false; then :
9761 ac_cv_search_SSL_new=no
9764 LIBS=$ac_func_search_save_LIBS
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
9767 $as_echo "$ac_cv_search_SSL_new" >&6; }
9768 ac_res=$ac_cv_search_SSL_new
9769 if test "$ac_res" != no; then :
9770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9773 as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
9777 for ac_func in SSL_get_current_compression
9779 ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
9780 if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
9781 cat >>confdefs.h <<_ACEOF
9782 #define HAVE_SSL_GET_CURRENT_COMPRESSION 1
9788 # Functions introduced in OpenSSL 1.1.0. We used to check for
9789 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
9790 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
9791 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
9793 for ac_func in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data RAND_OpenSSL
9795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9796 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9797 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9798 cat >>confdefs.h <<_ACEOF
9799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9805 # OpenSSL versions before 1.1.0 required setting callback functions, for
9806 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
9807 # function was removed.
9808 for ac_func in CRYPTO_lock
9810 ac_fn_c_check_func "$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
9811 if test "x$ac_cv_func_CRYPTO_lock" = xyes; then :
9812 cat >>confdefs.h <<_ACEOF
9813 #define HAVE_CRYPTO_LOCK 1
9821 if test "$with_pam" = yes ; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
9823 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9824 if ${ac_cv_lib_pam_pam_start+:} false; then :
9825 $as_echo_n "(cached) " >&6
9827 ac_check_lib_save_LIBS=$LIBS
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9832 /* Override any GCC internal prototype to avoid an error.
9833 Use char because int might match the return type of a GCC
9834 builtin and then its argument prototype would still apply. */
9842 return pam_start ();
9847 if ac_fn_c_try_link "$LINENO"; then :
9848 ac_cv_lib_pam_pam_start=yes
9850 ac_cv_lib_pam_pam_start=no
9852 rm -f core conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9854 LIBS=$ac_check_lib_save_LIBS
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
9857 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9858 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
9859 cat >>confdefs.h <<_ACEOF
9860 #define HAVE_LIBPAM 1
9866 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
9871 if test "$with_libxml" = yes ; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
9873 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9874 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
9875 $as_echo_n "(cached) " >&6
9877 ac_check_lib_save_LIBS=$LIBS
9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h. */
9882 /* Override any GCC internal prototype to avoid an error.
9883 Use char because int might match the return type of a GCC
9884 builtin and then its argument prototype would still apply. */
9888 char xmlSaveToBuffer ();
9892 return xmlSaveToBuffer ();
9897 if ac_fn_c_try_link "$LINENO"; then :
9898 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9900 ac_cv_lib_xml2_xmlSaveToBuffer=no
9902 rm -f core conftest.err conftest.$ac_objext \
9903 conftest$ac_exeext conftest.$ac_ext
9904 LIBS=$ac_check_lib_save_LIBS
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9907 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9908 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_LIBXML2 1
9916 as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
9921 if test "$with_libxslt" = yes ; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
9923 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9924 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
9925 $as_echo_n "(cached) " >&6
9927 ac_check_lib_save_LIBS=$LIBS
9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9932 /* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
9938 char xsltCleanupGlobals ();
9942 return xsltCleanupGlobals ();
9947 if ac_fn_c_try_link "$LINENO"; then :
9948 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9950 ac_cv_lib_xslt_xsltCleanupGlobals=no
9952 rm -f core conftest.err conftest.$ac_objext \
9953 conftest$ac_exeext conftest.$ac_ext
9954 LIBS=$ac_check_lib_save_LIBS
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9957 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9958 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
9959 cat >>confdefs.h <<_ACEOF
9960 #define HAVE_LIBXSLT 1
9966 as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
9971 # Note: We can test for libldap_r only after we know PTHREAD_LIBS
9972 if test "$with_ldap" = yes ; then
9974 if test "$PORTNAME" != "win32"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
9976 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
9977 if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
9978 $as_echo_n "(cached) " >&6
9980 ac_check_lib_save_LIBS=$LIBS
9981 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983 /* end confdefs.h. */
9985 /* Override any GCC internal prototype to avoid an error.
9986 Use char because int might match the return type of a GCC
9987 builtin and then its argument prototype would still apply. */
9995 return ldap_bind ();
10000 if ac_fn_c_try_link "$LINENO"; then :
10001 ac_cv_lib_ldap_ldap_bind=yes
10003 ac_cv_lib_ldap_ldap_bind=no
10005 rm -f core conftest.err conftest.$ac_objext \
10006 conftest$ac_exeext conftest.$ac_ext
10007 LIBS=$ac_check_lib_save_LIBS
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
10010 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
10011 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
10012 cat >>confdefs.h <<_ACEOF
10013 #define HAVE_LIBLDAP 1
10016 LIBS="-lldap $LIBS"
10019 as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
10022 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
10023 if test "$enable_thread_safety" = yes; then
10024 # on some platforms ldap_r fails to link without PTHREAD_LIBS
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
10026 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
10027 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false; then :
10028 $as_echo_n "(cached) " >&6
10030 ac_check_lib_save_LIBS=$LIBS
10031 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10035 /* Override any GCC internal prototype to avoid an error.
10036 Use char because int might match the return type of a GCC
10037 builtin and then its argument prototype would still apply. */
10041 char ldap_simple_bind ();
10045 return ldap_simple_bind ();
10050 if ac_fn_c_try_link "$LINENO"; then :
10051 ac_cv_lib_ldap_r_ldap_simple_bind=yes
10053 ac_cv_lib_ldap_r_ldap_simple_bind=no
10055 rm -f core conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10057 LIBS=$ac_check_lib_save_LIBS
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
10060 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
10061 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes; then :
10062 cat >>confdefs.h <<_ACEOF
10063 #define HAVE_LIBLDAP_R 1
10066 LIBS="-lldap_r $LIBS"
10069 as_fn_error $? "library 'ldap_r' is required for LDAP" "$LINENO" 5
10072 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
10074 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
10078 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
10079 if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
10080 $as_echo_n "(cached) " >&6
10082 ac_check_lib_save_LIBS=$LIBS
10083 LIBS="-lwldap32 $LIBS"
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10087 /* Override any GCC internal prototype to avoid an error.
10088 Use char because int might match the return type of a GCC
10089 builtin and then its argument prototype would still apply. */
10097 return ldap_bind ();
10102 if ac_fn_c_try_link "$LINENO"; then :
10103 ac_cv_lib_wldap32_ldap_bind=yes
10105 ac_cv_lib_wldap32_ldap_bind=no
10107 rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 LIBS=$ac_check_lib_save_LIBS
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
10112 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
10113 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
10114 cat >>confdefs.h <<_ACEOF
10115 #define HAVE_LIBWLDAP32 1
10118 LIBS="-lwldap32 $LIBS"
10121 as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
10124 LDAP_LIBS_FE="-lwldap32"
10125 LDAP_LIBS_BE="-lwldap32"
10132 # for contrib/sepgsql
10133 if test "$with_selinux" = yes; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
10135 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
10136 if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
10137 $as_echo_n "(cached) " >&6
10139 ac_check_lib_save_LIBS=$LIBS
10140 LIBS="-lselinux $LIBS"
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10144 /* Override any GCC internal prototype to avoid an error.
10145 Use char because int might match the return type of a GCC
10146 builtin and then its argument prototype would still apply. */
10150 char security_compute_create_name ();
10154 return security_compute_create_name ();
10159 if ac_fn_c_try_link "$LINENO"; then :
10160 ac_cv_lib_selinux_security_compute_create_name=yes
10162 ac_cv_lib_selinux_security_compute_create_name=no
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
10169 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
10170 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
10171 cat >>confdefs.h <<_ACEOF
10172 #define HAVE_LIBSELINUX 1
10175 LIBS="-lselinux $LIBS"
10178 as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
10183 # for contrib/uuid-ossp
10184 if test "$with_uuid" = bsd ; then
10185 # On BSD, the UUID functions are in libc
10186 ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
10187 if test "x$ac_cv_func_uuid_to_string" = xyes; then :
10190 as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
10193 elif test "$with_uuid" = e2fs ; then
10194 # On macOS, the UUID functions are in libc
10195 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
10196 if test "x$ac_cv_func_uuid_generate" = xyes; then :
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
10200 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
10201 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
10202 $as_echo_n "(cached) " >&6
10204 ac_check_lib_save_LIBS=$LIBS
10205 LIBS="-luuid $LIBS"
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10209 /* Override any GCC internal prototype to avoid an error.
10210 Use char because int might match the return type of a GCC
10211 builtin and then its argument prototype would still apply. */
10215 char uuid_generate ();
10219 return uuid_generate ();
10224 if ac_fn_c_try_link "$LINENO"; then :
10225 ac_cv_lib_uuid_uuid_generate=yes
10227 ac_cv_lib_uuid_uuid_generate=no
10229 rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 LIBS=$ac_check_lib_save_LIBS
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
10234 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
10235 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
10238 as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
10243 elif test "$with_uuid" = ossp ; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
10245 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
10246 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
10247 $as_echo_n "(cached) " >&6
10249 ac_check_lib_save_LIBS=$LIBS
10250 LIBS="-lossp-uuid $LIBS"
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10260 char uuid_export ();
10264 return uuid_export ();
10269 if ac_fn_c_try_link "$LINENO"; then :
10270 ac_cv_lib_ossp_uuid_uuid_export=yes
10272 ac_cv_lib_ossp_uuid_uuid_export=no
10274 rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 LIBS=$ac_check_lib_save_LIBS
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
10279 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
10280 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
10281 UUID_LIBS="-lossp-uuid"
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
10284 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
10285 if ${ac_cv_lib_uuid_uuid_export+:} false; then :
10286 $as_echo_n "(cached) " >&6
10288 ac_check_lib_save_LIBS=$LIBS
10289 LIBS="-luuid $LIBS"
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10293 /* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
10299 char uuid_export ();
10303 return uuid_export ();
10308 if ac_fn_c_try_link "$LINENO"; then :
10309 ac_cv_lib_uuid_uuid_export=yes
10311 ac_cv_lib_uuid_uuid_export=no
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
10318 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
10319 if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
10322 as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
10335 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
10337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10338 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10339 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10340 cat >>confdefs.h <<_ACEOF
10341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10349 # On BSD, test for net/if.h will fail unless sys/socket.h
10350 # is included first.
10351 for ac_header in net/if.h
10353 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
10354 #ifdef HAVE_SYS_SOCKET_H
10355 #include <sys/socket.h>
10359 if test "x$ac_cv_header_net_if_h" = xyes; then :
10360 cat >>confdefs.h <<_ACEOF
10361 #define HAVE_NET_IF_H 1
10369 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
10370 # is included first.
10371 for ac_header in sys/ucred.h
10373 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
10374 #include <sys/param.h>
10377 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
10378 cat >>confdefs.h <<_ACEOF
10379 #define HAVE_SYS_UCRED_H 1
10387 # At least on IRIX, test for netinet/tcp.h will fail unless
10388 # netinet/in.h is included first.
10389 for ac_header in netinet/in.h
10391 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
10392 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
10393 cat >>confdefs.h <<_ACEOF
10394 #define HAVE_NETINET_IN_H 1
10401 for ac_header in netinet/tcp.h
10403 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
10404 #ifdef HAVE_NETINET_IN_H
10405 #include <netinet/in.h>
10409 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
10410 cat >>confdefs.h <<_ACEOF
10411 #define HAVE_NETINET_TCP_H 1
10419 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10420 for ac_header in readline/readline.h
10422 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
10423 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
10424 cat >>confdefs.h <<_ACEOF
10425 #define HAVE_READLINE_READLINE_H 1
10429 for ac_header in readline.h
10431 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
10432 if test "x$ac_cv_header_readline_h" = xyes; then :
10433 cat >>confdefs.h <<_ACEOF
10434 #define HAVE_READLINE_H 1
10438 as_fn_error $? "readline header not found
10439 If you have readline already installed, see config.log for details on the
10440 failure. It is possible the compiler isn't looking in the proper directory.
10441 Use --without-readline to disable readline support." "$LINENO" 5
10450 for ac_header in readline/history.h
10452 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
10453 if test "x$ac_cv_header_readline_history_h" = xyes; then :
10454 cat >>confdefs.h <<_ACEOF
10455 #define HAVE_READLINE_HISTORY_H 1
10459 for ac_header in history.h
10461 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
10462 if test "x$ac_cv_header_history_h" = xyes; then :
10463 cat >>confdefs.h <<_ACEOF
10464 #define HAVE_HISTORY_H 1
10468 as_fn_error $? "history header not found
10469 If you have readline already installed, see config.log for details on the
10470 failure. It is possible the compiler isn't looking in the proper directory.
10471 Use --without-readline to disable readline support." "$LINENO" 5
10482 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10483 # Some installations of libedit usurp /usr/include/readline/, which seems
10484 # bad practice, since in combined installations readline will have its headers
10485 # there. We might have to resort to AC_EGREP checks to make sure we found
10486 # the proper header...
10487 for ac_header in editline/readline.h
10489 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
10490 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
10491 cat >>confdefs.h <<_ACEOF
10492 #define HAVE_EDITLINE_READLINE_H 1
10496 for ac_header in readline.h
10498 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
10499 if test "x$ac_cv_header_readline_h" = xyes; then :
10500 cat >>confdefs.h <<_ACEOF
10501 #define HAVE_READLINE_H 1
10505 for ac_header in readline/readline.h
10507 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
10508 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
10509 cat >>confdefs.h <<_ACEOF
10510 #define HAVE_READLINE_READLINE_H 1
10514 as_fn_error $? "readline header not found
10515 If you have libedit already installed, see config.log for details on the
10516 failure. It is possible the compiler isn't looking in the proper directory.
10517 Use --without-readline to disable libedit support." "$LINENO" 5
10530 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10531 # not be there at all. Hence, don't complain if not found. We must check
10532 # though, since in yet other versions it is an independent header.
10533 for ac_header in editline/history.h
10535 ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
10536 if test "x$ac_cv_header_editline_history_h" = xyes; then :
10537 cat >>confdefs.h <<_ACEOF
10538 #define HAVE_EDITLINE_HISTORY_H 1
10542 for ac_header in history.h
10544 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
10545 if test "x$ac_cv_header_history_h" = xyes; then :
10546 cat >>confdefs.h <<_ACEOF
10547 #define HAVE_HISTORY_H 1
10551 for ac_header in readline/history.h
10553 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
10554 if test "x$ac_cv_header_readline_history_h" = xyes; then :
10555 cat >>confdefs.h <<_ACEOF
10556 #define HAVE_READLINE_HISTORY_H 1
10573 if test "$with_zlib" = yes; then
10574 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10575 if test "x$ac_cv_header_zlib_h" = xyes; then :
10578 as_fn_error $? "zlib header not found
10579 If you have zlib already installed, see config.log for details on the
10580 failure. It is possible the compiler isn't looking in the proper directory.
10581 Use --without-zlib to disable zlib support." "$LINENO" 5
10587 if test "$with_gssapi" = yes ; then
10588 for ac_header in gssapi/gssapi.h
10590 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
10591 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
10592 cat >>confdefs.h <<_ACEOF
10593 #define HAVE_GSSAPI_GSSAPI_H 1
10597 for ac_header in gssapi.h
10599 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
10600 if test "x$ac_cv_header_gssapi_h" = xyes; then :
10601 cat >>confdefs.h <<_ACEOF
10602 #define HAVE_GSSAPI_H 1
10606 as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5
10617 if test "$with_openssl" = yes ; then
10618 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
10619 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
10622 as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
10626 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
10627 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
10630 as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
10636 if test "$with_pam" = yes ; then
10637 for ac_header in security/pam_appl.h
10639 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
10640 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
10641 cat >>confdefs.h <<_ACEOF
10642 #define HAVE_SECURITY_PAM_APPL_H 1
10646 for ac_header in pam/pam_appl.h
10648 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
10649 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
10650 cat >>confdefs.h <<_ACEOF
10651 #define HAVE_PAM_PAM_APPL_H 1
10655 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
10666 if test "$with_bsd_auth" = yes ; then
10667 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
10668 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
10671 as_fn_error $? "header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
10677 if test "$with_systemd" = yes ; then
10678 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
10679 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
10682 as_fn_error $? "header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
10688 if test "$with_libxml" = yes ; then
10689 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
10690 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
10693 as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5
10699 if test "$with_libxslt" = yes ; then
10700 ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
10701 if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
10704 as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
10710 if test "$with_ldap" = yes ; then
10711 if test "$PORTNAME" != "win32"; then
10712 for ac_header in ldap.h
10714 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
10715 if test "x$ac_cv_header_ldap_h" = xyes; then :
10716 cat >>confdefs.h <<_ACEOF
10717 #define HAVE_LDAP_H 1
10721 as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
10727 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
10728 if ${pgac_cv_ldap_safe+:} false; then :
10729 $as_echo_n "(cached) " >&6
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10734 #if !defined(LDAP_VENDOR_VERSION) || \
10735 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
10736 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
10747 if ac_fn_c_try_compile "$LINENO"; then :
10748 pgac_cv_ldap_safe=yes
10750 pgac_cv_ldap_safe=no
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
10755 $as_echo "$pgac_cv_ldap_safe" >&6; }
10757 if test "$pgac_cv_ldap_safe" != yes; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10759 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
10760 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
10761 *** also uses LDAP will crash on exit." >&5
10762 $as_echo "$as_me: WARNING:
10763 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
10764 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
10765 *** also uses LDAP will crash on exit." >&2;}
10768 for ac_header in winldap.h
10770 ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
10771 #include <windows.h>
10774 if test "x$ac_cv_header_winldap_h" = xyes; then :
10775 cat >>confdefs.h <<_ACEOF
10776 #define HAVE_WINLDAP_H 1
10780 as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
10788 if test "$with_bonjour" = yes ; then
10789 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
10790 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
10793 as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
10799 # for contrib/uuid-ossp
10800 if test "$with_uuid" = bsd ; then
10801 for ac_header in uuid.h
10803 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
10804 if test "x$ac_cv_header_uuid_h" = xyes; then :
10805 cat >>confdefs.h <<_ACEOF
10806 #define HAVE_UUID_H 1
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10814 $EGREP "uuid_to_string" >/dev/null 2>&1; then :
10817 as_fn_error $? "header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
10822 as_fn_error $? "header file <uuid.h> is required for BSD UUID" "$LINENO" 5
10827 elif test "$with_uuid" = e2fs ; then
10828 for ac_header in uuid/uuid.h
10830 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
10831 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
10832 cat >>confdefs.h <<_ACEOF
10833 #define HAVE_UUID_UUID_H 1
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10837 #include <uuid/uuid.h>
10840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10841 $EGREP "uuid_generate" >/dev/null 2>&1; then :
10844 as_fn_error $? "header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
10849 for ac_header in uuid.h
10851 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
10852 if test "x$ac_cv_header_uuid_h" = xyes; then :
10853 cat >>confdefs.h <<_ACEOF
10854 #define HAVE_UUID_H 1
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10862 $EGREP "uuid_generate" >/dev/null 2>&1; then :
10865 as_fn_error $? "header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
10870 as_fn_error $? "header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
10879 elif test "$with_uuid" = ossp ; then
10880 for ac_header in ossp/uuid.h
10882 ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
10883 if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
10884 cat >>confdefs.h <<_ACEOF
10885 #define HAVE_OSSP_UUID_H 1
10887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h. */
10889 #include <ossp/uuid.h>
10892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10893 $EGREP "uuid_export" >/dev/null 2>&1; then :
10896 as_fn_error $? "header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
10901 for ac_header in uuid.h
10903 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
10904 if test "x$ac_cv_header_uuid_h" = xyes; then :
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE_UUID_H 1
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10914 $EGREP "uuid_export" >/dev/null 2>&1; then :
10917 as_fn_error $? "header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
10922 as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
10933 if test "$PORTNAME" = "win32" ; then
10934 for ac_header in crtdefs.h
10936 ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
10937 if test "x$ac_cv_header_crtdefs_h" = xyes; then :
10938 cat >>confdefs.h <<_ACEOF
10939 #define HAVE_CRTDEFS_H 1
10949 ## Types, structures, compiler characteristics
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10953 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10954 if ${ac_cv_c_bigendian+:} false; then :
10955 $as_echo_n "(cached) " >&6
10957 ac_cv_c_bigendian=unknown
10958 # See if we're dealing with a universal compiler.
10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10961 #ifndef __APPLE_CC__
10962 not a universal capable compiler
10967 if ac_fn_c_try_compile "$LINENO"; then :
10969 # Check for potential -arch flags. It is not universal unless
10970 # there are at least two -arch flags with different values.
10973 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10974 if test -n "$ac_prev"; then
10976 i?86 | x86_64 | ppc | ppc64)
10977 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10980 ac_cv_c_bigendian=universal
10986 elif test "x$ac_word" = "x-arch"; then
10991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992 if test $ac_cv_c_bigendian = unknown; then
10993 # See if sys/param.h defines the BYTE_ORDER macro.
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10996 #include <sys/types.h>
10997 #include <sys/param.h>
11002 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11003 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11005 bogus endian macros
11012 if ac_fn_c_try_compile "$LINENO"; then :
11013 # It does; now see whether it defined to BIG_ENDIAN or not.
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11016 #include <sys/types.h>
11017 #include <sys/param.h>
11022 #if BYTE_ORDER != BIG_ENDIAN
11030 if ac_fn_c_try_compile "$LINENO"; then :
11031 ac_cv_c_bigendian=yes
11033 ac_cv_c_bigendian=no
11035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11039 if test $ac_cv_c_bigendian = unknown; then
11040 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11043 #include <limits.h>
11048 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11049 bogus endian macros
11056 if ac_fn_c_try_compile "$LINENO"; then :
11057 # It does; now see whether it defined to _BIG_ENDIAN or not.
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11060 #include <limits.h>
11065 #ifndef _BIG_ENDIAN
11073 if ac_fn_c_try_compile "$LINENO"; then :
11074 ac_cv_c_bigendian=yes
11076 ac_cv_c_bigendian=no
11078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11082 if test $ac_cv_c_bigendian = unknown; then
11083 # Compile a test program.
11084 if test "$cross_compiling" = yes; then :
11085 # Try to guess by grepping values from an object file.
11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11088 short int ascii_mm[] =
11089 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11090 short int ascii_ii[] =
11091 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11092 int use_ascii (int i) {
11093 return ascii_mm[i] + ascii_ii[i];
11095 short int ebcdic_ii[] =
11096 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11097 short int ebcdic_mm[] =
11098 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11099 int use_ebcdic (int i) {
11100 return ebcdic_mm[i] + ebcdic_ii[i];
11107 return use_ascii (foo) == use_ebcdic (foo);
11112 if ac_fn_c_try_compile "$LINENO"; then :
11113 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11114 ac_cv_c_bigendian=yes
11116 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11117 if test "$ac_cv_c_bigendian" = unknown; then
11118 ac_cv_c_bigendian=no
11120 # finding both strings is unlikely to happen, but who knows?
11121 ac_cv_c_bigendian=unknown
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h. */
11129 $ac_includes_default
11134 /* Are we little or big endian? From Harbison&Steele. */
11138 char c[sizeof (long int)];
11141 return u.c[sizeof (long int) - 1] == 1;
11147 if ac_fn_c_try_run "$LINENO"; then :
11148 ac_cv_c_bigendian=no
11150 ac_cv_c_bigendian=yes
11152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11153 conftest.$ac_objext conftest.beam conftest.$ac_ext
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11159 $as_echo "$ac_cv_c_bigendian" >&6; }
11160 case $ac_cv_c_bigendian in #(
11162 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11168 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11172 as_fn_error $? "unknown endianness
11173 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11177 $as_echo_n "checking for inline... " >&6; }
11178 if ${ac_cv_c_inline+:} false; then :
11179 $as_echo_n "(cached) " >&6
11182 for ac_kw in inline __inline__ __inline; do
11183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h. */
11185 #ifndef __cplusplus
11187 static $ac_kw foo_t static_foo () {return 0; }
11188 $ac_kw foo_t foo () {return 0; }
11192 if ac_fn_c_try_compile "$LINENO"; then :
11193 ac_cv_c_inline=$ac_kw
11195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11196 test "$ac_cv_c_inline" != no && break
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11201 $as_echo "$ac_cv_c_inline" >&6; }
11203 case $ac_cv_c_inline in
11206 case $ac_cv_c_inline in
11208 *) ac_val=$ac_cv_c_inline;;
11210 cat >>confdefs.h <<_ACEOF
11211 #ifndef __cplusplus
11212 #define inline $ac_val
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
11219 $as_echo_n "checking for printf format archetype... " >&6; }
11220 if ${pgac_cv_printf_archetype+:} false; then :
11221 $as_echo_n "(cached) " >&6
11223 ac_save_c_werror_flag=$ac_c_werror_flag
11224 ac_c_werror_flag=yes
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11228 pgac_write(int ignore, const char *fmt,...)
11229 __attribute__((format(gnu_printf, 2, 3)));
11238 if ac_fn_c_try_compile "$LINENO"; then :
11239 pgac_cv_printf_archetype=gnu_printf
11241 pgac_cv_printf_archetype=printf
11243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244 ac_c_werror_flag=$ac_save_c_werror_flag
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
11247 $as_echo "$pgac_cv_printf_archetype" >&6; }
11249 cat >>confdefs.h <<_ACEOF
11250 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
11256 $as_echo_n "checking for flexible array members... " >&6; }
11257 if ${ac_cv_c_flexmember+:} false; then :
11258 $as_echo_n "(cached) " >&6
11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11262 #include <stdlib.h>
11264 #include <stddef.h>
11265 struct s { int n; double d[]; };
11269 int m = getchar ();
11270 struct s *p = malloc (offsetof (struct s, d)
11271 + m * sizeof (double));
11273 return p->d != (double *) NULL;
11278 if ac_fn_c_try_compile "$LINENO"; then :
11279 ac_cv_c_flexmember=yes
11281 ac_cv_c_flexmember=no
11283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
11286 $as_echo "$ac_cv_c_flexmember" >&6; }
11287 if test $ac_cv_c_flexmember = yes; then
11289 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
11292 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
11297 $as_echo_n "checking for signed types... " >&6; }
11298 if ${pgac_cv_c_signed+:} false; then :
11299 $as_echo_n "(cached) " >&6
11301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11307 signed char c; signed short s; signed int i;
11312 if ac_fn_c_try_compile "$LINENO"; then :
11313 pgac_cv_c_signed=yes
11315 pgac_cv_c_signed=no
11317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
11320 $as_echo "$pgac_cv_c_signed" >&6; }
11321 if test x"$pgac_cv_c_signed" = xno ; then
11323 $as_echo "#define signed /**/" >>confdefs.h
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
11327 $as_echo_n "checking for __func__... " >&6; }
11328 if ${pgac_cv_funcname_func_support+:} false; then :
11329 $as_echo_n "(cached) " >&6
11331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11337 printf("%s\n", __func__);
11342 if ac_fn_c_try_compile "$LINENO"; then :
11343 pgac_cv_funcname_func_support=yes
11345 pgac_cv_funcname_func_support=no
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
11350 $as_echo "$pgac_cv_funcname_func_support" >&6; }
11351 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11353 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
11357 $as_echo_n "checking for __FUNCTION__... " >&6; }
11358 if ${pgac_cv_funcname_function_support+:} false; then :
11359 $as_echo_n "(cached) " >&6
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11367 printf("%s\n", __FUNCTION__);
11372 if ac_fn_c_try_compile "$LINENO"; then :
11373 pgac_cv_funcname_function_support=yes
11375 pgac_cv_funcname_function_support=no
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
11380 $as_echo "$pgac_cv_funcname_function_support" >&6; }
11381 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11383 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
11388 $as_echo_n "checking for _Static_assert... " >&6; }
11389 if ${pgac_cv__static_assert+:} false; then :
11390 $as_echo_n "(cached) " >&6
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11398 ({ _Static_assert(1, "foo"); })
11403 if ac_fn_c_try_link "$LINENO"; then :
11404 pgac_cv__static_assert=yes
11406 pgac_cv__static_assert=no
11408 rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
11412 $as_echo "$pgac_cv__static_assert" >&6; }
11413 if test x"$pgac_cv__static_assert" = xyes ; then
11415 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
11419 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
11420 if ${pgac_cv__types_compatible+:} false; then :
11421 $as_echo_n "(cached) " >&6
11423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h. */
11429 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
11434 if ac_fn_c_try_compile "$LINENO"; then :
11435 pgac_cv__types_compatible=yes
11437 pgac_cv__types_compatible=no
11439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
11442 $as_echo "$pgac_cv__types_compatible" >&6; }
11443 if test x"$pgac_cv__types_compatible" = xyes ; then
11445 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
11449 $as_echo_n "checking for __builtin_bswap32... " >&6; }
11450 if ${pgac_cv__builtin_bswap32+:} false; then :
11451 $as_echo_n "(cached) " >&6
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11455 static unsigned long int x = __builtin_bswap32(0xaabbccdd);
11458 if ac_fn_c_try_compile "$LINENO"; then :
11459 pgac_cv__builtin_bswap32=yes
11461 pgac_cv__builtin_bswap32=no
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
11466 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
11467 if test x"$pgac_cv__builtin_bswap32" = xyes ; then
11469 $as_echo "#define HAVE__BUILTIN_BSWAP32 1" >>confdefs.h
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
11473 $as_echo_n "checking for __builtin_bswap64... " >&6; }
11474 if ${pgac_cv__builtin_bswap64+:} false; then :
11475 $as_echo_n "(cached) " >&6
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11479 static unsigned long int x = __builtin_bswap64(0xaabbccddeeff0011);
11482 if ac_fn_c_try_compile "$LINENO"; then :
11483 pgac_cv__builtin_bswap64=yes
11485 pgac_cv__builtin_bswap64=no
11487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
11490 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
11491 if test x"$pgac_cv__builtin_bswap64" = xyes ; then
11493 $as_echo "#define HAVE__BUILTIN_BSWAP64 1" >>confdefs.h
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
11497 $as_echo_n "checking for __builtin_constant_p... " >&6; }
11498 if ${pgac_cv__builtin_constant_p+:} false; then :
11499 $as_echo_n "(cached) " >&6
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11503 static int x; static int y[__builtin_constant_p(x) ? x : 1];
11506 if ac_fn_c_try_compile "$LINENO"; then :
11507 pgac_cv__builtin_constant_p=yes
11509 pgac_cv__builtin_constant_p=no
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
11514 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
11515 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
11517 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
11521 $as_echo_n "checking for __builtin_unreachable... " >&6; }
11522 if ${pgac_cv__builtin_unreachable+:} false; then :
11523 $as_echo_n "(cached) " >&6
11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h. */
11531 __builtin_unreachable();
11536 if ac_fn_c_try_link "$LINENO"; then :
11537 pgac_cv__builtin_unreachable=yes
11539 pgac_cv__builtin_unreachable=no
11541 rm -f core conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
11545 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
11546 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
11548 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __VA_ARGS__" >&5
11552 $as_echo_n "checking for __VA_ARGS__... " >&6; }
11553 if ${pgac_cv__va_args+:} false; then :
11554 $as_echo_n "(cached) " >&6
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11562 #define debug(...) fprintf(stderr, __VA_ARGS__)
11563 debug("%s", "blarg");
11569 if ac_fn_c_try_compile "$LINENO"; then :
11570 pgac_cv__va_args=yes
11572 pgac_cv__va_args=no
11574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__va_args" >&5
11577 $as_echo "$pgac_cv__va_args" >&6; }
11578 if test x"$pgac_cv__va_args" = xyes ; then
11580 $as_echo "#define HAVE__VA_ARGS 1" >>confdefs.h
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11584 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11585 if ${ac_cv_struct_tm+:} false; then :
11586 $as_echo_n "(cached) " >&6
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11590 #include <sys/types.h>
11597 int *p = &tm.tm_sec;
11603 if ac_fn_c_try_compile "$LINENO"; then :
11604 ac_cv_struct_tm=time.h
11606 ac_cv_struct_tm=sys/time.h
11608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11611 $as_echo "$ac_cv_struct_tm" >&6; }
11612 if test $ac_cv_struct_tm = sys/time.h; then
11614 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11618 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
11619 #include <$ac_cv_struct_tm>
11622 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
11624 cat >>confdefs.h <<_ACEOF
11625 #define HAVE_STRUCT_TM_TM_ZONE 1
11631 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11633 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
11637 $as_echo_n "checking for tzname... " >&6; }
11638 if ${ac_cv_var_tzname+:} false; then :
11639 $as_echo_n "(cached) " >&6
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11643 #include <stdlib.h>
11645 #ifndef tzname /* For SGI. */
11646 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11657 if ac_fn_c_try_link "$LINENO"; then :
11658 ac_cv_var_tzname=yes
11660 ac_cv_var_tzname=no
11662 rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
11666 $as_echo "$ac_cv_var_tzname" >&6; }
11667 if test $ac_cv_var_tzname = yes; then
11669 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
11673 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
11674 #include <sys/ipc.h>
11675 #include <sys/sem.h>
11677 if test "x$ac_cv_type_union_semun" = xyes; then :
11679 cat >>confdefs.h <<_ACEOF
11680 #define HAVE_UNION_SEMUN 1
11686 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
11687 #ifdef HAVE_SYS_UN_H
11688 #include <sys/un.h>
11692 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
11694 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
11698 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
11699 #ifdef HAVE_SYS_SOCKET_H
11700 #include <sys/socket.h>
11704 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
11706 cat >>confdefs.h <<_ACEOF
11707 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11713 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
11714 #ifdef HAVE_SYS_SOCKET_H
11715 #include <sys/socket.h>
11719 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
11721 cat >>confdefs.h <<_ACEOF
11722 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11727 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
11728 #ifdef HAVE_SYS_SOCKET_H
11729 #include <sys/socket.h>
11733 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
11735 cat >>confdefs.h <<_ACEOF
11736 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
11741 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
11742 #ifdef HAVE_SYS_SOCKET_H
11743 #include <sys/socket.h>
11747 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
11749 cat >>confdefs.h <<_ACEOF
11750 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
11755 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
11756 #ifdef HAVE_SYS_SOCKET_H
11757 #include <sys/socket.h>
11761 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
11763 cat >>confdefs.h <<_ACEOF
11764 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
11769 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11770 #ifdef HAVE_SYS_SOCKET_H
11771 #include <sys/socket.h>
11775 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11777 cat >>confdefs.h <<_ACEOF
11778 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
11784 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
11785 #include <sys/socket.h>
11789 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
11791 cat >>confdefs.h <<_ACEOF
11792 #define HAVE_STRUCT_ADDRINFO 1
11799 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11800 if test "x$ac_cv_type_intptr_t" = xyes; then :
11802 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
11805 for ac_type in 'int' 'long int' 'long long int'; do
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11808 $ac_includes_default
11812 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
11813 test_array [0] = 0;
11814 return test_array [0];
11820 if ac_fn_c_try_compile "$LINENO"; then :
11822 cat >>confdefs.h <<_ACEOF
11823 #define intptr_t $ac_type
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 test -z "$ac_type" && break
11835 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
11836 if test "x$ac_cv_type_uintptr_t" = xyes; then :
11838 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
11841 for ac_type in 'unsigned int' 'unsigned long int' \
11842 'unsigned long long int'; do
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11845 $ac_includes_default
11849 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
11850 test_array [0] = 0;
11851 return test_array [0];
11857 if ac_fn_c_try_compile "$LINENO"; then :
11859 cat >>confdefs.h <<_ACEOF
11860 #define uintptr_t $ac_type
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 test -z "$ac_type" && break
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
11873 $as_echo_n "checking for unsigned long long int... " >&6; }
11874 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
11875 $as_echo_n "(cached) " >&6
11877 ac_cv_type_unsigned_long_long_int=yes
11878 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11882 /* For now, do not test the preprocessor; as of 2007 there are too many
11883 implementations with broken preprocessors. Perhaps this can
11884 be revisited in 2012. In the meantime, code should not expect
11885 #if to work with literals wider than 32 bits. */
11886 /* Test literals. */
11887 long long int ll = 9223372036854775807ll;
11888 long long int nll = -9223372036854775807LL;
11889 unsigned long long int ull = 18446744073709551615ULL;
11890 /* Test constant expressions. */
11891 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11893 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11899 /* Test availability of runtime routines for shift and division. */
11900 long long int llmax = 9223372036854775807ll;
11901 unsigned long long int ullmax = 18446744073709551615ull;
11902 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11903 | (llmax / ll) | (llmax % ll)
11904 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11905 | (ullmax / ull) | (ullmax % ull));
11911 if ac_fn_c_try_link "$LINENO"; then :
11914 ac_cv_type_unsigned_long_long_int=no
11916 rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
11921 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11922 if test $ac_cv_type_unsigned_long_long_int = yes; then
11924 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11931 $as_echo_n "checking for long long int... " >&6; }
11932 if ${ac_cv_type_long_long_int+:} false; then :
11933 $as_echo_n "(cached) " >&6
11935 ac_cv_type_long_long_int=yes
11936 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
11937 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
11938 if test $ac_cv_type_long_long_int = yes; then
11939 if test "$cross_compiling" = yes; then :
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11944 #include <limits.h>
11947 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11948 # define LLONG_MAX (HALF - 1 + HALF)
11953 long long int n = 1;
11957 long long int m = n << i;
11960 if (LLONG_MAX / 2 < m)
11968 if ac_fn_c_try_run "$LINENO"; then :
11971 ac_cv_type_long_long_int=no
11973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11974 conftest.$ac_objext conftest.beam conftest.$ac_ext
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11981 $as_echo "$ac_cv_type_long_long_int" >&6; }
11982 if test $ac_cv_type_long_long_int = yes; then
11984 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
11990 $as_echo_n "checking for locale_t... " >&6; }
11991 if ${pgac_cv_type_locale_t+:} false; then :
11992 $as_echo_n "(cached) " >&6
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996 #include <locale.h>
12006 if ac_fn_c_try_compile "$LINENO"; then :
12007 pgac_cv_type_locale_t=yes
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 #include <xlocale.h>
12021 if ac_fn_c_try_compile "$LINENO"; then :
12022 pgac_cv_type_locale_t='yes (in xlocale.h)'
12024 pgac_cv_type_locale_t=no
12026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
12031 $as_echo "$pgac_cv_type_locale_t" >&6; }
12032 if test "$pgac_cv_type_locale_t" != no; then
12034 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
12037 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
12039 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
12043 ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
12044 #include <sys/param.h>
12045 #ifdef HAVE_SYS_UCRED_H
12046 #include <sys/ucred.h>
12049 if test "x$ac_cv_type_struct_cmsgcred" = xyes; then :
12051 cat >>confdefs.h <<_ACEOF
12052 #define HAVE_STRUCT_CMSGCRED 1
12059 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
12060 #include <getopt.h>
12063 if test "x$ac_cv_type_struct_option" = xyes; then :
12065 cat >>confdefs.h <<_ACEOF
12066 #define HAVE_STRUCT_OPTION 1
12073 if test "$with_zlib" = yes; then
12074 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12075 # did not). While we could work around the lack of z_streamp, it
12076 # seems unwise to encourage people to use such old zlib versions...
12077 ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
12079 if test "x$ac_cv_type_z_streamp" = xyes; then :
12082 as_fn_error $? "zlib version is too old
12083 Use --without-zlib to disable zlib support." "$LINENO" 5
12088 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
12092 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12099 int a = 0; int *p = &a; int r;
12100 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
12105 if ac_fn_c_try_compile "$LINENO"; then :
12106 pgac_cv_have_ppc_mutex_hint=yes
12108 pgac_cv_have_ppc_mutex_hint=no
12110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
12112 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
12113 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
12115 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
12121 # Check largefile support. You might think this is a system service not a
12122 # compiler characteristic, but you'd be wrong. We must check this before
12123 # probing existence of related functions such as fseeko, since the largefile
12124 # defines can affect what is generated for that.
12125 if test "$PORTNAME" != "win32"; then
12126 # Check whether --enable-largefile was given.
12127 if test "${enable_largefile+set}" = set; then :
12128 enableval=$enable_largefile;
12131 if test "$enable_largefile" != no; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12134 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12135 if ${ac_cv_sys_largefile_CC+:} false; then :
12136 $as_echo_n "(cached) " >&6
12138 ac_cv_sys_largefile_CC=no
12139 if test "$GCC" != yes; then
12142 # IRIX 6.2 and later do not support large files by default,
12143 # so use the C compiler's -n32 option if that helps.
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12146 #include <sys/types.h>
12147 /* Check that off_t can represent 2**63 - 1 correctly.
12148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12149 since some C++ compilers masquerading as C compilers
12150 incorrectly reject 9223372036854775807. */
12151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12153 && LARGE_OFF_T % 2147483647 == 1)
12163 if ac_fn_c_try_compile "$LINENO"; then :
12166 rm -f core conftest.err conftest.$ac_objext
12168 if ac_fn_c_try_compile "$LINENO"; then :
12169 ac_cv_sys_largefile_CC=' -n32'; break
12171 rm -f core conftest.err conftest.$ac_objext
12175 rm -f conftest.$ac_ext
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12179 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12180 if test "$ac_cv_sys_largefile_CC" != no; then
12181 CC=$CC$ac_cv_sys_largefile_CC
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12185 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12186 if ${ac_cv_sys_file_offset_bits+:} false; then :
12187 $as_echo_n "(cached) " >&6
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 #include <sys/types.h>
12193 /* Check that off_t can represent 2**63 - 1 correctly.
12194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12195 since some C++ compilers masquerading as C compilers
12196 incorrectly reject 9223372036854775807. */
12197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12199 && LARGE_OFF_T % 2147483647 == 1)
12209 if ac_fn_c_try_compile "$LINENO"; then :
12210 ac_cv_sys_file_offset_bits=no; break
12212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12215 #define _FILE_OFFSET_BITS 64
12216 #include <sys/types.h>
12217 /* Check that off_t can represent 2**63 - 1 correctly.
12218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12219 since some C++ compilers masquerading as C compilers
12220 incorrectly reject 9223372036854775807. */
12221 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12223 && LARGE_OFF_T % 2147483647 == 1)
12233 if ac_fn_c_try_compile "$LINENO"; then :
12234 ac_cv_sys_file_offset_bits=64; break
12236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12237 ac_cv_sys_file_offset_bits=unknown
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12242 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12243 case $ac_cv_sys_file_offset_bits in #(
12246 cat >>confdefs.h <<_ACEOF
12247 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12252 if test $ac_cv_sys_file_offset_bits = unknown; then
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12254 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12255 if ${ac_cv_sys_large_files+:} false; then :
12256 $as_echo_n "(cached) " >&6
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12261 #include <sys/types.h>
12262 /* Check that off_t can represent 2**63 - 1 correctly.
12263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12264 since some C++ compilers masquerading as C compilers
12265 incorrectly reject 9223372036854775807. */
12266 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12268 && LARGE_OFF_T % 2147483647 == 1)
12278 if ac_fn_c_try_compile "$LINENO"; then :
12279 ac_cv_sys_large_files=no; break
12281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12284 #define _LARGE_FILES 1
12285 #include <sys/types.h>
12286 /* Check that off_t can represent 2**63 - 1 correctly.
12287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12288 since some C++ compilers masquerading as C compilers
12289 incorrectly reject 9223372036854775807. */
12290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12292 && LARGE_OFF_T % 2147483647 == 1)
12302 if ac_fn_c_try_compile "$LINENO"; then :
12303 ac_cv_sys_large_files=1; break
12305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12306 ac_cv_sys_large_files=unknown
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12311 $as_echo "$ac_cv_sys_large_files" >&6; }
12312 case $ac_cv_sys_large_files in #(
12315 cat >>confdefs.h <<_ACEOF
12316 #define _LARGE_FILES $ac_cv_sys_large_files
12329 # Check for largefile support (must be after AC_SYS_LARGEFILE)
12330 # The cast to long int works around a bug in the HP C Compiler
12331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12333 # This bug is HP SR number 8606223364.
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12335 $as_echo_n "checking size of off_t... " >&6; }
12336 if ${ac_cv_sizeof_off_t+:} false; then :
12337 $as_echo_n "(cached) " >&6
12339 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12342 if test "$ac_cv_type_off_t" = yes; then
12343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12345 as_fn_error 77 "cannot compute sizeof (off_t)
12346 See \`config.log' for more details" "$LINENO" 5; }
12348 ac_cv_sizeof_off_t=0
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12354 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12358 cat >>confdefs.h <<_ACEOF
12359 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12364 # If we don't have largefile support, can't handle segsize >= 2GB.
12365 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
12366 as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
12371 ## Functions, global variables
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
12375 $as_echo_n "checking for int timezone... " >&6; }
12376 if ${pgac_cv_var_int_timezone+:} false; then :
12377 $as_echo_n "(cached) " >&6
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12387 res = timezone / 60;
12389 res = _timezone / 60;
12395 if ac_fn_c_try_link "$LINENO"; then :
12396 pgac_cv_var_int_timezone=yes
12398 pgac_cv_var_int_timezone=no
12400 rm -f core conftest.err conftest.$ac_objext \
12401 conftest$ac_exeext conftest.$ac_ext
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
12404 $as_echo "$pgac_cv_var_int_timezone" >&6; }
12405 if test x"$pgac_cv_var_int_timezone" = xyes ; then
12407 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
12411 $as_echo_n "checking types of arguments for accept()... " >&6; }
12412 if ${ac_cv_func_accept_return+:} false; then :
12413 $as_echo_n "(cached) " >&6
12415 if ${ac_cv_func_accept_arg1+:} false; then :
12416 $as_echo_n "(cached) " >&6
12418 if ${ac_cv_func_accept_arg2+:} false; then :
12419 $as_echo_n "(cached) " >&6
12421 if ${ac_cv_func_accept_arg3+:} false; then :
12422 $as_echo_n "(cached) " >&6
12424 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
12425 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
12426 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
12427 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12430 #ifdef HAVE_SYS_TYPES_H
12431 #include <sys/types.h>
12433 #ifdef HAVE_SYS_SOCKET_H
12434 #include <sys/socket.h>
12436 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
12438 if ac_fn_c_try_compile "$LINENO"; then :
12439 ac_not_found=no; break 4
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448 if test "$ac_not_found" = yes; then
12449 as_fn_error $? "could not determine argument types" "$LINENO" 5
12451 if test "$ac_cv_func_accept_arg3" = "void"; then
12452 ac_cv_func_accept_arg3=int
12462 { $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
12463 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
12465 cat >>confdefs.h <<_ACEOF
12466 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
12470 cat >>confdefs.h <<_ACEOF
12471 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
12475 cat >>confdefs.h <<_ACEOF
12476 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
12480 cat >>confdefs.h <<_ACEOF
12481 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
12486 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
12487 if ${pgac_cv_func_gettimeofday_1arg+:} false; then :
12488 $as_echo_n "(cached) " >&6
12490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491 /* end confdefs.h. */
12492 #include <sys/time.h>
12496 struct timeval *tp;
12497 struct timezone *tzp;
12498 gettimeofday(tp,tzp);
12503 if ac_fn_c_try_compile "$LINENO"; then :
12504 pgac_cv_func_gettimeofday_1arg=no
12506 pgac_cv_func_gettimeofday_1arg=yes
12508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
12511 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
12512 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
12514 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
12519 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
12520 if ${pgac_cv_func_wcstombs_l+:} false; then :
12521 $as_echo_n "(cached) " >&6
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12525 #include <stdlib.h>
12526 #include <locale.h>
12537 if ac_fn_c_try_compile "$LINENO"; then :
12538 pgac_cv_func_wcstombs_l='yes'
12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h. */
12542 #include <stdlib.h>
12543 #include <locale.h>
12544 #include <xlocale.h>
12555 if ac_fn_c_try_compile "$LINENO"; then :
12556 pgac_cv_func_wcstombs_l='yes (in xlocale.h)'
12558 pgac_cv_func_wcstombs_l='no'
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
12565 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
12566 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
12568 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
12572 # Some versions of libedit contain strlcpy(), setproctitle(), and other
12573 # symbols that that library has no business exposing to the world. Pending
12574 # acquisition of a clue by those developers, ignore libedit (including its
12575 # possible alias of libreadline) while checking for everything else.
12576 LIBS_including_readline="$LIBS"
12577 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
12579 for ac_func in cbrt clock_gettime dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat pthread_is_threaded_np readlink setproctitle setsid shm_open symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
12581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12584 cat >>confdefs.h <<_ACEOF
12585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12592 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
12593 if test "x$ac_cv_func_fseeko" = xyes; then :
12594 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12597 case " $LIBOBJS " in
12598 *" fseeko.$ac_objext "* ) ;;
12599 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
12607 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
12608 # Mingw uses macros to access Win32 API calls
12611 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12613 ac_cv_func_fseeko=yes;;
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12616 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12617 if ${ac_cv_sys_largefile_source+:} false; then :
12618 $as_echo_n "(cached) " >&6
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12623 #include <sys/types.h> /* for off_t */
12628 int (*fp) (FILE *, off_t, int) = fseeko;
12629 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12634 if ac_fn_c_try_link "$LINENO"; then :
12635 ac_cv_sys_largefile_source=no; break
12637 rm -f core conftest.err conftest.$ac_objext \
12638 conftest$ac_exeext conftest.$ac_ext
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12641 #define _LARGEFILE_SOURCE 1
12642 #include <sys/types.h> /* for off_t */
12647 int (*fp) (FILE *, off_t, int) = fseeko;
12648 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12653 if ac_fn_c_try_link "$LINENO"; then :
12654 ac_cv_sys_largefile_source=1; break
12656 rm -f core conftest.err conftest.$ac_objext \
12657 conftest$ac_exeext conftest.$ac_ext
12658 ac_cv_sys_largefile_source=unknown
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12663 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12664 case $ac_cv_sys_largefile_source in #(
12667 cat >>confdefs.h <<_ACEOF
12668 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12674 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12675 # in glibc 2.1.3, but that breaks too many other things.
12676 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12677 if test $ac_cv_sys_largefile_source != unknown; then
12679 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12685 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
12686 # by calling it, 2009-04-02
12687 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
12688 if test "$PORTNAME" != "solaris"; then
12689 for ac_func in posix_fadvise
12691 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
12692 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
12693 cat >>confdefs.h <<_ACEOF
12694 #define HAVE_POSIX_FADVISE 1
12700 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
12702 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
12708 cat >>confdefs.h <<_ACEOF
12709 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
12714 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
12716 if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
12722 cat >>confdefs.h <<_ACEOF
12723 #define HAVE_DECL_FDATASYNC $ac_have_decl
12726 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
12727 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
12733 cat >>confdefs.h <<_ACEOF
12734 #define HAVE_DECL_STRLCAT $ac_have_decl
12736 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
12737 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
12743 cat >>confdefs.h <<_ACEOF
12744 #define HAVE_DECL_STRLCPY $ac_have_decl
12747 # This is probably only present on macOS, but may as well check always
12748 ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
12750 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then :
12756 cat >>confdefs.h <<_ACEOF
12757 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
12762 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
12763 #include <netinet/in.h>
12765 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
12767 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
12775 $as_echo_n "checking for PS_STRINGS... " >&6; }
12776 if ${pgac_cv_var_PS_STRINGS+:} false; then :
12777 $as_echo_n "(cached) " >&6
12779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780 /* end confdefs.h. */
12781 #include <machine/vmparam.h>
12782 #include <sys/exec.h>
12787 PS_STRINGS->ps_nargvstr = 1;
12788 PS_STRINGS->ps_argvstr = "foo";
12793 if ac_fn_c_try_link "$LINENO"; then :
12794 pgac_cv_var_PS_STRINGS=yes
12796 pgac_cv_var_PS_STRINGS=no
12798 rm -f core conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
12802 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
12803 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
12805 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
12810 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
12811 # is missing. Yes, there are machines that have only one. We may
12812 # also decide to use snprintf.c if snprintf() is present but does not
12813 # have all the features we need --- see below.
12815 if test "$PORTNAME" = "win32"; then
12816 # Win32 gets snprintf.c built unconditionally.
12818 # To properly translate all NLS languages strings, we must support the
12819 # *printf() %$ format, which allows *printf() arguments to be selected
12820 # by position in the translated string.
12822 # libintl versions < 0.13 use the native *printf() functions, and Win32
12823 # *printf() doesn't understand %$, so we must use our /port versions,
12824 # which do understand %$. libintl versions >= 0.13 include their own
12825 # *printf versions on Win32. The libintl 0.13 release note text is:
12827 # C format strings with positions, as they arise when a translator
12828 # needs to reorder a sentence, are now supported on all platforms.
12829 # On those few platforms (NetBSD and Woe32) for which the native
12830 # printf()/fprintf()/... functions don't support such format
12831 # strings, replacements are provided through <libintl.h>.
12833 # We could use libintl >= 0.13's *printf() if we were sure that we had
12834 # a litint >= 0.13 at runtime, but seeing that there is no clean way
12835 # to guarantee that, it is best to just use our own, so we are sure to
12836 # get %$ support. In include/port.h we disable the *printf() macros
12837 # that might have been defined by libintl.
12839 # We do this unconditionally whether NLS is used or not so we are sure
12840 # that all Win32 libraries and binaries behave the same.
12841 pgac_need_repl_snprintf=yes
12843 pgac_need_repl_snprintf=no
12844 for ac_func in snprintf
12846 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
12847 if test "x$ac_cv_func_snprintf" = xyes; then :
12848 cat >>confdefs.h <<_ACEOF
12849 #define HAVE_SNPRINTF 1
12853 pgac_need_repl_snprintf=yes
12857 for ac_func in vsnprintf
12859 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
12860 if test "x$ac_cv_func_vsnprintf" = xyes; then :
12861 cat >>confdefs.h <<_ACEOF
12862 #define HAVE_VSNPRINTF 1
12866 pgac_need_repl_snprintf=yes
12873 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
12874 # include/c.h will provide declarations. Note this is a separate test
12875 # from whether the functions exist in the C library --- there are
12876 # systems that have the functions but don't bother to declare them :-(
12878 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12879 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12885 cat >>confdefs.h <<_ACEOF
12886 #define HAVE_DECL_SNPRINTF $ac_have_decl
12888 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12889 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12895 cat >>confdefs.h <<_ACEOF
12896 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
12902 $as_echo_n "checking for isinf... " >&6; }
12903 if ${ac_cv_func_isinf+:} false; then :
12904 $as_echo_n "(cached) " >&6
12906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12910 double glob_double;
12915 return isinf(glob_double) ? 0 : 1;
12920 if ac_fn_c_try_link "$LINENO"; then :
12921 ac_cv_func_isinf=yes
12923 ac_cv_func_isinf=no
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
12929 $as_echo "$ac_cv_func_isinf" >&6; }
12931 if test $ac_cv_func_isinf = yes ; then
12933 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
12936 case " $LIBOBJS " in
12937 *" isinf.$ac_objext "* ) ;;
12938 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
12942 # Look for a way to implement a substitute for isinf()
12943 for ac_func in fpclass fp_class fp_class_d class
12945 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12946 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12947 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12948 cat >>confdefs.h <<_ACEOF
12949 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12957 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
12958 if test "x$ac_cv_func_crypt" = xyes; then :
12959 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
12962 case " $LIBOBJS " in
12963 *" crypt.$ac_objext "* ) ;;
12964 *) LIBOBJS="$LIBOBJS crypt.$ac_objext"
12970 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
12971 if test "x$ac_cv_func_fls" = xyes; then :
12972 $as_echo "#define HAVE_FLS 1" >>confdefs.h
12975 case " $LIBOBJS " in
12976 *" fls.$ac_objext "* ) ;;
12977 *) LIBOBJS="$LIBOBJS fls.$ac_objext"
12983 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
12984 if test "x$ac_cv_func_getopt" = xyes; then :
12985 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
12988 case " $LIBOBJS " in
12989 *" getopt.$ac_objext "* ) ;;
12990 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
12996 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
12997 if test "x$ac_cv_func_getrusage" = xyes; then :
12998 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
13001 case " $LIBOBJS " in
13002 *" getrusage.$ac_objext "* ) ;;
13003 *) LIBOBJS="$LIBOBJS getrusage.$ac_objext"
13009 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
13010 if test "x$ac_cv_func_inet_aton" = xyes; then :
13011 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
13014 case " $LIBOBJS " in
13015 *" inet_aton.$ac_objext "* ) ;;
13016 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
13022 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
13023 if test "x$ac_cv_func_mkdtemp" = xyes; then :
13024 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
13027 case " $LIBOBJS " in
13028 *" mkdtemp.$ac_objext "* ) ;;
13029 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
13035 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
13036 if test "x$ac_cv_func_random" = xyes; then :
13037 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
13040 case " $LIBOBJS " in
13041 *" random.$ac_objext "* ) ;;
13042 *) LIBOBJS="$LIBOBJS random.$ac_objext"
13048 ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
13049 if test "x$ac_cv_func_rint" = xyes; then :
13050 $as_echo "#define HAVE_RINT 1" >>confdefs.h
13053 case " $LIBOBJS " in
13054 *" rint.$ac_objext "* ) ;;
13055 *) LIBOBJS="$LIBOBJS rint.$ac_objext"
13061 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13062 if test "x$ac_cv_func_srandom" = xyes; then :
13063 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
13066 case " $LIBOBJS " in
13067 *" srandom.$ac_objext "* ) ;;
13068 *) LIBOBJS="$LIBOBJS srandom.$ac_objext"
13074 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13075 if test "x$ac_cv_func_strerror" = xyes; then :
13076 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
13079 case " $LIBOBJS " in
13080 *" strerror.$ac_objext "* ) ;;
13081 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
13087 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
13088 if test "x$ac_cv_func_strlcat" = xyes; then :
13089 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
13092 case " $LIBOBJS " in
13093 *" strlcat.$ac_objext "* ) ;;
13094 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
13100 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
13101 if test "x$ac_cv_func_strlcpy" = xyes; then :
13102 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
13105 case " $LIBOBJS " in
13106 *" strlcpy.$ac_objext "* ) ;;
13107 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
13117 # Windows uses a specialised env handler
13118 # and doesn't need a replacement getpeereid because it doesn't use
13122 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
13125 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
13127 ac_cv_func_unsetenv=yes
13128 ac_cv_func_getpeereid=yes;;
13130 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
13131 if test "x$ac_cv_func_unsetenv" = xyes; then :
13132 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
13135 case " $LIBOBJS " in
13136 *" unsetenv.$ac_objext "* ) ;;
13137 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
13143 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
13144 if test "x$ac_cv_func_getpeereid" = xyes; then :
13145 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
13148 case " $LIBOBJS " in
13149 *" getpeereid.$ac_objext "* ) ;;
13150 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
13160 # System's version of getaddrinfo(), if any, may be used only if we found
13161 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
13162 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
13163 if test x"$ac_cv_type_struct_addrinfo" = xyes && \
13164 test "$PORTNAME" != "win32"; then
13165 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13166 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13167 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13170 case " $LIBOBJS " in
13171 *" getaddrinfo.$ac_objext "* ) ;;
13172 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
13180 case " $LIBOBJS " in
13181 *" getaddrinfo.$ac_objext "* ) ;;
13182 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
13188 # Similarly, use system's getopt_long() only if system provides struct option.
13189 if test x"$ac_cv_type_struct_option" = xyes ; then
13190 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
13191 if test "x$ac_cv_func_getopt_long" = xyes; then :
13192 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
13195 case " $LIBOBJS " in
13196 *" getopt_long.$ac_objext "* ) ;;
13197 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13205 case " $LIBOBJS " in
13206 *" getopt_long.$ac_objext "* ) ;;
13207 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13213 # Solaris' getopt() doesn't do what we want for long options, so always use
13214 # our version on that platform.
13215 if test "$PORTNAME" = "solaris"; then
13216 case " $LIBOBJS " in
13217 *" getopt.$ac_objext "* ) ;;
13218 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
13224 # mingw has adopted a GNU-centric interpretation of optind/optreset,
13225 # so always use our version on Windows.
13226 if test "$PORTNAME" = "win32"; then
13227 case " $LIBOBJS " in
13228 *" getopt.$ac_objext "* ) ;;
13229 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
13233 case " $LIBOBJS " in
13234 *" getopt_long.$ac_objext "* ) ;;
13235 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13241 # Win32 (really MinGW) support
13242 if test "$PORTNAME" = "win32"; then
13243 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13244 if test "x$ac_cv_func_gettimeofday" = xyes; then :
13245 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
13248 case " $LIBOBJS " in
13249 *" gettimeofday.$ac_objext "* ) ;;
13250 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
13257 case " $LIBOBJS " in
13258 *" dirmod.$ac_objext "* ) ;;
13259 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
13263 case " $LIBOBJS " in
13264 *" kill.$ac_objext "* ) ;;
13265 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
13269 case " $LIBOBJS " in
13270 *" open.$ac_objext "* ) ;;
13271 *) LIBOBJS="$LIBOBJS open.$ac_objext"
13275 case " $LIBOBJS " in
13276 *" system.$ac_objext "* ) ;;
13277 *) LIBOBJS="$LIBOBJS system.$ac_objext"
13281 case " $LIBOBJS " in
13282 *" win32env.$ac_objext "* ) ;;
13283 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
13287 case " $LIBOBJS " in
13288 *" win32error.$ac_objext "* ) ;;
13289 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
13293 case " $LIBOBJS " in
13294 *" win32security.$ac_objext "* ) ;;
13295 *) LIBOBJS="$LIBOBJS win32security.$ac_objext"
13299 case " $LIBOBJS " in
13300 *" win32setlocale.$ac_objext "* ) ;;
13301 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
13306 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
13308 ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
13309 #define WIN32_LEAN_AND_MEAN
13310 #include <windows.h>
13311 #include <string.h>
13312 #include <dbghelp.h>
13314 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
13316 cat >>confdefs.h <<_ACEOF
13317 #define HAVE_MINIDUMP_TYPE 1
13320 pgac_minidump_type=yes
13322 pgac_minidump_type=no
13326 if test x"$pgac_minidump_type" = x"yes" ; then
13327 have_win32_dbghelp=yes
13330 have_win32_dbghelp=no
13334 # Cygwin needs only a bit of that
13335 if test "$PORTNAME" = "cygwin"; then
13336 case " $LIBOBJS " in
13337 *" dirmod.$ac_objext "* ) ;;
13338 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
13344 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13345 /* NetBSD declares sys_siglist in unistd.h. */
13346 #ifdef HAVE_UNISTD_H
13347 # include <unistd.h>
13351 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13357 cat >>confdefs.h <<_ACEOF
13358 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13362 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
13363 if test "x$ac_cv_func_syslog" = xyes; then :
13364 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
13365 if test "x$ac_cv_header_syslog_h" = xyes; then :
13367 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
13376 $as_echo_n "checking for opterr... " >&6; }
13377 if ${pgac_cv_var_int_opterr+:} false; then :
13378 $as_echo_n "(cached) " >&6
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 #include <unistd.h>
13386 extern int opterr; opterr = 1;
13391 if ac_fn_c_try_link "$LINENO"; then :
13392 pgac_cv_var_int_opterr=yes
13394 pgac_cv_var_int_opterr=no
13396 rm -f core conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext conftest.$ac_ext
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
13400 $as_echo "$pgac_cv_var_int_opterr" >&6; }
13401 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
13403 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13408 $as_echo_n "checking for optreset... " >&6; }
13409 if ${pgac_cv_var_int_optreset+:} false; then :
13410 $as_echo_n "(cached) " >&6
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 #include <unistd.h>
13418 extern int optreset; optreset = 1;
13423 if ac_fn_c_try_link "$LINENO"; then :
13424 pgac_cv_var_int_optreset=yes
13426 pgac_cv_var_int_optreset=no
13428 rm -f core conftest.err conftest.$ac_objext \
13429 conftest$ac_exeext conftest.$ac_ext
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
13432 $as_echo "$pgac_cv_var_int_optreset" >&6; }
13433 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
13435 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
13439 for ac_func in strtoll strtoq
13441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13443 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13444 cat >>confdefs.h <<_ACEOF
13445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13451 for ac_func in strtoull strtouq
13453 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13454 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13455 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13456 cat >>confdefs.h <<_ACEOF
13457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13464 # Lastly, restore full LIBS list and check for readline/libedit symbols
13465 LIBS="$LIBS_including_readline"
13467 if test "$with_readline" = yes; then
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
13469 $as_echo_n "checking for rl_completion_append_character... " >&6; }
13470 if ${pgac_cv_var_rl_completion_append_character+:} false; then :
13471 $as_echo_n "(cached) " >&6
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13476 #ifdef HAVE_READLINE_READLINE_H
13477 # include <readline/readline.h>
13478 #elif defined(HAVE_READLINE_H)
13479 # include <readline.h>
13485 rl_completion_append_character = 'x';
13490 if ac_fn_c_try_link "$LINENO"; then :
13491 pgac_cv_var_rl_completion_append_character=yes
13493 pgac_cv_var_rl_completion_append_character=no
13495 rm -f core conftest.err conftest.$ac_objext \
13496 conftest$ac_exeext conftest.$ac_ext
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
13499 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
13500 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
13502 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
13505 for ac_func in rl_completion_matches rl_filename_completion_function rl_reset_screen_size
13507 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13508 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13509 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13510 cat >>confdefs.h <<_ACEOF
13511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13517 for ac_func in append_history history_truncate_file
13519 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13520 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13521 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13522 cat >>confdefs.h <<_ACEOF
13523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13532 # This test makes sure that run tests work at all. Sometimes a shared
13533 # library is found by the linker, but the runtime linker can't find it.
13534 # This check should come after all modifications of compiler or linker
13535 # variables, and before any other run tests.
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
13537 $as_echo_n "checking test program... " >&6; }
13538 if test "$cross_compiling" = yes; then :
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
13540 $as_echo "cross-compiling" >&6; }
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544 int main() { return 0; }
13546 if ac_fn_c_try_run "$LINENO"; then :
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13548 $as_echo "ok" >&6; }
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13551 $as_echo "failed" >&6; }
13553 Could not execute a simple test program. This may be a problem
13554 related to locating shared libraries. Check the file 'config.log'
13555 for the exact reason." "$LINENO" 5
13557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13558 conftest.$ac_objext conftest.beam conftest.$ac_ext
13562 # --------------------
13563 # Run tests below here
13564 # --------------------
13566 # Force use of our snprintf if system's doesn't do arg control
13567 # See comment above at snprintf test for details.
13568 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports argument control" >&5
13570 $as_echo_n "checking whether snprintf supports argument control... " >&6; }
13571 if ${pgac_cv_snprintf_arg_control+:} false; then :
13572 $as_echo_n "(cached) " >&6
13574 if test "$cross_compiling" = yes; then :
13575 pgac_cv_snprintf_arg_control=cross
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13580 #include <string.h>
13586 /* can it swap arguments? */
13587 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
13588 if (strcmp(buf, "4 3") != 0)
13593 if ac_fn_c_try_run "$LINENO"; then :
13594 pgac_cv_snprintf_arg_control=yes
13596 pgac_cv_snprintf_arg_control=no
13598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13599 conftest.$ac_objext conftest.beam conftest.$ac_ext
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_arg_control" >&5
13605 $as_echo "$pgac_cv_snprintf_arg_control" >&6; }
13607 if test $pgac_cv_snprintf_arg_control != yes ; then
13608 pgac_need_repl_snprintf=yes
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
13616 $as_echo_n "checking whether long int is 64 bits... " >&6; }
13617 if ${pgac_cv_type_long_int_64+:} false; then :
13618 $as_echo_n "(cached) " >&6
13620 if test "$cross_compiling" = yes; then :
13621 # If cross-compiling, check the size reported by the compiler and
13622 # trust that the arithmetic works.
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13629 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13630 test_array [0] = 0;
13631 return test_array [0];
13637 if ac_fn_c_try_compile "$LINENO"; then :
13638 pgac_cv_type_long_int_64=yes
13640 pgac_cv_type_long_int_64=no
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646 typedef long int ac_int64;
13649 * These are globals to discourage the compiler from folding all the
13650 * arithmetic tests down to compile-time constants.
13652 ac_int64 a = 20000001;
13653 ac_int64 b = 40000005;
13655 int does_int64_work()
13659 if (sizeof(ac_int64) != 8)
13660 return 0; /* definitely not the right size */
13662 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13672 return (! does_int64_work());
13675 if ac_fn_c_try_run "$LINENO"; then :
13676 pgac_cv_type_long_int_64=yes
13678 pgac_cv_type_long_int_64=no
13680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13681 conftest.$ac_objext conftest.beam conftest.$ac_ext
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
13686 $as_echo "$pgac_cv_type_long_int_64" >&6; }
13688 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13689 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13691 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
13696 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
13697 pg_int64_type="long int"
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
13700 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
13701 if ${pgac_cv_type_long_long_int_64+:} false; then :
13702 $as_echo_n "(cached) " >&6
13704 if test "$cross_compiling" = yes; then :
13705 # If cross-compiling, check the size reported by the compiler and
13706 # trust that the arithmetic works.
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13713 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13714 test_array [0] = 0;
13715 return test_array [0];
13721 if ac_fn_c_try_compile "$LINENO"; then :
13722 pgac_cv_type_long_long_int_64=yes
13724 pgac_cv_type_long_long_int_64=no
13726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730 typedef long long int ac_int64;
13733 * These are globals to discourage the compiler from folding all the
13734 * arithmetic tests down to compile-time constants.
13736 ac_int64 a = 20000001;
13737 ac_int64 b = 40000005;
13739 int does_int64_work()
13743 if (sizeof(ac_int64) != 8)
13744 return 0; /* definitely not the right size */
13746 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13756 return (! does_int64_work());
13759 if ac_fn_c_try_run "$LINENO"; then :
13760 pgac_cv_type_long_long_int_64=yes
13762 pgac_cv_type_long_long_int_64=no
13764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13765 conftest.$ac_objext conftest.beam conftest.$ac_ext
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
13770 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
13772 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13773 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13775 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
13779 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13780 pg_int64_type="long long int"
13782 as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5
13787 cat >>confdefs.h <<_ACEOF
13788 #define PG_INT64_TYPE $pg_int64_type
13793 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13797 #define INT64CONST(x) x##LL
13798 long long int foo = INT64CONST(0x1234567890123456);
13801 if ac_fn_c_try_compile "$LINENO"; then :
13803 $as_echo "#define HAVE_LL_CONSTANTS 1" >>confdefs.h
13806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13810 # If we found "long int" is 64 bits, assume snprintf handles it. If
13811 # we found we need to use "long long int", better check. We cope with
13812 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
13813 # work, fall back to our own snprintf emulation (which we know uses %lld).
13815 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13816 if test $pgac_need_repl_snprintf = no; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf length modifier for long long int" >&5
13818 $as_echo_n "checking snprintf length modifier for long long int... " >&6; }
13819 if ${pgac_cv_snprintf_long_long_int_modifier+:} false; then :
13820 $as_echo_n "(cached) " >&6
13822 for pgac_modifier in 'll' 'q' 'I64'; do
13823 if test "$cross_compiling" = yes; then :
13824 pgac_cv_snprintf_long_long_int_modifier=cross; break
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13829 #include <string.h>
13830 typedef long long int ac_int64;
13831 #define INT64_FORMAT "%${pgac_modifier}d"
13833 ac_int64 a = 20000001;
13834 ac_int64 b = 40000005;
13836 int does_int64_snprintf_work()
13841 if (sizeof(ac_int64) != 8)
13842 return 0; /* doesn't look like the right size */
13845 snprintf(buf, 100, INT64_FORMAT, c);
13846 if (strcmp(buf, "800000140000005") != 0)
13847 return 0; /* either multiply or snprintf is busted */
13853 return (! does_int64_snprintf_work());
13856 if ac_fn_c_try_run "$LINENO"; then :
13857 pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break
13859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13860 conftest.$ac_objext conftest.beam conftest.$ac_ext
13866 LONG_LONG_INT_MODIFIER=''
13868 case $pgac_cv_snprintf_long_long_int_modifier in
13869 cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5
13870 $as_echo "cannot test (not on host machine)" >&6; };;
13871 ?*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_modifier" >&5
13872 $as_echo "$pgac_cv_snprintf_long_long_int_modifier" >&6; }
13873 LONG_LONG_INT_MODIFIER=$pgac_cv_snprintf_long_long_int_modifier;;
13874 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13875 $as_echo "none" >&6; };;
13877 if test "$LONG_LONG_INT_MODIFIER" = ""; then
13878 # Force usage of our own snprintf, since system snprintf is broken
13879 pgac_need_repl_snprintf=yes
13880 LONG_LONG_INT_MODIFIER='ll'
13883 # Here if we previously decided we needed to use our own snprintf
13884 LONG_LONG_INT_MODIFIER='ll'
13887 # Here if we are not using 'long long int' at all
13888 LONG_LONG_INT_MODIFIER='l'
13891 INT64_MODIFIER="\"$LONG_LONG_INT_MODIFIER\""
13894 cat >>confdefs.h <<_ACEOF
13895 #define INT64_MODIFIER $INT64_MODIFIER
13899 # Also force use of our snprintf if the system's doesn't support the %z flag.
13900 if test "$pgac_need_repl_snprintf" = no; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports the %z modifier" >&5
13902 $as_echo_n "checking whether snprintf supports the %z modifier... " >&6; }
13903 if ${pgac_cv_snprintf_size_t_support+:} false; then :
13904 $as_echo_n "(cached) " >&6
13906 if test "$cross_compiling" = yes; then :
13907 pgac_cv_snprintf_size_t_support=cross
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13912 #include <string.h>
13920 * Print the largest unsigned number fitting in a size_t using both %zu
13921 * and the previously-determined format for 64-bit integers. Note that
13922 * we don't run this code unless we know snprintf handles 64-bit ints.
13924 bufz[0] = '\0'; /* in case snprintf fails to emit anything */
13925 snprintf(bufz, sizeof(bufz), "%zu", ~((size_t) 0));
13926 snprintf(buf64, sizeof(buf64), "%" INT64_MODIFIER "u",
13927 (unsigned PG_INT64_TYPE) ~((size_t) 0));
13928 if (strcmp(bufz, buf64) != 0)
13933 if ac_fn_c_try_run "$LINENO"; then :
13934 pgac_cv_snprintf_size_t_support=yes
13936 pgac_cv_snprintf_size_t_support=no
13938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13939 conftest.$ac_objext conftest.beam conftest.$ac_ext
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_size_t_support" >&5
13945 $as_echo "$pgac_cv_snprintf_size_t_support" >&6; }
13947 if test "$pgac_cv_snprintf_size_t_support" != yes; then
13948 pgac_need_repl_snprintf=yes
13952 # Now we have checked all the reasons to replace snprintf
13953 if test $pgac_need_repl_snprintf = yes; then
13955 $as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h
13957 case " $LIBOBJS " in
13958 *" snprintf.$ac_objext "* ) ;;
13959 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13965 # Check size of void *, size_t (enables tweaks for > 32bit address space)
13966 # The cast to long int works around a bug in the HP C Compiler
13967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13969 # This bug is HP SR number 8606223364.
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13971 $as_echo_n "checking size of void *... " >&6; }
13972 if ${ac_cv_sizeof_void_p+:} false; then :
13973 $as_echo_n "(cached) " >&6
13975 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13978 if test "$ac_cv_type_void_p" = yes; then
13979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13981 as_fn_error 77 "cannot compute sizeof (void *)
13982 See \`config.log' for more details" "$LINENO" 5; }
13984 ac_cv_sizeof_void_p=0
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13990 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13994 cat >>confdefs.h <<_ACEOF
13995 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13999 # The cast to long int works around a bug in the HP C Compiler
14000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14002 # This bug is HP SR number 8606223364.
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14004 $as_echo_n "checking size of size_t... " >&6; }
14005 if ${ac_cv_sizeof_size_t+:} false; then :
14006 $as_echo_n "(cached) " >&6
14008 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14011 if test "$ac_cv_type_size_t" = yes; then
14012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14014 as_fn_error 77 "cannot compute sizeof (size_t)
14015 See \`config.log' for more details" "$LINENO" 5; }
14017 ac_cv_sizeof_size_t=0
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14023 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14027 cat >>confdefs.h <<_ACEOF
14028 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14032 # The cast to long int works around a bug in the HP C Compiler
14033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14035 # This bug is HP SR number 8606223364.
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14037 $as_echo_n "checking size of long... " >&6; }
14038 if ${ac_cv_sizeof_long+:} false; then :
14039 $as_echo_n "(cached) " >&6
14041 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14044 if test "$ac_cv_type_long" = yes; then
14045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14047 as_fn_error 77 "cannot compute sizeof (long)
14048 See \`config.log' for more details" "$LINENO" 5; }
14050 ac_cv_sizeof_long=0
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14056 $as_echo "$ac_cv_sizeof_long" >&6; }
14060 cat >>confdefs.h <<_ACEOF
14061 #define SIZEOF_LONG $ac_cv_sizeof_long
14066 # Decide whether float4 is passed by value: user-selectable, enabled by default
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
14068 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
14071 # Check whether --enable-float4-byval was given.
14072 if test "${enable_float4_byval+set}" = set; then :
14073 enableval=$enable_float4_byval;
14077 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
14079 float4passbyval=true
14082 float4passbyval=false
14085 as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
14090 enable_float4_byval=yes
14092 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
14094 float4passbyval=true
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
14099 $as_echo "$enable_float4_byval" >&6; }
14101 cat >>confdefs.h <<_ACEOF
14102 #define FLOAT4PASSBYVAL $float4passbyval
14106 # Decide whether float8 is passed by value.
14107 # Note: this setting also controls int8 and related types such as timestamp.
14108 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
14109 # If not, trying to select it is an error.
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
14111 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
14112 if test $ac_cv_sizeof_void_p -ge 8 ; then
14115 # Check whether --enable-float8-byval was given.
14116 if test "${enable_float8_byval+set}" = set; then :
14117 enableval=$enable_float8_byval;
14126 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
14131 enable_float8_byval=yes
14139 # Check whether --enable-float8-byval was given.
14140 if test "${enable_float8_byval+set}" = set; then :
14141 enableval=$enable_float8_byval;
14150 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
14155 enable_float8_byval=no
14160 if test "$enable_float8_byval" = yes ; then
14161 as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
14164 if test "$enable_float8_byval" = yes ; then
14166 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
14168 float8passbyval=true
14170 float8passbyval=false
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
14173 $as_echo "$enable_float8_byval" >&6; }
14175 cat >>confdefs.h <<_ACEOF
14176 #define FLOAT8PASSBYVAL $float8passbyval
14180 # Determine memory alignment requirements for the basic C data types.
14182 # The cast to long int works around a bug in the HP C Compiler,
14183 # see AC_CHECK_SIZEOF for more information.
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
14185 $as_echo_n "checking alignment of short... " >&6; }
14186 if ${ac_cv_alignof_short+:} false; then :
14187 $as_echo_n "(cached) " >&6
14189 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
14191 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14193 typedef struct { char x; short y; } ac__type_alignof_;"; then :
14196 if test "$ac_cv_type_short" = yes; then
14197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14199 as_fn_error 77 "cannot compute alignment of short
14200 See \`config.log' for more details" "$LINENO" 5; }
14202 ac_cv_alignof_short=0
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
14208 $as_echo "$ac_cv_alignof_short" >&6; }
14212 cat >>confdefs.h <<_ACEOF
14213 #define ALIGNOF_SHORT $ac_cv_alignof_short
14217 # The cast to long int works around a bug in the HP C Compiler,
14218 # see AC_CHECK_SIZEOF for more information.
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
14220 $as_echo_n "checking alignment of int... " >&6; }
14221 if ${ac_cv_alignof_int+:} false; then :
14222 $as_echo_n "(cached) " >&6
14224 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
14226 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14228 typedef struct { char x; int y; } ac__type_alignof_;"; then :
14231 if test "$ac_cv_type_int" = yes; then
14232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14234 as_fn_error 77 "cannot compute alignment of int
14235 See \`config.log' for more details" "$LINENO" 5; }
14237 ac_cv_alignof_int=0
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
14243 $as_echo "$ac_cv_alignof_int" >&6; }
14247 cat >>confdefs.h <<_ACEOF
14248 #define ALIGNOF_INT $ac_cv_alignof_int
14252 # The cast to long int works around a bug in the HP C Compiler,
14253 # see AC_CHECK_SIZEOF for more information.
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
14255 $as_echo_n "checking alignment of long... " >&6; }
14256 if ${ac_cv_alignof_long+:} false; then :
14257 $as_echo_n "(cached) " >&6
14259 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
14261 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14263 typedef struct { char x; long y; } ac__type_alignof_;"; then :
14266 if test "$ac_cv_type_long" = yes; then
14267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14269 as_fn_error 77 "cannot compute alignment of long
14270 See \`config.log' for more details" "$LINENO" 5; }
14272 ac_cv_alignof_long=0
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
14278 $as_echo "$ac_cv_alignof_long" >&6; }
14282 cat >>confdefs.h <<_ACEOF
14283 #define ALIGNOF_LONG $ac_cv_alignof_long
14287 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14288 # The cast to long int works around a bug in the HP C Compiler,
14289 # see AC_CHECK_SIZEOF for more information.
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
14291 $as_echo_n "checking alignment of long long int... " >&6; }
14292 if ${ac_cv_alignof_long_long_int+:} false; then :
14293 $as_echo_n "(cached) " >&6
14295 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
14297 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14299 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
14302 if test "$ac_cv_type_long_long_int" = yes; then
14303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14305 as_fn_error 77 "cannot compute alignment of long long int
14306 See \`config.log' for more details" "$LINENO" 5; }
14308 ac_cv_alignof_long_long_int=0
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
14314 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
14318 cat >>confdefs.h <<_ACEOF
14319 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
14324 # The cast to long int works around a bug in the HP C Compiler,
14325 # see AC_CHECK_SIZEOF for more information.
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
14327 $as_echo_n "checking alignment of double... " >&6; }
14328 if ${ac_cv_alignof_double+:} false; then :
14329 $as_echo_n "(cached) " >&6
14331 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
14333 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14335 typedef struct { char x; double y; } ac__type_alignof_;"; then :
14338 if test "$ac_cv_type_double" = yes; then
14339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14341 as_fn_error 77 "cannot compute alignment of double
14342 See \`config.log' for more details" "$LINENO" 5; }
14344 ac_cv_alignof_double=0
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
14350 $as_echo "$ac_cv_alignof_double" >&6; }
14354 cat >>confdefs.h <<_ACEOF
14355 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
14360 # Compute maximum alignment of any basic type.
14361 # We assume long's alignment is at least as strong as char, short, or int;
14362 # but we must check long long (if it exists) and double.
14364 MAX_ALIGNOF=$ac_cv_alignof_long
14365 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
14366 MAX_ALIGNOF=$ac_cv_alignof_double
14368 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
14369 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
14372 cat >>confdefs.h <<_ACEOF
14373 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14378 # Some platforms predefine the types int8, int16, etc. Only check
14379 # a (hopefully) representative subset.
14380 ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
14382 if test "x$ac_cv_type_int8" = xyes; then :
14384 cat >>confdefs.h <<_ACEOF
14385 #define HAVE_INT8 1
14390 ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
14392 if test "x$ac_cv_type_uint8" = xyes; then :
14394 cat >>confdefs.h <<_ACEOF
14395 #define HAVE_UINT8 1
14400 ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
14402 if test "x$ac_cv_type_int64" = xyes; then :
14404 cat >>confdefs.h <<_ACEOF
14405 #define HAVE_INT64 1
14410 ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
14412 if test "x$ac_cv_type_uint64" = xyes; then :
14414 cat >>confdefs.h <<_ACEOF
14415 #define HAVE_UINT64 1
14422 # Check for extensions offering the integer scalar type __int128.
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
14424 $as_echo_n "checking for __int128... " >&6; }
14425 if ${pgac_cv__128bit_int+:} false; then :
14426 $as_echo_n "(cached) " >&6
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14432 * These are globals to discourage the compiler from folding all the
14433 * arithmetic tests down to compile-time constants. We do not have
14434 * convenient support for 64bit literals at this point...
14436 __int128 a = 48828125;
14437 __int128 b = 97656255;
14444 a = (a << 12) + 1; /* 200000000001 */
14445 b = (b << 12) + 5; /* 400000000005 */
14446 /* use the most relevant arithmetic ops */
14449 /* return different values, to prevent optimizations */
14458 if ac_fn_c_try_link "$LINENO"; then :
14459 pgac_cv__128bit_int=yes
14461 pgac_cv__128bit_int=no
14463 rm -f core conftest.err conftest.$ac_objext \
14464 conftest$ac_exeext conftest.$ac_ext
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
14467 $as_echo "$pgac_cv__128bit_int" >&6; }
14468 if test x"$pgac_cv__128bit_int" = xyes ; then
14470 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
14474 # Check for various atomic operations now that we have checked how to declare
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
14477 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
14478 if ${pgac_cv_gcc_sync_char_tas+:} false; then :
14479 $as_echo_n "(cached) " >&6
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14488 __sync_lock_test_and_set(&lock, 1);
14489 __sync_lock_release(&lock);
14494 if ac_fn_c_try_link "$LINENO"; then :
14495 pgac_cv_gcc_sync_char_tas="yes"
14497 pgac_cv_gcc_sync_char_tas="no"
14499 rm -f core conftest.err conftest.$ac_objext \
14500 conftest$ac_exeext conftest.$ac_ext
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
14503 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
14504 if test x"$pgac_cv_gcc_sync_char_tas" = x"yes"; then
14506 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
14510 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
14511 if ${pgac_cv_gcc_sync_int32_tas+:} false; then :
14512 $as_echo_n "(cached) " >&6
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14521 __sync_lock_test_and_set(&lock, 1);
14522 __sync_lock_release(&lock);
14527 if ac_fn_c_try_link "$LINENO"; then :
14528 pgac_cv_gcc_sync_int32_tas="yes"
14530 pgac_cv_gcc_sync_int32_tas="no"
14532 rm -f core conftest.err conftest.$ac_objext \
14533 conftest$ac_exeext conftest.$ac_ext
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
14536 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
14537 if test x"$pgac_cv_gcc_sync_int32_tas" = x"yes"; then
14539 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
14543 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
14544 if ${pgac_cv_gcc_sync_int32_cas+:} false; then :
14545 $as_echo_n "(cached) " >&6
14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14554 __sync_val_compare_and_swap(&val, 0, 37);
14559 if ac_fn_c_try_link "$LINENO"; then :
14560 pgac_cv_gcc_sync_int32_cas="yes"
14562 pgac_cv_gcc_sync_int32_cas="no"
14564 rm -f core conftest.err conftest.$ac_objext \
14565 conftest$ac_exeext conftest.$ac_ext
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
14568 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
14569 if test x"$pgac_cv_gcc_sync_int32_cas" = x"yes"; then
14571 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
14575 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
14576 if ${pgac_cv_gcc_sync_int64_cas+:} false; then :
14577 $as_echo_n "(cached) " >&6
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14585 PG_INT64_TYPE lock = 0;
14586 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
14591 if ac_fn_c_try_link "$LINENO"; then :
14592 pgac_cv_gcc_sync_int64_cas="yes"
14594 pgac_cv_gcc_sync_int64_cas="no"
14596 rm -f core conftest.err conftest.$ac_objext \
14597 conftest$ac_exeext conftest.$ac_ext
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
14600 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
14601 if test x"$pgac_cv_gcc_sync_int64_cas" = x"yes"; then
14603 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
14607 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
14608 if ${pgac_cv_gcc_atomic_int32_cas+:} false; then :
14609 $as_echo_n "(cached) " >&6
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14619 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
14624 if ac_fn_c_try_link "$LINENO"; then :
14625 pgac_cv_gcc_atomic_int32_cas="yes"
14627 pgac_cv_gcc_atomic_int32_cas="no"
14629 rm -f core conftest.err conftest.$ac_objext \
14630 conftest$ac_exeext conftest.$ac_ext
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
14633 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
14634 if test x"$pgac_cv_gcc_atomic_int32_cas" = x"yes"; then
14636 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
14640 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
14641 if ${pgac_cv_gcc_atomic_int64_cas+:} false; then :
14642 $as_echo_n "(cached) " >&6
14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14650 PG_INT64_TYPE val = 0;
14651 PG_INT64_TYPE expect = 0;
14652 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
14657 if ac_fn_c_try_link "$LINENO"; then :
14658 pgac_cv_gcc_atomic_int64_cas="yes"
14660 pgac_cv_gcc_atomic_int64_cas="no"
14662 rm -f core conftest.err conftest.$ac_objext \
14663 conftest$ac_exeext conftest.$ac_ext
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
14666 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
14667 if test x"$pgac_cv_gcc_atomic_int64_cas" = x"yes"; then
14669 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
14674 # Check for x86 cpuid instruction
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
14676 $as_echo_n "checking for __get_cpuid... " >&6; }
14677 if ${pgac_cv__get_cpuid+:} false; then :
14678 $as_echo_n "(cached) " >&6
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14686 unsigned int exx[4] = {0, 0, 0, 0};
14687 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
14693 if ac_fn_c_try_link "$LINENO"; then :
14694 pgac_cv__get_cpuid="yes"
14696 pgac_cv__get_cpuid="no"
14698 rm -f core conftest.err conftest.$ac_objext \
14699 conftest$ac_exeext conftest.$ac_ext
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
14702 $as_echo "$pgac_cv__get_cpuid" >&6; }
14703 if test x"$pgac_cv__get_cpuid" = x"yes"; then
14705 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
14710 $as_echo_n "checking for __cpuid... " >&6; }
14711 if ${pgac_cv__cpuid+:} false; then :
14712 $as_echo_n "(cached) " >&6
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14716 #include <intrin.h>
14720 unsigned int exx[4] = {0, 0, 0, 0};
14721 __get_cpuid(exx[0], 1);
14727 if ac_fn_c_try_link "$LINENO"; then :
14728 pgac_cv__cpuid="yes"
14730 pgac_cv__cpuid="no"
14732 rm -f core conftest.err conftest.$ac_objext \
14733 conftest$ac_exeext conftest.$ac_ext
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
14736 $as_echo "$pgac_cv__cpuid" >&6; }
14737 if test x"$pgac_cv__cpuid" = x"yes"; then
14739 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
14743 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
14745 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
14746 # with the default compiler flags. If not, check if adding the -msse4.2
14747 # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
14749 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
14750 if ${pgac_cv_sse42_crc32_intrinsics_+:} false; then :
14751 $as_echo_n "(cached) " >&6
14753 pgac_save_CFLAGS=$CFLAGS
14754 CFLAGS="$pgac_save_CFLAGS "
14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14757 #include <nmmintrin.h>
14761 unsigned int crc = 0;
14762 crc = _mm_crc32_u8(crc, 0);
14763 crc = _mm_crc32_u32(crc, 0);
14764 /* return computed value, to prevent the above being optimized away */
14770 if ac_fn_c_try_link "$LINENO"; then :
14771 pgac_cv_sse42_crc32_intrinsics_=yes
14773 pgac_cv_sse42_crc32_intrinsics_=no
14775 rm -f core conftest.err conftest.$ac_objext \
14776 conftest$ac_exeext conftest.$ac_ext
14777 CFLAGS="$pgac_save_CFLAGS"
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
14780 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
14781 if test x"$pgac_cv_sse42_crc32_intrinsics_" = x"yes"; then
14783 pgac_sse42_crc32_intrinsics=yes
14786 if test x"$pgac_sse42_crc32_intrinsics" != x"yes"; then
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
14788 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
14789 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false; then :
14790 $as_echo_n "(cached) " >&6
14792 pgac_save_CFLAGS=$CFLAGS
14793 CFLAGS="$pgac_save_CFLAGS -msse4.2"
14794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795 /* end confdefs.h. */
14796 #include <nmmintrin.h>
14800 unsigned int crc = 0;
14801 crc = _mm_crc32_u8(crc, 0);
14802 crc = _mm_crc32_u32(crc, 0);
14803 /* return computed value, to prevent the above being optimized away */
14809 if ac_fn_c_try_link "$LINENO"; then :
14810 pgac_cv_sse42_crc32_intrinsics__msse4_2=yes
14812 pgac_cv_sse42_crc32_intrinsics__msse4_2=no
14814 rm -f core conftest.err conftest.$ac_objext \
14815 conftest$ac_exeext conftest.$ac_ext
14816 CFLAGS="$pgac_save_CFLAGS"
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
14819 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
14820 if test x"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x"yes"; then
14821 CFLAGS_SSE42="-msse4.2"
14822 pgac_sse42_crc32_intrinsics=yes
14828 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
14829 # define __SSE4_2__ in that case.
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14838 #error __SSE4_2__ not defined
14845 if ac_fn_c_try_compile "$LINENO"; then :
14848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14850 # Select CRC-32C implementation.
14852 # If we are targeting a processor that has SSE 4.2 instructions, we can use the
14853 # special CRC instructions for calculating CRC-32C. If we're not targeting such
14854 # a processor, but we can nevertheless produce code that uses the SSE
14855 # intrinsics, perhaps with some extra CFLAGS, compile both implementations and
14856 # select which one to use at runtime, depending on whether SSE 4.2 is supported
14857 # by the processor we're running on.
14859 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
14860 # in the template or configure command line.
14861 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
14862 if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && test x"$SSE4_2_TARGETED" = x"1" ; then
14865 # the CPUID instruction is needed for the runtime check.
14866 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
14867 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK=1
14869 # fall back to slicing-by-8 algorithm which doesn't require any special
14871 USE_SLICING_BY_8_CRC32C=1
14876 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
14878 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
14879 if test x"$USE_SSE42_CRC32C" = x"1"; then
14881 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
14883 PG_CRC32C_OBJS="pg_crc32c_sse42.o"
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
14885 $as_echo "SSE 4.2" >&6; }
14887 if test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then
14889 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
14891 PG_CRC32C_OBJS="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_choose.o"
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
14893 $as_echo "SSE 4.2 with runtime check" >&6; }
14896 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
14898 PG_CRC32C_OBJS="pg_crc32c_sb8.o"
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
14900 $as_echo "slicing-by-8" >&6; }
14906 # Select semaphore implementation type.
14907 if test "$PORTNAME" != "win32"; then
14908 if test x"$PREFERRED_SEMAPHORES" = x"NAMED_POSIX" ; then
14909 # Need sem_open for this
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
14911 $as_echo_n "checking for library containing sem_open... " >&6; }
14912 if ${ac_cv_search_sem_open+:} false; then :
14913 $as_echo_n "(cached) " >&6
14915 ac_func_search_save_LIBS=$LIBS
14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h. */
14919 /* Override any GCC internal prototype to avoid an error.
14920 Use char because int might match the return type of a GCC
14921 builtin and then its argument prototype would still apply. */
14929 return sem_open ();
14934 for ac_lib in '' rt pthread; do
14935 if test -z "$ac_lib"; then
14936 ac_res="none required"
14939 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14941 if ac_fn_c_try_link "$LINENO"; then :
14942 ac_cv_search_sem_open=$ac_res
14944 rm -f core conftest.err conftest.$ac_objext \
14946 if ${ac_cv_search_sem_open+:} false; then :
14950 if ${ac_cv_search_sem_open+:} false; then :
14953 ac_cv_search_sem_open=no
14955 rm conftest.$ac_ext
14956 LIBS=$ac_func_search_save_LIBS
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
14959 $as_echo "$ac_cv_search_sem_open" >&6; }
14960 ac_res=$ac_cv_search_sem_open
14961 if test "$ac_res" != no; then :
14962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14963 USE_NAMED_POSIX_SEMAPHORES=1
14967 if test x"$PREFERRED_SEMAPHORES" = x"UNNAMED_POSIX" ; then
14968 # Need sem_init for this
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
14970 $as_echo_n "checking for library containing sem_init... " >&6; }
14971 if ${ac_cv_search_sem_init+:} false; then :
14972 $as_echo_n "(cached) " >&6
14974 ac_func_search_save_LIBS=$LIBS
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14978 /* Override any GCC internal prototype to avoid an error.
14979 Use char because int might match the return type of a GCC
14980 builtin and then its argument prototype would still apply. */
14988 return sem_init ();
14993 for ac_lib in '' rt pthread; do
14994 if test -z "$ac_lib"; then
14995 ac_res="none required"
14998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15000 if ac_fn_c_try_link "$LINENO"; then :
15001 ac_cv_search_sem_init=$ac_res
15003 rm -f core conftest.err conftest.$ac_objext \
15005 if ${ac_cv_search_sem_init+:} false; then :
15009 if ${ac_cv_search_sem_init+:} false; then :
15012 ac_cv_search_sem_init=no
15014 rm conftest.$ac_ext
15015 LIBS=$ac_func_search_save_LIBS
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
15018 $as_echo "$ac_cv_search_sem_init" >&6; }
15019 ac_res=$ac_cv_search_sem_init
15020 if test "$ac_res" != no; then :
15021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15022 USE_UNNAMED_POSIX_SEMAPHORES=1
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
15027 $as_echo_n "checking which semaphore API to use... " >&6; }
15028 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15030 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
15032 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15033 sematype="named POSIX"
15035 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15037 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
15039 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15040 sematype="unnamed POSIX"
15043 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
15045 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15046 sematype="System V"
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
15050 $as_echo "$sematype" >&6; }
15053 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
15055 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
15059 # Select shared-memory implementation type.
15060 if test "$PORTNAME" != "win32"; then
15062 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
15064 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15067 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
15069 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
15072 # Select random number source
15074 # You can override this logic by setting the appropriate USE_*RANDOM flag to 1
15075 # in the template or configure command line.
15077 # If not selected manually, try to select a source automatically.
15078 if test "$enable_strong_random" = "yes" && test x"$USE_OPENSSL_RANDOM" = x"" && test x"$USE_WIN32_RANDOM" = x"" && test x"$USE_DEV_URANDOM" = x"" ; then
15079 if test x"$with_openssl" = x"yes" ; then
15080 USE_OPENSSL_RANDOM=1
15081 elif test "$PORTNAME" = "win32" ; then
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
15085 $as_echo_n "checking for /dev/urandom... " >&6; }
15086 if ${ac_cv_file__dev_urandom+:} false; then :
15087 $as_echo_n "(cached) " >&6
15089 test "$cross_compiling" = yes &&
15090 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15091 if test -r "/dev/urandom"; then
15092 ac_cv_file__dev_urandom=yes
15094 ac_cv_file__dev_urandom=no
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
15098 $as_echo "$ac_cv_file__dev_urandom" >&6; }
15099 if test "x$ac_cv_file__dev_urandom" = xyes; then :
15104 if test x"$ac_cv_file__dev_urandom" = x"yes" ; then
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
15111 $as_echo_n "checking which random number source to use... " >&6; }
15112 if test "$enable_strong_random" = yes ; then
15113 if test x"$USE_OPENSSL_RANDOM" = x"1" ; then
15115 $as_echo "#define USE_OPENSSL_RANDOM 1" >>confdefs.h
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
15118 $as_echo "OpenSSL" >&6; }
15119 elif test x"$USE_WIN32_RANDOM" = x"1" ; then
15121 $as_echo "#define USE_WIN32_RANDOM 1" >>confdefs.h
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
15124 $as_echo "Windows native" >&6; }
15125 elif test x"$USE_DEV_URANDOM" = x"1" ; then
15127 $as_echo "#define USE_DEV_URANDOM 1" >>confdefs.h
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
15130 $as_echo "/dev/urandom" >&6; }
15133 no source of strong random numbers was found
15134 PostgreSQL can use OpenSSL or /dev/urandom as a source of random numbers,
15135 for authentication protocols. You can use --disable-strong-random to use a
15136 built-in pseudo random number generator, but that may be insecure." "$LINENO" 5
15139 $as_echo "#define HAVE_STRONG_RANDOM 1" >>confdefs.h
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: weak builtin PRNG" >&5
15143 $as_echo "weak builtin PRNG" >&6; }
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15145 *** Not using a strong random number source may be insecure." >&5
15146 $as_echo "$as_me: WARNING:
15147 *** Not using a strong random number source may be insecure." >&2;}
15150 # If not set in template file, set bytes to use libc memset()
15151 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
15152 MEMSET_LOOP_LIMIT=1024
15155 cat >>confdefs.h <<_ACEOF
15156 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
15161 if test "$enable_nls" = yes ; then
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
15164 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
15165 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
15166 $as_echo_n "(cached) " >&6
15168 ac_func_search_save_LIBS=$LIBS
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15172 /* Override any GCC internal prototype to avoid an error.
15173 Use char because int might match the return type of a GCC
15174 builtin and then its argument prototype would still apply. */
15178 char bind_textdomain_codeset ();
15182 return bind_textdomain_codeset ();
15187 for ac_lib in '' intl; do
15188 if test -z "$ac_lib"; then
15189 ac_res="none required"
15192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15194 if ac_fn_c_try_link "$LINENO"; then :
15195 ac_cv_search_bind_textdomain_codeset=$ac_res
15197 rm -f core conftest.err conftest.$ac_objext \
15199 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
15203 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
15206 ac_cv_search_bind_textdomain_codeset=no
15208 rm conftest.$ac_ext
15209 LIBS=$ac_func_search_save_LIBS
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
15212 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
15213 ac_res=$ac_cv_search_bind_textdomain_codeset
15214 if test "$ac_res" != no; then :
15215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15218 as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5
15221 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
15222 if test "x$ac_cv_header_libintl_h" = xyes; then :
15225 as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5
15229 for ac_prog in msgfmt
15231 # Extract the first word of "$ac_prog", so it can be a program name with args.
15232 set dummy $ac_prog; ac_word=$2
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15234 $as_echo_n "checking for $ac_word... " >&6; }
15235 if ${ac_cv_prog_MSGFMT+:} false; then :
15236 $as_echo_n "(cached) " >&6
15238 if test -n "$MSGFMT"; then
15239 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15242 for as_dir in $PATH
15245 test -z "$as_dir" && as_dir=.
15246 for ac_exec_ext in '' $ac_executable_extensions; do
15247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15248 ac_cv_prog_MSGFMT="$ac_prog"
15249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15258 MSGFMT=$ac_cv_prog_MSGFMT
15259 if test -n "$MSGFMT"; then
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15261 $as_echo "$MSGFMT" >&6; }
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15264 $as_echo "no" >&6; }
15268 test -n "$MSGFMT" && break
15271 if test -z "$MSGFMT"; then
15272 as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
15275 $as_echo_n "checking for msgfmt flags... " >&6; }
15276 if ${pgac_cv_msgfmt_flags+:} false; then :
15277 $as_echo_n "(cached) " >&6
15279 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
15280 pgac_cv_msgfmt_flags=-c
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
15284 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
15285 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
15287 for ac_prog in msgmerge
15289 # Extract the first word of "$ac_prog", so it can be a program name with args.
15290 set dummy $ac_prog; ac_word=$2
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15292 $as_echo_n "checking for $ac_word... " >&6; }
15293 if ${ac_cv_prog_MSGMERGE+:} false; then :
15294 $as_echo_n "(cached) " >&6
15296 if test -n "$MSGMERGE"; then
15297 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15300 for as_dir in $PATH
15303 test -z "$as_dir" && as_dir=.
15304 for ac_exec_ext in '' $ac_executable_extensions; do
15305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15306 ac_cv_prog_MSGMERGE="$ac_prog"
15307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15316 MSGMERGE=$ac_cv_prog_MSGMERGE
15317 if test -n "$MSGMERGE"; then
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15319 $as_echo "$MSGMERGE" >&6; }
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15322 $as_echo "no" >&6; }
15326 test -n "$MSGMERGE" && break
15329 for ac_prog in xgettext
15331 # Extract the first word of "$ac_prog", so it can be a program name with args.
15332 set dummy $ac_prog; ac_word=$2
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15334 $as_echo_n "checking for $ac_word... " >&6; }
15335 if ${ac_cv_prog_XGETTEXT+:} false; then :
15336 $as_echo_n "(cached) " >&6
15338 if test -n "$XGETTEXT"; then
15339 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15342 for as_dir in $PATH
15345 test -z "$as_dir" && as_dir=.
15346 for ac_exec_ext in '' $ac_executable_extensions; do
15347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15348 ac_cv_prog_XGETTEXT="$ac_prog"
15349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15358 XGETTEXT=$ac_cv_prog_XGETTEXT
15359 if test -n "$XGETTEXT"; then
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15361 $as_echo "$XGETTEXT" >&6; }
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15364 $as_echo "no" >&6; }
15368 test -n "$XGETTEXT" && break
15374 # Check for Tcl configuration script tclConfig.sh
15375 if test "$with_tcl" = yes; then
15376 for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
15378 # Extract the first word of "$ac_prog", so it can be a program name with args.
15379 set dummy $ac_prog; ac_word=$2
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15381 $as_echo_n "checking for $ac_word... " >&6; }
15382 if ${ac_cv_path_TCLSH+:} false; then :
15383 $as_echo_n "(cached) " >&6
15387 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15391 for as_dir in $PATH
15394 test -z "$as_dir" && as_dir=.
15395 for ac_exec_ext in '' $ac_executable_extensions; do
15396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15397 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15408 TCLSH=$ac_cv_path_TCLSH
15409 if test -n "$TCLSH"; then
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
15411 $as_echo "$TCLSH" >&6; }
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15414 $as_echo "no" >&6; }
15418 test -n "$TCLSH" && break
15421 if test x"$TCLSH" = x""; then
15422 as_fn_error $? "Tcl shell not found" "$LINENO" 5
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
15426 $as_echo_n "checking for tclConfig.sh... " >&6; }
15427 # Let user override test
15428 if test -z "$TCL_CONFIG_SH"; then
15429 pgac_test_dirs="$with_tclconfig"
15431 set X $pgac_test_dirs; shift
15432 if test $# -eq 0; then
15433 test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
15434 set X `echo 'puts $auto_path' | $TCLSH`; shift
15438 if test -r "$pgac_dir/tclConfig.sh"; then
15439 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15445 if test -z "$TCL_CONFIG_SH"; then
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15447 $as_echo "no" >&6; }
15448 as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
15451 $as_echo "$TCL_CONFIG_SH" >&6; }
15457 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
15458 eval TCL_LIBS=\"$TCL_LIBS\"
15459 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15460 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15462 if test "$TCL_SHARED_BUILD" != 1; then
15463 as_fn_error $? "cannot build PL/Tcl because Tcl is not a shared library
15464 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
15466 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
15467 ac_save_CPPFLAGS=$CPPFLAGS
15468 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
15469 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
15470 if test "x$ac_cv_header_tcl_h" = xyes; then :
15473 as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5
15477 CPPFLAGS=$ac_save_CPPFLAGS
15480 # check for <perl.h>
15481 if test "$with_perl" = yes; then
15482 ac_save_CPPFLAGS=$CPPFLAGS
15483 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
15484 ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
15486 if test "x$ac_cv_header_perl_h" = xyes; then :
15489 as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5
15493 # While we're at it, check that we can link to libperl.
15494 # On most platforms, if perl.h is there then libperl.so will be too, but at
15495 # this writing Debian packages them separately. There is no known reason to
15496 # waste cycles on separate probes for the Tcl or Python libraries, though.
15497 pgac_save_LIBS=$LIBS
15498 LIBS="$perl_embed_ldflags"
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
15500 $as_echo_n "checking for libperl... " >&6; }
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15504 #include <EXTERN.h>
15515 if ac_fn_c_try_link "$LINENO"; then :
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15517 $as_echo "yes" >&6; }
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15520 $as_echo "no" >&6; }
15521 as_fn_error $? "libperl library is required for Perl" "$LINENO" 5
15523 rm -f core conftest.err conftest.$ac_objext \
15524 conftest$ac_exeext conftest.$ac_ext
15525 LIBS=$pgac_save_LIBS
15526 CPPFLAGS=$ac_save_CPPFLAGS
15529 # check for <Python.h>
15530 if test "$with_python" = yes; then
15531 ac_save_CPPFLAGS=$CPPFLAGS
15532 CPPFLAGS="$python_includespec $CPPFLAGS"
15533 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
15534 if test "x$ac_cv_header_Python_h" = xyes; then :
15537 as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5
15541 CPPFLAGS=$ac_save_CPPFLAGS
15545 # Check for DocBook and tools
15547 for ac_prog in onsgmls nsgmls
15549 # Extract the first word of "$ac_prog", so it can be a program name with args.
15550 set dummy $ac_prog; ac_word=$2
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15552 $as_echo_n "checking for $ac_word... " >&6; }
15553 if ${ac_cv_prog_NSGMLS+:} false; then :
15554 $as_echo_n "(cached) " >&6
15556 if test -n "$NSGMLS"; then
15557 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15560 for as_dir in $PATH
15563 test -z "$as_dir" && as_dir=.
15564 for ac_exec_ext in '' $ac_executable_extensions; do
15565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15566 ac_cv_prog_NSGMLS="$ac_prog"
15567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15576 NSGMLS=$ac_cv_prog_NSGMLS
15577 if test -n "$NSGMLS"; then
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
15579 $as_echo "$NSGMLS" >&6; }
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15582 $as_echo "no" >&6; }
15586 test -n "$NSGMLS" && break
15589 for ac_prog in openjade jade
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_JADE+:} false; then :
15596 $as_echo_n "(cached) " >&6
15598 if test -n "$JADE"; then
15599 ac_cv_prog_JADE="$JADE" # 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_JADE="$ac_prog"
15609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15618 JADE=$ac_cv_prog_JADE
15619 if test -n "$JADE"; then
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
15621 $as_echo "$JADE" >&6; }
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15624 $as_echo "no" >&6; }
15628 test -n "$JADE" && break
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook V4.2" >&5
15633 $as_echo_n "checking for DocBook V4.2... " >&6; }
15634 if ${pgac_cv_check_docbook+:} false; then :
15635 $as_echo_n "(cached) " >&6
15637 cat >conftest.sgml <<EOF
15638 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
15640 <title>test</title>
15642 <title>random</title>
15644 <title>testsect</title>
15651 pgac_cv_check_docbook=no
15653 if test -n "$NSGMLS"; then
15654 $NSGMLS -s conftest.sgml 1>&5 2>&1
15655 if test $? -eq 0; then
15656 pgac_cv_check_docbook=yes
15659 rm -f conftest.sgml
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
15662 $as_echo "$pgac_cv_check_docbook" >&6; }
15664 have_docbook=$pgac_cv_check_docbook
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook stylesheets" >&5
15668 $as_echo_n "checking for DocBook stylesheets... " >&6; }
15669 if ${pgac_cv_path_stylesheets+:} false; then :
15670 $as_echo_n "(cached) " >&6
15672 if test -n "$DOCBOOKSTYLE"; then
15673 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15675 for pgac_prefix in /usr /usr/local /opt /sw; do
15676 for pgac_infix in share lib; do
15677 for pgac_postfix in \
15678 sgml/stylesheets/nwalsh-modular \
15679 sgml/stylesheets/docbook \
15680 sgml/stylesheets/dsssl/docbook \
15681 sgml/docbook-dsssl \
15682 sgml/docbook/dsssl/modular \
15683 sgml/docbook/stylesheet/dsssl/modular \
15684 sgml/docbook/dsssl-stylesheets \
15685 sgml/dsssl/docbook-dsssl-nwalsh
15687 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15688 if test -r "$pgac_candidate/html/docbook.dsl" \
15689 && test -r "$pgac_candidate/print/docbook.dsl"
15691 pgac_cv_path_stylesheets=$pgac_candidate
15700 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15702 if test -n "$DOCBOOKSTYLE"; then
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOKSTYLE" >&5
15704 $as_echo "$DOCBOOKSTYLE" >&6; }
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15707 $as_echo "no" >&6; }
15709 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
15710 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
15713 # Extract the first word of "collateindex.pl", so it can be a program name with args.
15714 set dummy collateindex.pl; ac_word=$2
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15716 $as_echo_n "checking for $ac_word... " >&6; }
15717 if ${ac_cv_path_COLLATEINDEX+:} false; then :
15718 $as_echo_n "(cached) " >&6
15720 case $COLLATEINDEX in
15722 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15726 for as_dir in $PATH
15729 test -z "$as_dir" && as_dir=.
15730 for ac_exec_ext in '' $ac_executable_extensions; do
15731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15732 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15743 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15744 if test -n "$COLLATEINDEX"; then
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COLLATEINDEX" >&5
15746 $as_echo "$COLLATEINDEX" >&6; }
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15749 $as_echo "no" >&6; }
15754 for ac_prog in dbtoepub
15756 # Extract the first word of "$ac_prog", so it can be a program name with args.
15757 set dummy $ac_prog; ac_word=$2
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15759 $as_echo_n "checking for $ac_word... " >&6; }
15760 if ${ac_cv_prog_DBTOEPUB+:} false; then :
15761 $as_echo_n "(cached) " >&6
15763 if test -n "$DBTOEPUB"; then
15764 ac_cv_prog_DBTOEPUB="$DBTOEPUB" # Let the user override the test.
15766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15767 for as_dir in $PATH
15770 test -z "$as_dir" && as_dir=.
15771 for ac_exec_ext in '' $ac_executable_extensions; do
15772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15773 ac_cv_prog_DBTOEPUB="$ac_prog"
15774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15783 DBTOEPUB=$ac_cv_prog_DBTOEPUB
15784 if test -n "$DBTOEPUB"; then
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
15786 $as_echo "$DBTOEPUB" >&6; }
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15789 $as_echo "no" >&6; }
15793 test -n "$DBTOEPUB" && break
15796 for ac_prog in xmllint
15798 # Extract the first word of "$ac_prog", so it can be a program name with args.
15799 set dummy $ac_prog; ac_word=$2
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15801 $as_echo_n "checking for $ac_word... " >&6; }
15802 if ${ac_cv_prog_XMLLINT+:} false; then :
15803 $as_echo_n "(cached) " >&6
15805 if test -n "$XMLLINT"; then
15806 ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
15808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15809 for as_dir in $PATH
15812 test -z "$as_dir" && as_dir=.
15813 for ac_exec_ext in '' $ac_executable_extensions; do
15814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15815 ac_cv_prog_XMLLINT="$ac_prog"
15816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15825 XMLLINT=$ac_cv_prog_XMLLINT
15826 if test -n "$XMLLINT"; then
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
15828 $as_echo "$XMLLINT" >&6; }
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15831 $as_echo "no" >&6; }
15835 test -n "$XMLLINT" && break
15838 for ac_prog in xsltproc
15840 # Extract the first word of "$ac_prog", so it can be a program name with args.
15841 set dummy $ac_prog; ac_word=$2
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15843 $as_echo_n "checking for $ac_word... " >&6; }
15844 if ${ac_cv_prog_XSLTPROC+:} false; then :
15845 $as_echo_n "(cached) " >&6
15847 if test -n "$XSLTPROC"; then
15848 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
15850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15851 for as_dir in $PATH
15854 test -z "$as_dir" && as_dir=.
15855 for ac_exec_ext in '' $ac_executable_extensions; do
15856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15857 ac_cv_prog_XSLTPROC="$ac_prog"
15858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15867 XSLTPROC=$ac_cv_prog_XSLTPROC
15868 if test -n "$XSLTPROC"; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
15870 $as_echo "$XSLTPROC" >&6; }
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15873 $as_echo "no" >&6; }
15877 test -n "$XSLTPROC" && break
15880 for ac_prog in osx sgml2xml sx
15882 # Extract the first word of "$ac_prog", so it can be a program name with args.
15883 set dummy $ac_prog; ac_word=$2
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15885 $as_echo_n "checking for $ac_word... " >&6; }
15886 if ${ac_cv_prog_OSX+:} false; then :
15887 $as_echo_n "(cached) " >&6
15889 if test -n "$OSX"; then
15890 ac_cv_prog_OSX="$OSX" # Let the user override the test.
15892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15893 for as_dir in $PATH
15896 test -z "$as_dir" && as_dir=.
15897 for ac_exec_ext in '' $ac_executable_extensions; do
15898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15899 ac_cv_prog_OSX="$ac_prog"
15900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15909 OSX=$ac_cv_prog_OSX
15910 if test -n "$OSX"; then
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5
15912 $as_echo "$OSX" >&6; }
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915 $as_echo "no" >&6; }
15919 test -n "$OSX" && break
15924 # Check for test tools
15926 if test "$enable_tap_tests" = yes; then
15927 for ac_prog in prove
15929 # Extract the first word of "$ac_prog", so it can be a program name with args.
15930 set dummy $ac_prog; ac_word=$2
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15932 $as_echo_n "checking for $ac_word... " >&6; }
15933 if ${ac_cv_prog_PROVE+:} false; then :
15934 $as_echo_n "(cached) " >&6
15936 if test -n "$PROVE"; then
15937 ac_cv_prog_PROVE="$PROVE" # Let the user override the test.
15939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15940 for as_dir in $PATH
15943 test -z "$as_dir" && as_dir=.
15944 for ac_exec_ext in '' $ac_executable_extensions; do
15945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15946 ac_cv_prog_PROVE="$ac_prog"
15947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15956 PROVE=$ac_cv_prog_PROVE
15957 if test -n "$PROVE"; then
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
15959 $as_echo "$PROVE" >&6; }
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15962 $as_echo "no" >&6; }
15966 test -n "$PROVE" && break
15969 if test -z "$PROVE"; then
15970 as_fn_error $? "prove not found" "$LINENO" 5
15972 if test -z "$PERL"; then
15973 as_fn_error $? "Perl not found" "$LINENO" 5
15979 # We have to run the thread test near the end so we have all our symbols
15980 # defined. Cross compiling throws a warning.
15982 if test "$enable_thread_safety" = yes; then
15983 if test "$PORTNAME" != "win32"
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
15986 $as_echo_n "checking thread safety of required library functions... " >&6; }
15990 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
15991 LIBS="$LIBS $PTHREAD_LIBS"
15992 if test "$cross_compiling" = yes; then :
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
15994 $as_echo "maybe" >&6; }
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15996 *** Skipping thread test program because of cross-compile build.
15997 *** Run the program in src/test/thread on the target machine.
15999 $as_echo "$as_me: WARNING:
16000 *** Skipping thread test program because of cross-compile build.
16001 *** Run the program in src/test/thread on the target machine.
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h. */
16006 #include "$srcdir/src/test/thread/thread_test.c"
16008 if ac_fn_c_try_run "$LINENO"; then :
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16010 $as_echo "yes" >&6; }
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16013 $as_echo "no" >&6; }
16014 as_fn_error $? "thread test program failed
16015 This platform is not thread-safe. Check the file 'config.log' or compile
16016 and run src/test/thread/thread_test for the exact reason.
16017 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
16019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16020 conftest.$ac_objext conftest.beam conftest.$ac_ext
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
16027 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
16031 # If compiler will take -Wl,--as-needed (or various platform-specific
16032 # spellings thereof) then add that to LDFLAGS. This is much easier than
16033 # trying to filter LIBS to the minimum for each executable.
16034 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
16035 # libreadline; therefore we postpone testing it until we know what library
16036 # dependencies readline has. The test code will try to link with $LIBS.
16037 if test "$with_readline" = yes; then
16038 link_test_func=readline
16040 link_test_func=exit
16043 if test "$PORTNAME" = "darwin"; then
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
16045 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
16046 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then :
16047 $as_echo_n "(cached) " >&6
16049 pgac_save_LDFLAGS=$LDFLAGS
16050 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
16051 if test "$cross_compiling" = yes; then :
16052 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
16054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055 /* end confdefs.h. */
16056 extern void $link_test_func (); void (*fptr) () = $link_test_func;
16065 if ac_fn_c_try_run "$LINENO"; then :
16066 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
16068 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
16070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16071 conftest.$ac_objext conftest.beam conftest.$ac_ext
16074 LDFLAGS="$pgac_save_LDFLAGS"
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
16077 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
16078 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
16079 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
16082 elif test "$PORTNAME" = "openbsd"; then
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
16084 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
16085 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then :
16086 $as_echo_n "(cached) " >&6
16088 pgac_save_LDFLAGS=$LDFLAGS
16089 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
16090 if test "$cross_compiling" = yes; then :
16091 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16095 extern void $link_test_func (); void (*fptr) () = $link_test_func;
16104 if ac_fn_c_try_run "$LINENO"; then :
16105 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
16107 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
16109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16110 conftest.$ac_objext conftest.beam conftest.$ac_ext
16113 LDFLAGS="$pgac_save_LDFLAGS"
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
16116 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
16117 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
16118 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
16123 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
16124 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then :
16125 $as_echo_n "(cached) " >&6
16127 pgac_save_LDFLAGS=$LDFLAGS
16128 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
16129 if test "$cross_compiling" = yes; then :
16130 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h. */
16134 extern void $link_test_func (); void (*fptr) () = $link_test_func;
16143 if ac_fn_c_try_run "$LINENO"; then :
16144 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
16146 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
16148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16149 conftest.$ac_objext conftest.beam conftest.$ac_ext
16152 LDFLAGS="$pgac_save_LDFLAGS"
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
16155 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
16156 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
16157 LDFLAGS="$LDFLAGS -Wl,--as-needed"
16162 # Create compiler version string
16163 if test x"$GCC" = x"yes" ; then
16164 cc_string=`${CC} --version | sed q`
16165 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
16166 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
16167 cc_string=`${CC} -V 2>&1 | sed q`
16173 cat >>confdefs.h <<_ACEOF
16174 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
16178 # Supply a numeric version string for use by 3rd party add-ons
16179 # awk -F is a regex on some platforms, and not on others, so make "." a tab
16180 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
16182 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
16184 cat >>confdefs.h <<_ACEOF
16185 #define PG_VERSION_NUM $PG_VERSION_NUM
16191 # Begin output steps
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
16194 $as_echo "$as_me: using compiler=$cc_string" >&6;}
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
16196 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
16198 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
16200 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
16202 # prepare build tree if outside source tree
16203 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16204 # Note 2: /bin/pwd might be better than shell's built-in at getting
16205 # a symlink-free name.
16206 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16210 if test "$no_create" != yes; then
16211 $as_echo_n "preparing build tree... " >&6
16212 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16213 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16214 || as_fn_error $? "failed" "$LINENO" 5
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16216 $as_echo "done" >&6; }
16222 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16225 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}"
16228 if test "$PORTNAME" = "win32"; then
16229 ac_config_commands="$ac_config_commands check_win32_symlinks"
16233 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16236 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
16239 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
16242 cat >confcache <<\_ACEOF
16243 # This file is a shell script that caches the results of configure
16244 # tests run on this system so they can be shared between configure
16245 # scripts and configure runs, see configure's option --config-cache.
16246 # It is not useful on other systems. If it contains results you don't
16247 # want to keep, you may remove or edit it.
16249 # config.status only pays attention to the cache file if you give it
16250 # the --recheck option to rerun configure.
16252 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16253 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16254 # following values.
16258 # The following way of writing the cache mishandles newlines in values,
16259 # but we know of no workaround that is simple, portable, and efficient.
16260 # So, we kill variables containing newlines.
16261 # Ultrix sh set writes to stderr and can't be redirected directly,
16262 # and sets the high bit in the cache file unless we assign to the vars.
16264 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16265 eval ac_val=\$$ac_var
16269 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16270 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16273 _ | IFS | as_nl) ;; #(
16274 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16275 *) { eval $ac_var=; unset $ac_var;} ;;
16281 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16282 *${as_nl}ac_space=\ *)
16283 # `set' does not quote correctly, so add quotes: double-quote
16284 # substitution turns \\\\ into \\, and sed turns \\ into \.
16287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16290 # `set' quotes correctly as required by POSIX, so do not add quotes.
16291 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16300 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16302 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16304 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16305 if test -w "$cache_file"; then
16306 if test "x$cache_file" != "x/dev/null"; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16308 $as_echo "$as_me: updating cache $cache_file" >&6;}
16309 if test ! -f "$cache_file" || test -h "$cache_file"; then
16310 cat confcache >"$cache_file"
16312 case $cache_file in #(
16314 mv -f confcache "$cache_file"$$ &&
16315 mv -f "$cache_file"$$ "$cache_file" ;; #(
16317 mv -f confcache "$cache_file" ;;
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16323 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16328 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16329 # Let make expand exec_prefix.
16330 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16332 DEFS=-DHAVE_CONFIG_H
16337 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16338 # 1. Remove the extension, and $U if already installed.
16339 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16340 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16341 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16342 # will be set to the directory where LIBOBJS objects are built.
16343 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16344 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16346 LIBOBJS=$ac_libobjs
16348 LTLIBOBJS=$ac_ltlibobjs
16353 : "${CONFIG_STATUS=./config.status}"
16355 ac_clean_files_save=$ac_clean_files
16356 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16358 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16360 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16362 # Generated by $as_me.
16363 # Run this file to recreate the current configuration.
16364 # Compiler output produced by configure, useful for debugging
16365 # configure, is in config.log if it exists.
16368 ac_cs_recheck=false
16371 SHELL=\${CONFIG_SHELL-$SHELL}
16374 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16375 ## -------------------- ##
16376 ## M4sh Initialization. ##
16377 ## -------------------- ##
16379 # Be more Bourne compatible
16380 DUALCASE=1; export DUALCASE # for MKS sh
16381 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16384 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16385 # is contrary to our usage. Disable this feature.
16386 alias -g '${1+"$@"}'='"$@"'
16387 setopt NO_GLOB_SUBST
16389 case `(set -o) 2>/dev/null` in #(
16401 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16402 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16404 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16405 # Prefer a ksh shell builtin over an external printf program on Solaris,
16406 # but without wasting forks for bash or zsh.
16407 if test -z "$BASH_VERSION$ZSH_VERSION" \
16408 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16409 as_echo='print -r --'
16410 as_echo_n='print -rn --'
16411 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16412 as_echo='printf %s\n'
16413 as_echo_n='printf %s'
16415 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16416 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16417 as_echo_n='/usr/ucb/echo -n'
16419 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16420 as_echo_n_body='eval
16424 expr "X$arg" : "X\\(.*\\)$as_nl";
16425 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16427 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16429 export as_echo_n_body
16430 as_echo_n='sh -c $as_echo_n_body as_echo'
16432 export as_echo_body
16433 as_echo='sh -c $as_echo_body as_echo'
16436 # The user is always right.
16437 if test "${PATH_SEPARATOR+set}" != set; then
16439 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16440 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16447 # We need space, tab and new line, in precisely that order. Quoting is
16448 # there to prevent editors from complaining about space-tab.
16449 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16450 # splitting by setting IFS to empty value.)
16453 # Find who we are. Look in the path if we contain no directory separator.
16456 *[\\/]* ) as_myself=$0 ;;
16457 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16458 for as_dir in $PATH
16461 test -z "$as_dir" && as_dir=.
16462 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16468 # We did not find ourselves, most probably we were run as `sh COMMAND'
16469 # in which case we are not to be found in the path.
16470 if test "x$as_myself" = x; then
16473 if test ! -f "$as_myself"; then
16474 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16478 # Unset variables that we do not need and which cause bugs (e.g. in
16479 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16480 # suppresses any "Segmentation fault" message there. '((' could
16481 # trigger a bug in pdksh 5.2.14.
16482 for as_var in BASH_ENV ENV MAIL MAILPATH
16483 do eval test x\${$as_var+set} = xset \
16484 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16497 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16500 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16501 # ----------------------------------------
16502 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16503 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16504 # script with STATUS, using 1 if that was 0.
16507 as_status=$1; test $as_status -eq 0 && as_status=1
16509 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16510 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16512 $as_echo "$as_me: error: $2" >&2
16513 as_fn_exit $as_status
16517 # as_fn_set_status STATUS
16518 # -----------------------
16519 # Set $? to STATUS, without forking.
16520 as_fn_set_status ()
16523 } # as_fn_set_status
16525 # as_fn_exit STATUS
16526 # -----------------
16527 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16531 as_fn_set_status $1
16537 # Portably unset VAR.
16540 { eval $1=; unset $1;}
16542 as_unset=as_fn_unset
16543 # as_fn_append VAR VALUE
16544 # ----------------------
16545 # Append the text in VALUE to the end of the definition contained in VAR. Take
16546 # advantage of any shell optimizations that allow amortized linear growth over
16547 # repeated appends, instead of the typical quadratic growth present in naive
16549 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16550 eval 'as_fn_append ()
16561 # as_fn_arith ARG...
16562 # ------------------
16563 # Perform arithmetic evaluation on the ARGs, and store the result in the
16564 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16565 # must be portable across $(()) and expr.
16566 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16567 eval 'as_fn_arith ()
16574 as_val=`expr "$@" || test $? -eq 1`
16579 if expr a : '\(a\)' >/dev/null 2>&1 &&
16580 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16586 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16587 as_basename=basename
16592 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16598 as_me=`$as_basename -- "$0" ||
16599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16600 X"$0" : 'X\(//\)$' \| \
16601 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16603 sed '/^.*\/\([^/][^/]*\)\/*$/{
16617 # Avoid depending upon Character Ranges.
16618 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16619 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16620 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16621 as_cr_digits='0123456789'
16622 as_cr_alnum=$as_cr_Letters$as_cr_digits
16624 ECHO_C= ECHO_N= ECHO_T=
16625 case `echo -n x` in #(((((
16627 case `echo 'xy\c'` in
16628 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16630 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16637 rm -f conf$$ conf$$.exe conf$$.file
16638 if test -d conf$$.dir; then
16639 rm -f conf$$.dir/conf$$.file
16642 mkdir conf$$.dir 2>/dev/null
16644 if (echo >conf$$.file) 2>/dev/null; then
16645 if ln -s conf$$.file conf$$ 2>/dev/null; then
16647 # ... but there are two gotchas:
16648 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16649 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16650 # In both cases, we have to default to `cp -pR'.
16651 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16653 elif ln conf$$.file conf$$ 2>/dev/null; then
16661 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16662 rmdir conf$$.dir 2>/dev/null
16667 # Create "$as_dir" as a directory, including parents if necessary.
16672 -*) as_dir=./$as_dir;;
16674 test -d "$as_dir" || eval $as_mkdir_p || {
16678 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16679 *) as_qdir=$as_dir;;
16681 as_dirs="'$as_qdir' $as_dirs"
16682 as_dir=`$as_dirname -- "$as_dir" ||
16683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16684 X"$as_dir" : 'X\(//\)[^/]' \| \
16685 X"$as_dir" : 'X\(//\)$' \| \
16686 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16687 $as_echo X"$as_dir" |
16688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16692 /^X\(\/\/\)[^/].*/{
16705 test -d "$as_dir" && break
16707 test -z "$as_dirs" || eval "mkdir $as_dirs"
16708 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16712 if mkdir -p . 2>/dev/null; then
16713 as_mkdir_p='mkdir -p "$as_dir"'
16715 test -d ./-p && rmdir ./-p
16720 # as_fn_executable_p FILE
16721 # -----------------------
16722 # Test if FILE is an executable regular file.
16723 as_fn_executable_p ()
16725 test -f "$1" && test -x "$1"
16726 } # as_fn_executable_p
16727 as_test_x='test -x'
16728 as_executable_p=as_fn_executable_p
16730 # Sed expression to map a string onto a valid CPP name.
16731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16733 # Sed expression to map a string onto a valid variable name.
16734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16738 ## ----------------------------------- ##
16739 ## Main body of $CONFIG_STATUS script. ##
16740 ## ----------------------------------- ##
16742 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16745 # Save the log message, to keep $0 and so on meaningful, and to
16746 # report actual input values of CONFIG_FILES etc. instead of their
16747 # values after options handling.
16749 This file was extended by PostgreSQL $as_me 10devel, which was
16750 generated by GNU Autoconf 2.69. Invocation command line was
16752 CONFIG_FILES = $CONFIG_FILES
16753 CONFIG_HEADERS = $CONFIG_HEADERS
16754 CONFIG_LINKS = $CONFIG_LINKS
16755 CONFIG_COMMANDS = $CONFIG_COMMANDS
16758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16763 case $ac_config_files in *"
16764 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16767 case $ac_config_headers in *"
16768 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16773 # Files that config.status was made for.
16774 config_files="$ac_config_files"
16775 config_headers="$ac_config_headers"
16776 config_links="$ac_config_links"
16777 config_commands="$ac_config_commands"
16781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16783 \`$as_me' instantiates files and other configuration actions
16784 from templates according to the current configuration. Unless the files
16785 and actions are specified as TAGs, all are instantiated by default.
16787 Usage: $0 [OPTION]... [TAG]...
16789 -h, --help print this help, then exit
16790 -V, --version print version number and configuration settings, then exit
16791 --config print configuration, then exit
16792 -q, --quiet, --silent
16793 do not print progress messages
16794 -d, --debug don't remove temporary files
16795 --recheck update $as_me by reconfiguring in the same conditions
16796 --file=FILE[:TEMPLATE]
16797 instantiate the configuration file FILE
16798 --header=FILE[:TEMPLATE]
16799 instantiate the configuration header FILE
16801 Configuration files:
16804 Configuration headers:
16807 Configuration links:
16810 Configuration commands:
16813 Report bugs to <pgsql-bugs@postgresql.org>."
16816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16817 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16819 PostgreSQL config.status 10devel
16820 configured by $0, generated by GNU Autoconf 2.69,
16821 with options \\"\$ac_cs_config\\"
16823 Copyright (C) 2012 Free Software Foundation, Inc.
16824 This config.status script is free software; the Free Software Foundation
16825 gives unlimited permission to copy, distribute and modify it."
16832 test -n "\$AWK" || AWK=awk
16835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16836 # The default lists apply if the user does not specify any file.
16842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16859 # Handling of the options.
16860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16862 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16863 $as_echo "$ac_cs_version"; exit ;;
16864 --config | --confi | --conf | --con | --co | --c )
16865 $as_echo "$ac_cs_config"; exit ;;
16866 --debug | --debu | --deb | --de | --d | -d )
16868 --file | --fil | --fi | --f )
16871 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16872 '') as_fn_error $? "missing file argument" ;;
16874 as_fn_append CONFIG_FILES " '$ac_optarg'"
16875 ac_need_defaults=false;;
16876 --header | --heade | --head | --hea )
16879 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16881 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16882 ac_need_defaults=false;;
16884 # Conflict between --help and --header
16885 as_fn_error $? "ambiguous option: \`$1'
16886 Try \`$0 --help' for more information.";;
16887 --help | --hel | -h )
16888 $as_echo "$ac_cs_usage"; exit ;;
16889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16890 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16893 # This is an error.
16894 -*) as_fn_error $? "unrecognized option: \`$1'
16895 Try \`$0 --help' for more information." ;;
16897 *) as_fn_append ac_config_targets " $1"
16898 ac_need_defaults=false ;;
16904 ac_configure_extra_args=
16906 if $ac_cs_silent; then
16908 ac_configure_extra_args="$ac_configure_extra_args --silent"
16912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16913 if \$ac_cs_recheck; then
16914 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16916 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16917 CONFIG_SHELL='$SHELL'
16918 export CONFIG_SHELL
16923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16927 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16928 ## Running $as_me. ##
16934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16939 # Handling of arguments.
16940 for ac_config_target in $ac_config_targets
16942 case $ac_config_target in
16943 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16944 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16945 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16946 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16947 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16948 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16949 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16950 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16951 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16952 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
16953 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16954 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
16955 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
16957 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16962 # If the user did not use the arguments to specify the items to instantiate,
16963 # then the envvar interface is used. Set only those that are not.
16964 # We use the long form for the default assignment because of an extremely
16965 # bizarre bug on SunOS 4.1.3.
16966 if $ac_need_defaults; then
16967 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16968 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16969 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16970 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16973 # Have a temporary directory for convenience. Make it in the build tree
16974 # simply because there is no reason against having it here, and in addition,
16975 # creating and moving files from /tmp can sometimes cause problems.
16976 # Hook for its removal unless debugging.
16977 # Note that there is a small window in which the directory will not be cleaned:
16978 # after its creation but before its name has been assigned to `$tmp'.
16982 trap 'exit_status=$?
16983 : "${ac_tmp:=$tmp}"
16984 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16986 trap 'as_fn_exit 1' 1 2 13 15
16988 # Create a (secure) tmp directory for tmp files.
16991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16995 tmp=./conf$$-$RANDOM
16996 (umask 077 && mkdir "$tmp")
16997 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17000 # Set up the scripts for CONFIG_FILES section.
17001 # No need to generate them if there are no CONFIG_FILES.
17002 # This happens for instance with `./config.status config.h'.
17003 if test -n "$CONFIG_FILES"; then
17006 ac_cr=`echo X | tr X '\015'`
17007 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17008 # But we know of no other shell where ac_cr would be empty at this
17009 # point, so we can use a bashism as a fallback.
17010 if test "x$ac_cr" = x; then
17011 eval ac_cr=\$\'\\r\'
17013 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17014 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17017 ac_cs_awk_cr=$ac_cr
17020 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17025 echo "cat >conf$$subs.awk <<_ACEOF" &&
17026 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17028 } >conf$$subs.sh ||
17029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17030 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17032 for ac_last_try in false false false false false :; do
17033 . ./conf$$subs.sh ||
17034 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17036 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17037 if test $ac_delim_n = $ac_delim_num; then
17039 elif $ac_last_try; then
17040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17045 rm -f conf$$subs.sh
17047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17048 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17052 s/^/S["/; s/!.*/"]=/
17062 s/\(.\{148\}\)..*/\1/
17064 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17069 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17076 s/\(.\{148\}\)..*/\1/
17078 s/["\\]/\\&/g; s/^/"/; s/$/"/
17082 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17087 ' <conf$$subs.awk | sed '
17092 ' >>$CONFIG_STATUS || ac_write_fail=1
17093 rm -f conf$$subs.awk
17094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17096 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17097 for (key in S) S_is_set[key] = 1
17103 nfields = split(line, field, "@")
17105 len = length(field[1])
17106 for (i = 2; i < nfields; i++) {
17108 keylen = length(key)
17109 if (S_is_set[key]) {
17111 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17112 len += length(value) + length(field[++i])
17123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17124 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17125 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17128 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17129 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17132 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17133 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17134 # trailing colons and then remove the whole line if VPATH becomes empty
17135 # (actually we leave an empty line to preserve line numbers).
17136 if test "x$srcdir" = x.; then
17137 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17156 fi # test -n "$CONFIG_FILES"
17158 # Set up the scripts for CONFIG_HEADERS section.
17159 # No need to generate them if there are no CONFIG_HEADERS.
17160 # This happens for instance with `./config.status Makefile'.
17161 if test -n "$CONFIG_HEADERS"; then
17162 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17166 # Transform confdefs.h into an awk script `defines.awk', embedded as
17167 # here-document in config.status, that substitutes the proper values into
17168 # config.h.in to produce config.h.
17170 # Create a delimiter string that does not exist in confdefs.h, to ease
17171 # handling of long lines.
17173 for ac_last_try in false false :; do
17174 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17175 if test -z "$ac_tt"; then
17177 elif $ac_last_try; then
17178 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17180 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17184 # For the awk script, D is an array of macro values keyed by name,
17185 # likewise P contains macro parameters if any. Preserve backslash
17186 # newline sequences.
17188 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17190 s/.\{148\}/&'"$ac_delim"'/g
17193 s/^[ ]*#[ ]*define[ ][ ]*/ /
17200 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17202 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17206 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17207 D["\1"]=" \3\\\\\\n"\\/p
17209 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17214 s/.\{148\}/&'"$ac_delim"'/g
17219 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17222 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17224 ' <confdefs.h | sed '
17225 s/'"$ac_delim"'/"\\\
17226 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17229 for (key in D) D_is_set[key] = 1
17232 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17234 split(line, arg, " ")
17235 if (arg[1] == "#") {
17239 defundef = substr(arg[1], 2)
17242 split(mac1, mac2, "(") #)
17244 prefix = substr(line, 1, index(line, defundef) - 1)
17245 if (D_is_set[macro]) {
17246 # Preserve the white space surrounding the "#".
17247 print prefix "define", macro P[macro] D[macro]
17250 # Replace #undef with comments. This is necessary, for example,
17251 # in the case of _POSIX_SOURCE, which is predefined and required
17252 # on some systems where configure will not decide to define it.
17253 if (defundef == "undef") {
17254 print "/*", prefix defundef, macro, "*/"
17262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17263 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17264 fi # test -n "$CONFIG_HEADERS"
17267 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17272 :[FHLC]) ac_mode=$ac_tag; continue;;
17274 case $ac_mode$ac_tag in
17276 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17277 :[FH]-) ac_tag=-:-;;
17278 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17295 -) ac_f="$ac_tmp/stdin";;
17296 *) # Look for the file first in the build tree, then in the source tree
17297 # (if the path is not absolute). The absolute path cannot be DOS-style,
17298 # because $ac_f cannot contain `:'.
17302 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17304 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17306 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17307 as_fn_append ac_file_inputs " '$ac_f'"
17310 # Let's still pretend it is `configure' which instantiates (i.e., don't
17311 # use $as_me), people would be surprised to read:
17312 # /* config.h. Generated by config.status. */
17313 configure_input='Generated from '`
17314 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17316 if test x"$ac_file" != x-; then
17317 configure_input="$ac_file. $configure_input"
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17319 $as_echo "$as_me: creating $ac_file" >&6;}
17321 # Neutralize special characters interpreted by sed in replacement strings.
17322 case $configure_input in #(
17323 *\&* | *\|* | *\\* )
17324 ac_sed_conf_input=`$as_echo "$configure_input" |
17325 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17326 *) ac_sed_conf_input=$configure_input;;
17330 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17336 ac_dir=`$as_dirname -- "$ac_file" ||
17337 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17338 X"$ac_file" : 'X\(//\)[^/]' \| \
17339 X"$ac_file" : 'X\(//\)$' \| \
17340 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17341 $as_echo X"$ac_file" |
17342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17346 /^X\(\/\/\)[^/].*/{
17359 as_dir="$ac_dir"; as_fn_mkdir_p
17363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17365 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17366 # A ".." for each directory in $ac_dir_suffix.
17367 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17368 case $ac_top_builddir_sub in
17369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17373 ac_abs_top_builddir=$ac_pwd
17374 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17375 # for backward compatibility:
17376 ac_top_builddir=$ac_top_build_prefix
17379 .) # We are building in place.
17381 ac_top_srcdir=$ac_top_builddir_sub
17382 ac_abs_top_srcdir=$ac_pwd ;;
17383 [\\/]* | ?:[\\/]* ) # Absolute name.
17384 ac_srcdir=$srcdir$ac_dir_suffix;
17385 ac_top_srcdir=$srcdir
17386 ac_abs_top_srcdir=$srcdir ;;
17387 *) # Relative name.
17388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17389 ac_top_srcdir=$ac_top_build_prefix$srcdir
17390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17405 ac_MKDIR_P=$MKDIR_P
17407 [\\/$]* | ?:[\\/]* ) ;;
17408 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17413 # If the template does not know about datarootdir, expand it.
17414 # FIXME: This hack should be removed a few years after 2.60.
17415 ac_datarootdir_hack=; ac_datarootdir_seen=
17426 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17427 *datarootdir*) ac_datarootdir_seen=yes;;
17428 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17430 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17433 ac_datarootdir_hack='
17434 s&@datadir@&$datadir&g
17435 s&@docdir@&$docdir&g
17436 s&@infodir@&$infodir&g
17437 s&@localedir@&$localedir&g
17438 s&@mandir@&$mandir&g
17439 s&\\\${datarootdir}&$datarootdir&g' ;;
17443 # Neutralize VPATH when `$srcdir' = `.'.
17444 # Shell code in configure.ac might set extrasub.
17445 # FIXME: do we really want to maintain this feature?
17446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17447 ac_sed_extra="$ac_vpsub
17450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17453 s|@configure_input@|$ac_sed_conf_input|;t t
17454 s&@top_builddir@&$ac_top_builddir_sub&;t t
17455 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17456 s&@srcdir@&$ac_srcdir&;t t
17457 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17458 s&@top_srcdir@&$ac_top_srcdir&;t t
17459 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17460 s&@builddir@&$ac_builddir&;t t
17461 s&@abs_builddir@&$ac_abs_builddir&;t t
17462 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17463 s&@INSTALL@&$ac_INSTALL&;t t
17464 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17465 $ac_datarootdir_hack
17467 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17468 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17470 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17471 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17473 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17475 which seems to be undefined. Please make sure it is defined" >&5
17476 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17477 which seems to be undefined. Please make sure it is defined" >&2;}
17479 rm -f "$ac_tmp/stdin"
17481 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17482 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17490 if test x"$ac_file" != x-; then
17492 $as_echo "/* $configure_input */" \
17493 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17494 } >"$ac_tmp/config.h" \
17495 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17496 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17498 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17501 mv "$ac_tmp/config.h" "$ac_file" \
17502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17505 $as_echo "/* $configure_input */" \
17506 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17507 || as_fn_error $? "could not create -" "$LINENO" 5
17515 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17518 # Prefer the file from the source tree if names are identical.
17519 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17520 ac_source=$srcdir/$ac_source
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17524 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17526 if test ! -r "$ac_source"; then
17527 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17531 # Try a relative symlink, then a hard link, then a copy.
17533 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17534 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17536 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17537 ln "$ac_source" "$ac_file" 2>/dev/null ||
17538 cp -p "$ac_source" "$ac_file" ||
17539 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17542 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17543 $as_echo "$as_me: executing $ac_file commands" >&6;}
17548 case $ac_file$ac_mode in
17549 "check_win32_symlinks":C)
17550 # Links sometimes fail undetected on Mingw -
17551 # so here we detect it and warn the user
17552 for FILE in $CONFIG_LINKS
17554 # test -e works for symlinks in the MinGW console
17555 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
17556 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
17559 "src/include/pg_config.h":H)
17560 # Update timestamp for pg_config.h (see Makefile.global)
17561 echo >src/include/stamp-h
17563 "src/include/pg_config_ext.h":H)
17564 # Update timestamp for pg_config_ext.h (see Makefile.global)
17565 echo >src/include/stamp-ext-h
17567 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
17575 ac_clean_files=$ac_clean_files_save
17577 test $ac_write_fail = 0 ||
17578 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17581 # configure is writing to config.log, and then calls config.status.
17582 # config.status does its own redirection, appending to config.log.
17583 # Unfortunately, on DOS this fails, as config.log is still kept open
17584 # by configure, so config.status won't be able to write to it; its
17585 # output is simply discarded. So we exec the FD to /dev/null,
17586 # effectively closing config.log, so it can be properly (re)opened and
17587 # appended to by config.status. When coming back to configure, we
17588 # need to make the FD available again.
17589 if test "$no_create" != yes; then
17591 ac_config_status_args=
17592 test "$silent" = yes &&
17593 ac_config_status_args="$ac_config_status_args --quiet"
17595 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17597 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17598 # would make configure fail if this is the last instruction.
17599 $ac_cs_success || as_fn_exit 1
17601 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17603 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}