5 kx #! /bin/sh
5 kx # Guess values for system-dependent variables and create Makefiles.
5 kx # Generated by GNU Autoconf 2.69 for PostgreSQL 14.1.
5 kx #
5 kx # Report bugs to <pgsql-bugs@lists.postgresql.org>.
5 kx #
5 kx #
5 kx # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5 kx #
5 kx #
5 kx # This configure script is free software; the Free Software Foundation
5 kx # gives unlimited permission to copy, distribute and modify it.
5 kx #
5 kx # Copyright (c) 1996-2021, PostgreSQL Global Development Group
5 kx ## -------------------- ##
5 kx ## M4sh Initialization. ##
5 kx ## -------------------- ##
5 kx
5 kx # Be more Bourne compatible
5 kx DUALCASE=1; export DUALCASE # for MKS sh
5 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5 kx emulate sh
5 kx NULLCMD=:
5 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5 kx # is contrary to our usage. Disable this feature.
5 kx alias -g '${1+"$@"}'='"$@"'
5 kx setopt NO_GLOB_SUBST
5 kx else
5 kx case `(set -o) 2>/dev/null` in #(
5 kx *posix*) :
5 kx set -o posix ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx as_nl='
5 kx '
5 kx export as_nl
5 kx # Printing a long string crashes Solaris 7 /usr/bin/printf.
5 kx as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5 kx # Prefer a ksh shell builtin over an external printf program on Solaris,
5 kx # but without wasting forks for bash or zsh.
5 kx if test -z "$BASH_VERSION$ZSH_VERSION" \
5 kx && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5 kx as_echo='print -r --'
5 kx as_echo_n='print -rn --'
5 kx elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5 kx as_echo='printf %s\n'
5 kx as_echo_n='printf %s'
5 kx else
5 kx if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5 kx as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5 kx as_echo_n='/usr/ucb/echo -n'
5 kx else
5 kx as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5 kx as_echo_n_body='eval
5 kx arg=$1;
5 kx case $arg in #(
5 kx *"$as_nl"*)
5 kx expr "X$arg" : "X\\(.*\\)$as_nl";
5 kx arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5 kx esac;
5 kx expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5 kx '
5 kx export as_echo_n_body
5 kx as_echo_n='sh -c $as_echo_n_body as_echo'
5 kx fi
5 kx export as_echo_body
5 kx as_echo='sh -c $as_echo_body as_echo'
5 kx fi
5 kx
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5 kx PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx
5 kx # IFS
5 kx # We need space, tab and new line, in precisely that order. Quoting is
5 kx # there to prevent editors from complaining about space-tab.
5 kx # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5 kx # splitting by setting IFS to empty value.)
5 kx IFS=" "" $as_nl"
5 kx
5 kx # Find who we are. Look in the path if we contain no directory separator.
5 kx as_myself=
5 kx case $0 in #((
5 kx *[\\/]* ) as_myself=$0 ;;
5 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
5 kx # in which case we are not to be found in the path.
5 kx if test "x$as_myself" = x; then
5 kx as_myself=$0
5 kx fi
5 kx if test ! -f "$as_myself"; then
5 kx $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5 kx exit 1
5 kx fi
5 kx
5 kx # Unset variables that we do not need and which cause bugs (e.g. in
5 kx # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5 kx # suppresses any "Segmentation fault" message there. '((' could
5 kx # trigger a bug in pdksh 5.2.14.
5 kx for as_var in BASH_ENV ENV MAIL MAILPATH
5 kx do eval test x\${$as_var+set} = xset \
5 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5 kx done
5 kx PS1='$ '
5 kx PS2='> '
5 kx PS4='+ '
5 kx
5 kx # NLS nuisances.
5 kx LC_ALL=C
5 kx export LC_ALL
5 kx LANGUAGE=C
5 kx export LANGUAGE
5 kx
5 kx # CDPATH.
5 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5 kx
5 kx # Use a proper internal environment variable to ensure we don't fall
5 kx # into an infinite loop, continuously re-executing ourselves.
5 kx if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
5 kx _as_can_reexec=no; export _as_can_reexec;
5 kx # We cannot yet assume a decent shell, so we have to provide a
5 kx # neutralization value for shells without unset; and this also
5 kx # works around shells that cannot unset nonexistent variables.
5 kx # Preserve -v and -x to the replacement shell.
5 kx BASH_ENV=/dev/null
5 kx ENV=/dev/null
5 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
5 kx case $- in # ((((
5 kx *v*x* | *x*v* ) as_opts=-vx ;;
5 kx *v* ) as_opts=-v ;;
5 kx *x* ) as_opts=-x ;;
5 kx * ) as_opts= ;;
5 kx esac
5 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
5 kx # Admittedly, this is quite paranoid, since all the known shells bail
5 kx # out after a failed `exec'.
5 kx $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
5 kx as_fn_exit 255
5 kx fi
5 kx # We don't want this to propagate to other subprocesses.
5 kx { _as_can_reexec=; unset _as_can_reexec;}
5 kx if test "x$CONFIG_SHELL" = x; then
5 kx as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
5 kx emulate sh
5 kx NULLCMD=:
5 kx # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
5 kx # is contrary to our usage. Disable this feature.
5 kx alias -g '\${1+\"\$@\"}'='\"\$@\"'
5 kx setopt NO_GLOB_SUBST
5 kx else
5 kx case \`(set -o) 2>/dev/null\` in #(
5 kx *posix*) :
5 kx set -o posix ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx fi
5 kx "
5 kx as_required="as_fn_return () { (exit \$1); }
5 kx as_fn_success () { as_fn_return 0; }
5 kx as_fn_failure () { as_fn_return 1; }
5 kx as_fn_ret_success () { return 0; }
5 kx as_fn_ret_failure () { return 1; }
5 kx
5 kx exitcode=0
5 kx as_fn_success || { exitcode=1; echo as_fn_success failed.; }
5 kx as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
5 kx as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
5 kx as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
5 kx if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
5 kx
5 kx else
5 kx exitcode=1; echo positional parameters were not saved.
5 kx fi
5 kx test x\$exitcode = x0 || exit 1
5 kx test -x / || exit 1"
5 kx as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
5 kx as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
5 kx eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
5 kx test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
5 kx test \$(( 1 + 1 )) = 2 || exit 1"
5 kx if (eval "$as_required") 2>/dev/null; then :
5 kx as_have_required=yes
5 kx else
5 kx as_have_required=no
5 kx fi
5 kx if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
5 kx
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx as_found=false
5 kx for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx as_found=:
5 kx case $as_dir in #(
5 kx /*)
5 kx for as_base in sh bash ksh sh5; do
5 kx # Try only shells that exist, to save several forks.
5 kx as_shell=$as_dir/$as_base
5 kx if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
5 kx { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
5 kx CONFIG_SHELL=$as_shell as_have_required=yes
5 kx if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
5 kx break 2
5 kx fi
5 kx fi
5 kx done;;
5 kx esac
5 kx as_found=false
5 kx done
5 kx $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
5 kx { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
5 kx CONFIG_SHELL=$SHELL as_have_required=yes
5 kx fi; }
5 kx IFS=$as_save_IFS
5 kx
5 kx
5 kx if test "x$CONFIG_SHELL" != x; then :
5 kx export CONFIG_SHELL
5 kx # We cannot yet assume a decent shell, so we have to provide a
5 kx # neutralization value for shells without unset; and this also
5 kx # works around shells that cannot unset nonexistent variables.
5 kx # Preserve -v and -x to the replacement shell.
5 kx BASH_ENV=/dev/null
5 kx ENV=/dev/null
5 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
5 kx case $- in # ((((
5 kx *v*x* | *x*v* ) as_opts=-vx ;;
5 kx *v* ) as_opts=-v ;;
5 kx *x* ) as_opts=-x ;;
5 kx * ) as_opts= ;;
5 kx esac
5 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
5 kx # Admittedly, this is quite paranoid, since all the known shells bail
5 kx # out after a failed `exec'.
5 kx $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
5 kx exit 255
5 kx fi
5 kx
5 kx if test x$as_have_required = xno; then :
5 kx $as_echo "$0: This script requires a shell more modern than all"
5 kx $as_echo "$0: the shells that I found on your system."
5 kx if test x${ZSH_VERSION+set} = xset ; then
5 kx $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
5 kx $as_echo "$0: be upgraded to zsh 4.3.4 or later."
5 kx else
5 kx $as_echo "$0: Please tell bug-autoconf@gnu.org and
5 kx $0: pgsql-bugs@lists.postgresql.org about your system,
5 kx $0: including any error possibly output before this
5 kx $0: message. Then install a modern shell, or manually run
5 kx $0: the script under such a shell if you do have one."
5 kx fi
5 kx exit 1
5 kx fi
5 kx fi
5 kx fi
5 kx SHELL=${CONFIG_SHELL-/bin/sh}
5 kx export SHELL
5 kx # Unset more variables known to interfere with behavior of common tools.
5 kx CLICOLOR_FORCE= GREP_OPTIONS=
5 kx unset CLICOLOR_FORCE GREP_OPTIONS
5 kx
5 kx ## --------------------- ##
5 kx ## M4sh Shell Functions. ##
5 kx ## --------------------- ##
5 kx # as_fn_unset VAR
5 kx # ---------------
5 kx # Portably unset VAR.
5 kx as_fn_unset ()
5 kx {
5 kx { eval $1=; unset $1;}
5 kx }
5 kx as_unset=as_fn_unset
5 kx
5 kx # as_fn_set_status STATUS
5 kx # -----------------------
5 kx # Set $? to STATUS, without forking.
5 kx as_fn_set_status ()
5 kx {
5 kx return $1
5 kx } # as_fn_set_status
5 kx
5 kx # as_fn_exit STATUS
5 kx # -----------------
5 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5 kx as_fn_exit ()
5 kx {
5 kx set +e
5 kx as_fn_set_status $1
5 kx exit $1
5 kx } # as_fn_exit
5 kx
5 kx # as_fn_mkdir_p
5 kx # -------------
5 kx # Create "$as_dir" as a directory, including parents if necessary.
5 kx as_fn_mkdir_p ()
5 kx {
5 kx
5 kx case $as_dir in #(
5 kx -*) as_dir=./$as_dir;;
5 kx esac
5 kx test -d "$as_dir" || eval $as_mkdir_p || {
5 kx as_dirs=
5 kx while :; do
5 kx case $as_dir in #(
5 kx *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5 kx *) as_qdir=$as_dir;;
5 kx esac
5 kx as_dirs="'$as_qdir' $as_dirs"
5 kx as_dir=`$as_dirname -- "$as_dir" ||
5 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$as_dir" : 'X\(//\)[^/]' \| \
5 kx X"$as_dir" : 'X\(//\)$' \| \
5 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$as_dir" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx test -d "$as_dir" && break
5 kx done
5 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
5 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5 kx
5 kx
5 kx } # as_fn_mkdir_p
5 kx
5 kx # as_fn_executable_p FILE
5 kx # -----------------------
5 kx # Test if FILE is an executable regular file.
5 kx as_fn_executable_p ()
5 kx {
5 kx test -f "$1" && test -x "$1"
5 kx } # as_fn_executable_p
5 kx # as_fn_append VAR VALUE
5 kx # ----------------------
5 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
5 kx # advantage of any shell optimizations that allow amortized linear growth over
5 kx # repeated appends, instead of the typical quadratic growth present in naive
5 kx # implementations.
5 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5 kx eval 'as_fn_append ()
5 kx {
5 kx eval $1+=\$2
5 kx }'
5 kx else
5 kx as_fn_append ()
5 kx {
5 kx eval $1=\$$1\$2
5 kx }
5 kx fi # as_fn_append
5 kx
5 kx # as_fn_arith ARG...
5 kx # ------------------
5 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
5 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
5 kx # must be portable across $(()) and expr.
5 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5 kx eval 'as_fn_arith ()
5 kx {
5 kx as_val=$(( $* ))
5 kx }'
5 kx else
5 kx as_fn_arith ()
5 kx {
5 kx as_val=`expr "$@" || test $? -eq 1`
5 kx }
5 kx fi # as_fn_arith
5 kx
5 kx
5 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
5 kx # ----------------------------------------
5 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5 kx # script with STATUS, using 1 if that was 0.
5 kx as_fn_error ()
5 kx {
5 kx as_status=$1; test $as_status -eq 0 && as_status=1
5 kx if test "$4"; then
5 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5 kx fi
5 kx $as_echo "$as_me: error: $2" >&2
5 kx as_fn_exit $as_status
5 kx } # as_fn_error
5 kx
5 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
5 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
5 kx as_expr=expr
5 kx else
5 kx as_expr=false
5 kx fi
5 kx
5 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5 kx as_basename=basename
5 kx else
5 kx as_basename=false
5 kx fi
5 kx
5 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5 kx as_dirname=dirname
5 kx else
5 kx as_dirname=false
5 kx fi
5 kx
5 kx as_me=`$as_basename -- "$0" ||
5 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5 kx X"$0" : 'X\(//\)$' \| \
5 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X/"$0" |
5 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx
5 kx # Avoid depending upon Character Ranges.
5 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5 kx as_cr_digits='0123456789'
5 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
5 kx
5 kx
5 kx as_lineno_1=$LINENO as_lineno_1a=$LINENO
5 kx as_lineno_2=$LINENO as_lineno_2a=$LINENO
5 kx eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
5 kx test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
5 kx # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
5 kx sed -n '
5 kx p
5 kx /[$]LINENO/=
5 kx ' <$as_myself |
5 kx sed '
5 kx s/[$]LINENO.*/&-/
5 kx t lineno
5 kx b
5 kx :lineno
5 kx N
5 kx :loop
5 kx s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5 kx t loop
5 kx s/-\n.*//
5 kx ' >$as_me.lineno &&
5 kx chmod +x "$as_me.lineno" ||
5 kx { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5 kx
5 kx # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
5 kx # already done that, so ensure we don't try to do so again and fall
5 kx # in an infinite loop. This has already happened in practice.
5 kx _as_can_reexec=no; export _as_can_reexec
5 kx # Don't try to exec as it changes $[0], causing all sort of problems
5 kx # (the dirname of $[0] is not the place where we might find the
5 kx # original and so on. Autoconf is especially sensitive to this).
5 kx . "./$as_me.lineno"
5 kx # Exit status is that of the last command.
5 kx exit
5 kx }
5 kx
5 kx ECHO_C= ECHO_N= ECHO_T=
5 kx case `echo -n x` in #(((((
5 kx -n*)
5 kx case `echo 'xy\c'` in
5 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5 kx xy) ECHO_C='\c';;
5 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5 kx ECHO_T=' ';;
5 kx esac;;
5 kx *)
5 kx ECHO_N='-n';;
5 kx esac
5 kx
5 kx rm -f conf$$ conf$$.exe conf$$.file
5 kx if test -d conf$$.dir; then
5 kx rm -f conf$$.dir/conf$$.file
5 kx else
5 kx rm -f conf$$.dir
5 kx mkdir conf$$.dir 2>/dev/null
5 kx fi
5 kx if (echo >conf$$.file) 2>/dev/null; then
5 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s='ln -s'
5 kx # ... but there are two gotchas:
5 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5 kx # In both cases, we have to default to `cp -pR'.
5 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5 kx as_ln_s='cp -pR'
5 kx elif ln conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s=ln
5 kx else
5 kx as_ln_s='cp -pR'
5 kx fi
5 kx else
5 kx as_ln_s='cp -pR'
5 kx fi
5 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5 kx rmdir conf$$.dir 2>/dev/null
5 kx
5 kx if mkdir -p . 2>/dev/null; then
5 kx as_mkdir_p='mkdir -p "$as_dir"'
5 kx else
5 kx test -d ./-p && rmdir ./-p
5 kx as_mkdir_p=false
5 kx fi
5 kx
5 kx as_test_x='test -x'
5 kx as_executable_p=as_fn_executable_p
5 kx
5 kx # Sed expression to map a string onto a valid CPP name.
5 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx # Sed expression to map a string onto a valid variable name.
5 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx
5 kx test -n "$DJDIR" || exec 7<&0 </dev/null
5 kx exec 6>&1
5 kx
5 kx # Name of the host.
5 kx # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5 kx # so uname gets run too.
5 kx ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5 kx
5 kx #
5 kx # Initializations.
5 kx #
5 kx ac_default_prefix=/usr/local
5 kx ac_clean_files=
5 kx ac_config_libobj_dir=.
5 kx LIBOBJS=
5 kx cross_compiling=no
5 kx subdirs=
5 kx MFLAGS=
5 kx MAKEFLAGS=
5 kx
5 kx # Identity of this package.
5 kx PACKAGE_NAME='PostgreSQL'
5 kx PACKAGE_TARNAME='postgresql'
5 kx PACKAGE_VERSION='14.1'
5 kx PACKAGE_STRING='PostgreSQL 14.1'
5 kx PACKAGE_BUGREPORT='pgsql-bugs@lists.postgresql.org'
5 kx PACKAGE_URL='https://www.postgresql.org/'
5 kx
5 kx ac_unique_file="src/backend/access/common/heaptuple.c"
5 kx ac_default_prefix=/usr/local/pgsql
5 kx # Factoring default headers for most tests.
5 kx ac_includes_default="\
5 kx #include <stdio.h>
5 kx #ifdef HAVE_SYS_TYPES_H
5 kx # include <sys/types.h>
5 kx #endif
5 kx #ifdef HAVE_SYS_STAT_H
5 kx # include <sys/stat.h>
5 kx #endif
5 kx #ifdef STDC_HEADERS
5 kx # include <stdlib.h>
5 kx # include <stddef.h>
5 kx #else
5 kx # ifdef HAVE_STDLIB_H
5 kx # include <stdlib.h>
5 kx # endif
5 kx #endif
5 kx #ifdef HAVE_STRING_H
5 kx # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5 kx # include <memory.h>
5 kx # endif
5 kx # include <string.h>
5 kx #endif
5 kx #ifdef HAVE_STRINGS_H
5 kx # include <strings.h>
5 kx #endif
5 kx #ifdef HAVE_INTTYPES_H
5 kx # include <inttypes.h>
5 kx #endif
5 kx #ifdef HAVE_STDINT_H
5 kx # include <stdint.h>
5 kx #endif
5 kx #ifdef HAVE_UNISTD_H
5 kx # include <unistd.h>
5 kx #endif"
5 kx
5 kx ac_subst_vars='LTLIBOBJS
5 kx vpath_build
5 kx PG_SYSROOT
5 kx PG_VERSION_NUM
5 kx PROVE
5 kx DBTOEPUB
5 kx FOP
5 kx XSLTPROC
5 kx XMLLINT
5 kx TCL_SHLIB_LD_LIBS
5 kx TCL_SHARED_BUILD
5 kx TCL_LIB_SPEC
5 kx TCL_LIBS
5 kx TCL_INCLUDE_SPEC
5 kx TCL_CONFIG_SH
5 kx TCLSH
5 kx XGETTEXT
5 kx MSGMERGE
5 kx MSGFMT_FLAGS
5 kx MSGFMT
5 kx PG_CRC32C_OBJS
5 kx CFLAGS_ARMV8_CRC32C
5 kx CFLAGS_SSE42
5 kx have_win32_dbghelp
5 kx LIBOBJS
5 kx UUID_LIBS
5 kx LDAP_LIBS_BE
5 kx LDAP_LIBS_FE
5 kx with_ssl
5 kx PTHREAD_CFLAGS
5 kx PTHREAD_LIBS
5 kx PTHREAD_CC
5 kx ax_pthread_config
5 kx EGREP
5 kx GREP
5 kx SED
5 kx ZIC
5 kx python_additional_libs
5 kx python_libspec
5 kx python_libdir
5 kx python_includespec
5 kx python_version
5 kx python_majorversion
5 kx PYTHON
5 kx perl_embed_ldflags
5 kx perl_embed_ccflags
5 kx perl_includespec
5 kx perl_useshrplib
5 kx perl_privlibexp
5 kx perl_archlibexp
5 kx PERL
5 kx FLEXFLAGS
5 kx FLEX
5 kx BISONFLAGS
5 kx BISON
5 kx MKDIR_P
5 kx LN_S
5 kx TAR
5 kx install_bin
5 kx INSTALL_DATA
5 kx INSTALL_SCRIPT
5 kx INSTALL_PROGRAM
5 kx WINDRES
5 kx DLLWRAP
5 kx DLLTOOL
5 kx AR
5 kx STRIP_SHARED_LIB
5 kx STRIP_STATIC_LIB
5 kx STRIP
5 kx RANLIB
5 kx with_gnu_ld
5 kx LD
5 kx LDFLAGS_SL
5 kx LDFLAGS_EX
5 kx LZ4_LIBS
5 kx LZ4_CFLAGS
5 kx with_lz4
5 kx with_zlib
5 kx with_system_tzdata
5 kx with_libxslt
5 kx XML2_LIBS
5 kx XML2_CFLAGS
5 kx XML2_CONFIG
5 kx with_libxml
5 kx with_uuid
5 kx with_readline
5 kx with_systemd
5 kx with_selinux
5 kx with_ldap
5 kx with_krb_srvnam
5 kx krb_srvtab
5 kx with_gssapi
5 kx with_python
5 kx with_perl
5 kx with_tcl
5 kx ICU_LIBS
5 kx ICU_CFLAGS
5 kx with_icu
5 kx enable_thread_safety
5 kx INCLUDES
5 kx autodepend
5 kx PKG_CONFIG_LIBDIR
5 kx PKG_CONFIG_PATH
5 kx PKG_CONFIG
5 kx TAS
5 kx GCC
5 kx CPP
5 kx CFLAGS_SL
5 kx BITCODE_CXXFLAGS
5 kx BITCODE_CFLAGS
5 kx CFLAGS_VECTORIZE
5 kx CFLAGS_UNROLL_LOOPS
5 kx PERMIT_DECLARATION_AFTER_STATEMENT
5 kx LLVM_BINPATH
5 kx LLVM_CXXFLAGS
5 kx LLVM_CFLAGS
5 kx LLVM_CPPFLAGS
5 kx LLVM_LIBS
5 kx CLANG
5 kx LLVM_CONFIG
5 kx AWK
5 kx with_llvm
5 kx SUN_STUDIO_CC
5 kx ac_ct_CXX
5 kx CXXFLAGS
5 kx CXX
5 kx OBJEXT
5 kx EXEEXT
5 kx ac_ct_CC
5 kx CPPFLAGS
5 kx LDFLAGS
5 kx CFLAGS
5 kx CC
5 kx enable_tap_tests
5 kx enable_dtrace
5 kx DTRACEFLAGS
5 kx DTRACE
5 kx enable_coverage
5 kx GENHTML
5 kx LCOV
5 kx GCOV
5 kx enable_debug
5 kx enable_rpath
5 kx default_port
5 kx WANTED_LANGUAGES
5 kx enable_nls
5 kx PORTNAME
5 kx host_os
5 kx host_vendor
5 kx host_cpu
5 kx host
5 kx build_os
5 kx build_vendor
5 kx build_cpu
5 kx build
5 kx PG_MAJORVERSION
5 kx target_alias
5 kx host_alias
5 kx build_alias
5 kx LIBS
5 kx ECHO_T
5 kx ECHO_N
5 kx ECHO_C
5 kx DEFS
5 kx mandir
5 kx localedir
5 kx libdir
5 kx psdir
5 kx pdfdir
5 kx dvidir
5 kx htmldir
5 kx infodir
5 kx docdir
5 kx oldincludedir
5 kx includedir
5 kx localstatedir
5 kx sharedstatedir
5 kx sysconfdir
5 kx datadir
5 kx datarootdir
5 kx libexecdir
5 kx sbindir
5 kx bindir
5 kx program_transform_name
5 kx prefix
5 kx exec_prefix
5 kx PACKAGE_URL
5 kx PACKAGE_BUGREPORT
5 kx PACKAGE_STRING
5 kx PACKAGE_VERSION
5 kx PACKAGE_TARNAME
5 kx PACKAGE_NAME
5 kx PATH_SEPARATOR
5 kx SHELL'
5 kx ac_subst_files=''
5 kx ac_user_opts='
5 kx enable_option_checking
5 kx with_extra_version
5 kx with_template
5 kx with_includes
5 kx with_libraries
5 kx with_libs
5 kx enable_integer_datetimes
5 kx enable_nls
5 kx with_pgport
5 kx enable_rpath
5 kx enable_spinlocks
5 kx enable_atomics
5 kx enable_debug
5 kx enable_profiling
5 kx enable_coverage
5 kx enable_dtrace
5 kx enable_tap_tests
5 kx with_blocksize
5 kx with_segsize
5 kx with_wal_blocksize
5 kx with_CC
5 kx with_llvm
5 kx enable_depend
5 kx enable_cassert
5 kx enable_thread_safety
5 kx with_icu
5 kx with_tcl
5 kx with_tclconfig
5 kx with_perl
5 kx with_python
5 kx with_gssapi
5 kx with_krb_srvnam
5 kx with_pam
5 kx with_bsd_auth
5 kx with_ldap
5 kx with_bonjour
5 kx with_selinux
5 kx with_systemd
5 kx with_readline
5 kx with_libedit_preferred
5 kx with_uuid
5 kx with_ossp_uuid
5 kx with_libxml
5 kx with_libxslt
5 kx with_system_tzdata
5 kx with_zlib
5 kx with_lz4
5 kx with_gnu_ld
5 kx with_ssl
5 kx with_openssl
5 kx enable_largefile
5 kx '
5 kx ac_precious_vars='build_alias
5 kx host_alias
5 kx target_alias
5 kx CC
5 kx CFLAGS
5 kx LDFLAGS
5 kx LIBS
5 kx CPPFLAGS
5 kx CXX
5 kx CXXFLAGS
5 kx CCC
5 kx LLVM_CONFIG
5 kx CLANG
5 kx CPP
5 kx PKG_CONFIG
5 kx PKG_CONFIG_PATH
5 kx PKG_CONFIG_LIBDIR
5 kx ICU_CFLAGS
5 kx ICU_LIBS
5 kx XML2_CONFIG
5 kx XML2_CFLAGS
5 kx XML2_LIBS
5 kx LZ4_CFLAGS
5 kx LZ4_LIBS
5 kx LDFLAGS_EX
5 kx LDFLAGS_SL
5 kx PERL
5 kx PYTHON
5 kx MSGFMT
5 kx TCLSH'
5 kx
5 kx
5 kx # Initialize some variables set by options.
5 kx ac_init_help=
5 kx ac_init_version=false
5 kx ac_unrecognized_opts=
5 kx ac_unrecognized_sep=
5 kx # The variables have the same names as the options, with
5 kx # dashes changed to underlines.
5 kx cache_file=/dev/null
5 kx exec_prefix=NONE
5 kx no_create=
5 kx no_recursion=
5 kx prefix=NONE
5 kx program_prefix=NONE
5 kx program_suffix=NONE
5 kx program_transform_name=s,x,x,
5 kx silent=
5 kx site=
5 kx srcdir=
5 kx verbose=
5 kx x_includes=NONE
5 kx x_libraries=NONE
5 kx
5 kx # Installation directory options.
5 kx # These are left unexpanded so users can "make install exec_prefix=/foo"
5 kx # and all the variables that are supposed to be based on exec_prefix
5 kx # by default will actually change.
5 kx # Use braces instead of parens because sh, perl, etc. also accept them.
5 kx # (The list follows the same order as the GNU Coding Standards.)
5 kx bindir='${exec_prefix}/bin'
5 kx sbindir='${exec_prefix}/sbin'
5 kx libexecdir='${exec_prefix}/libexec'
5 kx datarootdir='${prefix}/share'
5 kx datadir='${datarootdir}'
5 kx sysconfdir='${prefix}/etc'
5 kx sharedstatedir='${prefix}/com'
5 kx localstatedir='${prefix}/var'
5 kx includedir='${prefix}/include'
5 kx oldincludedir='/usr/include'
5 kx docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
5 kx infodir='${datarootdir}/info'
5 kx htmldir='${docdir}'
5 kx dvidir='${docdir}'
5 kx pdfdir='${docdir}'
5 kx psdir='${docdir}'
5 kx libdir='${exec_prefix}/lib'
5 kx localedir='${datarootdir}/locale'
5 kx mandir='${datarootdir}/man'
5 kx
5 kx ac_prev=
5 kx ac_dashdash=
5 kx for ac_option
5 kx do
5 kx # If the previous option needs an argument, assign it.
5 kx if test -n "$ac_prev"; then
5 kx eval $ac_prev=\$ac_option
5 kx ac_prev=
5 kx continue
5 kx fi
5 kx
5 kx case $ac_option in
5 kx *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
5 kx *=) ac_optarg= ;;
5 kx *) ac_optarg=yes ;;
5 kx esac
5 kx
5 kx # Accept the important Cygnus configure options, so we can diagnose typos.
5 kx
5 kx case $ac_dashdash$ac_option in
5 kx --)
5 kx ac_dashdash=yes ;;
5 kx
5 kx -bindir | --bindir | --bindi | --bind | --bin | --bi)
5 kx ac_prev=bindir ;;
5 kx -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5 kx bindir=$ac_optarg ;;
5 kx
5 kx -build | --build | --buil | --bui | --bu)
5 kx ac_prev=build_alias ;;
5 kx -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5 kx build_alias=$ac_optarg ;;
5 kx
5 kx -cache-file | --cache-file | --cache-fil | --cache-fi \
5 kx | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5 kx ac_prev=cache_file ;;
5 kx -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5 kx | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5 kx cache_file=$ac_optarg ;;
5 kx
5 kx --config-cache | -C)
5 kx cache_file=config.cache ;;
5 kx
5 kx -datadir | --datadir | --datadi | --datad)
5 kx ac_prev=datadir ;;
5 kx -datadir=* | --datadir=* | --datadi=* | --datad=*)
5 kx datadir=$ac_optarg ;;
5 kx
5 kx -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
5 kx | --dataroo | --dataro | --datar)
5 kx ac_prev=datarootdir ;;
5 kx -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
5 kx | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
5 kx datarootdir=$ac_optarg ;;
5 kx
5 kx -disable-* | --disable-*)
5 kx ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5 kx as_fn_error $? "invalid feature name: $ac_useropt"
5 kx ac_useropt_orig=$ac_useropt
5 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5 kx case $ac_user_opts in
5 kx *"
5 kx "enable_$ac_useropt"
5 kx "*) ;;
5 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
5 kx ac_unrecognized_sep=', ';;
5 kx esac
5 kx eval enable_$ac_useropt=no ;;
5 kx
5 kx -docdir | --docdir | --docdi | --doc | --do)
5 kx ac_prev=docdir ;;
5 kx -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
5 kx docdir=$ac_optarg ;;
5 kx
5 kx -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
5 kx ac_prev=dvidir ;;
5 kx -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
5 kx dvidir=$ac_optarg ;;
5 kx
5 kx -enable-* | --enable-*)
5 kx ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5 kx as_fn_error $? "invalid feature name: $ac_useropt"
5 kx ac_useropt_orig=$ac_useropt
5 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5 kx case $ac_user_opts in
5 kx *"
5 kx "enable_$ac_useropt"
5 kx "*) ;;
5 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
5 kx ac_unrecognized_sep=', ';;
5 kx esac
5 kx eval enable_$ac_useropt=\$ac_optarg ;;
5 kx
5 kx -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
5 kx | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
5 kx | --exec | --exe | --ex)
5 kx ac_prev=exec_prefix ;;
5 kx -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
5 kx | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
5 kx | --exec=* | --exe=* | --ex=*)
5 kx exec_prefix=$ac_optarg ;;
5 kx
5 kx -gas | --gas | --ga | --g)
5 kx # Obsolete; use --with-gas.
5 kx with_gas=yes ;;
5 kx
5 kx -help | --help | --hel | --he | -h)
5 kx ac_init_help=long ;;
5 kx -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
5 kx ac_init_help=recursive ;;
5 kx -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
5 kx ac_init_help=short ;;
5 kx
5 kx -host | --host | --hos | --ho)
5 kx ac_prev=host_alias ;;
5 kx -host=* | --host=* | --hos=* | --ho=*)
5 kx host_alias=$ac_optarg ;;
5 kx
5 kx -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
5 kx ac_prev=htmldir ;;
5 kx -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
5 kx | --ht=*)
5 kx htmldir=$ac_optarg ;;
5 kx
5 kx -includedir | --includedir | --includedi | --included | --include \
5 kx | --includ | --inclu | --incl | --inc)
5 kx ac_prev=includedir ;;
5 kx -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
5 kx | --includ=* | --inclu=* | --incl=* | --inc=*)
5 kx includedir=$ac_optarg ;;
5 kx
5 kx -infodir | --infodir | --infodi | --infod | --info | --inf)
5 kx ac_prev=infodir ;;
5 kx -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5 kx infodir=$ac_optarg ;;
5 kx
5 kx -libdir | --libdir | --libdi | --libd)
5 kx ac_prev=libdir ;;
5 kx -libdir=* | --libdir=* | --libdi=* | --libd=*)
5 kx libdir=$ac_optarg ;;
5 kx
5 kx -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
5 kx | --libexe | --libex | --libe)
5 kx ac_prev=libexecdir ;;
5 kx -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
5 kx | --libexe=* | --libex=* | --libe=*)
5 kx libexecdir=$ac_optarg ;;
5 kx
5 kx -localedir | --localedir | --localedi | --localed | --locale)
5 kx ac_prev=localedir ;;
5 kx -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
5 kx localedir=$ac_optarg ;;
5 kx
5 kx -localstatedir | --localstatedir | --localstatedi | --localstated \
5 kx | --localstate | --localstat | --localsta | --localst | --locals)
5 kx ac_prev=localstatedir ;;
5 kx -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5 kx | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
5 kx localstatedir=$ac_optarg ;;
5 kx
5 kx -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
5 kx ac_prev=mandir ;;
5 kx -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5 kx mandir=$ac_optarg ;;
5 kx
5 kx -nfp | --nfp | --nf)
5 kx # Obsolete; use --without-fp.
5 kx with_fp=no ;;
5 kx
5 kx -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5 kx | --no-cr | --no-c | -n)
5 kx no_create=yes ;;
5 kx
5 kx -no-recursion | --no-recursion | --no-recursio | --no-recursi \
5 kx | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
5 kx no_recursion=yes ;;
5 kx
5 kx -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
5 kx | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
5 kx | --oldin | --oldi | --old | --ol | --o)
5 kx ac_prev=oldincludedir ;;
5 kx -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
5 kx | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
5 kx | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5 kx oldincludedir=$ac_optarg ;;
5 kx
5 kx -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5 kx ac_prev=prefix ;;
5 kx -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5 kx prefix=$ac_optarg ;;
5 kx
5 kx -program-prefix | --program-prefix | --program-prefi | --program-pref \
5 kx | --program-pre | --program-pr | --program-p)
5 kx ac_prev=program_prefix ;;
5 kx -program-prefix=* | --program-prefix=* | --program-prefi=* \
5 kx | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5 kx program_prefix=$ac_optarg ;;
5 kx
5 kx -program-suffix | --program-suffix | --program-suffi | --program-suff \
5 kx | --program-suf | --program-su | --program-s)
5 kx ac_prev=program_suffix ;;
5 kx -program-suffix=* | --program-suffix=* | --program-suffi=* \
5 kx | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5 kx program_suffix=$ac_optarg ;;
5 kx
5 kx -program-transform-name | --program-transform-name \
5 kx | --program-transform-nam | --program-transform-na \
5 kx | --program-transform-n | --program-transform- \
5 kx | --program-transform | --program-transfor \
5 kx | --program-transfo | --program-transf \
5 kx | --program-trans | --program-tran \
5 kx | --progr-tra | --program-tr | --program-t)
5 kx ac_prev=program_transform_name ;;
5 kx -program-transform-name=* | --program-transform-name=* \
5 kx | --program-transform-nam=* | --program-transform-na=* \
5 kx | --program-transform-n=* | --program-transform-=* \
5 kx | --program-transform=* | --program-transfor=* \
5 kx | --program-transfo=* | --program-transf=* \
5 kx | --program-trans=* | --program-tran=* \
5 kx | --progr-tra=* | --program-tr=* | --program-t=*)
5 kx program_transform_name=$ac_optarg ;;
5 kx
5 kx -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
5 kx ac_prev=pdfdir ;;
5 kx -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
5 kx pdfdir=$ac_optarg ;;
5 kx
5 kx -psdir | --psdir | --psdi | --psd | --ps)
5 kx ac_prev=psdir ;;
5 kx -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
5 kx psdir=$ac_optarg ;;
5 kx
5 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5 kx | -silent | --silent | --silen | --sile | --sil)
5 kx silent=yes ;;
5 kx
5 kx -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
5 kx ac_prev=sbindir ;;
5 kx -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
5 kx | --sbi=* | --sb=*)
5 kx sbindir=$ac_optarg ;;
5 kx
5 kx -sharedstatedir | --sharedstatedir | --sharedstatedi \
5 kx | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
5 kx | --sharedst | --shareds | --shared | --share | --shar \
5 kx | --sha | --sh)
5 kx ac_prev=sharedstatedir ;;
5 kx -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
5 kx | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
5 kx | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
5 kx | --sha=* | --sh=*)
5 kx sharedstatedir=$ac_optarg ;;
5 kx
5 kx -site | --site | --sit)
5 kx ac_prev=site ;;
5 kx -site=* | --site=* | --sit=*)
5 kx site=$ac_optarg ;;
5 kx
5 kx -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5 kx ac_prev=srcdir ;;
5 kx -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5 kx srcdir=$ac_optarg ;;
5 kx
5 kx -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
5 kx | --syscon | --sysco | --sysc | --sys | --sy)
5 kx ac_prev=sysconfdir ;;
5 kx -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
5 kx | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5 kx sysconfdir=$ac_optarg ;;
5 kx
5 kx -target | --target | --targe | --targ | --tar | --ta | --t)
5 kx ac_prev=target_alias ;;
5 kx -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5 kx target_alias=$ac_optarg ;;
5 kx
5 kx -v | -verbose | --verbose | --verbos | --verbo | --verb)
5 kx verbose=yes ;;
5 kx
5 kx -version | --version | --versio | --versi | --vers | -V)
5 kx ac_init_version=: ;;
5 kx
5 kx -with-* | --with-*)
5 kx ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5 kx as_fn_error $? "invalid package name: $ac_useropt"
5 kx ac_useropt_orig=$ac_useropt
5 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5 kx case $ac_user_opts in
5 kx *"
5 kx "with_$ac_useropt"
5 kx "*) ;;
5 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
5 kx ac_unrecognized_sep=', ';;
5 kx esac
5 kx eval with_$ac_useropt=\$ac_optarg ;;
5 kx
5 kx -without-* | --without-*)
5 kx ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5 kx as_fn_error $? "invalid package name: $ac_useropt"
5 kx ac_useropt_orig=$ac_useropt
5 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5 kx case $ac_user_opts in
5 kx *"
5 kx "with_$ac_useropt"
5 kx "*) ;;
5 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
5 kx ac_unrecognized_sep=', ';;
5 kx esac
5 kx eval with_$ac_useropt=no ;;
5 kx
5 kx --x)
5 kx # Obsolete; use --with-x.
5 kx with_x=yes ;;
5 kx
5 kx -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
5 kx | --x-incl | --x-inc | --x-in | --x-i)
5 kx ac_prev=x_includes ;;
5 kx -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
5 kx | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5 kx x_includes=$ac_optarg ;;
5 kx
5 kx -x-libraries | --x-libraries | --x-librarie | --x-librari \
5 kx | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
5 kx ac_prev=x_libraries ;;
5 kx -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
5 kx | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5 kx x_libraries=$ac_optarg ;;
5 kx
5 kx -*) as_fn_error $? "unrecognized option: \`$ac_option'
5 kx Try \`$0 --help' for more information"
5 kx ;;
5 kx
5 kx *=*)
5 kx ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
5 kx # Reject names that are not valid shell variable names.
5 kx case $ac_envvar in #(
5 kx '' | [0-9]* | *[!_$as_cr_alnum]* )
5 kx as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5 kx esac
5 kx eval $ac_envvar=\$ac_optarg
5 kx export $ac_envvar ;;
5 kx
5 kx *)
5 kx # FIXME: should be removed in autoconf 3.0.
5 kx $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
5 kx expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5 kx $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
5 kx : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
5 kx ;;
5 kx
5 kx esac
5 kx done
5 kx
5 kx if test -n "$ac_prev"; then
5 kx ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5 kx as_fn_error $? "missing argument to $ac_option"
5 kx fi
5 kx
5 kx if test -n "$ac_unrecognized_opts"; then
5 kx case $enable_option_checking in
5 kx no) ;;
5 kx fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5 kx *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5 kx esac
5 kx fi
5 kx
5 kx # Check all directory arguments for consistency.
5 kx for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
5 kx datadir sysconfdir sharedstatedir localstatedir includedir \
5 kx oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
5 kx libdir localedir mandir
5 kx do
5 kx eval ac_val=\$$ac_var
5 kx # Remove trailing slashes.
5 kx case $ac_val in
5 kx */ )
5 kx ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
5 kx eval $ac_var=\$ac_val;;
5 kx esac
5 kx # Be sure to have absolute directory names.
5 kx case $ac_val in
5 kx [\\/$]* | ?:[\\/]* ) continue;;
5 kx NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
5 kx esac
5 kx as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
5 kx done
5 kx
5 kx # There might be people who depend on the old broken behavior: `$host'
5 kx # used to hold the argument of --host etc.
5 kx # FIXME: To remove some day.
5 kx build=$build_alias
5 kx host=$host_alias
5 kx target=$target_alias
5 kx
5 kx # FIXME: To remove some day.
5 kx if test "x$host_alias" != x; then
5 kx if test "x$build_alias" = x; then
5 kx cross_compiling=maybe
5 kx elif test "x$build_alias" != "x$host_alias"; then
5 kx cross_compiling=yes
5 kx fi
5 kx fi
5 kx
5 kx ac_tool_prefix=
5 kx test -n "$host_alias" && ac_tool_prefix=$host_alias-
5 kx
5 kx test "$silent" = yes && exec 6>/dev/null
5 kx
5 kx
5 kx ac_pwd=`pwd` && test -n "$ac_pwd" &&
5 kx ac_ls_di=`ls -di .` &&
5 kx ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
5 kx as_fn_error $? "working directory cannot be determined"
5 kx test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
5 kx as_fn_error $? "pwd does not report name of working directory"
5 kx
5 kx
5 kx # Find the source files, if location was not specified.
5 kx if test -z "$srcdir"; then
5 kx ac_srcdir_defaulted=yes
5 kx # Try the directory containing this script, then the parent directory.
5 kx ac_confdir=`$as_dirname -- "$as_myself" ||
5 kx $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$as_myself" : 'X\(//\)[^/]' \| \
5 kx X"$as_myself" : 'X\(//\)$' \| \
5 kx X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$as_myself" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx srcdir=$ac_confdir
5 kx if test ! -r "$srcdir/$ac_unique_file"; then
5 kx srcdir=..
5 kx fi
5 kx else
5 kx ac_srcdir_defaulted=no
5 kx fi
5 kx if test ! -r "$srcdir/$ac_unique_file"; then
5 kx test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
5 kx as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5 kx fi
5 kx ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
5 kx ac_abs_confdir=`(
5 kx cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5 kx pwd)`
5 kx # When building in place, set srcdir=.
5 kx if test "$ac_abs_confdir" = "$ac_pwd"; then
5 kx srcdir=.
5 kx fi
5 kx # Remove unnecessary trailing slashes from srcdir.
5 kx # Double slashes in file names in object file debugging info
5 kx # mess up M-x gdb in Emacs.
5 kx case $srcdir in
5 kx */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
5 kx esac
5 kx for ac_var in $ac_precious_vars; do
5 kx eval ac_env_${ac_var}_set=\${${ac_var}+set}
5 kx eval ac_env_${ac_var}_value=\$${ac_var}
5 kx eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
5 kx eval ac_cv_env_${ac_var}_value=\$${ac_var}
5 kx done
5 kx
5 kx #
5 kx # Report the --help message.
5 kx #
5 kx if test "$ac_init_help" = "long"; then
5 kx # Omit some internal or obsolete options to make the list less imposing.
5 kx # This message is too long to be a string in the A/UX 3.1 sh.
5 kx cat <<_ACEOF
5 kx \`configure' configures PostgreSQL 14.1 to adapt to many kinds of systems.
5 kx
5 kx Usage: $0 [OPTION]... [VAR=VALUE]...
5 kx
5 kx To assign environment variables (e.g., CC, CFLAGS...), specify them as
5 kx VAR=VALUE. See below for descriptions of some of the useful variables.
5 kx
5 kx Defaults for the options are specified in brackets.
5 kx
5 kx Configuration:
5 kx -h, --help display this help and exit
5 kx --help=short display options specific to this package
5 kx --help=recursive display the short help of all the included packages
5 kx -V, --version display version information and exit
5 kx -q, --quiet, --silent do not print \`checking ...' messages
5 kx --cache-file=FILE cache test results in FILE [disabled]
5 kx -C, --config-cache alias for \`--cache-file=config.cache'
5 kx -n, --no-create do not create output files
5 kx --srcdir=DIR find the sources in DIR [configure dir or \`..']
5 kx
5 kx Installation directories:
5 kx --prefix=PREFIX install architecture-independent files in PREFIX
5 kx [$ac_default_prefix]
5 kx --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5 kx [PREFIX]
5 kx
5 kx By default, \`make install' will install all the files in
5 kx \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
5 kx an installation prefix other than \`$ac_default_prefix' using \`--prefix',
5 kx for instance \`--prefix=\$HOME'.
5 kx
5 kx For better control, use the options below.
5 kx
5 kx Fine tuning of the installation directories:
5 kx --bindir=DIR user executables [EPREFIX/bin]
5 kx --sbindir=DIR system admin executables [EPREFIX/sbin]
5 kx --libexecdir=DIR program executables [EPREFIX/libexec]
5 kx --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
5 kx --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
5 kx --localstatedir=DIR modifiable single-machine data [PREFIX/var]
5 kx --libdir=DIR object code libraries [EPREFIX/lib]
5 kx --includedir=DIR C header files [PREFIX/include]
5 kx --oldincludedir=DIR C header files for non-gcc [/usr/include]
5 kx --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
5 kx --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
5 kx --infodir=DIR info documentation [DATAROOTDIR/info]
5 kx --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
5 kx --mandir=DIR man documentation [DATAROOTDIR/man]
5 kx --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
5 kx --htmldir=DIR html documentation [DOCDIR]
5 kx --dvidir=DIR dvi documentation [DOCDIR]
5 kx --pdfdir=DIR pdf documentation [DOCDIR]
5 kx --psdir=DIR ps documentation [DOCDIR]
5 kx _ACEOF
5 kx
5 kx cat <<\_ACEOF
5 kx
5 kx System types:
5 kx --build=BUILD configure for building on BUILD [guessed]
5 kx --host=HOST cross-compile to build programs to run on HOST [BUILD]
5 kx _ACEOF
5 kx fi
5 kx
5 kx if test -n "$ac_init_help"; then
5 kx case $ac_init_help in
5 kx short | recursive ) echo "Configuration of PostgreSQL 14.1:";;
5 kx esac
5 kx cat <<\_ACEOF
5 kx
5 kx Optional Features:
5 kx --disable-option-checking ignore unrecognized --enable/--with options
5 kx --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
5 kx --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5 kx --disable-integer-datetimes
5 kx obsolete option, no longer supported
5 kx --enable-nls[=LANGUAGES]
5 kx enable Native Language Support
5 kx --disable-rpath do not embed shared library search path in
5 kx executables
5 kx --disable-spinlocks do not use spinlocks
5 kx --disable-atomics do not use atomic operations
5 kx --enable-debug build with debugging symbols (-g)
5 kx --enable-profiling build with profiling enabled
5 kx --enable-coverage build with coverage testing instrumentation
5 kx --enable-dtrace build with DTrace support
5 kx --enable-tap-tests enable TAP tests (requires Perl and IPC::Run)
5 kx --enable-depend turn on automatic dependency tracking
5 kx --enable-cassert enable assertion checks (for debugging)
5 kx --disable-thread-safety disable thread-safety in client libraries
5 kx --disable-largefile omit support for large files
5 kx
5 kx Optional Packages:
5 kx --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
5 kx --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
5 kx --with-extra-version=STRING
5 kx append STRING to version
5 kx --with-template=NAME override operating system template
5 kx --with-includes=DIRS look for additional header files in DIRS
5 kx --with-libraries=DIRS look for additional libraries in DIRS
5 kx --with-libs=DIRS alternative spelling of --with-libraries
5 kx --with-pgport=PORTNUM set default port number [5432]
5 kx --with-blocksize=BLOCKSIZE
5 kx set table block size in kB [8]
5 kx --with-segsize=SEGSIZE set table segment size in GB [1]
5 kx --with-wal-blocksize=BLOCKSIZE
5 kx set WAL block size in kB [8]
5 kx --with-CC=CMD set compiler (deprecated)
5 kx --with-llvm build with LLVM based JIT support
5 kx --with-icu build with ICU support
5 kx --with-tcl build Tcl modules (PL/Tcl)
5 kx --with-tclconfig=DIR tclConfig.sh is in DIR
5 kx --with-perl build Perl modules (PL/Perl)
5 kx --with-python build Python modules (PL/Python)
5 kx --with-gssapi build with GSSAPI support
5 kx --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
5 kx [postgres]
5 kx --with-pam build with PAM support
5 kx --with-bsd-auth build with BSD Authentication support
5 kx --with-ldap build with LDAP support
5 kx --with-bonjour build with Bonjour support
5 kx --with-selinux build with SELinux support
5 kx --with-systemd build with systemd support
5 kx --without-readline do not use GNU Readline nor BSD Libedit for editing
5 kx --with-libedit-preferred
5 kx prefer BSD Libedit over GNU Readline
5 kx --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
5 kx --with-ossp-uuid obsolete spelling of --with-uuid=ossp
5 kx --with-libxml build with XML support
5 kx --with-libxslt use XSLT support when building contrib/xml2
5 kx --with-system-tzdata=DIR
5 kx use system time zone data in DIR
5 kx --without-zlib do not use Zlib
5 kx --with-lz4 build with LZ4 support
5 kx --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5 kx --with-ssl=LIB use LIB for SSL/TLS support (openssl)
5 kx --with-openssl obsolete spelling of --with-ssl=openssl
5 kx
5 kx Some influential environment variables:
5 kx CC C compiler command
5 kx CFLAGS C compiler flags
5 kx LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
5 kx nonstandard directory <lib dir>
5 kx LIBS libraries to pass to the linker, e.g. -l<library>
5 kx CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5 kx you have headers in a nonstandard directory <include dir>
5 kx CXX C++ compiler command
5 kx CXXFLAGS C++ compiler flags
5 kx LLVM_CONFIG path to llvm-config command
5 kx CLANG path to clang compiler to generate bitcode
5 kx CPP C preprocessor
5 kx PKG_CONFIG path to pkg-config utility
5 kx PKG_CONFIG_PATH
5 kx directories to add to pkg-config's search path
5 kx PKG_CONFIG_LIBDIR
5 kx path overriding pkg-config's built-in search path
5 kx ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
5 kx ICU_LIBS linker flags for ICU, overriding pkg-config
5 kx XML2_CONFIG path to xml2-config utility
5 kx XML2_CFLAGS C compiler flags for XML2, overriding pkg-config
5 kx XML2_LIBS linker flags for XML2, overriding pkg-config
5 kx LZ4_CFLAGS C compiler flags for LZ4, overriding pkg-config
5 kx LZ4_LIBS linker flags for LZ4, overriding pkg-config
5 kx LDFLAGS_EX extra linker flags for linking executables only
5 kx LDFLAGS_SL extra linker flags for linking shared libraries only
5 kx PERL Perl program
5 kx PYTHON Python program
5 kx MSGFMT msgfmt program for NLS
5 kx TCLSH Tcl interpreter program (tclsh)
5 kx
5 kx Use these variables to override the choices made by `configure' or to help
5 kx it to find libraries and programs with nonstandard names/locations.
5 kx
5 kx Report bugs to <pgsql-bugs@lists.postgresql.org>.
5 kx PostgreSQL home page: <https://www.postgresql.org/>.
5 kx _ACEOF
5 kx ac_status=$?
5 kx fi
5 kx
5 kx if test "$ac_init_help" = "recursive"; then
5 kx # If there are subdirs, report their specific --help.
5 kx for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5 kx test -d "$ac_dir" ||
5 kx { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
5 kx continue
5 kx ac_builddir=.
5 kx
5 kx case "$ac_dir" in
5 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *)
5 kx ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5 kx # A ".." for each directory in $ac_dir_suffix.
5 kx ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5 kx case $ac_top_builddir_sub in
5 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5 kx esac ;;
5 kx esac
5 kx ac_abs_top_builddir=$ac_pwd
5 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
5 kx # for backward compatibility:
5 kx ac_top_builddir=$ac_top_build_prefix
5 kx
5 kx case $srcdir in
5 kx .) # We are building in place.
5 kx ac_srcdir=.
5 kx ac_top_srcdir=$ac_top_builddir_sub
5 kx ac_abs_top_srcdir=$ac_pwd ;;
5 kx [\\/]* | ?:[\\/]* ) # Absolute name.
5 kx ac_srcdir=$srcdir$ac_dir_suffix;
5 kx ac_top_srcdir=$srcdir
5 kx ac_abs_top_srcdir=$srcdir ;;
5 kx *) # Relative name.
5 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
5 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5 kx esac
5 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5 kx
5 kx cd "$ac_dir" || { ac_status=$?; continue; }
5 kx # Check for guested configure.
5 kx if test -f "$ac_srcdir/configure.gnu"; then
5 kx echo &&
5 kx $SHELL "$ac_srcdir/configure.gnu" --help=recursive
5 kx elif test -f "$ac_srcdir/configure"; then
5 kx echo &&
5 kx $SHELL "$ac_srcdir/configure" --help=recursive
5 kx else
5 kx $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
5 kx fi || ac_status=$?
5 kx cd "$ac_pwd" || { ac_status=$?; break; }
5 kx done
5 kx fi
5 kx
5 kx test -n "$ac_init_help" && exit $ac_status
5 kx if $ac_init_version; then
5 kx cat <<\_ACEOF
5 kx PostgreSQL configure 14.1
5 kx generated by GNU Autoconf 2.69
5 kx
5 kx Copyright (C) 2012 Free Software Foundation, Inc.
5 kx This configure script is free software; the Free Software Foundation
5 kx gives unlimited permission to copy, distribute and modify it.
5 kx
5 kx Copyright (c) 1996-2021, PostgreSQL Global Development Group
5 kx _ACEOF
5 kx exit
5 kx fi
5 kx
5 kx ## ------------------------ ##
5 kx ## Autoconf initialization. ##
5 kx ## ------------------------ ##
5 kx
5 kx # ac_fn_c_try_compile LINENO
5 kx # --------------------------
5 kx # Try to compile conftest.$ac_ext, and return whether this succeeded.
5 kx ac_fn_c_try_compile ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx rm -f conftest.$ac_objext
5 kx if { { ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compile") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx grep -v '^ *+' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx mv -f conftest.er1 conftest.err
5 kx fi
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=1
5 kx fi
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_try_compile
5 kx
5 kx # ac_fn_cxx_try_compile LINENO
5 kx # ----------------------------
5 kx # Try to compile conftest.$ac_ext, and return whether this succeeded.
5 kx ac_fn_cxx_try_compile ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx rm -f conftest.$ac_objext
5 kx if { { ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compile") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx grep -v '^ *+' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx mv -f conftest.er1 conftest.err
5 kx fi
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && {
5 kx test -z "$ac_cxx_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=1
5 kx fi
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_cxx_try_compile
5 kx
5 kx # ac_fn_c_try_link LINENO
5 kx # -----------------------
5 kx # Try to link conftest.$ac_ext, and return whether this succeeded.
5 kx ac_fn_c_try_link ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { { ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx grep -v '^ *+' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx mv -f conftest.er1 conftest.err
5 kx fi
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext && {
5 kx test "$cross_compiling" = yes ||
5 kx test -x conftest$ac_exeext
5 kx }; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=1
5 kx fi
5 kx # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
5 kx # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
5 kx # interfere with the next link command; also delete a directory that is
5 kx # left behind by Apple's compiler. We do this before executing the actions.
5 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_try_link
5 kx
5 kx # ac_fn_c_try_cpp LINENO
5 kx # ----------------------
5 kx # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
5 kx ac_fn_c_try_cpp ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx if { { ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx grep -v '^ *+' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx mv -f conftest.er1 conftest.err
5 kx fi
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } > conftest.i && {
5 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=1
5 kx fi
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_try_cpp
5 kx
5 kx # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5 kx # -------------------------------------------------------
5 kx # Tests whether HEADER exists, giving a warning if it cannot be compiled using
5 kx # the include files in INCLUDES and setting the cache variable VAR
5 kx # accordingly.
5 kx ac_fn_c_check_header_mongrel ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx if eval \${$3+:} false; then :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx else
5 kx # Is the header compilable?
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
5 kx $as_echo_n "checking $2 usability... " >&6; }
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx #include <$2>
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_header_compiler=yes
5 kx else
5 kx ac_header_compiler=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
5 kx $as_echo "$ac_header_compiler" >&6; }
5 kx
5 kx # Is the header present?
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
5 kx $as_echo_n "checking $2 presence... " >&6; }
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <$2>
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx ac_header_preproc=yes
5 kx else
5 kx ac_header_preproc=no
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
5 kx $as_echo "$ac_header_preproc" >&6; }
5 kx
5 kx # So? What about this header?
5 kx case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
5 kx yes:no: )
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
5 kx $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
5 kx $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
5 kx ;;
5 kx no:yes:* )
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
5 kx $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
5 kx $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
5 kx $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
5 kx $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
5 kx $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
5 kx ( $as_echo "## ---------------------------------------------- ##
5 kx ## Report this to pgsql-bugs@lists.postgresql.org ##
5 kx ## ---------------------------------------------- ##"
5 kx ) | sed "s/^/$as_me: WARNING: /" >&2
5 kx ;;
5 kx esac
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx eval "$3=\$ac_header_compiler"
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx fi
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_header_mongrel
5 kx
5 kx # ac_fn_c_try_run LINENO
5 kx # ----------------------
5 kx # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
5 kx # that executables *can* be run.
5 kx ac_fn_c_try_run ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx if { { ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
5 kx { { case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_try") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; }; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: program exited with status $ac_status" >&5
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=$ac_status
5 kx fi
5 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_try_run
5 kx
5 kx # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
5 kx # -------------------------------------------------------
5 kx # Tests whether HEADER exists and can be compiled using the include files in
5 kx # INCLUDES, setting the cache variable VAR accordingly.
5 kx ac_fn_c_check_header_compile ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx #include <$2>
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval "$3=yes"
5 kx else
5 kx eval "$3=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_header_compile
5 kx
5 kx # ac_fn_c_check_func LINENO FUNC VAR
5 kx # ----------------------------------
5 kx # Tests whether FUNC exists, setting the cache variable VAR accordingly
5 kx ac_fn_c_check_func ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
5 kx For example, HP-UX 11i <limits.h> declares gettimeofday. */
5 kx #define $2 innocuous_$2
5 kx
5 kx /* System header to define __stub macros and hopefully few prototypes,
5 kx which can conflict with char $2 (); below.
5 kx Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx <limits.h> exists even on freestanding compilers. */
5 kx
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx
5 kx #undef $2
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char $2 ();
5 kx /* The GNU C library defines this for functions which it implements
5 kx to always fail with ENOSYS. Some functions are actually named
5 kx something starting with __ and the normal name is an alias. */
5 kx #if defined __stub_$2 || defined __stub___$2
5 kx choke me
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return $2 ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx eval "$3=yes"
5 kx else
5 kx eval "$3=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_func
5 kx
5 kx # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
5 kx # -------------------------------------------
5 kx # Tests whether TYPE exists after having included INCLUDES, setting cache
5 kx # variable VAR accordingly.
5 kx ac_fn_c_check_type ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx eval "$3=no"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx if (sizeof ($2))
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx if (sizeof (($2)))
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx else
5 kx eval "$3=yes"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_type
5 kx
5 kx # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
5 kx # ----------------------------------------------------
5 kx # Tries to find if the field MEMBER exists in type AGGR, after including
5 kx # INCLUDES, setting cache variable VAR accordingly.
5 kx ac_fn_c_check_member ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
5 kx $as_echo_n "checking for $2.$3... " >&6; }
5 kx if eval \${$4+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $5
5 kx int
5 kx main ()
5 kx {
5 kx static $2 ac_aggr;
5 kx if (ac_aggr.$3)
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval "$4=yes"
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $5
5 kx int
5 kx main ()
5 kx {
5 kx static $2 ac_aggr;
5 kx if (sizeof ac_aggr.$3)
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval "$4=yes"
5 kx else
5 kx eval "$4=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$4
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_member
5 kx
5 kx # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
5 kx # --------------------------------------------
5 kx # Tries to find the compile-time value of EXPR in a program that includes
5 kx # INCLUDES, setting VAR accordingly. Returns whether the value could be
5 kx # computed
5 kx ac_fn_c_compute_int ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx if test "$cross_compiling" = yes; then
5 kx # Depending upon the size, compute the lo and hi bounds.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx static int test_array [1 - 2 * !(($2) >= 0)];
5 kx test_array [0] = 0;
5 kx return test_array [0];
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_lo=0 ac_mid=0
5 kx while :; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5 kx test_array [0] = 0;
5 kx return test_array [0];
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_hi=$ac_mid; break
5 kx else
5 kx as_fn_arith $ac_mid + 1 && ac_lo=$as_val
5 kx if test $ac_lo -le $ac_mid; then
5 kx ac_lo= ac_hi=
5 kx break
5 kx fi
5 kx as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx done
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx static int test_array [1 - 2 * !(($2) < 0)];
5 kx test_array [0] = 0;
5 kx return test_array [0];
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_hi=-1 ac_mid=-1
5 kx while :; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx static int test_array [1 - 2 * !(($2) >= $ac_mid)];
5 kx test_array [0] = 0;
5 kx return test_array [0];
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_lo=$ac_mid; break
5 kx else
5 kx as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
5 kx if test $ac_mid -le $ac_hi; then
5 kx ac_lo= ac_hi=
5 kx break
5 kx fi
5 kx as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx done
5 kx else
5 kx ac_lo= ac_hi=
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx # Binary search between lo and hi bounds.
5 kx while test "x$ac_lo" != "x$ac_hi"; do
5 kx as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5 kx test_array [0] = 0;
5 kx return test_array [0];
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_hi=$ac_mid
5 kx else
5 kx as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx done
5 kx case $ac_lo in #((
5 kx ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
5 kx '') ac_retval=1 ;;
5 kx esac
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx static long int longval () { return $2; }
5 kx static unsigned long int ulongval () { return $2; }
5 kx #include <stdio.h>
5 kx #include <stdlib.h>
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx FILE *f = fopen ("conftest.val", "w");
5 kx if (! f)
5 kx return 1;
5 kx if (($2) < 0)
5 kx {
5 kx long int i = longval ();
5 kx if (i != ($2))
5 kx return 1;
5 kx fprintf (f, "%ld", i);
5 kx }
5 kx else
5 kx {
5 kx unsigned long int i = ulongval ();
5 kx if (i != ($2))
5 kx return 1;
5 kx fprintf (f, "%lu", i);
5 kx }
5 kx /* Do not output a trailing newline, as this causes \r\n confusion
5 kx on some platforms. */
5 kx return ferror (f) || fclose (f) != 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx echo >>conftest.val; read $3 <conftest.val; ac_retval=0
5 kx else
5 kx ac_retval=1
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx rm -f conftest.val
5 kx
5 kx fi
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_compute_int
5 kx
5 kx # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
5 kx # ---------------------------------------------
5 kx # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
5 kx # accordingly.
5 kx ac_fn_c_check_decl ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
5 kx as_decl_name=`echo $2|sed 's/ *(.*//'`
5 kx as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
5 kx $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_save_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef $as_decl_name
5 kx #ifdef __cplusplus
5 kx (void) $as_decl_use;
5 kx #else
5 kx (void) $as_decl_name;
5 kx #endif
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval "$3=yes"
5 kx else
5 kx eval "$3=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_werror_flag
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_decl
5 kx cat >config.log <<_ACEOF
5 kx This file contains any messages produced by compilers while
5 kx running configure, to aid debugging if configure makes a mistake.
5 kx
5 kx It was created by PostgreSQL $as_me 14.1, which was
5 kx generated by GNU Autoconf 2.69. Invocation command line was
5 kx
5 kx $ $0 $@
5 kx
5 kx _ACEOF
5 kx exec 5>>config.log
5 kx {
5 kx cat <<_ASUNAME
5 kx ## --------- ##
5 kx ## Platform. ##
5 kx ## --------- ##
5 kx
5 kx hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
5 kx uname -m = `(uname -m) 2>/dev/null || echo unknown`
5 kx uname -r = `(uname -r) 2>/dev/null || echo unknown`
5 kx uname -s = `(uname -s) 2>/dev/null || echo unknown`
5 kx uname -v = `(uname -v) 2>/dev/null || echo unknown`
5 kx
5 kx /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
5 kx /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
5 kx
5 kx /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
5 kx /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
5 kx /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5 kx /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
5 kx /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
5 kx /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
5 kx /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
5 kx
5 kx _ASUNAME
5 kx
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx $as_echo "PATH: $as_dir"
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx } >&5
5 kx
5 kx cat >&5 <<_ACEOF
5 kx
5 kx
5 kx ## ----------- ##
5 kx ## Core tests. ##
5 kx ## ----------- ##
5 kx
5 kx _ACEOF
5 kx
5 kx
5 kx # Keep a trace of the command line.
5 kx # Strip out --no-create and --no-recursion so they do not pile up.
5 kx # Strip out --silent because we don't want to record it for future runs.
5 kx # Also quote any args containing shell meta-characters.
5 kx # Make two passes to allow for proper duplicate-argument suppression.
5 kx ac_configure_args=
5 kx ac_configure_args0=
5 kx ac_configure_args1=
5 kx ac_must_keep_next=false
5 kx for ac_pass in 1 2
5 kx do
5 kx for ac_arg
5 kx do
5 kx case $ac_arg in
5 kx -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
5 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5 kx | -silent | --silent | --silen | --sile | --sil)
5 kx continue ;;
5 kx *\'*)
5 kx ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx esac
5 kx case $ac_pass in
5 kx 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
5 kx 2)
5 kx as_fn_append ac_configure_args1 " '$ac_arg'"
5 kx if test $ac_must_keep_next = true; then
5 kx ac_must_keep_next=false # Got value, back to normal.
5 kx else
5 kx case $ac_arg in
5 kx *=* | --config-cache | -C | -disable-* | --disable-* \
5 kx | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5 kx | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5 kx | -with-* | --with-* | -without-* | --without-* | --x)
5 kx case "$ac_configure_args0 " in
5 kx "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
5 kx esac
5 kx ;;
5 kx -* ) ac_must_keep_next=true ;;
5 kx esac
5 kx fi
5 kx as_fn_append ac_configure_args " '$ac_arg'"
5 kx ;;
5 kx esac
5 kx done
5 kx done
5 kx { ac_configure_args0=; unset ac_configure_args0;}
5 kx { ac_configure_args1=; unset ac_configure_args1;}
5 kx
5 kx # When interrupted or exit'd, cleanup temporary files, and complete
5 kx # config.log. We remove comments because anyway the quotes in there
5 kx # would cause problems or look ugly.
5 kx # WARNING: Use '\'' to represent an apostrophe within the trap.
5 kx # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
5 kx trap 'exit_status=$?
5 kx # Save into config.log some information that might help in debugging.
5 kx {
5 kx echo
5 kx
5 kx $as_echo "## ---------------- ##
5 kx ## Cache variables. ##
5 kx ## ---------------- ##"
5 kx echo
5 kx # The following way of writing the cache mishandles newlines in values,
5 kx (
5 kx for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in #(
5 kx *${as_nl}*)
5 kx case $ac_var in #(
5 kx *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5 kx $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5 kx esac
5 kx case $ac_var in #(
5 kx _ | IFS | as_nl) ;; #(
5 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5 kx *) { eval $ac_var=; unset $ac_var;} ;;
5 kx esac ;;
5 kx esac
5 kx done
5 kx (set) 2>&1 |
5 kx case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
5 kx *${as_nl}ac_space=\ *)
5 kx sed -n \
5 kx "s/'\''/'\''\\\\'\'''\''/g;
5 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
5 kx ;; #(
5 kx *)
5 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5 kx ;;
5 kx esac |
5 kx sort
5 kx )
5 kx echo
5 kx
5 kx $as_echo "## ----------------- ##
5 kx ## Output variables. ##
5 kx ## ----------------- ##"
5 kx echo
5 kx for ac_var in $ac_subst_vars
5 kx do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in
5 kx *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
5 kx esac
5 kx $as_echo "$ac_var='\''$ac_val'\''"
5 kx done | sort
5 kx echo
5 kx
5 kx if test -n "$ac_subst_files"; then
5 kx $as_echo "## ------------------- ##
5 kx ## File substitutions. ##
5 kx ## ------------------- ##"
5 kx echo
5 kx for ac_var in $ac_subst_files
5 kx do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in
5 kx *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
5 kx esac
5 kx $as_echo "$ac_var='\''$ac_val'\''"
5 kx done | sort
5 kx echo
5 kx fi
5 kx
5 kx if test -s confdefs.h; then
5 kx $as_echo "## ----------- ##
5 kx ## confdefs.h. ##
5 kx ## ----------- ##"
5 kx echo
5 kx cat confdefs.h
5 kx echo
5 kx fi
5 kx test "$ac_signal" != 0 &&
5 kx $as_echo "$as_me: caught signal $ac_signal"
5 kx $as_echo "$as_me: exit $exit_status"
5 kx } >&5
5 kx rm -f core *.core core.conftest.* &&
5 kx rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
5 kx exit $exit_status
5 kx ' 0
5 kx for ac_signal in 1 2 13 15; do
5 kx trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
5 kx done
5 kx ac_signal=0
5 kx
5 kx # confdefs.h avoids OS command line length limits that DEFS can exceed.
5 kx rm -f -r conftest* confdefs.h
5 kx
5 kx $as_echo "/* confdefs.h */" > confdefs.h
5 kx
5 kx # Predefined preprocessor variables.
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_NAME "$PACKAGE_NAME"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_VERSION "$PACKAGE_VERSION"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_STRING "$PACKAGE_STRING"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_URL "$PACKAGE_URL"
5 kx _ACEOF
5 kx
5 kx
5 kx # Let the site file select an alternate cache file if it wants to.
5 kx # Prefer an explicitly selected file to automatically selected ones.
5 kx ac_site_file1=NONE
5 kx ac_site_file2=NONE
5 kx if test -n "$CONFIG_SITE"; then
5 kx # We do not want a PATH search for config.site.
5 kx case $CONFIG_SITE in #((
5 kx -*) ac_site_file1=./$CONFIG_SITE;;
5 kx */*) ac_site_file1=$CONFIG_SITE;;
5 kx *) ac_site_file1=./$CONFIG_SITE;;
5 kx esac
5 kx elif test "x$prefix" != xNONE; then
5 kx ac_site_file1=$prefix/share/config.site
5 kx ac_site_file2=$prefix/etc/config.site
5 kx else
5 kx ac_site_file1=$ac_default_prefix/share/config.site
5 kx ac_site_file2=$ac_default_prefix/etc/config.site
5 kx fi
5 kx for ac_site_file in "$ac_site_file1" "$ac_site_file2"
5 kx do
5 kx test "x$ac_site_file" = xNONE && continue
5 kx if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
5 kx $as_echo "$as_me: loading site script $ac_site_file" >&6;}
5 kx sed 's/^/| /' "$ac_site_file" >&5
5 kx . "$ac_site_file" \
5 kx || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "failed to load site script $ac_site_file
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx done
5 kx
5 kx if test -r "$cache_file"; then
5 kx # Some versions of bash will fail to source /dev/null (special files
5 kx # actually), so we avoid doing that. DJGPP emulates it as a regular file.
5 kx if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
5 kx $as_echo "$as_me: loading cache $cache_file" >&6;}
5 kx case $cache_file in
5 kx [\\/]* | ?:[\\/]* ) . "$cache_file";;
5 kx *) . "./$cache_file";;
5 kx esac
5 kx fi
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
5 kx $as_echo "$as_me: creating cache $cache_file" >&6;}
5 kx >$cache_file
5 kx fi
5 kx
5 kx # Check that the precious variables saved in the cache have kept the same
5 kx # value.
5 kx ac_cache_corrupted=false
5 kx for ac_var in $ac_precious_vars; do
5 kx eval ac_old_set=\$ac_cv_env_${ac_var}_set
5 kx eval ac_new_set=\$ac_env_${ac_var}_set
5 kx eval ac_old_val=\$ac_cv_env_${ac_var}_value
5 kx eval ac_new_val=\$ac_env_${ac_var}_value
5 kx case $ac_old_set,$ac_new_set in
5 kx set,)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
5 kx $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
5 kx ac_cache_corrupted=: ;;
5 kx ,set)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
5 kx $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
5 kx ac_cache_corrupted=: ;;
5 kx ,);;
5 kx *)
5 kx if test "x$ac_old_val" != "x$ac_new_val"; then
5 kx # differences in whitespace do not lead to failure.
5 kx ac_old_val_w=`echo x $ac_old_val`
5 kx ac_new_val_w=`echo x $ac_new_val`
5 kx if test "$ac_old_val_w" != "$ac_new_val_w"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
5 kx $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
5 kx ac_cache_corrupted=:
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
5 kx $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
5 kx eval $ac_var=\$ac_old_val
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
5 kx $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
5 kx $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
5 kx fi;;
5 kx esac
5 kx # Pass precious variables to config.status.
5 kx if test "$ac_new_set" = set; then
5 kx case $ac_new_val in
5 kx *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx *) ac_arg=$ac_var=$ac_new_val ;;
5 kx esac
5 kx case " $ac_configure_args " in
5 kx *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5 kx *) as_fn_append ac_configure_args " '$ac_arg'" ;;
5 kx esac
5 kx fi
5 kx done
5 kx if $ac_cache_corrupted; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
5 kx $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
5 kx as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
5 kx fi
5 kx ## -------------------- ##
5 kx ## Main body of script. ##
5 kx ## -------------------- ##
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_aux_dir=
5 kx for ac_dir in config "$srcdir"/config; do
5 kx if test -f "$ac_dir/install-sh"; then
5 kx ac_aux_dir=$ac_dir
5 kx ac_install_sh="$ac_aux_dir/install-sh -c"
5 kx break
5 kx elif test -f "$ac_dir/install.sh"; then
5 kx ac_aux_dir=$ac_dir
5 kx ac_install_sh="$ac_aux_dir/install.sh -c"
5 kx break
5 kx elif test -f "$ac_dir/shtool"; then
5 kx ac_aux_dir=$ac_dir
5 kx ac_install_sh="$ac_aux_dir/shtool install -c"
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$ac_aux_dir"; then
5 kx as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
5 kx fi
5 kx
5 kx # These three variables are undocumented and unsupported,
5 kx # and are intended to be withdrawn in a future Autoconf release.
5 kx # They can cause serious problems if a builder's source tree is in a directory
5 kx # whose full name contains unusual characters.
5 kx ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5 kx ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5 kx ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5 kx
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define CONFIGURE_ARGS "$ac_configure_args"
5 kx _ACEOF
5 kx
5 kx
5 kx PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
5 kx PG_MINORVERSION=`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'`
5 kx test -n "$PG_MINORVERSION" || PG_MINORVERSION=0
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PG_MAJORVERSION "$PG_MAJORVERSION"
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PG_MAJORVERSION_NUM $PG_MAJORVERSION
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PG_MINORVERSION_NUM $PG_MINORVERSION
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --with-extra-version was given.
5 kx if test "${with_extra_version+set}" = set; then :
5 kx withval=$with_extra_version;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx PG_VERSION="$PACKAGE_VERSION$withval"
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx PG_VERSION="$PACKAGE_VERSION"
5 kx fi
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PG_VERSION "$PG_VERSION"
5 kx _ACEOF
5 kx
5 kx
5 kx # Make sure we can run config.sub.
5 kx $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5 kx as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5 kx $as_echo_n "checking build system type... " >&6; }
5 kx if ${ac_cv_build+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_build_alias=$build_alias
5 kx test "x$ac_build_alias" = x &&
5 kx ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5 kx test "x$ac_build_alias" = x &&
5 kx as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5 kx ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5 kx as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5 kx $as_echo "$ac_cv_build" >&6; }
5 kx case $ac_cv_build in
5 kx *-*-*) ;;
5 kx *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5 kx esac
5 kx build=$ac_cv_build
5 kx ac_save_IFS=$IFS; IFS='-'
5 kx set x $ac_cv_build
5 kx shift
5 kx build_cpu=$1
5 kx build_vendor=$2
5 kx shift; shift
5 kx # Remember, the first character of IFS is used to create $*,
5 kx # except with old shells:
5 kx build_os=$*
5 kx IFS=$ac_save_IFS
5 kx case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5 kx $as_echo_n "checking host system type... " >&6; }
5 kx if ${ac_cv_host+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "x$host_alias" = x; then
5 kx ac_cv_host=$ac_cv_build
5 kx else
5 kx ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5 kx as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5 kx $as_echo "$ac_cv_host" >&6; }
5 kx case $ac_cv_host in
5 kx *-*-*) ;;
5 kx *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5 kx esac
5 kx host=$ac_cv_host
5 kx ac_save_IFS=$IFS; IFS='-'
5 kx set x $ac_cv_host
5 kx shift
5 kx host_cpu=$1
5 kx host_vendor=$2
5 kx shift; shift
5 kx # Remember, the first character of IFS is used to create $*,
5 kx # except with old shells:
5 kx host_os=$*
5 kx IFS=$ac_save_IFS
5 kx case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5 kx
5 kx
5 kx
5 kx template=
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
5 kx $as_echo_n "checking which template to use... " >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --with-template was given.
5 kx if test "${with_template+set}" = set; then :
5 kx withval=$with_template;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-template option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-template option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx
5 kx case $withval in
5 kx list) echo; ls "$srcdir/src/template"; exit;;
5 kx *) if test -f "$srcdir/src/template/$with_template" ; then
5 kx template=$withval
5 kx else
5 kx as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
5 kx fi;;
5 kx esac
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx
5 kx # --with-template not given
5 kx
5 kx case $host_os in
5 kx aix*) template=aix ;;
5 kx cygwin*|msys*) template=cygwin ;;
5 kx darwin*) template=darwin ;;
5 kx dragonfly*) template=netbsd ;;
5 kx freebsd*) template=freebsd ;;
5 kx hpux*) template=hpux ;;
5 kx linux*|gnu*|k*bsd*-gnu)
5 kx template=linux ;;
5 kx mingw*) template=win32 ;;
5 kx netbsd*) template=netbsd ;;
5 kx openbsd*) template=openbsd ;;
5 kx solaris*) template=solaris ;;
5 kx esac
5 kx
5 kx if test x"$template" = x"" ; then
5 kx as_fn_error $? "
5 kx *******************************************************************
5 kx PostgreSQL has apparently not been ported to your platform yet.
5 kx To try a manual configuration, look into the src/template directory
5 kx for a similar platform and use the '--with-template=' option.
5 kx
5 kx Please also contact <pgsql-bugs@lists.postgresql.org> to see about
5 kx rectifying this. Include the above 'checking host system type...'
5 kx line.
5 kx *******************************************************************
5 kx " "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
5 kx $as_echo "$template" >&6; }
5 kx
5 kx PORTNAME=$template
5 kx
5 kx
5 kx # Initialize default assumption that we do not need separate assembly code
5 kx # for TAS (test-and-set). This can be overridden by the template file
5 kx # when it's executed.
5 kx need_tas=no
5 kx tas_file=dummy.s
5 kx
5 kx
5 kx
5 kx ##
5 kx ## Command line options
5 kx ##
5 kx
5 kx #
5 kx # Add non-standard directories to the include path
5 kx #
5 kx
5 kx
5 kx
5 kx # Check whether --with-includes was given.
5 kx if test "${with_includes+set}" = set; then :
5 kx withval=$with_includes;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # Add non-standard directories to the library search path
5 kx #
5 kx
5 kx
5 kx
5 kx # Check whether --with-libraries was given.
5 kx if test "${with_libraries+set}" = set; then :
5 kx withval=$with_libraries;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx LIBRARY_DIRS=$withval
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --with-libs was given.
5 kx if test "${with_libs+set}" = set; then :
5 kx withval=$with_libs;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx LIBRARY_DIRS=$withval
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # 64-bit integer date/time storage is now the only option, but to avoid
5 kx # unnecessary breakage of build scripts, continue to accept an explicit
5 kx # "--enable-integer-datetimes" switch.
5 kx #
5 kx
5 kx
5 kx # Check whether --enable-integer-datetimes was given.
5 kx if test "${enable_integer_datetimes+set}" = set; then :
5 kx enableval=$enable_integer_datetimes;
5 kx case $enableval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx enable_integer_datetimes=yes
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # NLS
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
5 kx $as_echo_n "checking whether NLS is wanted... " >&6; }
5 kx
5 kx
5 kx # Check whether --enable-nls was given.
5 kx if test "${enable_nls+set}" = set; then :
5 kx enableval=$enable_nls;
5 kx case $enableval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx enable_nls=yes
5 kx WANTED_LANGUAGES=$enableval
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx enable_nls=no
5 kx fi
5 kx
5 kx
5 kx
5 kx if test "$enable_nls" = yes; then
5 kx
5 kx $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
5 kx $as_echo "$enable_nls" >&6; }
5 kx
5 kx
5 kx
5 kx #
5 kx # Default port number (--with-pgport), default 5432
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
5 kx $as_echo_n "checking for default port number... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-pgport was given.
5 kx if test "${with_pgport+set}" = set; then :
5 kx withval=$with_pgport;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx default_port=$withval
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx default_port=5432
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
5 kx $as_echo "$default_port" >&6; }
5 kx # Need both of these because some places want an integer and some a string
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define DEF_PGPORT ${default_port}
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define DEF_PGPORT_STR "${default_port}"
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx # It's worth validating port; you can get very confusing errors otherwise
5 kx if test x"$default_port" = x""; then
5 kx as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
5 kx elif test ! x`echo "$default_port" | sed -e 's/[0-9]*//'` = x""; then
5 kx as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
5 kx elif test ! x`echo "$default_port" | sed -e 's/^0.//'` = x"$default_port"; then
5 kx as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
5 kx elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
5 kx as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
5 kx fi
5 kx
5 kx #
5 kx # '-rpath'-like feature can be disabled
5 kx #
5 kx
5 kx
5 kx # Check whether --enable-rpath was given.
5 kx if test "${enable_rpath+set}" = set; then :
5 kx enableval=$enable_rpath;
5 kx case $enableval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx enable_rpath=yes
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # Spinlocks
5 kx #
5 kx
5 kx
5 kx # Check whether --enable-spinlocks was given.
5 kx if test "${enable_spinlocks+set}" = set; then :
5 kx enableval=$enable_spinlocks;
5 kx case $enableval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx enable_spinlocks=yes
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx #
5 kx # Atomic operations
5 kx #
5 kx
5 kx
5 kx # Check whether --enable-atomics was given.
5 kx if test "${enable_atomics+set}" = set; then :
5 kx enableval=$enable_atomics;
5 kx case $enableval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx enable_atomics=yes
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx #
5 kx # --enable-debug adds -g to compiler flags
5 kx #
5 kx
5 kx
5 kx # Check whether --enable-debug was given.
5 kx if test "${enable_debug+set}" = set; then :
5 kx enableval=$enable_debug;
5 kx case $enableval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx enable_debug=no
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # --enable-profiling enables gcc profiling
5 kx #
5 kx
5 kx
5 kx # Check whether --enable-profiling was given.
5 kx if test "${enable_profiling+set}" = set; then :
5 kx enableval=$enable_profiling;
5 kx case $enableval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx enable_profiling=no
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx #
5 kx # --enable-coverage enables generation of code coverage metrics with gcov
5 kx #
5 kx
5 kx
5 kx # Check whether --enable-coverage was given.
5 kx if test "${enable_coverage+set}" = set; then :
5 kx enableval=$enable_coverage;
5 kx case $enableval in
5 kx yes)
5 kx if test -z "$GCOV"; then
5 kx for ac_prog in gcov
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_GCOV+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $GCOV in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx GCOV=$ac_cv_path_GCOV
5 kx if test -n "$GCOV"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5 kx $as_echo "$GCOV" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$GCOV" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of GCOV in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
5 kx $as_echo_n "checking for GCOV... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5 kx $as_echo "$GCOV" >&6; }
5 kx fi
5 kx
5 kx if test -z "$GCOV"; then
5 kx as_fn_error $? "gcov not found" "$LINENO" 5
5 kx fi
5 kx if test -z "$LCOV"; then
5 kx for ac_prog in lcov
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_LCOV+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $LCOV in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx LCOV=$ac_cv_path_LCOV
5 kx if test -n "$LCOV"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5 kx $as_echo "$LCOV" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$LCOV" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of LCOV in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
5 kx $as_echo_n "checking for LCOV... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5 kx $as_echo "$LCOV" >&6; }
5 kx fi
5 kx
5 kx if test -z "$LCOV"; then
5 kx as_fn_error $? "lcov not found" "$LINENO" 5
5 kx fi
5 kx if test -z "$GENHTML"; then
5 kx for ac_prog in genhtml
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_GENHTML+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $GENHTML in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx GENHTML=$ac_cv_path_GENHTML
5 kx if test -n "$GENHTML"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5 kx $as_echo "$GENHTML" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$GENHTML" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of GENHTML in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
5 kx $as_echo_n "checking for GENHTML... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5 kx $as_echo "$GENHTML" >&6; }
5 kx fi
5 kx
5 kx if test -z "$GENHTML"; then
5 kx as_fn_error $? "genhtml not found" "$LINENO" 5
5 kx fi
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx enable_coverage=no
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # DTrace
5 kx #
5 kx
5 kx
5 kx # Check whether --enable-dtrace was given.
5 kx if test "${enable_dtrace+set}" = set; then :
5 kx enableval=$enable_dtrace;
5 kx case $enableval in
5 kx yes)
5 kx if test -z "$DTRACE"; then
5 kx for ac_prog in dtrace
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_DTRACE+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $DTRACE in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx DTRACE=$ac_cv_path_DTRACE
5 kx if test -n "$DTRACE"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5 kx $as_echo "$DTRACE" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$DTRACE" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of DTRACE in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
5 kx $as_echo_n "checking for DTRACE... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5 kx $as_echo "$DTRACE" >&6; }
5 kx fi
5 kx
5 kx if test -z "$DTRACE"; then
5 kx as_fn_error $? "dtrace not found" "$LINENO" 5
5 kx fi
5 kx
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx enable_dtrace=no
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # TAP tests
5 kx #
5 kx
5 kx
5 kx # Check whether --enable-tap-tests was given.
5 kx if test "${enable_tap_tests+set}" = set; then :
5 kx enableval=$enable_tap_tests;
5 kx case $enableval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx enable_tap_tests=no
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # Block size
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
5 kx $as_echo_n "checking for block size... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-blocksize was given.
5 kx if test "${with_blocksize+set}" = set; then :
5 kx withval=$with_blocksize;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx blocksize=$withval
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx blocksize=8
5 kx fi
5 kx
5 kx
5 kx case ${blocksize} in
5 kx 1) BLCKSZ=1024;;
5 kx 2) BLCKSZ=2048;;
5 kx 4) BLCKSZ=4096;;
5 kx 8) BLCKSZ=8192;;
5 kx 16) BLCKSZ=16384;;
5 kx 32) BLCKSZ=32768;;
5 kx *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
5 kx esac
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
5 kx $as_echo "${blocksize}kB" >&6; }
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define BLCKSZ ${BLCKSZ}
5 kx _ACEOF
5 kx
5 kx
5 kx #
5 kx # Relation segment size
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
5 kx $as_echo_n "checking for segment size... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-segsize was given.
5 kx if test "${with_segsize+set}" = set; then :
5 kx withval=$with_segsize;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx segsize=$withval
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx segsize=1
5 kx fi
5 kx
5 kx
5 kx # this expression is set up to avoid unnecessary integer overflow
5 kx # blocksize is already guaranteed to be a factor of 1024
5 kx RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
5 kx test $? -eq 0 || exit 1
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
5 kx $as_echo "${segsize}GB" >&6; }
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define RELSEG_SIZE ${RELSEG_SIZE}
5 kx _ACEOF
5 kx
5 kx
5 kx #
5 kx # WAL block size
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
5 kx $as_echo_n "checking for WAL block size... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-wal-blocksize was given.
5 kx if test "${with_wal_blocksize+set}" = set; then :
5 kx withval=$with_wal_blocksize;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx wal_blocksize=$withval
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx wal_blocksize=8
5 kx fi
5 kx
5 kx
5 kx case ${wal_blocksize} in
5 kx 1) XLOG_BLCKSZ=1024;;
5 kx 2) XLOG_BLCKSZ=2048;;
5 kx 4) XLOG_BLCKSZ=4096;;
5 kx 8) XLOG_BLCKSZ=8192;;
5 kx 16) XLOG_BLCKSZ=16384;;
5 kx 32) XLOG_BLCKSZ=32768;;
5 kx 64) XLOG_BLCKSZ=65536;;
5 kx *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
5 kx esac
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
5 kx $as_echo "${wal_blocksize}kB" >&6; }
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
5 kx _ACEOF
5 kx
5 kx
5 kx #
5 kx # C compiler
5 kx #
5 kx
5 kx # For historical reasons you can also use --with-CC to specify the C compiler
5 kx # to use, although the standard way to do this is to set the CC environment
5 kx # variable.
5 kx
5 kx
5 kx
5 kx # Check whether --with-CC was given.
5 kx if test "${with_CC+set}" = set; then :
5 kx withval=$with_CC;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx CC=$with_CC
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx case $template in
5 kx aix) pgac_cc_list="gcc xlc"; pgac_cxx_list="g++ xlC";;
5 kx *) pgac_cc_list="gcc cc"; pgac_cxx_list="g++ c++";;
5 kx esac
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in $pgac_cc_list
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$CC" && break
5 kx done
5 kx fi
5 kx if test -z "$CC"; then
5 kx ac_ct_CC=$CC
5 kx for ac_prog in $pgac_cc_list
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5 kx $as_echo "$ac_ct_CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_CC" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx fi
5 kx
5 kx
5 kx test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "no acceptable C compiler found in \$PATH
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx
5 kx # Provide some information about the compiler.
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5 kx set X $ac_compile
5 kx ac_compiler=$2
5 kx for ac_option in --version -v -V -qversion; do
5 kx { { ac_try="$ac_compiler $ac_option >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx sed '10a\
5 kx ... rest of stderr output deleted ...
5 kx 10q' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx fi
5 kx rm -f conftest.er1 conftest.err
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx done
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx ac_clean_files_save=$ac_clean_files
5 kx ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5 kx # Try to create an executable without -o first, disregard a.out.
5 kx # It will help us diagnose broken compilers, and finding out an intuition
5 kx # of exeext.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5 kx $as_echo_n "checking whether the C compiler works... " >&6; }
5 kx ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5 kx
5 kx # The possible output files:
5 kx ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5 kx
5 kx ac_rmfiles=
5 kx for ac_file in $ac_files
5 kx do
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5 kx * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5 kx esac
5 kx done
5 kx rm -f $ac_rmfiles
5 kx
5 kx if { { ac_try="$ac_link_default"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link_default") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then :
5 kx # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5 kx # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5 kx # in a Makefile. We should not override ac_cv_exeext if it was cached,
5 kx # so that the user can short-circuit this test for compilers unknown to
5 kx # Autoconf.
5 kx for ac_file in $ac_files ''
5 kx do
5 kx test -f "$ac_file" || continue
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5 kx ;;
5 kx [ab].out )
5 kx # We found the default executable, but exeext='' is most
5 kx # certainly right.
5 kx break;;
5 kx *.* )
5 kx if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5 kx then :; else
5 kx ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5 kx fi
5 kx # We set ac_cv_exeext here because the later test for it is not
5 kx # safe: cross compilers may not add the suffix if given an `-o'
5 kx # argument, so we may need to know it at that point already.
5 kx # Even if this section looks crufty: it has the advantage of
5 kx # actually working.
5 kx break;;
5 kx * )
5 kx break;;
5 kx esac
5 kx done
5 kx test "$ac_cv_exeext" = no && ac_cv_exeext=
5 kx
5 kx else
5 kx ac_file=''
5 kx fi
5 kx if test -z "$ac_file"; then :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "C compiler cannot create executables
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5 kx $as_echo_n "checking for C compiler default output file name... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5 kx $as_echo "$ac_file" >&6; }
5 kx ac_exeext=$ac_cv_exeext
5 kx
5 kx rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5 kx ac_clean_files=$ac_clean_files_save
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5 kx $as_echo_n "checking for suffix of executables... " >&6; }
5 kx if { { ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then :
5 kx # If both `conftest.exe' and `conftest' are `present' (well, observable)
5 kx # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5 kx # work properly (i.e., refer to `conftest.exe'), while it won't with
5 kx # `rm'.
5 kx for ac_file in conftest.exe conftest conftest.*; do
5 kx test -f "$ac_file" || continue
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5 kx *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5 kx break;;
5 kx * ) break;;
5 kx esac
5 kx done
5 kx else
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx rm -f conftest conftest$ac_cv_exeext
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5 kx $as_echo "$ac_cv_exeext" >&6; }
5 kx
5 kx rm -f conftest.$ac_ext
5 kx EXEEXT=$ac_cv_exeext
5 kx ac_exeext=$EXEEXT
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdio.h>
5 kx int
5 kx main ()
5 kx {
5 kx FILE *f = fopen ("conftest.out", "w");
5 kx return ferror (f) || fclose (f) != 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx ac_clean_files="$ac_clean_files conftest.out"
5 kx # Check that the compiler produces executables we can run. If not, either
5 kx # the compiler is broken, or we cross compile.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5 kx $as_echo_n "checking whether we are cross compiling... " >&6; }
5 kx if test "$cross_compiling" != yes; then
5 kx { { ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx if { ac_try='./conftest$ac_cv_exeext'
5 kx { { case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_try") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; }; then
5 kx cross_compiling=no
5 kx else
5 kx if test "$cross_compiling" = maybe; then
5 kx cross_compiling=yes
5 kx else
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot run C compiled programs.
5 kx If you meant to cross compile, use \`--host'.
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5 kx $as_echo "$cross_compiling" >&6; }
5 kx
5 kx rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5 kx ac_clean_files=$ac_clean_files_save
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5 kx $as_echo_n "checking for suffix of object files... " >&6; }
5 kx if ${ac_cv_objext+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.o conftest.obj
5 kx if { { ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compile") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then :
5 kx for ac_file in conftest.o conftest.obj conftest.*; do
5 kx test -f "$ac_file" || continue;
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5 kx *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5 kx break;;
5 kx esac
5 kx done
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot compute suffix of object files: cannot compile
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx rm -f conftest.$ac_cv_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5 kx $as_echo "$ac_cv_objext" >&6; }
5 kx OBJEXT=$ac_cv_objext
5 kx ac_objext=$OBJEXT
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5 kx $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5 kx if ${ac_cv_c_compiler_gnu+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef __GNUC__
5 kx choke me
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_compiler_gnu=yes
5 kx else
5 kx ac_compiler_gnu=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_c_compiler_gnu=$ac_compiler_gnu
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5 kx $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5 kx if test $ac_compiler_gnu = yes; then
5 kx GCC=yes
5 kx else
5 kx GCC=
5 kx fi
5 kx ac_test_CFLAGS=${CFLAGS+set}
5 kx ac_save_CFLAGS=$CFLAGS
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5 kx $as_echo_n "checking whether $CC accepts -g... " >&6; }
5 kx if ${ac_cv_prog_cc_g+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx ac_cv_prog_cc_g=no
5 kx CFLAGS="-g"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_g=yes
5 kx else
5 kx CFLAGS=""
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx else
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="-g"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_g=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5 kx $as_echo "$ac_cv_prog_cc_g" >&6; }
5 kx if test "$ac_test_CFLAGS" = set; then
5 kx CFLAGS=$ac_save_CFLAGS
5 kx elif test $ac_cv_prog_cc_g = yes; then
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-g -O2"
5 kx else
5 kx CFLAGS="-g"
5 kx fi
5 kx else
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-O2"
5 kx else
5 kx CFLAGS=
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5 kx $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5 kx if ${ac_cv_prog_cc_c89+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_prog_cc_c89=no
5 kx ac_save_CC=$CC
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx #include <stdio.h>
5 kx struct stat;
5 kx /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5 kx struct buf { int x; };
5 kx FILE * (*rcsopen) (struct buf *, struct stat *, int);
5 kx static char *e (p, i)
5 kx char **p;
5 kx int i;
5 kx {
5 kx return p[i];
5 kx }
5 kx static char *f (char * (*g) (char **, int), char **p, ...)
5 kx {
5 kx char *s;
5 kx va_list v;
5 kx va_start (v,p);
5 kx s = g (p, va_arg (v,int));
5 kx va_end (v);
5 kx return s;
5 kx }
5 kx
5 kx /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5 kx function prototypes and stuff, but not '\xHH' hex character constants.
5 kx These don't provoke an error unfortunately, instead are silently treated
5 kx as 'x'. The following induces an error, until -std is added to get
5 kx proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5 kx array size at least. It's necessary to write '\x00'==0 to get something
5 kx that's true only with -std. */
5 kx int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5 kx
5 kx /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5 kx inside strings and character constants. */
5 kx #define FOO(x) 'x'
5 kx int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5 kx
5 kx int test (int i, double x);
5 kx struct s1 {int (*f) (int a);};
5 kx struct s2 {int (*f) (double a);};
5 kx int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5 kx int argc;
5 kx char **argv;
5 kx int
5 kx main ()
5 kx {
5 kx return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5 kx -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5 kx do
5 kx CC="$ac_save_CC $ac_arg"
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_c89=$ac_arg
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx test "x$ac_cv_prog_cc_c89" != "xno" && break
5 kx done
5 kx rm -f conftest.$ac_ext
5 kx CC=$ac_save_CC
5 kx
5 kx fi
5 kx # AC_CACHE_VAL
5 kx case "x$ac_cv_prog_cc_c89" in
5 kx x)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5 kx $as_echo "none needed" >&6; } ;;
5 kx xno)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5 kx $as_echo "unsupported" >&6; } ;;
5 kx *)
5 kx CC="$CC $ac_cv_prog_cc_c89"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5 kx $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5 kx esac
5 kx if test "x$ac_cv_prog_cc_c89" != xno; then :
5 kx
5 kx fi
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5 kx $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5 kx if ${ac_cv_prog_cc_c99+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_prog_cc_c99=no
5 kx ac_save_CC=$CC
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx #include <stdbool.h>
5 kx #include <stdlib.h>
5 kx #include <wchar.h>
5 kx #include <stdio.h>
5 kx
5 kx // Check varargs macros. These examples are taken from C99 6.10.3.5.
5 kx #define debug(...) fprintf (stderr, __VA_ARGS__)
5 kx #define showlist(...) puts (#__VA_ARGS__)
5 kx #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5 kx static void
5 kx test_varargs_macros (void)
5 kx {
5 kx int x = 1234;
5 kx int y = 5678;
5 kx debug ("Flag");
5 kx debug ("X = %d\n", x);
5 kx showlist (The first, second, and third items.);
5 kx report (x>y, "x is %d but y is %d", x, y);
5 kx }
5 kx
5 kx // Check long long types.
5 kx #define BIG64 18446744073709551615ull
5 kx #define BIG32 4294967295ul
5 kx #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5 kx #if !BIG_OK
5 kx your preprocessor is broken;
5 kx #endif
5 kx #if BIG_OK
5 kx #else
5 kx your preprocessor is broken;
5 kx #endif
5 kx static long long int bignum = -9223372036854775807LL;
5 kx static unsigned long long int ubignum = BIG64;
5 kx
5 kx struct incomplete_array
5 kx {
5 kx int datasize;
5 kx double data[];
5 kx };
5 kx
5 kx struct named_init {
5 kx int number;
5 kx const wchar_t *name;
5 kx double average;
5 kx };
5 kx
5 kx typedef const char *ccp;
5 kx
5 kx static inline int
5 kx test_restrict (ccp restrict text)
5 kx {
5 kx // See if C++-style comments work.
5 kx // Iterate through items via the restricted pointer.
5 kx // Also check for declarations in for loops.
5 kx for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5 kx continue;
5 kx return 0;
5 kx }
5 kx
5 kx // Check varargs and va_copy.
5 kx static void
5 kx test_varargs (const char *format, ...)
5 kx {
5 kx va_list args;
5 kx va_start (args, format);
5 kx va_list args_copy;
5 kx va_copy (args_copy, args);
5 kx
5 kx const char *str;
5 kx int number;
5 kx float fnumber;
5 kx
5 kx while (*format)
5 kx {
5 kx switch (*format++)
5 kx {
5 kx case 's': // string
5 kx str = va_arg (args_copy, const char *);
5 kx break;
5 kx case 'd': // int
5 kx number = va_arg (args_copy, int);
5 kx break;
5 kx case 'f': // float
5 kx fnumber = va_arg (args_copy, double);
5 kx break;
5 kx default:
5 kx break;
5 kx }
5 kx }
5 kx va_end (args_copy);
5 kx va_end (args);
5 kx }
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx // Check bool.
5 kx _Bool success = false;
5 kx
5 kx // Check restrict.
5 kx if (test_restrict ("String literal") == 0)
5 kx success = true;
5 kx char *restrict newvar = "Another string";
5 kx
5 kx // Check varargs.
5 kx test_varargs ("s, d' f .", "string", 65, 34.234);
5 kx test_varargs_macros ();
5 kx
5 kx // Check flexible array members.
5 kx struct incomplete_array *ia =
5 kx malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5 kx ia->datasize = 10;
5 kx for (int i = 0; i < ia->datasize; ++i)
5 kx ia->data[i] = i * 1.234;
5 kx
5 kx // Check named initializers.
5 kx struct named_init ni = {
5 kx .number = 34,
5 kx .name = L"Test wide string",
5 kx .average = 543.34343,
5 kx };
5 kx
5 kx ni.number = 58;
5 kx
5 kx int dynamic_array[ni.number];
5 kx dynamic_array[ni.number - 1] = 543;
5 kx
5 kx // work around unused variable warnings
5 kx return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5 kx || dynamic_array[ni.number - 1] != 543);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5 kx do
5 kx CC="$ac_save_CC $ac_arg"
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_c99=$ac_arg
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx test "x$ac_cv_prog_cc_c99" != "xno" && break
5 kx done
5 kx rm -f conftest.$ac_ext
5 kx CC=$ac_save_CC
5 kx
5 kx fi
5 kx # AC_CACHE_VAL
5 kx case "x$ac_cv_prog_cc_c99" in
5 kx x)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5 kx $as_echo "none needed" >&6; } ;;
5 kx xno)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5 kx $as_echo "unsupported" >&6; } ;;
5 kx *)
5 kx CC="$CC $ac_cv_prog_cc_c99"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5 kx $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5 kx esac
5 kx if test "x$ac_cv_prog_cc_c99" != xno; then :
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx # Error out if the compiler does not support C99, as the codebase
5 kx # relies on that.
5 kx if test "$ac_cv_prog_cc_c99" = no; then
5 kx as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
5 kx fi
5 kx
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx if test -z "$CXX"; then
5 kx if test -n "$CCC"; then
5 kx CXX=$CCC
5 kx else
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in $pgac_cxx_list
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CXX+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CXX"; then
5 kx ac_cv_prog_CXX="$CXX" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CXX=$ac_cv_prog_CXX
5 kx if test -n "$CXX"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5 kx $as_echo "$CXX" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$CXX" && break
5 kx done
5 kx fi
5 kx if test -z "$CXX"; then
5 kx ac_ct_CXX=$CXX
5 kx for ac_prog in $pgac_cxx_list
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_CXX"; then
5 kx ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_CXX="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5 kx if test -n "$ac_ct_CXX"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5 kx $as_echo "$ac_ct_CXX" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_CXX" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_CXX" = x; then
5 kx CXX="g++"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CXX=$ac_ct_CXX
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx # Provide some information about the compiler.
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5 kx set X $ac_compile
5 kx ac_compiler=$2
5 kx for ac_option in --version -v -V -qversion; do
5 kx { { ac_try="$ac_compiler $ac_option >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx sed '10a\
5 kx ... rest of stderr output deleted ...
5 kx 10q' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx fi
5 kx rm -f conftest.er1 conftest.err
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx done
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5 kx $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5 kx if ${ac_cv_cxx_compiler_gnu+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef __GNUC__
5 kx choke me
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx ac_compiler_gnu=yes
5 kx else
5 kx ac_compiler_gnu=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5 kx $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5 kx if test $ac_compiler_gnu = yes; then
5 kx GXX=yes
5 kx else
5 kx GXX=
5 kx fi
5 kx ac_test_CXXFLAGS=${CXXFLAGS+set}
5 kx ac_save_CXXFLAGS=$CXXFLAGS
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5 kx $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5 kx if ${ac_cv_prog_cxx_g+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_cv_prog_cxx_g=no
5 kx CXXFLAGS="-g"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cxx_g=yes
5 kx else
5 kx CXXFLAGS=""
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx
5 kx else
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="-g"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cxx_g=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5 kx $as_echo "$ac_cv_prog_cxx_g" >&6; }
5 kx if test "$ac_test_CXXFLAGS" = set; then
5 kx CXXFLAGS=$ac_save_CXXFLAGS
5 kx elif test $ac_cv_prog_cxx_g = yes; then
5 kx if test "$GXX" = yes; then
5 kx CXXFLAGS="-g -O2"
5 kx else
5 kx CXXFLAGS="-g"
5 kx fi
5 kx else
5 kx if test "$GXX" = yes; then
5 kx CXXFLAGS="-O2"
5 kx else
5 kx CXXFLAGS=
5 kx fi
5 kx fi
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx # Check if it's Intel's compiler, which (usually) pretends to be gcc,
5 kx # but has idiosyncrasies of its own. We assume icc will define
5 kx # __INTEL_COMPILER regardless of CFLAGS.
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef __INTEL_COMPILER
5 kx choke me
5 kx #endif
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ICC=yes
5 kx else
5 kx ICC=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx # Check if it's Sun Studio compiler. We assume that
5 kx # __SUNPRO_C will be defined for Sun Studio compilers
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef __SUNPRO_C
5 kx choke me
5 kx #endif
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx SUN_STUDIO_CC=yes
5 kx else
5 kx SUN_STUDIO_CC=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # LLVM
5 kx #
5 kx # Checked early because subsequent tests depend on it.
5 kx
5 kx
5 kx
5 kx # Check whether --with-llvm was given.
5 kx if test "${with_llvm+set}" = set; then :
5 kx withval=$with_llvm;
5 kx case $withval in
5 kx yes)
5 kx
5 kx $as_echo "#define USE_LLVM 1" >>confdefs.h
5 kx
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-llvm option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_llvm=no
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx for ac_prog in gawk mawk nawk awk
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_AWK+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$AWK"; then
5 kx ac_cv_prog_AWK="$AWK" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_AWK="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx AWK=$ac_cv_prog_AWK
5 kx if test -n "$AWK"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5 kx $as_echo "$AWK" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$AWK" && break
5 kx done
5 kx
5 kx if test "$with_llvm" = yes; then :
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test -z "$LLVM_CONFIG"; then
5 kx for ac_prog in llvm-config llvm-config-7 llvm-config-6.0 llvm-config-5.0 llvm-config-4.0 llvm-config-3.9
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_LLVM_CONFIG+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $LLVM_CONFIG in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG
5 kx if test -n "$LLVM_CONFIG"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5 kx $as_echo "$LLVM_CONFIG" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$LLVM_CONFIG" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of LLVM_CONFIG in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
5 kx $as_echo_n "checking for LLVM_CONFIG... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5 kx $as_echo "$LLVM_CONFIG" >&6; }
5 kx fi
5 kx
5 kx
5 kx # no point continuing if llvm wasn't found
5 kx if test -z "$LLVM_CONFIG"; then
5 kx as_fn_error $? "llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
5 kx fi
5 kx # check if detected $LLVM_CONFIG is executable
5 kx pgac_llvm_version="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
5 kx if test "x$pgac_llvm_version" = "xno"; then
5 kx as_fn_error $? "$LLVM_CONFIG does not work" "$LINENO" 5
5 kx fi
5 kx # and whether the version is supported
5 kx if echo $pgac_llvm_version | $AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then
5 kx as_fn_error $? "$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5
5 kx fi
5 kx
5 kx # need clang to create some bitcode files
5 kx
5 kx if test -z "$CLANG"; then
5 kx for ac_prog in clang clang-7 clang-6.0 clang-5.0 clang-4.0 clang-3.9
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_CLANG+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $CLANG in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_CLANG="$CLANG" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_CLANG="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx CLANG=$ac_cv_path_CLANG
5 kx if test -n "$CLANG"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5 kx $as_echo "$CLANG" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$CLANG" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of CLANG in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
5 kx $as_echo_n "checking for CLANG... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5 kx $as_echo "$CLANG" >&6; }
5 kx fi
5 kx
5 kx if test -z "$CLANG"; then
5 kx as_fn_error $? "clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
5 kx fi
5 kx # make sure clang is executable
5 kx if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
5 kx as_fn_error $? "$CLANG does not work" "$LINENO" 5
5 kx fi
5 kx # Could check clang version, but it doesn't seem that
5 kx # important. Systems with a new enough LLVM version are usually
5 kx # going to have a decent clang version too. It's also not entirely
5 kx # clear what the minimum version is.
5 kx
5 kx # Collect compiler flags necessary to build the LLVM dependent
5 kx # shared library.
5 kx for pgac_option in `$LLVM_CONFIG --cppflags`; do
5 kx case $pgac_option in
5 kx -I*|-D*) LLVM_CPPFLAGS="$pgac_option $LLVM_CPPFLAGS";;
5 kx esac
5 kx done
5 kx
5 kx for pgac_option in `$LLVM_CONFIG --ldflags`; do
5 kx case $pgac_option in
5 kx -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5 kx esac
5 kx done
5 kx
5 kx # ABI influencing options, standard influencing options
5 kx for pgac_option in `$LLVM_CONFIG --cxxflags`; do
5 kx case $pgac_option in
5 kx -fno-rtti*) LLVM_CXXFLAGS="$LLVM_CXXFLAGS $pgac_option";;
5 kx -std=*) LLVM_CXXFLAGS="$LLVM_CXXFLAGS $pgac_option";;
5 kx esac
5 kx done
5 kx
5 kx # Look for components we're interested in, collect necessary
5 kx # libs. As some components are optional, we can't just list all of
5 kx # them as it'd raise an error.
5 kx pgac_components='';
5 kx for pgac_component in `$LLVM_CONFIG --components`; do
5 kx case $pgac_component in
5 kx engine) pgac_components="$pgac_components $pgac_component";;
5 kx debuginfodwarf) pgac_components="$pgac_components $pgac_component";;
5 kx orcjit) pgac_components="$pgac_components $pgac_component";;
5 kx passes) pgac_components="$pgac_components $pgac_component";;
5 kx native) pgac_components="$pgac_components $pgac_component";;
5 kx perfjitevents) pgac_components="$pgac_components $pgac_component";;
5 kx esac
5 kx done;
5 kx
5 kx # And then get the libraries that need to be linked in for the
5 kx # selected components. They're large libraries, we only want to
5 kx # link them into the LLVM using shared library.
5 kx for pgac_option in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
5 kx case $pgac_option in
5 kx -l*) LLVM_LIBS="$LLVM_LIBS $pgac_option";;
5 kx esac
5 kx done
5 kx
5 kx LLVM_BINPATH=`$LLVM_CONFIG --bindir`
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx fi # fi
5 kx
5 kx
5 kx unset CFLAGS
5 kx unset CXXFLAGS
5 kx
5 kx #
5 kx # Read the template
5 kx #
5 kx . "$srcdir/src/template/$template" || exit
5 kx
5 kx # C[XX]FLAGS are selected so:
5 kx # If the user specifies something in the environment, that is used.
5 kx # else: If the template file set something, that is used.
5 kx # else: If coverage was enabled, don't set anything.
5 kx # else: If the compiler is GCC, then we use -O2.
5 kx # else: If the compiler is something else, then we use -O, unless debugging.
5 kx
5 kx if test "$ac_env_CFLAGS_set" = set; then
5 kx CFLAGS=$ac_env_CFLAGS_value
5 kx elif test "${CFLAGS+set}" = set; then
5 kx : # (keep what template set)
5 kx elif test "$enable_coverage" = yes; then
5 kx : # no optimization by default
5 kx elif test "$GCC" = yes; then
5 kx CFLAGS="-O2"
5 kx else
5 kx # if the user selected debug mode, don't use -O
5 kx if test "$enable_debug" != yes; then
5 kx CFLAGS="-O"
5 kx fi
5 kx fi
5 kx
5 kx if test "$ac_env_CXXFLAGS_set" = set; then
5 kx CXXFLAGS=$ac_env_CXXFLAGS_value
5 kx elif test "${CXXFLAGS+set}" = set; then
5 kx : # (keep what template set)
5 kx elif test "$enable_coverage" = yes; then
5 kx : # no optimization by default
5 kx elif test "$GCC" = yes; then
5 kx CXXFLAGS="-O2"
5 kx else
5 kx # if the user selected debug mode, don't use -O
5 kx if test "$enable_debug" != yes; then
5 kx CXXFLAGS="-O"
5 kx fi
5 kx fi
5 kx
5 kx # When generating bitcode (for inlining) we always want to use -O2
5 kx # even when --enable-debug is specified. The bitcode it's not going to
5 kx # be used for line-by-line debugging, and JIT inlining doesn't work
5 kx # without at least -O1 (otherwise clang will emit 'noinline'
5 kx # attributes everywhere), which is bad for testing. Still allow the
5 kx # environment to override if done explicitly.
5 kx if test "$ac_env_BITCODE_CFLAGS_set" = set; then
5 kx BITCODE_CFLAGS=$ac_env_BITCODE_CFLAGS_value
5 kx else
5 kx BITCODE_CFLAGS="-O2 $BITCODE_CFLAGS"
5 kx fi
5 kx if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
5 kx BITCODE_CXXFLAGS=$ac_env_BITCODE_CXXFLAGS_value
5 kx else
5 kx BITCODE_CXXFLAGS="-O2 $BITCODE_CXXFLAGS"
5 kx fi
5 kx
5 kx # C[XX]FLAGS we determined above will be added back at the end
5 kx user_CFLAGS=$CFLAGS
5 kx CFLAGS=""
5 kx user_CXXFLAGS=$CXXFLAGS
5 kx CXXFLAGS=""
5 kx user_BITCODE_CFLAGS=$BITCODE_CFLAGS
5 kx BITCODE_CFLAGS=""
5 kx user_BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS
5 kx BITCODE_CXXFLAGS=""
5 kx
5 kx # set CFLAGS_UNROLL_LOOPS and CFLAGS_VECTORIZE from the environment, if present
5 kx if test "$ac_env_CFLAGS_UNROLL_LOOPS_set" = set; then
5 kx CFLAGS_UNROLL_LOOPS=$ac_env_CFLAGS_UNROLL_LOOPS_value
5 kx fi
5 kx if test "$ac_env_CFLAGS_VECTORIZE_set" = set; then
5 kx CFLAGS_VECTORIZE=$ac_env_CFLAGS_VECTORIZE_value
5 kx fi
5 kx
5 kx # Some versions of GCC support some additional useful warning flags.
5 kx # Check whether they are supported, and add them to CFLAGS if so.
5 kx # ICC pretends to be GCC but it's lying; it doesn't support these flags,
5 kx # but has its own. Also check other compiler-specific flags here.
5 kx
5 kx if test "$GCC" = yes -a "$ICC" = no; then
5 kx CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith"
5 kx CXXFLAGS="-Wall -Wpointer-arith"
5 kx # These work in some but not all gcc versions
5 kx save_CFLAGS=$CFLAGS
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -Wdeclaration-after-statement"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__Wdeclaration_after_statement=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__Wdeclaration_after_statement=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -Wdeclaration-after-statement"
5 kx fi
5 kx
5 kx
5 kx # -Wdeclaration-after-statement isn't applicable for C++. Specific C files
5 kx # disable it, so AC_SUBST the negative form.
5 kx PERMIT_DECLARATION_AFTER_STATEMENT=
5 kx if test x"$save_CFLAGS" != x"$CFLAGS"; then
5 kx PERMIT_DECLARATION_AFTER_STATEMENT=-Wno-declaration-after-statement
5 kx fi
5 kx
5 kx # Really don't want VLAs to be used in our dialect of C
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -Werror=vla"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__Werror_vla=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__Werror_vla=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__Werror_vla" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -Werror=vla"
5 kx fi
5 kx
5 kx
5 kx # On macOS, complain about usage of symbols newer than the deployment target
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -Werror=unguarded-availability-new"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -Werror=unguarded-availability-new"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} -Werror=unguarded-availability-new"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} -Werror=unguarded-availability-new"
5 kx fi
5 kx
5 kx
5 kx # -Wvla is not applicable for C++
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -Wendif-labels"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__Wendif_labels=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__Wendif_labels=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__Wendif_labels" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -Wendif-labels"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} -Wendif-labels"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags__Wendif_labels=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags__Wendif_labels=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} -Wendif-labels"
5 kx fi
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -Wmissing-format-attribute"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__Wmissing_format_attribute=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__Wmissing_format_attribute=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -Wmissing-format-attribute"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} -Wmissing-format-attribute"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} -Wmissing-format-attribute"
5 kx fi
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -Wimplicit-fallthrough=3"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -Wimplicit-fallthrough=3"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=3"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=3"
5 kx fi
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcast-function-type, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -Wcast-function-type, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__Wcast_function_type+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -Wcast-function-type"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__Wcast_function_type=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__Wcast_function_type=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcast_function_type" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__Wcast_function_type" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__Wcast_function_type" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -Wcast-function-type"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags__Wcast_function_type+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} -Wcast-function-type"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags__Wcast_function_type=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags__Wcast_function_type=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} -Wcast-function-type"
5 kx fi
5 kx
5 kx
5 kx # This was included in -Wall/-Wformat in older GCC versions
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -Wformat-security"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__Wformat_security=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__Wformat_security=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__Wformat_security" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -Wformat-security"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} -Wformat-security"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags__Wformat_security=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags__Wformat_security=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} -Wformat-security"
5 kx fi
5 kx
5 kx
5 kx # Disable strict-aliasing rules; needed for gcc 3.3+
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -fno-strict-aliasing"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__fno_strict_aliasing=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__fno_strict_aliasing=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -fno-strict-aliasing"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
5 kx fi
5 kx
5 kx
5 kx # Disable optimizations that assume no overflow; needed for gcc 4.3+
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__fwrapv+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -fwrapv"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__fwrapv=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__fwrapv=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__fwrapv" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -fwrapv"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} -fwrapv"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags__fwrapv=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags__fwrapv=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} -fwrapv"
5 kx fi
5 kx
5 kx
5 kx # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -fexcess-precision=standard"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__fexcess_precision_standard=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__fexcess_precision_standard=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -fexcess-precision=standard"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} -fexcess-precision=standard"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} -fexcess-precision=standard"
5 kx fi
5 kx
5 kx
5 kx # Optimization flags for specific files that benefit from loop unrolling
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__funroll_loops=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__funroll_loops=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__funroll_loops" = x"yes"; then
5 kx CFLAGS_UNROLL_LOOPS="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
5 kx fi
5 kx
5 kx
5 kx # Optimization flags for specific files that benefit from vectorization
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE" >&5
5 kx $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS_VECTORIZE} -ftree-vectorize"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__ftree_vectorize=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__ftree_vectorize=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x"yes"; then
5 kx CFLAGS_VECTORIZE="${CFLAGS_VECTORIZE} -ftree-vectorize"
5 kx fi
5 kx
5 kx
5 kx # We want to suppress clang's unhelpful unused-command-line-argument warnings
5 kx # but gcc won't complain about unrecognized -Wno-foo switches, so we have to
5 kx # test for the positive form and if that works, add the negative form
5 kx NOT_THE_CFLAGS=""
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__Wunused_command_line_argument+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__Wunused_command_line_argument=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__Wunused_command_line_argument=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" = x"yes"; then
5 kx NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
5 kx fi
5 kx
5 kx
5 kx if test -n "$NOT_THE_CFLAGS"; then
5 kx CFLAGS="$CFLAGS -Wno-unused-command-line-argument"
5 kx fi
5 kx # Similarly disable useless truncation warnings from gcc 8+
5 kx NOT_THE_CFLAGS=""
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${NOT_THE_CFLAGS} -Wformat-truncation"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__Wformat_truncation=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__Wformat_truncation=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x"yes"; then
5 kx NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wformat-truncation"
5 kx fi
5 kx
5 kx
5 kx if test -n "$NOT_THE_CFLAGS"; then
5 kx CFLAGS="$CFLAGS -Wno-format-truncation"
5 kx fi
5 kx NOT_THE_CFLAGS=""
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__Wstringop_truncation+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${NOT_THE_CFLAGS} -Wstringop-truncation"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__Wstringop_truncation=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__Wstringop_truncation=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wstringop_truncation" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__Wstringop_truncation" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__Wstringop_truncation" = x"yes"; then
5 kx NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wstringop-truncation"
5 kx fi
5 kx
5 kx
5 kx if test -n "$NOT_THE_CFLAGS"; then
5 kx CFLAGS="$CFLAGS -Wno-stringop-truncation"
5 kx fi
5 kx elif test "$ICC" = yes; then
5 kx # Intel's compiler has a bug/misoptimization in checking for
5 kx # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -mp1, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -mp1, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__mp1+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -mp1"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__mp1=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__mp1=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__mp1" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__mp1" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__mp1" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -mp1"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -mp1, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports -mp1, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags__mp1+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} -mp1"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags__mp1=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags__mp1=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__mp1" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags__mp1" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags__mp1" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} -mp1"
5 kx fi
5 kx
5 kx
5 kx # Make sure strict aliasing is off (though this is said to be the default)
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -fno-strict-aliasing"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__fno_strict_aliasing=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__fno_strict_aliasing=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -fno-strict-aliasing"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
5 kx fi
5 kx
5 kx
5 kx elif test "$PORTNAME" = "aix"; then
5 kx # AIX's xlc has to have strict aliasing turned off too
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qnoansialias, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -qnoansialias, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__qnoansialias+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -qnoansialias"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__qnoansialias=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__qnoansialias=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qnoansialias" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__qnoansialias" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__qnoansialias" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -qnoansialias"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qnoansialias, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports -qnoansialias, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags__qnoansialias+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} -qnoansialias"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags__qnoansialias=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags__qnoansialias=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qnoansialias" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags__qnoansialias" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags__qnoansialias" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} -qnoansialias"
5 kx fi
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qlonglong, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports -qlonglong, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags__qlonglong+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} -qlonglong"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags__qlonglong=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags__qlonglong=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qlonglong" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags__qlonglong" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags__qlonglong" = x"yes"; then
5 kx CFLAGS="${CFLAGS} -qlonglong"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qlonglong, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports -qlonglong, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags__qlonglong+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} -qlonglong"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags__qlonglong=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags__qlonglong=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qlonglong" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags__qlonglong" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags__qlonglong" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} -qlonglong"
5 kx fi
5 kx
5 kx
5 kx elif test "$PORTNAME" = "hpux"; then
5 kx # On some versions of HP-UX, libm functions do not set errno by default.
5 kx # Fix that by using +Olibmerrno if the compiler recognizes it.
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports +Olibmerrno, for CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CC} supports +Olibmerrno, for CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CC_cflags_pOlibmerrno+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CC}
5 kx CFLAGS="${CFLAGS} +Olibmerrno"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CC_cflags_pOlibmerrno=yes
5 kx else
5 kx pgac_cv_prog_CC_cflags_pOlibmerrno=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags_pOlibmerrno" >&5
5 kx $as_echo "$pgac_cv_prog_CC_cflags_pOlibmerrno" >&6; }
5 kx if test x"$pgac_cv_prog_CC_cflags_pOlibmerrno" = x"yes"; then
5 kx CFLAGS="${CFLAGS} +Olibmerrno"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CXX_cxxflags_pOlibmerrno+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CXX}
5 kx CXXFLAGS="${CXXFLAGS} +Olibmerrno"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CXX_cxxflags_pOlibmerrno=yes
5 kx else
5 kx pgac_cv_prog_CXX_cxxflags_pOlibmerrno=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&5
5 kx $as_echo "$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&6; }
5 kx if test x"$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" = x"yes"; then
5 kx CXXFLAGS="${CXXFLAGS} +Olibmerrno"
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx # Determine flags used to emit bitcode for JIT inlining. Need to test
5 kx # for behaviour changing compiler flags, to keep compatibility with
5 kx # compiler used for normal postgres code.
5 kx if test "$with_llvm" = yes ; then
5 kx CLANGXX="$CLANG -xc++"
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CLANG}
5 kx CFLAGS="${BITCODE_CFLAGS} -fno-strict-aliasing"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CLANG_cflags__fno_strict_aliasing=yes
5 kx else
5 kx pgac_cv_prog_CLANG_cflags__fno_strict_aliasing=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5
5 kx $as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; }
5 kx if test x"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x"yes"; then
5 kx BITCODE_CFLAGS="${BITCODE_CFLAGS} -fno-strict-aliasing"
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CLANGXX}
5 kx CXXFLAGS="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing=yes
5 kx else
5 kx pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5
5 kx $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; }
5 kx if test x"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x"yes"; then
5 kx BITCODE_CXXFLAGS="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CLANG}
5 kx CFLAGS="${BITCODE_CFLAGS} -fwrapv"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CLANG_cflags__fwrapv=yes
5 kx else
5 kx pgac_cv_prog_CLANG_cflags__fwrapv=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5
5 kx $as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; }
5 kx if test x"$pgac_cv_prog_CLANG_cflags__fwrapv" = x"yes"; then
5 kx BITCODE_CFLAGS="${BITCODE_CFLAGS} -fwrapv"
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CLANGXX}
5 kx CXXFLAGS="${BITCODE_CXXFLAGS} -fwrapv"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CLANGXX_cxxflags__fwrapv=yes
5 kx else
5 kx pgac_cv_prog_CLANGXX_cxxflags__fwrapv=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5
5 kx $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; }
5 kx if test x"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x"yes"; then
5 kx BITCODE_CXXFLAGS="${BITCODE_CXXFLAGS} -fwrapv"
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5
5 kx $as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx pgac_save_CC=$CC
5 kx CC=${CLANG}
5 kx CFLAGS="${BITCODE_CFLAGS} -fexcess-precision=standard"
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CLANG_cflags__fexcess_precision_standard=yes
5 kx else
5 kx pgac_cv_prog_CLANG_cflags__fexcess_precision_standard=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx CC="$pgac_save_CC"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5
5 kx $as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; }
5 kx if test x"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x"yes"; then
5 kx BITCODE_CFLAGS="${BITCODE_CFLAGS} -fexcess-precision=standard"
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5
5 kx $as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; }
5 kx if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CXXFLAGS=$CXXFLAGS
5 kx pgac_save_CXX=$CXX
5 kx CXX=${CLANGXX}
5 kx CXXFLAGS="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard=yes
5 kx else
5 kx pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="$pgac_save_CXXFLAGS"
5 kx CXX="$pgac_save_CXX"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5
5 kx $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; }
5 kx if test x"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x"yes"; then
5 kx BITCODE_CXXFLAGS="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
5 kx fi
5 kx
5 kx fi
5 kx
5 kx # supply -g if --enable-debug
5 kx if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
5 kx CFLAGS="$CFLAGS -g"
5 kx fi
5 kx
5 kx if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
5 kx CXXFLAGS="$CXXFLAGS -g"
5 kx fi
5 kx
5 kx # enable code coverage if --enable-coverage
5 kx if test "$enable_coverage" = yes; then
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
5 kx CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
5 kx else
5 kx as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5
5 kx fi
5 kx fi
5 kx
5 kx # enable profiling if --enable-profiling
5 kx if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
5 kx if test "$GCC" = yes; then
5 kx
5 kx $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
5 kx
5 kx CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
5 kx CXXFLAGS="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS"
5 kx else
5 kx as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5
5 kx fi
5 kx fi
5 kx
5 kx # We already have this in Makefile.win32, but configure needs it too
5 kx if test "$PORTNAME" = "win32"; then
5 kx CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32"
5 kx fi
5 kx
5 kx # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the
5 kx # user-specified flags (if any) at the end. This lets users override
5 kx # the automatic additions.
5 kx CFLAGS="$CFLAGS $user_CFLAGS"
5 kx CXXFLAGS="$CXXFLAGS $user_CXXFLAGS"
5 kx BITCODE_CFLAGS="$BITCODE_CFLAGS $user_BITCODE_CFLAGS"
5 kx BITCODE_CXXFLAGS="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS"
5 kx
5 kx
5 kx
5 kx
5 kx # The template file must set up CFLAGS_SL; we don't support user override
5 kx
5 kx
5 kx # Check if the compiler still works with the final flag settings
5 kx # (note, we're not checking that for CXX, which is optional)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
5 kx $as_echo_n "checking whether the C compiler still works... " >&6; }
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx as_fn_error $? "cannot proceed" "$LINENO" 5
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx
5 kx # Defend against gcc -ffast-math
5 kx if test "$GCC" = yes; then
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifdef __FAST_MATH__
5 kx choke me
5 kx #endif
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx else
5 kx as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx # Defend against clang being used on x86-32 without SSE2 enabled. As current
5 kx # versions of clang do not understand -fexcess-precision=standard, the use of
5 kx # x87 floating point operations leads to problems like isinf possibly returning
5 kx # false for a value that is infinite when converted from the 80bit register to
5 kx # the 8byte memory representation.
5 kx #
5 kx # Only perform the test if the compiler doesn't understand
5 kx # -fexcess-precision=standard, that way a potentially fixed compiler will work
5 kx # automatically.
5 kx if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no; then
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx #if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
5 kx choke me
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx else
5 kx as_fn_error $? "Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5 kx $as_echo_n "checking how to run the C preprocessor... " >&6; }
5 kx # On Suns, sometimes $CPP names a directory.
5 kx if test -n "$CPP" && test -d "$CPP"; then
5 kx CPP=
5 kx fi
5 kx if test -z "$CPP"; then
5 kx if ${ac_cv_prog_CPP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx # Double quotes because CPP needs to be expanded
5 kx for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5 kx do
5 kx ac_preproc_ok=false
5 kx for ac_c_preproc_warn_flag in '' yes
5 kx do
5 kx # Use a header file that comes with gcc, so configuring glibc
5 kx # with a fresh cross-compiler works.
5 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx # <limits.h> exists even on freestanding compilers.
5 kx # On the NeXT, cc -E runs the code through the compiler's parser,
5 kx # not just through cpp. "Syntax error" is here to catch this case.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx Syntax error
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx
5 kx else
5 kx # Broken: fails on valid input.
5 kx continue
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx
5 kx # OK, works on sane cases. Now check whether nonexistent headers
5 kx # can be detected and how.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ac_nonexistent.h>
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx # Broken: success on invalid input.
5 kx continue
5 kx else
5 kx # Passes both tests.
5 kx ac_preproc_ok=:
5 kx break
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx
5 kx done
5 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5 kx rm -f conftest.i conftest.err conftest.$ac_ext
5 kx if $ac_preproc_ok; then :
5 kx break
5 kx fi
5 kx
5 kx done
5 kx ac_cv_prog_CPP=$CPP
5 kx
5 kx fi
5 kx CPP=$ac_cv_prog_CPP
5 kx else
5 kx ac_cv_prog_CPP=$CPP
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5 kx $as_echo "$CPP" >&6; }
5 kx ac_preproc_ok=false
5 kx for ac_c_preproc_warn_flag in '' yes
5 kx do
5 kx # Use a header file that comes with gcc, so configuring glibc
5 kx # with a fresh cross-compiler works.
5 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx # <limits.h> exists even on freestanding compilers.
5 kx # On the NeXT, cc -E runs the code through the compiler's parser,
5 kx # not just through cpp. "Syntax error" is here to catch this case.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx Syntax error
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx
5 kx else
5 kx # Broken: fails on valid input.
5 kx continue
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx
5 kx # OK, works on sane cases. Now check whether nonexistent headers
5 kx # can be detected and how.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ac_nonexistent.h>
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx # Broken: success on invalid input.
5 kx continue
5 kx else
5 kx # Passes both tests.
5 kx ac_preproc_ok=:
5 kx break
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx
5 kx done
5 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5 kx rm -f conftest.i conftest.err conftest.$ac_ext
5 kx if $ac_preproc_ok; then :
5 kx
5 kx else
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # Set up TAS assembly code if needed; the template file has now had its
5 kx # chance to request this.
5 kx #
5 kx ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5 kx
5 kx
5 kx if test "$need_tas" = yes ; then
5 kx TAS=tas.o
5 kx else
5 kx TAS=""
5 kx fi
5 kx
5 kx
5 kx #
5 kx # Set up pkg_config in case we need it below
5 kx #
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_PKG_CONFIG+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $PKG_CONFIG in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5 kx if test -n "$PKG_CONFIG"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5 kx $as_echo "$PKG_CONFIG" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_path_PKG_CONFIG"; then
5 kx ac_pt_PKG_CONFIG=$PKG_CONFIG
5 kx # Extract the first word of "pkg-config", so it can be a program name with args.
5 kx set dummy pkg-config; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $ac_pt_PKG_CONFIG in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5 kx if test -n "$ac_pt_PKG_CONFIG"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5 kx $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_pt_PKG_CONFIG" = x; then
5 kx PKG_CONFIG=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx PKG_CONFIG=$ac_pt_PKG_CONFIG
5 kx fi
5 kx else
5 kx PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5 kx fi
5 kx
5 kx fi
5 kx if test -n "$PKG_CONFIG"; then
5 kx _pkg_min_version=0.9.0
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5 kx $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5 kx if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx PKG_CONFIG=""
5 kx fi
5 kx fi
5 kx
5 kx #
5 kx # Automatic dependency tracking
5 kx #
5 kx
5 kx
5 kx # Check whether --enable-depend was given.
5 kx if test "${enable_depend+set}" = set; then :
5 kx enableval=$enable_depend;
5 kx case $enableval in
5 kx yes)
5 kx autodepend=yes
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx enable_depend=no
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # Enable assert checks
5 kx #
5 kx
5 kx
5 kx # Check whether --enable-cassert was given.
5 kx if test "${enable_cassert+set}" = set; then :
5 kx enableval=$enable_cassert;
5 kx case $enableval in
5 kx yes)
5 kx
5 kx $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
5 kx
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx enable_cassert=no
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # Include directories
5 kx #
5 kx ac_save_IFS=$IFS
5 kx IFS="${IFS}${PATH_SEPARATOR}"
5 kx # SRCH_INC comes from the template file
5 kx for dir in $with_includes $SRCH_INC; do
5 kx if test -d "$dir"; then
5 kx INCLUDES="$INCLUDES -I$dir"
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
5 kx $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5 kx fi
5 kx done
5 kx IFS=$ac_save_IFS
5 kx
5 kx
5 kx
5 kx #
5 kx # Library directories
5 kx #
5 kx ac_save_IFS=$IFS
5 kx IFS="${IFS}${PATH_SEPARATOR}"
5 kx # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5 kx for dir in $LIBRARY_DIRS $SRCH_LIB; do
5 kx if test -d "$dir"; then
5 kx LIBDIRS="$LIBDIRS -L$dir"
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
5 kx $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5 kx fi
5 kx done
5 kx IFS=$ac_save_IFS
5 kx
5 kx #
5 kx # Enable thread-safe client libraries
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
5 kx $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5 kx
5 kx
5 kx # Check whether --enable-thread-safety was given.
5 kx if test "${enable_thread_safety+set}" = set; then :
5 kx enableval=$enable_thread_safety;
5 kx case $enableval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx enable_thread_safety=yes
5 kx
5 kx fi
5 kx
5 kx
5 kx if test "$enable_thread_safety" = yes; then
5 kx
5 kx $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
5 kx $as_echo "$enable_thread_safety" >&6; }
5 kx
5 kx
5 kx #
5 kx # ICU
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
5 kx $as_echo_n "checking whether to build with ICU support... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-icu was given.
5 kx if test "${with_icu+set}" = set; then :
5 kx withval=$with_icu;
5 kx case $withval in
5 kx yes)
5 kx
5 kx $as_echo "#define USE_ICU 1" >>confdefs.h
5 kx
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-icu option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_icu=no
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
5 kx $as_echo "$with_icu" >&6; }
5 kx
5 kx
5 kx if test "$with_icu" = yes; then
5 kx
5 kx pkg_failed=no
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
5 kx $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
5 kx
5 kx if test -n "$ICU_CFLAGS"; then
5 kx pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
5 kx elif test -n "$PKG_CONFIG"; then
5 kx if test -n "$PKG_CONFIG" && \
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
5 kx ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
5 kx test "x$?" != "x0" && pkg_failed=yes
5 kx else
5 kx pkg_failed=yes
5 kx fi
5 kx else
5 kx pkg_failed=untried
5 kx fi
5 kx if test -n "$ICU_LIBS"; then
5 kx pkg_cv_ICU_LIBS="$ICU_LIBS"
5 kx elif test -n "$PKG_CONFIG"; then
5 kx if test -n "$PKG_CONFIG" && \
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
5 kx ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
5 kx test "x$?" != "x0" && pkg_failed=yes
5 kx else
5 kx pkg_failed=yes
5 kx fi
5 kx else
5 kx pkg_failed=untried
5 kx fi
5 kx
5 kx
5 kx
5 kx if test $pkg_failed = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx
5 kx if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5 kx _pkg_short_errors_supported=yes
5 kx else
5 kx _pkg_short_errors_supported=no
5 kx fi
5 kx if test $_pkg_short_errors_supported = yes; then
5 kx ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
5 kx else
5 kx ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
5 kx fi
5 kx # Put the nasty error message in config.log where it belongs
5 kx echo "$ICU_PKG_ERRORS" >&5
5 kx
5 kx as_fn_error $? "Package requirements (icu-uc icu-i18n) were not met:
5 kx
5 kx $ICU_PKG_ERRORS
5 kx
5 kx Consider adjusting the PKG_CONFIG_PATH environment variable if you
5 kx installed software in a non-standard prefix.
5 kx
5 kx Alternatively, you may set the environment variables ICU_CFLAGS
5 kx and ICU_LIBS to avoid the need to call pkg-config.
5 kx See the pkg-config man page for more details." "$LINENO" 5
5 kx elif test $pkg_failed = untried; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5 kx is in your PATH or set the PKG_CONFIG environment variable to the full
5 kx path to pkg-config.
5 kx
5 kx Alternatively, you may set the environment variables ICU_CFLAGS
5 kx and ICU_LIBS to avoid the need to call pkg-config.
5 kx See the pkg-config man page for more details.
5 kx
5 kx To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
5 kx ICU_LIBS=$pkg_cv_ICU_LIBS
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx
5 kx fi
5 kx fi
5 kx
5 kx #
5 kx # Optionally build Tcl modules (PL/Tcl)
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
5 kx $as_echo_n "checking whether to build with Tcl... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-tcl was given.
5 kx if test "${with_tcl+set}" = set; then :
5 kx withval=$with_tcl;
5 kx case $withval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_tcl=no
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
5 kx $as_echo "$with_tcl" >&6; }
5 kx
5 kx
5 kx # We see if the path to the Tcl/Tk configuration scripts is specified.
5 kx # This will override the use of tclsh to find the paths to search.
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --with-tclconfig was given.
5 kx if test "${with_tclconfig+set}" = set; then :
5 kx withval=$with_tclconfig;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx #
5 kx # Optionally build Perl modules (PL/Perl)
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
5 kx $as_echo_n "checking whether to build Perl modules... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-perl was given.
5 kx if test "${with_perl+set}" = set; then :
5 kx withval=$with_perl;
5 kx case $withval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_perl=no
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
5 kx $as_echo "$with_perl" >&6; }
5 kx
5 kx
5 kx #
5 kx # Optionally build Python modules (PL/Python)
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
5 kx $as_echo_n "checking whether to build Python modules... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-python was given.
5 kx if test "${with_python+set}" = set; then :
5 kx withval=$with_python;
5 kx case $withval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_python=no
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
5 kx $as_echo "$with_python" >&6; }
5 kx
5 kx
5 kx #
5 kx # GSSAPI
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
5 kx $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-gssapi was given.
5 kx if test "${with_gssapi+set}" = set; then :
5 kx withval=$with_gssapi;
5 kx case $withval in
5 kx yes)
5 kx
5 kx
5 kx $as_echo "#define ENABLE_GSS 1" >>confdefs.h
5 kx
5 kx krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5 kx
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_gssapi=no
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
5 kx $as_echo "$with_gssapi" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # Kerberos configuration parameters
5 kx #
5 kx
5 kx
5 kx
5 kx # Check whether --with-krb-srvnam was given.
5 kx if test "${with_krb_srvnam+set}" = set; then :
5 kx withval=$with_krb_srvnam;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_krb_srvnam="postgres"
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PG_KRB_SRVNAM "$with_krb_srvnam"
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx #
5 kx # PAM
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
5 kx $as_echo_n "checking whether to build with PAM support... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-pam was given.
5 kx if test "${with_pam+set}" = set; then :
5 kx withval=$with_pam;
5 kx case $withval in
5 kx yes)
5 kx
5 kx $as_echo "#define USE_PAM 1" >>confdefs.h
5 kx
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_pam=no
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
5 kx $as_echo "$with_pam" >&6; }
5 kx
5 kx
5 kx #
5 kx # BSD AUTH
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
5 kx $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-bsd-auth was given.
5 kx if test "${with_bsd_auth+set}" = set; then :
5 kx withval=$with_bsd_auth;
5 kx case $withval in
5 kx yes)
5 kx
5 kx $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
5 kx
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-bsd-auth option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_bsd_auth=no
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
5 kx $as_echo "$with_bsd_auth" >&6; }
5 kx
5 kx
5 kx #
5 kx # LDAP
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
5 kx $as_echo_n "checking whether to build with LDAP support... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-ldap was given.
5 kx if test "${with_ldap+set}" = set; then :
5 kx withval=$with_ldap;
5 kx case $withval in
5 kx yes)
5 kx
5 kx $as_echo "#define USE_LDAP 1" >>confdefs.h
5 kx
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_ldap=no
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
5 kx $as_echo "$with_ldap" >&6; }
5 kx
5 kx
5 kx
5 kx #
5 kx # Bonjour
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
5 kx $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-bonjour was given.
5 kx if test "${with_bonjour+set}" = set; then :
5 kx withval=$with_bonjour;
5 kx case $withval in
5 kx yes)
5 kx
5 kx $as_echo "#define USE_BONJOUR 1" >>confdefs.h
5 kx
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_bonjour=no
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
5 kx $as_echo "$with_bonjour" >&6; }
5 kx
5 kx
5 kx #
5 kx # SELinux
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
5 kx $as_echo_n "checking whether to build with SELinux support... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-selinux was given.
5 kx if test "${with_selinux+set}" = set; then :
5 kx withval=$with_selinux;
5 kx case $withval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_selinux=no
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
5 kx $as_echo "$with_selinux" >&6; }
5 kx
5 kx #
5 kx # Systemd
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
5 kx $as_echo_n "checking whether to build with systemd support... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-systemd was given.
5 kx if test "${with_systemd+set}" = set; then :
5 kx withval=$with_systemd;
5 kx case $withval in
5 kx yes)
5 kx
5 kx $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
5 kx
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-systemd option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_systemd=no
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
5 kx $as_echo "$with_systemd" >&6; }
5 kx
5 kx #
5 kx # Readline
5 kx #
5 kx
5 kx
5 kx
5 kx # Check whether --with-readline was given.
5 kx if test "${with_readline+set}" = set; then :
5 kx withval=$with_readline;
5 kx case $withval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_readline=yes
5 kx
5 kx fi
5 kx
5 kx
5 kx # readline on MinGW has problems with backslashes in psql and other bugs.
5 kx # This is particularly a problem with non-US code pages.
5 kx # Therefore disable its use until we understand the cause. 2004-07-20
5 kx if test "$PORTNAME" = "win32"; then
5 kx if test "$with_readline" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5 kx $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5 kx with_readline=no
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx #
5 kx # Prefer libedit
5 kx #
5 kx
5 kx
5 kx
5 kx # Check whether --with-libedit-preferred was given.
5 kx if test "${with_libedit_preferred+set}" = set; then :
5 kx withval=$with_libedit_preferred;
5 kx case $withval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_libedit_preferred=no
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # UUID library
5 kx #
5 kx # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
5 kx # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
5 kx # UUID library. More than one of these might be present on a given platform,
5 kx # so we make the user say which one she wants.
5 kx #
5 kx
5 kx
5 kx
5 kx # Check whether --with-uuid was given.
5 kx if test "${with_uuid+set}" = set; then :
5 kx withval=$with_uuid;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx if test x"$with_uuid" = x"" ; then
5 kx with_uuid=no
5 kx fi
5 kx
5 kx
5 kx
5 kx # Check whether --with-ossp-uuid was given.
5 kx if test "${with_ossp_uuid+set}" = set; then :
5 kx withval=$with_ossp_uuid;
5 kx case $withval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_ossp_uuid=no
5 kx
5 kx fi
5 kx
5 kx
5 kx if test "$with_ossp_uuid" = yes ; then
5 kx with_uuid=ossp
5 kx fi
5 kx
5 kx if test "$with_uuid" != no ; then
5 kx if test "$with_uuid" = bsd ; then
5 kx
5 kx $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
5 kx
5 kx elif test "$with_uuid" = e2fs ; then
5 kx
5 kx $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
5 kx
5 kx elif test "$with_uuid" = ossp ; then
5 kx
5 kx $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
5 kx
5 kx else
5 kx as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx #
5 kx # XML
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with XML support" >&5
5 kx $as_echo_n "checking whether to build with XML support... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-libxml was given.
5 kx if test "${with_libxml+set}" = set; then :
5 kx withval=$with_libxml;
5 kx case $withval in
5 kx yes)
5 kx
5 kx $as_echo "#define USE_LIBXML 1" >>confdefs.h
5 kx
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_libxml=no
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libxml" >&5
5 kx $as_echo "$with_libxml" >&6; }
5 kx
5 kx
5 kx if test "$with_libxml" = yes ; then
5 kx # Check pkg-config, then xml2-config. But for backwards compatibility,
5 kx # setting XML2_CONFIG overrides pkg-config.
5 kx have_libxml2_pkg_config=no
5 kx if test -z "$XML2_CONFIG" -a -n "$PKG_CONFIG"; then
5 kx
5 kx pkg_failed=no
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.23" >&5
5 kx $as_echo_n "checking for libxml-2.0 >= 2.6.23... " >&6; }
5 kx
5 kx if test -n "$XML2_CFLAGS"; then
5 kx pkg_cv_XML2_CFLAGS="$XML2_CFLAGS"
5 kx elif test -n "$PKG_CONFIG"; then
5 kx if test -n "$PKG_CONFIG" && \
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
5 kx ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.23" 2>/dev/null`
5 kx test "x$?" != "x0" && pkg_failed=yes
5 kx else
5 kx pkg_failed=yes
5 kx fi
5 kx else
5 kx pkg_failed=untried
5 kx fi
5 kx if test -n "$XML2_LIBS"; then
5 kx pkg_cv_XML2_LIBS="$XML2_LIBS"
5 kx elif test -n "$PKG_CONFIG"; then
5 kx if test -n "$PKG_CONFIG" && \
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
5 kx ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.23" 2>/dev/null`
5 kx test "x$?" != "x0" && pkg_failed=yes
5 kx else
5 kx pkg_failed=yes
5 kx fi
5 kx else
5 kx pkg_failed=untried
5 kx fi
5 kx
5 kx
5 kx
5 kx if test $pkg_failed = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx
5 kx if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5 kx _pkg_short_errors_supported=yes
5 kx else
5 kx _pkg_short_errors_supported=no
5 kx fi
5 kx if test $_pkg_short_errors_supported = yes; then
5 kx XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
5 kx else
5 kx XML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
5 kx fi
5 kx # Put the nasty error message in config.log where it belongs
5 kx echo "$XML2_PKG_ERRORS" >&5
5 kx
5 kx # do nothing
5 kx elif test $pkg_failed = untried; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx # do nothing
5 kx else
5 kx XML2_CFLAGS=$pkg_cv_XML2_CFLAGS
5 kx XML2_LIBS=$pkg_cv_XML2_LIBS
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx have_libxml2_pkg_config=yes
5 kx fi
5 kx fi
5 kx if test "$have_libxml2_pkg_config" = no ; then
5 kx if test -z "$XML2_CONFIG"; then
5 kx for ac_prog in xml2-config
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_XML2_CONFIG+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $XML2_CONFIG in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx XML2_CONFIG=$ac_cv_path_XML2_CONFIG
5 kx if test -n "$XML2_CONFIG"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
5 kx $as_echo "$XML2_CONFIG" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$XML2_CONFIG" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of XML2_CONFIG in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
5 kx $as_echo_n "checking for XML2_CONFIG... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
5 kx $as_echo "$XML2_CONFIG" >&6; }
5 kx fi
5 kx
5 kx if test -n "$XML2_CONFIG"; then
5 kx XML2_CFLAGS=`$XML2_CONFIG --cflags`
5 kx XML2_LIBS=`$XML2_CONFIG --libs`
5 kx fi
5 kx fi
5 kx # Note the user could also set XML2_CFLAGS/XML2_LIBS directly
5 kx for pgac_option in $XML2_CFLAGS; do
5 kx case $pgac_option in
5 kx -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5 kx esac
5 kx done
5 kx for pgac_option in $XML2_LIBS; do
5 kx case $pgac_option in
5 kx -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5 kx esac
5 kx done
5 kx fi
5 kx
5 kx
5 kx #
5 kx # XSLT
5 kx #
5 kx
5 kx
5 kx
5 kx # Check whether --with-libxslt was given.
5 kx if test "${with_libxslt+set}" = set; then :
5 kx withval=$with_libxslt;
5 kx case $withval in
5 kx yes)
5 kx
5 kx $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
5 kx
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_libxslt=no
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # tzdata
5 kx #
5 kx
5 kx
5 kx
5 kx # Check whether --with-system-tzdata was given.
5 kx if test "${with_system_tzdata+set}" = set; then :
5 kx withval=$with_system_tzdata;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # Zlib
5 kx #
5 kx
5 kx
5 kx
5 kx # Check whether --with-zlib was given.
5 kx if test "${with_zlib+set}" = set; then :
5 kx withval=$with_zlib;
5 kx case $withval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_zlib=yes
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # LZ4
5 kx #
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LZ4 support" >&5
5 kx $as_echo_n "checking whether to build with LZ4 support... " >&6; }
5 kx
5 kx
5 kx
5 kx # Check whether --with-lz4 was given.
5 kx if test "${with_lz4+set}" = set; then :
5 kx withval=$with_lz4;
5 kx case $withval in
5 kx yes)
5 kx
5 kx $as_echo "#define USE_LZ4 1" >>confdefs.h
5 kx
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-lz4 option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_lz4=no
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lz4" >&5
5 kx $as_echo "$with_lz4" >&6; }
5 kx
5 kx
5 kx if test "$with_lz4" = yes; then
5 kx
5 kx pkg_failed=no
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblz4" >&5
5 kx $as_echo_n "checking for liblz4... " >&6; }
5 kx
5 kx if test -n "$LZ4_CFLAGS"; then
5 kx pkg_cv_LZ4_CFLAGS="$LZ4_CFLAGS"
5 kx elif test -n "$PKG_CONFIG"; then
5 kx if test -n "$PKG_CONFIG" && \
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
5 kx ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx pkg_cv_LZ4_CFLAGS=`$PKG_CONFIG --cflags "liblz4" 2>/dev/null`
5 kx test "x$?" != "x0" && pkg_failed=yes
5 kx else
5 kx pkg_failed=yes
5 kx fi
5 kx else
5 kx pkg_failed=untried
5 kx fi
5 kx if test -n "$LZ4_LIBS"; then
5 kx pkg_cv_LZ4_LIBS="$LZ4_LIBS"
5 kx elif test -n "$PKG_CONFIG"; then
5 kx if test -n "$PKG_CONFIG" && \
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
5 kx ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx pkg_cv_LZ4_LIBS=`$PKG_CONFIG --libs "liblz4" 2>/dev/null`
5 kx test "x$?" != "x0" && pkg_failed=yes
5 kx else
5 kx pkg_failed=yes
5 kx fi
5 kx else
5 kx pkg_failed=untried
5 kx fi
5 kx
5 kx
5 kx
5 kx if test $pkg_failed = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx
5 kx if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5 kx _pkg_short_errors_supported=yes
5 kx else
5 kx _pkg_short_errors_supported=no
5 kx fi
5 kx if test $_pkg_short_errors_supported = yes; then
5 kx LZ4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4" 2>&1`
5 kx else
5 kx LZ4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblz4" 2>&1`
5 kx fi
5 kx # Put the nasty error message in config.log where it belongs
5 kx echo "$LZ4_PKG_ERRORS" >&5
5 kx
5 kx as_fn_error $? "Package requirements (liblz4) were not met:
5 kx
5 kx $LZ4_PKG_ERRORS
5 kx
5 kx Consider adjusting the PKG_CONFIG_PATH environment variable if you
5 kx installed software in a non-standard prefix.
5 kx
5 kx Alternatively, you may set the environment variables LZ4_CFLAGS
5 kx and LZ4_LIBS to avoid the need to call pkg-config.
5 kx See the pkg-config man page for more details." "$LINENO" 5
5 kx elif test $pkg_failed = untried; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5 kx is in your PATH or set the PKG_CONFIG environment variable to the full
5 kx path to pkg-config.
5 kx
5 kx Alternatively, you may set the environment variables LZ4_CFLAGS
5 kx and LZ4_LIBS to avoid the need to call pkg-config.
5 kx See the pkg-config man page for more details.
5 kx
5 kx To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx LZ4_CFLAGS=$pkg_cv_LZ4_CFLAGS
5 kx LZ4_LIBS=$pkg_cv_LZ4_LIBS
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx
5 kx fi
5 kx # We only care about -I, -D, and -L switches;
5 kx # note that -llz4 will be added by AC_CHECK_LIB below.
5 kx for pgac_option in $LZ4_CFLAGS; do
5 kx case $pgac_option in
5 kx -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5 kx esac
5 kx done
5 kx for pgac_option in $LZ4_LIBS; do
5 kx case $pgac_option in
5 kx -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5 kx esac
5 kx done
5 kx fi
5 kx
5 kx #
5 kx # Assignments
5 kx #
5 kx
5 kx CPPFLAGS="$CPPFLAGS $INCLUDES"
5 kx LDFLAGS="$LDFLAGS $LIBDIRS"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --with-gnu-ld was given.
5 kx if test "${with_gnu_ld+set}" = set; then :
5 kx withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5 kx else
5 kx with_gnu_ld=no
5 kx fi
5 kx
5 kx ac_prog=ld
5 kx if test "$GCC" = yes; then
5 kx # Check if gcc -print-prog-name=ld gives a path.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5 kx $as_echo_n "checking for ld used by GCC... " >&6; }
5 kx case $host in
5 kx *-*-mingw*)
5 kx # gcc leaves a trailing carriage return which upsets mingw
5 kx ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5 kx *)
5 kx ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5 kx esac
5 kx case "$ac_prog" in
5 kx # Accept absolute paths.
5 kx [\\/]* | [A-Za-z]:[\\/]*)
5 kx re_direlt='/[^/][^/]*/\.\./'
5 kx # Canonicalize the path of ld
5 kx ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5 kx while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5 kx ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5 kx done
5 kx test -z "$LD" && LD="$ac_prog"
5 kx ;;
5 kx "")
5 kx # If it fails, then pretend we aren't using GCC.
5 kx ac_prog=ld
5 kx ;;
5 kx *)
5 kx # If it is relative, then search for the first ld in PATH.
5 kx with_gnu_ld=unknown
5 kx ;;
5 kx esac
5 kx elif test "$with_gnu_ld" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5 kx $as_echo_n "checking for GNU ld... " >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5 kx $as_echo_n "checking for non-GNU ld... " >&6; }
5 kx fi
5 kx if ${ac_cv_path_LD+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -z "$LD"; then
5 kx IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5 kx for ac_dir in $PATH; do
5 kx test -z "$ac_dir" && ac_dir=.
5 kx if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5 kx ac_cv_path_LD="$ac_dir/$ac_prog"
5 kx # Check to see if the program is GNU ld. I'd rather use --version,
5 kx # but apparently some GNU ld's only accept -v.
5 kx # Break only if it was the GNU/non-GNU ld that we prefer.
5 kx if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5 kx test "$with_gnu_ld" != no && break
5 kx else
5 kx test "$with_gnu_ld" != yes && break
5 kx fi
5 kx fi
5 kx done
5 kx IFS="$ac_save_ifs"
5 kx else
5 kx ac_cv_path_LD="$LD" # Let the user override the test with a path.
5 kx fi
5 kx fi
5 kx
5 kx LD="$ac_cv_path_LD"
5 kx if test -n "$LD"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5 kx $as_echo "$LD" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5 kx $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5 kx if ${ac_cv_prog_gnu_ld+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5 kx if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5 kx ac_cv_prog_gnu_ld=yes
5 kx else
5 kx ac_cv_prog_gnu_ld=no
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
5 kx $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5 kx with_gnu_ld=$ac_cv_prog_gnu_ld
5 kx
5 kx
5 kx
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_RANLIB+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$RANLIB"; then
5 kx ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx RANLIB=$ac_cv_prog_RANLIB
5 kx if test -n "$RANLIB"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5 kx $as_echo "$RANLIB" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_RANLIB"; then
5 kx ac_ct_RANLIB=$RANLIB
5 kx # Extract the first word of "ranlib", so it can be a program name with args.
5 kx set dummy ranlib; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_RANLIB"; then
5 kx ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_RANLIB="ranlib"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5 kx if test -n "$ac_ct_RANLIB"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5 kx $as_echo "$ac_ct_RANLIB" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_RANLIB" = x; then
5 kx RANLIB=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx RANLIB=$ac_ct_RANLIB
5 kx fi
5 kx else
5 kx RANLIB="$ac_cv_prog_RANLIB"
5 kx fi
5 kx
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}strip; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_STRIP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$STRIP"; then
5 kx ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx STRIP=$ac_cv_prog_STRIP
5 kx if test -n "$STRIP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5 kx $as_echo "$STRIP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_STRIP"; then
5 kx ac_ct_STRIP=$STRIP
5 kx # Extract the first word of "strip", so it can be a program name with args.
5 kx set dummy strip; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_STRIP"; then
5 kx ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_STRIP="strip"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5 kx if test -n "$ac_ct_STRIP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5 kx $as_echo "$ac_ct_STRIP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_STRIP" = x; then
5 kx STRIP=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx STRIP=$ac_ct_STRIP
5 kx fi
5 kx else
5 kx STRIP="$ac_cv_prog_STRIP"
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
5 kx $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
5 kx if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
5 kx STRIP_STATIC_LIB="$STRIP -x"
5 kx STRIP_SHARED_LIB="$STRIP --strip-unneeded"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx else
5 kx case $host_os in
5 kx darwin*)
5 kx STRIP="$STRIP -x"
5 kx STRIP_STATIC_LIB=$STRIP
5 kx STRIP_SHARED_LIB=$STRIP
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx ;;
5 kx *)
5 kx STRIP_STATIC_LIB=:
5 kx STRIP_SHARED_LIB=:
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}ar; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_AR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$AR"; then
5 kx ac_cv_prog_AR="$AR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_AR="${ac_tool_prefix}ar"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx AR=$ac_cv_prog_AR
5 kx if test -n "$AR"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5 kx $as_echo "$AR" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_AR"; then
5 kx ac_ct_AR=$AR
5 kx # Extract the first word of "ar", so it can be a program name with args.
5 kx set dummy ar; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_AR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_AR"; then
5 kx ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_AR="ar"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_AR=$ac_cv_prog_ac_ct_AR
5 kx if test -n "$ac_ct_AR"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5 kx $as_echo "$ac_ct_AR" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_AR" = x; then
5 kx AR="ar"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx AR=$ac_ct_AR
5 kx fi
5 kx else
5 kx AR="$ac_cv_prog_AR"
5 kx fi
5 kx
5 kx if test "$PORTNAME" = "win32"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_DLLTOOL+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$DLLTOOL"; then
5 kx ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx DLLTOOL=$ac_cv_prog_DLLTOOL
5 kx if test -n "$DLLTOOL"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5 kx $as_echo "$DLLTOOL" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_DLLTOOL"; then
5 kx ac_ct_DLLTOOL=$DLLTOOL
5 kx # Extract the first word of "dlltool", so it can be a program name with args.
5 kx set dummy dlltool; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_DLLTOOL"; then
5 kx ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5 kx if test -n "$ac_ct_DLLTOOL"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5 kx $as_echo "$ac_ct_DLLTOOL" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_DLLTOOL" = x; then
5 kx DLLTOOL="dlltool"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx DLLTOOL=$ac_ct_DLLTOOL
5 kx fi
5 kx else
5 kx DLLTOOL="$ac_cv_prog_DLLTOOL"
5 kx fi
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_DLLWRAP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$DLLWRAP"; then
5 kx ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx DLLWRAP=$ac_cv_prog_DLLWRAP
5 kx if test -n "$DLLWRAP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
5 kx $as_echo "$DLLWRAP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_DLLWRAP"; then
5 kx ac_ct_DLLWRAP=$DLLWRAP
5 kx # Extract the first word of "dllwrap", so it can be a program name with args.
5 kx set dummy dllwrap; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_DLLWRAP"; then
5 kx ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
5 kx if test -n "$ac_ct_DLLWRAP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
5 kx $as_echo "$ac_ct_DLLWRAP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_DLLWRAP" = x; then
5 kx DLLWRAP="dllwrap"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx DLLWRAP=$ac_ct_DLLWRAP
5 kx fi
5 kx else
5 kx DLLWRAP="$ac_cv_prog_DLLWRAP"
5 kx fi
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}windres; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_WINDRES+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$WINDRES"; then
5 kx ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx WINDRES=$ac_cv_prog_WINDRES
5 kx if test -n "$WINDRES"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
5 kx $as_echo "$WINDRES" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_WINDRES"; then
5 kx ac_ct_WINDRES=$WINDRES
5 kx # Extract the first word of "windres", so it can be a program name with args.
5 kx set dummy windres; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_WINDRES"; then
5 kx ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_WINDRES="windres"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5 kx if test -n "$ac_ct_WINDRES"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
5 kx $as_echo "$ac_ct_WINDRES" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_WINDRES" = x; then
5 kx WINDRES="windres"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx WINDRES=$ac_ct_WINDRES
5 kx fi
5 kx else
5 kx WINDRES="$ac_cv_prog_WINDRES"
5 kx fi
5 kx
5 kx fi
5 kx
5 kx # Find a good install program. We prefer a C program (faster),
5 kx # so one script is as good as another. But avoid the broken or
5 kx # incompatible versions:
5 kx # SysV /etc/install, /usr/sbin/install
5 kx # SunOS /usr/etc/install
5 kx # IRIX /sbin/install
5 kx # AIX /bin/install
5 kx # AmigaOS /C/install, which installs bootblocks on floppy discs
5 kx # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5 kx # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5 kx # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5 kx # OS/2's system install, which has a completely different semantic
5 kx # ./install, which can be erroneously created by make from ./install.sh.
5 kx # Reject install programs that cannot install multiple files.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5 kx $as_echo_n "checking for a BSD-compatible install... " >&6; }
5 kx if test -z "$INSTALL"; then
5 kx if ${ac_cv_path_install+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx # Account for people who put trailing slashes in PATH elements.
5 kx case $as_dir/ in #((
5 kx ./ | .// | /[cC]/* | \
5 kx /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5 kx ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5 kx /usr/ucb/* ) ;;
5 kx *)
5 kx # OSF1 and SCO ODT 3.0 have their own names for install.
5 kx # Don't use installbsd from OSF since it installs stuff as root
5 kx # by default.
5 kx for ac_prog in ginstall scoinst install; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5 kx if test $ac_prog = install &&
5 kx grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5 kx # AIX install. It has an incompatible calling convention.
5 kx :
5 kx elif test $ac_prog = install &&
5 kx grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5 kx # program-specific install script used by HP pwplus--don't use.
5 kx :
5 kx else
5 kx rm -rf conftest.one conftest.two conftest.dir
5 kx echo one > conftest.one
5 kx echo two > conftest.two
5 kx mkdir conftest.dir
5 kx if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5 kx test -s conftest.one && test -s conftest.two &&
5 kx test -s conftest.dir/conftest.one &&
5 kx test -s conftest.dir/conftest.two
5 kx then
5 kx ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5 kx break 3
5 kx fi
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx ;;
5 kx esac
5 kx
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx rm -rf conftest.one conftest.two conftest.dir
5 kx
5 kx fi
5 kx if test "${ac_cv_path_install+set}" = set; then
5 kx INSTALL=$ac_cv_path_install
5 kx else
5 kx # As a last resort, use the slow shell script. Don't cache a
5 kx # value for INSTALL within a source directory, because that will
5 kx # break other packages using the cache if that directory is
5 kx # removed, or if the value is a relative name.
5 kx INSTALL=$ac_install_sh
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5 kx $as_echo "$INSTALL" >&6; }
5 kx
5 kx # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5 kx # It thinks the first close brace ends the variable substitution.
5 kx test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5 kx
5 kx test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5 kx
5 kx test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5 kx
5 kx # When Autoconf chooses install-sh as install program it tries to generate
5 kx # a relative path to it in each makefile where it substitutes it. This clashes
5 kx # with our Makefile.global concept. This workaround helps.
5 kx case $INSTALL in
5 kx *install-sh*) install_bin='';;
5 kx *) install_bin=$INSTALL;;
5 kx esac
5 kx
5 kx
5 kx if test -z "$TAR"; then
5 kx for ac_prog in tar
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_TAR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $TAR in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx TAR=$ac_cv_path_TAR
5 kx if test -n "$TAR"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
5 kx $as_echo "$TAR" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$TAR" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of TAR in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
5 kx $as_echo_n "checking for TAR... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
5 kx $as_echo "$TAR" >&6; }
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5 kx $as_echo_n "checking whether ln -s works... " >&6; }
5 kx LN_S=$as_ln_s
5 kx if test "$LN_S" = "ln -s"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5 kx $as_echo "no, using $LN_S" >&6; }
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5 kx $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5 kx if test -z "$MKDIR_P"; then
5 kx if ${ac_cv_path_mkdir+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in mkdir gmkdir; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5 kx case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5 kx 'mkdir (GNU coreutils) '* | \
5 kx 'mkdir (coreutils) '* | \
5 kx 'mkdir (fileutils) '4.1*)
5 kx ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5 kx break 3;;
5 kx esac
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx
5 kx test -d ./--version && rmdir ./--version
5 kx if test "${ac_cv_path_mkdir+set}" = set; then
5 kx MKDIR_P="$ac_cv_path_mkdir -p"
5 kx else
5 kx # As a last resort, use the slow shell script. Don't cache a
5 kx # value for MKDIR_P within a source directory, because that will
5 kx # break other packages using the cache if that directory is
5 kx # removed, or if the value is a relative name.
5 kx MKDIR_P="$ac_install_sh -d"
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5 kx $as_echo "$MKDIR_P" >&6; }
5 kx
5 kx # When Autoconf chooses install-sh as mkdir -p program it tries to generate
5 kx # a relative path to it in each makefile where it substitutes it. This clashes
5 kx # with our Makefile.global concept. This workaround helps.
5 kx case $MKDIR_P in
5 kx *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
5 kx esac
5 kx
5 kx if test -z "$BISON"; then
5 kx for ac_prog in bison
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_BISON+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $BISON in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx BISON=$ac_cv_path_BISON
5 kx if test -n "$BISON"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5 kx $as_echo "$BISON" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$BISON" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of BISON in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
5 kx $as_echo_n "checking for BISON... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5 kx $as_echo "$BISON" >&6; }
5 kx fi
5 kx
5 kx
5 kx if test "$BISON"; then
5 kx pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
5 kx $as_echo "$as_me: using $pgac_bison_version" >&6;}
5 kx if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
5 kx then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5 kx *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
5 kx *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
5 kx $as_echo "$as_me: WARNING:
5 kx *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
5 kx *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
5 kx BISON=""
5 kx fi
5 kx # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
5 kx # of the now preferred %name-prefix "base_yy", but the latter
5 kx # doesn't work with Bison 2.3 or less. So for now we silence the
5 kx # deprecation warnings.
5 kx if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
5 kx then
5 kx BISONFLAGS="$BISONFLAGS -Wno-deprecated"
5 kx fi
5 kx fi
5 kx
5 kx if test -z "$BISON"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5 kx *** Without Bison you will not be able to build PostgreSQL from Git nor
5 kx *** change any of the parser definition files. You can obtain Bison from
5 kx *** a GNU mirror site. (If you are using the official distribution of
5 kx *** PostgreSQL then you do not need to worry about this, because the Bison
5 kx *** output is pre-generated.)" >&5
5 kx $as_echo "$as_me: WARNING:
5 kx *** Without Bison you will not be able to build PostgreSQL from Git nor
5 kx *** change any of the parser definition files. You can obtain Bison from
5 kx *** a GNU mirror site. (If you are using the official distribution of
5 kx *** PostgreSQL then you do not need to worry about this, because the Bison
5 kx *** output is pre-generated.)" >&2;}
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
5 kx $as_echo_n "checking for flex... " >&6; }
5 kx if ${pgac_cv_path_flex+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx # Let the user override the test
5 kx if test -n "$FLEX"; then
5 kx pgac_cv_path_flex=$FLEX
5 kx else
5 kx pgac_save_IFS=$IFS
5 kx IFS=$PATH_SEPARATOR
5 kx for pgac_dir in $PATH; do
5 kx IFS=$pgac_save_IFS
5 kx if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
5 kx pgac_dir=`pwd`
5 kx fi
5 kx for pgac_prog in flex lex; do
5 kx pgac_candidate="$pgac_dir/$pgac_prog"
5 kx if test -f "$pgac_candidate" \
5 kx && $pgac_candidate --version </dev/null >/dev/null 2>&1
5 kx then
5 kx echo '%%' > conftest.l
5 kx if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
5 kx pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
5 kx if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 == 2 && ($2 > 5 || ($2 == 5 && $3 >= 31))) exit 0; else exit 1;}'
5 kx then
5 kx pgac_cv_path_flex=$pgac_candidate
5 kx break 2
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5 kx *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
5 kx *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
5 kx $as_echo "$as_me: WARNING:
5 kx *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
5 kx *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
5 kx fi
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx rm -f conftest.l lex.yy.c
5 kx : ${pgac_cv_path_flex=no}
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
5 kx $as_echo "$pgac_cv_path_flex" >&6; }
5 kx if test x"$pgac_cv_path_flex" = x"no"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5 kx *** Without Flex you will not be able to build PostgreSQL from Git nor
5 kx *** change any of the scanner definition files. You can obtain Flex from
5 kx *** a GNU mirror site. (If you are using the official distribution of
5 kx *** PostgreSQL then you do not need to worry about this because the Flex
5 kx *** output is pre-generated.)" >&5
5 kx $as_echo "$as_me: WARNING:
5 kx *** Without Flex you will not be able to build PostgreSQL from Git nor
5 kx *** change any of the scanner definition files. You can obtain Flex from
5 kx *** a GNU mirror site. (If you are using the official distribution of
5 kx *** PostgreSQL then you do not need to worry about this because the Flex
5 kx *** output is pre-generated.)" >&2;}
5 kx
5 kx FLEX=
5 kx else
5 kx FLEX=$pgac_cv_path_flex
5 kx pgac_flex_version=`$FLEX --version 2>/dev/null`
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
5 kx $as_echo "$as_me: using $pgac_flex_version" >&6;}
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
5 kx if test -z "$ZIC"; then
5 kx for ac_prog in zic
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_ZIC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $ZIC in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx ZIC=$ac_cv_path_ZIC
5 kx if test -n "$ZIC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
5 kx $as_echo "$ZIC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ZIC" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of ZIC in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIC" >&5
5 kx $as_echo_n "checking for ZIC... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
5 kx $as_echo "$ZIC" >&6; }
5 kx fi
5 kx
5 kx if test -z "$ZIC"; then
5 kx as_fn_error $? "
5 kx When cross-compiling, either use the option --with-system-tzdata to use
5 kx existing time-zone data, or set the environment variable ZIC to a zic
5 kx program to use during the build." "$LINENO" 5
5 kx fi
5 kx fi
5 kx
5 kx #
5 kx # Pthreads
5 kx #
5 kx # For each platform, we need to know about any special compile and link
5 kx # libraries, and whether the normal C function names are thread-safe.
5 kx # See the comment at the top of src/port/thread.c for more information.
5 kx # WIN32 doesn't need the pthread tests; it always uses threads
5 kx #
5 kx # These tests are run before the library-tests, because linking with the
5 kx # other libraries can pull in the pthread functions as a side-effect. We
5 kx # want to use the -pthread or similar flags directly, and not rely on
5 kx # the side-effects of linking with some other library.
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5 kx $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5 kx if ${ac_cv_path_SED+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5 kx for ac_i in 1 2 3 4 5 6 7; do
5 kx ac_script="$ac_script$as_nl$ac_script"
5 kx done
5 kx echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5 kx { ac_script=; unset ac_script;}
5 kx if test -z "$SED"; then
5 kx ac_path_SED_found=false
5 kx # Loop through the user's path and test for each of PROGNAME-LIST
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in sed gsed; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5 kx as_fn_executable_p "$ac_path_SED" || continue
5 kx # Check for GNU ac_path_SED and select it if it is found.
5 kx # Check for GNU $ac_path_SED
5 kx case `"$ac_path_SED" --version 2>&1` in
5 kx *GNU*)
5 kx ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5 kx *)
5 kx ac_count=0
5 kx $as_echo_n 0123456789 >"conftest.in"
5 kx while :
5 kx do
5 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
5 kx mv "conftest.tmp" "conftest.in"
5 kx cp "conftest.in" "conftest.nl"
5 kx $as_echo '' >> "conftest.nl"
5 kx "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
5 kx if test $ac_count -gt ${ac_path_SED_max-0}; then
5 kx # Best one so far, save it but keep looking for a better one
5 kx ac_cv_path_SED="$ac_path_SED"
5 kx ac_path_SED_max=$ac_count
5 kx fi
5 kx # 10*(2^10) chars as input seems more than enough
5 kx test $ac_count -gt 10 && break
5 kx done
5 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5 kx esac
5 kx
5 kx $ac_path_SED_found && break 3
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx if test -z "$ac_cv_path_SED"; then
5 kx as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5 kx fi
5 kx else
5 kx ac_cv_path_SED=$SED
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5 kx $as_echo "$ac_cv_path_SED" >&6; }
5 kx SED="$ac_cv_path_SED"
5 kx rm -f conftest.sed
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5 kx $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5 kx if ${ac_cv_path_GREP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -z "$GREP"; then
5 kx ac_path_GREP_found=false
5 kx # Loop through the user's path and test for each of PROGNAME-LIST
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in grep ggrep; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5 kx as_fn_executable_p "$ac_path_GREP" || continue
5 kx # Check for GNU ac_path_GREP and select it if it is found.
5 kx # Check for GNU $ac_path_GREP
5 kx case `"$ac_path_GREP" --version 2>&1` in
5 kx *GNU*)
5 kx ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5 kx *)
5 kx ac_count=0
5 kx $as_echo_n 0123456789 >"conftest.in"
5 kx while :
5 kx do
5 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
5 kx mv "conftest.tmp" "conftest.in"
5 kx cp "conftest.in" "conftest.nl"
5 kx $as_echo 'GREP' >> "conftest.nl"
5 kx "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
5 kx if test $ac_count -gt ${ac_path_GREP_max-0}; then
5 kx # Best one so far, save it but keep looking for a better one
5 kx ac_cv_path_GREP="$ac_path_GREP"
5 kx ac_path_GREP_max=$ac_count
5 kx fi
5 kx # 10*(2^10) chars as input seems more than enough
5 kx test $ac_count -gt 10 && break
5 kx done
5 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5 kx esac
5 kx
5 kx $ac_path_GREP_found && break 3
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx if test -z "$ac_cv_path_GREP"; then
5 kx as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5 kx fi
5 kx else
5 kx ac_cv_path_GREP=$GREP
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5 kx $as_echo "$ac_cv_path_GREP" >&6; }
5 kx GREP="$ac_cv_path_GREP"
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5 kx $as_echo_n "checking for egrep... " >&6; }
5 kx if ${ac_cv_path_EGREP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5 kx then ac_cv_path_EGREP="$GREP -E"
5 kx else
5 kx if test -z "$EGREP"; then
5 kx ac_path_EGREP_found=false
5 kx # Loop through the user's path and test for each of PROGNAME-LIST
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in egrep; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5 kx as_fn_executable_p "$ac_path_EGREP" || continue
5 kx # Check for GNU ac_path_EGREP and select it if it is found.
5 kx # Check for GNU $ac_path_EGREP
5 kx case `"$ac_path_EGREP" --version 2>&1` in
5 kx *GNU*)
5 kx ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5 kx *)
5 kx ac_count=0
5 kx $as_echo_n 0123456789 >"conftest.in"
5 kx while :
5 kx do
5 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
5 kx mv "conftest.tmp" "conftest.in"
5 kx cp "conftest.in" "conftest.nl"
5 kx $as_echo 'EGREP' >> "conftest.nl"
5 kx "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
5 kx if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5 kx # Best one so far, save it but keep looking for a better one
5 kx ac_cv_path_EGREP="$ac_path_EGREP"
5 kx ac_path_EGREP_max=$ac_count
5 kx fi
5 kx # 10*(2^10) chars as input seems more than enough
5 kx test $ac_count -gt 10 && break
5 kx done
5 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5 kx esac
5 kx
5 kx $ac_path_EGREP_found && break 3
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx if test -z "$ac_cv_path_EGREP"; then
5 kx as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5 kx fi
5 kx else
5 kx ac_cv_path_EGREP=$EGREP
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5 kx $as_echo "$ac_cv_path_EGREP" >&6; }
5 kx EGREP="$ac_cv_path_EGREP"
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5 kx $as_echo_n "checking for ANSI C header files... " >&6; }
5 kx if ${ac_cv_header_stdc+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx #include <stdarg.h>
5 kx #include <string.h>
5 kx #include <float.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_header_stdc=yes
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "memchr" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "free" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5 kx if test "$cross_compiling" = yes; then :
5 kx :
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ctype.h>
5 kx #include <stdlib.h>
5 kx #if ((' ' & 0x0FF) == 0x020)
5 kx # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5 kx # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5 kx #else
5 kx # define ISLOWER(c) \
5 kx (('a' <= (c) && (c) <= 'i') \
5 kx || ('j' <= (c) && (c) <= 'r') \
5 kx || ('s' <= (c) && (c) <= 'z'))
5 kx # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5 kx #endif
5 kx
5 kx #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5 kx int
5 kx main ()
5 kx {
5 kx int i;
5 kx for (i = 0; i < 256; i++)
5 kx if (XOR (islower (i), ISLOWER (i))
5 kx || toupper (i) != TOUPPER (i))
5 kx return 2;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5 kx $as_echo "$ac_cv_header_stdc" >&6; }
5 kx if test $ac_cv_header_stdc = yes; then
5 kx
5 kx $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5 kx for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5 kx inttypes.h stdint.h unistd.h
5 kx do :
5 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5 kx ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5 kx "
5 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
5 kx # then
5 kx
5 kx
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ax_pthread_ok=no
5 kx
5 kx # We used to check for pthread.h first, but this fails if pthread.h
5 kx # requires special compiler flags (e.g. on Tru64 or Sequent).
5 kx # It gets checked for in the link test anyway.
5 kx
5 kx # First of all, check if the user has set any of the PTHREAD_LIBS,
5 kx # etcetera environment variables, and if threads linking works using
5 kx # them:
5 kx if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
5 kx ax_pthread_save_CC="$CC"
5 kx ax_pthread_save_CFLAGS="$CFLAGS"
5 kx ax_pthread_save_LIBS="$LIBS"
5 kx if test "x$PTHREAD_CC" != "x"; then :
5 kx CC="$PTHREAD_CC"
5 kx fi
5 kx CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5 kx LIBS="$PTHREAD_LIBS $LIBS"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
5 kx $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char pthread_join ();
5 kx int
5 kx main ()
5 kx {
5 kx return pthread_join ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ax_pthread_ok=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5 kx $as_echo "$ax_pthread_ok" >&6; }
5 kx if test "x$ax_pthread_ok" = "xno"; then
5 kx PTHREAD_LIBS=""
5 kx PTHREAD_CFLAGS=""
5 kx fi
5 kx CC="$ax_pthread_save_CC"
5 kx CFLAGS="$ax_pthread_save_CFLAGS"
5 kx LIBS="$ax_pthread_save_LIBS"
5 kx fi
5 kx
5 kx # We must check for the threads library under a number of different
5 kx # names; the ordering is very important because some systems
5 kx # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
5 kx # libraries is broken (non-POSIX).
5 kx
5 kx # Create a list of thread flags to try. Items starting with a "-" are
5 kx # C compiler flags, and other items are library names, except for "none"
5 kx # which indicates that we try without any flags at all, and "pthread-config"
5 kx # which is a program returning the flags for the Pth emulation library.
5 kx
5 kx ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5 kx
5 kx # The ordering *is* (sometimes) important. Some notes on the
5 kx # individual items follow:
5 kx
5 kx # pthreads: AIX (must check this before -lpthread)
5 kx # none: in case threads are in libc; should be tried before -Kthread and
5 kx # other compiler flags to prevent continual compiler warnings
5 kx # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5 kx # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
5 kx # (Note: HP C rejects this with "bad form for `-t' option")
5 kx # -pthreads: Solaris/gcc (Note: HP C also rejects)
5 kx # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5 kx # doesn't hurt to check since this sometimes defines pthreads and
5 kx # -D_REENTRANT too), HP C (must be checked before -lpthread, which
5 kx # is present but should not be used directly; and before -mthreads,
5 kx # because the compiler interprets this as "-mt" + "-hreads")
5 kx # -mthreads: Mingw32/gcc, Lynx/gcc
5 kx # pthread: Linux, etcetera
5 kx # --thread-safe: KAI C++
5 kx # pthread-config: use pthread-config program (for GNU Pth library)
5 kx
5 kx case $host_os in
5 kx
5 kx freebsd*)
5 kx
5 kx # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5 kx # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5 kx
5 kx ax_pthread_flags="-kthread lthread $ax_pthread_flags"
5 kx ;;
5 kx
5 kx hpux*)
5 kx
5 kx # From the cc(1) man page: "[-mt] Sets various -D flags to enable
5 kx # multi-threading and also sets -lpthread."
5 kx
5 kx ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
5 kx ;;
5 kx
5 kx openedition*)
5 kx
5 kx # IBM z/OS requires a feature-test macro to be defined in order to
5 kx # enable POSIX threads at all, so give the user a hint if this is
5 kx # not set. (We don't define these ourselves, as they can affect
5 kx # other portions of the system API in unpredictable ways.)
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
5 kx AX_PTHREAD_ZOS_MISSING
5 kx # endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
5 kx $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx ;;
5 kx
5 kx solaris*)
5 kx
5 kx # On Solaris (at least, for some versions), libc contains stubbed
5 kx # (non-functional) versions of the pthreads routines, so link-based
5 kx # tests will erroneously succeed. (N.B.: The stubs are missing
5 kx # pthread_cleanup_push, or rather a function called by this macro,
5 kx # so we could check for that, but who knows whether they'll stub
5 kx # that too in a future libc.) So we'll check first for the
5 kx # standard Solaris way of linking pthreads (-mt -lpthread).
5 kx
5 kx ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
5 kx ;;
5 kx esac
5 kx
5 kx # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
5 kx
5 kx if test "x$GCC" = "xyes"; then :
5 kx ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
5 kx fi
5 kx
5 kx # The presence of a feature test macro requesting re-entrant function
5 kx # definitions is, on some systems, a strong hint that pthreads support is
5 kx # correctly enabled
5 kx
5 kx case $host_os in
5 kx darwin* | hpux* | linux* | osf* | solaris*)
5 kx ax_pthread_check_macro="_REENTRANT"
5 kx ;;
5 kx
5 kx aix*)
5 kx ax_pthread_check_macro="_THREAD_SAFE"
5 kx ;;
5 kx
5 kx *)
5 kx ax_pthread_check_macro="--"
5 kx ;;
5 kx esac
5 kx if test "x$ax_pthread_check_macro" = "x--"; then :
5 kx ax_pthread_check_cond=0
5 kx else
5 kx ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
5 kx fi
5 kx
5 kx # Are we compiling with Clang?
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
5 kx $as_echo_n "checking whether $CC is Clang... " >&6; }
5 kx if ${ax_cv_PTHREAD_CLANG+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ax_cv_PTHREAD_CLANG=no
5 kx # Note that Autoconf sets GCC=yes for Clang as well as GCC
5 kx if test "x$GCC" = "xyes"; then
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
5 kx # if defined(__clang__) && defined(__llvm__)
5 kx AX_PTHREAD_CC_IS_CLANG
5 kx # endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
5 kx ax_cv_PTHREAD_CLANG=yes
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
5 kx $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
5 kx ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
5 kx
5 kx ax_pthread_clang_warning=no
5 kx
5 kx # Clang needs special handling, because older versions handle the -pthread
5 kx # option in a rather... idiosyncratic way
5 kx
5 kx if test "x$ax_pthread_clang" = "xyes"; then
5 kx
5 kx # Clang takes -pthread; it has never supported any other flag
5 kx
5 kx # (Note 1: This will need to be revisited if a system that Clang
5 kx # supports has POSIX threads in a separate library. This tends not
5 kx # to be the way of modern systems, but it's conceivable.)
5 kx
5 kx # (Note 2: On some systems, notably Darwin, -pthread is not needed
5 kx # to get POSIX threads support; the API is always present and
5 kx # active. We could reasonably leave PTHREAD_CFLAGS empty. But
5 kx # -pthread does define _REENTRANT, and while the Darwin headers
5 kx # ignore this macro, third-party headers might not.)
5 kx
5 kx PTHREAD_CFLAGS="-pthread"
5 kx PTHREAD_LIBS=
5 kx
5 kx ax_pthread_ok=yes
5 kx
5 kx # However, older versions of Clang make a point of warning the user
5 kx # that, in an invocation where only linking and no compilation is
5 kx # taking place, the -pthread option has no effect ("argument unused
5 kx # during compilation"). They expect -pthread to be passed in only
5 kx # when source code is being compiled.
5 kx #
5 kx # Problem is, this is at odds with the way Automake and most other
5 kx # C build frameworks function, which is that the same flags used in
5 kx # compilation (CFLAGS) are also used in linking. Many systems
5 kx # supported by AX_PTHREAD require exactly this for POSIX threads
5 kx # support, and in fact it is often not straightforward to specify a
5 kx # flag that is used only in the compilation phase and not in
5 kx # linking. Such a scenario is extremely rare in practice.
5 kx #
5 kx # Even though use of the -pthread flag in linking would only print
5 kx # a warning, this can be a nuisance for well-run software projects
5 kx # that build with -Werror. So if the active version of Clang has
5 kx # this misfeature, we search for an option to squash it.
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
5 kx $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
5 kx if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
5 kx # Create an alternate version of $ac_link that compiles and
5 kx # links in two steps (.c -> .o, .o -> exe) instead of one
5 kx # (.c -> exe), because the warning occurs only in the second
5 kx # step
5 kx ax_pthread_save_ac_link="$ac_link"
5 kx ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
5 kx ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
5 kx ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
5 kx ax_pthread_save_CFLAGS="$CFLAGS"
5 kx for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
5 kx if test "x$ax_pthread_try" = "xunknown"; then :
5 kx break
5 kx fi
5 kx CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
5 kx ac_link="$ax_pthread_save_ac_link"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx int main(void){return 0;}
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_link="$ax_pthread_2step_ac_link"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx int main(void){return 0;}
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx done
5 kx ac_link="$ax_pthread_save_ac_link"
5 kx CFLAGS="$ax_pthread_save_CFLAGS"
5 kx if test "x$ax_pthread_try" = "x"; then :
5 kx ax_pthread_try=no
5 kx fi
5 kx ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
5 kx $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
5 kx
5 kx case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
5 kx no | unknown) ;;
5 kx *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
5 kx esac
5 kx
5 kx fi # $ax_pthread_clang = yes
5 kx
5 kx if test "x$ax_pthread_ok" = "xno"; then
5 kx for ax_pthread_try_flag in $ax_pthread_flags; do
5 kx
5 kx case $ax_pthread_try_flag in
5 kx none)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5 kx $as_echo_n "checking whether pthreads work without any flags... " >&6; }
5 kx ;;
5 kx
5 kx -mt,pthread)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
5 kx $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
5 kx PTHREAD_CFLAGS="-mt"
5 kx PTHREAD_LIBS="-lpthread"
5 kx ;;
5 kx
5 kx -*)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
5 kx $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
5 kx PTHREAD_CFLAGS="$ax_pthread_try_flag"
5 kx ;;
5 kx
5 kx pthread-config)
5 kx # Extract the first word of "pthread-config", so it can be a program name with args.
5 kx set dummy pthread-config; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ax_pthread_config+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ax_pthread_config"; then
5 kx ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ax_pthread_config="yes"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
5 kx fi
5 kx fi
5 kx ax_pthread_config=$ac_cv_prog_ax_pthread_config
5 kx if test -n "$ax_pthread_config"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
5 kx $as_echo "$ax_pthread_config" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx if test "x$ax_pthread_config" = "xno"; then :
5 kx continue
5 kx fi
5 kx PTHREAD_CFLAGS="`pthread-config --cflags`"
5 kx PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5 kx ;;
5 kx
5 kx *)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
5 kx $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
5 kx PTHREAD_LIBS="-l$ax_pthread_try_flag"
5 kx ;;
5 kx esac
5 kx
5 kx ax_pthread_save_CFLAGS="$CFLAGS"
5 kx ax_pthread_save_LIBS="$LIBS"
5 kx CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5 kx LIBS="$PTHREAD_LIBS $LIBS"
5 kx
5 kx # Check for various functions. We must include pthread.h,
5 kx # since some functions may be macros. (On the Sequent, we
5 kx # need a special flag -Kthread to make this header compile.)
5 kx # We check for pthread_join because it is in -lpthread on IRIX
5 kx # while pthread_create is in libc. We check for pthread_attr_init
5 kx # due to DEC craziness with -lpthreads. We check for
5 kx # pthread_cleanup_push because it is one of the few pthread
5 kx # functions on Solaris that doesn't have a non-functional libc stub.
5 kx # We try pthread_create on general principles.
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx # if $ax_pthread_check_cond
5 kx # error "$ax_pthread_check_macro must be defined"
5 kx # endif
5 kx static void routine(void *a) { a = 0; }
5 kx static void *start_routine(void *a) { return a; }
5 kx int
5 kx main ()
5 kx {
5 kx pthread_t th; pthread_attr_t attr;
5 kx pthread_create(&th, 0, start_routine, 0);
5 kx pthread_join(th, 0);
5 kx pthread_attr_init(&attr);
5 kx pthread_cleanup_push(routine, 0);
5 kx pthread_cleanup_pop(0) /* ; */
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ax_pthread_ok=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx
5 kx CFLAGS="$ax_pthread_save_CFLAGS"
5 kx LIBS="$ax_pthread_save_LIBS"
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5 kx $as_echo "$ax_pthread_ok" >&6; }
5 kx if test "x$ax_pthread_ok" = "xyes"; then :
5 kx break
5 kx fi
5 kx
5 kx PTHREAD_LIBS=""
5 kx PTHREAD_CFLAGS=""
5 kx done
5 kx fi
5 kx
5 kx # Various other checks:
5 kx if test "x$ax_pthread_ok" = "xyes"; then
5 kx ax_pthread_save_CFLAGS="$CFLAGS"
5 kx ax_pthread_save_LIBS="$LIBS"
5 kx CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5 kx LIBS="$PTHREAD_LIBS $LIBS"
5 kx
5 kx # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
5 kx $as_echo_n "checking for joinable pthread attribute... " >&6; }
5 kx if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ax_cv_PTHREAD_JOINABLE_ATTR=unknown
5 kx for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx int
5 kx main ()
5 kx {
5 kx int attr = $ax_pthread_attr; return attr /* ; */
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx done
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
5 kx $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
5 kx if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
5 kx test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
5 kx test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
5 kx _ACEOF
5 kx
5 kx ax_pthread_joinable_attr_defined=yes
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
5 kx $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
5 kx if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ax_cv_PTHREAD_SPECIAL_FLAGS=no
5 kx case $host_os in
5 kx solaris*)
5 kx ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
5 kx $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
5 kx if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
5 kx test "x$ax_pthread_special_flags_added" != "xyes"; then :
5 kx PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
5 kx ax_pthread_special_flags_added=yes
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
5 kx $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
5 kx if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx int
5 kx main ()
5 kx {
5 kx int i = PTHREAD_PRIO_INHERIT;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ax_cv_PTHREAD_PRIO_INHERIT=yes
5 kx else
5 kx ax_cv_PTHREAD_PRIO_INHERIT=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
5 kx $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
5 kx if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
5 kx test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
5 kx
5 kx $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
5 kx
5 kx ax_pthread_prio_inherit_defined=yes
5 kx
5 kx fi
5 kx
5 kx CFLAGS="$ax_pthread_save_CFLAGS"
5 kx LIBS="$ax_pthread_save_LIBS"
5 kx
5 kx # More AIX lossage: compile with *_r variant
5 kx if test "x$GCC" != "xyes"; then
5 kx case $host_os in
5 kx aix*)
5 kx case "x/$CC" in #(
5 kx x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
5 kx #handle absolute path differently from PATH based program lookup
5 kx case "x$CC" in #(
5 kx x/*) :
5 kx if as_fn_executable_p ${CC}_r; then :
5 kx PTHREAD_CC="${CC}_r"
5 kx fi ;; #(
5 kx *) :
5 kx for ac_prog in ${CC}_r
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_PTHREAD_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$PTHREAD_CC"; then
5 kx ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_PTHREAD_CC="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5 kx if test -n "$PTHREAD_CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
5 kx $as_echo "$PTHREAD_CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$PTHREAD_CC" && break
5 kx done
5 kx test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
5 kx ;;
5 kx esac ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx fi
5 kx fi
5 kx
5 kx test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5 kx if test "x$ax_pthread_ok" = "xyes"; then
5 kx
5 kx $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
5 kx
5 kx :
5 kx else
5 kx ax_pthread_ok=no
5 kx
5 kx fi
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx # set thread flags
5 kx
5 kx # Some platforms use these, so just define them. They can't hurt if they
5 kx # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
5 kx # enables 5-arg getpwuid_r, among other things.
5 kx PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
5 kx
5 kx # Check for *_r functions
5 kx _CFLAGS="$CFLAGS"
5 kx _LIBS="$LIBS"
5 kx CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5 kx LIBS="$LIBS $PTHREAD_LIBS"
5 kx
5 kx ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_pthread_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "
5 kx pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx
5 kx for ac_func in strerror_r getpwuid_r gethostbyname_r
5 kx do :
5 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx
5 kx # Do test here with the proper thread flags
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
5 kx $as_echo_n "checking whether strerror_r returns int... " >&6; }
5 kx if ${pgac_cv_func_strerror_r_int+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx int
5 kx main ()
5 kx {
5 kx char buf[100];
5 kx switch (strerror_r(1, buf, sizeof(buf)))
5 kx { case 0: break; default: break; }
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_func_strerror_r_int=yes
5 kx else
5 kx pgac_cv_func_strerror_r_int=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
5 kx $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
5 kx if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
5 kx
5 kx $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx CFLAGS="$_CFLAGS"
5 kx LIBS="$_LIBS"
5 kx
5 kx
5 kx else
5 kx # else
5 kx # do not use values from template file
5 kx PTHREAD_CFLAGS=
5 kx PTHREAD_LIBS=
5 kx
5 kx fi # fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ##
5 kx ## Libraries
5 kx ##
5 kx ## Most libraries are included only if they demonstrably provide a function
5 kx ## we need, but libm is an exception: always include it, because there are
5 kx ## too many compilers that play cute optimization games that will break
5 kx ## probes for standard functions such as pow().
5 kx ##
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5 kx $as_echo_n "checking for main in -lm... " >&6; }
5 kx if ${ac_cv_lib_m_main+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lm $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return main ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_m_main=yes
5 kx else
5 kx ac_cv_lib_m_main=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5 kx $as_echo "$ac_cv_lib_m_main" >&6; }
5 kx if test "x$ac_cv_lib_m_main" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LIBM 1
5 kx _ACEOF
5 kx
5 kx LIBS="-lm $LIBS"
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
5 kx $as_echo_n "checking for library containing setproctitle... " >&6; }
5 kx if ${ac_cv_search_setproctitle+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char setproctitle ();
5 kx int
5 kx main ()
5 kx {
5 kx return setproctitle ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' util; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_setproctitle=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_setproctitle+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_setproctitle+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_setproctitle=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
5 kx $as_echo "$ac_cv_search_setproctitle" >&6; }
5 kx ac_res=$ac_cv_search_setproctitle
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5 kx $as_echo_n "checking for library containing dlopen... " >&6; }
5 kx if ${ac_cv_search_dlopen+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char dlopen ();
5 kx int
5 kx main ()
5 kx {
5 kx return dlopen ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' dl; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_dlopen=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_dlopen+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_dlopen+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_dlopen=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5 kx $as_echo "$ac_cv_search_dlopen" >&6; }
5 kx ac_res=$ac_cv_search_dlopen
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5 kx $as_echo_n "checking for library containing socket... " >&6; }
5 kx if ${ac_cv_search_socket+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char socket ();
5 kx int
5 kx main ()
5 kx {
5 kx return socket ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' socket ws2_32; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_socket=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_socket+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_socket+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_socket=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5 kx $as_echo "$ac_cv_search_socket" >&6; }
5 kx ac_res=$ac_cv_search_socket
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
5 kx $as_echo_n "checking for library containing shl_load... " >&6; }
5 kx if ${ac_cv_search_shl_load+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char shl_load ();
5 kx int
5 kx main ()
5 kx {
5 kx return shl_load ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' dld; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_shl_load=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_shl_load+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_shl_load+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_shl_load=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
5 kx $as_echo "$ac_cv_search_shl_load" >&6; }
5 kx ac_res=$ac_cv_search_shl_load
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
5 kx $as_echo_n "checking for library containing getopt_long... " >&6; }
5 kx if ${ac_cv_search_getopt_long+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char getopt_long ();
5 kx int
5 kx main ()
5 kx {
5 kx return getopt_long ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' getopt gnugetopt; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_getopt_long=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_getopt_long+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_getopt_long+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_getopt_long=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
5 kx $as_echo "$ac_cv_search_getopt_long" >&6; }
5 kx ac_res=$ac_cv_search_getopt_long
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
5 kx $as_echo_n "checking for library containing shm_open... " >&6; }
5 kx if ${ac_cv_search_shm_open+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char shm_open ();
5 kx int
5 kx main ()
5 kx {
5 kx return shm_open ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' rt; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_shm_open=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_shm_open+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_shm_open+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_shm_open=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
5 kx $as_echo "$ac_cv_search_shm_open" >&6; }
5 kx ac_res=$ac_cv_search_shm_open
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
5 kx $as_echo_n "checking for library containing shm_unlink... " >&6; }
5 kx if ${ac_cv_search_shm_unlink+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char shm_unlink ();
5 kx int
5 kx main ()
5 kx {
5 kx return shm_unlink ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' rt; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_shm_unlink=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_shm_unlink+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_shm_unlink+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_shm_unlink=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
5 kx $as_echo "$ac_cv_search_shm_unlink" >&6; }
5 kx ac_res=$ac_cv_search_shm_unlink
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5 kx $as_echo_n "checking for library containing clock_gettime... " >&6; }
5 kx if ${ac_cv_search_clock_gettime+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char clock_gettime ();
5 kx int
5 kx main ()
5 kx {
5 kx return clock_gettime ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' rt posix4; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_clock_gettime=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_clock_gettime+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_clock_gettime+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_clock_gettime=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5 kx $as_echo "$ac_cv_search_clock_gettime" >&6; }
5 kx ac_res=$ac_cv_search_clock_gettime
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx # Solaris:
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
5 kx $as_echo_n "checking for library containing fdatasync... " >&6; }
5 kx if ${ac_cv_search_fdatasync+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char fdatasync ();
5 kx int
5 kx main ()
5 kx {
5 kx return fdatasync ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' rt posix4; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_fdatasync=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_fdatasync+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_fdatasync+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_fdatasync=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
5 kx $as_echo "$ac_cv_search_fdatasync" >&6; }
5 kx ac_res=$ac_cv_search_fdatasync
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx # Cygwin:
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
5 kx $as_echo_n "checking for library containing shmget... " >&6; }
5 kx if ${ac_cv_search_shmget+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char shmget ();
5 kx int
5 kx main ()
5 kx {
5 kx return shmget ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' cygipc; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_shmget=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_shmget+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_shmget+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_shmget=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
5 kx $as_echo "$ac_cv_search_shmget" >&6; }
5 kx ac_res=$ac_cv_search_shmget
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx # *BSD:
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5
5 kx $as_echo_n "checking for library containing backtrace_symbols... " >&6; }
5 kx if ${ac_cv_search_backtrace_symbols+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char backtrace_symbols ();
5 kx int
5 kx main ()
5 kx {
5 kx return backtrace_symbols ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' execinfo; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_backtrace_symbols=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_backtrace_symbols+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_backtrace_symbols+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_backtrace_symbols=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5
5 kx $as_echo "$ac_cv_search_backtrace_symbols" >&6; }
5 kx ac_res=$ac_cv_search_backtrace_symbols
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx
5 kx if test "$enable_thread_safety" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
5 kx $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
5 kx if ${ac_cv_search_gethostbyname_r+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char gethostbyname_r ();
5 kx int
5 kx main ()
5 kx {
5 kx return gethostbyname_r ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' nsl; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_gethostbyname_r=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_gethostbyname_r+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_gethostbyname_r+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_gethostbyname_r=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
5 kx $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
5 kx ac_res=$ac_cv_search_gethostbyname_r
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_barrier_wait" >&5
5 kx $as_echo_n "checking for library containing pthread_barrier_wait... " >&6; }
5 kx if ${ac_cv_search_pthread_barrier_wait+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char pthread_barrier_wait ();
5 kx int
5 kx main ()
5 kx {
5 kx return pthread_barrier_wait ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' pthread; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_pthread_barrier_wait=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_pthread_barrier_wait+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_pthread_barrier_wait+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_pthread_barrier_wait=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_barrier_wait" >&5
5 kx $as_echo "$ac_cv_search_pthread_barrier_wait" >&6; }
5 kx ac_res=$ac_cv_search_pthread_barrier_wait
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx if test "$with_readline" = yes; then
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
5 kx $as_echo_n "checking for library containing readline... " >&6; }
5 kx if ${pgac_cv_check_readline+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_cv_check_readline=no
5 kx pgac_save_LIBS=$LIBS
5 kx if test x"$with_libedit_preferred" != x"yes"
5 kx then READLINE_ORDER="-lreadline -ledit"
5 kx else READLINE_ORDER="-ledit -lreadline"
5 kx fi
5 kx for pgac_rllib in $READLINE_ORDER ; do
5 kx for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5 kx LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char readline ();
5 kx int
5 kx main ()
5 kx {
5 kx return readline ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx
5 kx # Older NetBSD and OpenBSD have a broken linker that does not
5 kx # recognize dependent libraries; assume curses is needed if we didn't
5 kx # find any dependency.
5 kx case $host_os in
5 kx netbsd* | openbsd*)
5 kx if test x"$pgac_lib" = x"" ; then
5 kx pgac_lib=" -lcurses"
5 kx fi ;;
5 kx esac
5 kx
5 kx pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5 kx break
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx done
5 kx if test "$pgac_cv_check_readline" != no ; then
5 kx break
5 kx fi
5 kx done
5 kx LIBS=$pgac_save_LIBS
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
5 kx $as_echo "$pgac_cv_check_readline" >&6; }
5 kx if test "$pgac_cv_check_readline" != no ; then
5 kx LIBS="$pgac_cv_check_readline $LIBS"
5 kx
5 kx $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx if test x"$pgac_cv_check_readline" = x"no"; then
5 kx as_fn_error $? "readline library not found
5 kx If you have readline already installed, see config.log for details on the
5 kx failure. It is possible the compiler isn't looking in the proper directory.
5 kx Use --without-readline to disable readline support." "$LINENO" 5
5 kx fi
5 kx fi
5 kx
5 kx if test "$with_zlib" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
5 kx $as_echo_n "checking for inflate in -lz... " >&6; }
5 kx if ${ac_cv_lib_z_inflate+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lz $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char inflate ();
5 kx int
5 kx main ()
5 kx {
5 kx return inflate ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_z_inflate=yes
5 kx else
5 kx ac_cv_lib_z_inflate=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5 kx $as_echo "$ac_cv_lib_z_inflate" >&6; }
5 kx if test "x$ac_cv_lib_z_inflate" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LIBZ 1
5 kx _ACEOF
5 kx
5 kx LIBS="-lz $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "zlib library not found
5 kx If you have zlib already installed, see config.log for details on the
5 kx failure. It is possible the compiler isn't looking in the proper directory.
5 kx Use --without-zlib to disable zlib support." "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx
5 kx if test "$enable_spinlocks" = yes; then
5 kx
5 kx $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
5 kx
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5 kx *** Not using spinlocks will cause poor performance." >&5
5 kx $as_echo "$as_me: WARNING:
5 kx *** Not using spinlocks will cause poor performance." >&2;}
5 kx fi
5 kx
5 kx if test "$enable_atomics" = yes; then
5 kx
5 kx $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
5 kx
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5 kx *** Not using atomic operations will cause poor performance." >&5
5 kx $as_echo "$as_me: WARNING:
5 kx *** Not using atomic operations will cause poor performance." >&2;}
5 kx fi
5 kx
5 kx if test "$with_gssapi" = yes ; then
5 kx if test "$PORTNAME" != "win32"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
5 kx $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
5 kx if ${ac_cv_search_gss_init_sec_context+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char gss_init_sec_context ();
5 kx int
5 kx main ()
5 kx {
5 kx return gss_init_sec_context ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_gss_init_sec_context=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_gss_init_sec_context+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_gss_init_sec_context+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_gss_init_sec_context=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
5 kx $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
5 kx ac_res=$ac_cv_search_gss_init_sec_context
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
5 kx fi
5 kx
5 kx else
5 kx LIBS="$LIBS -lgssapi32"
5 kx fi
5 kx fi
5 kx
5 kx #
5 kx # SSL Library
5 kx #
5 kx # There is currently only one supported SSL/TLS library: OpenSSL.
5 kx #
5 kx
5 kx
5 kx
5 kx # Check whether --with-ssl was given.
5 kx if test "${with_ssl+set}" = set; then :
5 kx withval=$with_ssl;
5 kx case $withval in
5 kx yes)
5 kx as_fn_error $? "argument required for --with-ssl option" "$LINENO" 5
5 kx ;;
5 kx no)
5 kx as_fn_error $? "argument required for --with-ssl option" "$LINENO" 5
5 kx ;;
5 kx *)
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx if test x"$with_ssl" = x"" ; then
5 kx with_ssl=no
5 kx fi
5 kx
5 kx
5 kx
5 kx # Check whether --with-openssl was given.
5 kx if test "${with_openssl+set}" = set; then :
5 kx withval=$with_openssl;
5 kx case $withval in
5 kx yes)
5 kx :
5 kx ;;
5 kx no)
5 kx :
5 kx ;;
5 kx *)
5 kx as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx with_openssl=no
5 kx
5 kx fi
5 kx
5 kx
5 kx if test "$with_openssl" = yes ; then
5 kx with_ssl=openssl
5 kx fi
5 kx
5 kx if test "$with_ssl" = openssl ; then
5 kx # Minimum required OpenSSL version is 1.0.1
5 kx
5 kx $as_echo "#define OPENSSL_API_COMPAT 0x10001000L" >>confdefs.h
5 kx
5 kx if test "$PORTNAME" != "win32"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
5 kx $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
5 kx if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lcrypto $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char CRYPTO_new_ex_data ();
5 kx int
5 kx main ()
5 kx {
5 kx return CRYPTO_new_ex_data ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
5 kx else
5 kx ac_cv_lib_crypto_CRYPTO_new_ex_data=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
5 kx $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
5 kx if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LIBCRYPTO 1
5 kx _ACEOF
5 kx
5 kx LIBS="-lcrypto $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
5 kx $as_echo_n "checking for SSL_new in -lssl... " >&6; }
5 kx if ${ac_cv_lib_ssl_SSL_new+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lssl $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char SSL_new ();
5 kx int
5 kx main ()
5 kx {
5 kx return SSL_new ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_ssl_SSL_new=yes
5 kx else
5 kx ac_cv_lib_ssl_SSL_new=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
5 kx $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
5 kx if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LIBSSL 1
5 kx _ACEOF
5 kx
5 kx LIBS="-lssl $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
5 kx fi
5 kx
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
5 kx $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
5 kx if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char CRYPTO_new_ex_data ();
5 kx int
5 kx main ()
5 kx {
5 kx return CRYPTO_new_ex_data ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' eay32 crypto; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_CRYPTO_new_ex_data=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_CRYPTO_new_ex_data=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
5 kx $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
5 kx ac_res=$ac_cv_search_CRYPTO_new_ex_data
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
5 kx $as_echo_n "checking for library containing SSL_new... " >&6; }
5 kx if ${ac_cv_search_SSL_new+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char SSL_new ();
5 kx int
5 kx main ()
5 kx {
5 kx return SSL_new ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' ssleay32 ssl; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_SSL_new=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_SSL_new+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_SSL_new+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_SSL_new=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
5 kx $as_echo "$ac_cv_search_SSL_new" >&6; }
5 kx ac_res=$ac_cv_search_SSL_new
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx # Function introduced in OpenSSL 1.0.2.
5 kx for ac_func in X509_get_signature_nid
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "X509_get_signature_nid" "ac_cv_func_X509_get_signature_nid"
5 kx if test "x$ac_cv_func_X509_get_signature_nid" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_X509_GET_SIGNATURE_NID 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx # Functions introduced in OpenSSL 1.1.0. We used to check for
5 kx # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
5 kx # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
5 kx # doesn't have these OpenSSL 1.1.0 functions. So check for individual
5 kx # functions.
5 kx for ac_func in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data HMAC_CTX_new HMAC_CTX_free
5 kx do :
5 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx # OpenSSL versions before 1.1.0 required setting callback functions, for
5 kx # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
5 kx # function was removed.
5 kx for ac_func in CRYPTO_lock
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
5 kx if test "x$ac_cv_func_CRYPTO_lock" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_CRYPTO_LOCK 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx
5 kx $as_echo "#define USE_OPENSSL 1" >>confdefs.h
5 kx
5 kx elif test "$with_ssl" != no ; then
5 kx as_fn_error $? "--with-ssl must specify openssl" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx if test "$with_pam" = yes ; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
5 kx $as_echo_n "checking for pam_start in -lpam... " >&6; }
5 kx if ${ac_cv_lib_pam_pam_start+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lpam $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char pam_start ();
5 kx int
5 kx main ()
5 kx {
5 kx return pam_start ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_pam_pam_start=yes
5 kx else
5 kx ac_cv_lib_pam_pam_start=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
5 kx $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
5 kx if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LIBPAM 1
5 kx _ACEOF
5 kx
5 kx LIBS="-lpam $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx
5 kx if test "$with_libxml" = yes ; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
5 kx $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
5 kx if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lxml2 $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char xmlSaveToBuffer ();
5 kx int
5 kx main ()
5 kx {
5 kx return xmlSaveToBuffer ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_xml2_xmlSaveToBuffer=yes
5 kx else
5 kx ac_cv_lib_xml2_xmlSaveToBuffer=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
5 kx $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
5 kx if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LIBXML2 1
5 kx _ACEOF
5 kx
5 kx LIBS="-lxml2 $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx
5 kx if test "$with_libxslt" = yes ; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
5 kx $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
5 kx if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lxslt $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char xsltCleanupGlobals ();
5 kx int
5 kx main ()
5 kx {
5 kx return xsltCleanupGlobals ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_xslt_xsltCleanupGlobals=yes
5 kx else
5 kx ac_cv_lib_xslt_xsltCleanupGlobals=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
5 kx $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
5 kx if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LIBXSLT 1
5 kx _ACEOF
5 kx
5 kx LIBS="-lxslt $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx
5 kx if test "$with_lz4" = yes ; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
5 kx $as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
5 kx if ${ac_cv_lib_lz4_LZ4_compress_default+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-llz4 $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char LZ4_compress_default ();
5 kx int
5 kx main ()
5 kx {
5 kx return LZ4_compress_default ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_lz4_LZ4_compress_default=yes
5 kx else
5 kx ac_cv_lib_lz4_LZ4_compress_default=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
5 kx $as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
5 kx if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LIBLZ4 1
5 kx _ACEOF
5 kx
5 kx LIBS="-llz4 $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "library 'lz4' is required for LZ4 support" "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx
5 kx # Note: We can test for libldap_r only after we know PTHREAD_LIBS;
5 kx # also, on AIX, we may need to have openssl in LIBS for this step.
5 kx if test "$with_ldap" = yes ; then
5 kx _LIBS="$LIBS"
5 kx if test "$PORTNAME" != "win32"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
5 kx $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
5 kx if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char ldap_bind ();
5 kx int
5 kx main ()
5 kx {
5 kx return ldap_bind ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_ldap_ldap_bind=yes
5 kx else
5 kx ac_cv_lib_ldap_ldap_bind=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
5 kx $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
5 kx if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LIBLDAP 1
5 kx _ACEOF
5 kx
5 kx LIBS="-lldap $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
5 kx fi
5 kx
5 kx LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
5 kx # This test is carried out against libldap.
5 kx for ac_func in ldap_initialize
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
5 kx if test "x$ac_cv_func_ldap_initialize" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LDAP_INITIALIZE 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx if test "$enable_thread_safety" = yes; then
5 kx # Use ldap_r for FE if available, else assume ldap is thread-safe.
5 kx # On some platforms ldap_r fails to link without PTHREAD_LIBS.
5 kx LIBS="$_LIBS"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap_r" >&5
5 kx $as_echo_n "checking for ldap_bind in -lldap_r... " >&6; }
5 kx if ${ac_cv_lib_ldap_r_ldap_bind+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char ldap_bind ();
5 kx int
5 kx main ()
5 kx {
5 kx return ldap_bind ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_ldap_r_ldap_bind=yes
5 kx else
5 kx ac_cv_lib_ldap_r_ldap_bind=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_bind" >&5
5 kx $as_echo "$ac_cv_lib_ldap_r_ldap_bind" >&6; }
5 kx if test "x$ac_cv_lib_ldap_r_ldap_bind" = xyes; then :
5 kx LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
5 kx else
5 kx LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
5 kx fi
5 kx
5 kx else
5 kx LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
5 kx fi
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
5 kx $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
5 kx if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lwldap32 $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char ldap_bind ();
5 kx int
5 kx main ()
5 kx {
5 kx return ldap_bind ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_wldap32_ldap_bind=yes
5 kx else
5 kx ac_cv_lib_wldap32_ldap_bind=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
5 kx $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
5 kx if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LIBWLDAP32 1
5 kx _ACEOF
5 kx
5 kx LIBS="-lwldap32 $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
5 kx fi
5 kx
5 kx LDAP_LIBS_FE="-lwldap32"
5 kx LDAP_LIBS_BE="-lwldap32"
5 kx fi
5 kx LIBS="$_LIBS"
5 kx fi
5 kx
5 kx
5 kx
5 kx # for contrib/sepgsql
5 kx if test "$with_selinux" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
5 kx $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
5 kx if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lselinux $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char security_compute_create_name ();
5 kx int
5 kx main ()
5 kx {
5 kx return security_compute_create_name ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_selinux_security_compute_create_name=yes
5 kx else
5 kx ac_cv_lib_selinux_security_compute_create_name=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
5 kx $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
5 kx if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LIBSELINUX 1
5 kx _ACEOF
5 kx
5 kx LIBS="-lselinux $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx
5 kx # for contrib/uuid-ossp
5 kx if test "$with_uuid" = bsd ; then
5 kx # On BSD, the UUID functions are in libc
5 kx ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
5 kx if test "x$ac_cv_func_uuid_to_string" = xyes; then :
5 kx UUID_LIBS=""
5 kx else
5 kx as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
5 kx fi
5 kx
5 kx elif test "$with_uuid" = e2fs ; then
5 kx # On macOS, the UUID functions are in libc
5 kx ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
5 kx if test "x$ac_cv_func_uuid_generate" = xyes; then :
5 kx UUID_LIBS=""
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5 kx $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5 kx if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-luuid $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char uuid_generate ();
5 kx int
5 kx main ()
5 kx {
5 kx return uuid_generate ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_uuid_uuid_generate=yes
5 kx else
5 kx ac_cv_lib_uuid_uuid_generate=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5 kx $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5 kx if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5 kx UUID_LIBS="-luuid"
5 kx else
5 kx as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx
5 kx elif test "$with_uuid" = ossp ; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
5 kx $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
5 kx if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lossp-uuid $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char uuid_export ();
5 kx int
5 kx main ()
5 kx {
5 kx return uuid_export ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_ossp_uuid_uuid_export=yes
5 kx else
5 kx ac_cv_lib_ossp_uuid_uuid_export=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
5 kx $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
5 kx if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
5 kx UUID_LIBS="-lossp-uuid"
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
5 kx $as_echo_n "checking for uuid_export in -luuid... " >&6; }
5 kx if ${ac_cv_lib_uuid_uuid_export+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-luuid $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char uuid_export ();
5 kx int
5 kx main ()
5 kx {
5 kx return uuid_export ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_uuid_uuid_export=yes
5 kx else
5 kx ac_cv_lib_uuid_uuid_export=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
5 kx $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
5 kx if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
5 kx UUID_LIBS="-luuid"
5 kx else
5 kx as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx ##
5 kx ## Header files
5 kx ##
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5 kx $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5 kx if ${ac_cv_header_stdbool_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdbool.h>
5 kx #ifndef bool
5 kx "error: bool is not defined"
5 kx #endif
5 kx #ifndef false
5 kx "error: false is not defined"
5 kx #endif
5 kx #if false
5 kx "error: false is not 0"
5 kx #endif
5 kx #ifndef true
5 kx "error: true is not defined"
5 kx #endif
5 kx #if true != 1
5 kx "error: true is not 1"
5 kx #endif
5 kx #ifndef __bool_true_false_are_defined
5 kx "error: __bool_true_false_are_defined is not defined"
5 kx #endif
5 kx
5 kx struct s { _Bool s: 1; _Bool t; } s;
5 kx
5 kx char a[true == 1 ? 1 : -1];
5 kx char b[false == 0 ? 1 : -1];
5 kx char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5 kx char d[(bool) 0.5 == true ? 1 : -1];
5 kx /* See body of main program for 'e'. */
5 kx char f[(_Bool) 0.0 == false ? 1 : -1];
5 kx char g[true];
5 kx char h[sizeof (_Bool)];
5 kx char i[sizeof s.t];
5 kx enum { j = false, k = true, l = false * true, m = true * 256 };
5 kx /* The following fails for
5 kx HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5 kx _Bool n[m];
5 kx char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5 kx char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5 kx /* Catch a bug in an HP-UX C compiler. See
5 kx http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5 kx http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5 kx */
5 kx _Bool q = true;
5 kx _Bool *pq = &q;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx bool e = &s;
5 kx *pq |= q;
5 kx *pq |= ! q;
5 kx /* Refer to every declared value, to avoid compiler optimizations. */
5 kx return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5 kx + !m + !n + !o + !p + !q + !pq);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_header_stdbool_h=yes
5 kx else
5 kx ac_cv_header_stdbool_h=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5 kx $as_echo "$ac_cv_header_stdbool_h" >&6; }
5 kx ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5 kx if test "x$ac_cv_type__Bool" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE__BOOL 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx if test $ac_cv_header_stdbool_h = yes; then
5 kx
5 kx $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/event.h sys/ipc.h sys/prctl.h sys/procctl.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/uio.h sys/un.h termios.h ucred.h wctype.h
5 kx do :
5 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5 kx ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx # On BSD, test for net/if.h will fail unless sys/socket.h
5 kx # is included first.
5 kx for ac_header in net/if.h
5 kx do :
5 kx ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
5 kx #include <sys/socket.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_header_net_if_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_NET_IF_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
5 kx # is included first.
5 kx for ac_header in sys/ucred.h
5 kx do :
5 kx ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
5 kx #include <sys/param.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_SYS_UCRED_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx # At least on IRIX, test for netinet/tcp.h will fail unless
5 kx # netinet/in.h is included first.
5 kx for ac_header in netinet/tcp.h
5 kx do :
5 kx ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
5 kx #include <netinet/in.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_NETINET_TCP_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
5 kx for ac_header in readline/readline.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_readline_readline_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_READLINE_READLINE_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx for ac_header in readline.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_readline_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_READLINE_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx as_fn_error $? "readline header not found
5 kx If you have readline already installed, see config.log for details on the
5 kx failure. It is possible the compiler isn't looking in the proper directory.
5 kx Use --without-readline to disable readline support." "$LINENO" 5
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx for ac_header in readline/history.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_readline_history_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_READLINE_HISTORY_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx for ac_header in history.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_history_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_HISTORY_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx as_fn_error $? "history header not found
5 kx If you have readline already installed, see config.log for details on the
5 kx failure. It is possible the compiler isn't looking in the proper directory.
5 kx Use --without-readline to disable readline support." "$LINENO" 5
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
5 kx # Some installations of libedit usurp /usr/include/readline/, which seems
5 kx # bad practice, since in combined installations readline will have its headers
5 kx # there. We might have to resort to AC_EGREP checks to make sure we found
5 kx # the proper header...
5 kx for ac_header in editline/readline.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_editline_readline_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_EDITLINE_READLINE_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx for ac_header in readline.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_readline_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_READLINE_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx for ac_header in readline/readline.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_readline_readline_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_READLINE_READLINE_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx as_fn_error $? "readline header not found
5 kx If you have libedit already installed, see config.log for details on the
5 kx failure. It is possible the compiler isn't looking in the proper directory.
5 kx Use --without-readline to disable libedit support." "$LINENO" 5
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx # Note: in a libedit installation, history.h is sometimes a dummy, and may
5 kx # not be there at all. Hence, don't complain if not found. We must check
5 kx # though, since in yet other versions it is an independent header.
5 kx for ac_header in editline/history.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_editline_history_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_EDITLINE_HISTORY_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx for ac_header in history.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_history_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_HISTORY_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx for ac_header in readline/history.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_readline_history_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_READLINE_HISTORY_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx if test "$with_zlib" = yes; then
5 kx ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_zlib_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "zlib header not found
5 kx If you have zlib already installed, see config.log for details on the
5 kx failure. It is possible the compiler isn't looking in the proper directory.
5 kx Use --without-zlib to disable zlib support." "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx if test "$with_lz4" = yes; then
5 kx for ac_header in lz4.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_lz4_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LZ4_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx as_fn_error $? "lz4.h header file is required for LZ4" "$LINENO" 5
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx if test "$with_gssapi" = yes ; then
5 kx for ac_header in gssapi/gssapi.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_GSSAPI_GSSAPI_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx for ac_header in gssapi.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_gssapi_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_GSSAPI_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx if test "$with_ssl" = openssl ; then
5 kx ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_openssl_err_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx if test "$with_pam" = yes ; then
5 kx for ac_header in security/pam_appl.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_SECURITY_PAM_APPL_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx for ac_header in pam/pam_appl.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_PAM_PAM_APPL_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx if test "$with_bsd_auth" = yes ; then
5 kx ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx if test "$with_systemd" = yes ; then
5 kx ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx if test "$with_libxml" = yes ; then
5 kx ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx if test "$with_libxslt" = yes ; then
5 kx ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx if test "$with_ldap" = yes ; then
5 kx if test "$PORTNAME" != "win32"; then
5 kx for ac_header in ldap.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_ldap_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LDAP_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
5 kx fi
5 kx
5 kx done
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
5 kx $as_echo_n "checking for compatible LDAP implementation... " >&6; }
5 kx if ${pgac_cv_ldap_safe+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ldap.h>
5 kx #if !defined(LDAP_VENDOR_VERSION) || \
5 kx (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
5 kx LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
5 kx choke me
5 kx #endif
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_ldap_safe=yes
5 kx else
5 kx pgac_cv_ldap_safe=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
5 kx $as_echo "$pgac_cv_ldap_safe" >&6; }
5 kx
5 kx if test "$pgac_cv_ldap_safe" != yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5 kx *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
5 kx *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
5 kx *** also uses LDAP will crash on exit." >&5
5 kx $as_echo "$as_me: WARNING:
5 kx *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
5 kx *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
5 kx *** also uses LDAP will crash on exit." >&2;}
5 kx fi
5 kx else
5 kx for ac_header in winldap.h
5 kx do :
5 kx ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
5 kx #include <windows.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_header_winldap_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WINLDAP_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx fi
5 kx
5 kx if test "$with_bonjour" = yes ; then
5 kx ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_dns_sd_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx # for contrib/uuid-ossp
5 kx if test "$with_uuid" = bsd ; then
5 kx for ac_header in uuid.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_uuid_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_UUID_H 1
5 kx _ACEOF
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <uuid.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "uuid_to_string" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx else
5 kx as_fn_error $? "header file <uuid.h> is required for BSD UUID" "$LINENO" 5
5 kx fi
5 kx
5 kx done
5 kx
5 kx elif test "$with_uuid" = e2fs ; then
5 kx for ac_header in uuid/uuid.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_UUID_UUID_H 1
5 kx _ACEOF
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <uuid/uuid.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "uuid_generate" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx else
5 kx for ac_header in uuid.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_uuid_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_UUID_H 1
5 kx _ACEOF
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <uuid.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "uuid_generate" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx else
5 kx as_fn_error $? "header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx elif test "$with_uuid" = ossp ; then
5 kx for ac_header in ossp/uuid.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_OSSP_UUID_H 1
5 kx _ACEOF
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ossp/uuid.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "uuid_export" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx else
5 kx for ac_header in uuid.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_uuid_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_UUID_H 1
5 kx _ACEOF
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <uuid.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "uuid_export" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx else
5 kx as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx if test "$PORTNAME" = "win32" ; then
5 kx for ac_header in crtdefs.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_crtdefs_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_CRTDEFS_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx ##
5 kx ## Types, structures, compiler characteristics
5 kx ##
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5 kx $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5 kx if ${ac_cv_c_bigendian+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_c_bigendian=unknown
5 kx # See if we're dealing with a universal compiler.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifndef __APPLE_CC__
5 kx not a universal capable compiler
5 kx #endif
5 kx typedef int dummy;
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx # Check for potential -arch flags. It is not universal unless
5 kx # there are at least two -arch flags with different values.
5 kx ac_arch=
5 kx ac_prev=
5 kx for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5 kx if test -n "$ac_prev"; then
5 kx case $ac_word in
5 kx i?86 | x86_64 | ppc | ppc64)
5 kx if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5 kx ac_arch=$ac_word
5 kx else
5 kx ac_cv_c_bigendian=universal
5 kx break
5 kx fi
5 kx ;;
5 kx esac
5 kx ac_prev=
5 kx elif test "x$ac_word" = "x-arch"; then
5 kx ac_prev=arch
5 kx fi
5 kx done
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx if test $ac_cv_c_bigendian = unknown; then
5 kx # See if sys/param.h defines the BYTE_ORDER macro.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <sys/param.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5 kx && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5 kx && LITTLE_ENDIAN)
5 kx bogus endian macros
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx # It does; now see whether it defined to BIG_ENDIAN or not.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <sys/param.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #if BYTE_ORDER != BIG_ENDIAN
5 kx not big endian
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_c_bigendian=yes
5 kx else
5 kx ac_cv_c_bigendian=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx if test $ac_cv_c_bigendian = unknown; then
5 kx # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <limits.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5 kx bogus endian macros
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx # It does; now see whether it defined to _BIG_ENDIAN or not.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <limits.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef _BIG_ENDIAN
5 kx not big endian
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_c_bigendian=yes
5 kx else
5 kx ac_cv_c_bigendian=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx if test $ac_cv_c_bigendian = unknown; then
5 kx # Compile a test program.
5 kx if test "$cross_compiling" = yes; then :
5 kx # Try to guess by grepping values from an object file.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx short int ascii_mm[] =
5 kx { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5 kx short int ascii_ii[] =
5 kx { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5 kx int use_ascii (int i) {
5 kx return ascii_mm[i] + ascii_ii[i];
5 kx }
5 kx short int ebcdic_ii[] =
5 kx { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5 kx short int ebcdic_mm[] =
5 kx { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5 kx int use_ebcdic (int i) {
5 kx return ebcdic_mm[i] + ebcdic_ii[i];
5 kx }
5 kx extern int foo;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return use_ascii (foo) == use_ebcdic (foo);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5 kx ac_cv_c_bigendian=yes
5 kx fi
5 kx if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5 kx if test "$ac_cv_c_bigendian" = unknown; then
5 kx ac_cv_c_bigendian=no
5 kx else
5 kx # finding both strings is unlikely to happen, but who knows?
5 kx ac_cv_c_bigendian=unknown
5 kx fi
5 kx fi
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx /* Are we little or big endian? From Harbison&Steele. */
5 kx union
5 kx {
5 kx long int l;
5 kx char c[sizeof (long int)];
5 kx } u;
5 kx u.l = 1;
5 kx return u.c[sizeof (long int) - 1] == 1;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_c_bigendian=no
5 kx else
5 kx ac_cv_c_bigendian=yes
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5 kx $as_echo "$ac_cv_c_bigendian" >&6; }
5 kx case $ac_cv_c_bigendian in #(
5 kx yes)
5 kx $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5 kx ;; #(
5 kx no)
5 kx ;; #(
5 kx universal)
5 kx
5 kx $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5 kx
5 kx ;; #(
5 kx *)
5 kx as_fn_error $? "unknown endianness
5 kx presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5 kx $as_echo_n "checking for inline... " >&6; }
5 kx if ${ac_cv_c_inline+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_c_inline=no
5 kx for ac_kw in inline __inline__ __inline; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifndef __cplusplus
5 kx typedef int foo_t;
5 kx static $ac_kw foo_t static_foo () {return 0; }
5 kx $ac_kw foo_t foo () {return 0; }
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_c_inline=$ac_kw
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx test "$ac_cv_c_inline" != no && break
5 kx done
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5 kx $as_echo "$ac_cv_c_inline" >&6; }
5 kx
5 kx case $ac_cv_c_inline in
5 kx inline | yes) ;;
5 kx *)
5 kx case $ac_cv_c_inline in
5 kx no) ac_val=;;
5 kx *) ac_val=$ac_cv_c_inline;;
5 kx esac
5 kx cat >>confdefs.h <<_ACEOF
5 kx #ifndef __cplusplus
5 kx #define inline $ac_val
5 kx #endif
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
5 kx $as_echo_n "checking for printf format archetype... " >&6; }
5 kx if ${pgac_cv_printf_archetype+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_cv_printf_archetype=gnu_printf
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern void pgac_write(int ignore, const char *fmt,...)
5 kx __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
5 kx int
5 kx main ()
5 kx {
5 kx pgac_write(0, "error %s: %m", "foo");
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_archetype_ok=yes
5 kx else
5 kx ac_archetype_ok=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx
5 kx if [ "$ac_archetype_ok" = no ]; then
5 kx pgac_cv_printf_archetype=__syslog__
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern void pgac_write(int ignore, const char *fmt,...)
5 kx __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
5 kx int
5 kx main ()
5 kx {
5 kx pgac_write(0, "error %s: %m", "foo");
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_archetype_ok=yes
5 kx else
5 kx ac_archetype_ok=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx
5 kx if [ "$ac_archetype_ok" = no ]; then
5 kx pgac_cv_printf_archetype=printf
5 kx fi
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
5 kx $as_echo "$pgac_cv_printf_archetype" >&6; }
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
5 kx _ACEOF
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
5 kx $as_echo_n "checking for __func__... " >&6; }
5 kx if ${pgac_cv_funcname_func_support+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdio.h>
5 kx int
5 kx main ()
5 kx {
5 kx printf("%s\n", __func__);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_funcname_func_support=yes
5 kx else
5 kx pgac_cv_funcname_func_support=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
5 kx $as_echo "$pgac_cv_funcname_func_support" >&6; }
5 kx if test x"$pgac_cv_funcname_func_support" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
5 kx
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
5 kx $as_echo_n "checking for __FUNCTION__... " >&6; }
5 kx if ${pgac_cv_funcname_function_support+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdio.h>
5 kx int
5 kx main ()
5 kx {
5 kx printf("%s\n", __FUNCTION__);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_funcname_function_support=yes
5 kx else
5 kx pgac_cv_funcname_function_support=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
5 kx $as_echo "$pgac_cv_funcname_function_support" >&6; }
5 kx if test x"$pgac_cv_funcname_function_support" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
5 kx $as_echo_n "checking for _Static_assert... " >&6; }
5 kx if ${pgac_cv__static_assert+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx ({ _Static_assert(1, "foo"); })
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv__static_assert=yes
5 kx else
5 kx pgac_cv__static_assert=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
5 kx $as_echo "$pgac_cv__static_assert" >&6; }
5 kx if test x"$pgac_cv__static_assert" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
5 kx $as_echo_n "checking for typeof... " >&6; }
5 kx if ${pgac_cv_c_typeof+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_cv_c_typeof=no
5 kx for pgac_kw in typeof __typeof__ decltype; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int x = 0;
5 kx $pgac_kw(x) y;
5 kx y = x;
5 kx return y;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_c_typeof=$pgac_kw
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx test "$pgac_cv_c_typeof" != no && break
5 kx done
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
5 kx $as_echo "$pgac_cv_c_typeof" >&6; }
5 kx if test "$pgac_cv_c_typeof" != no; then
5 kx
5 kx $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
5 kx
5 kx if test "$pgac_cv_c_typeof" != typeof; then
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define typeof $pgac_cv_c_typeof
5 kx _ACEOF
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
5 kx $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
5 kx if ${pgac_cv__types_compatible+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv__types_compatible=yes
5 kx else
5 kx pgac_cv__types_compatible=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
5 kx $as_echo "$pgac_cv__types_compatible" >&6; }
5 kx if test x"$pgac_cv__types_compatible" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
5 kx $as_echo_n "checking for __builtin_constant_p... " >&6; }
5 kx if ${pgac_cv__builtin_constant_p+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx static int x;
5 kx static int y[__builtin_constant_p(x) ? x : 1];
5 kx static int z[__builtin_constant_p("string literal") ? 1 : x];
5 kx
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv__builtin_constant_p=yes
5 kx else
5 kx pgac_cv__builtin_constant_p=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
5 kx $as_echo "$pgac_cv__builtin_constant_p" >&6; }
5 kx if test x"$pgac_cv__builtin_constant_p" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
5 kx $as_echo_n "checking for __builtin_unreachable... " >&6; }
5 kx if ${pgac_cv__builtin_unreachable+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx __builtin_unreachable();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv__builtin_unreachable=yes
5 kx else
5 kx pgac_cv__builtin_unreachable=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
5 kx $as_echo "$pgac_cv__builtin_unreachable" >&6; }
5 kx if test x"$pgac_cv__builtin_unreachable" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
5 kx $as_echo_n "checking for computed goto support... " >&6; }
5 kx if ${pgac_cv_computed_goto+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx void *labeladdrs[] = {&&my_label};
5 kx goto *labeladdrs[0];
5 kx my_label:
5 kx return 1;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_computed_goto=yes
5 kx else
5 kx pgac_cv_computed_goto=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
5 kx $as_echo "$pgac_cv_computed_goto" >&6; }
5 kx if test x"$pgac_cv_computed_goto" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
5 kx #include <time.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_TM_TM_ZONE 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
5 kx #ifdef HAVE_SYS_IPC_H
5 kx #include <sys/ipc.h>
5 kx #endif
5 kx #ifdef HAVE_SYS_SEM_H
5 kx #include <sys/sem.h>
5 kx #endif
5 kx "
5 kx if test "x$ac_cv_type_union_semun" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_UNION_SEMUN 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
5 kx #ifdef HAVE_SYS_UN_H
5 kx #include <sys/un.h>
5 kx #endif
5 kx
5 kx "
5 kx if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_SOCKADDR_UN 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
5 kx #include <sys/socket.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_SOCKADDR_STORAGE 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
5 kx #include <sys/socket.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
5 kx #include <sys/socket.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
5 kx #include <sys/socket.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
5 kx #include <sys/socket.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
5 kx #include <sys/socket.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
5 kx #include <sys/socket.h>
5 kx #include <netdb.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_ADDRINFO 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
5 kx $as_echo_n "checking for locale_t... " >&6; }
5 kx if ${pgac_cv_type_locale_t+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <locale.h>
5 kx locale_t x;
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_type_locale_t=yes
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <xlocale.h>
5 kx locale_t x;
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_type_locale_t='yes (in xlocale.h)'
5 kx else
5 kx pgac_cv_type_locale_t=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
5 kx $as_echo "$pgac_cv_type_locale_t" >&6; }
5 kx if test "$pgac_cv_type_locale_t" != no; then
5 kx
5 kx $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
5 kx
5 kx fi
5 kx if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
5 kx
5 kx $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx # MSVC doesn't cope well with defining restrict to __restrict, the
5 kx # spelling it understands, because it conflicts with
5 kx # __declspec(restrict). Therefore we define pg_restrict to the
5 kx # appropriate definition, which presumably won't conflict.
5 kx #
5 kx # Allow platforms with buggy compilers to force restrict to not be
5 kx # used by setting $FORCE_DISABLE_RESTRICT=yes in the relevant
5 kx # template.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5 kx $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5 kx if ${ac_cv_c_restrict+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_c_restrict=no
5 kx # The order here caters to the fact that C++ does not require restrict.
5 kx for ac_kw in __restrict __restrict__ _Restrict restrict; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx typedef int * int_ptr;
5 kx int foo (int_ptr $ac_kw ip) {
5 kx return ip[0];
5 kx }
5 kx int
5 kx main ()
5 kx {
5 kx int s[1];
5 kx int * $ac_kw t = s;
5 kx t[0] = 0;
5 kx return foo(t)
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_c_restrict=$ac_kw
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx test "$ac_cv_c_restrict" != no && break
5 kx done
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5 kx $as_echo "$ac_cv_c_restrict" >&6; }
5 kx
5 kx case $ac_cv_c_restrict in
5 kx restrict) ;;
5 kx no) $as_echo "#define restrict /**/" >>confdefs.h
5 kx ;;
5 kx *) cat >>confdefs.h <<_ACEOF
5 kx #define restrict $ac_cv_c_restrict
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx
5 kx if test "$ac_cv_c_restrict" = "no" -o "x$FORCE_DISABLE_RESTRICT" = "xyes"; then
5 kx pg_restrict=""
5 kx else
5 kx pg_restrict="$ac_cv_c_restrict"
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define pg_restrict $pg_restrict
5 kx _ACEOF
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
5 kx #include <sys/param.h>
5 kx #ifdef HAVE_SYS_UCRED_H
5 kx #include <sys/ucred.h>
5 kx #endif
5 kx "
5 kx if test "x$ac_cv_type_struct_cmsgcred" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_CMSGCRED 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
5 kx #include <getopt.h>
5 kx #endif
5 kx "
5 kx if test "x$ac_cv_type_struct_option" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_OPTION 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx if test "$with_zlib" = yes; then
5 kx # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
5 kx # did not). While we could work around the lack of z_streamp, it
5 kx # seems unwise to encourage people to use such old zlib versions...
5 kx ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
5 kx "
5 kx if test "x$ac_cv_type_z_streamp" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "zlib version is too old
5 kx Use --without-zlib to disable zlib support." "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx
5 kx case $host_cpu in
5 kx x86_64)
5 kx # On x86_64, check if we can compile a popcntq instruction
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports x86_64 popcntq" >&5
5 kx $as_echo_n "checking whether assembler supports x86_64 popcntq... " >&6; }
5 kx if ${pgac_cv_have_x86_64_popcntq+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx long long x = 1; long long r;
5 kx __asm__ __volatile__ (" popcntq %1,%0\n" : "=q"(r) : "rm"(x));
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_have_x86_64_popcntq=yes
5 kx else
5 kx pgac_cv_have_x86_64_popcntq=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_x86_64_popcntq" >&5
5 kx $as_echo "$pgac_cv_have_x86_64_popcntq" >&6; }
5 kx if test x"$pgac_cv_have_x86_64_popcntq" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE_X86_64_POPCNTQ 1" >>confdefs.h
5 kx
5 kx fi
5 kx ;;
5 kx ppc*|powerpc*)
5 kx # On PPC, check if assembler supports LWARX instruction's mutex hint bit
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
5 kx $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
5 kx if ${pgac_cv_have_ppc_mutex_hint+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int a = 0; int *p = &a; int r;
5 kx __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_have_ppc_mutex_hint=yes
5 kx else
5 kx pgac_cv_have_ppc_mutex_hint=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
5 kx $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
5 kx if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
5 kx
5 kx fi
5 kx # Check if compiler accepts "i"(x) when __builtin_constant_p(x).
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance" >&5
5 kx $as_echo_n "checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance... " >&6; }
5 kx if ${pgac_cv_have_i_constraint__builtin_constant_p+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx static inline int
5 kx addi(int ra, int si)
5 kx {
5 kx int res = 0;
5 kx if (__builtin_constant_p(si))
5 kx __asm__ __volatile__(
5 kx " addi %0,%1,%2\n" : "=r"(res) : "b"(ra), "i"(si));
5 kx return res;
5 kx }
5 kx int test_adds(int x) { return addi(3, x) + addi(x, 5); }
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_have_i_constraint__builtin_constant_p=yes
5 kx else
5 kx pgac_cv_have_i_constraint__builtin_constant_p=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_i_constraint__builtin_constant_p" >&5
5 kx $as_echo "$pgac_cv_have_i_constraint__builtin_constant_p" >&6; }
5 kx if test x"$pgac_cv_have_i_constraint__builtin_constant_p" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P 1" >>confdefs.h
5 kx
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx # Check largefile support. You might think this is a system service not a
5 kx # compiler characteristic, but you'd be wrong. We must check this before
5 kx # probing existence of related functions such as fseeko, since the largefile
5 kx # defines can affect what is generated for that.
5 kx if test "$PORTNAME" != "win32"; then
5 kx # Check whether --enable-largefile was given.
5 kx if test "${enable_largefile+set}" = set; then :
5 kx enableval=$enable_largefile;
5 kx fi
5 kx
5 kx if test "$enable_largefile" != no; then
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5 kx $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5 kx if ${ac_cv_sys_largefile_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_sys_largefile_CC=no
5 kx if test "$GCC" != yes; then
5 kx ac_save_CC=$CC
5 kx while :; do
5 kx # IRIX 6.2 and later do not support large files by default,
5 kx # so use the C compiler's -n32 option if that helps.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx CC="$CC -n32"
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_largefile_CC=' -n32'; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx break
5 kx done
5 kx CC=$ac_save_CC
5 kx rm -f conftest.$ac_ext
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5 kx $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5 kx if test "$ac_cv_sys_largefile_CC" != no; then
5 kx CC=$CC$ac_cv_sys_largefile_CC
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5 kx $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5 kx if ${ac_cv_sys_file_offset_bits+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx while :; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_file_offset_bits=no; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #define _FILE_OFFSET_BITS 64
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_file_offset_bits=64; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_sys_file_offset_bits=unknown
5 kx break
5 kx done
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5 kx $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5 kx case $ac_cv_sys_file_offset_bits in #(
5 kx no | unknown) ;;
5 kx *)
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx rm -rf conftest*
5 kx if test $ac_cv_sys_file_offset_bits = unknown; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5 kx $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5 kx if ${ac_cv_sys_large_files+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx while :; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_large_files=no; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #define _LARGE_FILES 1
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_large_files=1; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_sys_large_files=unknown
5 kx break
5 kx done
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5 kx $as_echo "$ac_cv_sys_large_files" >&6; }
5 kx case $ac_cv_sys_large_files in #(
5 kx no | unknown) ;;
5 kx *)
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define _LARGE_FILES $ac_cv_sys_large_files
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx rm -rf conftest*
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx # The cast to long int works around a bug in the HP C Compiler
5 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5 kx # This bug is HP SR number 8606223364.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
5 kx $as_echo_n "checking size of off_t... " >&6; }
5 kx if ${ac_cv_sizeof_off_t+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
5 kx
5 kx else
5 kx if test "$ac_cv_type_off_t" = yes; then
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "cannot compute sizeof (off_t)
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx ac_cv_sizeof_off_t=0
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
5 kx $as_echo "$ac_cv_sizeof_off_t" >&6; }
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx # If we don't have largefile support, can't handle segsize >= 2GB.
5 kx if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
5 kx as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
5 kx fi
5 kx
5 kx # The cast to long int works around a bug in the HP C Compiler
5 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5 kx # This bug is HP SR number 8606223364.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
5 kx $as_echo_n "checking size of bool... " >&6; }
5 kx if ${ac_cv_sizeof_bool+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
5 kx #include <stdbool.h>
5 kx #endif
5 kx "; then :
5 kx
5 kx else
5 kx if test "$ac_cv_type_bool" = yes; then
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "cannot compute sizeof (bool)
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx ac_cv_sizeof_bool=0
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
5 kx $as_echo "$ac_cv_sizeof_bool" >&6; }
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define SIZEOF_BOOL $ac_cv_sizeof_bool
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_stdbool_h" = yes -a "$ac_cv_sizeof_bool" = 1; then
5 kx
5 kx $as_echo "#define PG_USE_STDBOOL 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx ##
5 kx ## Functions, global variables
5 kx ##
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
5 kx $as_echo_n "checking for int timezone... " >&6; }
5 kx if ${pgac_cv_var_int_timezone+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <time.h>
5 kx int res;
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef __CYGWIN__
5 kx res = timezone / 60;
5 kx #else
5 kx res = _timezone / 60;
5 kx #endif
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_var_int_timezone=yes
5 kx else
5 kx pgac_cv_var_int_timezone=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
5 kx $as_echo "$pgac_cv_var_int_timezone" >&6; }
5 kx if test x"$pgac_cv_var_int_timezone" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
5 kx $as_echo_n "checking types of arguments for accept()... " >&6; }
5 kx if ${ac_cv_func_accept_return+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ${ac_cv_func_accept_arg1+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ${ac_cv_func_accept_arg2+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ${ac_cv_func_accept_arg3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx for ac_cv_func_accept_return in 'int' 'SOCKET WSAAPI' 'unsigned int PASCAL'; do
5 kx for ac_cv_func_accept_arg1 in 'int' 'SOCKET' 'unsigned int'; do
5 kx for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5 kx for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <sys/socket.h>
5 kx extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_not_found=no; break 4
5 kx else
5 kx ac_not_found=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx done
5 kx done
5 kx done
5 kx done
5 kx if test "$ac_not_found" = yes; then
5 kx as_fn_error $? "could not determine argument types" "$LINENO" 5
5 kx fi
5 kx if test "$ac_cv_func_accept_arg3" = "void"; then
5 kx ac_cv_func_accept_arg3=int
5 kx fi
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx fi
5 kx { $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
5 kx $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5 kx _ACEOF
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
5 kx $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
5 kx if ${pgac_cv_func_gettimeofday_1arg+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/time.h>
5 kx int
5 kx main ()
5 kx {
5 kx struct timeval *tp;
5 kx struct timezone *tzp;
5 kx gettimeofday(tp,tzp);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_func_gettimeofday_1arg=no
5 kx else
5 kx pgac_cv_func_gettimeofday_1arg=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
5 kx $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
5 kx if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5 kx
5 kx $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
5 kx $as_echo_n "checking for wcstombs_l declaration... " >&6; }
5 kx if ${pgac_cv_func_wcstombs_l+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx #include <locale.h>
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef wcstombs_l
5 kx (void) wcstombs_l;
5 kx #endif
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_func_wcstombs_l='yes'
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx #include <locale.h>
5 kx #include <xlocale.h>
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef wcstombs_l
5 kx (void) wcstombs_l;
5 kx #endif
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_func_wcstombs_l='yes (in xlocale.h)'
5 kx else
5 kx pgac_cv_func_wcstombs_l='no'
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
5 kx $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
5 kx if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
5 kx
5 kx $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx # Some versions of libedit contain strlcpy(), setproctitle(), and other
5 kx # symbols that that library has no business exposing to the world. Pending
5 kx # acquisition of a clue by those developers, ignore libedit (including its
5 kx # possible alias of libreadline) while checking for everything else.
5 kx LIBS_including_readline="$LIBS"
5 kx LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
5 kx
5 kx for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink readv setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink syncfs sync_file_range uselocale wcstombs_l writev
5 kx do :
5 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx
5 kx # These typically are compiler builtins, for which AC_CHECK_FUNCS fails.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
5 kx $as_echo_n "checking for __builtin_bswap16... " >&6; }
5 kx if ${pgac_cv__builtin_bswap16+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx call__builtin_bswap16(int x)
5 kx {
5 kx return __builtin_bswap16(x);
5 kx }
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv__builtin_bswap16=yes
5 kx else
5 kx pgac_cv__builtin_bswap16=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
5 kx $as_echo "$pgac_cv__builtin_bswap16" >&6; }
5 kx if test x"${pgac_cv__builtin_bswap16}" = xyes ; then
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE__BUILTIN_BSWAP16 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
5 kx $as_echo_n "checking for __builtin_bswap32... " >&6; }
5 kx if ${pgac_cv__builtin_bswap32+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx call__builtin_bswap32(int x)
5 kx {
5 kx return __builtin_bswap32(x);
5 kx }
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv__builtin_bswap32=yes
5 kx else
5 kx pgac_cv__builtin_bswap32=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
5 kx $as_echo "$pgac_cv__builtin_bswap32" >&6; }
5 kx if test x"${pgac_cv__builtin_bswap32}" = xyes ; then
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE__BUILTIN_BSWAP32 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
5 kx $as_echo_n "checking for __builtin_bswap64... " >&6; }
5 kx if ${pgac_cv__builtin_bswap64+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx call__builtin_bswap64(long int x)
5 kx {
5 kx return __builtin_bswap64(x);
5 kx }
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv__builtin_bswap64=yes
5 kx else
5 kx pgac_cv__builtin_bswap64=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
5 kx $as_echo "$pgac_cv__builtin_bswap64" >&6; }
5 kx if test x"${pgac_cv__builtin_bswap64}" = xyes ; then
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE__BUILTIN_BSWAP64 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx # We assume that we needn't test all widths of these explicitly:
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
5 kx $as_echo_n "checking for __builtin_clz... " >&6; }
5 kx if ${pgac_cv__builtin_clz+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx call__builtin_clz(unsigned int x)
5 kx {
5 kx return __builtin_clz(x);
5 kx }
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv__builtin_clz=yes
5 kx else
5 kx pgac_cv__builtin_clz=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_clz" >&5
5 kx $as_echo "$pgac_cv__builtin_clz" >&6; }
5 kx if test x"${pgac_cv__builtin_clz}" = xyes ; then
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE__BUILTIN_CLZ 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
5 kx $as_echo_n "checking for __builtin_ctz... " >&6; }
5 kx if ${pgac_cv__builtin_ctz+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx call__builtin_ctz(unsigned int x)
5 kx {
5 kx return __builtin_ctz(x);
5 kx }
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv__builtin_ctz=yes
5 kx else
5 kx pgac_cv__builtin_ctz=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_ctz" >&5
5 kx $as_echo "$pgac_cv__builtin_ctz" >&6; }
5 kx if test x"${pgac_cv__builtin_ctz}" = xyes ; then
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE__BUILTIN_CTZ 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5
5 kx $as_echo_n "checking for __builtin_popcount... " >&6; }
5 kx if ${pgac_cv__builtin_popcount+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx call__builtin_popcount(unsigned int x)
5 kx {
5 kx return __builtin_popcount(x);
5 kx }
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv__builtin_popcount=yes
5 kx else
5 kx pgac_cv__builtin_popcount=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_popcount" >&5
5 kx $as_echo "$pgac_cv__builtin_popcount" >&6; }
5 kx if test x"${pgac_cv__builtin_popcount}" = xyes ; then
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE__BUILTIN_POPCOUNT 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx # We require 64-bit fseeko() to be available, but run this check anyway
5 kx # in case it finds that _LARGEFILE_SOURCE has to be #define'd for that.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5 kx $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5 kx if ${ac_cv_sys_largefile_source+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx while :; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h> /* for off_t */
5 kx #include <stdio.h>
5 kx int
5 kx main ()
5 kx {
5 kx int (*fp) (FILE *, off_t, int) = fseeko;
5 kx return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_sys_largefile_source=no; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #define _LARGEFILE_SOURCE 1
5 kx #include <sys/types.h> /* for off_t */
5 kx #include <stdio.h>
5 kx int
5 kx main ()
5 kx {
5 kx int (*fp) (FILE *, off_t, int) = fseeko;
5 kx return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_sys_largefile_source=1; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx ac_cv_sys_largefile_source=unknown
5 kx break
5 kx done
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
5 kx $as_echo "$ac_cv_sys_largefile_source" >&6; }
5 kx case $ac_cv_sys_largefile_source in #(
5 kx no | unknown) ;;
5 kx *)
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx rm -rf conftest*
5 kx
5 kx # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5 kx # in glibc 2.1.3, but that breaks too many other things.
5 kx # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5 kx if test $ac_cv_sys_largefile_source != unknown; then
5 kx
5 kx $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
5 kx # by calling it, 2009-04-02
5 kx # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
5 kx # The Clang compiler raises a warning for an undeclared identifier that matches
5 kx # a compiler builtin function. All extant Clang versions are affected, as of
5 kx # Clang 3.6.0. Test a builtin known to every version. This problem affects the
5 kx # C and Objective C languages, but Clang does report an error under C++ and
5 kx # Objective C++.
5 kx #
5 kx # Passing -fno-builtin to the compiler would suppress this problem. That
5 kx # strategy would have the advantage of being insensitive to stray warnings, but
5 kx # it would make tests less realistic.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
5 kx $as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; }
5 kx if ${ac_cv_c_decl_report+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx (void) strchr;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx if test -s conftest.err; then :
5 kx # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
5 kx # valid AC_CHECK_DECL input. No library function is consistently available
5 kx # on freestanding implementations, so test against a dummy declaration.
5 kx # Include always-available headers on the off chance that they somehow
5 kx # elicit warnings.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <float.h>
5 kx #include <limits.h>
5 kx #include <stdarg.h>
5 kx #include <stddef.h>
5 kx extern void ac_decl (int, char *);
5 kx int
5 kx main ()
5 kx {
5 kx #ifdef __cplusplus
5 kx (void) ac_decl ((int) 0, (char *) 0);
5 kx (void) ac_decl;
5 kx #else
5 kx (void) ac_decl;
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx if test -s conftest.err; then :
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot detect from compiler exit status or warnings
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx ac_cv_c_decl_report=warning
5 kx fi
5 kx else
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot compile a simple declaration test
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx else
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "compiler does not report undeclared identifiers
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx else
5 kx ac_cv_c_decl_report=error
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
5 kx $as_echo "$ac_cv_c_decl_report" >&6; }
5 kx
5 kx case $ac_cv_c_decl_report in
5 kx warning) ac_c_decl_warn_flag=yes ;;
5 kx *) ac_c_decl_warn_flag= ;;
5 kx esac
5 kx
5 kx if test "$PORTNAME" != "solaris"; then :
5 kx
5 kx for ac_func in posix_fadvise
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
5 kx if test "x$ac_cv_func_posix_fadvise" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_POSIX_FADVISE 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx fi # fi
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_FDATASYNC $ac_have_decl
5 kx _ACEOF
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_strlcat" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_STRLCAT $ac_have_decl
5 kx _ACEOF
5 kx ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_STRLCPY $ac_have_decl
5 kx _ACEOF
5 kx ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_strnlen" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_STRNLEN $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx # We can't use AC_REPLACE_FUNCS to replace these functions, because it
5 kx # won't handle deployment target restrictions on macOS
5 kx ac_fn_c_check_decl "$LINENO" "preadv" "ac_cv_have_decl_preadv" "#include <sys/uio.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_preadv" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_PREADV $ac_have_decl
5 kx _ACEOF
5 kx if test $ac_have_decl = 1; then :
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" preadv.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS preadv.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "pwritev" "ac_cv_have_decl_pwritev" "#include <sys/uio.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_pwritev" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_PWRITEV $ac_have_decl
5 kx _ACEOF
5 kx if test $ac_have_decl = 1; then :
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" pwritev.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS pwritev.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx # This is probably only present on macOS, but may as well check always
5 kx ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl
5 kx _ACEOF
5 kx ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_RTLD_NOW $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
5 kx #include <netinet/in.h>
5 kx "
5 kx if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
5 kx
5 kx $as_echo "#define HAVE_IPV6 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
5 kx $as_echo_n "checking for PS_STRINGS... " >&6; }
5 kx if ${pgac_cv_var_PS_STRINGS+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <machine/vmparam.h>
5 kx #include <sys/exec.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx PS_STRINGS->ps_nargvstr = 1;
5 kx PS_STRINGS->ps_argvstr = "foo";
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_var_PS_STRINGS=yes
5 kx else
5 kx pgac_cv_var_PS_STRINGS=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
5 kx $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
5 kx if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5 kx
5 kx $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
5 kx if test "x$ac_cv_func_dlopen" = xyes; then :
5 kx $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" dlopen.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
5 kx if test "x$ac_cv_func_explicit_bzero" = xyes; then :
5 kx $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" explicit_bzero.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
5 kx if test "x$ac_cv_func_fls" = xyes; then :
5 kx $as_echo "#define HAVE_FLS 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" fls.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS fls.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
5 kx if test "x$ac_cv_func_getopt" = xyes; then :
5 kx $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" getopt.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
5 kx if test "x$ac_cv_func_getpeereid" = xyes; then :
5 kx $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" getpeereid.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
5 kx if test "x$ac_cv_func_getrusage" = xyes; then :
5 kx $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" getrusage.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS getrusage.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
5 kx if test "x$ac_cv_func_inet_aton" = xyes; then :
5 kx $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" inet_aton.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
5 kx if test "x$ac_cv_func_link" = xyes; then :
5 kx $as_echo "#define HAVE_LINK 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" link.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS link.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
5 kx if test "x$ac_cv_func_mkdtemp" = xyes; then :
5 kx $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" mkdtemp.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
5 kx if test "x$ac_cv_func_pread" = xyes; then :
5 kx $as_echo "#define HAVE_PREAD 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" pread.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS pread.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
5 kx if test "x$ac_cv_func_pwrite" = xyes; then :
5 kx $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" pwrite.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS pwrite.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
5 kx if test "x$ac_cv_func_random" = xyes; then :
5 kx $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" random.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS random.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
5 kx if test "x$ac_cv_func_srandom" = xyes; then :
5 kx $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" srandom.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS srandom.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
5 kx if test "x$ac_cv_func_strlcat" = xyes; then :
5 kx $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" strlcat.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5 kx if test "x$ac_cv_func_strlcpy" = xyes; then :
5 kx $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" strlcpy.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
5 kx if test "x$ac_cv_func_strnlen" = xyes; then :
5 kx $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" strnlen.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
5 kx if test "x$ac_cv_func_strtof" = xyes; then :
5 kx $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" strtof.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS strtof.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx if test "$enable_thread_safety" = yes; then
5 kx ac_fn_c_check_func "$LINENO" "pthread_barrier_wait" "ac_cv_func_pthread_barrier_wait"
5 kx if test "x$ac_cv_func_pthread_barrier_wait" = xyes; then :
5 kx $as_echo "#define HAVE_PTHREAD_BARRIER_WAIT 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" pthread_barrier_wait.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS pthread_barrier_wait.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx if test "$PORTNAME" = "win32" -o "$PORTNAME" = "cygwin"; then
5 kx # Cygwin and (apparently, based on test results) Mingw both
5 kx # have a broken strtof(), so substitute the same replacement
5 kx # code we use with VS2013. That's not a perfect fix, since
5 kx # (unlike with VS2013) it doesn't avoid double-rounding, but
5 kx # we have no better options. To get that, though, we have to
5 kx # force the file to be compiled despite HAVE_STRTOF.
5 kx case " $LIBOBJS " in
5 kx *" strtof.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS strtof.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: On $host_os we will use our strtof wrapper." >&5
5 kx $as_echo "$as_me: On $host_os we will use our strtof wrapper." >&6;}
5 kx fi
5 kx
5 kx case $host_os in
5 kx # Windows uses a specialised env handler
5 kx mingw*)
5 kx
5 kx $as_echo "#define HAVE_SETENV 1" >>confdefs.h
5 kx
5 kx
5 kx $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
5 kx
5 kx ac_cv_func_setenv=yes
5 kx ac_cv_func_unsetenv=yes
5 kx ;;
5 kx *)
5 kx ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
5 kx if test "x$ac_cv_func_setenv" = xyes; then :
5 kx $as_echo "#define HAVE_SETENV 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" setenv.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
5 kx if test "x$ac_cv_func_unsetenv" = xyes; then :
5 kx $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" unsetenv.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx # System's version of getaddrinfo(), if any, may be used only if we found
5 kx # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
5 kx # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
5 kx if test x"$ac_cv_type_struct_addrinfo" = xyes && \
5 kx test "$PORTNAME" != "win32"; then
5 kx ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5 kx if test "x$ac_cv_func_getaddrinfo" = xyes; then :
5 kx $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" getaddrinfo.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" getaddrinfo.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx # Similarly, use system's getopt_long() only if system provides struct option.
5 kx if test x"$ac_cv_type_struct_option" = xyes ; then
5 kx ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
5 kx if test "x$ac_cv_func_getopt_long" = xyes; then :
5 kx $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" getopt_long.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" getopt_long.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx # On OpenBSD and Solaris, getopt() doesn't do what we want for long options
5 kx # (i.e., allow '-' as a flag character), so use our version on those platforms.
5 kx if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then
5 kx case " $LIBOBJS " in
5 kx *" getopt.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx # mingw has adopted a GNU-centric interpretation of optind/optreset,
5 kx # so always use our version on Windows.
5 kx if test "$PORTNAME" = "win32"; then
5 kx case " $LIBOBJS " in
5 kx *" getopt.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx case " $LIBOBJS " in
5 kx *" getopt_long.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx # Win32 (really MinGW) support
5 kx if test "$PORTNAME" = "win32"; then
5 kx for ac_func in _configthreadlocale
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "_configthreadlocale" "ac_cv_func__configthreadlocale"
5 kx if test "x$ac_cv_func__configthreadlocale" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE__CONFIGTHREADLOCALE 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5 kx if test "x$ac_cv_func_gettimeofday" = xyes; then :
5 kx $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
5 kx
5 kx else
5 kx case " $LIBOBJS " in
5 kx *" gettimeofday.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx case " $LIBOBJS " in
5 kx *" dirmod.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx case " $LIBOBJS " in
5 kx *" kill.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS kill.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx case " $LIBOBJS " in
5 kx *" open.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS open.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx case " $LIBOBJS " in
5 kx *" system.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS system.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx case " $LIBOBJS " in
5 kx *" win32env.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx case " $LIBOBJS " in
5 kx *" win32error.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx case " $LIBOBJS " in
5 kx *" win32security.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS win32security.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx case " $LIBOBJS " in
5 kx *" win32setlocale.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx case " $LIBOBJS " in
5 kx *" win32stat.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS win32stat.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
5 kx
5 kx ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
5 kx #define WIN32_LEAN_AND_MEAN
5 kx #include <windows.h>
5 kx #include <string.h>
5 kx #include <dbghelp.h>
5 kx "
5 kx if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_MINIDUMP_TYPE 1
5 kx _ACEOF
5 kx
5 kx pgac_minidump_type=yes
5 kx else
5 kx pgac_minidump_type=no
5 kx fi
5 kx
5 kx fi
5 kx if test x"$pgac_minidump_type" = x"yes" ; then
5 kx have_win32_dbghelp=yes
5 kx
5 kx else
5 kx have_win32_dbghelp=no
5 kx
5 kx fi
5 kx
5 kx # Cygwin needs only a bit of that
5 kx if test "$PORTNAME" = "cygwin"; then
5 kx case " $LIBOBJS " in
5 kx *" dirmod.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
5 kx if test "x$ac_cv_func_syslog" = xyes; then :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_syslog_h" = xyes; then :
5 kx
5 kx $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
5 kx $as_echo_n "checking for opterr... " >&6; }
5 kx if ${pgac_cv_var_int_opterr+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <unistd.h>
5 kx int
5 kx main ()
5 kx {
5 kx extern int opterr; opterr = 1;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_var_int_opterr=yes
5 kx else
5 kx pgac_cv_var_int_opterr=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
5 kx $as_echo "$pgac_cv_var_int_opterr" >&6; }
5 kx if test x"$pgac_cv_var_int_opterr" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
5 kx $as_echo_n "checking for optreset... " >&6; }
5 kx if ${pgac_cv_var_int_optreset+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <unistd.h>
5 kx int
5 kx main ()
5 kx {
5 kx extern int optreset; optreset = 1;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_var_int_optreset=yes
5 kx else
5 kx pgac_cv_var_int_optreset=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
5 kx $as_echo "$pgac_cv_var_int_optreset" >&6; }
5 kx if test x"$pgac_cv_var_int_optreset" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx for ac_func in strtoll __strtoll strtoq
5 kx do :
5 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx break
5 kx fi
5 kx done
5 kx
5 kx for ac_func in strtoull __strtoull strtouq
5 kx do :
5 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx break
5 kx fi
5 kx done
5 kx
5 kx # strto[u]ll may exist but not be declared
5 kx ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_strtoll" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_STRTOLL $ac_have_decl
5 kx _ACEOF
5 kx ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_strtoull" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_STRTOULL $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx if test "$with_icu" = yes; then
5 kx ac_save_CPPFLAGS=$CPPFLAGS
5 kx CPPFLAGS="$ICU_CFLAGS $CPPFLAGS"
5 kx
5 kx # Verify we have ICU's header files
5 kx ac_fn_c_check_header_mongrel "$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_unicode_ucol_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx
5 kx CPPFLAGS=$ac_save_CPPFLAGS
5 kx fi
5 kx
5 kx if test "$with_llvm" = yes; then
5 kx
5 kx # Check which functionality is present
5 kx SAVE_CPPFLAGS="$CPPFLAGS"
5 kx CPPFLAGS="$CPPFLAGS $LLVM_CPPFLAGS"
5 kx ac_fn_c_check_decl "$LINENO" "LLVMOrcGetSymbolAddressIn" "ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" "#include <llvm-c/OrcBindings.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN $ac_have_decl
5 kx _ACEOF
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "LLVMGetHostCPUName" "ac_cv_have_decl_LLVMGetHostCPUName" "#include <llvm-c/TargetMachine.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_LLVMGetHostCPUName" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_LLVMGETHOSTCPUNAME $ac_have_decl
5 kx _ACEOF
5 kx ac_fn_c_check_decl "$LINENO" "LLVMGetHostCPUFeatures" "ac_cv_have_decl_LLVMGetHostCPUFeatures" "#include <llvm-c/TargetMachine.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_LLVMGetHostCPUFeatures" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_LLVMGETHOSTCPUFEATURES $ac_have_decl
5 kx _ACEOF
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_LLVMCreateGDBRegistrationListener" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER $ac_have_decl
5 kx _ACEOF
5 kx ac_fn_c_check_decl "$LINENO" "LLVMCreatePerfJITEventListener" "ac_cv_have_decl_LLVMCreatePerfJITEventListener" "#include <llvm-c/ExecutionEngine.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_LLVMCreatePerfJITEventListener" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER $ac_have_decl
5 kx _ACEOF
5 kx
5 kx CPPFLAGS="$SAVE_CPPFLAGS"
5 kx
5 kx fi
5 kx
5 kx # Lastly, restore full LIBS list and check for readline/libedit symbols
5 kx LIBS="$LIBS_including_readline"
5 kx
5 kx if test "$with_readline" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
5 kx $as_echo_n "checking for rl_completion_append_character... " >&6; }
5 kx if ${pgac_cv_var_rl_completion_append_character+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdio.h>
5 kx #if defined(HAVE_READLINE_READLINE_H)
5 kx #include <readline/readline.h>
5 kx #elif defined(HAVE_EDITLINE_READLINE_H)
5 kx #include <editline/readline.h>
5 kx #elif defined(HAVE_READLINE_H)
5 kx #include <readline.h>
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx rl_completion_append_character = 'x';
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_var_rl_completion_append_character=yes
5 kx else
5 kx pgac_cv_var_rl_completion_append_character=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
5 kx $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
5 kx if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_suppress_quote" >&5
5 kx $as_echo_n "checking for rl_completion_suppress_quote... " >&6; }
5 kx if ${pgac_cv_var_rl_completion_suppress_quote+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdio.h>
5 kx #if defined(HAVE_READLINE_READLINE_H)
5 kx #include <readline/readline.h>
5 kx #elif defined(HAVE_EDITLINE_READLINE_H)
5 kx #include <editline/readline.h>
5 kx #elif defined(HAVE_READLINE_H)
5 kx #include <readline.h>
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx rl_completion_suppress_quote = 1;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_var_rl_completion_suppress_quote=yes
5 kx else
5 kx pgac_cv_var_rl_completion_suppress_quote=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_suppress_quote" >&5
5 kx $as_echo "$pgac_cv_var_rl_completion_suppress_quote" >&6; }
5 kx if test x"$pgac_cv_var_rl_completion_suppress_quote" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_QUOTE 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quote_characters" >&5
5 kx $as_echo_n "checking for rl_filename_quote_characters... " >&6; }
5 kx if ${pgac_cv_var_rl_filename_quote_characters+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdio.h>
5 kx #if defined(HAVE_READLINE_READLINE_H)
5 kx #include <readline/readline.h>
5 kx #elif defined(HAVE_EDITLINE_READLINE_H)
5 kx #include <editline/readline.h>
5 kx #elif defined(HAVE_READLINE_H)
5 kx #include <readline.h>
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx rl_filename_quote_characters = "x";
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_var_rl_filename_quote_characters=yes
5 kx else
5 kx pgac_cv_var_rl_filename_quote_characters=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quote_characters" >&5
5 kx $as_echo "$pgac_cv_var_rl_filename_quote_characters" >&6; }
5 kx if test x"$pgac_cv_var_rl_filename_quote_characters" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE_RL_FILENAME_QUOTE_CHARACTERS 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quoting_function" >&5
5 kx $as_echo_n "checking for rl_filename_quoting_function... " >&6; }
5 kx if ${pgac_cv_var_rl_filename_quoting_function+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdio.h>
5 kx #if defined(HAVE_READLINE_READLINE_H)
5 kx #include <readline/readline.h>
5 kx #elif defined(HAVE_EDITLINE_READLINE_H)
5 kx #include <editline/readline.h>
5 kx #elif defined(HAVE_READLINE_H)
5 kx #include <readline.h>
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx rl_filename_quoting_function = 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_var_rl_filename_quoting_function=yes
5 kx else
5 kx pgac_cv_var_rl_filename_quoting_function=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quoting_function" >&5
5 kx $as_echo "$pgac_cv_var_rl_filename_quoting_function" >&6; }
5 kx if test x"$pgac_cv_var_rl_filename_quoting_function" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE_RL_FILENAME_QUOTING_FUNCTION 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx for ac_func in rl_completion_matches rl_filename_completion_function rl_reset_screen_size
5 kx do :
5 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx for ac_func in append_history history_truncate_file
5 kx do :
5 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx fi
5 kx
5 kx
5 kx # This test makes sure that run tests work at all. Sometimes a shared
5 kx # library is found by the linker, but the runtime linker can't find it.
5 kx # This check should come after all modifications of compiler or linker
5 kx # variables, and before any other run tests.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
5 kx $as_echo_n "checking test program... " >&6; }
5 kx if test "$cross_compiling" = yes; then :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
5 kx $as_echo "cross-compiling" >&6; }
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx int main() { return 0; }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5 kx $as_echo "ok" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5 kx $as_echo "failed" >&6; }
5 kx as_fn_error $? "
5 kx Could not execute a simple test program. This may be a problem
5 kx related to locating shared libraries. Check the file 'config.log'
5 kx for the exact reason." "$LINENO" 5
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx # --------------------
5 kx # Run tests below here
5 kx # --------------------
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
5 kx $as_echo_n "checking whether long int is 64 bits... " >&6; }
5 kx if ${pgac_cv_type_long_int_64+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx # If cross-compiling, check the size reported by the compiler and
5 kx # trust that the arithmetic works.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static int test_array [1 - 2 * !(sizeof(long int) == 8)];
5 kx test_array [0] = 0;
5 kx return test_array [0];
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_type_long_int_64=yes
5 kx else
5 kx pgac_cv_type_long_int_64=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx typedef long int ac_int64;
5 kx
5 kx /*
5 kx * These are globals to discourage the compiler from folding all the
5 kx * arithmetic tests down to compile-time constants.
5 kx */
5 kx ac_int64 a = 20000001;
5 kx ac_int64 b = 40000005;
5 kx
5 kx int does_int64_work()
5 kx {
5 kx ac_int64 c,d;
5 kx
5 kx if (sizeof(ac_int64) != 8)
5 kx return 0; /* definitely not the right size */
5 kx
5 kx /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
5 kx c = a * b;
5 kx d = (c + b) / b;
5 kx if (d != a+1)
5 kx return 0;
5 kx return 1;
5 kx }
5 kx
5 kx int
5 kx main() {
5 kx return (! does_int64_work());
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx pgac_cv_type_long_int_64=yes
5 kx else
5 kx pgac_cv_type_long_int_64=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
5 kx $as_echo "$pgac_cv_type_long_int_64" >&6; }
5 kx
5 kx HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
5 kx if test x"$pgac_cv_type_long_int_64" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx if test x"$HAVE_LONG_INT_64" = x"yes" ; then
5 kx pg_int64_type="long int"
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
5 kx $as_echo_n "checking whether long long int is 64 bits... " >&6; }
5 kx if ${pgac_cv_type_long_long_int_64+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx # If cross-compiling, check the size reported by the compiler and
5 kx # trust that the arithmetic works.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
5 kx test_array [0] = 0;
5 kx return test_array [0];
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx pgac_cv_type_long_long_int_64=yes
5 kx else
5 kx pgac_cv_type_long_long_int_64=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx typedef long long int ac_int64;
5 kx
5 kx /*
5 kx * These are globals to discourage the compiler from folding all the
5 kx * arithmetic tests down to compile-time constants.
5 kx */
5 kx ac_int64 a = 20000001;
5 kx ac_int64 b = 40000005;
5 kx
5 kx int does_int64_work()
5 kx {
5 kx ac_int64 c,d;
5 kx
5 kx if (sizeof(ac_int64) != 8)
5 kx return 0; /* definitely not the right size */
5 kx
5 kx /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
5 kx c = a * b;
5 kx d = (c + b) / b;
5 kx if (d != a+1)
5 kx return 0;
5 kx return 1;
5 kx }
5 kx
5 kx int
5 kx main() {
5 kx return (! does_int64_work());
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx pgac_cv_type_long_long_int_64=yes
5 kx else
5 kx pgac_cv_type_long_long_int_64=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
5 kx $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
5 kx
5 kx HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
5 kx if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
5 kx pg_int64_type="long long int"
5 kx else
5 kx as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5
5 kx fi
5 kx fi
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PG_INT64_TYPE $pg_int64_type
5 kx _ACEOF
5 kx
5 kx
5 kx # Select the printf length modifier that goes with that, too.
5 kx if test x"$pg_int64_type" = x"long long int" ; then
5 kx INT64_MODIFIER='"ll"'
5 kx else
5 kx INT64_MODIFIER='"l"'
5 kx fi
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define INT64_MODIFIER $INT64_MODIFIER
5 kx _ACEOF
5 kx
5 kx
5 kx # has to be down here, rather than with the other builtins, because
5 kx # the test uses PG_INT64_TYPE.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
5 kx $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
5 kx if ${pgac_cv__builtin_op_overflow+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx PG_INT64_TYPE a = 1;
5 kx PG_INT64_TYPE b = 1;
5 kx PG_INT64_TYPE result;
5 kx int oflo;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx oflo = __builtin_mul_overflow(a, b, &result);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv__builtin_op_overflow=yes
5 kx else
5 kx pgac_cv__builtin_op_overflow=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
5 kx $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
5 kx if test x"$pgac_cv__builtin_op_overflow" = xyes ; then
5 kx
5 kx $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx # Check size of void *, size_t (enables tweaks for > 32bit address space)
5 kx # The cast to long int works around a bug in the HP C Compiler
5 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5 kx # This bug is HP SR number 8606223364.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5 kx $as_echo_n "checking size of void *... " >&6; }
5 kx if ${ac_cv_sizeof_void_p+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5 kx
5 kx else
5 kx if test "$ac_cv_type_void_p" = yes; then
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "cannot compute sizeof (void *)
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx ac_cv_sizeof_void_p=0
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5 kx $as_echo "$ac_cv_sizeof_void_p" >&6; }
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5 kx _ACEOF
5 kx
5 kx
5 kx # The cast to long int works around a bug in the HP C Compiler
5 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5 kx # This bug is HP SR number 8606223364.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
5 kx $as_echo_n "checking size of size_t... " >&6; }
5 kx if ${ac_cv_sizeof_size_t+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
5 kx
5 kx else
5 kx if test "$ac_cv_type_size_t" = yes; then
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "cannot compute sizeof (size_t)
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx ac_cv_sizeof_size_t=0
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
5 kx $as_echo "$ac_cv_sizeof_size_t" >&6; }
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
5 kx _ACEOF
5 kx
5 kx
5 kx # The cast to long int works around a bug in the HP C Compiler
5 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5 kx # This bug is HP SR number 8606223364.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5 kx $as_echo_n "checking size of long... " >&6; }
5 kx if ${ac_cv_sizeof_long+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5 kx
5 kx else
5 kx if test "$ac_cv_type_long" = yes; then
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "cannot compute sizeof (long)
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx ac_cv_sizeof_long=0
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5 kx $as_echo "$ac_cv_sizeof_long" >&6; }
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define SIZEOF_LONG $ac_cv_sizeof_long
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx # Determine memory alignment requirements for the basic C data types.
5 kx
5 kx # The cast to long int works around a bug in the HP C Compiler,
5 kx # see AC_CHECK_SIZEOF for more information.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
5 kx $as_echo_n "checking alignment of short... " >&6; }
5 kx if ${ac_cv_alignof_short+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
5 kx #ifndef offsetof
5 kx # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
5 kx #endif
5 kx typedef struct { char x; short y; } ac__type_alignof_;"; then :
5 kx
5 kx else
5 kx if test "$ac_cv_type_short" = yes; then
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "cannot compute alignment of short
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx ac_cv_alignof_short=0
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
5 kx $as_echo "$ac_cv_alignof_short" >&6; }
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ALIGNOF_SHORT $ac_cv_alignof_short
5 kx _ACEOF
5 kx
5 kx
5 kx # The cast to long int works around a bug in the HP C Compiler,
5 kx # see AC_CHECK_SIZEOF for more information.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
5 kx $as_echo_n "checking alignment of int... " >&6; }
5 kx if ${ac_cv_alignof_int+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
5 kx #ifndef offsetof
5 kx # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
5 kx #endif
5 kx typedef struct { char x; int y; } ac__type_alignof_;"; then :
5 kx
5 kx else
5 kx if test "$ac_cv_type_int" = yes; then
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "cannot compute alignment of int
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx ac_cv_alignof_int=0
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
5 kx $as_echo "$ac_cv_alignof_int" >&6; }
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ALIGNOF_INT $ac_cv_alignof_int
5 kx _ACEOF
5 kx
5 kx
5 kx # The cast to long int works around a bug in the HP C Compiler,
5 kx # see AC_CHECK_SIZEOF for more information.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
5 kx $as_echo_n "checking alignment of long... " >&6; }
5 kx if ${ac_cv_alignof_long+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
5 kx #ifndef offsetof
5 kx # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
5 kx #endif
5 kx typedef struct { char x; long y; } ac__type_alignof_;"; then :
5 kx
5 kx else
5 kx if test "$ac_cv_type_long" = yes; then
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "cannot compute alignment of long
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx ac_cv_alignof_long=0
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
5 kx $as_echo "$ac_cv_alignof_long" >&6; }
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ALIGNOF_LONG $ac_cv_alignof_long
5 kx _ACEOF
5 kx
5 kx
5 kx if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
5 kx # The cast to long int works around a bug in the HP C Compiler,
5 kx # see AC_CHECK_SIZEOF for more information.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
5 kx $as_echo_n "checking alignment of long long int... " >&6; }
5 kx if ${ac_cv_alignof_long_long_int+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
5 kx #ifndef offsetof
5 kx # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
5 kx #endif
5 kx typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
5 kx
5 kx else
5 kx if test "$ac_cv_type_long_long_int" = yes; then
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "cannot compute alignment of long long int
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx ac_cv_alignof_long_long_int=0
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
5 kx $as_echo "$ac_cv_alignof_long_long_int" >&6; }
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx # The cast to long int works around a bug in the HP C Compiler,
5 kx # see AC_CHECK_SIZEOF for more information.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
5 kx $as_echo_n "checking alignment of double... " >&6; }
5 kx if ${ac_cv_alignof_double+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
5 kx #ifndef offsetof
5 kx # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
5 kx #endif
5 kx typedef struct { char x; double y; } ac__type_alignof_;"; then :
5 kx
5 kx else
5 kx if test "$ac_cv_type_double" = yes; then
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "cannot compute alignment of double
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx ac_cv_alignof_double=0
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
5 kx $as_echo "$ac_cv_alignof_double" >&6; }
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ALIGNOF_DOUBLE $ac_cv_alignof_double
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx # Compute maximum alignment of any basic type.
5 kx # We assume long's alignment is at least as strong as char, short, or int;
5 kx # but we must check long long (if it is being used for int64) and double.
5 kx # Note that we intentionally do not consider any types wider than 64 bits,
5 kx # as allowing MAXIMUM_ALIGNOF to exceed 8 would be too much of a penalty
5 kx # for disk and memory space.
5 kx
5 kx MAX_ALIGNOF=$ac_cv_alignof_long
5 kx if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
5 kx MAX_ALIGNOF=$ac_cv_alignof_double
5 kx fi
5 kx if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
5 kx MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx # Some platforms predefine the types int8, int16, etc. Only check
5 kx # a (hopefully) representative subset.
5 kx ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
5 kx "
5 kx if test "x$ac_cv_type_int8" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_INT8 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
5 kx "
5 kx if test "x$ac_cv_type_uint8" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_UINT8 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
5 kx "
5 kx if test "x$ac_cv_type_int64" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_INT64 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
5 kx "
5 kx if test "x$ac_cv_type_uint64" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_UINT64 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx # Some compilers offer a 128-bit integer scalar type.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
5 kx $as_echo_n "checking for __int128... " >&6; }
5 kx if ${pgac_cv__128bit_int+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /*
5 kx * We don't actually run this test, just link it to verify that any support
5 kx * functions needed for __int128 are present.
5 kx *
5 kx * These are globals to discourage the compiler from folding all the
5 kx * arithmetic tests down to compile-time constants. We do not have
5 kx * convenient support for 128bit literals at this point...
5 kx */
5 kx __int128 a = 48828125;
5 kx __int128 b = 97656250;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx __int128 c,d;
5 kx a = (a << 12) + 1; /* 200000000001 */
5 kx b = (b << 12) + 5; /* 400000000005 */
5 kx /* try the most relevant arithmetic ops */
5 kx c = a * b;
5 kx d = (c + b) / b;
5 kx /* must use the results, else compiler may optimize arithmetic away */
5 kx if (d != a+1)
5 kx return 1;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv__128bit_int=yes
5 kx else
5 kx pgac_cv__128bit_int=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
5 kx $as_echo "$pgac_cv__128bit_int" >&6; }
5 kx if test x"$pgac_cv__128bit_int" = xyes ; then
5 kx # Use of non-default alignment with __int128 tickles bugs in some compilers.
5 kx # If not cross-compiling, we can test for bugs and disable use of __int128
5 kx # with buggy compilers. If cross-compiling, hope for the best.
5 kx # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5
5 kx $as_echo_n "checking for __int128 alignment bug... " >&6; }
5 kx if ${pgac_cv__128bit_int_bug+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx pgac_cv__128bit_int_bug="assuming ok"
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* This must match the corresponding code in c.h: */
5 kx #if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__IBMC__)
5 kx #define pg_attribute_aligned(a) __attribute__((aligned(a)))
5 kx #endif
5 kx typedef __int128 int128a
5 kx #if defined(pg_attribute_aligned)
5 kx pg_attribute_aligned(8)
5 kx #endif
5 kx ;
5 kx int128a holder;
5 kx void pass_by_val(void *buffer, int128a par) { holder = par; }
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx long int i64 = 97656225L << 12;
5 kx int128a q;
5 kx pass_by_val(main, (int128a) i64);
5 kx q = (int128a) i64;
5 kx if (q != holder)
5 kx return 1;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx pgac_cv__128bit_int_bug=ok
5 kx else
5 kx pgac_cv__128bit_int_bug=broken
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5
5 kx $as_echo "$pgac_cv__128bit_int_bug" >&6; }
5 kx if test x"$pgac_cv__128bit_int_bug" != xbroken ; then
5 kx
5 kx $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
5 kx
5 kx # The cast to long int works around a bug in the HP C Compiler,
5 kx # see AC_CHECK_SIZEOF for more information.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
5 kx $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
5 kx if ${ac_cv_alignof_PG_INT128_TYPE+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
5 kx #ifndef offsetof
5 kx # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
5 kx #endif
5 kx typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
5 kx
5 kx else
5 kx if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "cannot compute alignment of PG_INT128_TYPE
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx ac_cv_alignof_PG_INT128_TYPE=0
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
5 kx $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx fi
5 kx
5 kx # Check for various atomic operations now that we have checked how to declare
5 kx # 64bit integers.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
5 kx $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
5 kx if ${pgac_cv_gcc_sync_char_tas+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx char lock = 0;
5 kx __sync_lock_test_and_set(&lock, 1);
5 kx __sync_lock_release(&lock);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_gcc_sync_char_tas="yes"
5 kx else
5 kx pgac_cv_gcc_sync_char_tas="no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
5 kx $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
5 kx if test x"$pgac_cv_gcc_sync_char_tas" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
5 kx $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
5 kx if ${pgac_cv_gcc_sync_int32_tas+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int lock = 0;
5 kx __sync_lock_test_and_set(&lock, 1);
5 kx __sync_lock_release(&lock);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_gcc_sync_int32_tas="yes"
5 kx else
5 kx pgac_cv_gcc_sync_int32_tas="no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
5 kx $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
5 kx if test x"$pgac_cv_gcc_sync_int32_tas" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
5 kx $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
5 kx if ${pgac_cv_gcc_sync_int32_cas+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int val = 0;
5 kx __sync_val_compare_and_swap(&val, 0, 37);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_gcc_sync_int32_cas="yes"
5 kx else
5 kx pgac_cv_gcc_sync_int32_cas="no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
5 kx $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
5 kx if test x"$pgac_cv_gcc_sync_int32_cas" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
5 kx $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
5 kx if ${pgac_cv_gcc_sync_int64_cas+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx PG_INT64_TYPE lock = 0;
5 kx __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_gcc_sync_int64_cas="yes"
5 kx else
5 kx pgac_cv_gcc_sync_int64_cas="no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
5 kx $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
5 kx if test x"$pgac_cv_gcc_sync_int64_cas" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
5 kx $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
5 kx if ${pgac_cv_gcc_atomic_int32_cas+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int val = 0;
5 kx int expect = 0;
5 kx __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_gcc_atomic_int32_cas="yes"
5 kx else
5 kx pgac_cv_gcc_atomic_int32_cas="no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
5 kx $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
5 kx if test x"$pgac_cv_gcc_atomic_int32_cas" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
5 kx $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
5 kx if ${pgac_cv_gcc_atomic_int64_cas+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx PG_INT64_TYPE val = 0;
5 kx PG_INT64_TYPE expect = 0;
5 kx __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_gcc_atomic_int64_cas="yes"
5 kx else
5 kx pgac_cv_gcc_atomic_int64_cas="no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
5 kx $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
5 kx if test x"$pgac_cv_gcc_atomic_int64_cas" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx # Check for x86 cpuid instruction
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
5 kx $as_echo_n "checking for __get_cpuid... " >&6; }
5 kx if ${pgac_cv__get_cpuid+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <cpuid.h>
5 kx int
5 kx main ()
5 kx {
5 kx unsigned int exx[4] = {0, 0, 0, 0};
5 kx __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv__get_cpuid="yes"
5 kx else
5 kx pgac_cv__get_cpuid="no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
5 kx $as_echo "$pgac_cv__get_cpuid" >&6; }
5 kx if test x"$pgac_cv__get_cpuid" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
5 kx $as_echo_n "checking for __cpuid... " >&6; }
5 kx if ${pgac_cv__cpuid+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <intrin.h>
5 kx int
5 kx main ()
5 kx {
5 kx unsigned int exx[4] = {0, 0, 0, 0};
5 kx __get_cpuid(exx[0], 1);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv__cpuid="yes"
5 kx else
5 kx pgac_cv__cpuid="no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
5 kx $as_echo "$pgac_cv__cpuid" >&6; }
5 kx if test x"$pgac_cv__cpuid" = x"yes"; then
5 kx
5 kx $as_echo "#define HAVE__CPUID 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
5 kx #
5 kx # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
5 kx # with the default compiler flags. If not, check if adding the -msse4.2
5 kx # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
5 kx $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
5 kx if ${pgac_cv_sse42_crc32_intrinsics_+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx CFLAGS="$pgac_save_CFLAGS "
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <nmmintrin.h>
5 kx int
5 kx main ()
5 kx {
5 kx unsigned int crc = 0;
5 kx crc = _mm_crc32_u8(crc, 0);
5 kx crc = _mm_crc32_u32(crc, 0);
5 kx /* return computed value, to prevent the above being optimized away */
5 kx return crc == 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_sse42_crc32_intrinsics_=yes
5 kx else
5 kx pgac_cv_sse42_crc32_intrinsics_=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
5 kx $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
5 kx if test x"$pgac_cv_sse42_crc32_intrinsics_" = x"yes"; then
5 kx CFLAGS_SSE42=""
5 kx pgac_sse42_crc32_intrinsics=yes
5 kx fi
5 kx
5 kx if test x"$pgac_sse42_crc32_intrinsics" != x"yes"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
5 kx $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
5 kx if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx CFLAGS="$pgac_save_CFLAGS -msse4.2"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <nmmintrin.h>
5 kx int
5 kx main ()
5 kx {
5 kx unsigned int crc = 0;
5 kx crc = _mm_crc32_u8(crc, 0);
5 kx crc = _mm_crc32_u32(crc, 0);
5 kx /* return computed value, to prevent the above being optimized away */
5 kx return crc == 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_sse42_crc32_intrinsics__msse4_2=yes
5 kx else
5 kx pgac_cv_sse42_crc32_intrinsics__msse4_2=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
5 kx $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
5 kx if test x"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x"yes"; then
5 kx CFLAGS_SSE42="-msse4.2"
5 kx pgac_sse42_crc32_intrinsics=yes
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
5 kx # define __SSE4_2__ in that case.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx #ifndef __SSE4_2__
5 kx #error __SSE4_2__ not defined
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx SSE4_2_TARGETED=1
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx # Check for ARMv8 CRC Extension intrinsics to do CRC calculations.
5 kx #
5 kx # First check if __crc32c* intrinsics can be used with the default compiler
5 kx # flags. If not, check if adding -march=armv8-a+crc flag helps.
5 kx # CFLAGS_ARMV8_CRC32C is set if the extra flag is required.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5
5 kx $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; }
5 kx if ${pgac_cv_armv8_crc32c_intrinsics_+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx CFLAGS="$pgac_save_CFLAGS "
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <arm_acle.h>
5 kx int
5 kx main ()
5 kx {
5 kx unsigned int crc = 0;
5 kx crc = __crc32cb(crc, 0);
5 kx crc = __crc32ch(crc, 0);
5 kx crc = __crc32cw(crc, 0);
5 kx crc = __crc32cd(crc, 0);
5 kx /* return computed value, to prevent the above being optimized away */
5 kx return crc == 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_armv8_crc32c_intrinsics_=yes
5 kx else
5 kx pgac_cv_armv8_crc32c_intrinsics_=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5
5 kx $as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; }
5 kx if test x"$pgac_cv_armv8_crc32c_intrinsics_" = x"yes"; then
5 kx CFLAGS_ARMV8_CRC32C=""
5 kx pgac_armv8_crc32c_intrinsics=yes
5 kx fi
5 kx
5 kx if test x"$pgac_armv8_crc32c_intrinsics" != x"yes"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5
5 kx $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; }
5 kx if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_CFLAGS=$CFLAGS
5 kx CFLAGS="$pgac_save_CFLAGS -march=armv8-a+crc"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <arm_acle.h>
5 kx int
5 kx main ()
5 kx {
5 kx unsigned int crc = 0;
5 kx crc = __crc32cb(crc, 0);
5 kx crc = __crc32ch(crc, 0);
5 kx crc = __crc32cw(crc, 0);
5 kx crc = __crc32cd(crc, 0);
5 kx /* return computed value, to prevent the above being optimized away */
5 kx return crc == 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc=yes
5 kx else
5 kx pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx CFLAGS="$pgac_save_CFLAGS"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5
5 kx $as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; }
5 kx if test x"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x"yes"; then
5 kx CFLAGS_ARMV8_CRC32C="-march=armv8-a+crc"
5 kx pgac_armv8_crc32c_intrinsics=yes
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx # Select CRC-32C implementation.
5 kx #
5 kx # If we are targeting a processor that has Intel SSE 4.2 instructions, we can
5 kx # use the special CRC instructions for calculating CRC-32C. If we're not
5 kx # targeting such a processor, but we can nevertheless produce code that uses
5 kx # the SSE intrinsics, perhaps with some extra CFLAGS, compile both
5 kx # implementations and select which one to use at runtime, depending on whether
5 kx # SSE 4.2 is supported by the processor we're running on.
5 kx #
5 kx # Similarly, if we are targeting an ARM processor that has the CRC
5 kx # instructions that are part of the ARMv8 CRC Extension, use them. And if
5 kx # we're not targeting such a processor, but can nevertheless produce code that
5 kx # uses the CRC instructions, compile both, and select at runtime.
5 kx #
5 kx # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
5 kx # in the template or configure command line.
5 kx if test x"$USE_SLICING_BY_8_CRC32C" = x"" && test x"$USE_SSE42_CRC32C" = x"" && test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"" && test x"$USE_ARMV8_CRC32C" = x"" && test x"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x""; then
5 kx # Use Intel SSE 4.2 if available.
5 kx if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && test x"$SSE4_2_TARGETED" = x"1" ; then
5 kx USE_SSE42_CRC32C=1
5 kx else
5 kx # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for
5 kx # the runtime check.
5 kx if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && (test x"$pgac_cv__get_cpuid" = x"yes" || test x"$pgac_cv__cpuid" = x"yes"); then
5 kx USE_SSE42_CRC32C_WITH_RUNTIME_CHECK=1
5 kx else
5 kx # Use ARM CRC Extension if available.
5 kx if test x"$pgac_armv8_crc32c_intrinsics" = x"yes" && test x"$CFLAGS_ARMV8_CRC32C" = x""; then
5 kx USE_ARMV8_CRC32C=1
5 kx else
5 kx # ARM CRC Extension, with runtime check?
5 kx if test x"$pgac_armv8_crc32c_intrinsics" = x"yes"; then
5 kx USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK=1
5 kx else
5 kx # fall back to slicing-by-8 algorithm, which doesn't require any
5 kx # special CPU support.
5 kx USE_SLICING_BY_8_CRC32C=1
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
5 kx $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
5 kx if test x"$USE_SSE42_CRC32C" = x"1"; then
5 kx
5 kx $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
5 kx
5 kx PG_CRC32C_OBJS="pg_crc32c_sse42.o"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
5 kx $as_echo "SSE 4.2" >&6; }
5 kx else
5 kx if test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then
5 kx
5 kx $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
5 kx
5 kx PG_CRC32C_OBJS="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
5 kx $as_echo "SSE 4.2 with runtime check" >&6; }
5 kx else
5 kx if test x"$USE_ARMV8_CRC32C" = x"1"; then
5 kx
5 kx $as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h
5 kx
5 kx PG_CRC32C_OBJS="pg_crc32c_armv8.o"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5
5 kx $as_echo "ARMv8 CRC instructions" >&6; }
5 kx else
5 kx if test x"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then
5 kx
5 kx $as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
5 kx
5 kx PG_CRC32C_OBJS="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5
5 kx $as_echo "ARMv8 CRC instructions with runtime check" >&6; }
5 kx else
5 kx
5 kx $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
5 kx
5 kx PG_CRC32C_OBJS="pg_crc32c_sb8.o"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
5 kx $as_echo "slicing-by-8" >&6; }
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx # Select semaphore implementation type.
5 kx if test "$PORTNAME" != "win32"; then
5 kx if test x"$PREFERRED_SEMAPHORES" = x"NAMED_POSIX" ; then
5 kx # Need sem_open for this
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
5 kx $as_echo_n "checking for library containing sem_open... " >&6; }
5 kx if ${ac_cv_search_sem_open+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char sem_open ();
5 kx int
5 kx main ()
5 kx {
5 kx return sem_open ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' rt pthread; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_sem_open=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_sem_open+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_sem_open+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_sem_open=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
5 kx $as_echo "$ac_cv_search_sem_open" >&6; }
5 kx ac_res=$ac_cv_search_sem_open
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx USE_NAMED_POSIX_SEMAPHORES=1
5 kx fi
5 kx
5 kx fi
5 kx if test x"$PREFERRED_SEMAPHORES" = x"UNNAMED_POSIX" ; then
5 kx # Need sem_init for this
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5 kx $as_echo_n "checking for library containing sem_init... " >&6; }
5 kx if ${ac_cv_search_sem_init+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char sem_init ();
5 kx int
5 kx main ()
5 kx {
5 kx return sem_init ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' rt pthread; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_sem_init=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_sem_init+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_sem_init+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_sem_init=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5 kx $as_echo "$ac_cv_search_sem_init" >&6; }
5 kx ac_res=$ac_cv_search_sem_init
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx USE_UNNAMED_POSIX_SEMAPHORES=1
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
5 kx $as_echo_n "checking which semaphore API to use... " >&6; }
5 kx if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
5 kx
5 kx $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
5 kx
5 kx SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
5 kx sematype="named POSIX"
5 kx else
5 kx if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
5 kx
5 kx $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
5 kx
5 kx SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
5 kx sematype="unnamed POSIX"
5 kx else
5 kx
5 kx $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
5 kx
5 kx SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
5 kx sematype="System V"
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
5 kx $as_echo "$sematype" >&6; }
5 kx else
5 kx
5 kx $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
5 kx
5 kx SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
5 kx fi
5 kx
5 kx
5 kx # Select shared-memory implementation type.
5 kx if test "$PORTNAME" != "win32"; then
5 kx
5 kx $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
5 kx
5 kx SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
5 kx else
5 kx
5 kx $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
5 kx
5 kx SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
5 kx fi
5 kx
5 kx # Select random number source. If a TLS library is used then it will be the
5 kx # first choice, else the native platform sources (Windows API or /dev/urandom)
5 kx # will be used.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
5 kx $as_echo_n "checking which random number source to use... " >&6; }
5 kx if test x"$with_ssl" = x"openssl" ; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
5 kx $as_echo "OpenSSL" >&6; }
5 kx elif test x"$PORTNAME" = x"win32" ; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
5 kx $as_echo "Windows native" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
5 kx $as_echo "/dev/urandom" >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
5 kx $as_echo_n "checking for /dev/urandom... " >&6; }
5 kx if ${ac_cv_file__dev_urandom+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx test "$cross_compiling" = yes &&
5 kx as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
5 kx if test -r "/dev/urandom"; then
5 kx ac_cv_file__dev_urandom=yes
5 kx else
5 kx ac_cv_file__dev_urandom=no
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
5 kx $as_echo "$ac_cv_file__dev_urandom" >&6; }
5 kx if test "x$ac_cv_file__dev_urandom" = xyes; then :
5 kx
5 kx fi
5 kx
5 kx
5 kx if test x"$ac_cv_file__dev_urandom" = x"no" ; then
5 kx as_fn_error $? "
5 kx no source of strong random numbers was found
5 kx PostgreSQL can use OpenSSL, native Windows API or /dev/urandom as a source of random numbers." "$LINENO" 5
5 kx fi
5 kx fi
5 kx
5 kx # If not set in template file, set bytes to use libc memset()
5 kx if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
5 kx MEMSET_LOOP_LIMIT=1024
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx if test "$enable_nls" = yes ; then
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
5 kx $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
5 kx if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char bind_textdomain_codeset ();
5 kx int
5 kx main ()
5 kx {
5 kx return bind_textdomain_codeset ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' intl; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_bind_textdomain_codeset=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_bind_textdomain_codeset=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
5 kx $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
5 kx ac_res=$ac_cv_search_bind_textdomain_codeset
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5
5 kx fi
5 kx
5 kx ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_libintl_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx if test -z "$MSGFMT"; then
5 kx for ac_prog in msgfmt
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_MSGFMT+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $MSGFMT in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx MSGFMT=$ac_cv_path_MSGFMT
5 kx if test -n "$MSGFMT"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5 kx $as_echo "$MSGFMT" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$MSGFMT" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of MSGFMT in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
5 kx $as_echo_n "checking for MSGFMT... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5 kx $as_echo "$MSGFMT" >&6; }
5 kx fi
5 kx
5 kx if test -z "$MSGFMT"; then
5 kx as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
5 kx $as_echo_n "checking for msgfmt flags... " >&6; }
5 kx if ${pgac_cv_msgfmt_flags+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
5 kx pgac_cv_msgfmt_flags=-c
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
5 kx $as_echo "$pgac_cv_msgfmt_flags" >&6; }
5 kx MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
5 kx
5 kx if test -z "$MSGMERGE"; then
5 kx for ac_prog in msgmerge
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_MSGMERGE+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $MSGMERGE in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx MSGMERGE=$ac_cv_path_MSGMERGE
5 kx if test -n "$MSGMERGE"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5 kx $as_echo "$MSGMERGE" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$MSGMERGE" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of MSGMERGE in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
5 kx $as_echo_n "checking for MSGMERGE... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5 kx $as_echo "$MSGMERGE" >&6; }
5 kx fi
5 kx
5 kx if test -z "$XGETTEXT"; then
5 kx for ac_prog in xgettext
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_XGETTEXT+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $XGETTEXT in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx XGETTEXT=$ac_cv_path_XGETTEXT
5 kx if test -n "$XGETTEXT"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5 kx $as_echo "$XGETTEXT" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$XGETTEXT" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of XGETTEXT in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
5 kx $as_echo_n "checking for XGETTEXT... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5 kx $as_echo "$XGETTEXT" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx # Check for Tcl configuration script tclConfig.sh
5 kx if test "$with_tcl" = yes; then
5 kx if test -z "$TCLSH"; then
5 kx for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_TCLSH+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $TCLSH in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx TCLSH=$ac_cv_path_TCLSH
5 kx if test -n "$TCLSH"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
5 kx $as_echo "$TCLSH" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$TCLSH" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of TCLSH in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
5 kx $as_echo_n "checking for TCLSH... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
5 kx $as_echo "$TCLSH" >&6; }
5 kx fi
5 kx
5 kx if test x"$TCLSH" = x""; then
5 kx as_fn_error $? "Tcl shell not found" "$LINENO" 5
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
5 kx $as_echo_n "checking for tclConfig.sh... " >&6; }
5 kx # Let user override test
5 kx if test -z "$TCL_CONFIG_SH"; then
5 kx pgac_test_dirs="$with_tclconfig"
5 kx
5 kx set X $pgac_test_dirs; shift
5 kx if test $# -eq 0; then
5 kx test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
5 kx pgac_test_dirs=`echo 'puts $auto_path' | $TCLSH`
5 kx # On newer macOS, $auto_path frequently doesn't include the place
5 kx # where tclConfig.sh actually lives. Append that to the end, so as not
5 kx # to break cases where a non-default Tcl installation is being used.
5 kx if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then
5 kx pgac_test_dirs="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework"
5 kx fi
5 kx set X $pgac_test_dirs; shift
5 kx fi
5 kx
5 kx for pgac_dir do
5 kx if test -r "$pgac_dir/tclConfig.sh"; then
5 kx TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx
5 kx if test -z "$TCL_CONFIG_SH"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
5 kx $as_echo "$TCL_CONFIG_SH" >&6; }
5 kx fi
5 kx
5 kx
5 kx
5 kx . "$TCL_CONFIG_SH"
5 kx eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
5 kx eval TCL_LIBS=\"$TCL_LIBS\"
5 kx eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
5 kx eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
5 kx
5 kx if test "$TCL_SHARED_BUILD" != 1; then
5 kx as_fn_error $? "cannot build PL/Tcl because Tcl is not a shared library
5 kx Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
5 kx fi
5 kx # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
5 kx ac_save_CPPFLAGS=$CPPFLAGS
5 kx CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
5 kx ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_tcl_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx CPPFLAGS=$ac_save_CPPFLAGS
5 kx fi
5 kx
5 kx # check for <perl.h>
5 kx if test "$with_perl" = yes; then
5 kx ac_save_CPPFLAGS=$CPPFLAGS
5 kx CPPFLAGS="$CPPFLAGS $perl_includespec"
5 kx ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
5 kx "
5 kx if test "x$ac_cv_header_perl_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx # While we're at it, check that we can link to libperl.
5 kx # On most platforms, if perl.h is there then libperl.so will be too, but at
5 kx # this writing Debian packages them separately. There is no known reason to
5 kx # waste cycles on separate probes for the Tcl or Python libraries, though.
5 kx # On some Red Hat platforms, the link attempt can fail if we don't use
5 kx # CFLAGS_SL while building the test program.
5 kx ac_save_CFLAGS=$CFLAGS
5 kx CFLAGS="$CFLAGS $CFLAGS_SL"
5 kx pgac_save_LIBS=$LIBS
5 kx LIBS="$perl_embed_ldflags"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
5 kx $as_echo_n "checking for libperl... " >&6; }
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <EXTERN.h>
5 kx #include <perl.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx perl_alloc();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx as_fn_error $? "libperl library is required for Perl" "$LINENO" 5
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$pgac_save_LIBS
5 kx CFLAGS=$ac_save_CFLAGS
5 kx CPPFLAGS=$ac_save_CPPFLAGS
5 kx fi
5 kx
5 kx # check for <Python.h>
5 kx if test "$with_python" = yes; then
5 kx ac_save_CPPFLAGS=$CPPFLAGS
5 kx CPPFLAGS="$python_includespec $CPPFLAGS"
5 kx ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_Python_h" = xyes; then :
5 kx
5 kx else
5 kx as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx CPPFLAGS=$ac_save_CPPFLAGS
5 kx fi
5 kx
5 kx #
5 kx # Check for documentation-building tools
5 kx #
5 kx if test -z "$XMLLINT"; then
5 kx for ac_prog in xmllint
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_XMLLINT+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $XMLLINT in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx XMLLINT=$ac_cv_path_XMLLINT
5 kx if test -n "$XMLLINT"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
5 kx $as_echo "$XMLLINT" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$XMLLINT" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of XMLLINT in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
5 kx $as_echo_n "checking for XMLLINT... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
5 kx $as_echo "$XMLLINT" >&6; }
5 kx fi
5 kx
5 kx if test -z "$XSLTPROC"; then
5 kx for ac_prog in xsltproc
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_XSLTPROC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $XSLTPROC in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx XSLTPROC=$ac_cv_path_XSLTPROC
5 kx if test -n "$XSLTPROC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
5 kx $as_echo "$XSLTPROC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$XSLTPROC" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of XSLTPROC in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
5 kx $as_echo_n "checking for XSLTPROC... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
5 kx $as_echo "$XSLTPROC" >&6; }
5 kx fi
5 kx
5 kx if test -z "$FOP"; then
5 kx for ac_prog in fop
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_FOP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $FOP in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx FOP=$ac_cv_path_FOP
5 kx if test -n "$FOP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5 kx $as_echo "$FOP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$FOP" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of FOP in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
5 kx $as_echo_n "checking for FOP... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5 kx $as_echo "$FOP" >&6; }
5 kx fi
5 kx
5 kx if test -z "$DBTOEPUB"; then
5 kx for ac_prog in dbtoepub
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_DBTOEPUB+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $DBTOEPUB in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_DBTOEPUB="$DBTOEPUB" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_DBTOEPUB="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx DBTOEPUB=$ac_cv_path_DBTOEPUB
5 kx if test -n "$DBTOEPUB"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
5 kx $as_echo "$DBTOEPUB" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$DBTOEPUB" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of DBTOEPUB in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
5 kx $as_echo_n "checking for DBTOEPUB... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
5 kx $as_echo "$DBTOEPUB" >&6; }
5 kx fi
5 kx
5 kx
5 kx #
5 kx # Check for test tools
5 kx #
5 kx if test "$enable_tap_tests" = yes; then
5 kx # Check for necessary modules, unless user has specified the "prove" to use;
5 kx # in that case it's her responsibility to have a working configuration.
5 kx # (prove might be part of a different Perl installation than perl, eg on
5 kx # MSys, so the result of AX_PROG_PERL_MODULES could be irrelevant anyway.)
5 kx if test -z "$PROVE"; then
5 kx # Test::More and Time::HiRes are supposed to be part of core Perl,
5 kx # but some distros omit them in a minimal installation.
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Make sure we have perl
5 kx if test -z "$PERL"; then
5 kx # Extract the first word of "perl", so it can be a program name with args.
5 kx set dummy perl; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_PERL+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$PERL"; then
5 kx ac_cv_prog_PERL="$PERL" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_PERL="perl"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx PERL=$ac_cv_prog_PERL
5 kx if test -n "$PERL"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5 kx $as_echo "$PERL" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx if test "x$PERL" != x; then
5 kx ax_perl_modules_failed=0
5 kx for ax_perl_module in 'IPC::Run' 'Test::More 0.87' 'Time::HiRes' ; do
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
5 kx $as_echo_n "checking for perl module $ax_perl_module... " >&6; }
5 kx
5 kx # Would be nice to log result here, but can't rely on autoconf internals
5 kx $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1
5 kx if test $? -ne 0; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; };
5 kx ax_perl_modules_failed=1
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5 kx $as_echo "ok" >&6; };
5 kx fi
5 kx done
5 kx
5 kx # Run optional shell commands
5 kx if test "$ax_perl_modules_failed" = 0; then
5 kx :
5 kx
5 kx else
5 kx :
5 kx as_fn_error $? "Additional Perl modules are required to run TAP tests" "$LINENO" 5
5 kx fi
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
5 kx $as_echo "$as_me: WARNING: could not find perl" >&2;}
5 kx fi
5 kx fi
5 kx # Now make sure we know where prove is
5 kx if test -z "$PROVE"; then
5 kx for ac_prog in prove
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_PROVE+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $PROVE in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_PROVE="$PROVE" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_PROVE="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx PROVE=$ac_cv_path_PROVE
5 kx if test -n "$PROVE"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
5 kx $as_echo "$PROVE" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$PROVE" && break
5 kx done
5 kx
5 kx else
5 kx # Report the value of PROVE in configure's output in all cases.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
5 kx $as_echo_n "checking for PROVE... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
5 kx $as_echo "$PROVE" >&6; }
5 kx fi
5 kx
5 kx if test -z "$PROVE"; then
5 kx as_fn_error $? "prove not found" "$LINENO" 5
5 kx fi
5 kx fi
5 kx
5 kx # If compiler will take -Wl,--as-needed (or various platform-specific
5 kx # spellings thereof) then add that to LDFLAGS. This is much easier than
5 kx # trying to filter LIBS to the minimum for each executable.
5 kx # On (at least) some Red-Hat-derived systems, this switch breaks linking to
5 kx # libreadline; therefore we postpone testing it until we know what library
5 kx # dependencies readline has. The test code will try to link with $LIBS.
5 kx if test "$with_readline" = yes; then
5 kx link_test_func=readline
5 kx else
5 kx link_test_func=exit
5 kx fi
5 kx
5 kx if test "$PORTNAME" = "darwin"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
5 kx $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
5 kx if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_LDFLAGS=$LDFLAGS
5 kx LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
5 kx if test "$cross_compiling" = yes; then :
5 kx pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern void $link_test_func (); void (*fptr) () = $link_test_func;
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
5 kx else
5 kx pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx LDFLAGS="$pgac_save_LDFLAGS"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
5 kx $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
5 kx if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
5 kx LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
5 kx fi
5 kx
5 kx elif test "$PORTNAME" = "openbsd"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
5 kx $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
5 kx if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_LDFLAGS=$LDFLAGS
5 kx LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
5 kx if test "$cross_compiling" = yes; then :
5 kx pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern void $link_test_func (); void (*fptr) () = $link_test_func;
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
5 kx else
5 kx pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx LDFLAGS="$pgac_save_LDFLAGS"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
5 kx $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
5 kx if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
5 kx LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
5 kx fi
5 kx
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
5 kx $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
5 kx if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx pgac_save_LDFLAGS=$LDFLAGS
5 kx LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
5 kx if test "$cross_compiling" = yes; then :
5 kx pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern void $link_test_func (); void (*fptr) () = $link_test_func;
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
5 kx else
5 kx pgac_cv_prog_cc_ldflags__Wl___as_needed=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx LDFLAGS="$pgac_save_LDFLAGS"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
5 kx $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
5 kx if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
5 kx LDFLAGS="$LDFLAGS -Wl,--as-needed"
5 kx fi
5 kx
5 kx fi
5 kx
5 kx # Create compiler version string
5 kx if test x"$GCC" = x"yes" ; then
5 kx cc_string=`${CC} --version | sed q`
5 kx case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
5 kx elif test x"$SUN_STUDIO_CC" = x"yes" ; then
5 kx cc_string=`${CC} -V 2>&1 | sed q`
5 kx else
5 kx cc_string=$CC
5 kx fi
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
5 kx _ACEOF
5 kx
5 kx
5 kx # Supply a numeric version string for use by 3rd party add-ons
5 kx # awk -F is a regex on some platforms, and not on others, so make "." a tab
5 kx PG_VERSION_NUM="`echo $PG_MAJORVERSION $PG_MINORVERSION |
5 kx $AWK '{printf "%d%04d", $1, $2}'`"
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PG_VERSION_NUM $PG_VERSION_NUM
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx # If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not
5 kx # literally, so that it's possible to override it at build time using
5 kx # a command like "make ... PG_SYSROOT=path". This has to be done after
5 kx # we've finished all configure checks that depend on CPPFLAGS.
5 kx # The same for LDFLAGS, too.
5 kx if test x"$PG_SYSROOT" != x; then
5 kx CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
5 kx LDFLAGS=`echo "$LDFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
5 kx fi
5 kx
5 kx
5 kx
5 kx # Begin output steps
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
5 kx $as_echo "$as_me: using compiler=$cc_string" >&6;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
5 kx $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
5 kx $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
5 kx $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
5 kx # Currently only used when LLVM is used
5 kx if test "$with_llvm" = yes ; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5
5 kx $as_echo "$as_me: using CXX=$CXX" >&6;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5
5 kx $as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5
5 kx $as_echo "$as_me: using CLANG=$CLANG" >&6;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5
5 kx $as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5
5 kx $as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;}
5 kx fi
5 kx
5 kx # prepare build tree if outside source tree
5 kx # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
5 kx # Note 2: /bin/pwd might be better than shell's built-in at getting
5 kx # a symlink-free name.
5 kx if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
5 kx vpath_build=no
5 kx else
5 kx vpath_build=yes
5 kx if test "$no_create" != yes; then
5 kx $as_echo_n "preparing build tree... " >&6
5 kx pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
5 kx $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
5 kx || as_fn_error $? "failed" "$LINENO" 5
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5 kx $as_echo "done" >&6; }
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
5 kx
5 kx
5 kx ac_config_links="$ac_config_links src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
5 kx
5 kx
5 kx if test "$PORTNAME" = "win32"; then
5 kx ac_config_commands="$ac_config_commands check_win32_symlinks"
5 kx
5 kx fi
5 kx
5 kx ac_config_headers="$ac_config_headers src/include/pg_config.h"
5 kx
5 kx
5 kx ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
5 kx
5 kx
5 kx ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
5 kx
5 kx
5 kx cat >confcache <<\_ACEOF
5 kx # This file is a shell script that caches the results of configure
5 kx # tests run on this system so they can be shared between configure
5 kx # scripts and configure runs, see configure's option --config-cache.
5 kx # It is not useful on other systems. If it contains results you don't
5 kx # want to keep, you may remove or edit it.
5 kx #
5 kx # config.status only pays attention to the cache file if you give it
5 kx # the --recheck option to rerun configure.
5 kx #
5 kx # `ac_cv_env_foo' variables (set or unset) will be overridden when
5 kx # loading this file, other *unset* `ac_cv_foo' will be assigned the
5 kx # following values.
5 kx
5 kx _ACEOF
5 kx
5 kx # The following way of writing the cache mishandles newlines in values,
5 kx # but we know of no workaround that is simple, portable, and efficient.
5 kx # So, we kill variables containing newlines.
5 kx # Ultrix sh set writes to stderr and can't be redirected directly,
5 kx # and sets the high bit in the cache file unless we assign to the vars.
5 kx (
5 kx for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in #(
5 kx *${as_nl}*)
5 kx case $ac_var in #(
5 kx *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5 kx $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5 kx esac
5 kx case $ac_var in #(
5 kx _ | IFS | as_nl) ;; #(
5 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5 kx *) { eval $ac_var=; unset $ac_var;} ;;
5 kx esac ;;
5 kx esac
5 kx done
5 kx
5 kx (set) 2>&1 |
5 kx case $as_nl`(ac_space=' '; set) 2>&1` in #(
5 kx *${as_nl}ac_space=\ *)
5 kx # `set' does not quote correctly, so add quotes: double-quote
5 kx # substitution turns \\\\ into \\, and sed turns \\ into \.
5 kx sed -n \
5 kx "s/'/'\\\\''/g;
5 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5 kx ;; #(
5 kx *)
5 kx # `set' quotes correctly as required by POSIX, so do not add quotes.
5 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5 kx ;;
5 kx esac |
5 kx sort
5 kx ) |
5 kx sed '
5 kx /^ac_cv_env_/b end
5 kx t clear
5 kx :clear
5 kx s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5 kx t end
5 kx s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5 kx :end' >>confcache
5 kx if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5 kx if test -w "$cache_file"; then
5 kx if test "x$cache_file" != "x/dev/null"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5 kx $as_echo "$as_me: updating cache $cache_file" >&6;}
5 kx if test ! -f "$cache_file" || test -h "$cache_file"; then
5 kx cat confcache >"$cache_file"
5 kx else
5 kx case $cache_file in #(
5 kx */* | ?:*)
5 kx mv -f confcache "$cache_file"$$ &&
5 kx mv -f "$cache_file"$$ "$cache_file" ;; #(
5 kx *)
5 kx mv -f confcache "$cache_file" ;;
5 kx esac
5 kx fi
5 kx fi
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5 kx $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5 kx fi
5 kx fi
5 kx rm -f confcache
5 kx
5 kx test "x$prefix" = xNONE && prefix=$ac_default_prefix
5 kx # Let make expand exec_prefix.
5 kx test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5 kx
5 kx DEFS=-DHAVE_CONFIG_H
5 kx
5 kx ac_libobjs=
5 kx ac_ltlibobjs=
5 kx U=
5 kx for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5 kx # 1. Remove the extension, and $U if already installed.
5 kx ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5 kx ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5 kx # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5 kx # will be set to the directory where LIBOBJS objects are built.
5 kx as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5 kx as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5 kx done
5 kx LIBOBJS=$ac_libobjs
5 kx
5 kx LTLIBOBJS=$ac_ltlibobjs
5 kx
5 kx
5 kx
5 kx
5 kx : "${CONFIG_STATUS=./config.status}"
5 kx ac_write_fail=0
5 kx ac_clean_files_save=$ac_clean_files
5 kx ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5 kx $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5 kx as_write_fail=0
5 kx cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5 kx #! $SHELL
5 kx # Generated by $as_me.
5 kx # Run this file to recreate the current configuration.
5 kx # Compiler output produced by configure, useful for debugging
5 kx # configure, is in config.log if it exists.
5 kx
5 kx debug=false
5 kx ac_cs_recheck=false
5 kx ac_cs_silent=false
5 kx
5 kx SHELL=\${CONFIG_SHELL-$SHELL}
5 kx export SHELL
5 kx _ASEOF
5 kx cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5 kx ## -------------------- ##
5 kx ## M4sh Initialization. ##
5 kx ## -------------------- ##
5 kx
5 kx # Be more Bourne compatible
5 kx DUALCASE=1; export DUALCASE # for MKS sh
5 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5 kx emulate sh
5 kx NULLCMD=:
5 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5 kx # is contrary to our usage. Disable this feature.
5 kx alias -g '${1+"$@"}'='"$@"'
5 kx setopt NO_GLOB_SUBST
5 kx else
5 kx case `(set -o) 2>/dev/null` in #(
5 kx *posix*) :
5 kx set -o posix ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx as_nl='
5 kx '
5 kx export as_nl
5 kx # Printing a long string crashes Solaris 7 /usr/bin/printf.
5 kx as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5 kx # Prefer a ksh shell builtin over an external printf program on Solaris,
5 kx # but without wasting forks for bash or zsh.
5 kx if test -z "$BASH_VERSION$ZSH_VERSION" \
5 kx && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5 kx as_echo='print -r --'
5 kx as_echo_n='print -rn --'
5 kx elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5 kx as_echo='printf %s\n'
5 kx as_echo_n='printf %s'
5 kx else
5 kx if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5 kx as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5 kx as_echo_n='/usr/ucb/echo -n'
5 kx else
5 kx as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5 kx as_echo_n_body='eval
5 kx arg=$1;
5 kx case $arg in #(
5 kx *"$as_nl"*)
5 kx expr "X$arg" : "X\\(.*\\)$as_nl";
5 kx arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5 kx esac;
5 kx expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5 kx '
5 kx export as_echo_n_body
5 kx as_echo_n='sh -c $as_echo_n_body as_echo'
5 kx fi
5 kx export as_echo_body
5 kx as_echo='sh -c $as_echo_body as_echo'
5 kx fi
5 kx
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5 kx PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx
5 kx # IFS
5 kx # We need space, tab and new line, in precisely that order. Quoting is
5 kx # there to prevent editors from complaining about space-tab.
5 kx # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5 kx # splitting by setting IFS to empty value.)
5 kx IFS=" "" $as_nl"
5 kx
5 kx # Find who we are. Look in the path if we contain no directory separator.
5 kx as_myself=
5 kx case $0 in #((
5 kx *[\\/]* ) as_myself=$0 ;;
5 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
5 kx # in which case we are not to be found in the path.
5 kx if test "x$as_myself" = x; then
5 kx as_myself=$0
5 kx fi
5 kx if test ! -f "$as_myself"; then
5 kx $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5 kx exit 1
5 kx fi
5 kx
5 kx # Unset variables that we do not need and which cause bugs (e.g. in
5 kx # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5 kx # suppresses any "Segmentation fault" message there. '((' could
5 kx # trigger a bug in pdksh 5.2.14.
5 kx for as_var in BASH_ENV ENV MAIL MAILPATH
5 kx do eval test x\${$as_var+set} = xset \
5 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5 kx done
5 kx PS1='$ '
5 kx PS2='> '
5 kx PS4='+ '
5 kx
5 kx # NLS nuisances.
5 kx LC_ALL=C
5 kx export LC_ALL
5 kx LANGUAGE=C
5 kx export LANGUAGE
5 kx
5 kx # CDPATH.
5 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5 kx
5 kx
5 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
5 kx # ----------------------------------------
5 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5 kx # script with STATUS, using 1 if that was 0.
5 kx as_fn_error ()
5 kx {
5 kx as_status=$1; test $as_status -eq 0 && as_status=1
5 kx if test "$4"; then
5 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5 kx fi
5 kx $as_echo "$as_me: error: $2" >&2
5 kx as_fn_exit $as_status
5 kx } # as_fn_error
5 kx
5 kx
5 kx # as_fn_set_status STATUS
5 kx # -----------------------
5 kx # Set $? to STATUS, without forking.
5 kx as_fn_set_status ()
5 kx {
5 kx return $1
5 kx } # as_fn_set_status
5 kx
5 kx # as_fn_exit STATUS
5 kx # -----------------
5 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5 kx as_fn_exit ()
5 kx {
5 kx set +e
5 kx as_fn_set_status $1
5 kx exit $1
5 kx } # as_fn_exit
5 kx
5 kx # as_fn_unset VAR
5 kx # ---------------
5 kx # Portably unset VAR.
5 kx as_fn_unset ()
5 kx {
5 kx { eval $1=; unset $1;}
5 kx }
5 kx as_unset=as_fn_unset
5 kx # as_fn_append VAR VALUE
5 kx # ----------------------
5 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
5 kx # advantage of any shell optimizations that allow amortized linear growth over
5 kx # repeated appends, instead of the typical quadratic growth present in naive
5 kx # implementations.
5 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5 kx eval 'as_fn_append ()
5 kx {
5 kx eval $1+=\$2
5 kx }'
5 kx else
5 kx as_fn_append ()
5 kx {
5 kx eval $1=\$$1\$2
5 kx }
5 kx fi # as_fn_append
5 kx
5 kx # as_fn_arith ARG...
5 kx # ------------------
5 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
5 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
5 kx # must be portable across $(()) and expr.
5 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5 kx eval 'as_fn_arith ()
5 kx {
5 kx as_val=$(( $* ))
5 kx }'
5 kx else
5 kx as_fn_arith ()
5 kx {
5 kx as_val=`expr "$@" || test $? -eq 1`
5 kx }
5 kx fi # as_fn_arith
5 kx
5 kx
5 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
5 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
5 kx as_expr=expr
5 kx else
5 kx as_expr=false
5 kx fi
5 kx
5 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5 kx as_basename=basename
5 kx else
5 kx as_basename=false
5 kx fi
5 kx
5 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5 kx as_dirname=dirname
5 kx else
5 kx as_dirname=false
5 kx fi
5 kx
5 kx as_me=`$as_basename -- "$0" ||
5 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5 kx X"$0" : 'X\(//\)$' \| \
5 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X/"$0" |
5 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx
5 kx # Avoid depending upon Character Ranges.
5 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5 kx as_cr_digits='0123456789'
5 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
5 kx
5 kx ECHO_C= ECHO_N= ECHO_T=
5 kx case `echo -n x` in #(((((
5 kx -n*)
5 kx case `echo 'xy\c'` in
5 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5 kx xy) ECHO_C='\c';;
5 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5 kx ECHO_T=' ';;
5 kx esac;;
5 kx *)
5 kx ECHO_N='-n';;
5 kx esac
5 kx
5 kx rm -f conf$$ conf$$.exe conf$$.file
5 kx if test -d conf$$.dir; then
5 kx rm -f conf$$.dir/conf$$.file
5 kx else
5 kx rm -f conf$$.dir
5 kx mkdir conf$$.dir 2>/dev/null
5 kx fi
5 kx if (echo >conf$$.file) 2>/dev/null; then
5 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s='ln -s'
5 kx # ... but there are two gotchas:
5 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5 kx # In both cases, we have to default to `cp -pR'.
5 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5 kx as_ln_s='cp -pR'
5 kx elif ln conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s=ln
5 kx else
5 kx as_ln_s='cp -pR'
5 kx fi
5 kx else
5 kx as_ln_s='cp -pR'
5 kx fi
5 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5 kx rmdir conf$$.dir 2>/dev/null
5 kx
5 kx
5 kx # as_fn_mkdir_p
5 kx # -------------
5 kx # Create "$as_dir" as a directory, including parents if necessary.
5 kx as_fn_mkdir_p ()
5 kx {
5 kx
5 kx case $as_dir in #(
5 kx -*) as_dir=./$as_dir;;
5 kx esac
5 kx test -d "$as_dir" || eval $as_mkdir_p || {
5 kx as_dirs=
5 kx while :; do
5 kx case $as_dir in #(
5 kx *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5 kx *) as_qdir=$as_dir;;
5 kx esac
5 kx as_dirs="'$as_qdir' $as_dirs"
5 kx as_dir=`$as_dirname -- "$as_dir" ||
5 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$as_dir" : 'X\(//\)[^/]' \| \
5 kx X"$as_dir" : 'X\(//\)$' \| \
5 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$as_dir" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx test -d "$as_dir" && break
5 kx done
5 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
5 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5 kx
5 kx
5 kx } # as_fn_mkdir_p
5 kx if mkdir -p . 2>/dev/null; then
5 kx as_mkdir_p='mkdir -p "$as_dir"'
5 kx else
5 kx test -d ./-p && rmdir ./-p
5 kx as_mkdir_p=false
5 kx fi
5 kx
5 kx
5 kx # as_fn_executable_p FILE
5 kx # -----------------------
5 kx # Test if FILE is an executable regular file.
5 kx as_fn_executable_p ()
5 kx {
5 kx test -f "$1" && test -x "$1"
5 kx } # as_fn_executable_p
5 kx as_test_x='test -x'
5 kx as_executable_p=as_fn_executable_p
5 kx
5 kx # Sed expression to map a string onto a valid CPP name.
5 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx # Sed expression to map a string onto a valid variable name.
5 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx
5 kx exec 6>&1
5 kx ## ----------------------------------- ##
5 kx ## Main body of $CONFIG_STATUS script. ##
5 kx ## ----------------------------------- ##
5 kx _ASEOF
5 kx test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx # Save the log message, to keep $0 and so on meaningful, and to
5 kx # report actual input values of CONFIG_FILES etc. instead of their
5 kx # values after options handling.
5 kx ac_log="
5 kx This file was extended by PostgreSQL $as_me 14.1, which was
5 kx generated by GNU Autoconf 2.69. Invocation command line was
5 kx
5 kx CONFIG_FILES = $CONFIG_FILES
5 kx CONFIG_HEADERS = $CONFIG_HEADERS
5 kx CONFIG_LINKS = $CONFIG_LINKS
5 kx CONFIG_COMMANDS = $CONFIG_COMMANDS
5 kx $ $0 $@
5 kx
5 kx on `(hostname || uname -n) 2>/dev/null | sed 1q`
5 kx "
5 kx
5 kx _ACEOF
5 kx
5 kx case $ac_config_files in *"
5 kx "*) set x $ac_config_files; shift; ac_config_files=$*;;
5 kx esac
5 kx
5 kx case $ac_config_headers in *"
5 kx "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5 kx esac
5 kx
5 kx
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx # Files that config.status was made for.
5 kx config_files="$ac_config_files"
5 kx config_headers="$ac_config_headers"
5 kx config_links="$ac_config_links"
5 kx config_commands="$ac_config_commands"
5 kx
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx ac_cs_usage="\
5 kx \`$as_me' instantiates files and other configuration actions
5 kx from templates according to the current configuration. Unless the files
5 kx and actions are specified as TAGs, all are instantiated by default.
5 kx
5 kx Usage: $0 [OPTION]... [TAG]...
5 kx
5 kx -h, --help print this help, then exit
5 kx -V, --version print version number and configuration settings, then exit
5 kx --config print configuration, then exit
5 kx -q, --quiet, --silent
5 kx do not print progress messages
5 kx -d, --debug don't remove temporary files
5 kx --recheck update $as_me by reconfiguring in the same conditions
5 kx --file=FILE[:TEMPLATE]
5 kx instantiate the configuration file FILE
5 kx --header=FILE[:TEMPLATE]
5 kx instantiate the configuration header FILE
5 kx
5 kx Configuration files:
5 kx $config_files
5 kx
5 kx Configuration headers:
5 kx $config_headers
5 kx
5 kx Configuration links:
5 kx $config_links
5 kx
5 kx Configuration commands:
5 kx $config_commands
5 kx
5 kx Report bugs to <pgsql-bugs@lists.postgresql.org>.
5 kx PostgreSQL home page: <https://www.postgresql.org/>."
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5 kx ac_cs_version="\\
5 kx PostgreSQL config.status 14.1
5 kx configured by $0, generated by GNU Autoconf 2.69,
5 kx with options \\"\$ac_cs_config\\"
5 kx
5 kx Copyright (C) 2012 Free Software Foundation, Inc.
5 kx This config.status script is free software; the Free Software Foundation
5 kx gives unlimited permission to copy, distribute and modify it."
5 kx
5 kx ac_pwd='$ac_pwd'
5 kx srcdir='$srcdir'
5 kx INSTALL='$INSTALL'
5 kx MKDIR_P='$MKDIR_P'
5 kx AWK='$AWK'
5 kx test -n "\$AWK" || AWK=awk
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx # The default lists apply if the user does not specify any file.
5 kx ac_need_defaults=:
5 kx while test $# != 0
5 kx do
5 kx case $1 in
5 kx --*=?*)
5 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
5 kx ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5 kx ac_shift=:
5 kx ;;
5 kx --*=)
5 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
5 kx ac_optarg=
5 kx ac_shift=:
5 kx ;;
5 kx *)
5 kx ac_option=$1
5 kx ac_optarg=$2
5 kx ac_shift=shift
5 kx ;;
5 kx esac
5 kx
5 kx case $ac_option in
5 kx # Handling of the options.
5 kx -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5 kx ac_cs_recheck=: ;;
5 kx --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5 kx $as_echo "$ac_cs_version"; exit ;;
5 kx --config | --confi | --conf | --con | --co | --c )
5 kx $as_echo "$ac_cs_config"; exit ;;
5 kx --debug | --debu | --deb | --de | --d | -d )
5 kx debug=: ;;
5 kx --file | --fil | --fi | --f )
5 kx $ac_shift
5 kx case $ac_optarg in
5 kx *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx '') as_fn_error $? "missing file argument" ;;
5 kx esac
5 kx as_fn_append CONFIG_FILES " '$ac_optarg'"
5 kx ac_need_defaults=false;;
5 kx --header | --heade | --head | --hea )
5 kx $ac_shift
5 kx case $ac_optarg in
5 kx *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx esac
5 kx as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5 kx ac_need_defaults=false;;
5 kx --he | --h)
5 kx # Conflict between --help and --header
5 kx as_fn_error $? "ambiguous option: \`$1'
5 kx Try \`$0 --help' for more information.";;
5 kx --help | --hel | -h )
5 kx $as_echo "$ac_cs_usage"; exit ;;
5 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5 kx | -silent | --silent | --silen | --sile | --sil | --si | --s)
5 kx ac_cs_silent=: ;;
5 kx
5 kx # This is an error.
5 kx -*) as_fn_error $? "unrecognized option: \`$1'
5 kx Try \`$0 --help' for more information." ;;
5 kx
5 kx *) as_fn_append ac_config_targets " $1"
5 kx ac_need_defaults=false ;;
5 kx
5 kx esac
5 kx shift
5 kx done
5 kx
5 kx ac_configure_extra_args=
5 kx
5 kx if $ac_cs_silent; then
5 kx exec 6>/dev/null
5 kx ac_configure_extra_args="$ac_configure_extra_args --silent"
5 kx fi
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx if \$ac_cs_recheck; then
5 kx set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5 kx shift
5 kx \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5 kx CONFIG_SHELL='$SHELL'
5 kx export CONFIG_SHELL
5 kx exec "\$@"
5 kx fi
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx exec 5>>config.log
5 kx {
5 kx echo
5 kx sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5 kx ## Running $as_me. ##
5 kx _ASBOX
5 kx $as_echo "$ac_log"
5 kx } >&5
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx
5 kx # Handling of arguments.
5 kx for ac_config_target in $ac_config_targets
5 kx do
5 kx case $ac_config_target in
5 kx "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
5 kx "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
5 kx "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
5 kx "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
5 kx "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
5 kx "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
5 kx "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
5 kx "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
5 kx "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
5 kx "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
5 kx "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
5 kx
5 kx *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5 kx esac
5 kx done
5 kx
5 kx
5 kx # If the user did not use the arguments to specify the items to instantiate,
5 kx # then the envvar interface is used. Set only those that are not.
5 kx # We use the long form for the default assignment because of an extremely
5 kx # bizarre bug on SunOS 4.1.3.
5 kx if $ac_need_defaults; then
5 kx test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5 kx test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5 kx test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5 kx test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5 kx fi
5 kx
5 kx # Have a temporary directory for convenience. Make it in the build tree
5 kx # simply because there is no reason against having it here, and in addition,
5 kx # creating and moving files from /tmp can sometimes cause problems.
5 kx # Hook for its removal unless debugging.
5 kx # Note that there is a small window in which the directory will not be cleaned:
5 kx # after its creation but before its name has been assigned to `$tmp'.
5 kx $debug ||
5 kx {
5 kx tmp= ac_tmp=
5 kx trap 'exit_status=$?
5 kx : "${ac_tmp:=$tmp}"
5 kx { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5 kx ' 0
5 kx trap 'as_fn_exit 1' 1 2 13 15
5 kx }
5 kx # Create a (secure) tmp directory for tmp files.
5 kx
5 kx {
5 kx tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5 kx test -d "$tmp"
5 kx } ||
5 kx {
5 kx tmp=./conf$$-$RANDOM
5 kx (umask 077 && mkdir "$tmp")
5 kx } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5 kx ac_tmp=$tmp
5 kx
5 kx # Set up the scripts for CONFIG_FILES section.
5 kx # No need to generate them if there are no CONFIG_FILES.
5 kx # This happens for instance with `./config.status config.h'.
5 kx if test -n "$CONFIG_FILES"; then
5 kx
5 kx
5 kx ac_cr=`echo X | tr X '\015'`
5 kx # On cygwin, bash can eat \r inside `` if the user requested igncr.
5 kx # But we know of no other shell where ac_cr would be empty at this
5 kx # point, so we can use a bashism as a fallback.
5 kx if test "x$ac_cr" = x; then
5 kx eval ac_cr=\$\'\\r\'
5 kx fi
5 kx ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5 kx if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5 kx ac_cs_awk_cr='\\r'
5 kx else
5 kx ac_cs_awk_cr=$ac_cr
5 kx fi
5 kx
5 kx echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5 kx _ACEOF
5 kx
5 kx
5 kx {
5 kx echo "cat >conf$$subs.awk <<_ACEOF" &&
5 kx echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5 kx echo "_ACEOF"
5 kx } >conf$$subs.sh ||
5 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5 kx ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5 kx ac_delim='%!_!# '
5 kx for ac_last_try in false false false false false :; do
5 kx . ./conf$$subs.sh ||
5 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5 kx
5 kx ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5 kx if test $ac_delim_n = $ac_delim_num; then
5 kx break
5 kx elif $ac_last_try; then
5 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5 kx else
5 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5 kx fi
5 kx done
5 kx rm -f conf$$subs.sh
5 kx
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5 kx _ACEOF
5 kx sed -n '
5 kx h
5 kx s/^/S["/; s/!.*/"]=/
5 kx p
5 kx g
5 kx s/^[^!]*!//
5 kx :repl
5 kx t repl
5 kx s/'"$ac_delim"'$//
5 kx t delim
5 kx :nl
5 kx h
5 kx s/\(.\{148\}\)..*/\1/
5 kx t more1
5 kx s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5 kx p
5 kx n
5 kx b repl
5 kx :more1
5 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5 kx p
5 kx g
5 kx s/.\{148\}//
5 kx t nl
5 kx :delim
5 kx h
5 kx s/\(.\{148\}\)..*/\1/
5 kx t more2
5 kx s/["\\]/\\&/g; s/^/"/; s/$/"/
5 kx p
5 kx b
5 kx :more2
5 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5 kx p
5 kx g
5 kx s/.\{148\}//
5 kx t delim
5 kx ' <conf$$subs.awk | sed '
5 kx /^[^""]/{
5 kx N
5 kx s/\n//
5 kx }
5 kx ' >>$CONFIG_STATUS || ac_write_fail=1
5 kx rm -f conf$$subs.awk
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx _ACAWK
5 kx cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5 kx for (key in S) S_is_set[key] = 1
5 kx FS = ""
5 kx
5 kx }
5 kx {
5 kx line = $ 0
5 kx nfields = split(line, field, "@")
5 kx substed = 0
5 kx len = length(field[1])
5 kx for (i = 2; i < nfields; i++) {
5 kx key = field[i]
5 kx keylen = length(key)
5 kx if (S_is_set[key]) {
5 kx value = S[key]
5 kx line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5 kx len += length(value) + length(field[++i])
5 kx substed = 1
5 kx } else
5 kx len += 1 + keylen
5 kx }
5 kx
5 kx print line
5 kx }
5 kx
5 kx _ACAWK
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5 kx sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5 kx else
5 kx cat
5 kx fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5 kx || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5 kx _ACEOF
5 kx
5 kx # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5 kx # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5 kx # trailing colons and then remove the whole line if VPATH becomes empty
5 kx # (actually we leave an empty line to preserve line numbers).
5 kx if test "x$srcdir" = x.; then
5 kx ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5 kx h
5 kx s///
5 kx s/^/:/
5 kx s/[ ]*$/:/
5 kx s/:\$(srcdir):/:/g
5 kx s/:\${srcdir}:/:/g
5 kx s/:@srcdir@:/:/g
5 kx s/^:*//
5 kx s/:*$//
5 kx x
5 kx s/\(=[ ]*\).*/\1/
5 kx G
5 kx s/\n//
5 kx s/^[^=]*=[ ]*$//
5 kx }'
5 kx fi
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx fi # test -n "$CONFIG_FILES"
5 kx
5 kx # Set up the scripts for CONFIG_HEADERS section.
5 kx # No need to generate them if there are no CONFIG_HEADERS.
5 kx # This happens for instance with `./config.status Makefile'.
5 kx if test -n "$CONFIG_HEADERS"; then
5 kx cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5 kx BEGIN {
5 kx _ACEOF
5 kx
5 kx # Transform confdefs.h into an awk script `defines.awk', embedded as
5 kx # here-document in config.status, that substitutes the proper values into
5 kx # config.h.in to produce config.h.
5 kx
5 kx # Create a delimiter string that does not exist in confdefs.h, to ease
5 kx # handling of long lines.
5 kx ac_delim='%!_!# '
5 kx for ac_last_try in false false :; do
5 kx ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5 kx if test -z "$ac_tt"; then
5 kx break
5 kx elif $ac_last_try; then
5 kx as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5 kx else
5 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5 kx fi
5 kx done
5 kx
5 kx # For the awk script, D is an array of macro values keyed by name,
5 kx # likewise P contains macro parameters if any. Preserve backslash
5 kx # newline sequences.
5 kx
5 kx ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5 kx sed -n '
5 kx s/.\{148\}/&'"$ac_delim"'/g
5 kx t rset
5 kx :rset
5 kx s/^[ ]*#[ ]*define[ ][ ]*/ /
5 kx t def
5 kx d
5 kx :def
5 kx s/\\$//
5 kx t bsnl
5 kx s/["\\]/\\&/g
5 kx s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5 kx D["\1"]=" \3"/p
5 kx s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5 kx d
5 kx :bsnl
5 kx s/["\\]/\\&/g
5 kx s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5 kx D["\1"]=" \3\\\\\\n"\\/p
5 kx t cont
5 kx s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5 kx t cont
5 kx d
5 kx :cont
5 kx n
5 kx s/.\{148\}/&'"$ac_delim"'/g
5 kx t clear
5 kx :clear
5 kx s/\\$//
5 kx t bsnlc
5 kx s/["\\]/\\&/g; s/^/"/; s/$/"/p
5 kx d
5 kx :bsnlc
5 kx s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5 kx b cont
5 kx ' <confdefs.h | sed '
5 kx s/'"$ac_delim"'/"\\\
5 kx "/g' >>$CONFIG_STATUS || ac_write_fail=1
5 kx
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx for (key in D) D_is_set[key] = 1
5 kx FS = ""
5 kx }
5 kx /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5 kx line = \$ 0
5 kx split(line, arg, " ")
5 kx if (arg[1] == "#") {
5 kx defundef = arg[2]
5 kx mac1 = arg[3]
5 kx } else {
5 kx defundef = substr(arg[1], 2)
5 kx mac1 = arg[2]
5 kx }
5 kx split(mac1, mac2, "(") #)
5 kx macro = mac2[1]
5 kx prefix = substr(line, 1, index(line, defundef) - 1)
5 kx if (D_is_set[macro]) {
5 kx # Preserve the white space surrounding the "#".
5 kx print prefix "define", macro P[macro] D[macro]
5 kx next
5 kx } else {
5 kx # Replace #undef with comments. This is necessary, for example,
5 kx # in the case of _POSIX_SOURCE, which is predefined and required
5 kx # on some systems where configure will not decide to define it.
5 kx if (defundef == "undef") {
5 kx print "/*", prefix defundef, macro, "*/"
5 kx next
5 kx }
5 kx }
5 kx }
5 kx { print }
5 kx _ACAWK
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5 kx fi # test -n "$CONFIG_HEADERS"
5 kx
5 kx
5 kx eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
5 kx shift
5 kx for ac_tag
5 kx do
5 kx case $ac_tag in
5 kx :[FHLC]) ac_mode=$ac_tag; continue;;
5 kx esac
5 kx case $ac_mode$ac_tag in
5 kx :[FHL]*:*);;
5 kx :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5 kx :[FH]-) ac_tag=-:-;;
5 kx :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5 kx esac
5 kx ac_save_IFS=$IFS
5 kx IFS=:
5 kx set x $ac_tag
5 kx IFS=$ac_save_IFS
5 kx shift
5 kx ac_file=$1
5 kx shift
5 kx
5 kx case $ac_mode in
5 kx :L) ac_source=$1;;
5 kx :[FH])
5 kx ac_file_inputs=
5 kx for ac_f
5 kx do
5 kx case $ac_f in
5 kx -) ac_f="$ac_tmp/stdin";;
5 kx *) # Look for the file first in the build tree, then in the source tree
5 kx # (if the path is not absolute). The absolute path cannot be DOS-style,
5 kx # because $ac_f cannot contain `:'.
5 kx test -f "$ac_f" ||
5 kx case $ac_f in
5 kx [\\/$]*) false;;
5 kx *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5 kx esac ||
5 kx as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5 kx esac
5 kx case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5 kx as_fn_append ac_file_inputs " '$ac_f'"
5 kx done
5 kx
5 kx # Let's still pretend it is `configure' which instantiates (i.e., don't
5 kx # use $as_me), people would be surprised to read:
5 kx # /* config.h. Generated by config.status. */
5 kx configure_input='Generated from '`
5 kx $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5 kx `' by configure.'
5 kx if test x"$ac_file" != x-; then
5 kx configure_input="$ac_file. $configure_input"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5 kx $as_echo "$as_me: creating $ac_file" >&6;}
5 kx fi
5 kx # Neutralize special characters interpreted by sed in replacement strings.
5 kx case $configure_input in #(
5 kx *\&* | *\|* | *\\* )
5 kx ac_sed_conf_input=`$as_echo "$configure_input" |
5 kx sed 's/[\\\\&|]/\\\\&/g'`;; #(
5 kx *) ac_sed_conf_input=$configure_input;;
5 kx esac
5 kx
5 kx case $ac_tag in
5 kx *:-:* | *:-) cat >"$ac_tmp/stdin" \
5 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx
5 kx ac_dir=`$as_dirname -- "$ac_file" ||
5 kx $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$ac_file" : 'X\(//\)[^/]' \| \
5 kx X"$ac_file" : 'X\(//\)$' \| \
5 kx X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$ac_file" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx as_dir="$ac_dir"; as_fn_mkdir_p
5 kx ac_builddir=.
5 kx
5 kx case "$ac_dir" in
5 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *)
5 kx ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5 kx # A ".." for each directory in $ac_dir_suffix.
5 kx ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5 kx case $ac_top_builddir_sub in
5 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5 kx esac ;;
5 kx esac
5 kx ac_abs_top_builddir=$ac_pwd
5 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
5 kx # for backward compatibility:
5 kx ac_top_builddir=$ac_top_build_prefix
5 kx
5 kx case $srcdir in
5 kx .) # We are building in place.
5 kx ac_srcdir=.
5 kx ac_top_srcdir=$ac_top_builddir_sub
5 kx ac_abs_top_srcdir=$ac_pwd ;;
5 kx [\\/]* | ?:[\\/]* ) # Absolute name.
5 kx ac_srcdir=$srcdir$ac_dir_suffix;
5 kx ac_top_srcdir=$srcdir
5 kx ac_abs_top_srcdir=$srcdir ;;
5 kx *) # Relative name.
5 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
5 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5 kx esac
5 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5 kx
5 kx
5 kx case $ac_mode in
5 kx :F)
5 kx #
5 kx # CONFIG_FILE
5 kx #
5 kx
5 kx case $INSTALL in
5 kx [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5 kx *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5 kx esac
5 kx ac_MKDIR_P=$MKDIR_P
5 kx case $MKDIR_P in
5 kx [\\/$]* | ?:[\\/]* ) ;;
5 kx */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5 kx esac
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx # If the template does not know about datarootdir, expand it.
5 kx # FIXME: This hack should be removed a few years after 2.60.
5 kx ac_datarootdir_hack=; ac_datarootdir_seen=
5 kx ac_sed_dataroot='
5 kx /datarootdir/ {
5 kx p
5 kx q
5 kx }
5 kx /@datadir@/p
5 kx /@docdir@/p
5 kx /@infodir@/p
5 kx /@localedir@/p
5 kx /@mandir@/p'
5 kx case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5 kx *datarootdir*) ac_datarootdir_seen=yes;;
5 kx *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5 kx $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx ac_datarootdir_hack='
5 kx s&@datadir@&$datadir&g
5 kx s&@docdir@&$docdir&g
5 kx s&@infodir@&$infodir&g
5 kx s&@localedir@&$localedir&g
5 kx s&@mandir@&$mandir&g
5 kx s&\\\${datarootdir}&$datarootdir&g' ;;
5 kx esac
5 kx _ACEOF
5 kx
5 kx # Neutralize VPATH when `$srcdir' = `.'.
5 kx # Shell code in configure.ac might set extrasub.
5 kx # FIXME: do we really want to maintain this feature?
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx ac_sed_extra="$ac_vpsub
5 kx $extrasub
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx :t
5 kx /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5 kx s|@configure_input@|$ac_sed_conf_input|;t t
5 kx s&@top_builddir@&$ac_top_builddir_sub&;t t
5 kx s&@top_build_prefix@&$ac_top_build_prefix&;t t
5 kx s&@srcdir@&$ac_srcdir&;t t
5 kx s&@abs_srcdir@&$ac_abs_srcdir&;t t
5 kx s&@top_srcdir@&$ac_top_srcdir&;t t
5 kx s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5 kx s&@builddir@&$ac_builddir&;t t
5 kx s&@abs_builddir@&$ac_abs_builddir&;t t
5 kx s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5 kx s&@INSTALL@&$ac_INSTALL&;t t
5 kx s&@MKDIR_P@&$ac_MKDIR_P&;t t
5 kx $ac_datarootdir_hack
5 kx "
5 kx eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5 kx >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 kx
5 kx test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5 kx { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5 kx { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5 kx "$ac_tmp/out"`; test -z "$ac_out"; } &&
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5 kx which seems to be undefined. Please make sure it is defined" >&5
5 kx $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5 kx which seems to be undefined. Please make sure it is defined" >&2;}
5 kx
5 kx rm -f "$ac_tmp/stdin"
5 kx case $ac_file in
5 kx -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5 kx *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5 kx esac \
5 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 kx ;;
5 kx :H)
5 kx #
5 kx # CONFIG_HEADER
5 kx #
5 kx if test x"$ac_file" != x-; then
5 kx {
5 kx $as_echo "/* $configure_input */" \
5 kx && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5 kx } >"$ac_tmp/config.h" \
5 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 kx if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5 kx $as_echo "$as_me: $ac_file is unchanged" >&6;}
5 kx else
5 kx rm -f "$ac_file"
5 kx mv "$ac_tmp/config.h" "$ac_file" \
5 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 kx fi
5 kx else
5 kx $as_echo "/* $configure_input */" \
5 kx && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5 kx || as_fn_error $? "could not create -" "$LINENO" 5
5 kx fi
5 kx ;;
5 kx :L)
5 kx #
5 kx # CONFIG_LINK
5 kx #
5 kx
5 kx if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
5 kx :
5 kx else
5 kx # Prefer the file from the source tree if names are identical.
5 kx if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
5 kx ac_source=$srcdir/$ac_source
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
5 kx $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
5 kx
5 kx if test ! -r "$ac_source"; then
5 kx as_fn_error $? "$ac_source: file not found" "$LINENO" 5
5 kx fi
5 kx rm -f "$ac_file"
5 kx
5 kx # Try a relative symlink, then a hard link, then a copy.
5 kx case $ac_source in
5 kx [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
5 kx *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
5 kx esac
5 kx ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
5 kx ln "$ac_source" "$ac_file" 2>/dev/null ||
5 kx cp -p "$ac_source" "$ac_file" ||
5 kx as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
5 kx fi
5 kx ;;
5 kx :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5 kx $as_echo "$as_me: executing $ac_file commands" >&6;}
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx case $ac_file$ac_mode in
5 kx "check_win32_symlinks":C)
5 kx # Links sometimes fail undetected on Mingw -
5 kx # so here we detect it and warn the user
5 kx for FILE in $CONFIG_LINKS
5 kx do
5 kx # test -e works for symlinks in the MinGW console
5 kx test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
5 kx $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
5 kx done
5 kx ;;
5 kx "src/include/pg_config.h":H)
5 kx # Update timestamp for pg_config.h (see Makefile.global)
5 kx echo >src/include/stamp-h
5 kx ;;
5 kx "src/include/pg_config_ext.h":H)
5 kx # Update timestamp for pg_config_ext.h (see Makefile.global)
5 kx echo >src/include/stamp-ext-h
5 kx ;;
5 kx "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
5 kx
5 kx esac
5 kx done # for ac_tag
5 kx
5 kx
5 kx as_fn_exit 0
5 kx _ACEOF
5 kx ac_clean_files=$ac_clean_files_save
5 kx
5 kx test $ac_write_fail = 0 ||
5 kx as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5 kx
5 kx
5 kx # configure is writing to config.log, and then calls config.status.
5 kx # config.status does its own redirection, appending to config.log.
5 kx # Unfortunately, on DOS this fails, as config.log is still kept open
5 kx # by configure, so config.status won't be able to write to it; its
5 kx # output is simply discarded. So we exec the FD to /dev/null,
5 kx # effectively closing config.log, so it can be properly (re)opened and
5 kx # appended to by config.status. When coming back to configure, we
5 kx # need to make the FD available again.
5 kx if test "$no_create" != yes; then
5 kx ac_cs_success=:
5 kx ac_config_status_args=
5 kx test "$silent" = yes &&
5 kx ac_config_status_args="$ac_config_status_args --quiet"
5 kx exec 5>/dev/null
5 kx $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5 kx exec 5>>config.log
5 kx # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5 kx # would make configure fail if this is the last instruction.
5 kx $ac_cs_success || as_fn_exit 1
5 kx fi
5 kx if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5 kx $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5 kx fi
5 kx