2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 9.5devel.
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-2014, 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='9.5devel'
586 PACKAGE_STRING='PostgreSQL 9.5devel'
587 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
590 ac_unique_file="src/backend/access/common/heaptuple.c"
591 ac_default_prefix=/usr/local/pgsql
592 # Factoring default headers for most tests.
593 ac_includes_default="\
595 #ifdef HAVE_SYS_TYPES_H
596 # include <sys/types.h>
598 #ifdef HAVE_SYS_STAT_H
599 # include <sys/stat.h>
605 # ifdef HAVE_STDLIB_H
610 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #ifdef HAVE_STRINGS_H
616 # include <strings.h>
618 #ifdef HAVE_INTTYPES_H
619 # include <inttypes.h>
628 ac_subst_vars='LTLIBOBJS
662 python_additional_libs
780 program_transform_name
793 enable_option_checking
799 enable_integer_datetimes
828 with_libedit_preferred
840 ac_precious_vars='build_alias
854 # Initialize some variables set by options.
856 ac_init_version=false
857 ac_unrecognized_opts=
859 # The variables have the same names as the options, with
860 # dashes changed to underlines.
868 program_transform_name=s,x,x,
876 # Installation directory options.
877 # These are left unexpanded so users can "make install exec_prefix=/foo"
878 # and all the variables that are supposed to be based on exec_prefix
879 # by default will actually change.
880 # Use braces instead of parens because sh, perl, etc. also accept them.
881 # (The list follows the same order as the GNU Coding Standards.)
882 bindir='${exec_prefix}/bin'
883 sbindir='${exec_prefix}/sbin'
884 libexecdir='${exec_prefix}/libexec'
885 datarootdir='${prefix}/share'
886 datadir='${datarootdir}'
887 sysconfdir='${prefix}/etc'
888 sharedstatedir='${prefix}/com'
889 localstatedir='${prefix}/var'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893 infodir='${datarootdir}/info'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 # Accept the important Cygnus configure options, so we can diagnose typos.
921 case $ac_dashdash$ac_option in
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
943 cache_file=config.cache ;;
945 -datadir | --datadir | --datadi | --datad)
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
971 eval enable_$ac_useropt=no ;;
973 -docdir | --docdir | --docdi | --doc | --do)
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
997 eval enable_$ac_useropt=\$ac_optarg ;;
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 htmldir=$ac_optarg ;;
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1042 -libdir | --libdir | --libdi | --libd)
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1133 -psdir | --psdir | --psdi | --psd | --ps)
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 sbindir=$ac_optarg ;;
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 sharedstatedir=$ac_optarg ;;
1159 -site | --site | --sit)
1161 -site=* | --site=* | --sit=*)
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1201 eval with_$ac_useropt=\$ac_optarg ;;
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval with_$ac_useropt=no ;;
1220 # Obsolete; use --with-x.
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information"
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error $? "missing argument to $ac_option"
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 # Check all directory arguments for consistency.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1288 # Be sure to have absolute directory names.
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1301 target=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 elif test "x$build_alias" != "x$host_alias"; then
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315 test "$silent" = yes && exec 6>/dev/null
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error $? "working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error $? "pwd does not report name of working directory"
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1358 ac_srcdir_defaulted=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1392 \`configure' configures PostgreSQL 9.5devel to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking ...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 if test -n "$ac_init_help"; then
1456 case $ac_init_help in
1457 short | recursive ) echo "Configuration of PostgreSQL 9.5devel:";;
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --disable-integer-datetimes
1466 disable 64-bit integer date/time support
1467 --enable-nls[=LANGUAGES]
1468 enable Native Language Support
1469 --disable-rpath do not embed shared library search path in
1471 --disable-spinlocks do not use spinlocks
1472 --enable-debug build with debugging symbols (-g)
1473 --enable-profiling build with profiling enabled
1474 --enable-coverage build with coverage testing instrumentation
1475 --enable-dtrace build with DTrace support
1476 --enable-depend turn on automatic dependency tracking
1477 --enable-cassert enable assertion checks (for debugging)
1478 --disable-thread-safety disable thread-safety in client libraries
1479 --disable-largefile omit support for large files
1480 --disable-float4-byval disable float4 passed by value
1481 --disable-float8-byval disable float8 passed by value
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-extra-version=STRING
1487 append STRING to version
1488 --with-template=NAME override operating system template
1489 --with-includes=DIRS look for additional header files in DIRS
1490 --with-libraries=DIRS look for additional libraries in DIRS
1491 --with-libs=DIRS alternative spelling of --with-libraries
1492 --with-pgport=PORTNUM set default port number [5432]
1493 --with-blocksize=BLOCKSIZE
1494 set table block size in kB [8]
1495 --with-segsize=SEGSIZE set table segment size in GB [1]
1496 --with-wal-blocksize=BLOCKSIZE
1497 set WAL block size in kB [8]
1498 --with-wal-segsize=SEGSIZE
1499 set WAL segment size in MB [16]
1500 --with-CC=CMD set compiler (deprecated)
1501 --with-tcl build Tcl modules (PL/Tcl)
1502 --with-tclconfig=DIR tclConfig.sh is in DIR
1503 --with-perl build Perl modules (PL/Perl)
1504 --with-python build Python modules (PL/Python)
1505 --with-gssapi build with GSSAPI support
1506 --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
1508 --with-pam build with PAM support
1509 --with-ldap build with LDAP support
1510 --with-bonjour build with Bonjour support
1511 --with-openssl build with OpenSSL support
1512 --with-selinux build with SELinux support
1513 --without-readline do not use GNU Readline nor BSD Libedit for editing
1514 --with-libedit-preferred
1515 prefer BSD Libedit over GNU Readline
1516 --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
1517 --with-ossp-uuid obsolete spelling of --with-uuid=ossp
1518 --with-libxml build with XML support
1519 --with-libxslt use XSLT support when building contrib/xml2
1520 --with-system-tzdata=DIR
1521 use system time zone data in DIR
1522 --without-zlib do not use Zlib
1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1525 Some influential environment variables:
1526 CC C compiler command
1527 CFLAGS C compiler flags
1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1529 nonstandard directory <lib dir>
1530 LIBS libraries to pass to the linker, e.g. -l<library>
1531 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1532 you have headers in a nonstandard directory <include dir>
1534 LDFLAGS_EX extra linker flags for linking executables only
1535 LDFLAGS_SL extra linker flags for linking shared libraries only
1537 location of DocBook stylesheets
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1542 Report bugs to <pgsql-bugs@postgresql.org>.
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1572 .) # We are building in place.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1605 PostgreSQL configure 9.5devel
1606 generated by GNU Autoconf 2.69
1608 Copyright (C) 2012 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1612 Copyright (c) 1996-2014, PostgreSQL Global Development Group
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_c_try_compile
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 test -x conftest$ac_exeext
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1703 } # ac_fn_c_try_link
1705 # ac_fn_c_try_cpp LINENO
1706 # ----------------------
1707 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_cpp conftest.$ac_ext"
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } > conftest.i && {
1727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1742 # ac_fn_c_check_func LINENO FUNC VAR
1743 # ----------------------------------
1744 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1745 ac_fn_c_check_func ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval \${$3+:} false; then :
1751 $as_echo_n "(cached) " >&6
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1757 #define $2 innocuous_$2
1759 /* System header to define __stub macros and hopefully few prototypes,
1760 which can conflict with char $2 (); below.
1761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1762 <limits.h> exists even on freestanding compilers. */
1765 # include <limits.h>
1767 # include <assert.h>
1772 /* Override any GCC internal prototype to avoid an error.
1773 Use char because int might match the return type of a GCC
1774 builtin and then its argument prototype would still apply. */
1779 /* The GNU C library defines this for functions which it implements
1780 to always fail with ENOSYS. Some functions are actually named
1781 something starting with __ and the normal name is an alias. */
1782 #if defined __stub_$2 || defined __stub___$2
1794 if ac_fn_c_try_link "$LINENO"; then :
1799 rm -f core conftest.err conftest.$ac_objext \
1800 conftest$ac_exeext conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 } # ac_fn_c_check_func
1809 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1812 # the include files in INCLUDES and setting the cache variable VAR
1814 ac_fn_c_check_header_mongrel ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 if eval \${$3+:} false; then :
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1827 # Is the header compilable?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1829 $as_echo_n "checking $2 usability... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836 ac_header_compiler=yes
1838 ac_header_compiler=no
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1842 $as_echo "$ac_header_compiler" >&6; }
1844 # Is the header present?
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1846 $as_echo_n "checking $2 presence... " >&6; }
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1851 if ac_fn_c_try_cpp "$LINENO"; then :
1852 ac_header_preproc=yes
1854 ac_header_preproc=no
1856 rm -f conftest.err conftest.i conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1858 $as_echo "$ac_header_preproc" >&6; }
1860 # So? What about this header?
1861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1864 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1866 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1870 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1872 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1874 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1876 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879 ( $as_echo "## ---------------------------------------- ##
1880 ## Report this to pgsql-bugs@postgresql.org ##
1881 ## ---------------------------------------- ##"
1882 ) | sed "s/^/$as_me: WARNING: /" >&2
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1890 eval "$3=\$ac_header_compiler"
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 } # ac_fn_c_check_header_mongrel
1900 # ac_fn_c_try_run LINENO
1901 # ----------------------
1902 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1903 # that executables *can* be run.
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if { { ac_try="$ac_link"
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_link") 2>&5
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1918 { { case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_try") 2>&5
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; }; }; then :
1930 $as_echo "$as_me: program exited with status $ac_status" >&5
1931 $as_echo "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1934 ac_retval=$ac_status
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1942 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1943 # -------------------------------------------------------
1944 # Tests whether HEADER exists and can be compiled using the include files in
1945 # INCLUDES, setting the cache variable VAR accordingly.
1946 ac_fn_c_check_header_compile ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1959 if ac_fn_c_try_compile "$LINENO"; then :
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 } # ac_fn_c_check_header_compile
1973 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1974 # ----------------------------------------------------
1975 # Tries to find if the field MEMBER exists in type AGGR, after including
1976 # INCLUDES, setting cache variable VAR accordingly.
1977 ac_fn_c_check_member ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1981 $as_echo_n "checking for $2.$3... " >&6; }
1982 if eval \${$4+:} false; then :
1983 $as_echo_n "(cached) " >&6
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1998 if ac_fn_c_try_compile "$LINENO"; then :
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2008 if (sizeof ac_aggr.$3)
2014 if ac_fn_c_try_compile "$LINENO"; then :
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 } # ac_fn_c_check_member
2030 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2031 # -------------------------------------------
2032 # Tests whether TYPE exists after having included INCLUDES, setting cache
2033 # variable VAR accordingly.
2034 ac_fn_c_check_type ()
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2068 if ac_fn_c_try_compile "$LINENO"; then :
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_c_check_type
2084 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2085 # --------------------------------------------
2086 # Tries to find the compile-time value of EXPR in a program that includes
2087 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2089 ac_fn_c_compute_int ()
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 if test "$cross_compiling" = yes; then
2093 # Depending upon the size, compute the lo and hi bounds.
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2100 static int test_array [1 - 2 * !(($2) >= 0)];
2102 return test_array [0];
2108 if ac_fn_c_try_compile "$LINENO"; then :
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2117 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2119 return test_array [0];
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 ac_hi=$ac_mid; break
2128 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2129 if test $ac_lo -le $ac_mid; then
2133 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2144 static int test_array [1 - 2 * !(($2) < 0)];
2146 return test_array [0];
2152 if ac_fn_c_try_compile "$LINENO"; then :
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2161 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2163 return test_array [0];
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_lo=$ac_mid; break
2172 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2173 if test $ac_mid -le $ac_hi; then
2177 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 # Binary search between lo and hi bounds.
2188 while test "x$ac_lo" != "x$ac_hi"; do
2189 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2198 return test_array [0];
2204 if ac_fn_c_try_compile "$LINENO"; then :
2207 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2219 static long int longval () { return $2; }
2220 static unsigned long int ulongval () { return $2; }
2227 FILE *f = fopen ("conftest.val", "w");
2232 long int i = longval ();
2235 fprintf (f, "%ld", i);
2239 unsigned long int i = ulongval ();
2242 fprintf (f, "%lu", i);
2244 /* Do not output a trailing newline, as this causes \r\n confusion
2245 on some platforms. */
2246 return ferror (f) || fclose (f) != 0;
2252 if ac_fn_c_try_run "$LINENO"; then :
2253 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2258 conftest.$ac_objext conftest.beam conftest.$ac_ext
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 as_fn_set_status $ac_retval
2265 } # ac_fn_c_compute_int
2267 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2268 # ---------------------------------------------
2269 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2271 ac_fn_c_check_decl ()
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 as_decl_name=`echo $2|sed 's/ *(.*//'`
2275 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2277 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2278 if eval \${$3+:} false; then :
2279 $as_echo_n "(cached) " >&6
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2287 #ifndef $as_decl_name
2289 (void) $as_decl_use;
2291 (void) $as_decl_name;
2299 if ac_fn_c_try_compile "$LINENO"; then :
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2308 $as_echo "$ac_res" >&6; }
2309 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2311 } # ac_fn_c_check_decl
2312 cat >config.log <<_ACEOF
2313 This file contains any messages produced by compilers while
2314 running configure, to aid debugging if configure makes a mistake.
2316 It was created by PostgreSQL $as_me 9.5devel, which was
2317 generated by GNU Autoconf 2.69. Invocation command line was
2329 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2330 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2331 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2332 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2333 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2335 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2336 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2338 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2339 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2340 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2341 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2342 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2343 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2344 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir=.
2353 $as_echo "PATH: $as_dir"
2369 # Keep a trace of the command line.
2370 # Strip out --no-create and --no-recursion so they do not pile up.
2371 # Strip out --silent because we don't want to record it for future runs.
2372 # Also quote any args containing shell meta-characters.
2373 # Make two passes to allow for proper duplicate-argument suppression.
2377 ac_must_keep_next=false
2383 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2385 | -silent | --silent | --silen | --sile | --sil)
2388 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2391 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2393 as_fn_append ac_configure_args1 " '$ac_arg'"
2394 if test $ac_must_keep_next = true; then
2395 ac_must_keep_next=false # Got value, back to normal.
2398 *=* | --config-cache | -C | -disable-* | --disable-* \
2399 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2400 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2401 | -with-* | --with-* | -without-* | --without-* | --x)
2402 case "$ac_configure_args0 " in
2403 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2406 -* ) ac_must_keep_next=true ;;
2409 as_fn_append ac_configure_args " '$ac_arg'"
2414 { ac_configure_args0=; unset ac_configure_args0;}
2415 { ac_configure_args1=; unset ac_configure_args1;}
2417 # When interrupted or exit'd, cleanup temporary files, and complete
2418 # config.log. We remove comments because anyway the quotes in there
2419 # would cause problems or look ugly.
2420 # WARNING: Use '\'' to represent an apostrophe within the trap.
2421 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2422 trap 'exit_status=$?
2423 # Save into config.log some information that might help in debugging.
2427 $as_echo "## ---------------- ##
2428 ## Cache variables. ##
2429 ## ---------------- ##"
2431 # The following way of writing the cache mishandles newlines in values,
2433 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2434 eval ac_val=\$$ac_var
2438 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2439 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2442 _ | IFS | as_nl) ;; #(
2443 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2444 *) { eval $ac_var=; unset $ac_var;} ;;
2449 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2450 *${as_nl}ac_space=\ *)
2452 "s/'\''/'\''\\\\'\'''\''/g;
2453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2456 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2463 $as_echo "## ----------------- ##
2464 ## Output variables. ##
2465 ## ----------------- ##"
2467 for ac_var in $ac_subst_vars
2469 eval ac_val=\$$ac_var
2471 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473 $as_echo "$ac_var='\''$ac_val'\''"
2477 if test -n "$ac_subst_files"; then
2478 $as_echo "## ------------------- ##
2479 ## File substitutions. ##
2480 ## ------------------- ##"
2482 for ac_var in $ac_subst_files
2484 eval ac_val=\$$ac_var
2486 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488 $as_echo "$ac_var='\''$ac_val'\''"
2493 if test -s confdefs.h; then
2494 $as_echo "## ----------- ##
2501 test "$ac_signal" != 0 &&
2502 $as_echo "$as_me: caught signal $ac_signal"
2503 $as_echo "$as_me: exit $exit_status"
2505 rm -f core *.core core.conftest.* &&
2506 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2509 for ac_signal in 1 2 13 15; do
2510 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2514 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2515 rm -f -r conftest* confdefs.h
2517 $as_echo "/* confdefs.h */" > confdefs.h
2519 # Predefined preprocessor variables.
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_NAME "$PACKAGE_NAME"
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_STRING "$PACKAGE_STRING"
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_URL "$PACKAGE_URL"
2546 # Let the site file select an alternate cache file if it wants to.
2547 # Prefer an explicitly selected file to automatically selected ones.
2550 if test -n "$CONFIG_SITE"; then
2551 # We do not want a PATH search for config.site.
2552 case $CONFIG_SITE in #((
2553 -*) ac_site_file1=./$CONFIG_SITE;;
2554 */*) ac_site_file1=$CONFIG_SITE;;
2555 *) ac_site_file1=./$CONFIG_SITE;;
2557 elif test "x$prefix" != xNONE; then
2558 ac_site_file1=$prefix/share/config.site
2559 ac_site_file2=$prefix/etc/config.site
2561 ac_site_file1=$ac_default_prefix/share/config.site
2562 ac_site_file2=$ac_default_prefix/etc/config.site
2564 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2566 test "x$ac_site_file" = xNONE && continue
2567 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2569 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2570 sed 's/^/| /' "$ac_site_file" >&5
2572 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2574 as_fn_error $? "failed to load site script $ac_site_file
2575 See \`config.log' for more details" "$LINENO" 5; }
2579 if test -r "$cache_file"; then
2580 # Some versions of bash will fail to source /dev/null (special files
2581 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2582 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2584 $as_echo "$as_me: loading cache $cache_file" >&6;}
2586 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2587 *) . "./$cache_file";;
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2592 $as_echo "$as_me: creating cache $cache_file" >&6;}
2596 # Check that the precious variables saved in the cache have kept the same
2598 ac_cache_corrupted=false
2599 for ac_var in $ac_precious_vars; do
2600 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2601 eval ac_new_set=\$ac_env_${ac_var}_set
2602 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2603 eval ac_new_val=\$ac_env_${ac_var}_value
2604 case $ac_old_set,$ac_new_set in
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2607 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2608 ac_cache_corrupted=: ;;
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2611 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2612 ac_cache_corrupted=: ;;
2615 if test "x$ac_old_val" != "x$ac_new_val"; then
2616 # differences in whitespace do not lead to failure.
2617 ac_old_val_w=`echo x $ac_old_val`
2618 ac_new_val_w=`echo x $ac_new_val`
2619 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2621 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2622 ac_cache_corrupted=:
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2625 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2626 eval $ac_var=\$ac_old_val
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2629 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2631 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2634 # Pass precious variables to config.status.
2635 if test "$ac_new_set" = set; then
2637 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2638 *) ac_arg=$ac_var=$ac_new_val ;;
2640 case " $ac_configure_args " in
2641 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2642 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2646 if $ac_cache_corrupted; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2650 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2651 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2653 ## -------------------- ##
2654 ## Main body of script. ##
2655 ## -------------------- ##
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669 for ac_dir in config "$srcdir"/config; do
2670 if test -f "$ac_dir/install-sh"; then
2672 ac_install_sh="$ac_aux_dir/install-sh -c"
2674 elif test -f "$ac_dir/install.sh"; then
2676 ac_install_sh="$ac_aux_dir/install.sh -c"
2678 elif test -f "$ac_dir/shtool"; then
2680 ac_install_sh="$ac_aux_dir/shtool install -c"
2684 if test -z "$ac_aux_dir"; then
2685 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2688 # These three variables are undocumented and unsupported,
2689 # and are intended to be withdrawn in a future Autoconf release.
2690 # They can cause serious problems if a builder's source tree is in a directory
2691 # whose full name contains unusual characters.
2692 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2693 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2694 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2698 configure_args=$ac_configure_args
2701 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2704 cat >>confdefs.h <<_ACEOF
2705 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2712 # Check whether --with-extra-version was given.
2713 if test "${with_extra_version+set}" = set; then :
2714 withval=$with_extra_version;
2717 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2720 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2723 PG_VERSION="$PACKAGE_VERSION$withval"
2728 PG_VERSION="$PACKAGE_VERSION"
2733 cat >>confdefs.h <<_ACEOF
2734 #define PG_VERSION "$PG_VERSION"
2738 # Make sure we can run config.sub.
2739 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2740 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2743 $as_echo_n "checking build system type... " >&6; }
2744 if ${ac_cv_build+:} false; then :
2745 $as_echo_n "(cached) " >&6
2747 ac_build_alias=$build_alias
2748 test "x$ac_build_alias" = x &&
2749 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2750 test "x$ac_build_alias" = x &&
2751 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2752 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2753 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2757 $as_echo "$ac_cv_build" >&6; }
2758 case $ac_cv_build in
2760 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2763 ac_save_IFS=$IFS; IFS='-'
2769 # Remember, the first character of IFS is used to create $*,
2770 # except with old shells:
2773 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2777 $as_echo_n "checking host system type... " >&6; }
2778 if ${ac_cv_host+:} false; then :
2779 $as_echo_n "(cached) " >&6
2781 if test "x$host_alias" = x; then
2782 ac_cv_host=$ac_cv_build
2784 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2785 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2790 $as_echo "$ac_cv_host" >&6; }
2793 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2796 ac_save_IFS=$IFS; IFS='-'
2802 # Remember, the first character of IFS is used to create $*,
2803 # except with old shells:
2806 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2812 $as_echo_n "checking which template to use... " >&6; }
2817 # Check whether --with-template was given.
2818 if test "${with_template+set}" = set; then :
2819 withval=$with_template;
2822 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2825 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2830 list) echo; ls "$srcdir/src/template"; exit;;
2831 *) if test -f "$srcdir/src/template/$with_template" ; then
2834 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2843 # --with-template not given
2846 aix*) template=aix ;;
2847 cygwin*) template=cygwin ;;
2848 darwin*) template=darwin ;;
2849 dragonfly*) template=netbsd ;;
2850 freebsd*) template=freebsd ;;
2851 hpux*) template=hpux ;;
2852 linux*|gnu*|k*bsd*-gnu)
2854 mingw*) template=win32 ;;
2855 netbsd*) template=netbsd ;;
2856 openbsd*) template=openbsd ;;
2857 sco*) template=sco ;;
2858 solaris*) template=solaris ;;
2859 sysv5*) template=unixware ;;
2862 if test x"$template" = x"" ; then
2864 *******************************************************************
2865 PostgreSQL has apparently not been ported to your platform yet.
2866 To try a manual configuration, look into the src/template directory
2867 for a similar platform and use the '--with-template=' option.
2869 Please also contact <pgsql-bugs@postgresql.org> to see about
2870 rectifying this. Include the above 'checking host system type...'
2872 *******************************************************************
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2882 $as_echo "$template" >&6; }
2887 # Initialize default assumption that we do not need separate assembly code
2888 # for TAS (test-and-set). This can be overridden by the template file
2889 # when it's executed.
2896 ## Command line options
2900 # Add non-standard directories to the include path
2905 # Check whether --with-includes was given.
2906 if test "${with_includes+set}" = set; then :
2907 withval=$with_includes;
2910 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2913 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2926 # Add non-standard directories to the library search path
2931 # Check whether --with-libraries was given.
2932 if test "${with_libraries+set}" = set; then :
2933 withval=$with_libraries;
2936 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2939 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2942 LIBRARY_DIRS=$withval
2953 # Check whether --with-libs was given.
2954 if test "${with_libs+set}" = set; then :
2958 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2961 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2964 LIBRARY_DIRS=$withval
2974 # 64-bit integer date/time storage: enabled by default.
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with 64-bit integer date/time support" >&5
2977 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2980 # Check whether --enable-integer-datetimes was given.
2981 if test "${enable_integer_datetimes+set}" = set; then :
2982 enableval=$enable_integer_datetimes;
2986 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
2993 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
2998 enable_integer_datetimes=yes
3000 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_integer_datetimes" >&5
3006 $as_echo "$enable_integer_datetimes" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3013 $as_echo_n "checking whether NLS is wanted... " >&6; }
3016 # Check whether --enable-nls was given.
3017 if test "${enable_nls+set}" = set; then :
3018 enableval=$enable_nls;
3028 WANTED_LANGUAGES=$enableval
3038 if test "$enable_nls" = yes; then
3040 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3045 $as_echo "$enable_nls" >&6; }
3050 # Default port number (--with-pgport), default 5432
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3053 $as_echo_n "checking for default port number... " >&6; }
3057 # Check whether --with-pgport was given.
3058 if test "${with_pgport+set}" = set; then :
3059 withval=$with_pgport;
3062 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3065 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3068 default_port=$withval
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3078 $as_echo "$default_port" >&6; }
3079 # Need both of these because some places want an integer and some a string
3081 cat >>confdefs.h <<_ACEOF
3082 #define DEF_PGPORT ${default_port}
3086 cat >>confdefs.h <<_ACEOF
3087 #define DEF_PGPORT_STR "${default_port}"
3093 # '-rpath'-like feature can be disabled
3097 # Check whether --enable-rpath was given.
3098 if test "${enable_rpath+set}" = set; then :
3099 enableval=$enable_rpath;
3108 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3125 # Check whether --enable-spinlocks was given.
3126 if test "${enable_spinlocks+set}" = set; then :
3127 enableval=$enable_spinlocks;
3136 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3141 enable_spinlocks=yes
3148 # --enable-debug adds -g to compiler flags
3152 # Check whether --enable-debug was given.
3153 if test "${enable_debug+set}" = set; then :
3154 enableval=$enable_debug;
3163 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3176 # --enable-profiling enables gcc profiling
3180 # Check whether --enable-profiling was given.
3181 if test "${enable_profiling+set}" = set; then :
3182 enableval=$enable_profiling;
3191 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3203 # --enable-coverage enables generation of code coverage metrics with gcov
3207 # Check whether --enable-coverage was given.
3208 if test "${enable_coverage+set}" = set; then :
3209 enableval=$enable_coverage;
3214 # Extract the first word of "$ac_prog", so it can be a program name with args.
3215 set dummy $ac_prog; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_GCOV+:} false; then :
3219 $as_echo_n "(cached) " >&6
3221 if test -n "$GCOV"; then
3222 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_GCOV="$ac_prog"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 GCOV=$ac_cv_prog_GCOV
3242 if test -n "$GCOV"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3244 $as_echo "$GCOV" >&6; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3251 test -n "$GCOV" && break
3254 if test -z "$GCOV"; then
3255 as_fn_error $? "gcov not found" "$LINENO" 5
3259 # Extract the first word of "$ac_prog", so it can be a program name with args.
3260 set dummy $ac_prog; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_LCOV+:} false; then :
3264 $as_echo_n "(cached) " >&6
3266 if test -n "$LCOV"; then
3267 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_LCOV="$ac_prog"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 LCOV=$ac_cv_prog_LCOV
3287 if test -n "$LCOV"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3289 $as_echo "$LCOV" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3296 test -n "$LCOV" && break
3299 if test -z "$LCOV"; then
3300 as_fn_error $? "lcov not found" "$LINENO" 5
3302 for ac_prog in genhtml
3304 # Extract the first word of "$ac_prog", so it can be a program name with args.
3305 set dummy $ac_prog; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_GENHTML+:} false; then :
3309 $as_echo_n "(cached) " >&6
3311 if test -n "$GENHTML"; then
3312 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_GENHTML="$ac_prog"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 GENHTML=$ac_cv_prog_GENHTML
3332 if test -n "$GENHTML"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3334 $as_echo "$GENHTML" >&6; }
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3341 test -n "$GENHTML" && break
3344 if test -z "$GENHTML"; then
3345 as_fn_error $? "genhtml not found" "$LINENO" 5
3352 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3369 # Check whether --enable-dtrace was given.
3370 if test "${enable_dtrace+set}" = set; then :
3371 enableval=$enable_dtrace;
3374 for ac_prog in dtrace
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_DTRACE+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 if test -n "$DTRACE"; then
3384 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_DTRACE="$ac_prog"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 DTRACE=$ac_cv_prog_DTRACE
3404 if test -n "$DTRACE"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3406 $as_echo "$DTRACE" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3413 test -n "$DTRACE" && break
3416 if test -z "$DTRACE"; then
3417 as_fn_error $? "dtrace not found" "$LINENO" 5
3425 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3441 $as_echo_n "checking for block size... " >&6; }
3445 # Check whether --with-blocksize was given.
3446 if test "${with_blocksize+set}" = set; then :
3447 withval=$with_blocksize;
3450 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3453 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3465 case ${blocksize} in
3472 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3475 $as_echo "${blocksize}kB" >&6; }
3478 cat >>confdefs.h <<_ACEOF
3479 #define BLCKSZ ${BLCKSZ}
3484 # Relation segment size
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3487 $as_echo_n "checking for segment size... " >&6; }
3491 # Check whether --with-segsize was given.
3492 if test "${with_segsize+set}" = set; then :
3493 withval=$with_segsize;
3496 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3499 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3511 # this expression is set up to avoid unnecessary integer overflow
3512 # blocksize is already guaranteed to be a factor of 1024
3513 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3514 test $? -eq 0 || exit 1
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3516 $as_echo "${segsize}GB" >&6; }
3519 cat >>confdefs.h <<_ACEOF
3520 #define RELSEG_SIZE ${RELSEG_SIZE}
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3528 $as_echo_n "checking for WAL block size... " >&6; }
3532 # Check whether --with-wal-blocksize was given.
3533 if test "${with_wal_blocksize+set}" = set; then :
3534 withval=$with_wal_blocksize;
3537 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3540 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3543 wal_blocksize=$withval
3552 case ${wal_blocksize} in
3553 1) XLOG_BLCKSZ=1024;;
3554 2) XLOG_BLCKSZ=2048;;
3555 4) XLOG_BLCKSZ=4096;;
3556 8) XLOG_BLCKSZ=8192;;
3557 16) XLOG_BLCKSZ=16384;;
3558 32) XLOG_BLCKSZ=32768;;
3559 64) XLOG_BLCKSZ=65536;;
3560 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3563 $as_echo "${wal_blocksize}kB" >&6; }
3566 cat >>confdefs.h <<_ACEOF
3567 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL segment size" >&5
3575 $as_echo_n "checking for WAL segment size... " >&6; }
3579 # Check whether --with-wal-segsize was given.
3580 if test "${with_wal_segsize+set}" = set; then :
3581 withval=$with_wal_segsize;
3584 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3587 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3590 wal_segsize=$withval
3599 case ${wal_segsize} in
3607 *) as_fn_error $? "Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_segsize}MB" >&5
3610 $as_echo "${wal_segsize}MB" >&6; }
3613 cat >>confdefs.h <<_ACEOF
3614 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3622 # For historical reasons you can also use --with-CC to specify the C compiler
3623 # to use, although the standard way to do this is to set the CC environment
3628 # Check whether --with-CC was given.
3629 if test "${with_CC+set}" = set; then :
3633 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3636 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3648 aix) pgac_cc_list="gcc xlc";;
3649 *) pgac_cc_list="gcc cc";;
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 if test -n "$ac_tool_prefix"; then
3658 for ac_prog in $pgac_cc_list
3660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if ${ac_cv_prog_CC+:} false; then :
3665 $as_echo_n "(cached) " >&6
3667 if test -n "$CC"; then
3668 ac_cv_prog_CC="$CC" # Let the user override the test.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3688 if test -n "$CC"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690 $as_echo "$CC" >&6; }
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3697 test -n "$CC" && break
3700 if test -z "$CC"; then
3702 for ac_prog in $pgac_cc_list
3704 # Extract the first word of "$ac_prog", so it can be a program name with args.
3705 set dummy $ac_prog; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3709 $as_echo_n "(cached) " >&6
3711 if test -n "$ac_ct_CC"; then
3712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_ac_ct_CC="$ac_prog"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3732 if test -n "$ac_ct_CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3734 $as_echo "$ac_ct_CC" >&6; }
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3741 test -n "$ac_ct_CC" && break
3744 if test "x$ac_ct_CC" = x; then
3747 case $cross_compiling:$ac_tool_warned in
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751 ac_tool_warned=yes ;;
3758 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3760 as_fn_error $? "no acceptable C compiler found in \$PATH
3761 See \`config.log' for more details" "$LINENO" 5; }
3763 # Provide some information about the compiler.
3764 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3767 for ac_option in --version -v -V -qversion; do
3768 { { ac_try="$ac_compiler $ac_option >&5"
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774 $as_echo "$ac_try_echo"; } >&5
3775 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3777 if test -s conftest.err; then
3779 ... rest of stderr output deleted ...
3780 10q' conftest.err >conftest.er1
3781 cat conftest.er1 >&5
3783 rm -f conftest.er1 conftest.err
3784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785 test $ac_status = 0; }
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3799 ac_clean_files_save=$ac_clean_files
3800 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3801 # Try to create an executable without -o first, disregard a.out.
3802 # It will help us diagnose broken compilers, and finding out an intuition
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3805 $as_echo_n "checking whether the C compiler works... " >&6; }
3806 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3808 # The possible output files:
3809 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3812 for ac_file in $ac_files
3815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3816 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3821 if { { ac_try="$ac_link_default"
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828 (eval "$ac_link_default") 2>&5
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }; then :
3832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3833 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3834 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3835 # so that the user can short-circuit this test for compilers unknown to
3837 for ac_file in $ac_files ''
3839 test -f "$ac_file" || continue
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3844 # We found the default executable, but exeext='' is most
3848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3852 # We set ac_cv_exeext here because the later test for it is not
3853 # safe: cross compilers may not add the suffix if given an `-o'
3854 # argument, so we may need to know it at that point already.
3855 # Even if this section looks crufty: it has the advantage of
3862 test "$ac_cv_exeext" = no && ac_cv_exeext=
3867 if test -z "$ac_file"; then :
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3870 $as_echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3875 as_fn_error 77 "C compiler cannot create executables
3876 See \`config.log' for more details" "$LINENO" 5; }
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3879 $as_echo "yes" >&6; }
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3882 $as_echo_n "checking for C compiler default output file name... " >&6; }
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3884 $as_echo "$ac_file" >&6; }
3885 ac_exeext=$ac_cv_exeext
3887 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3888 ac_clean_files=$ac_clean_files_save
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3890 $as_echo_n "checking for suffix of executables... " >&6; }
3891 if { { ac_try="$ac_link"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_link") 2>&5
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; then :
3902 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3903 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3904 # work properly (i.e., refer to `conftest.exe'), while it won't with
3906 for ac_file in conftest.exe conftest conftest.*; do
3907 test -f "$ac_file" || continue
3909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3910 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3919 See \`config.log' for more details" "$LINENO" 5; }
3921 rm -f conftest conftest$ac_cv_exeext
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3923 $as_echo "$ac_cv_exeext" >&6; }
3925 rm -f conftest.$ac_ext
3926 EXEEXT=$ac_cv_exeext
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3934 FILE *f = fopen ("conftest.out", "w");
3935 return ferror (f) || fclose (f) != 0;
3941 ac_clean_files="$ac_clean_files conftest.out"
3942 # Check that the compiler produces executables we can run. If not, either
3943 # the compiler is broken, or we cross compile.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3945 $as_echo_n "checking whether we are cross compiling... " >&6; }
3946 if test "$cross_compiling" != yes; then
3947 { { ac_try="$ac_link"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_link") 2>&5
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; }
3958 if { ac_try='./conftest$ac_cv_exeext'
3959 { { case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_try") 2>&5
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }; }; then
3971 if test "$cross_compiling" = maybe; then
3974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3976 as_fn_error $? "cannot run C compiled programs.
3977 If you meant to cross compile, use \`--host'.
3978 See \`config.log' for more details" "$LINENO" 5; }
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3983 $as_echo "$cross_compiling" >&6; }
3985 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3986 ac_clean_files=$ac_clean_files_save
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3988 $as_echo_n "checking for suffix of object files... " >&6; }
3989 if ${ac_cv_objext+:} false; then :
3990 $as_echo_n "(cached) " >&6
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
4003 rm -f conftest.o conftest.obj
4004 if { { ac_try="$ac_compile"
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010 $as_echo "$ac_try_echo"; } >&5
4011 (eval "$ac_compile") 2>&5
4013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }; then :
4015 for ac_file in conftest.o conftest.obj conftest.*; do
4016 test -f "$ac_file" || continue;
4018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4019 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4024 $as_echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error $? "cannot compute suffix of object files: cannot compile
4030 See \`config.log' for more details" "$LINENO" 5; }
4032 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4035 $as_echo "$ac_cv_objext" >&6; }
4036 OBJEXT=$ac_cv_objext
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4039 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4040 if ${ac_cv_c_compiler_gnu+:} false; then :
4041 $as_echo_n "(cached) " >&6
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4057 if ac_fn_c_try_compile "$LINENO"; then :
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4067 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4068 if test $ac_compiler_gnu = yes; then
4073 ac_test_CFLAGS=${CFLAGS+set}
4074 ac_save_CFLAGS=$CFLAGS
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4076 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4077 if ${ac_cv_prog_cc_g+:} false; then :
4078 $as_echo_n "(cached) " >&6
4080 ac_save_c_werror_flag=$ac_c_werror_flag
4081 ac_c_werror_flag=yes
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4095 if ac_fn_c_try_compile "$LINENO"; then :
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4110 if ac_fn_c_try_compile "$LINENO"; then :
4113 ac_c_werror_flag=$ac_save_c_werror_flag
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4126 if ac_fn_c_try_compile "$LINENO"; then :
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 ac_c_werror_flag=$ac_save_c_werror_flag
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4137 $as_echo "$ac_cv_prog_cc_g" >&6; }
4138 if test "$ac_test_CFLAGS" = set; then
4139 CFLAGS=$ac_save_CFLAGS
4140 elif test $ac_cv_prog_cc_g = yes; then
4141 if test "$GCC" = yes; then
4147 if test "$GCC" = yes; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4154 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4155 if ${ac_cv_prog_cc_c89+:} false; then :
4156 $as_echo_n "(cached) " >&6
4158 ac_cv_prog_cc_c89=no
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4166 struct buf { int x; };
4167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4168 static char *e (p, i)
4174 static char *f (char * (*g) (char **, int), char **p, ...)
4179 s = g (p, va_arg (v,int));
4184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4185 function prototypes and stuff, but not '\xHH' hex character constants.
4186 These don't provoke an error unfortunately, instead are silently treated
4187 as 'x'. The following induces an error, until -std is added to get
4188 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4189 array size at least. It's necessary to write '\x00'==0 to get something
4190 that's true only with -std. */
4191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4194 inside strings and character constants. */
4196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4198 int test (int i, double x);
4199 struct s1 {int (*f) (int a);};
4200 struct s2 {int (*f) (double a);};
4201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4207 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4213 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4215 CC="$ac_save_CC $ac_arg"
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_prog_cc_c89=$ac_arg
4219 rm -f core conftest.err conftest.$ac_objext
4220 test "x$ac_cv_prog_cc_c89" != "xno" && break
4222 rm -f conftest.$ac_ext
4227 case "x$ac_cv_prog_cc_c89" in
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4230 $as_echo "none needed" >&6; } ;;
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4233 $as_echo "unsupported" >&6; } ;;
4235 CC="$CC $ac_cv_prog_cc_c89"
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4237 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4239 if test "x$ac_cv_prog_cc_c89" != xno; then :
4244 ac_cpp='$CPP $CPPFLAGS'
4245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4251 # but has idiosyncrasies of its own. We assume icc will define
4252 # __INTEL_COMPILER regardless of CFLAGS.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4260 #ifndef __INTEL_COMPILER
4267 if ac_fn_c_try_compile "$LINENO"; then :
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 # Check if it's Sun Studio compiler. We assume that
4275 # __SUNPRO_C will be defined for Sun Studio compilers
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4289 if ac_fn_c_try_compile "$LINENO"; then :
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 . "$srcdir/src/template/$template" || exit
4305 # CFLAGS are selected so:
4306 # If the user specifies something in the environment, that is used.
4307 # else: If the template file set something, that is used.
4308 # else: If coverage was enabled, don't set anything.
4309 # else: If the compiler is GCC, then we use -O2.
4310 # else: If the compiler is something else, then we use -O, unless debugging.
4312 if test "$ac_env_CFLAGS_set" = set; then
4313 CFLAGS=$ac_env_CFLAGS_value
4314 elif test "${CFLAGS+set}" = set; then
4315 : # (keep what template set)
4316 elif test "$enable_coverage" = yes; then
4317 : # no optimization by default
4318 elif test "$GCC" = yes; then
4321 # if the user selected debug mode, don't use -O
4322 if test "$enable_debug" != yes; then
4327 # set CFLAGS_VECTOR from the environment, if available
4328 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
4329 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
4332 # Some versions of GCC support some additional useful warning flags.
4333 # Check whether they are supported, and add them to CFLAGS if so.
4334 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4335 # but has its own. Also check other compiler-specific flags here.
4337 if test "$GCC" = yes -a "$ICC" = no; then
4338 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4339 # These work in some but not all gcc versions
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
4341 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4342 if ${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+:} false; then :
4343 $as_echo_n "(cached) " >&6
4345 pgac_save_CFLAGS=$CFLAGS
4346 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4347 ac_save_c_werror_flag=$ac_c_werror_flag
4348 ac_c_werror_flag=yes
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4360 if ac_fn_c_try_compile "$LINENO"; then :
4361 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4363 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 ac_c_werror_flag=$ac_save_c_werror_flag
4367 CFLAGS="$pgac_save_CFLAGS"
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4370 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4371 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4372 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wendif-labels" >&5
4376 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4377 if ${pgac_cv_prog_cc_cflags__Wendif_labels+:} false; then :
4378 $as_echo_n "(cached) " >&6
4380 pgac_save_CFLAGS=$CFLAGS
4381 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4382 ac_save_c_werror_flag=$ac_c_werror_flag
4383 ac_c_werror_flag=yes
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4395 if ac_fn_c_try_compile "$LINENO"; then :
4396 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4398 pgac_cv_prog_cc_cflags__Wendif_labels=no
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 ac_c_werror_flag=$ac_save_c_werror_flag
4402 CFLAGS="$pgac_save_CFLAGS"
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4405 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4406 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4407 CFLAGS="$CFLAGS -Wendif-labels"
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-format-attribute" >&5
4411 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4412 if ${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+:} false; then :
4413 $as_echo_n "(cached) " >&6
4415 pgac_save_CFLAGS=$CFLAGS
4416 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4417 ac_save_c_werror_flag=$ac_c_werror_flag
4418 ac_c_werror_flag=yes
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4430 if ac_fn_c_try_compile "$LINENO"; then :
4431 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4433 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 ac_c_werror_flag=$ac_save_c_werror_flag
4437 CFLAGS="$pgac_save_CFLAGS"
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4440 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4441 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4442 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4445 # This was included in -Wall/-Wformat in older GCC versions
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security" >&5
4447 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4448 if ${pgac_cv_prog_cc_cflags__Wformat_security+:} false; then :
4449 $as_echo_n "(cached) " >&6
4451 pgac_save_CFLAGS=$CFLAGS
4452 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4453 ac_save_c_werror_flag=$ac_c_werror_flag
4454 ac_c_werror_flag=yes
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4466 if ac_fn_c_try_compile "$LINENO"; then :
4467 pgac_cv_prog_cc_cflags__Wformat_security=yes
4469 pgac_cv_prog_cc_cflags__Wformat_security=no
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 ac_c_werror_flag=$ac_save_c_werror_flag
4473 CFLAGS="$pgac_save_CFLAGS"
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4476 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4477 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4478 CFLAGS="$CFLAGS -Wformat-security"
4481 # Disable strict-aliasing rules; needed for gcc 3.3+
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4483 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4484 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4485 $as_echo_n "(cached) " >&6
4487 pgac_save_CFLAGS=$CFLAGS
4488 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4489 ac_save_c_werror_flag=$ac_c_werror_flag
4490 ac_c_werror_flag=yes
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4502 if ac_fn_c_try_compile "$LINENO"; then :
4503 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4505 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 ac_c_werror_flag=$ac_save_c_werror_flag
4509 CFLAGS="$pgac_save_CFLAGS"
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4512 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4513 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4514 CFLAGS="$CFLAGS -fno-strict-aliasing"
4517 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fwrapv" >&5
4519 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4520 if ${pgac_cv_prog_cc_cflags__fwrapv+:} false; then :
4521 $as_echo_n "(cached) " >&6
4523 pgac_save_CFLAGS=$CFLAGS
4524 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4525 ac_save_c_werror_flag=$ac_c_werror_flag
4526 ac_c_werror_flag=yes
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4538 if ac_fn_c_try_compile "$LINENO"; then :
4539 pgac_cv_prog_cc_cflags__fwrapv=yes
4541 pgac_cv_prog_cc_cflags__fwrapv=no
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_c_werror_flag=$ac_save_c_werror_flag
4545 CFLAGS="$pgac_save_CFLAGS"
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4548 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4549 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4550 CFLAGS="$CFLAGS -fwrapv"
4553 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fexcess-precision=standard" >&5
4555 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4556 if ${pgac_cv_prog_cc_cflags__fexcess_precision_standard+:} false; then :
4557 $as_echo_n "(cached) " >&6
4559 pgac_save_CFLAGS=$CFLAGS
4560 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4561 ac_save_c_werror_flag=$ac_c_werror_flag
4562 ac_c_werror_flag=yes
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4574 if ac_fn_c_try_compile "$LINENO"; then :
4575 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4577 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 ac_c_werror_flag=$ac_save_c_werror_flag
4581 CFLAGS="$pgac_save_CFLAGS"
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4584 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4585 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4586 CFLAGS="$CFLAGS -fexcess-precision=standard"
4589 # Optimization flags for specific files that benefit from vectorization
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -funroll-loops" >&5
4591 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4592 if ${pgac_cv_prog_cc_cflags__funroll_loops+:} false; then :
4593 $as_echo_n "(cached) " >&6
4595 pgac_save_CFLAGS=$CFLAGS
4596 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4597 ac_save_c_werror_flag=$ac_c_werror_flag
4598 ac_c_werror_flag=yes
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611 pgac_cv_prog_cc_cflags__funroll_loops=yes
4613 pgac_cv_prog_cc_cflags__funroll_loops=no
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_c_werror_flag=$ac_save_c_werror_flag
4617 CFLAGS="$pgac_save_CFLAGS"
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4620 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4621 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4622 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftree-vectorize" >&5
4626 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4627 if ${pgac_cv_prog_cc_cflags__ftree_vectorize+:} false; then :
4628 $as_echo_n "(cached) " >&6
4630 pgac_save_CFLAGS=$CFLAGS
4631 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4632 ac_save_c_werror_flag=$ac_c_werror_flag
4633 ac_c_werror_flag=yes
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646 pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4648 pgac_cv_prog_cc_cflags__ftree_vectorize=no
4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 ac_c_werror_flag=$ac_save_c_werror_flag
4652 CFLAGS="$pgac_save_CFLAGS"
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4655 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4656 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4657 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4660 elif test "$ICC" = yes; then
4661 # Intel's compiler has a bug/misoptimization in checking for
4662 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mp1" >&5
4664 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4665 if ${pgac_cv_prog_cc_cflags__mp1+:} false; then :
4666 $as_echo_n "(cached) " >&6
4668 pgac_save_CFLAGS=$CFLAGS
4669 CFLAGS="$pgac_save_CFLAGS -mp1"
4670 ac_save_c_werror_flag=$ac_c_werror_flag
4671 ac_c_werror_flag=yes
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684 pgac_cv_prog_cc_cflags__mp1=yes
4686 pgac_cv_prog_cc_cflags__mp1=no
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 ac_c_werror_flag=$ac_save_c_werror_flag
4690 CFLAGS="$pgac_save_CFLAGS"
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4693 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4694 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4695 CFLAGS="$CFLAGS -mp1"
4698 # Make sure strict aliasing is off (though this is said to be the default)
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4700 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4701 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4702 $as_echo_n "(cached) " >&6
4704 pgac_save_CFLAGS=$CFLAGS
4705 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4706 ac_save_c_werror_flag=$ac_c_werror_flag
4707 ac_c_werror_flag=yes
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4719 if ac_fn_c_try_compile "$LINENO"; then :
4720 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4722 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 ac_c_werror_flag=$ac_save_c_werror_flag
4726 CFLAGS="$pgac_save_CFLAGS"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4729 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4730 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4731 CFLAGS="$CFLAGS -fno-strict-aliasing"
4734 elif test "$PORTNAME" = "aix"; then
4735 # AIX's xlc has to have strict aliasing turned off too
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qnoansialias" >&5
4737 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4738 if ${pgac_cv_prog_cc_cflags__qnoansialias+:} false; then :
4739 $as_echo_n "(cached) " >&6
4741 pgac_save_CFLAGS=$CFLAGS
4742 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
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__qnoansialias=yes
4759 pgac_cv_prog_cc_cflags__qnoansialias=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__qnoansialias" >&5
4766 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4767 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4768 CFLAGS="$CFLAGS -qnoansialias"
4771 elif test "$PORTNAME" = "hpux"; then
4772 # On some versions of HP-UX, libm functions do not set errno by default.
4773 # Fix that by using +Olibmerrno if the compiler recognizes it.
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports +Olibmerrno" >&5
4775 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4776 if ${pgac_cv_prog_cc_cflags_pOlibmerrno+:} false; then :
4777 $as_echo_n "(cached) " >&6
4779 pgac_save_CFLAGS=$CFLAGS
4780 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
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_pOlibmerrno=yes
4797 pgac_cv_prog_cc_cflags_pOlibmerrno=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_pOlibmerrno" >&5
4804 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4805 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4806 CFLAGS="$CFLAGS +Olibmerrno"
4811 CFLAGS_VECTOR=$CFLAGS_VECTOR
4814 # supply -g if --enable-debug
4815 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4819 # enable code coverage if --enable-coverage
4820 if test "$enable_coverage" = yes; then
4821 if test "$GCC" = yes; then
4822 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4824 as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5
4828 # enable profiling if --enable-profiling
4829 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4830 if test "$GCC" = yes; then
4832 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
4834 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4836 as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5
4840 # We already have this in Makefile.win32, but configure needs it too
4841 if test "$PORTNAME" = "win32"; then
4842 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4845 # Check if the compiler still works with the template settings
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
4847 $as_echo_n "checking whether the C compiler still works... " >&6; }
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4859 if ac_fn_c_try_link "$LINENO"; then :
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4861 $as_echo "yes" >&6; }
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 $as_echo "no" >&6; }
4865 as_fn_error $? "cannot proceed" "$LINENO" 5
4867 rm -f core conftest.err conftest.$ac_objext \
4868 conftest$ac_exeext conftest.$ac_ext
4870 # Defend against gcc -ffast-math
4871 if test "$GCC" = yes; then
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4878 #ifdef __FAST_MATH__
4885 if ac_fn_c_try_compile "$LINENO"; then :
4888 as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4899 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4900 # On Suns, sometimes $CPP names a directory.
4901 if test -n "$CPP" && test -d "$CPP"; then
4904 if test -z "$CPP"; then
4905 if ${ac_cv_prog_CPP+:} false; then :
4906 $as_echo_n "(cached) " >&6
4908 # Double quotes because CPP needs to be expanded
4909 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4912 for ac_c_preproc_warn_flag in '' yes
4914 # Use a header file that comes with gcc, so configuring glibc
4915 # with a fresh cross-compiler works.
4916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4917 # <limits.h> exists even on freestanding compilers.
4918 # On the NeXT, cc -E runs the code through the compiler's parser,
4919 # not just through cpp. "Syntax error" is here to catch this case.
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4923 # include <limits.h>
4925 # include <assert.h>
4929 if ac_fn_c_try_cpp "$LINENO"; then :
4932 # Broken: fails on valid input.
4935 rm -f conftest.err conftest.i conftest.$ac_ext
4937 # OK, works on sane cases. Now check whether nonexistent headers
4938 # can be detected and how.
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4941 #include <ac_nonexistent.h>
4943 if ac_fn_c_try_cpp "$LINENO"; then :
4944 # Broken: success on invalid input.
4947 # Passes both tests.
4951 rm -f conftest.err conftest.i conftest.$ac_ext
4954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4955 rm -f conftest.i conftest.err conftest.$ac_ext
4956 if $ac_preproc_ok; then :
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4969 $as_echo "$CPP" >&6; }
4971 for ac_c_preproc_warn_flag in '' yes
4973 # Use a header file that comes with gcc, so configuring glibc
4974 # with a fresh cross-compiler works.
4975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4976 # <limits.h> exists even on freestanding compilers.
4977 # On the NeXT, cc -E runs the code through the compiler's parser,
4978 # not just through cpp. "Syntax error" is here to catch this case.
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4982 # include <limits.h>
4984 # include <assert.h>
4988 if ac_fn_c_try_cpp "$LINENO"; then :
4991 # Broken: fails on valid input.
4994 rm -f conftest.err conftest.i conftest.$ac_ext
4996 # OK, works on sane cases. Now check whether nonexistent headers
4997 # can be detected and how.
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000 #include <ac_nonexistent.h>
5002 if ac_fn_c_try_cpp "$LINENO"; then :
5003 # Broken: success on invalid input.
5006 # Passes both tests.
5010 rm -f conftest.err conftest.i conftest.$ac_ext
5013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014 rm -f conftest.i conftest.err conftest.$ac_ext
5015 if $ac_preproc_ok; then :
5018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5020 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5021 See \`config.log' for more details" "$LINENO" 5; }
5025 ac_cpp='$CPP $CPPFLAGS'
5026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034 # Set up TAS assembly code if needed; the template file has now had its
5035 # chance to request this.
5037 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5040 if test "$need_tas" = yes ; then
5049 # Automatic dependency tracking
5053 # Check whether --enable-depend was given.
5054 if test "${enable_depend+set}" = set; then :
5055 enableval=$enable_depend;
5064 as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5
5078 # Enable assert checks
5082 # Check whether --enable-cassert was given.
5083 if test "${enable_cassert+set}" = set; then :
5084 enableval=$enable_cassert;
5088 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
5095 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
5108 # Include directories
5111 IFS="${IFS}${PATH_SEPARATOR}"
5112 # SRCH_INC comes from the template file
5113 for dir in $with_includes $SRCH_INC; do
5114 if test -d "$dir"; then
5115 INCLUDES="$INCLUDES -I$dir"
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
5118 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5126 # Library directories
5129 IFS="${IFS}${PATH_SEPARATOR}"
5130 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5131 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5132 if test -d "$dir"; then
5133 LIBDIRS="$LIBDIRS -L$dir"
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
5136 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5142 # Enable thread-safe client libraries
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
5145 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5148 # Check whether --enable-thread-safety was given.
5149 if test "${enable_thread_safety+set}" = set; then :
5150 enableval=$enable_thread_safety;
5159 as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5
5164 enable_thread_safety=yes
5169 if test "$enable_thread_safety" = yes; then
5171 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
5175 $as_echo "$enable_thread_safety" >&6; }
5179 # Optionally build Tcl modules (PL/Tcl)
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
5182 $as_echo_n "checking whether to build with Tcl... " >&6; }
5186 # Check whether --with-tcl was given.
5187 if test "${with_tcl+set}" = set; then :
5197 as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
5208 $as_echo "$with_tcl" >&6; }
5211 # We see if the path to the Tcl/Tk configuration scripts is specified.
5212 # This will override the use of tclsh to find the paths to search.
5217 # Check whether --with-tclconfig was given.
5218 if test "${with_tclconfig+set}" = set; then :
5219 withval=$with_tclconfig;
5222 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5225 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5237 # Optionally build Perl modules (PL/Perl)
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
5240 $as_echo_n "checking whether to build Perl modules... " >&6; }
5244 # Check whether --with-perl was given.
5245 if test "${with_perl+set}" = set; then :
5255 as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
5266 $as_echo "$with_perl" >&6; }
5270 # Optionally build Python modules (PL/Python)
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
5273 $as_echo_n "checking whether to build Python modules... " >&6; }
5277 # Check whether --with-python was given.
5278 if test "${with_python+set}" = set; then :
5279 withval=$with_python;
5288 as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
5299 $as_echo "$with_python" >&6; }
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
5306 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5310 # Check whether --with-gssapi was given.
5311 if test "${with_gssapi+set}" = set; then :
5312 withval=$with_gssapi;
5317 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
5319 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5326 as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
5337 $as_echo "$with_gssapi" >&6; }
5344 # Kerberos configuration parameters
5349 # Check whether --with-krb-srvnam was given.
5350 if test "${with_krb_srvnam+set}" = set; then :
5351 withval=$with_krb_srvnam;
5354 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5357 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5365 with_krb_srvnam="postgres"
5370 cat >>confdefs.h <<_ACEOF
5371 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
5380 $as_echo_n "checking whether to build with PAM support... " >&6; }
5384 # Check whether --with-pam was given.
5385 if test "${with_pam+set}" = set; then :
5390 $as_echo "#define USE_PAM 1" >>confdefs.h
5397 as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
5408 $as_echo "$with_pam" >&6; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
5415 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5419 # Check whether --with-ldap was given.
5420 if test "${with_ldap+set}" = set; then :
5425 $as_echo "#define USE_LDAP 1" >>confdefs.h
5432 as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
5443 $as_echo "$with_ldap" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
5450 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5454 # Check whether --with-bonjour was given.
5455 if test "${with_bonjour+set}" = set; then :
5456 withval=$with_bonjour;
5460 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
5467 as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
5478 $as_echo "$with_bonjour" >&6; }
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
5485 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5489 # Check whether --with-openssl was given.
5490 if test "${with_openssl+set}" = set; then :
5491 withval=$with_openssl;
5495 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
5502 as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
5513 $as_echo "$with_openssl" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
5520 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5524 # Check whether --with-selinux was given.
5525 if test "${with_selinux+set}" = set; then :
5526 withval=$with_selinux;
5535 as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
5547 $as_echo "$with_selinux" >&6; }
5555 # Check whether --with-readline was given.
5556 if test "${with_readline+set}" = set; then :
5557 withval=$with_readline;
5566 as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5
5576 # readline on MinGW has problems with backslashes in psql and other bugs.
5577 # This is particularly a problem with non-US code pages.
5578 # Therefore disable its use until we understand the cause. 2004-07-20
5579 if test "$PORTNAME" = "win32"; then
5580 if test "$with_readline" = yes; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5582 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5594 # Check whether --with-libedit-preferred was given.
5595 if test "${with_libedit_preferred+set}" = set; then :
5596 withval=$with_libedit_preferred;
5605 as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5
5610 with_libedit_preferred=no
5620 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
5621 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
5622 # UUID library. More than one of these might be present on a given platform,
5623 # so we make the user say which one she wants.
5628 # Check whether --with-uuid was given.
5629 if test "${with_uuid+set}" = set; then :
5633 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5636 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5646 if test x"$with_uuid" = x"" ; then
5652 # Check whether --with-ossp-uuid was given.
5653 if test "${with_ossp_uuid+set}" = set; then :
5654 withval=$with_ossp_uuid;
5663 as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5
5673 if test "$with_ossp_uuid" = yes ; then
5677 if test "$with_uuid" = bsd ; then
5679 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
5681 UUID_EXTRA_OBJS="md5.o sha1.o"
5682 elif test "$with_uuid" = e2fs ; then
5684 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
5686 UUID_EXTRA_OBJS="md5.o sha1.o"
5687 elif test "$with_uuid" = ossp ; then
5689 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
5692 elif test "$with_uuid" = no ; then
5695 as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
5707 # Check whether --with-libxml was given.
5708 if test "${with_libxml+set}" = set; then :
5709 withval=$with_libxml;
5713 $as_echo "#define USE_LIBXML 1" >>confdefs.h
5720 as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5
5731 if test "$with_libxml" = yes ; then
5732 for ac_prog in xml2-config
5734 # Extract the first word of "$ac_prog", so it can be a program name with args.
5735 set dummy $ac_prog; ac_word=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if ${ac_cv_prog_XML2_CONFIG+:} false; then :
5739 $as_echo_n "(cached) " >&6
5741 if test -n "$XML2_CONFIG"; then
5742 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751 ac_cv_prog_XML2_CONFIG="$ac_prog"
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5762 if test -n "$XML2_CONFIG"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
5764 $as_echo "$XML2_CONFIG" >&6; }
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5771 test -n "$XML2_CONFIG" && break
5774 if test -n "$XML2_CONFIG"; then
5775 for pgac_option in `$XML2_CONFIG --cflags`; do
5776 case $pgac_option in
5777 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5780 for pgac_option in `$XML2_CONFIG --libs`; do
5781 case $pgac_option in
5782 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5796 # Check whether --with-libxslt was given.
5797 if test "${with_libxslt+set}" = set; then :
5798 withval=$with_libxslt;
5802 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
5809 as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5
5829 # Check whether --with-system-tzdata was given.
5830 if test "${with_system_tzdata+set}" = set; then :
5831 withval=$with_system_tzdata;
5834 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
5837 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
5855 # Check whether --with-zlib was given.
5856 if test "${with_zlib+set}" = set; then :
5866 as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5
5882 # Assume system is ELF if it predefines __ELF__ as 1,
5883 # otherwise believe host_os based default.
5885 freebsd1*|freebsd2*) elf=no;;
5886 freebsd3*|freebsd4*) elf=yes;;
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5891 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5892 if ${ac_cv_path_GREP+:} false; then :
5893 $as_echo_n "(cached) " >&6
5895 if test -z "$GREP"; then
5896 ac_path_GREP_found=false
5897 # Loop through the user's path and test for each of PROGNAME-LIST
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5902 test -z "$as_dir" && as_dir=.
5903 for ac_prog in grep ggrep; do
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5906 as_fn_executable_p "$ac_path_GREP" || continue
5907 # Check for GNU ac_path_GREP and select it if it is found.
5908 # Check for GNU $ac_path_GREP
5909 case `"$ac_path_GREP" --version 2>&1` in
5911 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5914 $as_echo_n 0123456789 >"conftest.in"
5917 cat "conftest.in" "conftest.in" >"conftest.tmp"
5918 mv "conftest.tmp" "conftest.in"
5919 cp "conftest.in" "conftest.nl"
5920 $as_echo 'GREP' >> "conftest.nl"
5921 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5922 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5923 as_fn_arith $ac_count + 1 && ac_count=$as_val
5924 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5925 # Best one so far, save it but keep looking for a better one
5926 ac_cv_path_GREP="$ac_path_GREP"
5927 ac_path_GREP_max=$ac_count
5929 # 10*(2^10) chars as input seems more than enough
5930 test $ac_count -gt 10 && break
5932 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5935 $ac_path_GREP_found && break 3
5940 if test -z "$ac_cv_path_GREP"; then
5941 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5944 ac_cv_path_GREP=$GREP
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5949 $as_echo "$ac_cv_path_GREP" >&6; }
5950 GREP="$ac_cv_path_GREP"
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5954 $as_echo_n "checking for egrep... " >&6; }
5955 if ${ac_cv_path_EGREP+:} false; then :
5956 $as_echo_n "(cached) " >&6
5958 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5959 then ac_cv_path_EGREP="$GREP -E"
5961 if test -z "$EGREP"; then
5962 ac_path_EGREP_found=false
5963 # Loop through the user's path and test for each of PROGNAME-LIST
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5968 test -z "$as_dir" && as_dir=.
5969 for ac_prog in egrep; do
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5972 as_fn_executable_p "$ac_path_EGREP" || continue
5973 # Check for GNU ac_path_EGREP and select it if it is found.
5974 # Check for GNU $ac_path_EGREP
5975 case `"$ac_path_EGREP" --version 2>&1` in
5977 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5980 $as_echo_n 0123456789 >"conftest.in"
5983 cat "conftest.in" "conftest.in" >"conftest.tmp"
5984 mv "conftest.tmp" "conftest.in"
5985 cp "conftest.in" "conftest.nl"
5986 $as_echo 'EGREP' >> "conftest.nl"
5987 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5989 as_fn_arith $ac_count + 1 && ac_count=$as_val
5990 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5991 # Best one so far, save it but keep looking for a better one
5992 ac_cv_path_EGREP="$ac_path_EGREP"
5993 ac_path_EGREP_max=$ac_count
5995 # 10*(2^10) chars as input seems more than enough
5996 test $ac_count -gt 10 && break
5998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6001 $ac_path_EGREP_found && break 3
6006 if test -z "$ac_cv_path_EGREP"; then
6007 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6010 ac_cv_path_EGREP=$EGREP
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6016 $as_echo "$ac_cv_path_EGREP" >&6; }
6017 EGREP="$ac_cv_path_EGREP"
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6028 $EGREP "yes" >/dev/null 2>&1; then :
6031 if test "X$elf" = "Xyes" ; then
6045 CPPFLAGS="$CPPFLAGS $INCLUDES"
6046 LDFLAGS="$LDFLAGS $LIBDIRS"
6052 # Check whether --with-gnu-ld was given.
6053 if test "${with_gnu_ld+set}" = set; then :
6054 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6060 if test "$GCC" = yes; then
6061 # Check if gcc -print-prog-name=ld gives a path.
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6063 $as_echo_n "checking for ld used by GCC... " >&6; }
6066 # gcc leaves a trailing carriage return which upsets mingw
6067 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6069 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6072 # Accept absolute paths.
6073 [\\/]* | [A-Za-z]:[\\/]*)
6074 re_direlt='/[^/][^/]*/\.\./'
6075 # Canonicalize the path of ld
6076 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6077 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6078 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6080 test -z "$LD" && LD="$ac_prog"
6083 # If it fails, then pretend we aren't using GCC.
6087 # If it is relative, then search for the first ld in PATH.
6091 elif test "$with_gnu_ld" = yes; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6093 $as_echo_n "checking for GNU ld... " >&6; }
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6096 $as_echo_n "checking for non-GNU ld... " >&6; }
6098 if ${ac_cv_path_LD+:} false; then :
6099 $as_echo_n "(cached) " >&6
6101 if test -z "$LD"; then
6102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6103 for ac_dir in $PATH; do
6104 test -z "$ac_dir" && ac_dir=.
6105 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6106 ac_cv_path_LD="$ac_dir/$ac_prog"
6107 # Check to see if the program is GNU ld. I'd rather use --version,
6108 # but apparently some GNU ld's only accept -v.
6109 # Break only if it was the GNU/non-GNU ld that we prefer.
6110 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6111 test "$with_gnu_ld" != no && break
6113 test "$with_gnu_ld" != yes && break
6119 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6124 if test -n "$LD"; then
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6126 $as_echo "$LD" >&6; }
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6131 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6133 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6134 if ${ac_cv_prog_gnu_ld+:} false; then :
6135 $as_echo_n "(cached) " >&6
6137 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6138 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6139 ac_cv_prog_gnu_ld=yes
6141 ac_cv_prog_gnu_ld=no
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6145 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6146 with_gnu_ld=$ac_cv_prog_gnu_ld
6151 case $host_os in sysv5*)
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld -R works" >&5
6153 $as_echo_n "checking whether ld -R works... " >&6; }
6154 if ${pgac_cv_prog_ld_R+:} false; then :
6155 $as_echo_n "(cached) " >&6
6158 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6170 if ac_fn_c_try_link "$LINENO"; then :
6171 pgac_cv_prog_ld_R=yes
6173 pgac_cv_prog_ld_R=no
6175 rm -f core conftest.err conftest.$ac_objext \
6176 conftest$ac_exeext conftest.$ac_ext
6177 LDFLAGS=$pgac_save_LDFLAGS
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_ld_R" >&5
6181 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6182 ld_R_works=$pgac_cv_prog_ld_R
6185 if test -n "$ac_tool_prefix"; then
6186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_prog_RANLIB+:} false; then :
6191 $as_echo_n "(cached) " >&6
6193 if test -n "$RANLIB"; then
6194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 RANLIB=$ac_cv_prog_RANLIB
6214 if test -n "$RANLIB"; then
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6216 $as_echo "$RANLIB" >&6; }
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6224 if test -z "$ac_cv_prog_RANLIB"; then
6225 ac_ct_RANLIB=$RANLIB
6226 # Extract the first word of "ranlib", so it can be a program name with args.
6227 set dummy ranlib; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6231 $as_echo_n "(cached) " >&6
6233 if test -n "$ac_ct_RANLIB"; then
6234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243 ac_cv_prog_ac_ct_RANLIB="ranlib"
6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6254 if test -n "$ac_ct_RANLIB"; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6256 $as_echo "$ac_ct_RANLIB" >&6; }
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6262 if test "x$ac_ct_RANLIB" = x; then
6265 case $cross_compiling:$ac_tool_warned in
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269 ac_tool_warned=yes ;;
6271 RANLIB=$ac_ct_RANLIB
6274 RANLIB="$ac_cv_prog_RANLIB"
6278 if test -n "$ac_tool_prefix"; then
6279 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6280 set dummy ${ac_tool_prefix}strip; ac_word=$2
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282 $as_echo_n "checking for $ac_word... " >&6; }
6283 if ${ac_cv_prog_STRIP+:} false; then :
6284 $as_echo_n "(cached) " >&6
6286 if test -n "$STRIP"; then
6287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 STRIP=$ac_cv_prog_STRIP
6307 if test -n "$STRIP"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6309 $as_echo "$STRIP" >&6; }
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6317 if test -z "$ac_cv_prog_STRIP"; then
6319 # Extract the first word of "strip", so it can be a program name with args.
6320 set dummy strip; ac_word=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6324 $as_echo_n "(cached) " >&6
6326 if test -n "$ac_ct_STRIP"; then
6327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_ac_ct_STRIP="strip"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6347 if test -n "$ac_ct_STRIP"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6349 $as_echo "$ac_ct_STRIP" >&6; }
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6355 if test "x$ac_ct_STRIP" = x; then
6358 case $cross_compiling:$ac_tool_warned in
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6362 ac_tool_warned=yes ;;
6367 STRIP="$ac_cv_prog_STRIP"
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
6372 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6373 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6374 STRIP_STATIC_LIB="$STRIP -x"
6375 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6377 $as_echo "yes" >&6; }
6382 STRIP_STATIC_LIB=$STRIP
6383 STRIP_SHARED_LIB=$STRIP
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6385 $as_echo "yes" >&6; }
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}ar; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_AR+:} false; then :
6404 $as_echo_n "(cached) " >&6
6406 if test -n "$AR"; then
6407 ac_cv_prog_AR="$AR" # Let the user override the test.
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_prog_AR="${ac_tool_prefix}ar"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 if test -n "$AR"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6429 $as_echo "$AR" >&6; }
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6437 if test -z "$ac_cv_prog_AR"; then
6439 # Extract the first word of "ar", so it can be a program name with args.
6440 set dummy ar; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6444 $as_echo_n "(cached) " >&6
6446 if test -n "$ac_ct_AR"; then
6447 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_ac_ct_AR="ar"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6467 if test -n "$ac_ct_AR"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6469 $as_echo "$ac_ct_AR" >&6; }
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6475 if test "x$ac_ct_AR" = x; then
6478 case $cross_compiling:$ac_tool_warned in
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6490 if test "$PORTNAME" = "win32"; then
6491 if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if ${ac_cv_prog_DLLTOOL+:} false; then :
6497 $as_echo_n "(cached) " >&6
6499 if test -n "$DLLTOOL"; then
6500 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6509 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 DLLTOOL=$ac_cv_prog_DLLTOOL
6520 if test -n "$DLLTOOL"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6522 $as_echo "$DLLTOOL" >&6; }
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6530 if test -z "$ac_cv_prog_DLLTOOL"; then
6531 ac_ct_DLLTOOL=$DLLTOOL
6532 # Extract the first word of "dlltool", so it can be a program name with args.
6533 set dummy dlltool; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6537 $as_echo_n "(cached) " >&6
6539 if test -n "$ac_ct_DLLTOOL"; then
6540 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6560 if test -n "$ac_ct_DLLTOOL"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6562 $as_echo "$ac_ct_DLLTOOL" >&6; }
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6568 if test "x$ac_ct_DLLTOOL" = x; then
6571 case $cross_compiling:$ac_tool_warned in
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6577 DLLTOOL=$ac_ct_DLLTOOL
6580 DLLTOOL="$ac_cv_prog_DLLTOOL"
6583 if test -n "$ac_tool_prefix"; then
6584 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6585 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if ${ac_cv_prog_DLLWRAP+:} false; then :
6589 $as_echo_n "(cached) " >&6
6591 if test -n "$DLLWRAP"; then
6592 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6601 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 DLLWRAP=$ac_cv_prog_DLLWRAP
6612 if test -n "$DLLWRAP"; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6614 $as_echo "$DLLWRAP" >&6; }
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6622 if test -z "$ac_cv_prog_DLLWRAP"; then
6623 ac_ct_DLLWRAP=$DLLWRAP
6624 # Extract the first word of "dllwrap", so it can be a program name with args.
6625 set dummy dllwrap; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6629 $as_echo_n "(cached) " >&6
6631 if test -n "$ac_ct_DLLWRAP"; then
6632 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6652 if test -n "$ac_ct_DLLWRAP"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6654 $as_echo "$ac_ct_DLLWRAP" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6660 if test "x$ac_ct_DLLWRAP" = x; then
6663 case $cross_compiling:$ac_tool_warned in
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667 ac_tool_warned=yes ;;
6669 DLLWRAP=$ac_ct_DLLWRAP
6672 DLLWRAP="$ac_cv_prog_DLLWRAP"
6675 if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}windres; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_WINDRES+:} false; then :
6681 $as_echo_n "(cached) " >&6
6683 if test -n "$WINDRES"; then
6684 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 WINDRES=$ac_cv_prog_WINDRES
6704 if test -n "$WINDRES"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6706 $as_echo "$WINDRES" >&6; }
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6714 if test -z "$ac_cv_prog_WINDRES"; then
6715 ac_ct_WINDRES=$WINDRES
6716 # Extract the first word of "windres", so it can be a program name with args.
6717 set dummy windres; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 if test -n "$ac_ct_WINDRES"; then
6724 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_WINDRES="windres"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6744 if test -n "$ac_ct_WINDRES"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6746 $as_echo "$ac_ct_WINDRES" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6752 if test "x$ac_ct_WINDRES" = x; then
6755 case $cross_compiling:$ac_tool_warned in
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6761 WINDRES=$ac_ct_WINDRES
6764 WINDRES="$ac_cv_prog_WINDRES"
6769 # Find a good install program. We prefer a C program (faster),
6770 # so one script is as good as another. But avoid the broken or
6771 # incompatible versions:
6772 # SysV /etc/install, /usr/sbin/install
6773 # SunOS /usr/etc/install
6774 # IRIX /sbin/install
6776 # AmigaOS /C/install, which installs bootblocks on floppy discs
6777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6780 # OS/2's system install, which has a completely different semantic
6781 # ./install, which can be erroneously created by make from ./install.sh.
6782 # Reject install programs that cannot install multiple files.
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6784 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6785 if test -z "$INSTALL"; then
6786 if ${ac_cv_path_install+:} false; then :
6787 $as_echo_n "(cached) " >&6
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 # Account for people who put trailing slashes in PATH elements.
6795 case $as_dir/ in #((
6796 ./ | .// | /[cC]/* | \
6797 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6798 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6801 # OSF1 and SCO ODT 3.0 have their own names for install.
6802 # Don't use installbsd from OSF since it installs stuff as root
6804 for ac_prog in ginstall scoinst install; do
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6807 if test $ac_prog = install &&
6808 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6809 # AIX install. It has an incompatible calling convention.
6811 elif test $ac_prog = install &&
6812 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6813 # program-specific install script used by HP pwplus--don't use.
6816 rm -rf conftest.one conftest.two conftest.dir
6817 echo one > conftest.one
6818 echo two > conftest.two
6820 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6821 test -s conftest.one && test -s conftest.two &&
6822 test -s conftest.dir/conftest.one &&
6823 test -s conftest.dir/conftest.two
6825 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6838 rm -rf conftest.one conftest.two conftest.dir
6841 if test "${ac_cv_path_install+set}" = set; then
6842 INSTALL=$ac_cv_path_install
6844 # As a last resort, use the slow shell script. Don't cache a
6845 # value for INSTALL within a source directory, because that will
6846 # break other packages using the cache if that directory is
6847 # removed, or if the value is a relative name.
6848 INSTALL=$ac_install_sh
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6852 $as_echo "$INSTALL" >&6; }
6854 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6855 # It thinks the first close brace ends the variable substitution.
6856 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6858 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6860 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6862 # When Autoconf chooses install-sh as install program it tries to generate
6863 # a relative path to it in each makefile where it subsitutes it. This clashes
6864 # with our Makefile.global concept. This workaround helps.
6866 *install-sh*) install_bin='';;
6867 *) install_bin=$INSTALL;;
6871 # Extract the first word of "tar", so it can be a program name with args.
6872 set dummy tar; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_path_TAR+:} false; then :
6876 $as_echo_n "(cached) " >&6
6880 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 if test -n "$TAR"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
6904 $as_echo "$TAR" >&6; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6912 $as_echo_n "checking whether ln -s works... " >&6; }
6914 if test "$LN_S" = "ln -s"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6916 $as_echo "yes" >&6; }
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6919 $as_echo "no, using $LN_S" >&6; }
6922 for ac_prog in gawk mawk nawk awk
6924 # Extract the first word of "$ac_prog", so it can be a program name with args.
6925 set dummy $ac_prog; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if ${ac_cv_prog_AWK+:} false; then :
6929 $as_echo_n "(cached) " >&6
6931 if test -n "$AWK"; then
6932 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_AWK="$ac_prog"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 if test -n "$AWK"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6954 $as_echo "$AWK" >&6; }
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6961 test -n "$AWK" && break
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6965 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6966 if test -z "$MKDIR_P"; then
6967 if ${ac_cv_path_mkdir+:} false; then :
6968 $as_echo_n "(cached) " >&6
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6974 test -z "$as_dir" && as_dir=.
6975 for ac_prog in mkdir gmkdir; do
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6978 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6979 'mkdir (GNU coreutils) '* | \
6980 'mkdir (coreutils) '* | \
6981 'mkdir (fileutils) '4.1*)
6982 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6992 test -d ./--version && rmdir ./--version
6993 if test "${ac_cv_path_mkdir+set}" = set; then
6994 MKDIR_P="$ac_cv_path_mkdir -p"
6996 # As a last resort, use the slow shell script. Don't cache a
6997 # value for MKDIR_P within a source directory, because that will
6998 # break other packages using the cache if that directory is
6999 # removed, or if the value is a relative name.
7000 MKDIR_P="$ac_install_sh -d"
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7004 $as_echo "$MKDIR_P" >&6; }
7006 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7007 # a relative path to it in each makefile where it subsitutes it. This clashes
7008 # with our Makefile.global concept. This workaround helps.
7010 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7013 # Let the user override the search
7014 if test -z "$BISON"; then
7015 for ac_prog in bison
7017 # Extract the first word of "$ac_prog", so it can be a program name with args.
7018 set dummy $ac_prog; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_path_BISON+:} false; then :
7022 $as_echo_n "(cached) " >&6
7026 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 BISON=$ac_cv_path_BISON
7048 if test -n "$BISON"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7050 $as_echo "$BISON" >&6; }
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7057 test -n "$BISON" && break
7062 if test "$BISON"; then
7063 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
7065 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7066 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7069 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7070 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7071 $as_echo "$as_me: WARNING:
7072 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7073 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7076 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
7077 # of the now preferred %name-prefix "base_yy", but the latter
7078 # doesn't work with Bison 2.3 or less. So for now we silence the
7079 # deprecation warnings.
7080 if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
7082 BISONFLAGS="$BISONFLAGS -Wno-deprecated"
7086 if test -z "$BISON"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7088 *** Without Bison you will not be able to build PostgreSQL from Git nor
7089 *** change any of the parser definition files. You can obtain Bison from
7090 *** a GNU mirror site. (If you are using the official distribution of
7091 *** PostgreSQL then you do not need to worry about this, because the Bison
7092 *** output is pre-generated.)" >&5
7093 $as_echo "$as_me: WARNING:
7094 *** Without Bison you will not be able to build PostgreSQL from Git nor
7095 *** change any of the parser definition files. You can obtain Bison from
7096 *** a GNU mirror site. (If you are using the official distribution of
7097 *** PostgreSQL then you do not need to worry about this, because the Bison
7098 *** output is pre-generated.)" >&2;}
7100 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
7104 $as_echo_n "checking for flex... " >&6; }
7105 if ${pgac_cv_path_flex+:} false; then :
7106 $as_echo_n "(cached) " >&6
7108 # Let the user override the test
7109 if test -n "$FLEX"; then
7110 pgac_cv_path_flex=$FLEX
7114 for pgac_dir in $PATH; do
7116 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7119 for pgac_prog in flex lex; do
7120 pgac_candidate="$pgac_dir/$pgac_prog"
7121 if test -f "$pgac_candidate" \
7122 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7124 echo '%%' > conftest.l
7125 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7126 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7127 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7129 pgac_cv_path_flex=$pgac_candidate
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7133 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7134 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7135 $as_echo "$as_me: WARNING:
7136 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7137 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7143 rm -f conftest.l lex.yy.c
7144 : ${pgac_cv_path_flex=no}
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
7149 $as_echo "$pgac_cv_path_flex" >&6; }
7150 if test x"$pgac_cv_path_flex" = x"no"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7152 *** Without Flex you will not be able to build PostgreSQL from Git nor
7153 *** change any of the scanner definition files. You can obtain Flex from
7154 *** a GNU mirror site. (If you are using the official distribution of
7155 *** PostgreSQL then you do not need to worry about this because the Flex
7156 *** output is pre-generated.)" >&5
7157 $as_echo "$as_me: WARNING:
7158 *** Without Flex you will not be able to build PostgreSQL from Git nor
7159 *** change any of the scanner definition files. You can obtain Flex from
7160 *** a GNU mirror site. (If you are using the official distribution of
7161 *** PostgreSQL then you do not need to worry about this because the Flex
7162 *** output is pre-generated.)" >&2;}
7166 FLEX=$pgac_cv_path_flex
7167 pgac_flex_version=`$FLEX --version 2>/dev/null`
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
7169 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7176 # Let the user override the search
7177 if test -z "$PERL"; then
7178 # Extract the first word of "perl", so it can be a program name with args.
7179 set dummy perl; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if ${ac_cv_path_PERL+:} false; then :
7183 $as_echo_n "(cached) " >&6
7187 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 PERL=$ac_cv_path_PERL
7209 if test -n "$PERL"; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7211 $as_echo "$PERL" >&6; }
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7220 if test "$PERL"; then
7221 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'`
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
7223 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7224 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7225 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7228 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7229 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7230 $as_echo "$as_me: WARNING:
7231 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7232 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7237 if test -z "$PERL"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7239 *** Without Perl you will not be able to build PostgreSQL from Git.
7240 *** You can obtain Perl from any CPAN mirror site.
7241 *** (If you are using the official distribution of PostgreSQL then you do not
7242 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7243 $as_echo "$as_me: WARNING:
7244 *** Without Perl you will not be able to build PostgreSQL from Git.
7245 *** You can obtain Perl from any CPAN mirror site.
7246 *** (If you are using the official distribution of PostgreSQL then you do not
7247 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7250 if test "$with_perl" = yes; then
7251 if test -z "$PERL"; then
7252 as_fn_error $? "Perl not found" "$LINENO" 5
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
7256 $as_echo_n "checking for Perl archlibexp... " >&6; }
7257 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7258 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
7260 $as_echo "$perl_archlibexp" >&6; }
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
7262 $as_echo_n "checking for Perl privlibexp... " >&6; }
7263 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7264 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
7266 $as_echo "$perl_privlibexp" >&6; }
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
7268 $as_echo_n "checking for Perl useshrplib... " >&6; }
7269 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7270 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
7272 $as_echo "$perl_useshrplib" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
7275 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7276 if test "$PORTNAME" = "win32" ; then
7277 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7278 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7280 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7281 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7282 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7284 if test -z "$perl_embed_ldflags" ; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7287 as_fn_error $? "could not determine flags for linking embedded Perl.
7288 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7289 installed." "$LINENO" 5
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
7292 $as_echo "$perl_embed_ldflags" >&6; }
7297 if test "$with_python" = yes; then
7298 # Extract the first word of "python", so it can be a program name with args.
7299 set dummy python; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_path_PYTHON+:} false; then :
7303 $as_echo_n "(cached) " >&6
7307 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 PYTHON=$ac_cv_path_PYTHON
7329 if test -n "$PYTHON"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7331 $as_echo "$PYTHON" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7338 if test x"$PYTHON" = x""; then
7339 as_fn_error $? "Python not found" "$LINENO" 5
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
7344 $as_echo_n "checking for Python distutils module... " >&6; }
7345 if "${PYTHON}" -c 'import distutils' 2>&5
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7348 $as_echo "yes" >&6; }
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 as_fn_error $? "distutils module not found" "$LINENO" 5
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
7355 $as_echo_n "checking Python configuration directory... " >&6; }
7356 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7357 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7358 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
7360 $as_echo "$python_configdir" >&6; }
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
7363 $as_echo_n "checking Python include directories... " >&6; }
7364 python_includespec=`${PYTHON} -c "
7365 import distutils.sysconfig
7366 a = '-I' + distutils.sysconfig.get_python_inc(False)
7367 b = '-I' + distutils.sysconfig.get_python_inc(True)
7371 print(a + ' ' + b)"`
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
7373 $as_echo "$python_includespec" >&6; }
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
7378 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7380 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7381 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7382 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7383 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7384 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7386 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7388 # New way: use the official shared library
7389 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7390 python_libspec="-L${python_libdir} -l${ldlibrary}"
7392 # Old way: use libpython from python_configdir
7393 python_libdir="${python_configdir}"
7394 # LDVERSION was introduced in Python 3.2.
7395 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7396 if test x"${python_ldversion}" = x""; then
7397 python_ldversion=$python_version
7399 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7402 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
7405 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7408 # threaded python is not supported on OpenBSD
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Python is compiled with thread support" >&5
7410 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7411 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7412 if test "$pythreads" = "1"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7414 $as_echo "yes" >&6; }
7417 as_fn_error $? "threaded Python not supported on this platform" "$LINENO" 5
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7428 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7429 # Extract the first word of "zic", so it can be a program name with args.
7430 set dummy zic; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_path_ZIC+:} false; then :
7434 $as_echo_n "(cached) " >&6
7438 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 if test -n "$ZIC"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
7462 $as_echo "$ZIC" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7469 if test -z "$ZIC"; then
7471 When cross-compiling, either use the option --with-system-tzdata to use
7472 existing time-zone data, or set the environment variable ZIC to a zic
7473 program to use during the build." "$LINENO" 5
7481 ## Most libraries are included only if they demonstrably provide a function
7482 ## we need, but libm is an exception: always include it, because there are
7483 ## too many compilers that play cute optimization games that will break
7484 ## probes for standard functions such as pow().
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7488 $as_echo_n "checking for main in -lm... " >&6; }
7489 if ${ac_cv_lib_m_main+:} false; then :
7490 $as_echo_n "(cached) " >&6
7492 ac_check_lib_save_LIBS=$LIBS
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7506 if ac_fn_c_try_link "$LINENO"; then :
7507 ac_cv_lib_m_main=yes
7511 rm -f core conftest.err conftest.$ac_objext \
7512 conftest$ac_exeext conftest.$ac_ext
7513 LIBS=$ac_check_lib_save_LIBS
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7516 $as_echo "$ac_cv_lib_m_main" >&6; }
7517 if test "x$ac_cv_lib_m_main" = xyes; then :
7518 cat >>confdefs.h <<_ACEOF
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
7527 $as_echo_n "checking for library containing setproctitle... " >&6; }
7528 if ${ac_cv_search_setproctitle+:} false; then :
7529 $as_echo_n "(cached) " >&6
7531 ac_func_search_save_LIBS=$LIBS
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7535 /* Override any GCC internal prototype to avoid an error.
7536 Use char because int might match the return type of a GCC
7537 builtin and then its argument prototype would still apply. */
7541 char setproctitle ();
7545 return setproctitle ();
7550 for ac_lib in '' util; do
7551 if test -z "$ac_lib"; then
7552 ac_res="none required"
7555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7557 if ac_fn_c_try_link "$LINENO"; then :
7558 ac_cv_search_setproctitle=$ac_res
7560 rm -f core conftest.err conftest.$ac_objext \
7562 if ${ac_cv_search_setproctitle+:} false; then :
7566 if ${ac_cv_search_setproctitle+:} false; then :
7569 ac_cv_search_setproctitle=no
7572 LIBS=$ac_func_search_save_LIBS
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
7575 $as_echo "$ac_cv_search_setproctitle" >&6; }
7576 ac_res=$ac_cv_search_setproctitle
7577 if test "$ac_res" != no; then :
7578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7583 $as_echo_n "checking for library containing dlopen... " >&6; }
7584 if ${ac_cv_search_dlopen+:} false; then :
7585 $as_echo_n "(cached) " >&6
7587 ac_func_search_save_LIBS=$LIBS
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7591 /* Override any GCC internal prototype to avoid an error.
7592 Use char because int might match the return type of a GCC
7593 builtin and then its argument prototype would still apply. */
7606 for ac_lib in '' dl; do
7607 if test -z "$ac_lib"; then
7608 ac_res="none required"
7611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7613 if ac_fn_c_try_link "$LINENO"; then :
7614 ac_cv_search_dlopen=$ac_res
7616 rm -f core conftest.err conftest.$ac_objext \
7618 if ${ac_cv_search_dlopen+:} false; then :
7622 if ${ac_cv_search_dlopen+:} false; then :
7625 ac_cv_search_dlopen=no
7628 LIBS=$ac_func_search_save_LIBS
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7631 $as_echo "$ac_cv_search_dlopen" >&6; }
7632 ac_res=$ac_cv_search_dlopen
7633 if test "$ac_res" != no; then :
7634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7639 $as_echo_n "checking for library containing socket... " >&6; }
7640 if ${ac_cv_search_socket+:} false; then :
7641 $as_echo_n "(cached) " >&6
7643 ac_func_search_save_LIBS=$LIBS
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7647 /* Override any GCC internal prototype to avoid an error.
7648 Use char because int might match the return type of a GCC
7649 builtin and then its argument prototype would still apply. */
7662 for ac_lib in '' socket ws2_32; do
7663 if test -z "$ac_lib"; then
7664 ac_res="none required"
7667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7669 if ac_fn_c_try_link "$LINENO"; then :
7670 ac_cv_search_socket=$ac_res
7672 rm -f core conftest.err conftest.$ac_objext \
7674 if ${ac_cv_search_socket+:} false; then :
7678 if ${ac_cv_search_socket+:} false; then :
7681 ac_cv_search_socket=no
7684 LIBS=$ac_func_search_save_LIBS
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7687 $as_echo "$ac_cv_search_socket" >&6; }
7688 ac_res=$ac_cv_search_socket
7689 if test "$ac_res" != no; then :
7690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
7695 $as_echo_n "checking for library containing shl_load... " >&6; }
7696 if ${ac_cv_search_shl_load+:} false; then :
7697 $as_echo_n "(cached) " >&6
7699 ac_func_search_save_LIBS=$LIBS
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7703 /* Override any GCC internal prototype to avoid an error.
7704 Use char because int might match the return type of a GCC
7705 builtin and then its argument prototype would still apply. */
7718 for ac_lib in '' dld; do
7719 if test -z "$ac_lib"; then
7720 ac_res="none required"
7723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7725 if ac_fn_c_try_link "$LINENO"; then :
7726 ac_cv_search_shl_load=$ac_res
7728 rm -f core conftest.err conftest.$ac_objext \
7730 if ${ac_cv_search_shl_load+:} false; then :
7734 if ${ac_cv_search_shl_load+:} false; then :
7737 ac_cv_search_shl_load=no
7740 LIBS=$ac_func_search_save_LIBS
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
7743 $as_echo "$ac_cv_search_shl_load" >&6; }
7744 ac_res=$ac_cv_search_shl_load
7745 if test "$ac_res" != no; then :
7746 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7750 # We only use libld in port/dynloader/aix.c
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldopen" >&5
7754 $as_echo_n "checking for library containing ldopen... " >&6; }
7755 if ${ac_cv_search_ldopen+:} false; then :
7756 $as_echo_n "(cached) " >&6
7758 ac_func_search_save_LIBS=$LIBS
7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h. */
7762 /* Override any GCC internal prototype to avoid an error.
7763 Use char because int might match the return type of a GCC
7764 builtin and then its argument prototype would still apply. */
7777 for ac_lib in '' ld; do
7778 if test -z "$ac_lib"; then
7779 ac_res="none required"
7782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7784 if ac_fn_c_try_link "$LINENO"; then :
7785 ac_cv_search_ldopen=$ac_res
7787 rm -f core conftest.err conftest.$ac_objext \
7789 if ${ac_cv_search_ldopen+:} false; then :
7793 if ${ac_cv_search_ldopen+:} false; then :
7796 ac_cv_search_ldopen=no
7799 LIBS=$ac_func_search_save_LIBS
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldopen" >&5
7802 $as_echo "$ac_cv_search_ldopen" >&6; }
7803 ac_res=$ac_cv_search_ldopen
7804 if test "$ac_res" != no; then :
7805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
7812 $as_echo_n "checking for library containing getopt_long... " >&6; }
7813 if ${ac_cv_search_getopt_long+:} false; then :
7814 $as_echo_n "(cached) " >&6
7816 ac_func_search_save_LIBS=$LIBS
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7820 /* Override any GCC internal prototype to avoid an error.
7821 Use char because int might match the return type of a GCC
7822 builtin and then its argument prototype would still apply. */
7826 char getopt_long ();
7830 return getopt_long ();
7835 for ac_lib in '' getopt gnugetopt; do
7836 if test -z "$ac_lib"; then
7837 ac_res="none required"
7840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7842 if ac_fn_c_try_link "$LINENO"; then :
7843 ac_cv_search_getopt_long=$ac_res
7845 rm -f core conftest.err conftest.$ac_objext \
7847 if ${ac_cv_search_getopt_long+:} false; then :
7851 if ${ac_cv_search_getopt_long+:} false; then :
7854 ac_cv_search_getopt_long=no
7857 LIBS=$ac_func_search_save_LIBS
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
7860 $as_echo "$ac_cv_search_getopt_long" >&6; }
7861 ac_res=$ac_cv_search_getopt_long
7862 if test "$ac_res" != no; then :
7863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
7868 $as_echo_n "checking for library containing crypt... " >&6; }
7869 if ${ac_cv_search_crypt+:} false; then :
7870 $as_echo_n "(cached) " >&6
7872 ac_func_search_save_LIBS=$LIBS
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7876 /* Override any GCC internal prototype to avoid an error.
7877 Use char because int might match the return type of a GCC
7878 builtin and then its argument prototype would still apply. */
7891 for ac_lib in '' crypt; do
7892 if test -z "$ac_lib"; then
7893 ac_res="none required"
7896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7898 if ac_fn_c_try_link "$LINENO"; then :
7899 ac_cv_search_crypt=$ac_res
7901 rm -f core conftest.err conftest.$ac_objext \
7903 if ${ac_cv_search_crypt+:} false; then :
7907 if ${ac_cv_search_crypt+:} false; then :
7910 ac_cv_search_crypt=no
7913 LIBS=$ac_func_search_save_LIBS
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
7916 $as_echo "$ac_cv_search_crypt" >&6; }
7917 ac_res=$ac_cv_search_crypt
7918 if test "$ac_res" != no; then :
7919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
7924 $as_echo_n "checking for library containing shm_open... " >&6; }
7925 if ${ac_cv_search_shm_open+:} false; then :
7926 $as_echo_n "(cached) " >&6
7928 ac_func_search_save_LIBS=$LIBS
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7932 /* Override any GCC internal prototype to avoid an error.
7933 Use char because int might match the return type of a GCC
7934 builtin and then its argument prototype would still apply. */
7947 for ac_lib in '' rt; do
7948 if test -z "$ac_lib"; then
7949 ac_res="none required"
7952 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 ac_cv_search_shm_open=$ac_res
7957 rm -f core conftest.err conftest.$ac_objext \
7959 if ${ac_cv_search_shm_open+:} false; then :
7963 if ${ac_cv_search_shm_open+:} false; then :
7966 ac_cv_search_shm_open=no
7969 LIBS=$ac_func_search_save_LIBS
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
7972 $as_echo "$ac_cv_search_shm_open" >&6; }
7973 ac_res=$ac_cv_search_shm_open
7974 if test "$ac_res" != no; then :
7975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
7980 $as_echo_n "checking for library containing shm_unlink... " >&6; }
7981 if ${ac_cv_search_shm_unlink+:} false; then :
7982 $as_echo_n "(cached) " >&6
7984 ac_func_search_save_LIBS=$LIBS
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7988 /* Override any GCC internal prototype to avoid an error.
7989 Use char because int might match the return type of a GCC
7990 builtin and then its argument prototype would still apply. */
7998 return shm_unlink ();
8003 for ac_lib in '' rt; do
8004 if test -z "$ac_lib"; then
8005 ac_res="none required"
8008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8010 if ac_fn_c_try_link "$LINENO"; then :
8011 ac_cv_search_shm_unlink=$ac_res
8013 rm -f core conftest.err conftest.$ac_objext \
8015 if ${ac_cv_search_shm_unlink+:} false; then :
8019 if ${ac_cv_search_shm_unlink+:} false; then :
8022 ac_cv_search_shm_unlink=no
8025 LIBS=$ac_func_search_save_LIBS
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
8028 $as_echo "$ac_cv_search_shm_unlink" >&6; }
8029 ac_res=$ac_cv_search_shm_unlink
8030 if test "$ac_res" != no; then :
8031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
8037 $as_echo_n "checking for library containing fdatasync... " >&6; }
8038 if ${ac_cv_search_fdatasync+:} false; then :
8039 $as_echo_n "(cached) " >&6
8041 ac_func_search_save_LIBS=$LIBS
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8045 /* Override any GCC internal prototype to avoid an error.
8046 Use char because int might match the return type of a GCC
8047 builtin and then its argument prototype would still apply. */
8055 return fdatasync ();
8060 for ac_lib in '' rt posix4; do
8061 if test -z "$ac_lib"; then
8062 ac_res="none required"
8065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8067 if ac_fn_c_try_link "$LINENO"; then :
8068 ac_cv_search_fdatasync=$ac_res
8070 rm -f core conftest.err conftest.$ac_objext \
8072 if ${ac_cv_search_fdatasync+:} false; then :
8076 if ${ac_cv_search_fdatasync+:} false; then :
8079 ac_cv_search_fdatasync=no
8082 LIBS=$ac_func_search_save_LIBS
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
8085 $as_echo "$ac_cv_search_fdatasync" >&6; }
8086 ac_res=$ac_cv_search_fdatasync
8087 if test "$ac_res" != no; then :
8088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8092 # Required for thread_test.c on Solaris 2.5:
8093 # Other ports use it too (HP-UX) so test unconditionally
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
8095 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8096 if ${ac_cv_search_gethostbyname_r+:} false; then :
8097 $as_echo_n "(cached) " >&6
8099 ac_func_search_save_LIBS=$LIBS
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8103 /* Override any GCC internal prototype to avoid an error.
8104 Use char because int might match the return type of a GCC
8105 builtin and then its argument prototype would still apply. */
8109 char gethostbyname_r ();
8113 return gethostbyname_r ();
8118 for ac_lib in '' nsl; do
8119 if test -z "$ac_lib"; then
8120 ac_res="none required"
8123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8125 if ac_fn_c_try_link "$LINENO"; then :
8126 ac_cv_search_gethostbyname_r=$ac_res
8128 rm -f core conftest.err conftest.$ac_objext \
8130 if ${ac_cv_search_gethostbyname_r+:} false; then :
8134 if ${ac_cv_search_gethostbyname_r+:} false; then :
8137 ac_cv_search_gethostbyname_r=no
8140 LIBS=$ac_func_search_save_LIBS
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
8143 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8144 ac_res=$ac_cv_search_gethostbyname_r
8145 if test "$ac_res" != no; then :
8146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
8152 $as_echo_n "checking for library containing shmget... " >&6; }
8153 if ${ac_cv_search_shmget+:} false; then :
8154 $as_echo_n "(cached) " >&6
8156 ac_func_search_save_LIBS=$LIBS
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8160 /* Override any GCC internal prototype to avoid an error.
8161 Use char because int might match the return type of a GCC
8162 builtin and then its argument prototype would still apply. */
8175 for ac_lib in '' cygipc; do
8176 if test -z "$ac_lib"; then
8177 ac_res="none required"
8180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8182 if ac_fn_c_try_link "$LINENO"; then :
8183 ac_cv_search_shmget=$ac_res
8185 rm -f core conftest.err conftest.$ac_objext \
8187 if ${ac_cv_search_shmget+:} false; then :
8191 if ${ac_cv_search_shmget+:} false; then :
8194 ac_cv_search_shmget=no
8197 LIBS=$ac_func_search_save_LIBS
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
8200 $as_echo "$ac_cv_search_shmget" >&6; }
8201 ac_res=$ac_cv_search_shmget
8202 if test "$ac_res" != no; then :
8203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8208 if test "$with_readline" = yes; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
8212 $as_echo_n "checking for library containing readline... " >&6; }
8213 if ${pgac_cv_check_readline+:} false; then :
8214 $as_echo_n "(cached) " >&6
8216 pgac_cv_check_readline=no
8217 pgac_save_LIBS=$LIBS
8218 if test x"$with_libedit_preferred" != x"yes"
8219 then READLINE_ORDER="-lreadline -ledit"
8220 else READLINE_ORDER="-ledit -lreadline"
8222 for pgac_rllib in $READLINE_ORDER ; do
8223 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8224 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8228 /* Override any GCC internal prototype to avoid an error.
8229 Use char because int might match the return type of a GCC
8230 builtin and then its argument prototype would still apply. */
8243 if ac_fn_c_try_link "$LINENO"; then :
8245 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8246 # recognize dependent libraries; assume curses is needed if we didn't
8247 # find any dependency.
8249 netbsd* | openbsd* | irix*)
8250 if test x"$pgac_lib" = x"" ; then
8251 pgac_lib=" -lcurses"
8255 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8259 rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8262 if test "$pgac_cv_check_readline" != no ; then
8266 LIBS=$pgac_save_LIBS
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
8270 $as_echo "$pgac_cv_check_readline" >&6; }
8271 if test "$pgac_cv_check_readline" != no ; then
8272 LIBS="$pgac_cv_check_readline $LIBS"
8274 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
8279 if test x"$pgac_cv_check_readline" = x"no"; then
8280 as_fn_error $? "readline library not found
8281 If you have readline already installed, see config.log for details on the
8282 failure. It is possible the compiler isn't looking in the proper directory.
8283 Use --without-readline to disable readline support." "$LINENO" 5
8287 if test "$with_zlib" = yes; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
8289 $as_echo_n "checking for inflate in -lz... " >&6; }
8290 if ${ac_cv_lib_z_inflate+:} false; then :
8291 $as_echo_n "(cached) " >&6
8293 ac_check_lib_save_LIBS=$LIBS
8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h. */
8298 /* Override any GCC internal prototype to avoid an error.
8299 Use char because int might match the return type of a GCC
8300 builtin and then its argument prototype would still apply. */
8313 if ac_fn_c_try_link "$LINENO"; then :
8314 ac_cv_lib_z_inflate=yes
8316 ac_cv_lib_z_inflate=no
8318 rm -f core conftest.err conftest.$ac_objext \
8319 conftest$ac_exeext conftest.$ac_ext
8320 LIBS=$ac_check_lib_save_LIBS
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
8323 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8324 if test "x$ac_cv_lib_z_inflate" = xyes; then :
8325 cat >>confdefs.h <<_ACEOF
8332 as_fn_error $? "zlib library not found
8333 If you have zlib already installed, see config.log for details on the
8334 failure. It is possible the compiler isn't looking in the proper directory.
8335 Use --without-zlib to disable zlib support." "$LINENO" 5
8340 if test "$enable_spinlocks" = yes; then
8342 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8346 *** Not using spinlocks will cause poor performance." >&5
8347 $as_echo "$as_me: WARNING:
8348 *** Not using spinlocks will cause poor performance." >&2;}
8351 if test "$with_gssapi" = yes ; then
8352 if test "$PORTNAME" != "win32"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
8354 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8355 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8356 $as_echo_n "(cached) " >&6
8358 ac_func_search_save_LIBS=$LIBS
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8362 /* Override any GCC internal prototype to avoid an error.
8363 Use char because int might match the return type of a GCC
8364 builtin and then its argument prototype would still apply. */
8368 char gss_init_sec_context ();
8372 return gss_init_sec_context ();
8377 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8378 if test -z "$ac_lib"; then
8379 ac_res="none required"
8382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8384 if ac_fn_c_try_link "$LINENO"; then :
8385 ac_cv_search_gss_init_sec_context=$ac_res
8387 rm -f core conftest.err conftest.$ac_objext \
8389 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8393 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8396 ac_cv_search_gss_init_sec_context=no
8399 LIBS=$ac_func_search_save_LIBS
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
8402 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8403 ac_res=$ac_cv_search_gss_init_sec_context
8404 if test "$ac_res" != no; then :
8405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8408 as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
8412 LIBS="$LIBS -lgssapi32"
8416 if test "$with_openssl" = yes ; then
8417 if test "$PORTNAME" != "win32"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8419 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8420 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
8421 $as_echo_n "(cached) " >&6
8423 ac_check_lib_save_LIBS=$LIBS
8424 LIBS="-lcrypto $LIBS"
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8428 /* Override any GCC internal prototype to avoid an error.
8429 Use char because int might match the return type of a GCC
8430 builtin and then its argument prototype would still apply. */
8434 char CRYPTO_new_ex_data ();
8438 return CRYPTO_new_ex_data ();
8443 if ac_fn_c_try_link "$LINENO"; then :
8444 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8446 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8448 rm -f core conftest.err conftest.$ac_objext \
8449 conftest$ac_exeext conftest.$ac_ext
8450 LIBS=$ac_check_lib_save_LIBS
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8453 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8454 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
8455 cat >>confdefs.h <<_ACEOF
8456 #define HAVE_LIBCRYPTO 1
8459 LIBS="-lcrypto $LIBS"
8462 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
8466 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8467 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
8468 $as_echo_n "(cached) " >&6
8470 ac_check_lib_save_LIBS=$LIBS
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8475 /* Override any GCC internal prototype to avoid an error.
8476 Use char because int might match the return type of a GCC
8477 builtin and then its argument prototype would still apply. */
8481 char SSL_library_init ();
8485 return SSL_library_init ();
8490 if ac_fn_c_try_link "$LINENO"; then :
8491 ac_cv_lib_ssl_SSL_library_init=yes
8493 ac_cv_lib_ssl_SSL_library_init=no
8495 rm -f core conftest.err conftest.$ac_objext \
8496 conftest$ac_exeext conftest.$ac_ext
8497 LIBS=$ac_check_lib_save_LIBS
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8500 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8501 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
8502 cat >>confdefs.h <<_ACEOF
8503 #define HAVE_LIBSSL 1
8509 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
8514 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
8515 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8516 $as_echo_n "(cached) " >&6
8518 ac_func_search_save_LIBS=$LIBS
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8522 /* Override any GCC internal prototype to avoid an error.
8523 Use char because int might match the return type of a GCC
8524 builtin and then its argument prototype would still apply. */
8528 char CRYPTO_new_ex_data ();
8532 return CRYPTO_new_ex_data ();
8537 for ac_lib in '' eay32 crypto; do
8538 if test -z "$ac_lib"; then
8539 ac_res="none required"
8542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8544 if ac_fn_c_try_link "$LINENO"; then :
8545 ac_cv_search_CRYPTO_new_ex_data=$ac_res
8547 rm -f core conftest.err conftest.$ac_objext \
8549 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8553 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8556 ac_cv_search_CRYPTO_new_ex_data=no
8559 LIBS=$ac_func_search_save_LIBS
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
8562 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
8563 ac_res=$ac_cv_search_CRYPTO_new_ex_data
8564 if test "$ac_res" != no; then :
8565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8568 as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
8572 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
8573 if ${ac_cv_search_SSL_library_init+:} false; then :
8574 $as_echo_n "(cached) " >&6
8576 ac_func_search_save_LIBS=$LIBS
8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8580 /* Override any GCC internal prototype to avoid an error.
8581 Use char because int might match the return type of a GCC
8582 builtin and then its argument prototype would still apply. */
8586 char SSL_library_init ();
8590 return SSL_library_init ();
8595 for ac_lib in '' ssleay32 ssl; do
8596 if test -z "$ac_lib"; then
8597 ac_res="none required"
8600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8602 if ac_fn_c_try_link "$LINENO"; then :
8603 ac_cv_search_SSL_library_init=$ac_res
8605 rm -f core conftest.err conftest.$ac_objext \
8607 if ${ac_cv_search_SSL_library_init+:} false; then :
8611 if ${ac_cv_search_SSL_library_init+:} false; then :
8614 ac_cv_search_SSL_library_init=no
8617 LIBS=$ac_func_search_save_LIBS
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
8620 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
8621 ac_res=$ac_cv_search_SSL_library_init
8622 if test "$ac_res" != no; then :
8623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8626 as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
8630 for ac_func in SSL_get_current_compression
8632 ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
8633 if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
8634 cat >>confdefs.h <<_ACEOF
8635 #define HAVE_SSL_GET_CURRENT_COMPRESSION 1
8643 if test "$with_pam" = yes ; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8645 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8646 if ${ac_cv_lib_pam_pam_start+:} false; then :
8647 $as_echo_n "(cached) " >&6
8649 ac_check_lib_save_LIBS=$LIBS
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8654 /* Override any GCC internal prototype to avoid an error.
8655 Use char because int might match the return type of a GCC
8656 builtin and then its argument prototype would still apply. */
8664 return pam_start ();
8669 if ac_fn_c_try_link "$LINENO"; then :
8670 ac_cv_lib_pam_pam_start=yes
8672 ac_cv_lib_pam_pam_start=no
8674 rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 LIBS=$ac_check_lib_save_LIBS
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8679 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8680 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8681 cat >>confdefs.h <<_ACEOF
8682 #define HAVE_LIBPAM 1
8688 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
8693 if test "$with_libxml" = yes ; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
8695 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
8696 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
8697 $as_echo_n "(cached) " >&6
8699 ac_check_lib_save_LIBS=$LIBS
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8704 /* Override any GCC internal prototype to avoid an error.
8705 Use char because int might match the return type of a GCC
8706 builtin and then its argument prototype would still apply. */
8710 char xmlSaveToBuffer ();
8714 return xmlSaveToBuffer ();
8719 if ac_fn_c_try_link "$LINENO"; then :
8720 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8722 ac_cv_lib_xml2_xmlSaveToBuffer=no
8724 rm -f core conftest.err conftest.$ac_objext \
8725 conftest$ac_exeext conftest.$ac_ext
8726 LIBS=$ac_check_lib_save_LIBS
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8729 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8730 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
8731 cat >>confdefs.h <<_ACEOF
8732 #define HAVE_LIBXML2 1
8738 as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
8743 if test "$with_libxslt" = yes ; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
8745 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
8746 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
8747 $as_echo_n "(cached) " >&6
8749 ac_check_lib_save_LIBS=$LIBS
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8754 /* Override any GCC internal prototype to avoid an error.
8755 Use char because int might match the return type of a GCC
8756 builtin and then its argument prototype would still apply. */
8760 char xsltCleanupGlobals ();
8764 return xsltCleanupGlobals ();
8769 if ac_fn_c_try_link "$LINENO"; then :
8770 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8772 ac_cv_lib_xslt_xsltCleanupGlobals=no
8774 rm -f core conftest.err conftest.$ac_objext \
8775 conftest$ac_exeext conftest.$ac_ext
8776 LIBS=$ac_check_lib_save_LIBS
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8779 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8780 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
8781 cat >>confdefs.h <<_ACEOF
8782 #define HAVE_LIBXSLT 1
8788 as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
8793 # for contrib/sepgsql
8794 if test "$with_selinux" = yes; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
8796 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
8797 if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
8798 $as_echo_n "(cached) " >&6
8800 ac_check_lib_save_LIBS=$LIBS
8801 LIBS="-lselinux $LIBS"
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8805 /* Override any GCC internal prototype to avoid an error.
8806 Use char because int might match the return type of a GCC
8807 builtin and then its argument prototype would still apply. */
8811 char security_compute_create_name ();
8815 return security_compute_create_name ();
8820 if ac_fn_c_try_link "$LINENO"; then :
8821 ac_cv_lib_selinux_security_compute_create_name=yes
8823 ac_cv_lib_selinux_security_compute_create_name=no
8825 rm -f core conftest.err conftest.$ac_objext \
8826 conftest$ac_exeext conftest.$ac_ext
8827 LIBS=$ac_check_lib_save_LIBS
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
8830 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
8831 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
8832 cat >>confdefs.h <<_ACEOF
8833 #define HAVE_LIBSELINUX 1
8836 LIBS="-lselinux $LIBS"
8839 as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
8844 # for contrib/uuid-ossp
8845 if test "$with_uuid" = bsd ; then
8846 # On BSD, the UUID functions are in libc
8847 ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
8848 if test "x$ac_cv_func_uuid_to_string" = xyes; then :
8851 as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
8854 elif test "$with_uuid" = e2fs ; then
8855 # On OS X, the UUID functions are in libc
8856 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
8857 if test "x$ac_cv_func_uuid_generate" = xyes; then :
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
8861 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
8862 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
8863 $as_echo_n "(cached) " >&6
8865 ac_check_lib_save_LIBS=$LIBS
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8870 /* Override any GCC internal prototype to avoid an error.
8871 Use char because int might match the return type of a GCC
8872 builtin and then its argument prototype would still apply. */
8876 char uuid_generate ();
8880 return uuid_generate ();
8885 if ac_fn_c_try_link "$LINENO"; then :
8886 ac_cv_lib_uuid_uuid_generate=yes
8888 ac_cv_lib_uuid_uuid_generate=no
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 LIBS=$ac_check_lib_save_LIBS
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
8895 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
8896 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
8899 as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
8904 elif test "$with_uuid" = ossp ; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
8906 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
8907 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
8908 $as_echo_n "(cached) " >&6
8910 ac_check_lib_save_LIBS=$LIBS
8911 LIBS="-lossp-uuid $LIBS"
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8915 /* Override any GCC internal prototype to avoid an error.
8916 Use char because int might match the return type of a GCC
8917 builtin and then its argument prototype would still apply. */
8921 char uuid_export ();
8925 return uuid_export ();
8930 if ac_fn_c_try_link "$LINENO"; then :
8931 ac_cv_lib_ossp_uuid_uuid_export=yes
8933 ac_cv_lib_ossp_uuid_uuid_export=no
8935 rm -f core conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext conftest.$ac_ext
8937 LIBS=$ac_check_lib_save_LIBS
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8940 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8941 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
8942 UUID_LIBS="-lossp-uuid"
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
8945 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
8946 if ${ac_cv_lib_uuid_uuid_export+:} false; then :
8947 $as_echo_n "(cached) " >&6
8949 ac_check_lib_save_LIBS=$LIBS
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8954 /* Override any GCC internal prototype to avoid an error.
8955 Use char because int might match the return type of a GCC
8956 builtin and then its argument prototype would still apply. */
8960 char uuid_export ();
8964 return uuid_export ();
8969 if ac_fn_c_try_link "$LINENO"; then :
8970 ac_cv_lib_uuid_uuid_export=yes
8972 ac_cv_lib_uuid_uuid_export=no
8974 rm -f core conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976 LIBS=$ac_check_lib_save_LIBS
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
8979 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
8980 if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
8983 as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8997 $as_echo_n "checking for ANSI C header files... " >&6; }
8998 if ${ac_cv_header_stdc+:} false; then :
8999 $as_echo_n "(cached) " >&6
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9016 if ac_fn_c_try_compile "$LINENO"; then :
9017 ac_cv_header_stdc=yes
9019 ac_cv_header_stdc=no
9021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023 if test $ac_cv_header_stdc = yes; then
9024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9031 $EGREP "memchr" >/dev/null 2>&1; then :
9034 ac_cv_header_stdc=no
9040 if test $ac_cv_header_stdc = yes; then
9041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9048 $EGREP "free" >/dev/null 2>&1; then :
9051 ac_cv_header_stdc=no
9057 if test $ac_cv_header_stdc = yes; then
9058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9059 if test "$cross_compiling" = yes; then :
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9066 #if ((' ' & 0x0FF) == 0x020)
9067 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9068 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9070 # define ISLOWER(c) \
9071 (('a' <= (c) && (c) <= 'i') \
9072 || ('j' <= (c) && (c) <= 'r') \
9073 || ('s' <= (c) && (c) <= 'z'))
9074 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9077 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9082 for (i = 0; i < 256; i++)
9083 if (XOR (islower (i), ISLOWER (i))
9084 || toupper (i) != TOUPPER (i))
9089 if ac_fn_c_try_run "$LINENO"; then :
9092 ac_cv_header_stdc=no
9094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9095 conftest.$ac_objext conftest.beam conftest.$ac_ext
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9101 $as_echo "$ac_cv_header_stdc" >&6; }
9102 if test $ac_cv_header_stdc = yes; then
9104 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9108 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9109 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9110 inttypes.h stdint.h unistd.h
9112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9113 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9115 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9116 cat >>confdefs.h <<_ACEOF
9117 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9125 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.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
9127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9128 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9129 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9130 cat >>confdefs.h <<_ACEOF
9131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9139 # On BSD, test for net/if.h will fail unless sys/socket.h
9140 # is included first.
9141 for ac_header in net/if.h
9143 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9144 #ifdef HAVE_SYS_SOCKET_H
9145 #include <sys/socket.h>
9149 if test "x$ac_cv_header_net_if_h" = xyes; then :
9150 cat >>confdefs.h <<_ACEOF
9151 #define HAVE_NET_IF_H 1
9159 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
9160 # is included first.
9161 for ac_header in sys/ucred.h
9163 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
9164 #include <sys/param.h>
9167 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
9168 cat >>confdefs.h <<_ACEOF
9169 #define HAVE_SYS_UCRED_H 1
9177 # At least on IRIX, test for netinet/tcp.h will fail unless
9178 # netinet/in.h is included first.
9179 for ac_header in netinet/in.h
9181 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
9182 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
9183 cat >>confdefs.h <<_ACEOF
9184 #define HAVE_NETINET_IN_H 1
9191 for ac_header in netinet/tcp.h
9193 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
9194 #ifdef HAVE_NETINET_IN_H
9195 #include <netinet/in.h>
9199 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
9200 cat >>confdefs.h <<_ACEOF
9201 #define HAVE_NETINET_TCP_H 1
9209 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9210 for ac_header in readline/readline.h
9212 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
9213 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
9214 cat >>confdefs.h <<_ACEOF
9215 #define HAVE_READLINE_READLINE_H 1
9219 for ac_header in readline.h
9221 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
9222 if test "x$ac_cv_header_readline_h" = xyes; then :
9223 cat >>confdefs.h <<_ACEOF
9224 #define HAVE_READLINE_H 1
9228 as_fn_error $? "readline header not found
9229 If you have readline already installed, see config.log for details on the
9230 failure. It is possible the compiler isn't looking in the proper directory.
9231 Use --without-readline to disable readline support." "$LINENO" 5
9240 for ac_header in readline/history.h
9242 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
9243 if test "x$ac_cv_header_readline_history_h" = xyes; then :
9244 cat >>confdefs.h <<_ACEOF
9245 #define HAVE_READLINE_HISTORY_H 1
9249 for ac_header in history.h
9251 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
9252 if test "x$ac_cv_header_history_h" = xyes; then :
9253 cat >>confdefs.h <<_ACEOF
9254 #define HAVE_HISTORY_H 1
9258 as_fn_error $? "history header not found
9259 If you have readline already installed, see config.log for details on the
9260 failure. It is possible the compiler isn't looking in the proper directory.
9261 Use --without-readline to disable readline support." "$LINENO" 5
9272 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9273 # Some installations of libedit usurp /usr/include/readline/, which seems
9274 # bad practice, since in combined installations readline will have its headers
9275 # there. We might have to resort to AC_EGREP checks to make sure we found
9276 # the proper header...
9277 for ac_header in editline/readline.h
9279 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
9280 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
9281 cat >>confdefs.h <<_ACEOF
9282 #define HAVE_EDITLINE_READLINE_H 1
9286 for ac_header in readline.h
9288 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
9289 if test "x$ac_cv_header_readline_h" = xyes; then :
9290 cat >>confdefs.h <<_ACEOF
9291 #define HAVE_READLINE_H 1
9295 for ac_header in readline/readline.h
9297 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
9298 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
9299 cat >>confdefs.h <<_ACEOF
9300 #define HAVE_READLINE_READLINE_H 1
9304 as_fn_error $? "readline header not found
9305 If you have libedit already installed, see config.log for details on the
9306 failure. It is possible the compiler isn't looking in the proper directory.
9307 Use --without-readline to disable libedit support." "$LINENO" 5
9320 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9321 # not be there at all. Hence, don't complain if not found. We must check
9322 # though, since in yet other versions it is an independent header.
9323 for ac_header in editline/history.h
9325 ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
9326 if test "x$ac_cv_header_editline_history_h" = xyes; then :
9327 cat >>confdefs.h <<_ACEOF
9328 #define HAVE_EDITLINE_HISTORY_H 1
9332 for ac_header in history.h
9334 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
9335 if test "x$ac_cv_header_history_h" = xyes; then :
9336 cat >>confdefs.h <<_ACEOF
9337 #define HAVE_HISTORY_H 1
9341 for ac_header in readline/history.h
9343 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
9344 if test "x$ac_cv_header_readline_history_h" = xyes; then :
9345 cat >>confdefs.h <<_ACEOF
9346 #define HAVE_READLINE_HISTORY_H 1
9363 if test "$with_zlib" = yes; then
9364 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9365 if test "x$ac_cv_header_zlib_h" = xyes; then :
9368 as_fn_error $? "zlib header not found
9369 If you have zlib already installed, see config.log for details on the
9370 failure. It is possible the compiler isn't looking in the proper directory.
9371 Use --without-zlib to disable zlib support." "$LINENO" 5
9377 if test "$with_gssapi" = yes ; then
9378 for ac_header in gssapi/gssapi.h
9380 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
9381 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
9382 cat >>confdefs.h <<_ACEOF
9383 #define HAVE_GSSAPI_GSSAPI_H 1
9387 for ac_header in gssapi.h
9389 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
9390 if test "x$ac_cv_header_gssapi_h" = xyes; then :
9391 cat >>confdefs.h <<_ACEOF
9392 #define HAVE_GSSAPI_H 1
9396 as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5
9407 if test "$with_openssl" = yes ; then
9408 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
9409 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
9412 as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
9416 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
9417 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
9420 as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
9426 if test "$with_pam" = yes ; then
9427 for ac_header in security/pam_appl.h
9429 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
9430 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
9431 cat >>confdefs.h <<_ACEOF
9432 #define HAVE_SECURITY_PAM_APPL_H 1
9436 for ac_header in pam/pam_appl.h
9438 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
9439 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
9440 cat >>confdefs.h <<_ACEOF
9441 #define HAVE_PAM_PAM_APPL_H 1
9445 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
9456 if test "$with_libxml" = yes ; then
9457 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9458 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
9461 as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5
9467 if test "$with_libxslt" = yes ; then
9468 ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
9469 if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
9472 as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
9478 if test "$with_ldap" = yes ; then
9479 if test "$PORTNAME" != "win32"; then
9480 for ac_header in ldap.h
9482 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
9483 if test "x$ac_cv_header_ldap_h" = xyes; then :
9484 cat >>confdefs.h <<_ACEOF
9485 #define HAVE_LDAP_H 1
9489 as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
9495 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
9496 if ${pgac_cv_ldap_safe+:} false; then :
9497 $as_echo_n "(cached) " >&6
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9502 #if !defined(LDAP_VENDOR_VERSION) || \
9503 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
9504 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
9515 if ac_fn_c_try_compile "$LINENO"; then :
9516 pgac_cv_ldap_safe=yes
9518 pgac_cv_ldap_safe=no
9520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
9523 $as_echo "$pgac_cv_ldap_safe" >&6; }
9525 if test "$pgac_cv_ldap_safe" != yes; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9527 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
9528 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
9529 *** also uses LDAP will crash on exit." >&5
9530 $as_echo "$as_me: WARNING:
9531 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
9532 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
9533 *** also uses LDAP will crash on exit." >&2;}
9536 for ac_header in winldap.h
9538 ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
9539 #include <windows.h>
9542 if test "x$ac_cv_header_winldap_h" = xyes; then :
9543 cat >>confdefs.h <<_ACEOF
9544 #define HAVE_WINLDAP_H 1
9548 as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
9556 if test "$with_bonjour" = yes ; then
9557 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9558 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9561 as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
9567 # for contrib/uuid-ossp
9568 if test "$with_uuid" = bsd ; then
9569 for ac_header in uuid.h
9571 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
9572 if test "x$ac_cv_header_uuid_h" = xyes; then :
9573 cat >>confdefs.h <<_ACEOF
9574 #define HAVE_UUID_H 1
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9582 $EGREP "uuid_to_string" >/dev/null 2>&1; then :
9585 as_fn_error $? "header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
9590 as_fn_error $? "header file <uuid.h> is required for BSD UUID" "$LINENO" 5
9595 elif test "$with_uuid" = e2fs ; then
9596 for ac_header in uuid/uuid.h
9598 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
9599 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
9600 cat >>confdefs.h <<_ACEOF
9601 #define HAVE_UUID_UUID_H 1
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605 #include <uuid/uuid.h>
9608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9609 $EGREP "uuid_generate" >/dev/null 2>&1; then :
9612 as_fn_error $? "header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
9617 for ac_header in uuid.h
9619 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
9620 if test "x$ac_cv_header_uuid_h" = xyes; then :
9621 cat >>confdefs.h <<_ACEOF
9622 #define HAVE_UUID_H 1
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9630 $EGREP "uuid_generate" >/dev/null 2>&1; then :
9633 as_fn_error $? "header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
9638 as_fn_error $? "header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
9647 elif test "$with_uuid" = ossp ; then
9648 for ac_header in ossp/uuid.h
9650 ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
9651 if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
9652 cat >>confdefs.h <<_ACEOF
9653 #define HAVE_OSSP_UUID_H 1
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657 #include <ossp/uuid.h>
9660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9661 $EGREP "uuid_export" >/dev/null 2>&1; then :
9664 as_fn_error $? "header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
9669 for ac_header in uuid.h
9671 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
9672 if test "x$ac_cv_header_uuid_h" = xyes; then :
9673 cat >>confdefs.h <<_ACEOF
9674 #define HAVE_UUID_H 1
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9682 $EGREP "uuid_export" >/dev/null 2>&1; then :
9685 as_fn_error $? "header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
9690 as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
9701 if test "$PORTNAME" = "win32" ; then
9702 for ac_header in crtdefs.h
9704 ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
9705 if test "x$ac_cv_header_crtdefs_h" = xyes; then :
9706 cat >>confdefs.h <<_ACEOF
9707 #define HAVE_CRTDEFS_H 1
9717 ## Types, structures, compiler characteristics
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9721 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9722 if ${ac_cv_c_bigendian+:} false; then :
9723 $as_echo_n "(cached) " >&6
9725 ac_cv_c_bigendian=unknown
9726 # See if we're dealing with a universal compiler.
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729 #ifndef __APPLE_CC__
9730 not a universal capable compiler
9735 if ac_fn_c_try_compile "$LINENO"; then :
9737 # Check for potential -arch flags. It is not universal unless
9738 # there are at least two -arch flags with different values.
9741 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9742 if test -n "$ac_prev"; then
9744 i?86 | x86_64 | ppc | ppc64)
9745 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9748 ac_cv_c_bigendian=universal
9754 elif test "x$ac_word" = "x-arch"; then
9759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760 if test $ac_cv_c_bigendian = unknown; then
9761 # See if sys/param.h defines the BYTE_ORDER macro.
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 #include <sys/types.h>
9765 #include <sys/param.h>
9770 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9771 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9780 if ac_fn_c_try_compile "$LINENO"; then :
9781 # It does; now see whether it defined to BIG_ENDIAN or not.
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9784 #include <sys/types.h>
9785 #include <sys/param.h>
9790 #if BYTE_ORDER != BIG_ENDIAN
9798 if ac_fn_c_try_compile "$LINENO"; then :
9799 ac_cv_c_bigendian=yes
9801 ac_cv_c_bigendian=no
9803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 if test $ac_cv_c_bigendian = unknown; then
9808 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9816 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9824 if ac_fn_c_try_compile "$LINENO"; then :
9825 # It does; now see whether it defined to _BIG_ENDIAN or not.
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9841 if ac_fn_c_try_compile "$LINENO"; then :
9842 ac_cv_c_bigendian=yes
9844 ac_cv_c_bigendian=no
9846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9850 if test $ac_cv_c_bigendian = unknown; then
9851 # Compile a test program.
9852 if test "$cross_compiling" = yes; then :
9853 # Try to guess by grepping values from an object file.
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9856 short int ascii_mm[] =
9857 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9858 short int ascii_ii[] =
9859 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9860 int use_ascii (int i) {
9861 return ascii_mm[i] + ascii_ii[i];
9863 short int ebcdic_ii[] =
9864 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9865 short int ebcdic_mm[] =
9866 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9867 int use_ebcdic (int i) {
9868 return ebcdic_mm[i] + ebcdic_ii[i];
9875 return use_ascii (foo) == use_ebcdic (foo);
9880 if ac_fn_c_try_compile "$LINENO"; then :
9881 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9882 ac_cv_c_bigendian=yes
9884 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9885 if test "$ac_cv_c_bigendian" = unknown; then
9886 ac_cv_c_bigendian=no
9888 # finding both strings is unlikely to happen, but who knows?
9889 ac_cv_c_bigendian=unknown
9893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9897 $ac_includes_default
9902 /* Are we little or big endian? From Harbison&Steele. */
9906 char c[sizeof (long int)];
9909 return u.c[sizeof (long int) - 1] == 1;
9915 if ac_fn_c_try_run "$LINENO"; then :
9916 ac_cv_c_bigendian=no
9918 ac_cv_c_bigendian=yes
9920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9921 conftest.$ac_objext conftest.beam conftest.$ac_ext
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9927 $as_echo "$ac_cv_c_bigendian" >&6; }
9928 case $ac_cv_c_bigendian in #(
9930 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9936 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9940 as_fn_error $? "unknown endianness
9941 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9945 $as_echo_n "checking for inline... " >&6; }
9946 if ${ac_cv_c_inline+:} false; then :
9947 $as_echo_n "(cached) " >&6
9950 for ac_kw in inline __inline__ __inline; do
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9955 static $ac_kw foo_t static_foo () {return 0; }
9956 $ac_kw foo_t foo () {return 0; }
9960 if ac_fn_c_try_compile "$LINENO"; then :
9961 ac_cv_c_inline=$ac_kw
9963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 test "$ac_cv_c_inline" != no && break
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9969 $as_echo "$ac_cv_c_inline" >&6; }
9971 case $ac_cv_c_inline in
9974 case $ac_cv_c_inline in
9976 *) ac_val=$ac_cv_c_inline;;
9978 cat >>confdefs.h <<_ACEOF
9980 #define inline $ac_val
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quiet inline (no complaint if unreferenced)" >&5
9987 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
9988 if ${pgac_cv_c_inline_quietly+:} false; then :
9989 $as_echo_n "(cached) " >&6
9991 pgac_cv_c_inline_quietly=no
9992 if test "$ac_cv_c_inline" != no; then
9993 pgac_c_inline_save_werror=$ac_c_werror_flag
9994 ac_c_werror_flag=yes
9995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996 /* end confdefs.h. */
9997 #include "$srcdir/config/test_quiet_include.h"
10006 if ac_fn_c_try_link "$LINENO"; then :
10007 pgac_cv_c_inline_quietly=yes
10009 rm -f core conftest.err conftest.$ac_objext \
10010 conftest$ac_exeext conftest.$ac_ext
10011 ac_c_werror_flag=$pgac_c_inline_save_werror
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_inline_quietly" >&5
10015 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
10016 if test "$pgac_cv_c_inline_quietly" != no; then
10018 cat >>confdefs.h <<_ACEOF
10019 #define PG_USE_INLINE 1
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
10026 $as_echo_n "checking for flexible array members... " >&6; }
10027 if ${ac_cv_c_flexmember+:} false; then :
10028 $as_echo_n "(cached) " >&6
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032 #include <stdlib.h>
10034 #include <stddef.h>
10035 struct s { int n; double d[]; };
10039 int m = getchar ();
10040 struct s *p = malloc (offsetof (struct s, d)
10041 + m * sizeof (double));
10043 return p->d != (double *) NULL;
10048 if ac_fn_c_try_compile "$LINENO"; then :
10049 ac_cv_c_flexmember=yes
10051 ac_cv_c_flexmember=no
10053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
10056 $as_echo "$ac_cv_c_flexmember" >&6; }
10057 if test $ac_cv_c_flexmember = yes; then
10059 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
10062 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
10067 $as_echo_n "checking for signed types... " >&6; }
10068 if ${pgac_cv_c_signed+:} false; then :
10069 $as_echo_n "(cached) " >&6
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10077 signed char c; signed short s; signed int i;
10082 if ac_fn_c_try_compile "$LINENO"; then :
10083 pgac_cv_c_signed=yes
10085 pgac_cv_c_signed=no
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
10090 $as_echo "$pgac_cv_c_signed" >&6; }
10091 if test x"$pgac_cv_c_signed" = xno ; then
10093 $as_echo "#define signed /**/" >>confdefs.h
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
10097 $as_echo_n "checking for __func__... " >&6; }
10098 if ${pgac_cv_funcname_func_support+:} false; then :
10099 $as_echo_n "(cached) " >&6
10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102 /* end confdefs.h. */
10107 printf("%s\n", __func__);
10112 if ac_fn_c_try_compile "$LINENO"; then :
10113 pgac_cv_funcname_func_support=yes
10115 pgac_cv_funcname_func_support=no
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
10120 $as_echo "$pgac_cv_funcname_func_support" >&6; }
10121 if test x"$pgac_cv_funcname_func_support" = xyes ; then
10123 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
10127 $as_echo_n "checking for __FUNCTION__... " >&6; }
10128 if ${pgac_cv_funcname_function_support+:} false; then :
10129 $as_echo_n "(cached) " >&6
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10137 printf("%s\n", __FUNCTION__);
10142 if ac_fn_c_try_compile "$LINENO"; then :
10143 pgac_cv_funcname_function_support=yes
10145 pgac_cv_funcname_function_support=no
10147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
10150 $as_echo "$pgac_cv_funcname_function_support" >&6; }
10151 if test x"$pgac_cv_funcname_function_support" = xyes ; then
10153 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
10158 $as_echo_n "checking for _Static_assert... " >&6; }
10159 if ${pgac_cv__static_assert+:} false; then :
10160 $as_echo_n "(cached) " >&6
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10168 ({ _Static_assert(1, "foo"); })
10173 if ac_fn_c_try_link "$LINENO"; then :
10174 pgac_cv__static_assert=yes
10176 pgac_cv__static_assert=no
10178 rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
10182 $as_echo "$pgac_cv__static_assert" >&6; }
10183 if test x"$pgac_cv__static_assert" = xyes ; then
10185 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
10189 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
10190 if ${pgac_cv__types_compatible+:} false; then :
10191 $as_echo_n "(cached) " >&6
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10199 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
10204 if ac_fn_c_try_compile "$LINENO"; then :
10205 pgac_cv__types_compatible=yes
10207 pgac_cv__types_compatible=no
10209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
10212 $as_echo "$pgac_cv__types_compatible" >&6; }
10213 if test x"$pgac_cv__types_compatible" = xyes ; then
10215 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
10219 $as_echo_n "checking for __builtin_constant_p... " >&6; }
10220 if ${pgac_cv__builtin_constant_p+:} false; then :
10221 $as_echo_n "(cached) " >&6
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 static int x; static int y[__builtin_constant_p(x) ? x : 1];
10234 if ac_fn_c_try_compile "$LINENO"; then :
10235 pgac_cv__builtin_constant_p=yes
10237 pgac_cv__builtin_constant_p=no
10239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
10242 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
10243 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
10245 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
10249 $as_echo_n "checking for __builtin_unreachable... " >&6; }
10250 if ${pgac_cv__builtin_unreachable+:} false; then :
10251 $as_echo_n "(cached) " >&6
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10259 __builtin_unreachable();
10264 if ac_fn_c_try_link "$LINENO"; then :
10265 pgac_cv__builtin_unreachable=yes
10267 pgac_cv__builtin_unreachable=no
10269 rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
10273 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
10274 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
10276 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __VA_ARGS__" >&5
10280 $as_echo_n "checking for __VA_ARGS__... " >&6; }
10281 if ${pgac_cv__va_args+:} false; then :
10282 $as_echo_n "(cached) " >&6
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10290 #define debug(...) fprintf(stderr, __VA_ARGS__)
10291 debug("%s", "blarg");
10297 if ac_fn_c_try_compile "$LINENO"; then :
10298 pgac_cv__va_args=yes
10300 pgac_cv__va_args=no
10302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__va_args" >&5
10305 $as_echo "$pgac_cv__va_args" >&6; }
10306 if test x"$pgac_cv__va_args" = xyes ; then
10308 $as_echo "#define HAVE__VA_ARGS 1" >>confdefs.h
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10312 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10313 if ${ac_cv_struct_tm+:} false; then :
10314 $as_echo_n "(cached) " >&6
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10318 #include <sys/types.h>
10325 int *p = &tm.tm_sec;
10331 if ac_fn_c_try_compile "$LINENO"; then :
10332 ac_cv_struct_tm=time.h
10334 ac_cv_struct_tm=sys/time.h
10336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10339 $as_echo "$ac_cv_struct_tm" >&6; }
10340 if test $ac_cv_struct_tm = sys/time.h; then
10342 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10346 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
10347 #include <$ac_cv_struct_tm>
10350 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
10352 cat >>confdefs.h <<_ACEOF
10353 #define HAVE_STRUCT_TM_TM_ZONE 1
10359 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10361 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
10365 $as_echo_n "checking for tzname... " >&6; }
10366 if ${ac_cv_var_tzname+:} false; then :
10367 $as_echo_n "(cached) " >&6
10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h. */
10372 #ifndef tzname /* For SGI. */
10373 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10384 if ac_fn_c_try_link "$LINENO"; then :
10385 ac_cv_var_tzname=yes
10387 ac_cv_var_tzname=no
10389 rm -f core conftest.err conftest.$ac_objext \
10390 conftest$ac_exeext conftest.$ac_ext
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
10393 $as_echo "$ac_cv_var_tzname" >&6; }
10394 if test $ac_cv_var_tzname = yes; then
10396 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
10400 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
10401 #include <sys/ipc.h>
10402 #include <sys/sem.h>
10404 if test "x$ac_cv_type_union_semun" = xyes; then :
10406 cat >>confdefs.h <<_ACEOF
10407 #define HAVE_UNION_SEMUN 1
10413 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
10414 #ifdef HAVE_SYS_UN_H
10415 #include <sys/un.h>
10419 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
10421 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
10425 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
10426 #ifdef HAVE_SYS_SOCKET_H
10427 #include <sys/socket.h>
10431 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
10433 cat >>confdefs.h <<_ACEOF
10434 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10440 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
10441 #ifdef HAVE_SYS_SOCKET_H
10442 #include <sys/socket.h>
10446 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
10448 cat >>confdefs.h <<_ACEOF
10449 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10454 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
10455 #ifdef HAVE_SYS_SOCKET_H
10456 #include <sys/socket.h>
10460 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
10462 cat >>confdefs.h <<_ACEOF
10463 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10468 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
10469 #ifdef HAVE_SYS_SOCKET_H
10470 #include <sys/socket.h>
10474 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
10476 cat >>confdefs.h <<_ACEOF
10477 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10482 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
10483 #ifdef HAVE_SYS_SOCKET_H
10484 #include <sys/socket.h>
10488 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
10490 cat >>confdefs.h <<_ACEOF
10491 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10496 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10497 #ifdef HAVE_SYS_SOCKET_H
10498 #include <sys/socket.h>
10502 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10504 cat >>confdefs.h <<_ACEOF
10505 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10511 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
10512 #include <sys/socket.h>
10516 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
10518 cat >>confdefs.h <<_ACEOF
10519 #define HAVE_STRUCT_ADDRINFO 1
10526 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10527 if test "x$ac_cv_type_intptr_t" = xyes; then :
10529 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
10532 for ac_type in 'int' 'long int' 'long long int'; do
10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534 /* end confdefs.h. */
10535 $ac_includes_default
10539 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
10540 test_array [0] = 0;
10541 return test_array [0];
10547 if ac_fn_c_try_compile "$LINENO"; then :
10549 cat >>confdefs.h <<_ACEOF
10550 #define intptr_t $ac_type
10555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10556 test -z "$ac_type" && break
10562 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10563 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10565 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
10568 for ac_type in 'unsigned int' 'unsigned long int' \
10569 'unsigned long long int'; do
10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h. */
10572 $ac_includes_default
10576 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
10577 test_array [0] = 0;
10578 return test_array [0];
10584 if ac_fn_c_try_compile "$LINENO"; then :
10586 cat >>confdefs.h <<_ACEOF
10587 #define uintptr_t $ac_type
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 test -z "$ac_type" && break
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10600 $as_echo_n "checking for unsigned long long int... " >&6; }
10601 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
10602 $as_echo_n "(cached) " >&6
10604 ac_cv_type_unsigned_long_long_int=yes
10605 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10609 /* For now, do not test the preprocessor; as of 2007 there are too many
10610 implementations with broken preprocessors. Perhaps this can
10611 be revisited in 2012. In the meantime, code should not expect
10612 #if to work with literals wider than 32 bits. */
10613 /* Test literals. */
10614 long long int ll = 9223372036854775807ll;
10615 long long int nll = -9223372036854775807LL;
10616 unsigned long long int ull = 18446744073709551615ULL;
10617 /* Test constant expressions. */
10618 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10620 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10626 /* Test availability of runtime routines for shift and division. */
10627 long long int llmax = 9223372036854775807ll;
10628 unsigned long long int ullmax = 18446744073709551615ull;
10629 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10630 | (llmax / ll) | (llmax % ll)
10631 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10632 | (ullmax / ull) | (ullmax % ull));
10638 if ac_fn_c_try_link "$LINENO"; then :
10641 ac_cv_type_unsigned_long_long_int=no
10643 rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10648 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10649 if test $ac_cv_type_unsigned_long_long_int = yes; then
10651 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10658 $as_echo_n "checking for long long int... " >&6; }
10659 if ${ac_cv_type_long_long_int+:} false; then :
10660 $as_echo_n "(cached) " >&6
10662 ac_cv_type_long_long_int=yes
10663 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10664 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10665 if test $ac_cv_type_long_long_int = yes; then
10666 if test "$cross_compiling" = yes; then :
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 #include <limits.h>
10674 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10675 # define LLONG_MAX (HALF - 1 + HALF)
10680 long long int n = 1;
10684 long long int m = n << i;
10687 if (LLONG_MAX / 2 < m)
10695 if ac_fn_c_try_run "$LINENO"; then :
10698 ac_cv_type_long_long_int=no
10700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10701 conftest.$ac_objext conftest.beam conftest.$ac_ext
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10708 $as_echo "$ac_cv_type_long_long_int" >&6; }
10709 if test $ac_cv_type_long_long_int = yes; then
10711 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
10717 $as_echo_n "checking for locale_t... " >&6; }
10718 if ${pgac_cv_type_locale_t+:} false; then :
10719 $as_echo_n "(cached) " >&6
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10723 #include <locale.h>
10733 if ac_fn_c_try_compile "$LINENO"; then :
10734 pgac_cv_type_locale_t=yes
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10738 #include <xlocale.h>
10748 if ac_fn_c_try_compile "$LINENO"; then :
10749 pgac_cv_type_locale_t='yes (in xlocale.h)'
10751 pgac_cv_type_locale_t=no
10753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
10758 $as_echo "$pgac_cv_type_locale_t" >&6; }
10759 if test "$pgac_cv_type_locale_t" != no; then
10761 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
10764 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
10766 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
10770 ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
10771 #include <sys/param.h>
10772 #ifdef HAVE_SYS_UCRED_H
10773 #include <sys/ucred.h>
10776 if test "x$ac_cv_type_struct_cmsgcred" = xyes; then :
10778 cat >>confdefs.h <<_ACEOF
10779 #define HAVE_STRUCT_CMSGCRED 1
10786 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
10787 #include <getopt.h>
10790 if test "x$ac_cv_type_struct_option" = xyes; then :
10792 cat >>confdefs.h <<_ACEOF
10793 #define HAVE_STRUCT_OPTION 1
10800 if test "$with_zlib" = yes; then
10801 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10802 # did not). While we could work around the lack of z_streamp, it
10803 # seems unwise to encourage people to use such old zlib versions...
10804 ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
10806 if test "x$ac_cv_type_z_streamp" = xyes; then :
10809 as_fn_error $? "zlib version is too old
10810 Use --without-zlib to disable zlib support." "$LINENO" 5
10815 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
10819 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10826 int a = 0; int *p = &a; int r;
10827 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
10832 if ac_fn_c_try_compile "$LINENO"; then :
10833 pgac_cv_have_ppc_mutex_hint=yes
10835 pgac_cv_have_ppc_mutex_hint=no
10837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
10839 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
10840 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
10842 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
10848 # Check largefile support. You might think this is a system service not a
10849 # compiler characteristic, but you'd be wrong. We must check this before
10850 # probing existence of related functions such as fseeko, since the largefile
10851 # defines can affect what is generated for that.
10852 if test "$PORTNAME" != "win32"; then
10853 # Check whether --enable-largefile was given.
10854 if test "${enable_largefile+set}" = set; then :
10855 enableval=$enable_largefile;
10858 if test "$enable_largefile" != no; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10861 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10862 if ${ac_cv_sys_largefile_CC+:} false; then :
10863 $as_echo_n "(cached) " >&6
10865 ac_cv_sys_largefile_CC=no
10866 if test "$GCC" != yes; then
10869 # IRIX 6.2 and later do not support large files by default,
10870 # so use the C compiler's -n32 option if that helps.
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10873 #include <sys/types.h>
10874 /* Check that off_t can represent 2**63 - 1 correctly.
10875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10876 since some C++ compilers masquerading as C compilers
10877 incorrectly reject 9223372036854775807. */
10878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10880 && LARGE_OFF_T % 2147483647 == 1)
10890 if ac_fn_c_try_compile "$LINENO"; then :
10893 rm -f core conftest.err conftest.$ac_objext
10895 if ac_fn_c_try_compile "$LINENO"; then :
10896 ac_cv_sys_largefile_CC=' -n32'; break
10898 rm -f core conftest.err conftest.$ac_objext
10902 rm -f conftest.$ac_ext
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10906 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10907 if test "$ac_cv_sys_largefile_CC" != no; then
10908 CC=$CC$ac_cv_sys_largefile_CC
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10912 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10913 if ${ac_cv_sys_file_offset_bits+:} false; then :
10914 $as_echo_n "(cached) " >&6
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10919 #include <sys/types.h>
10920 /* Check that off_t can represent 2**63 - 1 correctly.
10921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10922 since some C++ compilers masquerading as C compilers
10923 incorrectly reject 9223372036854775807. */
10924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10926 && LARGE_OFF_T % 2147483647 == 1)
10936 if ac_fn_c_try_compile "$LINENO"; then :
10937 ac_cv_sys_file_offset_bits=no; break
10939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10942 #define _FILE_OFFSET_BITS 64
10943 #include <sys/types.h>
10944 /* Check that off_t can represent 2**63 - 1 correctly.
10945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10946 since some C++ compilers masquerading as C compilers
10947 incorrectly reject 9223372036854775807. */
10948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10950 && LARGE_OFF_T % 2147483647 == 1)
10960 if ac_fn_c_try_compile "$LINENO"; then :
10961 ac_cv_sys_file_offset_bits=64; break
10963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10964 ac_cv_sys_file_offset_bits=unknown
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10969 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10970 case $ac_cv_sys_file_offset_bits in #(
10973 cat >>confdefs.h <<_ACEOF
10974 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10979 if test $ac_cv_sys_file_offset_bits = unknown; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10981 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10982 if ${ac_cv_sys_large_files+:} false; then :
10983 $as_echo_n "(cached) " >&6
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10988 #include <sys/types.h>
10989 /* Check that off_t can represent 2**63 - 1 correctly.
10990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10991 since some C++ compilers masquerading as C compilers
10992 incorrectly reject 9223372036854775807. */
10993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10995 && LARGE_OFF_T % 2147483647 == 1)
11005 if ac_fn_c_try_compile "$LINENO"; then :
11006 ac_cv_sys_large_files=no; break
11008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11011 #define _LARGE_FILES 1
11012 #include <sys/types.h>
11013 /* Check that off_t can represent 2**63 - 1 correctly.
11014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11015 since some C++ compilers masquerading as C compilers
11016 incorrectly reject 9223372036854775807. */
11017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11019 && LARGE_OFF_T % 2147483647 == 1)
11029 if ac_fn_c_try_compile "$LINENO"; then :
11030 ac_cv_sys_large_files=1; break
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033 ac_cv_sys_large_files=unknown
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11038 $as_echo "$ac_cv_sys_large_files" >&6; }
11039 case $ac_cv_sys_large_files in #(
11042 cat >>confdefs.h <<_ACEOF
11043 #define _LARGE_FILES $ac_cv_sys_large_files
11056 # Check for largefile support (must be after AC_SYS_LARGEFILE)
11057 # The cast to long int works around a bug in the HP C Compiler
11058 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11059 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11060 # This bug is HP SR number 8606223364.
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
11062 $as_echo_n "checking size of off_t... " >&6; }
11063 if ${ac_cv_sizeof_off_t+:} false; then :
11064 $as_echo_n "(cached) " >&6
11066 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
11069 if test "$ac_cv_type_off_t" = yes; then
11070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11072 as_fn_error 77 "cannot compute sizeof (off_t)
11073 See \`config.log' for more details" "$LINENO" 5; }
11075 ac_cv_sizeof_off_t=0
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
11081 $as_echo "$ac_cv_sizeof_off_t" >&6; }
11085 cat >>confdefs.h <<_ACEOF
11086 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11091 # If we don't have largefile support, can't handle segsize >= 2GB.
11092 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
11093 as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
11098 ## Functions, global variables
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
11102 $as_echo_n "checking for int timezone... " >&6; }
11103 if ${pgac_cv_var_int_timezone+:} false; then :
11104 $as_echo_n "(cached) " >&6
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11114 res = timezone / 60;
11116 res = _timezone / 60;
11122 if ac_fn_c_try_link "$LINENO"; then :
11123 pgac_cv_var_int_timezone=yes
11125 pgac_cv_var_int_timezone=no
11127 rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
11131 $as_echo "$pgac_cv_var_int_timezone" >&6; }
11132 if test x"$pgac_cv_var_int_timezone" = xyes ; then
11134 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
11138 $as_echo_n "checking types of arguments for accept()... " >&6; }
11139 if ${ac_cv_func_accept_return+:} false; then :
11140 $as_echo_n "(cached) " >&6
11142 if ${ac_cv_func_accept_arg1+:} false; then :
11143 $as_echo_n "(cached) " >&6
11145 if ${ac_cv_func_accept_arg2+:} false; then :
11146 $as_echo_n "(cached) " >&6
11148 if ${ac_cv_func_accept_arg3+:} false; then :
11149 $as_echo_n "(cached) " >&6
11151 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
11152 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
11153 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
11154 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11157 #ifdef HAVE_SYS_TYPES_H
11158 #include <sys/types.h>
11160 #ifdef HAVE_SYS_SOCKET_H
11161 #include <sys/socket.h>
11163 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
11172 if ac_fn_c_try_compile "$LINENO"; then :
11173 ac_not_found=no; break 4
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11182 if test "$ac_not_found" = yes; then
11183 as_fn_error $? "could not determine argument types" "$LINENO" 5
11185 if test "$ac_cv_func_accept_arg3" = "void"; then
11186 ac_cv_func_accept_arg3=int
11196 { $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
11197 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
11199 cat >>confdefs.h <<_ACEOF
11200 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11204 cat >>confdefs.h <<_ACEOF
11205 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11209 cat >>confdefs.h <<_ACEOF
11210 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11214 cat >>confdefs.h <<_ACEOF
11215 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
11220 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
11221 if ${pgac_cv_func_gettimeofday_1arg+:} false; then :
11222 $as_echo_n "(cached) " >&6
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11226 #include <sys/time.h>
11230 struct timeval *tp;
11231 struct timezone *tzp;
11232 gettimeofday(tp,tzp);
11237 if ac_fn_c_try_compile "$LINENO"; then :
11238 pgac_cv_func_gettimeofday_1arg=no
11240 pgac_cv_func_gettimeofday_1arg=yes
11242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
11245 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
11246 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11248 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
11253 # Some versions of libedit contain strlcpy(), setproctitle(), and other
11254 # symbols that that library has no business exposing to the world. Pending
11255 # acquisition of a clue by those developers, ignore libedit (including its
11256 # possible alias of libreadline) while checking for everything else.
11257 LIBS_including_readline="$LIBS"
11258 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
11260 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid shm_open sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
11262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11263 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11264 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11265 cat >>confdefs.h <<_ACEOF
11266 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11273 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
11274 if test "x$ac_cv_func_fseeko" = xyes; then :
11275 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11278 case " $LIBOBJS " in
11279 *" fseeko.$ac_objext "* ) ;;
11280 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
11288 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
11289 # Mingw uses macros to access Win32 API calls
11292 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11294 ac_cv_func_fseeko=yes;;
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11297 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11298 if ${ac_cv_sys_largefile_source+:} false; then :
11299 $as_echo_n "(cached) " >&6
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11304 #include <sys/types.h> /* for off_t */
11309 int (*fp) (FILE *, off_t, int) = fseeko;
11310 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11315 if ac_fn_c_try_link "$LINENO"; then :
11316 ac_cv_sys_largefile_source=no; break
11318 rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11322 #define _LARGEFILE_SOURCE 1
11323 #include <sys/types.h> /* for off_t */
11328 int (*fp) (FILE *, off_t, int) = fseeko;
11329 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11334 if ac_fn_c_try_link "$LINENO"; then :
11335 ac_cv_sys_largefile_source=1; break
11337 rm -f core conftest.err conftest.$ac_objext \
11338 conftest$ac_exeext conftest.$ac_ext
11339 ac_cv_sys_largefile_source=unknown
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11344 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11345 case $ac_cv_sys_largefile_source in #(
11348 cat >>confdefs.h <<_ACEOF
11349 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11355 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11356 # in glibc 2.1.3, but that breaks too many other things.
11357 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11358 if test $ac_cv_sys_largefile_source != unknown; then
11360 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11366 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
11367 # by calling it, 2009-04-02
11368 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
11369 if test "$PORTNAME" != "solaris"; then
11370 for ac_func in posix_fadvise
11372 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
11373 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
11374 cat >>confdefs.h <<_ACEOF
11375 #define HAVE_POSIX_FADVISE 1
11381 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
11383 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
11389 cat >>confdefs.h <<_ACEOF
11390 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
11395 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
11397 if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
11403 cat >>confdefs.h <<_ACEOF
11404 #define HAVE_DECL_FDATASYNC $ac_have_decl
11407 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
11408 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
11414 cat >>confdefs.h <<_ACEOF
11415 #define HAVE_DECL_STRLCAT $ac_have_decl
11417 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
11418 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
11424 cat >>confdefs.h <<_ACEOF
11425 #define HAVE_DECL_STRLCPY $ac_have_decl
11428 # This is probably only present on Darwin, but may as well check always
11429 ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
11431 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then :
11437 cat >>confdefs.h <<_ACEOF
11438 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
11443 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
11444 #include <netinet/in.h>
11446 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
11448 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
11456 $as_echo_n "checking for PS_STRINGS... " >&6; }
11457 if ${pgac_cv_var_PS_STRINGS+:} false; then :
11458 $as_echo_n "(cached) " >&6
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462 #include <machine/vmparam.h>
11463 #include <sys/exec.h>
11468 PS_STRINGS->ps_nargvstr = 1;
11469 PS_STRINGS->ps_argvstr = "foo";
11474 if ac_fn_c_try_link "$LINENO"; then :
11475 pgac_cv_var_PS_STRINGS=yes
11477 pgac_cv_var_PS_STRINGS=no
11479 rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
11483 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
11484 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11486 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
11491 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11492 # is missing. Yes, there are machines that have only one. We may
11493 # also decide to use snprintf.c if snprintf() is present but does not
11494 # have all the features we need --- see below.
11496 if test "$PORTNAME" = "win32"; then
11497 # Win32 gets snprintf.c built unconditionally.
11499 # To properly translate all NLS languages strings, we must support the
11500 # *printf() %$ format, which allows *printf() arguments to be selected
11501 # by position in the translated string.
11503 # libintl versions < 0.13 use the native *printf() functions, and Win32
11504 # *printf() doesn't understand %$, so we must use our /port versions,
11505 # which do understand %$. libintl versions >= 0.13 include their own
11506 # *printf versions on Win32. The libintl 0.13 release note text is:
11508 # C format strings with positions, as they arise when a translator
11509 # needs to reorder a sentence, are now supported on all platforms.
11510 # On those few platforms (NetBSD and Woe32) for which the native
11511 # printf()/fprintf()/... functions don't support such format
11512 # strings, replacements are provided through <libintl.h>.
11514 # We could use libintl >= 0.13's *printf() if we were sure that we had
11515 # a litint >= 0.13 at runtime, but seeing that there is no clean way
11516 # to guarantee that, it is best to just use our own, so we are sure to
11517 # get %$ support. In include/port.h we disable the *printf() macros
11518 # that might have been defined by libintl.
11520 # We do this unconditionally whether NLS is used or not so we are sure
11521 # that all Win32 libraries and binaries behave the same.
11522 pgac_need_repl_snprintf=yes
11524 pgac_need_repl_snprintf=no
11525 for ac_func in snprintf
11527 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
11528 if test "x$ac_cv_func_snprintf" = xyes; then :
11529 cat >>confdefs.h <<_ACEOF
11530 #define HAVE_SNPRINTF 1
11534 pgac_need_repl_snprintf=yes
11538 for ac_func in vsnprintf
11540 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
11541 if test "x$ac_cv_func_vsnprintf" = xyes; then :
11542 cat >>confdefs.h <<_ACEOF
11543 #define HAVE_VSNPRINTF 1
11547 pgac_need_repl_snprintf=yes
11554 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11555 # include/c.h will provide declarations. Note this is a separate test
11556 # from whether the functions exist in the C library --- there are
11557 # systems that have the functions but don't bother to declare them :-(
11559 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11560 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
11566 cat >>confdefs.h <<_ACEOF
11567 #define HAVE_DECL_SNPRINTF $ac_have_decl
11569 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11570 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
11576 cat >>confdefs.h <<_ACEOF
11577 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
11583 $as_echo_n "checking for isinf... " >&6; }
11584 if ${ac_cv_func_isinf+:} false; then :
11585 $as_echo_n "(cached) " >&6
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11591 double glob_double;
11596 return isinf(glob_double) ? 0 : 1;
11601 if ac_fn_c_try_link "$LINENO"; then :
11602 ac_cv_func_isinf=yes
11604 ac_cv_func_isinf=no
11606 rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
11610 $as_echo "$ac_cv_func_isinf" >&6; }
11612 if test $ac_cv_func_isinf = yes ; then
11614 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
11617 case " $LIBOBJS " in
11618 *" isinf.$ac_objext "* ) ;;
11619 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
11623 # Look for a way to implement a substitute for isinf()
11624 for ac_func in fpclass fp_class fp_class_d class
11626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11628 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11629 cat >>confdefs.h <<_ACEOF
11630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11638 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
11639 if test "x$ac_cv_func_crypt" = xyes; then :
11640 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
11643 case " $LIBOBJS " in
11644 *" crypt.$ac_objext "* ) ;;
11645 *) LIBOBJS="$LIBOBJS crypt.$ac_objext"
11651 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
11652 if test "x$ac_cv_func_fls" = xyes; then :
11653 $as_echo "#define HAVE_FLS 1" >>confdefs.h
11656 case " $LIBOBJS " in
11657 *" fls.$ac_objext "* ) ;;
11658 *) LIBOBJS="$LIBOBJS fls.$ac_objext"
11664 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
11665 if test "x$ac_cv_func_getopt" = xyes; then :
11666 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
11669 case " $LIBOBJS " in
11670 *" getopt.$ac_objext "* ) ;;
11671 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11677 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
11678 if test "x$ac_cv_func_getrusage" = xyes; then :
11679 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
11682 case " $LIBOBJS " in
11683 *" getrusage.$ac_objext "* ) ;;
11684 *) LIBOBJS="$LIBOBJS getrusage.$ac_objext"
11690 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
11691 if test "x$ac_cv_func_inet_aton" = xyes; then :
11692 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
11695 case " $LIBOBJS " in
11696 *" inet_aton.$ac_objext "* ) ;;
11697 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
11703 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
11704 if test "x$ac_cv_func_mkdtemp" = xyes; then :
11705 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
11708 case " $LIBOBJS " in
11709 *" mkdtemp.$ac_objext "* ) ;;
11710 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
11716 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
11717 if test "x$ac_cv_func_random" = xyes; then :
11718 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
11721 case " $LIBOBJS " in
11722 *" random.$ac_objext "* ) ;;
11723 *) LIBOBJS="$LIBOBJS random.$ac_objext"
11729 ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
11730 if test "x$ac_cv_func_rint" = xyes; then :
11731 $as_echo "#define HAVE_RINT 1" >>confdefs.h
11734 case " $LIBOBJS " in
11735 *" rint.$ac_objext "* ) ;;
11736 *) LIBOBJS="$LIBOBJS rint.$ac_objext"
11742 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
11743 if test "x$ac_cv_func_srandom" = xyes; then :
11744 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
11747 case " $LIBOBJS " in
11748 *" srandom.$ac_objext "* ) ;;
11749 *) LIBOBJS="$LIBOBJS srandom.$ac_objext"
11755 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
11756 if test "x$ac_cv_func_strerror" = xyes; then :
11757 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
11760 case " $LIBOBJS " in
11761 *" strerror.$ac_objext "* ) ;;
11762 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
11768 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
11769 if test "x$ac_cv_func_strlcat" = xyes; then :
11770 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
11773 case " $LIBOBJS " in
11774 *" strlcat.$ac_objext "* ) ;;
11775 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
11781 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11782 if test "x$ac_cv_func_strlcpy" = xyes; then :
11783 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
11786 case " $LIBOBJS " in
11787 *" strlcpy.$ac_objext "* ) ;;
11788 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
11798 # Windows uses a specialised env handler
11799 # and doesn't need a replacement getpeereid because it doesn't use
11803 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
11806 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
11808 ac_cv_func_unsetenv=yes
11809 ac_cv_func_getpeereid=yes;;
11811 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
11812 if test "x$ac_cv_func_unsetenv" = xyes; then :
11813 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
11816 case " $LIBOBJS " in
11817 *" unsetenv.$ac_objext "* ) ;;
11818 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
11824 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
11825 if test "x$ac_cv_func_getpeereid" = xyes; then :
11826 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
11829 case " $LIBOBJS " in
11830 *" getpeereid.$ac_objext "* ) ;;
11831 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
11841 # System's version of getaddrinfo(), if any, may be used only if we found
11842 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
11843 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
11844 if test x"$ac_cv_type_struct_addrinfo" = xyes && \
11845 test "$PORTNAME" != "win32"; then
11846 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11847 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
11848 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
11851 case " $LIBOBJS " in
11852 *" getaddrinfo.$ac_objext "* ) ;;
11853 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11861 case " $LIBOBJS " in
11862 *" getaddrinfo.$ac_objext "* ) ;;
11863 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11869 # Similarly, use system's getopt_long() only if system provides struct option.
11870 if test x"$ac_cv_type_struct_option" = xyes ; then
11871 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
11872 if test "x$ac_cv_func_getopt_long" = xyes; then :
11873 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
11876 case " $LIBOBJS " in
11877 *" getopt_long.$ac_objext "* ) ;;
11878 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11886 case " $LIBOBJS " in
11887 *" getopt_long.$ac_objext "* ) ;;
11888 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11894 # Solaris' getopt() doesn't do what we want for long options, so always use
11895 # our version on that platform.
11896 if test "$PORTNAME" = "solaris"; then
11897 case " $LIBOBJS " in
11898 *" getopt.$ac_objext "* ) ;;
11899 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11905 # mingw has adopted a GNU-centric interpretation of optind/optreset,
11906 # so always use our version on Windows.
11907 if test "$PORTNAME" = "win32"; then
11908 case " $LIBOBJS " in
11909 *" getopt.$ac_objext "* ) ;;
11910 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11914 case " $LIBOBJS " in
11915 *" getopt_long.$ac_objext "* ) ;;
11916 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11923 if test "$PORTNAME" = "win32"; then
11924 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
11925 if test "x$ac_cv_func_gettimeofday" = xyes; then :
11926 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
11929 case " $LIBOBJS " in
11930 *" gettimeofday.$ac_objext "* ) ;;
11931 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
11938 case " $LIBOBJS " in
11939 *" kill.$ac_objext "* ) ;;
11940 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
11944 case " $LIBOBJS " in
11945 *" open.$ac_objext "* ) ;;
11946 *) LIBOBJS="$LIBOBJS open.$ac_objext"
11950 case " $LIBOBJS " in
11951 *" system.$ac_objext "* ) ;;
11952 *) LIBOBJS="$LIBOBJS system.$ac_objext"
11956 case " $LIBOBJS " in
11957 *" win32env.$ac_objext "* ) ;;
11958 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
11962 case " $LIBOBJS " in
11963 *" win32error.$ac_objext "* ) ;;
11964 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
11968 case " $LIBOBJS " in
11969 *" win32setlocale.$ac_objext "* ) ;;
11970 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
11975 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
11977 ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
11978 #define WIN32_LEAN_AND_MEAN
11979 #include <windows.h>
11980 #include <string.h>
11981 #include <dbghelp.h>
11983 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
11985 cat >>confdefs.h <<_ACEOF
11986 #define HAVE_MINIDUMP_TYPE 1
11989 pgac_minidump_type=yes
11991 pgac_minidump_type=no
11995 if test x"$pgac_minidump_type" = x"yes" ; then
11996 have_win32_dbghelp=yes
11999 have_win32_dbghelp=no
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12004 $as_echo_n "checking for sigsetjmp... " >&6; }
12005 if ${pgac_cv_func_sigsetjmp+:} false; then :
12006 $as_echo_n "(cached) " >&6
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010 #include <setjmp.h>
12014 sigjmp_buf x; sigsetjmp(x, 1);
12019 if ac_fn_c_try_link "$LINENO"; then :
12020 pgac_cv_func_sigsetjmp=yes
12022 pgac_cv_func_sigsetjmp=no
12024 rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_sigsetjmp" >&5
12028 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
12029 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
12031 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12035 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
12036 /* NetBSD declares sys_siglist in unistd.h. */
12037 #ifdef HAVE_UNISTD_H
12038 # include <unistd.h>
12042 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
12048 cat >>confdefs.h <<_ACEOF
12049 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
12054 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
12055 if test "x$ac_cv_func_syslog" = xyes; then :
12056 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
12057 if test "x$ac_cv_header_syslog_h" = xyes; then :
12059 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
12068 $as_echo_n "checking for opterr... " >&6; }
12069 if ${pgac_cv_var_int_opterr+:} false; then :
12070 $as_echo_n "(cached) " >&6
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #include <unistd.h>
12078 extern int opterr; opterr = 1;
12083 if ac_fn_c_try_link "$LINENO"; then :
12084 pgac_cv_var_int_opterr=yes
12086 pgac_cv_var_int_opterr=no
12088 rm -f core conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
12092 $as_echo "$pgac_cv_var_int_opterr" >&6; }
12093 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
12095 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
12100 $as_echo_n "checking for optreset... " >&6; }
12101 if ${pgac_cv_var_int_optreset+:} false; then :
12102 $as_echo_n "(cached) " >&6
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106 #include <unistd.h>
12110 extern int optreset; optreset = 1;
12115 if ac_fn_c_try_link "$LINENO"; then :
12116 pgac_cv_var_int_optreset=yes
12118 pgac_cv_var_int_optreset=no
12120 rm -f core conftest.err conftest.$ac_objext \
12121 conftest$ac_exeext conftest.$ac_ext
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
12124 $as_echo "$pgac_cv_var_int_optreset" >&6; }
12125 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12127 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
12131 for ac_func in strtoll strtoq
12133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12135 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12136 cat >>confdefs.h <<_ACEOF
12137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12143 for ac_func in strtoull strtouq
12145 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12147 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12148 cat >>confdefs.h <<_ACEOF
12149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin locking functions" >&5
12157 $as_echo_n "checking for builtin locking functions... " >&6; }
12158 if ${pgac_cv_gcc_int_atomics+:} false; then :
12159 $as_echo_n "(cached) " >&6
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12168 __sync_lock_test_and_set(&lock, 1);
12169 __sync_lock_release(&lock);
12174 if ac_fn_c_try_link "$LINENO"; then :
12175 pgac_cv_gcc_int_atomics="yes"
12177 pgac_cv_gcc_int_atomics="no"
12179 rm -f core conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_int_atomics" >&5
12183 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
12184 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
12186 $as_echo "#define HAVE_GCC_INT_ATOMICS 1" >>confdefs.h
12190 # Lastly, restore full LIBS list and check for readline/libedit symbols
12191 LIBS="$LIBS_including_readline"
12193 if test "$with_readline" = yes; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
12195 $as_echo_n "checking for rl_completion_append_character... " >&6; }
12196 if ${pgac_cv_var_rl_completion_append_character+:} false; then :
12197 $as_echo_n "(cached) " >&6
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200 /* end confdefs.h. */
12202 #ifdef HAVE_READLINE_READLINE_H
12203 # include <readline/readline.h>
12204 #elif defined(HAVE_READLINE_H)
12205 # include <readline.h>
12211 rl_completion_append_character = 'x';
12216 if ac_fn_c_try_link "$LINENO"; then :
12217 pgac_cv_var_rl_completion_append_character=yes
12219 pgac_cv_var_rl_completion_append_character=no
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
12225 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
12226 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
12228 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
12231 for ac_func in rl_completion_matches rl_filename_completion_function
12233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12234 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12235 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12236 cat >>confdefs.h <<_ACEOF
12237 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12243 for ac_func in append_history history_truncate_file
12245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12247 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12248 cat >>confdefs.h <<_ACEOF
12249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12261 # For each platform, we need to know about any special compile and link
12262 # libraries, and whether the normal C function names are thread-safe.
12263 # See the comment at the top of src/port/thread.c for more information.
12264 # WIN32 doesn't need the pthread tests; it always uses threads
12265 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
12270 ac_cpp='$CPP $CPPFLAGS'
12271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12277 # We used to check for pthread.h first, but this fails if pthread.h
12278 # requires special compiler flags (e.g. on True64 or Sequent).
12279 # It gets checked for in the link test anyway.
12281 # First of all, check if the user has set any of the PTHREAD_LIBS,
12282 # etcetera environment variables, and if threads linking works using
12284 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
12285 save_CFLAGS="$CFLAGS"
12286 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12288 LIBS="$PTHREAD_LIBS $LIBS"
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
12290 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
12291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292 /* end confdefs.h. */
12294 /* Override any GCC internal prototype to avoid an error.
12295 Use char because int might match the return type of a GCC
12296 builtin and then its argument prototype would still apply. */
12300 char pthread_join ();
12304 return pthread_join ();
12309 if ac_fn_c_try_link "$LINENO"; then :
12312 rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
12315 $as_echo "$acx_pthread_ok" >&6; }
12316 if test x"$acx_pthread_ok" = xno; then
12321 CFLAGS="$save_CFLAGS"
12324 # We must check for the threads library under a number of different
12325 # names; the ordering is very important because some systems
12326 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
12327 # libraries is broken (non-POSIX).
12329 # Create a list of thread flags to try. Items starting with a "-" are
12330 # C compiler flags, and other items are library names, except for "none"
12331 # which indicates that we try without any flags at all, and "pthread-config"
12332 # which is a program returning the flags for the Pth emulation library.
12334 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
12336 # The ordering *is* (sometimes) important. Some notes on the
12337 # individual items follow:
12339 # pthreads: AIX (must check this before -lpthread)
12340 # none: in case threads are in libc; should be tried before -Kthread and
12341 # other compiler flags to prevent continual compiler warnings
12342 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
12343 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
12344 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
12345 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
12346 # -pthreads: Solaris/gcc
12347 # -mthreads: Mingw32/gcc, Lynx/gcc
12348 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
12349 # doesn't hurt to check since this sometimes defines pthreads too;
12350 # also defines -D_REENTRANT)
12351 # pthread: Linux, etcetera
12352 # --thread-safe: KAI C++
12353 # pthread-config: use pthread-config program (for GNU Pth library)
12355 case "${host_cpu}-${host_os}" in
12358 # On Solaris (at least, for some versions), libc contains stubbed
12359 # (non-functional) versions of the pthreads routines, so link-based
12360 # tests will erroneously succeed. (We need to link with -pthread or
12361 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
12362 # a function called by this macro, so we could check for that, but
12363 # who knows whether they'll stub that too in a future libc.) So,
12364 # we'll just look for -pthreads and -lpthread first:
12366 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
12370 if test x"$acx_pthread_ok" = xno; then
12371 for flag in $acx_pthread_flags; do
12373 tryPTHREAD_CFLAGS=""
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
12378 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
12383 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
12384 tryPTHREAD_CFLAGS="$flag"
12388 # skip this if we already have flags defined, for PostgreSQL
12389 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
12390 # Extract the first word of "pthread-config", so it can be a program name with args.
12391 set dummy pthread-config; ac_word=$2
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393 $as_echo_n "checking for $ac_word... " >&6; }
12394 if ${ac_cv_prog_acx_pthread_config+:} false; then :
12395 $as_echo_n "(cached) " >&6
12397 if test -n "$acx_pthread_config"; then
12398 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12404 test -z "$as_dir" && as_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12407 ac_cv_prog_acx_pthread_config="yes"
12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12415 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
12418 acx_pthread_config=$ac_cv_prog_acx_pthread_config
12419 if test -n "$acx_pthread_config"; then
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
12421 $as_echo "$acx_pthread_config" >&6; }
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424 $as_echo "no" >&6; }
12428 if test x"$acx_pthread_config" = xno; then continue; fi
12429 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
12430 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
12435 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
12436 tryPTHREAD_LIBS="-l$flag"
12441 save_CFLAGS="$CFLAGS"
12442 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
12443 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
12445 # Check for various functions. We must include pthread.h,
12446 # since some functions may be macros. (On the Sequent, we
12447 # need a special flag -Kthread to make this header compile.)
12448 # We check for pthread_join because it is in -lpthread on IRIX
12449 # while pthread_create is in libc. We check for pthread_attr_init
12450 # due to DEC craziness with -lpthreads. We check for
12451 # pthread_cleanup_push because it is one of the few pthread
12452 # functions on Solaris that doesn't have a non-functional libc stub.
12453 # We try pthread_create on general principles.
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12456 #include <pthread.h>
12460 pthread_t th; pthread_join(th, 0);
12461 pthread_attr_init(0); pthread_cleanup_push(0, 0);
12462 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
12467 if ac_fn_c_try_link "$LINENO"; then :
12472 rm -f core conftest.err conftest.$ac_objext \
12473 conftest$ac_exeext conftest.$ac_ext
12475 if test "x$acx_pthread_ok" = xyes; then
12476 # Don't use options that are ignored by the compiler.
12477 # We find them by checking stderror.
12478 cat >conftest.$ac_ext <<_ACEOF
12480 main (int argc, char **argv)
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 # Check both linking and compiling, because they might tolerate different options.
12489 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
12490 # The original macro breaks out of the loop at this point,
12491 # but we continue trying flags because Linux needs -lpthread
12492 # too to build libpq successfully. The test above only
12493 # tests for building binaries, not shared libraries.
12494 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
12495 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
12496 else acx_pthread_ok=no
12501 CFLAGS="$save_CFLAGS"
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
12504 $as_echo "$acx_pthread_ok" >&6; }
12508 # The original macro has a bunch of other tests here, which we have removed
12509 # because (a) Postgres doesn't need them, and (b) $acx_pthread_ok is not
12510 # meaningful at this point.
12516 ac_cpp='$CPP $CPPFLAGS'
12517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12523 # Some platforms use these, so just define them. They can't hurt if they
12524 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
12525 # enables 5-arg getpwuid_r, among other things.
12526 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
12528 # Check for *_r functions
12531 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12532 LIBS="$LIBS $PTHREAD_LIBS"
12534 if test "$PORTNAME" != "win32"; then
12535 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12536 if test "x$ac_cv_header_pthread_h" = xyes; then :
12540 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
12546 for ac_func in strerror_r getpwuid_r gethostbyname_r
12548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12549 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12550 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12551 cat >>confdefs.h <<_ACEOF
12552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12559 # Do test here with the proper thread flags
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwuid_r takes a fifth argument" >&5
12561 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
12562 if ${pgac_cv_func_getpwuid_r_5arg+:} false; then :
12563 $as_echo_n "(cached) " >&6
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12567 #include <sys/types.h>
12573 struct passwd *space;
12576 struct passwd **result;
12577 getpwuid_r(uid, space, buf, bufsize, result);
12582 if ac_fn_c_try_compile "$LINENO"; then :
12583 pgac_cv_func_getpwuid_r_5arg=yes
12585 pgac_cv_func_getpwuid_r_5arg=no
12587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_getpwuid_r_5arg" >&5
12590 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
12591 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
12593 $as_echo "#define GETPWUID_R_5ARG 1" >>confdefs.h
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
12598 $as_echo_n "checking whether strerror_r returns int... " >&6; }
12599 if ${pgac_cv_func_strerror_r_int+:} false; then :
12600 $as_echo_n "(cached) " >&6
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12604 #include <string.h>
12609 int strerror_r(int, char *, size_t);
12611 /* Older AIX has 'int' for the third argument so we don't test the args. */
12618 if ac_fn_c_try_compile "$LINENO"; then :
12619 pgac_cv_func_strerror_r_int=yes
12621 pgac_cv_func_strerror_r_int=no
12623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
12626 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
12627 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
12629 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
12638 # do not use values from template file
12647 # We can test for libldap_r only after we know PTHREAD_LIBS
12648 if test "$with_ldap" = yes ; then
12650 if test "$PORTNAME" != "win32"; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
12652 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
12653 if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
12654 $as_echo_n "(cached) " >&6
12656 ac_check_lib_save_LIBS=$LIBS
12657 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
12658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h. */
12661 /* Override any GCC internal prototype to avoid an error.
12662 Use char because int might match the return type of a GCC
12663 builtin and then its argument prototype would still apply. */
12671 return ldap_bind ();
12676 if ac_fn_c_try_link "$LINENO"; then :
12677 ac_cv_lib_ldap_ldap_bind=yes
12679 ac_cv_lib_ldap_ldap_bind=no
12681 rm -f core conftest.err conftest.$ac_objext \
12682 conftest$ac_exeext conftest.$ac_ext
12683 LIBS=$ac_check_lib_save_LIBS
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
12686 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
12687 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
12688 cat >>confdefs.h <<_ACEOF
12689 #define HAVE_LIBLDAP 1
12692 LIBS="-lldap $LIBS"
12695 as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
12698 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
12699 if test "$enable_thread_safety" = yes; then
12700 # on some platforms ldap_r fails to link without PTHREAD_LIBS
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
12702 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
12703 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false; then :
12704 $as_echo_n "(cached) " >&6
12706 ac_check_lib_save_LIBS=$LIBS
12707 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12711 /* Override any GCC internal prototype to avoid an error.
12712 Use char because int might match the return type of a GCC
12713 builtin and then its argument prototype would still apply. */
12717 char ldap_simple_bind ();
12721 return ldap_simple_bind ();
12726 if ac_fn_c_try_link "$LINENO"; then :
12727 ac_cv_lib_ldap_r_ldap_simple_bind=yes
12729 ac_cv_lib_ldap_r_ldap_simple_bind=no
12731 rm -f core conftest.err conftest.$ac_objext \
12732 conftest$ac_exeext conftest.$ac_ext
12733 LIBS=$ac_check_lib_save_LIBS
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
12736 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
12737 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes; then :
12738 cat >>confdefs.h <<_ACEOF
12739 #define HAVE_LIBLDAP_R 1
12742 LIBS="-lldap_r $LIBS"
12745 as_fn_error $? "library 'ldap_r' is required for LDAP" "$LINENO" 5
12748 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
12750 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12754 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12755 if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
12756 $as_echo_n "(cached) " >&6
12758 ac_check_lib_save_LIBS=$LIBS
12759 LIBS="-lwldap32 $LIBS"
12760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h. */
12763 /* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
12773 return ldap_bind ();
12778 if ac_fn_c_try_link "$LINENO"; then :
12779 ac_cv_lib_wldap32_ldap_bind=yes
12781 ac_cv_lib_wldap32_ldap_bind=no
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785 LIBS=$ac_check_lib_save_LIBS
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
12788 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
12789 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
12790 cat >>confdefs.h <<_ACEOF
12791 #define HAVE_LIBWLDAP32 1
12794 LIBS="-lwldap32 $LIBS"
12797 as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
12800 LDAP_LIBS_FE="-lwldap32"
12801 LDAP_LIBS_BE="-lwldap32"
12809 # This test makes sure that run tests work at all. Sometimes a shared
12810 # library is found by the linker, but the runtime linker can't find it.
12811 # This check should come after all modifications of compiler or linker
12812 # variables, and before any other run tests.
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
12814 $as_echo_n "checking test program... " >&6; }
12815 if test "$cross_compiling" = yes; then :
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
12817 $as_echo "cross-compiling" >&6; }
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821 int main() { return 0; }
12823 if ac_fn_c_try_run "$LINENO"; then :
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12825 $as_echo "ok" >&6; }
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12828 $as_echo "failed" >&6; }
12830 Could not execute a simple test program. This may be a problem
12831 related to locating shared libraries. Check the file 'config.log'
12832 for the exact reason." "$LINENO" 5
12834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12835 conftest.$ac_objext conftest.beam conftest.$ac_ext
12839 # --------------------
12840 # Run tests below here
12841 # --------------------
12843 # Force use of our snprintf if system's doesn't do arg control
12844 # See comment above at snprintf test for details.
12845 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports argument control" >&5
12847 $as_echo_n "checking whether snprintf supports argument control... " >&6; }
12848 if ${pgac_cv_snprintf_arg_control+:} false; then :
12849 $as_echo_n "(cached) " >&6
12851 if test "$cross_compiling" = yes; then :
12852 pgac_cv_snprintf_arg_control=cross
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12857 #include <string.h>
12863 /* can it swap arguments? */
12864 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
12865 if (strcmp(buf, "4 3") != 0)
12870 if ac_fn_c_try_run "$LINENO"; then :
12871 pgac_cv_snprintf_arg_control=yes
12873 pgac_cv_snprintf_arg_control=no
12875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12876 conftest.$ac_objext conftest.beam conftest.$ac_ext
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_arg_control" >&5
12882 $as_echo "$pgac_cv_snprintf_arg_control" >&6; }
12884 if test $pgac_cv_snprintf_arg_control != yes ; then
12885 pgac_need_repl_snprintf=yes
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
12893 $as_echo_n "checking whether long int is 64 bits... " >&6; }
12894 if ${pgac_cv_type_long_int_64+:} false; then :
12895 $as_echo_n "(cached) " >&6
12897 if test "$cross_compiling" = yes; then :
12898 # If cross-compiling, check the size reported by the compiler and
12899 # trust that the arithmetic works.
12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h. */
12906 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
12907 test_array [0] = 0;
12908 return test_array [0];
12914 if ac_fn_c_try_compile "$LINENO"; then :
12915 pgac_cv_type_long_int_64=yes
12917 pgac_cv_type_long_int_64=no
12919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922 /* end confdefs.h. */
12923 typedef long int ac_int64;
12926 * These are globals to discourage the compiler from folding all the
12927 * arithmetic tests down to compile-time constants.
12929 ac_int64 a = 20000001;
12930 ac_int64 b = 40000005;
12932 int does_int64_work()
12936 if (sizeof(ac_int64) != 8)
12937 return 0; /* definitely not the right size */
12939 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12947 exit(! does_int64_work());
12950 if ac_fn_c_try_run "$LINENO"; then :
12951 pgac_cv_type_long_int_64=yes
12953 pgac_cv_type_long_int_64=no
12955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12956 conftest.$ac_objext conftest.beam conftest.$ac_ext
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
12961 $as_echo "$pgac_cv_type_long_int_64" >&6; }
12963 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12964 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12966 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
12971 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
12972 pg_int64_type="long int"
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
12975 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
12976 if ${pgac_cv_type_long_long_int_64+:} false; then :
12977 $as_echo_n "(cached) " >&6
12979 if test "$cross_compiling" = yes; then :
12980 # If cross-compiling, check the size reported by the compiler and
12981 # trust that the arithmetic works.
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12988 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
12989 test_array [0] = 0;
12990 return test_array [0];
12996 if ac_fn_c_try_compile "$LINENO"; then :
12997 pgac_cv_type_long_long_int_64=yes
12999 pgac_cv_type_long_long_int_64=no
13001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13005 typedef long long int ac_int64;
13008 * These are globals to discourage the compiler from folding all the
13009 * arithmetic tests down to compile-time constants.
13011 ac_int64 a = 20000001;
13012 ac_int64 b = 40000005;
13014 int does_int64_work()
13018 if (sizeof(ac_int64) != 8)
13019 return 0; /* definitely not the right size */
13021 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13029 exit(! does_int64_work());
13032 if ac_fn_c_try_run "$LINENO"; then :
13033 pgac_cv_type_long_long_int_64=yes
13035 pgac_cv_type_long_long_int_64=no
13037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13038 conftest.$ac_objext conftest.beam conftest.$ac_ext
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
13043 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
13045 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13046 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13048 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
13052 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13053 pg_int64_type="long long int"
13055 as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5
13060 cat >>confdefs.h <<_ACEOF
13061 #define PG_INT64_TYPE $pg_int64_type
13066 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h. */
13070 #define INT64CONST(x) x##LL
13071 long long int foo = INT64CONST(0x1234567890123456);
13081 if ac_fn_c_try_compile "$LINENO"; then :
13083 $as_echo "#define HAVE_LL_CONSTANTS 1" >>confdefs.h
13086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13090 # If we found "long int" is 64 bits, assume snprintf handles it. If
13091 # we found we need to use "long long int", better check. We cope with
13092 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
13093 # work, fall back to our own snprintf emulation (which we know uses %lld).
13095 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13096 if test $pgac_need_repl_snprintf = no; then
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf length modifier for long long int" >&5
13098 $as_echo_n "checking snprintf length modifier for long long int... " >&6; }
13099 if ${pgac_cv_snprintf_long_long_int_modifier+:} false; then :
13100 $as_echo_n "(cached) " >&6
13102 for pgac_modifier in 'll' 'q' 'I64'; do
13103 if test "$cross_compiling" = yes; then :
13104 pgac_cv_snprintf_long_long_int_modifier=cross; break
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13109 typedef long long int ac_int64;
13110 #define INT64_FORMAT "%${pgac_modifier}d"
13112 ac_int64 a = 20000001;
13113 ac_int64 b = 40000005;
13115 int does_int64_snprintf_work()
13120 if (sizeof(ac_int64) != 8)
13121 return 0; /* doesn't look like the right size */
13124 snprintf(buf, 100, INT64_FORMAT, c);
13125 if (strcmp(buf, "800000140000005") != 0)
13126 return 0; /* either multiply or snprintf is busted */
13130 exit(! does_int64_snprintf_work());
13133 if ac_fn_c_try_run "$LINENO"; then :
13134 pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break
13136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13137 conftest.$ac_objext conftest.beam conftest.$ac_ext
13143 LONG_LONG_INT_MODIFIER=''
13145 case $pgac_cv_snprintf_long_long_int_modifier in
13146 cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5
13147 $as_echo "cannot test (not on host machine)" >&6; };;
13148 ?*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_modifier" >&5
13149 $as_echo "$pgac_cv_snprintf_long_long_int_modifier" >&6; }
13150 LONG_LONG_INT_MODIFIER=$pgac_cv_snprintf_long_long_int_modifier;;
13151 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13152 $as_echo "none" >&6; };;
13154 if test "$LONG_LONG_INT_MODIFIER" = ""; then
13155 # Force usage of our own snprintf, since system snprintf is broken
13156 pgac_need_repl_snprintf=yes
13157 LONG_LONG_INT_MODIFIER='ll'
13160 # Here if we previously decided we needed to use our own snprintf
13161 LONG_LONG_INT_MODIFIER='ll'
13164 # Here if we are not using 'long long int' at all
13165 LONG_LONG_INT_MODIFIER='l'
13168 INT64_MODIFIER="\"$LONG_LONG_INT_MODIFIER\""
13171 cat >>confdefs.h <<_ACEOF
13172 #define INT64_MODIFIER $INT64_MODIFIER
13176 # Also force use of our snprintf if the system's doesn't support the %z flag.
13177 if test "$pgac_need_repl_snprintf" = no; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports the %z modifier" >&5
13179 $as_echo_n "checking whether snprintf supports the %z modifier... " >&6; }
13180 if ${pgac_cv_snprintf_size_t_support+:} false; then :
13181 $as_echo_n "(cached) " >&6
13183 if test "$cross_compiling" = yes; then :
13184 pgac_cv_snprintf_size_t_support=cross
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13189 #include <string.h>
13197 * Print the largest unsigned number fitting in a size_t using both %zu
13198 * and the previously-determined format for 64-bit integers. Note that
13199 * we don't run this code unless we know snprintf handles 64-bit ints.
13201 bufz[0] = '\0'; /* in case snprintf fails to emit anything */
13202 snprintf(bufz, sizeof(bufz), "%zu", ~((size_t) 0));
13203 snprintf(buf64, sizeof(buf64), UINT64_FORMAT, (PG_INT64_TYPE) ~((size_t) 0));
13204 if (strcmp(bufz, buf64) != 0)
13209 if ac_fn_c_try_run "$LINENO"; then :
13210 pgac_cv_snprintf_size_t_support=yes
13212 pgac_cv_snprintf_size_t_support=no
13214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13215 conftest.$ac_objext conftest.beam conftest.$ac_ext
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_size_t_support" >&5
13221 $as_echo "$pgac_cv_snprintf_size_t_support" >&6; }
13223 if test "$pgac_cv_snprintf_size_t_support" != yes; then
13224 pgac_need_repl_snprintf=yes
13228 # Now we have checked all the reasons to replace snprintf
13229 if test $pgac_need_repl_snprintf = yes; then
13231 $as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h
13233 case " $LIBOBJS " in
13234 *" snprintf.$ac_objext "* ) ;;
13235 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13241 # Check size of void *, size_t (enables tweaks for > 32bit address space)
13242 # The cast to long int works around a bug in the HP C Compiler
13243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13245 # This bug is HP SR number 8606223364.
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13247 $as_echo_n "checking size of void *... " >&6; }
13248 if ${ac_cv_sizeof_void_p+:} false; then :
13249 $as_echo_n "(cached) " >&6
13251 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13254 if test "$ac_cv_type_void_p" = yes; then
13255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13257 as_fn_error 77 "cannot compute sizeof (void *)
13258 See \`config.log' for more details" "$LINENO" 5; }
13260 ac_cv_sizeof_void_p=0
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13266 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13270 cat >>confdefs.h <<_ACEOF
13271 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13275 # The cast to long int works around a bug in the HP C Compiler
13276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13278 # This bug is HP SR number 8606223364.
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13280 $as_echo_n "checking size of size_t... " >&6; }
13281 if ${ac_cv_sizeof_size_t+:} false; then :
13282 $as_echo_n "(cached) " >&6
13284 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13287 if test "$ac_cv_type_size_t" = yes; then
13288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13290 as_fn_error 77 "cannot compute sizeof (size_t)
13291 See \`config.log' for more details" "$LINENO" 5; }
13293 ac_cv_sizeof_size_t=0
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13299 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13303 cat >>confdefs.h <<_ACEOF
13304 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13308 # The cast to long int works around a bug in the HP C Compiler
13309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13311 # This bug is HP SR number 8606223364.
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13313 $as_echo_n "checking size of long... " >&6; }
13314 if ${ac_cv_sizeof_long+:} false; then :
13315 $as_echo_n "(cached) " >&6
13317 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13320 if test "$ac_cv_type_long" = yes; then
13321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13323 as_fn_error 77 "cannot compute sizeof (long)
13324 See \`config.log' for more details" "$LINENO" 5; }
13326 ac_cv_sizeof_long=0
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13332 $as_echo "$ac_cv_sizeof_long" >&6; }
13336 cat >>confdefs.h <<_ACEOF
13337 #define SIZEOF_LONG $ac_cv_sizeof_long
13342 # Decide whether float4 is passed by value: user-selectable, enabled by default
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
13344 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
13347 # Check whether --enable-float4-byval was given.
13348 if test "${enable_float4_byval+set}" = set; then :
13349 enableval=$enable_float4_byval;
13353 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
13355 float4passbyval=true
13358 float4passbyval=false
13361 as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
13366 enable_float4_byval=yes
13368 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
13370 float4passbyval=true
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
13375 $as_echo "$enable_float4_byval" >&6; }
13377 cat >>confdefs.h <<_ACEOF
13378 #define FLOAT4PASSBYVAL $float4passbyval
13382 # Decide whether float8 is passed by value.
13383 # Note: this setting also controls int8 and related types such as timestamp.
13384 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
13385 # If not, trying to select it is an error.
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
13387 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
13388 if test $ac_cv_sizeof_void_p -ge 8 ; then
13391 # Check whether --enable-float8-byval was given.
13392 if test "${enable_float8_byval+set}" = set; then :
13393 enableval=$enable_float8_byval;
13402 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
13407 enable_float8_byval=yes
13415 # Check whether --enable-float8-byval was given.
13416 if test "${enable_float8_byval+set}" = set; then :
13417 enableval=$enable_float8_byval;
13426 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
13431 enable_float8_byval=no
13436 if test "$enable_float8_byval" = yes ; then
13437 as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
13440 if test "$enable_float8_byval" = yes ; then
13442 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
13444 float8passbyval=true
13446 float8passbyval=false
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
13449 $as_echo "$enable_float8_byval" >&6; }
13451 cat >>confdefs.h <<_ACEOF
13452 #define FLOAT8PASSBYVAL $float8passbyval
13456 # Determine memory alignment requirements for the basic C data types.
13458 # The cast to long int works around a bug in the HP C Compiler,
13459 # see AC_CHECK_SIZEOF for more information.
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
13461 $as_echo_n "checking alignment of short... " >&6; }
13462 if ${ac_cv_alignof_short+:} false; then :
13463 $as_echo_n "(cached) " >&6
13465 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
13467 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13469 typedef struct { char x; short y; } ac__type_alignof_;"; then :
13472 if test "$ac_cv_type_short" = yes; then
13473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13475 as_fn_error 77 "cannot compute alignment of short
13476 See \`config.log' for more details" "$LINENO" 5; }
13478 ac_cv_alignof_short=0
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
13484 $as_echo "$ac_cv_alignof_short" >&6; }
13488 cat >>confdefs.h <<_ACEOF
13489 #define ALIGNOF_SHORT $ac_cv_alignof_short
13493 # The cast to long int works around a bug in the HP C Compiler,
13494 # see AC_CHECK_SIZEOF for more information.
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
13496 $as_echo_n "checking alignment of int... " >&6; }
13497 if ${ac_cv_alignof_int+:} false; then :
13498 $as_echo_n "(cached) " >&6
13500 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
13502 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13504 typedef struct { char x; int y; } ac__type_alignof_;"; then :
13507 if test "$ac_cv_type_int" = yes; then
13508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13510 as_fn_error 77 "cannot compute alignment of int
13511 See \`config.log' for more details" "$LINENO" 5; }
13513 ac_cv_alignof_int=0
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
13519 $as_echo "$ac_cv_alignof_int" >&6; }
13523 cat >>confdefs.h <<_ACEOF
13524 #define ALIGNOF_INT $ac_cv_alignof_int
13528 # The cast to long int works around a bug in the HP C Compiler,
13529 # see AC_CHECK_SIZEOF for more information.
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
13531 $as_echo_n "checking alignment of long... " >&6; }
13532 if ${ac_cv_alignof_long+:} false; then :
13533 $as_echo_n "(cached) " >&6
13535 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
13537 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13539 typedef struct { char x; long y; } ac__type_alignof_;"; then :
13542 if test "$ac_cv_type_long" = yes; then
13543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13545 as_fn_error 77 "cannot compute alignment of long
13546 See \`config.log' for more details" "$LINENO" 5; }
13548 ac_cv_alignof_long=0
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
13554 $as_echo "$ac_cv_alignof_long" >&6; }
13558 cat >>confdefs.h <<_ACEOF
13559 #define ALIGNOF_LONG $ac_cv_alignof_long
13563 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13564 # The cast to long int works around a bug in the HP C Compiler,
13565 # see AC_CHECK_SIZEOF for more information.
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
13567 $as_echo_n "checking alignment of long long int... " >&6; }
13568 if ${ac_cv_alignof_long_long_int+:} false; then :
13569 $as_echo_n "(cached) " >&6
13571 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
13573 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13575 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
13578 if test "$ac_cv_type_long_long_int" = yes; then
13579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13581 as_fn_error 77 "cannot compute alignment of long long int
13582 See \`config.log' for more details" "$LINENO" 5; }
13584 ac_cv_alignof_long_long_int=0
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
13590 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
13594 cat >>confdefs.h <<_ACEOF
13595 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
13600 # The cast to long int works around a bug in the HP C Compiler,
13601 # see AC_CHECK_SIZEOF for more information.
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
13603 $as_echo_n "checking alignment of double... " >&6; }
13604 if ${ac_cv_alignof_double+:} false; then :
13605 $as_echo_n "(cached) " >&6
13607 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
13609 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13611 typedef struct { char x; double y; } ac__type_alignof_;"; then :
13614 if test "$ac_cv_type_double" = yes; then
13615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13617 as_fn_error 77 "cannot compute alignment of double
13618 See \`config.log' for more details" "$LINENO" 5; }
13620 ac_cv_alignof_double=0
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
13626 $as_echo "$ac_cv_alignof_double" >&6; }
13630 cat >>confdefs.h <<_ACEOF
13631 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
13636 # Compute maximum alignment of any basic type.
13637 # We assume long's alignment is at least as strong as char, short, or int;
13638 # but we must check long long (if it exists) and double.
13640 MAX_ALIGNOF=$ac_cv_alignof_long
13641 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
13642 MAX_ALIGNOF=$ac_cv_alignof_double
13644 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
13645 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
13648 cat >>confdefs.h <<_ACEOF
13649 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
13654 # Some platforms predefine the types int8, int16, etc. Only check
13655 # a (hopefully) representative subset.
13656 ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
13658 if test "x$ac_cv_type_int8" = xyes; then :
13660 cat >>confdefs.h <<_ACEOF
13661 #define HAVE_INT8 1
13666 ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
13668 if test "x$ac_cv_type_uint8" = xyes; then :
13670 cat >>confdefs.h <<_ACEOF
13671 #define HAVE_UINT8 1
13676 ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
13678 if test "x$ac_cv_type_int64" = xyes; then :
13680 cat >>confdefs.h <<_ACEOF
13681 #define HAVE_INT64 1
13686 ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
13688 if test "x$ac_cv_type_uint64" = xyes; then :
13690 cat >>confdefs.h <<_ACEOF
13691 #define HAVE_UINT64 1
13698 # We also check for sig_atomic_t, which *should* be defined per ANSI
13699 # C, but is missing on some old platforms.
13700 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
13702 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
13704 cat >>confdefs.h <<_ACEOF
13705 #define HAVE_SIG_ATOMIC_T 1
13713 if test "$PORTNAME" != "win32"
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX signal interface" >&5
13716 $as_echo_n "checking for POSIX signal interface... " >&6; }
13717 if ${pgac_cv_func_posix_signals+:} false; then :
13718 $as_echo_n "(cached) " >&6
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722 #include <signal.h>
13727 struct sigaction act, oact;
13728 sigemptyset(&act.sa_mask);
13729 act.sa_flags = SA_RESTART;
13730 sigaction(0, &act, &oact);
13735 if ac_fn_c_try_link "$LINENO"; then :
13736 pgac_cv_func_posix_signals=yes
13738 pgac_cv_func_posix_signals=no
13740 rm -f core conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_posix_signals" >&5
13744 $as_echo "$pgac_cv_func_posix_signals" >&6; }
13745 if test x"$pgac_cv_func_posix_signals" = xyes ; then
13747 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
13750 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
13752 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
13754 Thread-safety requires POSIX signals, which are not supported by this
13755 operating system; use --disable-thread-safety to disable thread safety." "$LINENO" 5
13760 # Select semaphore implementation type.
13761 if test "$PORTNAME" != "win32"; then
13762 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
13764 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
13766 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
13768 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
13770 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
13772 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
13775 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
13777 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
13782 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
13784 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
13788 # Select shared-memory implementation type.
13789 if test "$PORTNAME" != "win32"; then
13791 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
13793 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
13796 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
13798 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
13801 # Select latch implementation type.
13802 if test "$PORTNAME" != "win32"; then
13803 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
13805 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
13808 # If not set in template file, set bytes to use libc memset()
13809 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
13810 MEMSET_LOOP_LIMIT=1024
13813 cat >>confdefs.h <<_ACEOF
13814 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
13819 if test "$enable_nls" = yes ; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
13822 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
13823 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
13824 $as_echo_n "(cached) " >&6
13826 ac_func_search_save_LIBS=$LIBS
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13830 /* Override any GCC internal prototype to avoid an error.
13831 Use char because int might match the return type of a GCC
13832 builtin and then its argument prototype would still apply. */
13836 char bind_textdomain_codeset ();
13840 return bind_textdomain_codeset ();
13845 for ac_lib in '' intl; do
13846 if test -z "$ac_lib"; then
13847 ac_res="none required"
13850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13852 if ac_fn_c_try_link "$LINENO"; then :
13853 ac_cv_search_bind_textdomain_codeset=$ac_res
13855 rm -f core conftest.err conftest.$ac_objext \
13857 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
13861 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
13864 ac_cv_search_bind_textdomain_codeset=no
13866 rm conftest.$ac_ext
13867 LIBS=$ac_func_search_save_LIBS
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
13870 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
13871 ac_res=$ac_cv_search_bind_textdomain_codeset
13872 if test "$ac_res" != no; then :
13873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13876 as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5
13879 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
13880 if test "x$ac_cv_header_libintl_h" = xyes; then :
13883 as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5
13887 for ac_prog in msgfmt
13889 # Extract the first word of "$ac_prog", so it can be a program name with args.
13890 set dummy $ac_prog; ac_word=$2
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13892 $as_echo_n "checking for $ac_word... " >&6; }
13893 if ${ac_cv_prog_MSGFMT+:} false; then :
13894 $as_echo_n "(cached) " >&6
13896 if test -n "$MSGFMT"; then
13897 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
13899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13900 for as_dir in $PATH
13903 test -z "$as_dir" && as_dir=.
13904 for ac_exec_ext in '' $ac_executable_extensions; do
13905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13906 ac_cv_prog_MSGFMT="$ac_prog"
13907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13916 MSGFMT=$ac_cv_prog_MSGFMT
13917 if test -n "$MSGFMT"; then
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13919 $as_echo "$MSGFMT" >&6; }
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13922 $as_echo "no" >&6; }
13926 test -n "$MSGFMT" && break
13929 if test -z "$MSGFMT"; then
13930 as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
13933 $as_echo_n "checking for msgfmt flags... " >&6; }
13934 if ${pgac_cv_msgfmt_flags+:} false; then :
13935 $as_echo_n "(cached) " >&6
13937 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
13938 pgac_cv_msgfmt_flags=-c
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
13942 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
13943 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
13945 for ac_prog in msgmerge
13947 # Extract the first word of "$ac_prog", so it can be a program name with args.
13948 set dummy $ac_prog; ac_word=$2
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13950 $as_echo_n "checking for $ac_word... " >&6; }
13951 if ${ac_cv_prog_MSGMERGE+:} false; then :
13952 $as_echo_n "(cached) " >&6
13954 if test -n "$MSGMERGE"; then
13955 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
13957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13958 for as_dir in $PATH
13961 test -z "$as_dir" && as_dir=.
13962 for ac_exec_ext in '' $ac_executable_extensions; do
13963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13964 ac_cv_prog_MSGMERGE="$ac_prog"
13965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13974 MSGMERGE=$ac_cv_prog_MSGMERGE
13975 if test -n "$MSGMERGE"; then
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13977 $as_echo "$MSGMERGE" >&6; }
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13980 $as_echo "no" >&6; }
13984 test -n "$MSGMERGE" && break
13987 for ac_prog in xgettext
13989 # Extract the first word of "$ac_prog", so it can be a program name with args.
13990 set dummy $ac_prog; ac_word=$2
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13992 $as_echo_n "checking for $ac_word... " >&6; }
13993 if ${ac_cv_prog_XGETTEXT+:} false; then :
13994 $as_echo_n "(cached) " >&6
13996 if test -n "$XGETTEXT"; then
13997 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
13999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14000 for as_dir in $PATH
14003 test -z "$as_dir" && as_dir=.
14004 for ac_exec_ext in '' $ac_executable_extensions; do
14005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14006 ac_cv_prog_XGETTEXT="$ac_prog"
14007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14016 XGETTEXT=$ac_cv_prog_XGETTEXT
14017 if test -n "$XGETTEXT"; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14019 $as_echo "$XGETTEXT" >&6; }
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14026 test -n "$XGETTEXT" && break
14032 # Check for Tcl configuration script tclConfig.sh
14033 if test "$with_tcl" = yes; then
14034 for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
14036 # Extract the first word of "$ac_prog", so it can be a program name with args.
14037 set dummy $ac_prog; ac_word=$2
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14039 $as_echo_n "checking for $ac_word... " >&6; }
14040 if ${ac_cv_path_TCLSH+:} false; then :
14041 $as_echo_n "(cached) " >&6
14045 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14055 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14066 TCLSH=$ac_cv_path_TCLSH
14067 if test -n "$TCLSH"; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
14069 $as_echo "$TCLSH" >&6; }
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14076 test -n "$TCLSH" && break
14079 if test x"$TCLSH" = x""; then
14080 as_fn_error $? "Tcl shell not found" "$LINENO" 5
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
14084 $as_echo_n "checking for tclConfig.sh... " >&6; }
14085 # Let user override test
14086 if test -z "$TCL_CONFIG_SH"; then
14087 pgac_test_dirs="$with_tclconfig"
14089 set X $pgac_test_dirs; shift
14090 if test $# -eq 0; then
14091 test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
14092 set X `echo 'puts $auto_path' | $TCLSH`; shift
14096 if test -r "$pgac_dir/tclConfig.sh"; then
14097 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
14103 if test -z "$TCL_CONFIG_SH"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14105 $as_echo "no" >&6; }
14106 as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
14109 $as_echo "$TCL_CONFIG_SH" >&6; }
14115 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
14116 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
14117 eval TCL_LIBS=\"$TCL_LIBS\"
14118 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
14119 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
14121 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
14122 ac_save_CPPFLAGS=$CPPFLAGS
14123 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
14124 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
14125 if test "x$ac_cv_header_tcl_h" = xyes; then :
14128 as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5
14132 CPPFLAGS=$ac_save_CPPFLAGS
14135 # check for <perl.h>
14136 if test "$with_perl" = yes; then
14137 ac_save_CPPFLAGS=$CPPFLAGS
14138 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
14139 ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
14141 if test "x$ac_cv_header_perl_h" = xyes; then :
14144 as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5
14148 # While we're at it, check that we can link to libperl.
14149 # On most platforms, if perl.h is there then libperl.so will be too, but at
14150 # this writing Debian packages them separately. There is no known reason to
14151 # waste cycles on separate probes for the Tcl or Python libraries, though.
14152 pgac_save_LIBS=$LIBS
14153 LIBS="$perl_embed_ldflags"
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
14155 $as_echo_n "checking for libperl... " >&6; }
14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h. */
14159 #include <EXTERN.h>
14170 if ac_fn_c_try_link "$LINENO"; then :
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14172 $as_echo "yes" >&6; }
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14176 as_fn_error $? "libperl library is required for Perl" "$LINENO" 5
14178 rm -f core conftest.err conftest.$ac_objext \
14179 conftest$ac_exeext conftest.$ac_ext
14180 LIBS=$pgac_save_LIBS
14181 CPPFLAGS=$ac_save_CPPFLAGS
14184 # check for <Python.h>
14185 if test "$with_python" = yes; then
14186 ac_save_CPPFLAGS=$CPPFLAGS
14187 CPPFLAGS="$python_includespec $CPPFLAGS"
14188 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
14189 if test "x$ac_cv_header_Python_h" = xyes; then :
14192 as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5
14196 CPPFLAGS=$ac_save_CPPFLAGS
14200 # Check for DocBook and tools
14202 for ac_prog in onsgmls nsgmls
14204 # Extract the first word of "$ac_prog", so it can be a program name with args.
14205 set dummy $ac_prog; ac_word=$2
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14207 $as_echo_n "checking for $ac_word... " >&6; }
14208 if ${ac_cv_prog_NSGMLS+:} false; then :
14209 $as_echo_n "(cached) " >&6
14211 if test -n "$NSGMLS"; then
14212 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
14214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14215 for as_dir in $PATH
14218 test -z "$as_dir" && as_dir=.
14219 for ac_exec_ext in '' $ac_executable_extensions; do
14220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14221 ac_cv_prog_NSGMLS="$ac_prog"
14222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14231 NSGMLS=$ac_cv_prog_NSGMLS
14232 if test -n "$NSGMLS"; then
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
14234 $as_echo "$NSGMLS" >&6; }
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14241 test -n "$NSGMLS" && break
14244 for ac_prog in openjade jade
14246 # Extract the first word of "$ac_prog", so it can be a program name with args.
14247 set dummy $ac_prog; ac_word=$2
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14249 $as_echo_n "checking for $ac_word... " >&6; }
14250 if ${ac_cv_prog_JADE+:} false; then :
14251 $as_echo_n "(cached) " >&6
14253 if test -n "$JADE"; then
14254 ac_cv_prog_JADE="$JADE" # Let the user override the test.
14256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14260 test -z "$as_dir" && as_dir=.
14261 for ac_exec_ext in '' $ac_executable_extensions; do
14262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14263 ac_cv_prog_JADE="$ac_prog"
14264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14273 JADE=$ac_cv_prog_JADE
14274 if test -n "$JADE"; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
14276 $as_echo "$JADE" >&6; }
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14283 test -n "$JADE" && break
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook V4.2" >&5
14288 $as_echo_n "checking for DocBook V4.2... " >&6; }
14289 if ${pgac_cv_check_docbook+:} false; then :
14290 $as_echo_n "(cached) " >&6
14292 cat >conftest.sgml <<EOF
14293 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
14295 <title>test</title>
14297 <title>random</title>
14299 <title>testsect</title>
14306 pgac_cv_check_docbook=no
14308 if test -n "$NSGMLS"; then
14309 $NSGMLS -s conftest.sgml 1>&5 2>&1
14310 if test $? -eq 0; then
14311 pgac_cv_check_docbook=yes
14314 rm -f conftest.sgml
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
14317 $as_echo "$pgac_cv_check_docbook" >&6; }
14319 have_docbook=$pgac_cv_check_docbook
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook stylesheets" >&5
14323 $as_echo_n "checking for DocBook stylesheets... " >&6; }
14324 if ${pgac_cv_path_stylesheets+:} false; then :
14325 $as_echo_n "(cached) " >&6
14327 if test -n "$DOCBOOKSTYLE"; then
14328 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
14330 for pgac_prefix in /usr /usr/local /opt /sw; do
14331 for pgac_infix in share lib; do
14332 for pgac_postfix in \
14333 sgml/stylesheets/nwalsh-modular \
14334 sgml/stylesheets/docbook \
14335 sgml/stylesheets/dsssl/docbook \
14336 sgml/docbook-dsssl \
14337 sgml/docbook/dsssl/modular \
14338 sgml/docbook/stylesheet/dsssl/modular \
14339 sgml/docbook/dsssl-stylesheets \
14340 sgml/dsssl/docbook-dsssl-nwalsh
14342 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
14343 if test -r "$pgac_candidate/html/docbook.dsl" \
14344 && test -r "$pgac_candidate/print/docbook.dsl"
14346 pgac_cv_path_stylesheets=$pgac_candidate
14355 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
14357 if test -n "$DOCBOOKSTYLE"; then
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOKSTYLE" >&5
14359 $as_echo "$DOCBOOKSTYLE" >&6; }
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14362 $as_echo "no" >&6; }
14364 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
14365 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
14368 # Extract the first word of "collateindex.pl", so it can be a program name with args.
14369 set dummy collateindex.pl; ac_word=$2
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14371 $as_echo_n "checking for $ac_word... " >&6; }
14372 if ${ac_cv_path_COLLATEINDEX+:} false; then :
14373 $as_echo_n "(cached) " >&6
14375 case $COLLATEINDEX in
14377 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
14380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14381 for as_dir in $PATH
14384 test -z "$as_dir" && as_dir=.
14385 for ac_exec_ext in '' $ac_executable_extensions; do
14386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14387 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
14388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14398 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
14399 if test -n "$COLLATEINDEX"; then
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COLLATEINDEX" >&5
14401 $as_echo "$COLLATEINDEX" >&6; }
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404 $as_echo "no" >&6; }
14409 for ac_prog in xsltproc
14411 # Extract the first word of "$ac_prog", so it can be a program name with args.
14412 set dummy $ac_prog; ac_word=$2
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14414 $as_echo_n "checking for $ac_word... " >&6; }
14415 if ${ac_cv_prog_XSLTPROC+:} false; then :
14416 $as_echo_n "(cached) " >&6
14418 if test -n "$XSLTPROC"; then
14419 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
14421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14422 for as_dir in $PATH
14425 test -z "$as_dir" && as_dir=.
14426 for ac_exec_ext in '' $ac_executable_extensions; do
14427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14428 ac_cv_prog_XSLTPROC="$ac_prog"
14429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14438 XSLTPROC=$ac_cv_prog_XSLTPROC
14439 if test -n "$XSLTPROC"; then
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
14441 $as_echo "$XSLTPROC" >&6; }
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14444 $as_echo "no" >&6; }
14448 test -n "$XSLTPROC" && break
14451 for ac_prog in osx sgml2xml sx
14453 # Extract the first word of "$ac_prog", so it can be a program name with args.
14454 set dummy $ac_prog; ac_word=$2
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14456 $as_echo_n "checking for $ac_word... " >&6; }
14457 if ${ac_cv_prog_OSX+:} false; then :
14458 $as_echo_n "(cached) " >&6
14460 if test -n "$OSX"; then
14461 ac_cv_prog_OSX="$OSX" # Let the user override the test.
14463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14464 for as_dir in $PATH
14467 test -z "$as_dir" && as_dir=.
14468 for ac_exec_ext in '' $ac_executable_extensions; do
14469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14470 ac_cv_prog_OSX="$ac_prog"
14471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14480 OSX=$ac_cv_prog_OSX
14481 if test -n "$OSX"; then
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5
14483 $as_echo "$OSX" >&6; }
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14486 $as_echo "no" >&6; }
14490 test -n "$OSX" && break
14495 # Check for test tools
14497 for ac_prog in prove
14499 # Extract the first word of "$ac_prog", so it can be a program name with args.
14500 set dummy $ac_prog; ac_word=$2
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14502 $as_echo_n "checking for $ac_word... " >&6; }
14503 if ${ac_cv_prog_PROVE+:} false; then :
14504 $as_echo_n "(cached) " >&6
14506 if test -n "$PROVE"; then
14507 ac_cv_prog_PROVE="$PROVE" # Let the user override the test.
14509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14510 for as_dir in $PATH
14513 test -z "$as_dir" && as_dir=.
14514 for ac_exec_ext in '' $ac_executable_extensions; do
14515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14516 ac_cv_prog_PROVE="$ac_prog"
14517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14526 PROVE=$ac_cv_prog_PROVE
14527 if test -n "$PROVE"; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
14529 $as_echo "$PROVE" >&6; }
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14532 $as_echo "no" >&6; }
14536 test -n "$PROVE" && break
14542 # We have to run the thread test near the end so we have all our symbols
14543 # defined. Cross compiling throws a warning.
14545 if test "$enable_thread_safety" = yes; then
14546 if test "$PORTNAME" != "win32"
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
14549 $as_echo_n "checking thread safety of required library functions... " >&6; }
14553 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
14554 LIBS="$LIBS $PTHREAD_LIBS"
14555 if test "$cross_compiling" = yes; then :
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
14557 $as_echo "maybe" >&6; }
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14559 *** Skipping thread test program because of cross-compile build.
14560 *** Run the program in src/test/thread on the target machine.
14562 $as_echo "$as_me: WARNING:
14563 *** Skipping thread test program because of cross-compile build.
14564 *** Run the program in src/test/thread on the target machine.
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14569 #include "$srcdir/src/test/thread/thread_test.c"
14571 if ac_fn_c_try_run "$LINENO"; then :
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14573 $as_echo "yes" >&6; }
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14576 $as_echo "no" >&6; }
14577 as_fn_error $? "thread test program failed
14578 This platform is not thread-safe. Check the file 'config.log' or compile
14579 and run src/test/thread/thread_test for the exact reason.
14580 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
14582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14583 conftest.$ac_objext conftest.beam conftest.$ac_ext
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
14590 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
14594 # If compiler will take -Wl,--as-needed (or various platform-specific
14595 # spellings thereof) then add that to LDFLAGS. This is much easier than
14596 # trying to filter LIBS to the minimum for each executable.
14597 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
14598 # libreadline; therefore we postpone testing it until we know what library
14599 # dependencies readline has. The test code will try to link with $LIBS.
14600 if test "$with_readline" = yes; then
14601 link_test_func=readline
14603 link_test_func=exit
14606 if test "$PORTNAME" = "darwin"; then
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
14608 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
14609 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then :
14610 $as_echo_n "(cached) " >&6
14612 pgac_save_LDFLAGS=$LDFLAGS
14613 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
14614 if test "$cross_compiling" = yes; then :
14615 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14619 extern void $link_test_func (); void (*fptr) () = $link_test_func;
14628 if ac_fn_c_try_run "$LINENO"; then :
14629 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
14631 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
14633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14634 conftest.$ac_objext conftest.beam conftest.$ac_ext
14637 LDFLAGS="$pgac_save_LDFLAGS"
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
14640 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
14641 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
14642 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
14645 elif test "$PORTNAME" = "openbsd"; then
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
14647 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
14648 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then :
14649 $as_echo_n "(cached) " >&6
14651 pgac_save_LDFLAGS=$LDFLAGS
14652 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
14653 if test "$cross_compiling" = yes; then :
14654 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
14656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657 /* end confdefs.h. */
14658 extern void $link_test_func (); void (*fptr) () = $link_test_func;
14667 if ac_fn_c_try_run "$LINENO"; then :
14668 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
14670 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
14672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14673 conftest.$ac_objext conftest.beam conftest.$ac_ext
14676 LDFLAGS="$pgac_save_LDFLAGS"
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
14679 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
14680 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
14681 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
14686 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
14687 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then :
14688 $as_echo_n "(cached) " >&6
14690 pgac_save_LDFLAGS=$LDFLAGS
14691 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
14692 if test "$cross_compiling" = yes; then :
14693 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
14695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696 /* end confdefs.h. */
14697 extern void $link_test_func (); void (*fptr) () = $link_test_func;
14706 if ac_fn_c_try_run "$LINENO"; then :
14707 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
14709 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
14711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14712 conftest.$ac_objext conftest.beam conftest.$ac_ext
14715 LDFLAGS="$pgac_save_LDFLAGS"
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
14718 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
14719 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
14720 LDFLAGS="$LDFLAGS -Wl,--as-needed"
14725 # Create compiler version string
14726 if test x"$GCC" = x"yes" ; then
14727 cc_string=`${CC} --version | sed q`
14728 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
14729 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
14730 cc_string=`${CC} -V 2>&1 | sed q`
14736 cat >>confdefs.h <<_ACEOF
14737 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
14741 # Supply a numeric version string for use by 3rd party add-ons
14742 # awk -F is a regex on some platforms, and not on others, so make "." a tab
14743 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
14745 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
14747 cat >>confdefs.h <<_ACEOF
14748 #define PG_VERSION_NUM $PG_VERSION_NUM
14753 # Begin output steps
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
14756 $as_echo "$as_me: using compiler=$cc_string" >&6;}
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
14758 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
14760 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
14762 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
14764 # prepare build tree if outside source tree
14765 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
14766 # Note 2: /bin/pwd might be better than shell's built-in at getting
14767 # a symlink-free name.
14768 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
14772 if test "$no_create" != yes; then
14773 $as_echo_n "preparing build tree... " >&6
14774 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
14775 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
14776 || as_fn_error $? "failed" "$LINENO" 5
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14778 $as_echo "done" >&6; }
14784 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
14787 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/backend/port/pg_latch.c:${LATCH_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}"
14790 if test "$PORTNAME" = "win32"; then
14791 ac_config_commands="$ac_config_commands check_win32_symlinks"
14795 ac_config_headers="$ac_config_headers src/include/pg_config.h"
14798 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
14801 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
14804 cat >confcache <<\_ACEOF
14805 # This file is a shell script that caches the results of configure
14806 # tests run on this system so they can be shared between configure
14807 # scripts and configure runs, see configure's option --config-cache.
14808 # It is not useful on other systems. If it contains results you don't
14809 # want to keep, you may remove or edit it.
14811 # config.status only pays attention to the cache file if you give it
14812 # the --recheck option to rerun configure.
14814 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14815 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14816 # following values.
14820 # The following way of writing the cache mishandles newlines in values,
14821 # but we know of no workaround that is simple, portable, and efficient.
14822 # So, we kill variables containing newlines.
14823 # Ultrix sh set writes to stderr and can't be redirected directly,
14824 # and sets the high bit in the cache file unless we assign to the vars.
14826 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14827 eval ac_val=\$$ac_var
14831 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14832 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14835 _ | IFS | as_nl) ;; #(
14836 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14837 *) { eval $ac_var=; unset $ac_var;} ;;
14843 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14844 *${as_nl}ac_space=\ *)
14845 # `set' does not quote correctly, so add quotes: double-quote
14846 # substitution turns \\\\ into \\, and sed turns \\ into \.
14849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14852 # `set' quotes correctly as required by POSIX, so do not add quotes.
14853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14862 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14864 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14866 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14867 if test -w "$cache_file"; then
14868 if test "x$cache_file" != "x/dev/null"; then
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14870 $as_echo "$as_me: updating cache $cache_file" >&6;}
14871 if test ! -f "$cache_file" || test -h "$cache_file"; then
14872 cat confcache >"$cache_file"
14874 case $cache_file in #(
14876 mv -f confcache "$cache_file"$$ &&
14877 mv -f "$cache_file"$$ "$cache_file" ;; #(
14879 mv -f confcache "$cache_file" ;;
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14885 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14891 # Let make expand exec_prefix.
14892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14894 DEFS=-DHAVE_CONFIG_H
14899 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14900 # 1. Remove the extension, and $U if already installed.
14901 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14902 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14903 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14904 # will be set to the directory where LIBOBJS objects are built.
14905 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14906 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14908 LIBOBJS=$ac_libobjs
14910 LTLIBOBJS=$ac_ltlibobjs
14915 : "${CONFIG_STATUS=./config.status}"
14917 ac_clean_files_save=$ac_clean_files
14918 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14920 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14922 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14924 # Generated by $as_me.
14925 # Run this file to recreate the current configuration.
14926 # Compiler output produced by configure, useful for debugging
14927 # configure, is in config.log if it exists.
14930 ac_cs_recheck=false
14933 SHELL=\${CONFIG_SHELL-$SHELL}
14936 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14937 ## -------------------- ##
14938 ## M4sh Initialization. ##
14939 ## -------------------- ##
14941 # Be more Bourne compatible
14942 DUALCASE=1; export DUALCASE # for MKS sh
14943 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14946 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14947 # is contrary to our usage. Disable this feature.
14948 alias -g '${1+"$@"}'='"$@"'
14949 setopt NO_GLOB_SUBST
14951 case `(set -o) 2>/dev/null` in #(
14963 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14964 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14965 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14966 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14967 # Prefer a ksh shell builtin over an external printf program on Solaris,
14968 # but without wasting forks for bash or zsh.
14969 if test -z "$BASH_VERSION$ZSH_VERSION" \
14970 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14971 as_echo='print -r --'
14972 as_echo_n='print -rn --'
14973 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14974 as_echo='printf %s\n'
14975 as_echo_n='printf %s'
14977 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14978 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14979 as_echo_n='/usr/ucb/echo -n'
14981 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14982 as_echo_n_body='eval
14986 expr "X$arg" : "X\\(.*\\)$as_nl";
14987 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14989 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14991 export as_echo_n_body
14992 as_echo_n='sh -c $as_echo_n_body as_echo'
14994 export as_echo_body
14995 as_echo='sh -c $as_echo_body as_echo'
14998 # The user is always right.
14999 if test "${PATH_SEPARATOR+set}" != set; then
15001 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15002 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15009 # We need space, tab and new line, in precisely that order. Quoting is
15010 # there to prevent editors from complaining about space-tab.
15011 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15012 # splitting by setting IFS to empty value.)
15015 # Find who we are. Look in the path if we contain no directory separator.
15018 *[\\/]* ) as_myself=$0 ;;
15019 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15020 for as_dir in $PATH
15023 test -z "$as_dir" && as_dir=.
15024 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15030 # We did not find ourselves, most probably we were run as `sh COMMAND'
15031 # in which case we are not to be found in the path.
15032 if test "x$as_myself" = x; then
15035 if test ! -f "$as_myself"; then
15036 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15040 # Unset variables that we do not need and which cause bugs (e.g. in
15041 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15042 # suppresses any "Segmentation fault" message there. '((' could
15043 # trigger a bug in pdksh 5.2.14.
15044 for as_var in BASH_ENV ENV MAIL MAILPATH
15045 do eval test x\${$as_var+set} = xset \
15046 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15059 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15062 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15063 # ----------------------------------------
15064 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15065 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15066 # script with STATUS, using 1 if that was 0.
15069 as_status=$1; test $as_status -eq 0 && as_status=1
15071 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15072 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15074 $as_echo "$as_me: error: $2" >&2
15075 as_fn_exit $as_status
15079 # as_fn_set_status STATUS
15080 # -----------------------
15081 # Set $? to STATUS, without forking.
15082 as_fn_set_status ()
15085 } # as_fn_set_status
15087 # as_fn_exit STATUS
15088 # -----------------
15089 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15093 as_fn_set_status $1
15099 # Portably unset VAR.
15102 { eval $1=; unset $1;}
15104 as_unset=as_fn_unset
15105 # as_fn_append VAR VALUE
15106 # ----------------------
15107 # Append the text in VALUE to the end of the definition contained in VAR. Take
15108 # advantage of any shell optimizations that allow amortized linear growth over
15109 # repeated appends, instead of the typical quadratic growth present in naive
15111 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15112 eval 'as_fn_append ()
15123 # as_fn_arith ARG...
15124 # ------------------
15125 # Perform arithmetic evaluation on the ARGs, and store the result in the
15126 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15127 # must be portable across $(()) and expr.
15128 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15129 eval 'as_fn_arith ()
15136 as_val=`expr "$@" || test $? -eq 1`
15141 if expr a : '\(a\)' >/dev/null 2>&1 &&
15142 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15148 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15149 as_basename=basename
15154 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15160 as_me=`$as_basename -- "$0" ||
15161 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15162 X"$0" : 'X\(//\)$' \| \
15163 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15165 sed '/^.*\/\([^/][^/]*\)\/*$/{
15179 # Avoid depending upon Character Ranges.
15180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15183 as_cr_digits='0123456789'
15184 as_cr_alnum=$as_cr_Letters$as_cr_digits
15186 ECHO_C= ECHO_N= ECHO_T=
15187 case `echo -n x` in #(((((
15189 case `echo 'xy\c'` in
15190 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15192 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15199 rm -f conf$$ conf$$.exe conf$$.file
15200 if test -d conf$$.dir; then
15201 rm -f conf$$.dir/conf$$.file
15204 mkdir conf$$.dir 2>/dev/null
15206 if (echo >conf$$.file) 2>/dev/null; then
15207 if ln -s conf$$.file conf$$ 2>/dev/null; then
15209 # ... but there are two gotchas:
15210 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15211 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15212 # In both cases, we have to default to `cp -pR'.
15213 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15215 elif ln conf$$.file conf$$ 2>/dev/null; then
15223 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15224 rmdir conf$$.dir 2>/dev/null
15229 # Create "$as_dir" as a directory, including parents if necessary.
15234 -*) as_dir=./$as_dir;;
15236 test -d "$as_dir" || eval $as_mkdir_p || {
15240 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15241 *) as_qdir=$as_dir;;
15243 as_dirs="'$as_qdir' $as_dirs"
15244 as_dir=`$as_dirname -- "$as_dir" ||
15245 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15246 X"$as_dir" : 'X\(//\)[^/]' \| \
15247 X"$as_dir" : 'X\(//\)$' \| \
15248 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15249 $as_echo X"$as_dir" |
15250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15254 /^X\(\/\/\)[^/].*/{
15267 test -d "$as_dir" && break
15269 test -z "$as_dirs" || eval "mkdir $as_dirs"
15270 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15274 if mkdir -p . 2>/dev/null; then
15275 as_mkdir_p='mkdir -p "$as_dir"'
15277 test -d ./-p && rmdir ./-p
15282 # as_fn_executable_p FILE
15283 # -----------------------
15284 # Test if FILE is an executable regular file.
15285 as_fn_executable_p ()
15287 test -f "$1" && test -x "$1"
15288 } # as_fn_executable_p
15289 as_test_x='test -x'
15290 as_executable_p=as_fn_executable_p
15292 # Sed expression to map a string onto a valid CPP name.
15293 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15295 # Sed expression to map a string onto a valid variable name.
15296 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15300 ## ----------------------------------- ##
15301 ## Main body of $CONFIG_STATUS script. ##
15302 ## ----------------------------------- ##
15304 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15307 # Save the log message, to keep $0 and so on meaningful, and to
15308 # report actual input values of CONFIG_FILES etc. instead of their
15309 # values after options handling.
15311 This file was extended by PostgreSQL $as_me 9.5devel, which was
15312 generated by GNU Autoconf 2.69. Invocation command line was
15314 CONFIG_FILES = $CONFIG_FILES
15315 CONFIG_HEADERS = $CONFIG_HEADERS
15316 CONFIG_LINKS = $CONFIG_LINKS
15317 CONFIG_COMMANDS = $CONFIG_COMMANDS
15320 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15325 case $ac_config_files in *"
15326 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15329 case $ac_config_headers in *"
15330 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15335 # Files that config.status was made for.
15336 config_files="$ac_config_files"
15337 config_headers="$ac_config_headers"
15338 config_links="$ac_config_links"
15339 config_commands="$ac_config_commands"
15343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15345 \`$as_me' instantiates files and other configuration actions
15346 from templates according to the current configuration. Unless the files
15347 and actions are specified as TAGs, all are instantiated by default.
15349 Usage: $0 [OPTION]... [TAG]...
15351 -h, --help print this help, then exit
15352 -V, --version print version number and configuration settings, then exit
15353 --config print configuration, then exit
15354 -q, --quiet, --silent
15355 do not print progress messages
15356 -d, --debug don't remove temporary files
15357 --recheck update $as_me by reconfiguring in the same conditions
15358 --file=FILE[:TEMPLATE]
15359 instantiate the configuration file FILE
15360 --header=FILE[:TEMPLATE]
15361 instantiate the configuration header FILE
15363 Configuration files:
15366 Configuration headers:
15369 Configuration links:
15372 Configuration commands:
15375 Report bugs to <pgsql-bugs@postgresql.org>."
15378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15379 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15381 PostgreSQL config.status 9.5devel
15382 configured by $0, generated by GNU Autoconf 2.69,
15383 with options \\"\$ac_cs_config\\"
15385 Copyright (C) 2012 Free Software Foundation, Inc.
15386 This config.status script is free software; the Free Software Foundation
15387 gives unlimited permission to copy, distribute and modify it."
15394 test -n "\$AWK" || AWK=awk
15397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15398 # The default lists apply if the user does not specify any file.
15404 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15405 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15409 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15421 # Handling of the options.
15422 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15424 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15425 $as_echo "$ac_cs_version"; exit ;;
15426 --config | --confi | --conf | --con | --co | --c )
15427 $as_echo "$ac_cs_config"; exit ;;
15428 --debug | --debu | --deb | --de | --d | -d )
15430 --file | --fil | --fi | --f )
15433 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15434 '') as_fn_error $? "missing file argument" ;;
15436 as_fn_append CONFIG_FILES " '$ac_optarg'"
15437 ac_need_defaults=false;;
15438 --header | --heade | --head | --hea )
15441 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15443 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15444 ac_need_defaults=false;;
15446 # Conflict between --help and --header
15447 as_fn_error $? "ambiguous option: \`$1'
15448 Try \`$0 --help' for more information.";;
15449 --help | --hel | -h )
15450 $as_echo "$ac_cs_usage"; exit ;;
15451 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15452 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15455 # This is an error.
15456 -*) as_fn_error $? "unrecognized option: \`$1'
15457 Try \`$0 --help' for more information." ;;
15459 *) as_fn_append ac_config_targets " $1"
15460 ac_need_defaults=false ;;
15466 ac_configure_extra_args=
15468 if $ac_cs_silent; then
15470 ac_configure_extra_args="$ac_configure_extra_args --silent"
15474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15475 if \$ac_cs_recheck; then
15476 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15478 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15479 CONFIG_SHELL='$SHELL'
15480 export CONFIG_SHELL
15485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15490 ## Running $as_me. ##
15496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15501 # Handling of arguments.
15502 for ac_config_target in $ac_config_targets
15504 case $ac_config_target in
15505 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
15506 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
15507 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
15508 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
15509 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
15510 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
15511 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
15512 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
15513 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
15514 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
15515 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
15516 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
15517 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
15518 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
15520 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15525 # If the user did not use the arguments to specify the items to instantiate,
15526 # then the envvar interface is used. Set only those that are not.
15527 # We use the long form for the default assignment because of an extremely
15528 # bizarre bug on SunOS 4.1.3.
15529 if $ac_need_defaults; then
15530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15532 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15536 # Have a temporary directory for convenience. Make it in the build tree
15537 # simply because there is no reason against having it here, and in addition,
15538 # creating and moving files from /tmp can sometimes cause problems.
15539 # Hook for its removal unless debugging.
15540 # Note that there is a small window in which the directory will not be cleaned:
15541 # after its creation but before its name has been assigned to `$tmp'.
15545 trap 'exit_status=$?
15546 : "${ac_tmp:=$tmp}"
15547 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15549 trap 'as_fn_exit 1' 1 2 13 15
15551 # Create a (secure) tmp directory for tmp files.
15554 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15558 tmp=./conf$$-$RANDOM
15559 (umask 077 && mkdir "$tmp")
15560 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15563 # Set up the scripts for CONFIG_FILES section.
15564 # No need to generate them if there are no CONFIG_FILES.
15565 # This happens for instance with `./config.status config.h'.
15566 if test -n "$CONFIG_FILES"; then
15569 ac_cr=`echo X | tr X '\015'`
15570 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15571 # But we know of no other shell where ac_cr would be empty at this
15572 # point, so we can use a bashism as a fallback.
15573 if test "x$ac_cr" = x; then
15574 eval ac_cr=\$\'\\r\'
15576 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15577 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15580 ac_cs_awk_cr=$ac_cr
15583 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15588 echo "cat >conf$$subs.awk <<_ACEOF" &&
15589 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15591 } >conf$$subs.sh ||
15592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15593 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15595 for ac_last_try in false false false false false :; do
15596 . ./conf$$subs.sh ||
15597 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15599 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15600 if test $ac_delim_n = $ac_delim_num; then
15602 elif $ac_last_try; then
15603 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15608 rm -f conf$$subs.sh
15610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15611 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15615 s/^/S["/; s/!.*/"]=/
15625 s/\(.\{148\}\)..*/\1/
15627 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15639 s/\(.\{148\}\)..*/\1/
15641 s/["\\]/\\&/g; s/^/"/; s/$/"/
15645 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15650 ' <conf$$subs.awk | sed '
15655 ' >>$CONFIG_STATUS || ac_write_fail=1
15656 rm -f conf$$subs.awk
15657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15659 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15660 for (key in S) S_is_set[key] = 1
15666 nfields = split(line, field, "@")
15668 len = length(field[1])
15669 for (i = 2; i < nfields; i++) {
15671 keylen = length(key)
15672 if (S_is_set[key]) {
15674 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15675 len += length(value) + length(field[++i])
15686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15687 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15688 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15691 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15692 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15695 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15696 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15697 # trailing colons and then remove the whole line if VPATH becomes empty
15698 # (actually we leave an empty line to preserve line numbers).
15699 if test "x$srcdir" = x.; then
15700 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15719 fi # test -n "$CONFIG_FILES"
15721 # Set up the scripts for CONFIG_HEADERS section.
15722 # No need to generate them if there are no CONFIG_HEADERS.
15723 # This happens for instance with `./config.status Makefile'.
15724 if test -n "$CONFIG_HEADERS"; then
15725 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15729 # Transform confdefs.h into an awk script `defines.awk', embedded as
15730 # here-document in config.status, that substitutes the proper values into
15731 # config.h.in to produce config.h.
15733 # Create a delimiter string that does not exist in confdefs.h, to ease
15734 # handling of long lines.
15736 for ac_last_try in false false :; do
15737 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15738 if test -z "$ac_tt"; then
15740 elif $ac_last_try; then
15741 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15747 # For the awk script, D is an array of macro values keyed by name,
15748 # likewise P contains macro parameters if any. Preserve backslash
15749 # newline sequences.
15751 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15753 s/.\{148\}/&'"$ac_delim"'/g
15756 s/^[ ]*#[ ]*define[ ][ ]*/ /
15763 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15765 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15769 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15770 D["\1"]=" \3\\\\\\n"\\/p
15772 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15777 s/.\{148\}/&'"$ac_delim"'/g
15782 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15785 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15787 ' <confdefs.h | sed '
15788 s/'"$ac_delim"'/"\\\
15789 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15792 for (key in D) D_is_set[key] = 1
15795 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15797 split(line, arg, " ")
15798 if (arg[1] == "#") {
15802 defundef = substr(arg[1], 2)
15805 split(mac1, mac2, "(") #)
15807 prefix = substr(line, 1, index(line, defundef) - 1)
15808 if (D_is_set[macro]) {
15809 # Preserve the white space surrounding the "#".
15810 print prefix "define", macro P[macro] D[macro]
15813 # Replace #undef with comments. This is necessary, for example,
15814 # in the case of _POSIX_SOURCE, which is predefined and required
15815 # on some systems where configure will not decide to define it.
15816 if (defundef == "undef") {
15817 print "/*", prefix defundef, macro, "*/"
15825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15826 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15827 fi # test -n "$CONFIG_HEADERS"
15830 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15835 :[FHLC]) ac_mode=$ac_tag; continue;;
15837 case $ac_mode$ac_tag in
15839 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15840 :[FH]-) ac_tag=-:-;;
15841 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15858 -) ac_f="$ac_tmp/stdin";;
15859 *) # Look for the file first in the build tree, then in the source tree
15860 # (if the path is not absolute). The absolute path cannot be DOS-style,
15861 # because $ac_f cannot contain `:'.
15865 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15867 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15869 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15870 as_fn_append ac_file_inputs " '$ac_f'"
15873 # Let's still pretend it is `configure' which instantiates (i.e., don't
15874 # use $as_me), people would be surprised to read:
15875 # /* config.h. Generated by config.status. */
15876 configure_input='Generated from '`
15877 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15879 if test x"$ac_file" != x-; then
15880 configure_input="$ac_file. $configure_input"
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15882 $as_echo "$as_me: creating $ac_file" >&6;}
15884 # Neutralize special characters interpreted by sed in replacement strings.
15885 case $configure_input in #(
15886 *\&* | *\|* | *\\* )
15887 ac_sed_conf_input=`$as_echo "$configure_input" |
15888 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15889 *) ac_sed_conf_input=$configure_input;;
15893 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15899 ac_dir=`$as_dirname -- "$ac_file" ||
15900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15901 X"$ac_file" : 'X\(//\)[^/]' \| \
15902 X"$ac_file" : 'X\(//\)$' \| \
15903 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15904 $as_echo X"$ac_file" |
15905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15909 /^X\(\/\/\)[^/].*/{
15922 as_dir="$ac_dir"; as_fn_mkdir_p
15926 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15928 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15929 # A ".." for each directory in $ac_dir_suffix.
15930 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15931 case $ac_top_builddir_sub in
15932 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15933 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15936 ac_abs_top_builddir=$ac_pwd
15937 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15938 # for backward compatibility:
15939 ac_top_builddir=$ac_top_build_prefix
15942 .) # We are building in place.
15944 ac_top_srcdir=$ac_top_builddir_sub
15945 ac_abs_top_srcdir=$ac_pwd ;;
15946 [\\/]* | ?:[\\/]* ) # Absolute name.
15947 ac_srcdir=$srcdir$ac_dir_suffix;
15948 ac_top_srcdir=$srcdir
15949 ac_abs_top_srcdir=$srcdir ;;
15950 *) # Relative name.
15951 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15952 ac_top_srcdir=$ac_top_build_prefix$srcdir
15953 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15955 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15965 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15966 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15968 ac_MKDIR_P=$MKDIR_P
15970 [\\/$]* | ?:[\\/]* ) ;;
15971 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15976 # If the template does not know about datarootdir, expand it.
15977 # FIXME: This hack should be removed a few years after 2.60.
15978 ac_datarootdir_hack=; ac_datarootdir_seen=
15989 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15990 *datarootdir*) ac_datarootdir_seen=yes;;
15991 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15993 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15996 ac_datarootdir_hack='
15997 s&@datadir@&$datadir&g
15998 s&@docdir@&$docdir&g
15999 s&@infodir@&$infodir&g
16000 s&@localedir@&$localedir&g
16001 s&@mandir@&$mandir&g
16002 s&\\\${datarootdir}&$datarootdir&g' ;;
16006 # Neutralize VPATH when `$srcdir' = `.'.
16007 # Shell code in configure.ac might set extrasub.
16008 # FIXME: do we really want to maintain this feature?
16009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16010 ac_sed_extra="$ac_vpsub
16013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16016 s|@configure_input@|$ac_sed_conf_input|;t t
16017 s&@top_builddir@&$ac_top_builddir_sub&;t t
16018 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16019 s&@srcdir@&$ac_srcdir&;t t
16020 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16021 s&@top_srcdir@&$ac_top_srcdir&;t t
16022 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16023 s&@builddir@&$ac_builddir&;t t
16024 s&@abs_builddir@&$ac_abs_builddir&;t t
16025 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16026 s&@INSTALL@&$ac_INSTALL&;t t
16027 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16028 $ac_datarootdir_hack
16030 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16031 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16034 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16036 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16038 which seems to be undefined. Please make sure it is defined" >&5
16039 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16040 which seems to be undefined. Please make sure it is defined" >&2;}
16042 rm -f "$ac_tmp/stdin"
16044 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16045 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16053 if test x"$ac_file" != x-; then
16055 $as_echo "/* $configure_input */" \
16056 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16057 } >"$ac_tmp/config.h" \
16058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16059 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16061 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16064 mv "$ac_tmp/config.h" "$ac_file" \
16065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16068 $as_echo "/* $configure_input */" \
16069 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16070 || as_fn_error $? "could not create -" "$LINENO" 5
16078 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16081 # Prefer the file from the source tree if names are identical.
16082 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16083 ac_source=$srcdir/$ac_source
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16087 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16089 if test ! -r "$ac_source"; then
16090 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16094 # Try a relative symlink, then a hard link, then a copy.
16096 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16097 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16099 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16100 ln "$ac_source" "$ac_file" 2>/dev/null ||
16101 cp -p "$ac_source" "$ac_file" ||
16102 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16105 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16106 $as_echo "$as_me: executing $ac_file commands" >&6;}
16111 case $ac_file$ac_mode in
16112 "check_win32_symlinks":C)
16113 # Links sometimes fail undetected on Mingw -
16114 # so here we detect it and warn the user
16115 for FILE in $CONFIG_LINKS
16117 # test -e works for symlinks in the MinGW console
16118 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
16119 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
16122 "src/include/pg_config.h":H)
16123 # Update timestamp for pg_config.h (see Makefile.global)
16124 echo >src/include/stamp-h
16126 "src/include/pg_config_ext.h":H)
16127 # Update timestamp for pg_config_ext.h (see Makefile.global)
16128 echo >src/include/stamp-ext-h
16130 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
16138 ac_clean_files=$ac_clean_files_save
16140 test $ac_write_fail = 0 ||
16141 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16144 # configure is writing to config.log, and then calls config.status.
16145 # config.status does its own redirection, appending to config.log.
16146 # Unfortunately, on DOS this fails, as config.log is still kept open
16147 # by configure, so config.status won't be able to write to it; its
16148 # output is simply discarded. So we exec the FD to /dev/null,
16149 # effectively closing config.log, so it can be properly (re)opened and
16150 # appended to by config.status. When coming back to configure, we
16151 # need to make the FD available again.
16152 if test "$no_create" != yes; then
16154 ac_config_status_args=
16155 test "$silent" = yes &&
16156 ac_config_status_args="$ac_config_status_args --quiet"
16158 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16160 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16161 # would make configure fail if this is the last instruction.
16162 $ac_cs_success || as_fn_exit 1
16164 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16166 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}