The unittest.sh script tried to execute the unit tests when cmocka
development libraries was available, but kyua, the execution engine,
was not. Now, both need to be installed in the system.
(cherry picked from commit 762a3c866e)
27963 lines
762 KiB
Bash
Executable File
27963 lines
762 KiB
Bash
Executable File
#! /bin/sh
|
|
# Copyright (C) 1996-2020 Internet Systems Consortium, Inc. ("ISC")
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
# -----------------------------------------------------------------------------
|
|
#
|
|
# Guess values for system-dependent variables and create Makefiles.
|
|
# Generated by GNU Autoconf 2.69 for BIND 9.11.
|
|
#
|
|
# Report bugs to <info@isc.org>.
|
|
#
|
|
#
|
|
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
|
#
|
|
#
|
|
# This configure script is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy, distribute and modify it.
|
|
## -------------------- ##
|
|
## M4sh Initialization. ##
|
|
## -------------------- ##
|
|
|
|
# Be more Bourne compatible
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
|
emulate sh
|
|
NULLCMD=:
|
|
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
|
# is contrary to our usage. Disable this feature.
|
|
alias -g '${1+"$@"}'='"$@"'
|
|
setopt NO_GLOB_SUBST
|
|
else
|
|
case `(set -o) 2>/dev/null` in #(
|
|
*posix*) :
|
|
set -o posix ;; #(
|
|
*) :
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
|
|
as_nl='
|
|
'
|
|
export as_nl
|
|
# Printing a long string crashes Solaris 7 /usr/bin/printf.
|
|
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
|
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
# Prefer a ksh shell builtin over an external printf program on Solaris,
|
|
# but without wasting forks for bash or zsh.
|
|
if test -z "$BASH_VERSION$ZSH_VERSION" \
|
|
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
as_echo='print -r --'
|
|
as_echo_n='print -rn --'
|
|
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
as_echo='printf %s\n'
|
|
as_echo_n='printf %s'
|
|
else
|
|
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
|
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
|
as_echo_n='/usr/ucb/echo -n'
|
|
else
|
|
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
|
as_echo_n_body='eval
|
|
arg=$1;
|
|
case $arg in #(
|
|
*"$as_nl"*)
|
|
expr "X$arg" : "X\\(.*\\)$as_nl";
|
|
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
|
esac;
|
|
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
|
'
|
|
export as_echo_n_body
|
|
as_echo_n='sh -c $as_echo_n_body as_echo'
|
|
fi
|
|
export as_echo_body
|
|
as_echo='sh -c $as_echo_body as_echo'
|
|
fi
|
|
|
|
# The user is always right.
|
|
if test "${PATH_SEPARATOR+set}" != set; then
|
|
PATH_SEPARATOR=:
|
|
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
|
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
|
PATH_SEPARATOR=';'
|
|
}
|
|
fi
|
|
|
|
|
|
# IFS
|
|
# We need space, tab and new line, in precisely that order. Quoting is
|
|
# there to prevent editors from complaining about space-tab.
|
|
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
# splitting by setting IFS to empty value.)
|
|
IFS=" "" $as_nl"
|
|
|
|
# Find who we are. Look in the path if we contain no directory separator.
|
|
as_myself=
|
|
case $0 in #((
|
|
*[\\/]* ) as_myself=$0 ;;
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
# in which case we are not to be found in the path.
|
|
if test "x$as_myself" = x; then
|
|
as_myself=$0
|
|
fi
|
|
if test ! -f "$as_myself"; then
|
|
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Unset variables that we do not need and which cause bugs (e.g. in
|
|
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
|
# suppresses any "Segmentation fault" message there. '((' could
|
|
# trigger a bug in pdksh 5.2.14.
|
|
for as_var in BASH_ENV ENV MAIL MAILPATH
|
|
do eval test x\${$as_var+set} = xset \
|
|
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
|
done
|
|
PS1='$ '
|
|
PS2='> '
|
|
PS4='+ '
|
|
|
|
# NLS nuisances.
|
|
LC_ALL=C
|
|
export LC_ALL
|
|
LANGUAGE=C
|
|
export LANGUAGE
|
|
|
|
# CDPATH.
|
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
|
|
# Use a proper internal environment variable to ensure we don't fall
|
|
# into an infinite loop, continuously re-executing ourselves.
|
|
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
|
_as_can_reexec=no; export _as_can_reexec;
|
|
# We cannot yet assume a decent shell, so we have to provide a
|
|
# neutralization value for shells without unset; and this also
|
|
# works around shells that cannot unset nonexistent variables.
|
|
# Preserve -v and -x to the replacement shell.
|
|
BASH_ENV=/dev/null
|
|
ENV=/dev/null
|
|
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
|
case $- in # ((((
|
|
*v*x* | *x*v* ) as_opts=-vx ;;
|
|
*v* ) as_opts=-v ;;
|
|
*x* ) as_opts=-x ;;
|
|
* ) as_opts= ;;
|
|
esac
|
|
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
|
# Admittedly, this is quite paranoid, since all the known shells bail
|
|
# out after a failed `exec'.
|
|
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
|
as_fn_exit 255
|
|
fi
|
|
# We don't want this to propagate to other subprocesses.
|
|
{ _as_can_reexec=; unset _as_can_reexec;}
|
|
if test "x$CONFIG_SHELL" = x; then
|
|
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
|
emulate sh
|
|
NULLCMD=:
|
|
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
|
# is contrary to our usage. Disable this feature.
|
|
alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
|
setopt NO_GLOB_SUBST
|
|
else
|
|
case \`(set -o) 2>/dev/null\` in #(
|
|
*posix*) :
|
|
set -o posix ;; #(
|
|
*) :
|
|
;;
|
|
esac
|
|
fi
|
|
"
|
|
as_required="as_fn_return () { (exit \$1); }
|
|
as_fn_success () { as_fn_return 0; }
|
|
as_fn_failure () { as_fn_return 1; }
|
|
as_fn_ret_success () { return 0; }
|
|
as_fn_ret_failure () { return 1; }
|
|
|
|
exitcode=0
|
|
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
|
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
|
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
|
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
|
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
|
|
|
else
|
|
exitcode=1; echo positional parameters were not saved.
|
|
fi
|
|
test x\$exitcode = x0 || exit 1
|
|
test -x / || exit 1"
|
|
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
|
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
|
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
|
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
|
|
|
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
|
|
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
|
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
|
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
|
PATH=/empty FPATH=/empty; export PATH FPATH
|
|
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
|
|
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
|
|
test \$(( 1 + 1 )) = 2 || exit 1"
|
|
if (eval "$as_required") 2>/dev/null; then :
|
|
as_have_required=yes
|
|
else
|
|
as_have_required=no
|
|
fi
|
|
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
|
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
as_found=false
|
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
as_found=:
|
|
case $as_dir in #(
|
|
/*)
|
|
for as_base in sh bash ksh sh5; do
|
|
# Try only shells that exist, to save several forks.
|
|
as_shell=$as_dir/$as_base
|
|
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
|
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
|
CONFIG_SHELL=$as_shell as_have_required=yes
|
|
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
|
break 2
|
|
fi
|
|
fi
|
|
done;;
|
|
esac
|
|
as_found=false
|
|
done
|
|
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
|
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
|
CONFIG_SHELL=$SHELL as_have_required=yes
|
|
fi; }
|
|
IFS=$as_save_IFS
|
|
|
|
|
|
if test "x$CONFIG_SHELL" != x; then :
|
|
export CONFIG_SHELL
|
|
# We cannot yet assume a decent shell, so we have to provide a
|
|
# neutralization value for shells without unset; and this also
|
|
# works around shells that cannot unset nonexistent variables.
|
|
# Preserve -v and -x to the replacement shell.
|
|
BASH_ENV=/dev/null
|
|
ENV=/dev/null
|
|
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
|
case $- in # ((((
|
|
*v*x* | *x*v* ) as_opts=-vx ;;
|
|
*v* ) as_opts=-v ;;
|
|
*x* ) as_opts=-x ;;
|
|
* ) as_opts= ;;
|
|
esac
|
|
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
|
# Admittedly, this is quite paranoid, since all the known shells bail
|
|
# out after a failed `exec'.
|
|
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
|
exit 255
|
|
fi
|
|
|
|
if test x$as_have_required = xno; then :
|
|
$as_echo "$0: This script requires a shell more modern than all"
|
|
$as_echo "$0: the shells that I found on your system."
|
|
if test x${ZSH_VERSION+set} = xset ; then
|
|
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
|
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
|
else
|
|
$as_echo "$0: Please tell bug-autoconf@gnu.org and info@isc.org about
|
|
$0: your system, including any error possibly output before
|
|
$0: this message. Then install a modern shell, or manually
|
|
$0: run the script under such a shell if you do have one."
|
|
fi
|
|
exit 1
|
|
fi
|
|
fi
|
|
fi
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
|
export SHELL
|
|
# Unset more variables known to interfere with behavior of common tools.
|
|
CLICOLOR_FORCE= GREP_OPTIONS=
|
|
unset CLICOLOR_FORCE GREP_OPTIONS
|
|
|
|
## --------------------- ##
|
|
## M4sh Shell Functions. ##
|
|
## --------------------- ##
|
|
# as_fn_unset VAR
|
|
# ---------------
|
|
# Portably unset VAR.
|
|
as_fn_unset ()
|
|
{
|
|
{ eval $1=; unset $1;}
|
|
}
|
|
as_unset=as_fn_unset
|
|
|
|
# as_fn_set_status STATUS
|
|
# -----------------------
|
|
# Set $? to STATUS, without forking.
|
|
as_fn_set_status ()
|
|
{
|
|
return $1
|
|
} # as_fn_set_status
|
|
|
|
# as_fn_exit STATUS
|
|
# -----------------
|
|
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
|
as_fn_exit ()
|
|
{
|
|
set +e
|
|
as_fn_set_status $1
|
|
exit $1
|
|
} # as_fn_exit
|
|
|
|
# as_fn_mkdir_p
|
|
# -------------
|
|
# Create "$as_dir" as a directory, including parents if necessary.
|
|
as_fn_mkdir_p ()
|
|
{
|
|
|
|
case $as_dir in #(
|
|
-*) as_dir=./$as_dir;;
|
|
esac
|
|
test -d "$as_dir" || eval $as_mkdir_p || {
|
|
as_dirs=
|
|
while :; do
|
|
case $as_dir in #(
|
|
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
|
*) as_qdir=$as_dir;;
|
|
esac
|
|
as_dirs="'$as_qdir' $as_dirs"
|
|
as_dir=`$as_dirname -- "$as_dir" ||
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
|
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
|
$as_echo X"$as_dir" |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)[^/].*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\).*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
s/.*/./; q'`
|
|
test -d "$as_dir" && break
|
|
done
|
|
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
|
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
|
|
|
|
|
} # as_fn_mkdir_p
|
|
|
|
# as_fn_executable_p FILE
|
|
# -----------------------
|
|
# Test if FILE is an executable regular file.
|
|
as_fn_executable_p ()
|
|
{
|
|
test -f "$1" && test -x "$1"
|
|
} # as_fn_executable_p
|
|
# as_fn_append VAR VALUE
|
|
# ----------------------
|
|
# Append the text in VALUE to the end of the definition contained in VAR. Take
|
|
# advantage of any shell optimizations that allow amortized linear growth over
|
|
# repeated appends, instead of the typical quadratic growth present in naive
|
|
# implementations.
|
|
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
|
eval 'as_fn_append ()
|
|
{
|
|
eval $1+=\$2
|
|
}'
|
|
else
|
|
as_fn_append ()
|
|
{
|
|
eval $1=\$$1\$2
|
|
}
|
|
fi # as_fn_append
|
|
|
|
# as_fn_arith ARG...
|
|
# ------------------
|
|
# Perform arithmetic evaluation on the ARGs, and store the result in the
|
|
# global $as_val. Take advantage of shells that can avoid forks. The arguments
|
|
# must be portable across $(()) and expr.
|
|
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
|
eval 'as_fn_arith ()
|
|
{
|
|
as_val=$(( $* ))
|
|
}'
|
|
else
|
|
as_fn_arith ()
|
|
{
|
|
as_val=`expr "$@" || test $? -eq 1`
|
|
}
|
|
fi # as_fn_arith
|
|
|
|
|
|
# as_fn_error STATUS ERROR [LINENO LOG_FD]
|
|
# ----------------------------------------
|
|
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
|
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
|
# script with STATUS, using 1 if that was 0.
|
|
as_fn_error ()
|
|
{
|
|
as_status=$1; test $as_status -eq 0 && as_status=1
|
|
if test "$4"; then
|
|
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
|
fi
|
|
$as_echo "$as_me: error: $2" >&2
|
|
as_fn_exit $as_status
|
|
} # as_fn_error
|
|
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
as_expr=expr
|
|
else
|
|
as_expr=false
|
|
fi
|
|
|
|
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
as_basename=basename
|
|
else
|
|
as_basename=false
|
|
fi
|
|
|
|
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
|
as_dirname=dirname
|
|
else
|
|
as_dirname=false
|
|
fi
|
|
|
|
as_me=`$as_basename -- "$0" ||
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
X"$0" : 'X\(//\)$' \| \
|
|
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
$as_echo X/"$0" |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\/\(\/\/\)$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\/\(\/\).*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
s/.*/./; q'`
|
|
|
|
# Avoid depending upon Character Ranges.
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
|
as_cr_digits='0123456789'
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|
|
|
|
|
as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
|
as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
|
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
|
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
|
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
|
sed -n '
|
|
p
|
|
/[$]LINENO/=
|
|
' <$as_myself |
|
|
sed '
|
|
s/[$]LINENO.*/&-/
|
|
t lineno
|
|
b
|
|
:lineno
|
|
N
|
|
:loop
|
|
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
|
t loop
|
|
s/-\n.*//
|
|
' >$as_me.lineno &&
|
|
chmod +x "$as_me.lineno" ||
|
|
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
|
|
|
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
|
# already done that, so ensure we don't try to do so again and fall
|
|
# in an infinite loop. This has already happened in practice.
|
|
_as_can_reexec=no; export _as_can_reexec
|
|
# Don't try to exec as it changes $[0], causing all sort of problems
|
|
# (the dirname of $[0] is not the place where we might find the
|
|
# original and so on. Autoconf is especially sensitive to this).
|
|
. "./$as_me.lineno"
|
|
# Exit status is that of the last command.
|
|
exit
|
|
}
|
|
|
|
ECHO_C= ECHO_N= ECHO_T=
|
|
case `echo -n x` in #(((((
|
|
-n*)
|
|
case `echo 'xy\c'` in
|
|
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
|
xy) ECHO_C='\c';;
|
|
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
|
ECHO_T=' ';;
|
|
esac;;
|
|
*)
|
|
ECHO_N='-n';;
|
|
esac
|
|
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
|
if test -d conf$$.dir; then
|
|
rm -f conf$$.dir/conf$$.file
|
|
else
|
|
rm -f conf$$.dir
|
|
mkdir conf$$.dir 2>/dev/null
|
|
fi
|
|
if (echo >conf$$.file) 2>/dev/null; then
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
|
as_ln_s='ln -s'
|
|
# ... but there are two gotchas:
|
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
# In both cases, we have to default to `cp -pR'.
|
|
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
|
as_ln_s='cp -pR'
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then
|
|
as_ln_s=ln
|
|
else
|
|
as_ln_s='cp -pR'
|
|
fi
|
|
else
|
|
as_ln_s='cp -pR'
|
|
fi
|
|
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
|
rmdir conf$$.dir 2>/dev/null
|
|
|
|
if mkdir -p . 2>/dev/null; then
|
|
as_mkdir_p='mkdir -p "$as_dir"'
|
|
else
|
|
test -d ./-p && rmdir ./-p
|
|
as_mkdir_p=false
|
|
fi
|
|
|
|
as_test_x='test -x'
|
|
as_executable_p=as_fn_executable_p
|
|
|
|
# Sed expression to map a string onto a valid CPP name.
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
|
|
|
# Sed expression to map a string onto a valid variable name.
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
|
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
|
|
|
|
|
test -n "$DJDIR" || exec 7<&0 </dev/null
|
|
exec 6>&1
|
|
|
|
# Name of the host.
|
|
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
|
# so uname gets run too.
|
|
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
|
|
#
|
|
# Initializations.
|
|
#
|
|
ac_default_prefix=/usr/local
|
|
ac_clean_files=
|
|
ac_config_libobj_dir=.
|
|
LIBOBJS=
|
|
cross_compiling=no
|
|
subdirs=
|
|
MFLAGS=
|
|
MAKEFLAGS=
|
|
|
|
# Identity of this package.
|
|
PACKAGE_NAME='BIND'
|
|
PACKAGE_TARNAME='bind'
|
|
PACKAGE_VERSION='9.11'
|
|
PACKAGE_STRING='BIND 9.11'
|
|
PACKAGE_BUGREPORT='info@isc.org'
|
|
PACKAGE_URL='https://www.isc.org/downloads/BIND/'
|
|
|
|
# Factoring default headers for most tests.
|
|
ac_includes_default="\
|
|
#include <stdio.h>
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
# include <sys/types.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_STAT_H
|
|
# include <sys/stat.h>
|
|
#endif
|
|
#ifdef STDC_HEADERS
|
|
# include <stdlib.h>
|
|
# include <stddef.h>
|
|
#else
|
|
# ifdef HAVE_STDLIB_H
|
|
# include <stdlib.h>
|
|
# endif
|
|
#endif
|
|
#ifdef HAVE_STRING_H
|
|
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
|
# include <memory.h>
|
|
# endif
|
|
# include <string.h>
|
|
#endif
|
|
#ifdef HAVE_STRINGS_H
|
|
# include <strings.h>
|
|
#endif
|
|
#ifdef HAVE_INTTYPES_H
|
|
# include <inttypes.h>
|
|
#endif
|
|
#ifdef HAVE_STDINT_H
|
|
# include <stdint.h>
|
|
#endif
|
|
#ifdef HAVE_UNISTD_H
|
|
# include <unistd.h>
|
|
#endif"
|
|
|
|
ac_subst_vars='LTLIBOBJS
|
|
LIBOBJS
|
|
BUILD_LIBS
|
|
BUILD_LDFLAGS
|
|
BUILD_CPPFLAGS
|
|
BUILD_CFLAGS
|
|
BUILD_CC
|
|
DLZ_DRIVER_MYSQL_LIBS
|
|
DLZ_DRIVER_MYSQL_INCLUDES
|
|
DLZ_SYSTEM_TEST
|
|
DLZ_DRIVER_OBJS
|
|
DLZ_DRIVER_SRCS
|
|
DLZ_DRIVER_LIBS
|
|
DLZ_DRIVER_INCLUDES
|
|
CONTRIB_DLZ
|
|
MYSQL_CONFIG
|
|
PG_CONFIG
|
|
SO_TARGETS
|
|
SO_STRIP
|
|
SO_LD
|
|
SO_LDFLAGS
|
|
SO_CFLAGS
|
|
SO
|
|
BIND9_CONFIGARGS
|
|
BIND9_SRCID
|
|
BIND9_VERSIONSHORT
|
|
BIND9_VERSIONSTRING
|
|
BIND9_MAJOR
|
|
BIND9_VERSION
|
|
BIND9_DESCRIPTION
|
|
BIND9_PRODUCT
|
|
BIND9_IRS_BUILDINCLUDE
|
|
BIND9_BIND9_BUILDINCLUDE
|
|
BIND9_LWRES_BUILDINCLUDE
|
|
BIND9_DNS_BUILDINCLUDE
|
|
BIND9_ISCCFG_BUILDINCLUDE
|
|
BIND9_ISCCC_BUILDINCLUDE
|
|
BIND9_ISC_BUILDINCLUDE
|
|
BIND9_TOP_BUILDDIR
|
|
LD_WRAP_TESTS
|
|
UNITTESTS
|
|
KYUA
|
|
CMOCKA_LIBS
|
|
CMOCKA_CFLAGS
|
|
LIBIDN2_LIBS
|
|
LIBIDN2_CFLAGS
|
|
IDNKIT_LIBS
|
|
XSLT_DOCBOOK_MAKETOC_XHTML
|
|
XSLT_DOCBOOK_MAKETOC_HTML
|
|
XSLT_DOCBOOK_CHUNKTOC_XHTML
|
|
XSLT_DOCBOOK_CHUNKTOC_HTML
|
|
XSLT_DOCBOOK_CHUNK_XHTML
|
|
XSLT_DOCBOOK_CHUNK_HTML
|
|
XSLT_DOCBOOK_STYLE_MAN
|
|
XSLT_DOCBOOK_STYLE_XHTML
|
|
XSLT_DOCBOOK_STYLE_HTML
|
|
CURL
|
|
DOXYGEN
|
|
XMLLINT
|
|
XSLTPROC
|
|
PANDOC
|
|
W3M
|
|
DBLATEX
|
|
PDFLATEX
|
|
LATEX
|
|
DNSTAPTARGETS
|
|
DNSTAPOBJS
|
|
DNSTAPSRCS
|
|
DNSTAP
|
|
FSTRM_CAPTURE
|
|
PROTOC_C
|
|
ISC_PLATFORM_BUSYWAITNOP
|
|
ISC_ARCH_DIR
|
|
ISC_PLATFORM_USEMACASM
|
|
ISC_PLATFORM_USESTDASM
|
|
ISC_PLATFORM_USEOSFASM
|
|
ISC_PLATFORM_USEGCCASM
|
|
ISC_PLATFORM_HAVEATOMICSTOREQ
|
|
ISC_PLATFORM_HAVEATOMICSTORE
|
|
ISC_PLATFORM_HAVECMPXCHG
|
|
ISC_PLATFORM_HAVEXADDQ
|
|
ISC_PLATFORM_HAVEXADD
|
|
ISC_PLATFORM_HAVESTDATOMIC
|
|
ISC_PLATFORM_HAVEIFNAMETOINDEX
|
|
ISC_PLATFORM_HAVESTRINGSH
|
|
ISC_PLATFORM_BRACEPTHREADONCEINIT
|
|
IRS_PLATFORM_USEDECLSPEC
|
|
LWRES_PLATFORM_USEDECLSPEC
|
|
ISC_PLATFORM_USEDECLSPEC
|
|
ISC_PLATFORM_RLIMITTYPE
|
|
ISC_PLATFORM_HAVESTATNSEC
|
|
ISC_PLATFORM_HAVESYSUNH
|
|
DST_EXTRA_SRCS
|
|
DST_EXTRA_OBJS
|
|
USE_ISC_SPNEGO
|
|
ISC_EXTRA_SRCS
|
|
ISC_EXTRA_OBJS
|
|
LWRES_PLATFORM_NEEDVSNPRINTF
|
|
LWRES_PLATFORM_NEEDSPRINTF
|
|
ISC_PLATFORM_NEEDVSNPRINTF
|
|
ISC_PLATFORM_NEEDSPRINTF
|
|
ISC_PLATFORM_NEEDFPRINTF
|
|
ISC_PLATFORM_NEEDPRINTF
|
|
READLINE_LIB
|
|
ISC_PLATFORM_NEEDSTRCASESTR
|
|
ISC_PLATFORM_NEEDSTRLCAT
|
|
LWRES_PLATFORM_NEEDSTRLCPY
|
|
ISC_PLATFORM_NEEDSTRLCPY
|
|
GENRANDOMLIB
|
|
LWRES_PLATFORM_NEEDSTRTOUL
|
|
ISC_PLATFORM_NEEDSTRTOUL
|
|
ISC_PLATFORM_NEEDMEMMOVE
|
|
ISC_PLATFORM_NEEDSTRSEP
|
|
ISC_IRS_GETNAMEINFOSOCKLEN
|
|
ISC_LWRES_GETNAMEINFOPROTO
|
|
ISC_LWRES_GETADDRINFOPROTO
|
|
ISC_LWRES_GETIPNODEPROTO
|
|
ISC_LWRES_NEEDHERRNO
|
|
ISC_LWRES_GETHOSTBYADDRVOID
|
|
ISC_LWRES_ENDNETENTINT
|
|
ISC_LWRES_SETNETENTINT
|
|
ISC_LWRES_GETNETBYADDRINADDR
|
|
ISC_LWRES_ENDHOSTENTINT
|
|
ISC_LWRES_SETHOSTENTINT
|
|
ISC_LWRES_NEEDRRSETINFO
|
|
ISC_IRS_NEEDADDRINFO
|
|
ISC_LWRES_NEEDADDRINFO
|
|
ISC_PLATFORM_HAVETFO
|
|
ISC_PLATFORM_NEEDPORTT
|
|
ISC_PLATFORM_MSGHDRFLAVOR
|
|
LWRES_PLATFORM_HAVESALEN
|
|
ISC_PLATFORM_HAVESALEN
|
|
ISC_PLATFORM_NEEDPTON
|
|
ISC_PLATFORM_NEEDNTOP
|
|
ISC_PLATFORM_HAVEIF_LADDRCONF
|
|
ISC_PLATFORM_HAVEIF_LADDRREQ
|
|
ISC_PLATFORM_HAVESCOPEID
|
|
LWRES_HAVE_SIN6_SCOPE_ID
|
|
ISC_IPV6_C
|
|
ISC_ISCIPV6_O
|
|
ISC_IPV6_O
|
|
ISC_IPV6_H
|
|
ISC_PLATFORM_HAVESOCKADDRSTORAGE
|
|
ISC_PLATFORM_FIXIN6ISADDR
|
|
ISC_PLATFORM_HAVEIN6PKTINFO
|
|
LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK
|
|
ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
|
|
LWRES_PLATFORM_NEEDIN6ADDRANY
|
|
ISC_PLATFORM_NEEDIN6ADDRANY
|
|
LWRES_PLATFORM_HAVEINADDR6
|
|
ISC_PLATFORM_HAVEINADDR6
|
|
LWRES_PLATFORM_NEEDNETINET6IN6H
|
|
ISC_PLATFORM_NEEDNETINET6IN6H
|
|
LWRES_PLATFORM_NEEDNETINETIN6H
|
|
ISC_PLATFORM_NEEDNETINETIN6H
|
|
LWRES_PLATFORM_HAVEIPV6
|
|
ISC_PLATFORM_HAVEIPV6
|
|
BIND9_CO_RULE
|
|
LIBTOOL_IN_MAIN
|
|
LIBTOOL_ALLOW_UNDEFINED
|
|
LIBTOOL_MODE_UNINSTALL
|
|
LIBTOOL_MODE_LINK
|
|
LIBTOOL_MODE_INSTALL
|
|
LIBTOOL_MODE_COMPILE
|
|
LIBTOOL_MKDEP_SED
|
|
SA
|
|
A
|
|
O
|
|
ALWAYS_MAKE_SYMTABLE
|
|
MKSYMTBL_PROGRAM
|
|
ISC_PLATFORM_USEBACKTRACE
|
|
PURIFY
|
|
purify_path
|
|
IRIX_DNSSEC_WARNINGS_HACK
|
|
MKDEPPROG
|
|
MKDEPCFLAGS
|
|
MKDEPCC
|
|
ZLIB
|
|
JSONSTATS
|
|
XMLSTATS
|
|
LIBXML2_LIBS
|
|
LIBXML2_CFLAGS
|
|
NZDTARGETS
|
|
NZDSRCS
|
|
NZD_TOOLS
|
|
PKCS11_TEST
|
|
PKCS11_ED25519
|
|
PKCS11_GOST
|
|
PKCS11_ECDSA
|
|
CRYPTO
|
|
PKCS11LINKSRCS
|
|
PKCS11LINKOBJS
|
|
PKCS11_PROVIDER
|
|
ISC_ISCPK11_API_O
|
|
ISC_ISCPK11_API_C
|
|
ISC_PK11_RESULT_O
|
|
ISC_PK11_RESULT_C
|
|
ISC_PK11_API_O
|
|
ISC_PK11_API_C
|
|
ISC_PK11_O
|
|
ISC_PK11_C
|
|
PKCS11_ENGINE
|
|
PKCS11_TOOLS
|
|
USE_PKCS11
|
|
ISC_OPENSSL_LIBS
|
|
ISC_OPENSSL_INC
|
|
ISC_PLATFORM_OPENSSLHASH
|
|
ISC_PLATFORM_WANTAES
|
|
OPENSSL_GOST
|
|
OPENSSL_ED25519
|
|
OPENSSL_ECDSA
|
|
OPENSSLLINKSRCS
|
|
OPENSSLLINKOBJS
|
|
OPENSSLGOSTLINKSRCS
|
|
OPENSSLGOSTLINKOBJS
|
|
OPENSSLEDDSALINKSRCS
|
|
OPENSSLEDDSALINKOBJS
|
|
OPENSSLECDSALINKSRCS
|
|
OPENSSLECDSALINKOBJS
|
|
DST_OPENSSL_INC
|
|
INSTALL_LIBRARY
|
|
ISC_THREAD_DIR
|
|
THREADOPTSRCS
|
|
THREADOPTOBJS
|
|
ISC_PLATFORM_USETHREADS
|
|
ALWAYS_DEFINES
|
|
CHECK_DSA
|
|
DNS_CRYPTO_LIBS
|
|
DNS_GSSAPI_LIBS
|
|
DST_GSSAPI_INC
|
|
USE_GSSAPI
|
|
ISC_PLATFORM_KRB5HEADER
|
|
ISC_PLATFORM_GSSAPI_KRB5_HEADER
|
|
ISC_PLATFORM_GSSAPIHEADER
|
|
ISC_PLATFORM_HAVEGSSAPI
|
|
KRB5_CONFIG
|
|
GEOIPLINKOBJS
|
|
GEOIPLINKSRCS
|
|
GEOIP2LINKOBJS
|
|
GEOIP2LINKSRCS
|
|
MAXMINDDB_PREFIX
|
|
MAXMINDDB_LIBS
|
|
MAXMINDDB_CFLAGS
|
|
LWRES_PLATFORM_NEEDSYSSELECTH
|
|
ISC_PLATFORM_NEEDSYSSELECTH
|
|
ISC_PLATFORM_HAVEDEVPOLL
|
|
ISC_PLATFORM_HAVEEPOLL
|
|
ISC_PLATFORM_HAVEKQUEUE
|
|
ISC_PLATFORM_HAVELIFCONF
|
|
ISC_PLATFORM_NORETURN_POST
|
|
ISC_PLATFORM_NORETURN_PRE
|
|
ISC_PLATFORM_HAVELONGLONG
|
|
ISC_SOCKADDR_LEN_T
|
|
expanded_sysconfdir
|
|
PYTHON_INSTALL_LIB
|
|
PYTHON_INSTALL_DIR
|
|
PYTHON_TOOLS
|
|
KEYMGR
|
|
COVERAGE
|
|
CHECKDS
|
|
PYTHON
|
|
PERL
|
|
ETAGS
|
|
LN
|
|
ARFLAGS
|
|
XTARGETS
|
|
PKG_CONFIG_LIBDIR
|
|
PKG_CONFIG_PATH
|
|
PKG_CONFIG
|
|
BACKTRACECFLAGS
|
|
CCNOOPT
|
|
CCOPT
|
|
STD_CWARNINGS
|
|
STD_CDEFINES
|
|
STD_CINCLUDES
|
|
INSTALL_DATA
|
|
INSTALL_SCRIPT
|
|
INSTALL_PROGRAM
|
|
CPP
|
|
LT_SYS_LIBRARY_PATH
|
|
OTOOL64
|
|
OTOOL
|
|
LIPO
|
|
NMEDIT
|
|
DSYMUTIL
|
|
MANIFEST_TOOL
|
|
AWK
|
|
RANLIB
|
|
STRIP
|
|
ac_ct_AR
|
|
AR
|
|
DLLTOOL
|
|
OBJDUMP
|
|
LN_S
|
|
NM
|
|
ac_ct_DUMPBIN
|
|
DUMPBIN
|
|
LD
|
|
FGREP
|
|
EGREP
|
|
GREP
|
|
SED
|
|
OBJEXT
|
|
EXEEXT
|
|
ac_ct_CC
|
|
CPPFLAGS
|
|
LDFLAGS
|
|
CFLAGS
|
|
CC
|
|
LIBTOOL
|
|
LFS_LIBS
|
|
LFS_LDFLAGS
|
|
LFS_CFLAGS
|
|
SET_MAKE
|
|
host_os
|
|
host_vendor
|
|
host_cpu
|
|
host
|
|
build_os
|
|
build_vendor
|
|
build_cpu
|
|
build
|
|
target_alias
|
|
host_alias
|
|
build_alias
|
|
LIBS
|
|
ECHO_T
|
|
ECHO_N
|
|
ECHO_C
|
|
DEFS
|
|
mandir
|
|
localedir
|
|
libdir
|
|
psdir
|
|
pdfdir
|
|
dvidir
|
|
htmldir
|
|
infodir
|
|
docdir
|
|
oldincludedir
|
|
includedir
|
|
localstatedir
|
|
sharedstatedir
|
|
sysconfdir
|
|
datadir
|
|
datarootdir
|
|
libexecdir
|
|
sbindir
|
|
bindir
|
|
program_transform_name
|
|
prefix
|
|
exec_prefix
|
|
PACKAGE_URL
|
|
PACKAGE_BUGREPORT
|
|
PACKAGE_STRING
|
|
PACKAGE_VERSION
|
|
PACKAGE_TARNAME
|
|
PACKAGE_NAME
|
|
PATH_SEPARATOR
|
|
SHELL'
|
|
ac_subst_files='BIND9_MAKE_INCLUDES
|
|
BIND9_MAKE_RULES
|
|
LIBISC_API
|
|
LIBISCCC_API
|
|
LIBISCCFG_API
|
|
LIBDNS_API
|
|
LIBDNS_MAPAPI
|
|
LIBBIND9_API
|
|
LIBLWRES_API
|
|
LIBIRS_API
|
|
DLZ_DRIVER_RULES'
|
|
ac_user_opts='
|
|
enable_option_checking
|
|
enable_shared
|
|
enable_static
|
|
with_pic
|
|
enable_fast_install
|
|
with_aix_soname
|
|
with_gnu_ld
|
|
with_sysroot
|
|
enable_libtool_lock
|
|
enable_libbind
|
|
enable_buffer_useinline
|
|
enable_warn_shadow
|
|
enable_warn_error
|
|
enable_developer
|
|
enable_afl
|
|
enable_seccomp
|
|
with_python
|
|
with_python_install_dir
|
|
enable_kqueue
|
|
enable_epoll
|
|
enable_devpoll
|
|
with_geoip
|
|
with_geoip2
|
|
with_gssapi
|
|
with_randomdev
|
|
enable_threads
|
|
with_locktype
|
|
with_libtool
|
|
enable_native_pkcs11
|
|
with_openssl
|
|
with_pkcs11
|
|
with_ecdsa
|
|
with_gost
|
|
with_eddsa
|
|
with_aes
|
|
enable_openssl_hash
|
|
with_cc_alg
|
|
with_lmdb
|
|
with_libxml2
|
|
with_libjson
|
|
with_zlib
|
|
enable_largefile
|
|
with_purify
|
|
with_gperftools_profiler
|
|
enable_backtrace
|
|
enable_symtable
|
|
enable_ipv6
|
|
with_kame
|
|
enable_tcp_fastopen
|
|
enable_getifaddrs
|
|
with_readline
|
|
enable_isc_spnego
|
|
enable_chroot
|
|
enable_linux_caps
|
|
with_rlimtype
|
|
enable_atomic
|
|
enable_fixed_rrset
|
|
enable_rpz_nsip
|
|
enable_rpz_nsdname
|
|
enable_filter_aaaa
|
|
enable_dnstap
|
|
with_protobuf_c
|
|
with_libfstrm
|
|
with_docbook_xsl
|
|
with_idnkit
|
|
with_libiconv
|
|
with_iconv
|
|
with_idnlib
|
|
with_libidn2
|
|
with_cmocka
|
|
with_tuning
|
|
enable_querytrace
|
|
with_dlopen
|
|
with_dlz_postgres
|
|
with_dlz_mysql
|
|
with_dlz_bdb
|
|
with_dlz_filesystem
|
|
with_dlz_ldap
|
|
with_dlz_odbc
|
|
with_dlz_stub
|
|
with_make_clean
|
|
enable_full_report
|
|
'
|
|
ac_precious_vars='build_alias
|
|
host_alias
|
|
target_alias
|
|
CC
|
|
CFLAGS
|
|
LDFLAGS
|
|
LIBS
|
|
CPPFLAGS
|
|
LT_SYS_LIBRARY_PATH
|
|
CPP
|
|
PKG_CONFIG
|
|
PKG_CONFIG_PATH
|
|
PKG_CONFIG_LIBDIR
|
|
PYTHON
|
|
MAXMINDDB_CFLAGS
|
|
MAXMINDDB_LIBS
|
|
MAXMINDDB_PREFIX
|
|
LIBXML2_CFLAGS
|
|
LIBXML2_LIBS
|
|
CMOCKA_CFLAGS
|
|
CMOCKA_LIBS
|
|
KYUA'
|
|
|
|
|
|
# Initialize some variables set by options.
|
|
ac_init_help=
|
|
ac_init_version=false
|
|
ac_unrecognized_opts=
|
|
ac_unrecognized_sep=
|
|
# The variables have the same names as the options, with
|
|
# dashes changed to underlines.
|
|
cache_file=/dev/null
|
|
exec_prefix=NONE
|
|
no_create=
|
|
no_recursion=
|
|
prefix=NONE
|
|
program_prefix=NONE
|
|
program_suffix=NONE
|
|
program_transform_name=s,x,x,
|
|
silent=
|
|
site=
|
|
srcdir=
|
|
verbose=
|
|
x_includes=NONE
|
|
x_libraries=NONE
|
|
|
|
# Installation directory options.
|
|
# These are left unexpanded so users can "make install exec_prefix=/foo"
|
|
# and all the variables that are supposed to be based on exec_prefix
|
|
# by default will actually change.
|
|
# Use braces instead of parens because sh, perl, etc. also accept them.
|
|
# (The list follows the same order as the GNU Coding Standards.)
|
|
bindir='${exec_prefix}/bin'
|
|
sbindir='${exec_prefix}/sbin'
|
|
libexecdir='${exec_prefix}/libexec'
|
|
datarootdir='${prefix}/share'
|
|
datadir='${datarootdir}'
|
|
sysconfdir='${prefix}/etc'
|
|
sharedstatedir='${prefix}/com'
|
|
localstatedir='${prefix}/var'
|
|
includedir='${prefix}/include'
|
|
oldincludedir='/usr/include'
|
|
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
|
infodir='${datarootdir}/info'
|
|
htmldir='${docdir}'
|
|
dvidir='${docdir}'
|
|
pdfdir='${docdir}'
|
|
psdir='${docdir}'
|
|
libdir='${exec_prefix}/lib'
|
|
localedir='${datarootdir}/locale'
|
|
mandir='${datarootdir}/man'
|
|
|
|
ac_prev=
|
|
ac_dashdash=
|
|
for ac_option
|
|
do
|
|
# If the previous option needs an argument, assign it.
|
|
if test -n "$ac_prev"; then
|
|
eval $ac_prev=\$ac_option
|
|
ac_prev=
|
|
continue
|
|
fi
|
|
|
|
case $ac_option in
|
|
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
|
*=) ac_optarg= ;;
|
|
*) ac_optarg=yes ;;
|
|
esac
|
|
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
|
|
|
case $ac_dashdash$ac_option in
|
|
--)
|
|
ac_dashdash=yes ;;
|
|
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|
ac_prev=bindir ;;
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|
bindir=$ac_optarg ;;
|
|
|
|
-build | --build | --buil | --bui | --bu)
|
|
ac_prev=build_alias ;;
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|
build_alias=$ac_optarg ;;
|
|
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|
ac_prev=cache_file ;;
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|
cache_file=$ac_optarg ;;
|
|
|
|
--config-cache | -C)
|
|
cache_file=config.cache ;;
|
|
|
|
-datadir | --datadir | --datadi | --datad)
|
|
ac_prev=datadir ;;
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=*)
|
|
datadir=$ac_optarg ;;
|
|
|
|
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
|
| --dataroo | --dataro | --datar)
|
|
ac_prev=datarootdir ;;
|
|
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
|
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
|
datarootdir=$ac_optarg ;;
|
|
|
|
-disable-* | --disable-*)
|
|
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
|
# Reject names that are not valid shell variable names.
|
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
as_fn_error $? "invalid feature name: $ac_useropt"
|
|
ac_useropt_orig=$ac_useropt
|
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
case $ac_user_opts in
|
|
*"
|
|
"enable_$ac_useropt"
|
|
"*) ;;
|
|
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
|
ac_unrecognized_sep=', ';;
|
|
esac
|
|
eval enable_$ac_useropt=no ;;
|
|
|
|
-docdir | --docdir | --docdi | --doc | --do)
|
|
ac_prev=docdir ;;
|
|
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
|
docdir=$ac_optarg ;;
|
|
|
|
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
|
ac_prev=dvidir ;;
|
|
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
|
dvidir=$ac_optarg ;;
|
|
|
|
-enable-* | --enable-*)
|
|
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
|
# Reject names that are not valid shell variable names.
|
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
as_fn_error $? "invalid feature name: $ac_useropt"
|
|
ac_useropt_orig=$ac_useropt
|
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
case $ac_user_opts in
|
|
*"
|
|
"enable_$ac_useropt"
|
|
"*) ;;
|
|
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
|
ac_unrecognized_sep=', ';;
|
|
esac
|
|
eval enable_$ac_useropt=\$ac_optarg ;;
|
|
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|
| --exec | --exe | --ex)
|
|
ac_prev=exec_prefix ;;
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|
| --exec=* | --exe=* | --ex=*)
|
|
exec_prefix=$ac_optarg ;;
|
|
|
|
-gas | --gas | --ga | --g)
|
|
# Obsolete; use --with-gas.
|
|
with_gas=yes ;;
|
|
|
|
-help | --help | --hel | --he | -h)
|
|
ac_init_help=long ;;
|
|
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
|
ac_init_help=recursive ;;
|
|
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
|
ac_init_help=short ;;
|
|
|
|
-host | --host | --hos | --ho)
|
|
ac_prev=host_alias ;;
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
|
host_alias=$ac_optarg ;;
|
|
|
|
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
|
ac_prev=htmldir ;;
|
|
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
|
| --ht=*)
|
|
htmldir=$ac_optarg ;;
|
|
|
|
-includedir | --includedir | --includedi | --included | --include \
|
|
| --includ | --inclu | --incl | --inc)
|
|
ac_prev=includedir ;;
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
|
includedir=$ac_optarg ;;
|
|
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
|
ac_prev=infodir ;;
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|
infodir=$ac_optarg ;;
|
|
|
|
-libdir | --libdir | --libdi | --libd)
|
|
ac_prev=libdir ;;
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|
libdir=$ac_optarg ;;
|
|
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|
| --libexe | --libex | --libe)
|
|
ac_prev=libexecdir ;;
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|
| --libexe=* | --libex=* | --libe=*)
|
|
libexecdir=$ac_optarg ;;
|
|
|
|
-localedir | --localedir | --localedi | --localed | --locale)
|
|
ac_prev=localedir ;;
|
|
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
|
localedir=$ac_optarg ;;
|
|
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
|
| --localstate | --localstat | --localsta | --localst | --locals)
|
|
ac_prev=localstatedir ;;
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
|
localstatedir=$ac_optarg ;;
|
|
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|
ac_prev=mandir ;;
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|
mandir=$ac_optarg ;;
|
|
|
|
-nfp | --nfp | --nf)
|
|
# Obsolete; use --without-fp.
|
|
with_fp=no ;;
|
|
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
| --no-cr | --no-c | -n)
|
|
no_create=yes ;;
|
|
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|
no_recursion=yes ;;
|
|
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|
| --oldin | --oldi | --old | --ol | --o)
|
|
ac_prev=oldincludedir ;;
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|
oldincludedir=$ac_optarg ;;
|
|
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|
ac_prev=prefix ;;
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|
prefix=$ac_optarg ;;
|
|
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|
| --program-pre | --program-pr | --program-p)
|
|
ac_prev=program_prefix ;;
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|
program_prefix=$ac_optarg ;;
|
|
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|
| --program-suf | --program-su | --program-s)
|
|
ac_prev=program_suffix ;;
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|
program_suffix=$ac_optarg ;;
|
|
|
|
-program-transform-name | --program-transform-name \
|
|
| --program-transform-nam | --program-transform-na \
|
|
| --program-transform-n | --program-transform- \
|
|
| --program-transform | --program-transfor \
|
|
| --program-transfo | --program-transf \
|
|
| --program-trans | --program-tran \
|
|
| --progr-tra | --program-tr | --program-t)
|
|
ac_prev=program_transform_name ;;
|
|
-program-transform-name=* | --program-transform-name=* \
|
|
| --program-transform-nam=* | --program-transform-na=* \
|
|
| --program-transform-n=* | --program-transform-=* \
|
|
| --program-transform=* | --program-transfor=* \
|
|
| --program-transfo=* | --program-transf=* \
|
|
| --program-trans=* | --program-tran=* \
|
|
| --progr-tra=* | --program-tr=* | --program-t=*)
|
|
program_transform_name=$ac_optarg ;;
|
|
|
|
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
|
ac_prev=pdfdir ;;
|
|
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
|
pdfdir=$ac_optarg ;;
|
|
|
|
-psdir | --psdir | --psdi | --psd | --ps)
|
|
ac_prev=psdir ;;
|
|
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
|
psdir=$ac_optarg ;;
|
|
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
| -silent | --silent | --silen | --sile | --sil)
|
|
silent=yes ;;
|
|
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|
ac_prev=sbindir ;;
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|
| --sbi=* | --sb=*)
|
|
sbindir=$ac_optarg ;;
|
|
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|
| --sharedst | --shareds | --shared | --share | --shar \
|
|
| --sha | --sh)
|
|
ac_prev=sharedstatedir ;;
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|
| --sha=* | --sh=*)
|
|
sharedstatedir=$ac_optarg ;;
|
|
|
|
-site | --site | --sit)
|
|
ac_prev=site ;;
|
|
-site=* | --site=* | --sit=*)
|
|
site=$ac_optarg ;;
|
|
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
ac_prev=srcdir ;;
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|
srcdir=$ac_optarg ;;
|
|
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
|
ac_prev=sysconfdir ;;
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|
sysconfdir=$ac_optarg ;;
|
|
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
|
ac_prev=target_alias ;;
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|
target_alias=$ac_optarg ;;
|
|
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|
verbose=yes ;;
|
|
|
|
-version | --version | --versio | --versi | --vers | -V)
|
|
ac_init_version=: ;;
|
|
|
|
-with-* | --with-*)
|
|
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
|
# Reject names that are not valid shell variable names.
|
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
as_fn_error $? "invalid package name: $ac_useropt"
|
|
ac_useropt_orig=$ac_useropt
|
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
case $ac_user_opts in
|
|
*"
|
|
"with_$ac_useropt"
|
|
"*) ;;
|
|
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
|
ac_unrecognized_sep=', ';;
|
|
esac
|
|
eval with_$ac_useropt=\$ac_optarg ;;
|
|
|
|
-without-* | --without-*)
|
|
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
|
# Reject names that are not valid shell variable names.
|
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
as_fn_error $? "invalid package name: $ac_useropt"
|
|
ac_useropt_orig=$ac_useropt
|
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
case $ac_user_opts in
|
|
*"
|
|
"with_$ac_useropt"
|
|
"*) ;;
|
|
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
|
ac_unrecognized_sep=', ';;
|
|
esac
|
|
eval with_$ac_useropt=no ;;
|
|
|
|
--x)
|
|
# Obsolete; use --with-x.
|
|
with_x=yes ;;
|
|
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|
| --x-incl | --x-inc | --x-in | --x-i)
|
|
ac_prev=x_includes ;;
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|
x_includes=$ac_optarg ;;
|
|
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|
ac_prev=x_libraries ;;
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|
x_libraries=$ac_optarg ;;
|
|
|
|
-*) as_fn_error $? "unrecognized option: \`$ac_option'
|
|
Try \`$0 --help' for more information"
|
|
;;
|
|
|
|
*=*)
|
|
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
|
# Reject names that are not valid shell variable names.
|
|
case $ac_envvar in #(
|
|
'' | [0-9]* | *[!_$as_cr_alnum]* )
|
|
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
|
esac
|
|
eval $ac_envvar=\$ac_optarg
|
|
export $ac_envvar ;;
|
|
|
|
*)
|
|
# FIXME: should be removed in autoconf 3.0.
|
|
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
|
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
|
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
|
;;
|
|
|
|
esac
|
|
done
|
|
|
|
if test -n "$ac_prev"; then
|
|
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
|
as_fn_error $? "missing argument to $ac_option"
|
|
fi
|
|
|
|
if test -n "$ac_unrecognized_opts"; then
|
|
case $enable_option_checking in
|
|
no) ;;
|
|
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
|
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
|
esac
|
|
fi
|
|
|
|
# Check all directory arguments for consistency.
|
|
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
|
datadir sysconfdir sharedstatedir localstatedir includedir \
|
|
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
|
libdir localedir mandir
|
|
do
|
|
eval ac_val=\$$ac_var
|
|
# Remove trailing slashes.
|
|
case $ac_val in
|
|
*/ )
|
|
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
|
eval $ac_var=\$ac_val;;
|
|
esac
|
|
# Be sure to have absolute directory names.
|
|
case $ac_val in
|
|
[\\/$]* | ?:[\\/]* ) continue;;
|
|
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
|
esac
|
|
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
|
done
|
|
|
|
# There might be people who depend on the old broken behavior: `$host'
|
|
# used to hold the argument of --host etc.
|
|
# FIXME: To remove some day.
|
|
build=$build_alias
|
|
host=$host_alias
|
|
target=$target_alias
|
|
|
|
# FIXME: To remove some day.
|
|
if test "x$host_alias" != x; then
|
|
if test "x$build_alias" = x; then
|
|
cross_compiling=maybe
|
|
elif test "x$build_alias" != "x$host_alias"; then
|
|
cross_compiling=yes
|
|
fi
|
|
fi
|
|
|
|
ac_tool_prefix=
|
|
test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
|
|
|
test "$silent" = yes && exec 6>/dev/null
|
|
|
|
|
|
ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
|
ac_ls_di=`ls -di .` &&
|
|
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
|
as_fn_error $? "working directory cannot be determined"
|
|
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
|
as_fn_error $? "pwd does not report name of working directory"
|
|
|
|
|
|
# Find the source files, if location was not specified.
|
|
if test -z "$srcdir"; then
|
|
ac_srcdir_defaulted=yes
|
|
# Try the directory containing this script, then the parent directory.
|
|
ac_confdir=`$as_dirname -- "$as_myself" ||
|
|
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
X"$as_myself" : 'X\(//\)[^/]' \| \
|
|
X"$as_myself" : 'X\(//\)$' \| \
|
|
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
|
$as_echo X"$as_myself" |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)[^/].*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\).*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
s/.*/./; q'`
|
|
srcdir=$ac_confdir
|
|
if test ! -r "$srcdir/$ac_unique_file"; then
|
|
srcdir=..
|
|
fi
|
|
else
|
|
ac_srcdir_defaulted=no
|
|
fi
|
|
if test ! -r "$srcdir/$ac_unique_file"; then
|
|
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
|
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
|
fi
|
|
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
|
ac_abs_confdir=`(
|
|
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
|
pwd)`
|
|
# When building in place, set srcdir=.
|
|
if test "$ac_abs_confdir" = "$ac_pwd"; then
|
|
srcdir=.
|
|
fi
|
|
# Remove unnecessary trailing slashes from srcdir.
|
|
# Double slashes in file names in object file debugging info
|
|
# mess up M-x gdb in Emacs.
|
|
case $srcdir in
|
|
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
|
esac
|
|
for ac_var in $ac_precious_vars; do
|
|
eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
|
eval ac_env_${ac_var}_value=\$${ac_var}
|
|
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
|
eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
|
done
|
|
|
|
#
|
|
# Report the --help message.
|
|
#
|
|
if test "$ac_init_help" = "long"; then
|
|
# Omit some internal or obsolete options to make the list less imposing.
|
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
|
cat <<_ACEOF
|
|
\`configure' configures BIND 9.11 to adapt to many kinds of systems.
|
|
|
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
|
|
|
To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
|
VAR=VALUE. See below for descriptions of some of the useful variables.
|
|
|
|
Defaults for the options are specified in brackets.
|
|
|
|
Configuration:
|
|
-h, --help display this help and exit
|
|
--help=short display options specific to this package
|
|
--help=recursive display the short help of all the included packages
|
|
-V, --version display version information and exit
|
|
-q, --quiet, --silent do not print \`checking ...' messages
|
|
--cache-file=FILE cache test results in FILE [disabled]
|
|
-C, --config-cache alias for \`--cache-file=config.cache'
|
|
-n, --no-create do not create output files
|
|
--srcdir=DIR find the sources in DIR [configure dir or \`..']
|
|
|
|
Installation directories:
|
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
|
[$ac_default_prefix]
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|
[PREFIX]
|
|
|
|
By default, \`make install' will install all the files in
|
|
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
|
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
|
for instance \`--prefix=\$HOME'.
|
|
|
|
For better control, use the options below.
|
|
|
|
Fine tuning of the installation directories:
|
|
--bindir=DIR user executables [EPREFIX/bin]
|
|
--sbindir=DIR system admin executables [EPREFIX/sbin]
|
|
--libexecdir=DIR program executables [EPREFIX/libexec]
|
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
|
--libdir=DIR object code libraries [EPREFIX/lib]
|
|
--includedir=DIR C header files [PREFIX/include]
|
|
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
|
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
|
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
|
--infodir=DIR info documentation [DATAROOTDIR/info]
|
|
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
|
--mandir=DIR man documentation [DATAROOTDIR/man]
|
|
--docdir=DIR documentation root [DATAROOTDIR/doc/bind]
|
|
--htmldir=DIR html documentation [DOCDIR]
|
|
--dvidir=DIR dvi documentation [DOCDIR]
|
|
--pdfdir=DIR pdf documentation [DOCDIR]
|
|
--psdir=DIR ps documentation [DOCDIR]
|
|
_ACEOF
|
|
|
|
cat <<\_ACEOF
|
|
|
|
System types:
|
|
--build=BUILD configure for building on BUILD [guessed]
|
|
--host=HOST cross-compile to build programs to run on HOST [BUILD]
|
|
_ACEOF
|
|
fi
|
|
|
|
if test -n "$ac_init_help"; then
|
|
case $ac_init_help in
|
|
short | recursive ) echo "Configuration of BIND 9.11:";;
|
|
esac
|
|
cat <<\_ACEOF
|
|
|
|
Optional Features:
|
|
--disable-option-checking ignore unrecognized --enable/--with options
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
--enable-shared[=PKGS] build shared libraries [default=yes]
|
|
--enable-static[=PKGS] build static libraries [default=yes]
|
|
--enable-fast-install[=PKGS]
|
|
optimize for fast installation [default=yes]
|
|
--disable-libtool-lock avoid locking (might break parallel builds)
|
|
--enable-libbind deprecated
|
|
--enable-buffer-useinline
|
|
define ISC_BUFFER_USEINLINE when compiling
|
|
[[default=yes]]
|
|
--enable-warn-shadow turn on -Wshadow when compiling
|
|
--enable-warn-error turn on -Werror when compiling
|
|
--enable-developer enable developer build settings
|
|
--enable-afl enable American Fuzzy Lop test harness [default=no]
|
|
--enable-seccomp enable support for libseccomp system call filtering
|
|
[default=no]
|
|
--enable-kqueue use BSD kqueue when available [default=yes]
|
|
--enable-epoll use Linux epoll when available [default=auto]
|
|
--enable-devpoll use /dev/poll when available [default=yes]
|
|
--enable-threads enable multithreading
|
|
--enable-native-pkcs11 use native PKCS11 for all crypto [default=no]
|
|
--enable-openssl-hash use OpenSSL for hash functions [default=no]
|
|
--enable-largefile 64-bit file support
|
|
--enable-backtrace log stack backtrace on abort [default=yes]
|
|
--enable-symtable use internal symbol table for backtrace
|
|
[all|minimal(default)|none]
|
|
--enable-ipv6 use IPv6 [default=autodetect]
|
|
--disable-tcp-fastopen disable TCP Fast Open support [default=autodetect]
|
|
--enable-getifaddrs enable the use of getifaddrs() [yes|no].
|
|
--disable-isc-spnego use SPNEGO from GSSAPI library
|
|
--disable-chroot disable chroot
|
|
--disable-linux-caps disable linux capabilities
|
|
--enable-atomic enable machine specific atomic operations
|
|
[default=autodetect]
|
|
--enable-fixed-rrset enable fixed rrset ordering [default=no]
|
|
--disable-rpz-nsip disable rpz nsip rules [default=enabled]
|
|
--disable-rpz-nsdname disable rpz nsdname rules [default=enabled]
|
|
--enable-filter-aaaa enable filtering of AAAA records [default=no]
|
|
--enable-dnstap enable dnstap support (requires fstrm, protobuf-c)
|
|
--enable-querytrace enable very verbose query trace logging [default=no]
|
|
--enable-full-report report values of all configure options
|
|
|
|
Optional Packages:
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
|
|
both]
|
|
--with-aix-soname=aix|svr4|both
|
|
shared library versioning (aka "SONAME") variant to
|
|
provide on AIX, [default=aix].
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
|
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the
|
|
compiler's sysroot if not specified).
|
|
--with-python=PATH specify path to Python interpreter
|
|
--with-python-install-dir=PATH
|
|
installation directory for Python modules
|
|
--with-geoip=PATH Build with legacy GeoIP support (yes|no|path)
|
|
--with-geoip2=PATH Build with MaxMind GeoIP2 support (auto|yes|no|path)
|
|
[default=no]
|
|
--with-gssapi=PATH|/path/krb5-config
|
|
Specify path for system-supplied GSSAPI
|
|
[default=auto]
|
|
--with-randomdev=PATH Specify path for random device
|
|
--with-locktype=ARG Specify mutex lock type (adaptive or standard)
|
|
--with-libtool use GNU libtool
|
|
--with-openssl=PATH Build with OpenSSL [yes|no|path]. (Crypto is
|
|
required for DNSSEC)
|
|
--with-pkcs11=PATH Build with PKCS11 support [yes|no|path] (PATH is for
|
|
the PKCS11 provider)
|
|
--with-ecdsa Crypto ECDSA
|
|
--with-gost Crypto GOST [yes|no|raw|asn1].
|
|
--with-eddsa Crypto EDDSA [yes|all|no].
|
|
--with-aes Crypto AES
|
|
--with-cc-alg=ALG deprecated
|
|
--with-lmdb=PATH build with LMDB library [yes|no|path]
|
|
--with-libxml2=PATH build with libxml2 library (auto|yes|no|path)
|
|
[default=auto]
|
|
--with-libjson=PATH build with libjson0 library [yes|no|path]
|
|
--with-zlib=PATH build with zlib for HTTP compression [default=yes]
|
|
--with-purify=PATH use Rational purify
|
|
--with-gperftools-profiler
|
|
use gperftools CPU profiler
|
|
--with-kame=PATH use Kame IPv6 [default path /usr/local/v6]
|
|
--with-readline=LIBSPEC specify readline library [default auto]
|
|
|
|
--with-protobuf-c=path Path where protobuf-c is installed, for dnstap
|
|
--with-libfstrm=path Path where libfstrm is installed, for dnstap
|
|
--with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets
|
|
--with-idnkit=PATH enable IDN support using idnkit [yes|no|path]
|
|
--with-libiconv=IPREFIX GNU libiconv are in IPREFIX [default PREFIX]
|
|
--with-iconv=LIBSPEC specify iconv library [default -liconv]
|
|
--with-idnlib=ARG specify libidnkit
|
|
--with-libidn2=PATH enable IDN support using GNU libidn2 [yes|no|path]
|
|
--with-cmocka=no enable cmocka based tests (default is no)
|
|
--with-tuning=ARG Specify server tuning (large or default)
|
|
--with-dlopen=ARG support dynamically loadable DLZ drivers
|
|
--with-dlz-postgres=PATH
|
|
Build with Postgres DLZ driver [yes|no|path].
|
|
(Required to use Postgres with DLZ)
|
|
--with-dlz-mysql=PATH Build with MySQL DLZ driver [yes|no|path]. (Required
|
|
to use MySQL with DLZ)
|
|
--with-dlz-bdb=PATH Build with Berkeley DB DLZ driver [yes|no|path].
|
|
(Required to use Berkeley DB with DLZ)
|
|
--with-dlz-filesystem=ARG
|
|
Build with filesystem DLZ driver [yes|no]. (Required
|
|
to use file system driver with DLZ)
|
|
--with-dlz-ldap=PATH Build with LDAP DLZ driver [yes|no|path]. (Required
|
|
to use LDAP with DLZ)
|
|
--with-dlz-odbc=PATH Build with ODBC DLZ driver [yes|no|path]. (Required
|
|
to use ODBC with DLZ)
|
|
--with-dlz-stub=ARG Build with stub DLZ driver [yes|no]. (Required to
|
|
use stub driver with DLZ)
|
|
--with-make-clean run "make clean" at end of configure [yes|no]
|
|
|
|
Some influential environment variables:
|
|
CC C compiler command
|
|
CFLAGS C compiler flags
|
|
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
|
nonstandard directory <lib dir>
|
|
LIBS libraries to pass to the linker, e.g. -l<library>
|
|
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
|
you have headers in a nonstandard directory <include dir>
|
|
LT_SYS_LIBRARY_PATH
|
|
User-defined run-time library search path.
|
|
CPP C preprocessor
|
|
PKG_CONFIG path to pkg-config utility
|
|
PKG_CONFIG_PATH
|
|
directories to add to pkg-config's search path
|
|
PKG_CONFIG_LIBDIR
|
|
path overriding pkg-config's built-in search path
|
|
PYTHON path to python executable
|
|
MAXMINDDB_CFLAGS
|
|
C compiler flags for MAXMINDDB, overriding pkg-config
|
|
MAXMINDDB_LIBS
|
|
linker flags for MAXMINDDB, overriding pkg-config
|
|
MAXMINDDB_PREFIX
|
|
value of prefix for libmaxminddb, overriding pkg-config
|
|
LIBXML2_CFLAGS
|
|
C compiler flags for LIBXML2, overriding pkg-config
|
|
LIBXML2_LIBS
|
|
linker flags for LIBXML2, overriding pkg-config
|
|
CMOCKA_CFLAGS
|
|
C compiler flags for CMOCKA, overriding pkg-config
|
|
CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
|
|
KYUA path to kyua execution engine
|
|
|
|
Use these variables to override the choices made by `configure' or to help
|
|
it to find libraries and programs with nonstandard names/locations.
|
|
|
|
Report bugs to <info@isc.org>.
|
|
BIND home page: <https://www.isc.org/downloads/BIND/>.
|
|
_ACEOF
|
|
ac_status=$?
|
|
fi
|
|
|
|
if test "$ac_init_help" = "recursive"; then
|
|
# If there are subdirs, report their specific --help.
|
|
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
|
test -d "$ac_dir" ||
|
|
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
|
continue
|
|
ac_builddir=.
|
|
|
|
case "$ac_dir" in
|
|
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
*)
|
|
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
|
# A ".." for each directory in $ac_dir_suffix.
|
|
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
|
case $ac_top_builddir_sub in
|
|
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
esac ;;
|
|
esac
|
|
ac_abs_top_builddir=$ac_pwd
|
|
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
# for backward compatibility:
|
|
ac_top_builddir=$ac_top_build_prefix
|
|
|
|
case $srcdir in
|
|
.) # We are building in place.
|
|
ac_srcdir=.
|
|
ac_top_srcdir=$ac_top_builddir_sub
|
|
ac_abs_top_srcdir=$ac_pwd ;;
|
|
[\\/]* | ?:[\\/]* ) # Absolute name.
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
|
ac_top_srcdir=$srcdir
|
|
ac_abs_top_srcdir=$srcdir ;;
|
|
*) # Relative name.
|
|
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
esac
|
|
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
|
|
cd "$ac_dir" || { ac_status=$?; continue; }
|
|
# Check for guested configure.
|
|
if test -f "$ac_srcdir/configure.gnu"; then
|
|
echo &&
|
|
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
|
elif test -f "$ac_srcdir/configure"; then
|
|
echo &&
|
|
$SHELL "$ac_srcdir/configure" --help=recursive
|
|
else
|
|
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
|
fi || ac_status=$?
|
|
cd "$ac_pwd" || { ac_status=$?; break; }
|
|
done
|
|
fi
|
|
|
|
test -n "$ac_init_help" && exit $ac_status
|
|
if $ac_init_version; then
|
|
cat <<\_ACEOF
|
|
BIND configure 9.11
|
|
generated by GNU Autoconf 2.69
|
|
|
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
|
This configure script is free software; the Free Software Foundation
|
|
gives unlimited permission to copy, distribute and modify it.
|
|
_ACEOF
|
|
exit
|
|
fi
|
|
|
|
## ------------------------ ##
|
|
## Autoconf initialization. ##
|
|
## ------------------------ ##
|
|
|
|
# ac_fn_c_try_compile LINENO
|
|
# --------------------------
|
|
# Try to compile conftest.$ac_ext, and return whether this succeeded.
|
|
ac_fn_c_try_compile ()
|
|
{
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
rm -f conftest.$ac_objext
|
|
if { { ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
(eval "$ac_compile") 2>conftest.err
|
|
ac_status=$?
|
|
if test -s conftest.err; then
|
|
grep -v '^ *+' conftest.err >conftest.er1
|
|
cat conftest.er1 >&5
|
|
mv -f conftest.er1 conftest.err
|
|
fi
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; } && {
|
|
test -z "$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
} && test -s conftest.$ac_objext; then :
|
|
ac_retval=0
|
|
else
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_retval=1
|
|
fi
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
as_fn_set_status $ac_retval
|
|
|
|
} # ac_fn_c_try_compile
|
|
|
|
# ac_fn_c_try_link LINENO
|
|
# -----------------------
|
|
# Try to link conftest.$ac_ext, and return whether this succeeded.
|
|
ac_fn_c_try_link ()
|
|
{
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { { ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
(eval "$ac_link") 2>conftest.err
|
|
ac_status=$?
|
|
if test -s conftest.err; then
|
|
grep -v '^ *+' conftest.err >conftest.er1
|
|
cat conftest.er1 >&5
|
|
mv -f conftest.er1 conftest.err
|
|
fi
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; } && {
|
|
test -z "$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
} && test -s conftest$ac_exeext && {
|
|
test "$cross_compiling" = yes ||
|
|
test -x conftest$ac_exeext
|
|
}; then :
|
|
ac_retval=0
|
|
else
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_retval=1
|
|
fi
|
|
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
|
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
|
# interfere with the next link command; also delete a directory that is
|
|
# left behind by Apple's compiler. We do this before executing the actions.
|
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
as_fn_set_status $ac_retval
|
|
|
|
} # ac_fn_c_try_link
|
|
|
|
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
|
# -------------------------------------------------------
|
|
# Tests whether HEADER exists and can be compiled using the include files in
|
|
# INCLUDES, setting the cache variable VAR accordingly.
|
|
ac_fn_c_check_header_compile ()
|
|
{
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
$as_echo_n "checking for $2... " >&6; }
|
|
if eval \${$3+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
$4
|
|
#include <$2>
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
eval "$3=yes"
|
|
else
|
|
eval "$3=no"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
eval ac_res=\$$3
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
$as_echo "$ac_res" >&6; }
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
|
|
} # ac_fn_c_check_header_compile
|
|
|
|
# ac_fn_c_try_cpp LINENO
|
|
# ----------------------
|
|
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
|
ac_fn_c_try_cpp ()
|
|
{
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
if { { ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
|
ac_status=$?
|
|
if test -s conftest.err; then
|
|
grep -v '^ *+' conftest.err >conftest.er1
|
|
cat conftest.er1 >&5
|
|
mv -f conftest.er1 conftest.err
|
|
fi
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; } > conftest.i && {
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
}; then :
|
|
ac_retval=0
|
|
else
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_retval=1
|
|
fi
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
as_fn_set_status $ac_retval
|
|
|
|
} # ac_fn_c_try_cpp
|
|
|
|
# ac_fn_c_try_run LINENO
|
|
# ----------------------
|
|
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
|
# that executables *can* be run.
|
|
ac_fn_c_try_run ()
|
|
{
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
if { { ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
|
{ { case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; }; then :
|
|
ac_retval=0
|
|
else
|
|
$as_echo "$as_me: program exited with status $ac_status" >&5
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_retval=$ac_status
|
|
fi
|
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
as_fn_set_status $ac_retval
|
|
|
|
} # ac_fn_c_try_run
|
|
|
|
# ac_fn_c_check_func LINENO FUNC VAR
|
|
# ----------------------------------
|
|
# Tests whether FUNC exists, setting the cache variable VAR accordingly
|
|
ac_fn_c_check_func ()
|
|
{
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
$as_echo_n "checking for $2... " >&6; }
|
|
if eval \${$3+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $2 innocuous_$2
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $2 (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $2
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $2 ();
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined __stub_$2 || defined __stub___$2
|
|
choke me
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $2 ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
eval "$3=yes"
|
|
else
|
|
eval "$3=no"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
eval ac_res=\$$3
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
$as_echo "$ac_res" >&6; }
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
|
|
} # ac_fn_c_check_func
|
|
|
|
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
|
# -------------------------------------------
|
|
# Tests whether TYPE exists after having included INCLUDES, setting cache
|
|
# variable VAR accordingly.
|
|
ac_fn_c_check_type ()
|
|
{
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
$as_echo_n "checking for $2... " >&6; }
|
|
if eval \${$3+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
eval "$3=no"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
$4
|
|
int
|
|
main ()
|
|
{
|
|
if (sizeof ($2))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
$4
|
|
int
|
|
main ()
|
|
{
|
|
if (sizeof (($2)))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
else
|
|
eval "$3=yes"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
eval ac_res=\$$3
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
$as_echo "$ac_res" >&6; }
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
|
|
} # ac_fn_c_check_type
|
|
|
|
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
|
# -------------------------------------------------------
|
|
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
|
# the include files in INCLUDES and setting the cache variable VAR
|
|
# accordingly.
|
|
ac_fn_c_check_header_mongrel ()
|
|
{
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
if eval \${$3+:} false; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
$as_echo_n "checking for $2... " >&6; }
|
|
if eval \${$3+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
fi
|
|
eval ac_res=\$$3
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
$as_echo "$ac_res" >&6; }
|
|
else
|
|
# Is the header compilable?
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
|
$as_echo_n "checking $2 usability... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
$4
|
|
#include <$2>
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_header_compiler=yes
|
|
else
|
|
ac_header_compiler=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
|
$as_echo "$ac_header_compiler" >&6; }
|
|
|
|
# Is the header present?
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
|
$as_echo_n "checking $2 presence... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <$2>
|
|
_ACEOF
|
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
|
ac_header_preproc=yes
|
|
else
|
|
ac_header_preproc=no
|
|
fi
|
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
|
$as_echo "$ac_header_preproc" >&6; }
|
|
|
|
# So? What about this header?
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
|
yes:no: )
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
|
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
|
;;
|
|
no:yes:* )
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
|
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
|
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
|
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
|
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
|
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
|
( $as_echo "## --------------------------- ##
|
|
## Report this to info@isc.org ##
|
|
## --------------------------- ##"
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
|
;;
|
|
esac
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
$as_echo_n "checking for $2... " >&6; }
|
|
if eval \${$3+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
eval "$3=\$ac_header_compiler"
|
|
fi
|
|
eval ac_res=\$$3
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
$as_echo "$ac_res" >&6; }
|
|
fi
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
|
|
} # ac_fn_c_check_header_mongrel
|
|
|
|
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
|
|
# --------------------------------------------
|
|
# Tries to find the compile-time value of EXPR in a program that includes
|
|
# INCLUDES, setting VAR accordingly. Returns whether the value could be
|
|
# computed
|
|
ac_fn_c_compute_int ()
|
|
{
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
if test "$cross_compiling" = yes; then
|
|
# Depending upon the size, compute the lo and hi bounds.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
$4
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(($2) >= 0)];
|
|
test_array [0] = 0;
|
|
return test_array [0];
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_lo=0 ac_mid=0
|
|
while :; do
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
$4
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
|
test_array [0] = 0;
|
|
return test_array [0];
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_hi=$ac_mid; break
|
|
else
|
|
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
|
|
if test $ac_lo -le $ac_mid; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
$4
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(($2) < 0)];
|
|
test_array [0] = 0;
|
|
return test_array [0];
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_hi=-1 ac_mid=-1
|
|
while :; do
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
$4
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
|
|
test_array [0] = 0;
|
|
return test_array [0];
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_lo=$ac_mid; break
|
|
else
|
|
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
|
|
if test $ac_mid -le $ac_hi; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
ac_lo= ac_hi=
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
# Binary search between lo and hi bounds.
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
|
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
$4
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
|
test_array [0] = 0;
|
|
return test_array [0];
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_hi=$ac_mid
|
|
else
|
|
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
case $ac_lo in #((
|
|
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
|
|
'') ac_retval=1 ;;
|
|
esac
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
$4
|
|
static long int longval () { return $2; }
|
|
static unsigned long int ulongval () { return $2; }
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
if (! f)
|
|
return 1;
|
|
if (($2) < 0)
|
|
{
|
|
long int i = longval ();
|
|
if (i != ($2))
|
|
return 1;
|
|
fprintf (f, "%ld", i);
|
|
}
|
|
else
|
|
{
|
|
unsigned long int i = ulongval ();
|
|
if (i != ($2))
|
|
return 1;
|
|
fprintf (f, "%lu", i);
|
|
}
|
|
/* Do not output a trailing newline, as this causes \r\n confusion
|
|
on some platforms. */
|
|
return ferror (f) || fclose (f) != 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
|
|
else
|
|
ac_retval=1
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
rm -f conftest.val
|
|
|
|
fi
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
as_fn_set_status $ac_retval
|
|
|
|
} # ac_fn_c_compute_int
|
|
cat >config.log <<_ACEOF
|
|
This file contains any messages produced by compilers while
|
|
running configure, to aid debugging if configure makes a mistake.
|
|
|
|
It was created by BIND $as_me 9.11, which was
|
|
generated by GNU Autoconf 2.69. Invocation command line was
|
|
|
|
$ $0 $@
|
|
|
|
_ACEOF
|
|
exec 5>>config.log
|
|
{
|
|
cat <<_ASUNAME
|
|
## --------- ##
|
|
## Platform. ##
|
|
## --------- ##
|
|
|
|
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
|
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
|
uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
|
uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
|
|
|
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
|
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
|
|
|
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
|
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
|
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
|
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
|
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
|
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
|
|
|
_ASUNAME
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
$as_echo "PATH: $as_dir"
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
} >&5
|
|
|
|
cat >&5 <<_ACEOF
|
|
|
|
|
|
## ----------- ##
|
|
## Core tests. ##
|
|
## ----------- ##
|
|
|
|
_ACEOF
|
|
|
|
|
|
# Keep a trace of the command line.
|
|
# Strip out --no-create and --no-recursion so they do not pile up.
|
|
# Strip out --silent because we don't want to record it for future runs.
|
|
# Also quote any args containing shell meta-characters.
|
|
# Make two passes to allow for proper duplicate-argument suppression.
|
|
ac_configure_args=
|
|
ac_configure_args0=
|
|
ac_configure_args1=
|
|
ac_must_keep_next=false
|
|
for ac_pass in 1 2
|
|
do
|
|
for ac_arg
|
|
do
|
|
case $ac_arg in
|
|
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
| -silent | --silent | --silen | --sile | --sil)
|
|
continue ;;
|
|
*\'*)
|
|
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
esac
|
|
case $ac_pass in
|
|
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
|
2)
|
|
as_fn_append ac_configure_args1 " '$ac_arg'"
|
|
if test $ac_must_keep_next = true; then
|
|
ac_must_keep_next=false # Got value, back to normal.
|
|
else
|
|
case $ac_arg in
|
|
*=* | --config-cache | -C | -disable-* | --disable-* \
|
|
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
|
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
|
| -with-* | --with-* | -without-* | --without-* | --x)
|
|
case "$ac_configure_args0 " in
|
|
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
|
esac
|
|
;;
|
|
-* ) ac_must_keep_next=true ;;
|
|
esac
|
|
fi
|
|
as_fn_append ac_configure_args " '$ac_arg'"
|
|
;;
|
|
esac
|
|
done
|
|
done
|
|
{ ac_configure_args0=; unset ac_configure_args0;}
|
|
{ ac_configure_args1=; unset ac_configure_args1;}
|
|
|
|
# When interrupted or exit'd, cleanup temporary files, and complete
|
|
# config.log. We remove comments because anyway the quotes in there
|
|
# would cause problems or look ugly.
|
|
# WARNING: Use '\'' to represent an apostrophe within the trap.
|
|
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
|
trap 'exit_status=$?
|
|
# Save into config.log some information that might help in debugging.
|
|
{
|
|
echo
|
|
|
|
$as_echo "## ---------------- ##
|
|
## Cache variables. ##
|
|
## ---------------- ##"
|
|
echo
|
|
# The following way of writing the cache mishandles newlines in values,
|
|
(
|
|
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
|
eval ac_val=\$$ac_var
|
|
case $ac_val in #(
|
|
*${as_nl}*)
|
|
case $ac_var in #(
|
|
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
|
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
|
esac
|
|
case $ac_var in #(
|
|
_ | IFS | as_nl) ;; #(
|
|
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
|
*) { eval $ac_var=; unset $ac_var;} ;;
|
|
esac ;;
|
|
esac
|
|
done
|
|
(set) 2>&1 |
|
|
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
|
*${as_nl}ac_space=\ *)
|
|
sed -n \
|
|
"s/'\''/'\''\\\\'\'''\''/g;
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
|
;; #(
|
|
*)
|
|
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
|
;;
|
|
esac |
|
|
sort
|
|
)
|
|
echo
|
|
|
|
$as_echo "## ----------------- ##
|
|
## Output variables. ##
|
|
## ----------------- ##"
|
|
echo
|
|
for ac_var in $ac_subst_vars
|
|
do
|
|
eval ac_val=\$$ac_var
|
|
case $ac_val in
|
|
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
esac
|
|
$as_echo "$ac_var='\''$ac_val'\''"
|
|
done | sort
|
|
echo
|
|
|
|
if test -n "$ac_subst_files"; then
|
|
$as_echo "## ------------------- ##
|
|
## File substitutions. ##
|
|
## ------------------- ##"
|
|
echo
|
|
for ac_var in $ac_subst_files
|
|
do
|
|
eval ac_val=\$$ac_var
|
|
case $ac_val in
|
|
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
esac
|
|
$as_echo "$ac_var='\''$ac_val'\''"
|
|
done | sort
|
|
echo
|
|
fi
|
|
|
|
if test -s confdefs.h; then
|
|
$as_echo "## ----------- ##
|
|
## confdefs.h. ##
|
|
## ----------- ##"
|
|
echo
|
|
cat confdefs.h
|
|
echo
|
|
fi
|
|
test "$ac_signal" != 0 &&
|
|
$as_echo "$as_me: caught signal $ac_signal"
|
|
$as_echo "$as_me: exit $exit_status"
|
|
} >&5
|
|
rm -f core *.core core.conftest.* &&
|
|
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
|
exit $exit_status
|
|
' 0
|
|
for ac_signal in 1 2 13 15; do
|
|
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
|
done
|
|
ac_signal=0
|
|
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
rm -f -r conftest* confdefs.h
|
|
|
|
$as_echo "/* confdefs.h */" > confdefs.h
|
|
|
|
# Predefined preprocessor variables.
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define PACKAGE_NAME "$PACKAGE_NAME"
|
|
_ACEOF
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
|
_ACEOF
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define PACKAGE_VERSION "$PACKAGE_VERSION"
|
|
_ACEOF
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define PACKAGE_STRING "$PACKAGE_STRING"
|
|
_ACEOF
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
|
_ACEOF
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define PACKAGE_URL "$PACKAGE_URL"
|
|
_ACEOF
|
|
|
|
|
|
# Let the site file select an alternate cache file if it wants to.
|
|
# Prefer an explicitly selected file to automatically selected ones.
|
|
ac_site_file1=NONE
|
|
ac_site_file2=NONE
|
|
if test -n "$CONFIG_SITE"; then
|
|
# We do not want a PATH search for config.site.
|
|
case $CONFIG_SITE in #((
|
|
-*) ac_site_file1=./$CONFIG_SITE;;
|
|
*/*) ac_site_file1=$CONFIG_SITE;;
|
|
*) ac_site_file1=./$CONFIG_SITE;;
|
|
esac
|
|
elif test "x$prefix" != xNONE; then
|
|
ac_site_file1=$prefix/share/config.site
|
|
ac_site_file2=$prefix/etc/config.site
|
|
else
|
|
ac_site_file1=$ac_default_prefix/share/config.site
|
|
ac_site_file2=$ac_default_prefix/etc/config.site
|
|
fi
|
|
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
|
do
|
|
test "x$ac_site_file" = xNONE && continue
|
|
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
|
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
|
sed 's/^/| /' "$ac_site_file" >&5
|
|
. "$ac_site_file" \
|
|
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error $? "failed to load site script $ac_site_file
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
fi
|
|
done
|
|
|
|
if test -r "$cache_file"; then
|
|
# Some versions of bash will fail to source /dev/null (special files
|
|
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
|
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
|
$as_echo "$as_me: loading cache $cache_file" >&6;}
|
|
case $cache_file in
|
|
[\\/]* | ?:[\\/]* ) . "$cache_file";;
|
|
*) . "./$cache_file";;
|
|
esac
|
|
fi
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
|
$as_echo "$as_me: creating cache $cache_file" >&6;}
|
|
>$cache_file
|
|
fi
|
|
|
|
# Check that the precious variables saved in the cache have kept the same
|
|
# value.
|
|
ac_cache_corrupted=false
|
|
for ac_var in $ac_precious_vars; do
|
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
|
eval ac_new_set=\$ac_env_${ac_var}_set
|
|
eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
|
eval ac_new_val=\$ac_env_${ac_var}_value
|
|
case $ac_old_set,$ac_new_set in
|
|
set,)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
|
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
|
ac_cache_corrupted=: ;;
|
|
,set)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
|
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
|
ac_cache_corrupted=: ;;
|
|
,);;
|
|
*)
|
|
if test "x$ac_old_val" != "x$ac_new_val"; then
|
|
# differences in whitespace do not lead to failure.
|
|
ac_old_val_w=`echo x $ac_old_val`
|
|
ac_new_val_w=`echo x $ac_new_val`
|
|
if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
|
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
|
ac_cache_corrupted=:
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
|
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
|
eval $ac_var=\$ac_old_val
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
|
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
|
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
|
fi;;
|
|
esac
|
|
# Pass precious variables to config.status.
|
|
if test "$ac_new_set" = set; then
|
|
case $ac_new_val in
|
|
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
*) ac_arg=$ac_var=$ac_new_val ;;
|
|
esac
|
|
case " $ac_configure_args " in
|
|
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
|
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
|
esac
|
|
fi
|
|
done
|
|
if $ac_cache_corrupted; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
|
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
|
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
|
fi
|
|
## -------------------- ##
|
|
## Main body of script. ##
|
|
## -------------------- ##
|
|
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
ac_config_headers="$ac_config_headers config.h"
|
|
|
|
|
|
|
|
ac_aux_dir=
|
|
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
|
if test -f "$ac_dir/install-sh"; then
|
|
ac_aux_dir=$ac_dir
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
break
|
|
elif test -f "$ac_dir/install.sh"; then
|
|
ac_aux_dir=$ac_dir
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
break
|
|
elif test -f "$ac_dir/shtool"; then
|
|
ac_aux_dir=$ac_dir
|
|
ac_install_sh="$ac_aux_dir/shtool install -c"
|
|
break
|
|
fi
|
|
done
|
|
if test -z "$ac_aux_dir"; then
|
|
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
|
fi
|
|
|
|
# These three variables are undocumented and unsupported,
|
|
# and are intended to be withdrawn in a future Autoconf release.
|
|
# They can cause serious problems if a builder's source tree is in a directory
|
|
# whose full name contains unusual characters.
|
|
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
|
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
|
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
|
|
|
|
|
# Make sure we can run config.sub.
|
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
|
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
|
$as_echo_n "checking build system type... " >&6; }
|
|
if ${ac_cv_build+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_build_alias=$build_alias
|
|
test "x$ac_build_alias" = x &&
|
|
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
|
test "x$ac_build_alias" = x &&
|
|
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
|
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
|
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
|
$as_echo "$ac_cv_build" >&6; }
|
|
case $ac_cv_build in
|
|
*-*-*) ;;
|
|
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
|
esac
|
|
build=$ac_cv_build
|
|
ac_save_IFS=$IFS; IFS='-'
|
|
set x $ac_cv_build
|
|
shift
|
|
build_cpu=$1
|
|
build_vendor=$2
|
|
shift; shift
|
|
# Remember, the first character of IFS is used to create $*,
|
|
# except with old shells:
|
|
build_os=$*
|
|
IFS=$ac_save_IFS
|
|
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
|
$as_echo_n "checking host system type... " >&6; }
|
|
if ${ac_cv_host+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test "x$host_alias" = x; then
|
|
ac_cv_host=$ac_cv_build
|
|
else
|
|
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
|
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
|
fi
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
|
$as_echo "$ac_cv_host" >&6; }
|
|
case $ac_cv_host in
|
|
*-*-*) ;;
|
|
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
|
esac
|
|
host=$ac_cv_host
|
|
ac_save_IFS=$IFS; IFS='-'
|
|
set x $ac_cv_host
|
|
shift
|
|
host_cpu=$1
|
|
host_vendor=$2
|
|
shift; shift
|
|
# Remember, the first character of IFS is used to create $*,
|
|
# except with old shells:
|
|
host_os=$*
|
|
IFS=$ac_save_IFS
|
|
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
|
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
|
set x ${MAKE-make}
|
|
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
|
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat >conftest.make <<\_ACEOF
|
|
SHELL = /bin/sh
|
|
all:
|
|
@echo '@@@%%%=$(MAKE)=@@@%%%'
|
|
_ACEOF
|
|
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
|
case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
|
*@@@%%%=?*=@@@%%%*)
|
|
eval ac_cv_prog_make_${ac_make}_set=yes;;
|
|
*)
|
|
eval ac_cv_prog_make_${ac_make}_set=no;;
|
|
esac
|
|
rm -f conftest.make
|
|
fi
|
|
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
SET_MAKE=
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
SET_MAKE="MAKE=${MAKE-make}"
|
|
fi
|
|
|
|
|
|
#
|
|
# GNU libtool support
|
|
#
|
|
case $build_os in
|
|
sunos*)
|
|
# Just set the maximum command line length for sunos as it otherwise
|
|
# takes a exceptionally long time to work it out. Required for libtool.
|
|
|
|
lt_cv_sys_max_cmd_len=4096;
|
|
;;
|
|
esac
|
|
|
|
LFS_CFLAGS=`getconf LFS_CFLAGS 2>/dev/null`
|
|
LFS_LDFLAGS=`getconf LFS_LDFLAGS 2>/dev/null`
|
|
LFS_LIBS=`getconf LFS_LIBS 2>/dev/null`
|
|
|
|
|
|
|
|
|
|
|
|
case `pwd` in
|
|
*\ * | *\ *)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
|
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
|
|
esac
|
|
|
|
|
|
|
|
macro_version='2.4.6'
|
|
macro_revision='2.4.6'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ltmain=$ac_aux_dir/ltmain.sh
|
|
|
|
# Backslashify metacharacters that are still active within
|
|
# double-quoted strings.
|
|
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
|
|
|
# Same as above, but do not quote variable references.
|
|
double_quote_subst='s/\(["`\\]\)/\\\1/g'
|
|
|
|
# Sed substitution to delay expansion of an escaped shell variable in a
|
|
# double_quote_subst'ed string.
|
|
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
|
|
|
# Sed substitution to delay expansion of an escaped single quote.
|
|
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
|
|
|
# Sed substitution to avoid accidental globbing in evaled expressions
|
|
no_glob_subst='s/\*/\\\*/g'
|
|
|
|
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
|
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
$as_echo_n "checking how to print strings... " >&6; }
|
|
# Test print first, because it will be a builtin if present.
|
|
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='printf %s\n'
|
|
else
|
|
# Use this function as a fallback that always works.
|
|
func_fallback_echo ()
|
|
{
|
|
eval 'cat <<_LTECHO_EOF
|
|
$1
|
|
_LTECHO_EOF'
|
|
}
|
|
ECHO='func_fallback_echo'
|
|
fi
|
|
|
|
# func_echo_all arg...
|
|
# Invoke $ECHO with all args, space-separated.
|
|
func_echo_all ()
|
|
{
|
|
$ECHO ""
|
|
}
|
|
|
|
case $ECHO in
|
|
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
|
|
$as_echo "printf" >&6; } ;;
|
|
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
|
|
$as_echo "print -r" >&6; } ;;
|
|
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
|
|
$as_echo "cat" >&6; } ;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_CC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
CC=$ac_cv_prog_CC
|
|
if test -n "$CC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
$as_echo "$CC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_CC"; then
|
|
ac_ct_CC=$CC
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
|
set dummy gcc; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_CC"; then
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_CC="gcc"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
if test -n "$ac_ct_CC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
$as_echo "$ac_ct_CC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_CC" = x; then
|
|
CC=""
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
CC=$ac_ct_CC
|
|
fi
|
|
else
|
|
CC="$ac_cv_prog_CC"
|
|
fi
|
|
|
|
if test -z "$CC"; then
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}cc; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_CC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
CC=$ac_cv_prog_CC
|
|
if test -n "$CC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
$as_echo "$CC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
fi
|
|
if test -z "$CC"; then
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
|
set dummy cc; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_CC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
ac_prog_rejected=no
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
|
ac_prog_rejected=yes
|
|
continue
|
|
fi
|
|
ac_cv_prog_CC="cc"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
if test $ac_prog_rejected = yes; then
|
|
# We found a bogon in the path, so make sure we never use it.
|
|
set dummy $ac_cv_prog_CC
|
|
shift
|
|
if test $# != 0; then
|
|
# We chose a different compiler from the bogus one.
|
|
# However, it has the same basename, so the bogon will be chosen
|
|
# first if we set CC to just the basename; use the full file name.
|
|
shift
|
|
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
CC=$ac_cv_prog_CC
|
|
if test -n "$CC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
$as_echo "$CC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$CC"; then
|
|
if test -n "$ac_tool_prefix"; then
|
|
for ac_prog in cl.exe
|
|
do
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_CC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
CC=$ac_cv_prog_CC
|
|
if test -n "$CC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
$as_echo "$CC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$CC" && break
|
|
done
|
|
fi
|
|
if test -z "$CC"; then
|
|
ac_ct_CC=$CC
|
|
for ac_prog in cl.exe
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_CC"; then
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_CC="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
if test -n "$ac_ct_CC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
$as_echo "$ac_ct_CC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$ac_ct_CC" && break
|
|
done
|
|
|
|
if test "x$ac_ct_CC" = x; then
|
|
CC=""
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
CC=$ac_ct_CC
|
|
fi
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error $? "no acceptable C compiler found in \$PATH
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
|
|
# Provide some information about the compiler.
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
|
set X $ac_compile
|
|
ac_compiler=$2
|
|
for ac_option in --version -v -V -qversion; do
|
|
{ { ac_try="$ac_compiler $ac_option >&5"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
|
ac_status=$?
|
|
if test -s conftest.err; then
|
|
sed '10a\
|
|
... rest of stderr output deleted ...
|
|
10q' conftest.err >conftest.er1
|
|
cat conftest.er1 >&5
|
|
fi
|
|
rm -f conftest.er1 conftest.err
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }
|
|
done
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
ac_clean_files_save=$ac_clean_files
|
|
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
|
# Try to create an executable without -o first, disregard a.out.
|
|
# It will help us diagnose broken compilers, and finding out an intuition
|
|
# of exeext.
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
|
$as_echo_n "checking whether the C compiler works... " >&6; }
|
|
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
|
|
|
# The possible output files:
|
|
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
|
|
|
ac_rmfiles=
|
|
for ac_file in $ac_files
|
|
do
|
|
case $ac_file in
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
|
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
|
esac
|
|
done
|
|
rm -f $ac_rmfiles
|
|
|
|
if { { ac_try="$ac_link_default"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
(eval "$ac_link_default") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then :
|
|
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
|
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
|
# in a Makefile. We should not override ac_cv_exeext if it was cached,
|
|
# so that the user can short-circuit this test for compilers unknown to
|
|
# Autoconf.
|
|
for ac_file in $ac_files ''
|
|
do
|
|
test -f "$ac_file" || continue
|
|
case $ac_file in
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
|
;;
|
|
[ab].out )
|
|
# We found the default executable, but exeext='' is most
|
|
# certainly right.
|
|
break;;
|
|
*.* )
|
|
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
|
then :; else
|
|
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
fi
|
|
# We set ac_cv_exeext here because the later test for it is not
|
|
# safe: cross compilers may not add the suffix if given an `-o'
|
|
# argument, so we may need to know it at that point already.
|
|
# Even if this section looks crufty: it has the advantage of
|
|
# actually working.
|
|
break;;
|
|
* )
|
|
break;;
|
|
esac
|
|
done
|
|
test "$ac_cv_exeext" = no && ac_cv_exeext=
|
|
|
|
else
|
|
ac_file=''
|
|
fi
|
|
if test -z "$ac_file"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error 77 "C compiler cannot create executables
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
|
$as_echo_n "checking for C compiler default output file name... " >&6; }
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
|
$as_echo "$ac_file" >&6; }
|
|
ac_exeext=$ac_cv_exeext
|
|
|
|
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
|
ac_clean_files=$ac_clean_files_save
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
|
$as_echo_n "checking for suffix of executables... " >&6; }
|
|
if { { ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then :
|
|
# If both `conftest.exe' and `conftest' are `present' (well, observable)
|
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
|
# work properly (i.e., refer to `conftest.exe'), while it won't with
|
|
# `rm'.
|
|
for ac_file in conftest.exe conftest conftest.*; do
|
|
test -f "$ac_file" || continue
|
|
case $ac_file in
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
break;;
|
|
* ) break;;
|
|
esac
|
|
done
|
|
else
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
fi
|
|
rm -f conftest conftest$ac_cv_exeext
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
|
$as_echo "$ac_cv_exeext" >&6; }
|
|
|
|
rm -f conftest.$ac_ext
|
|
EXEEXT=$ac_cv_exeext
|
|
ac_exeext=$EXEEXT
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdio.h>
|
|
int
|
|
main ()
|
|
{
|
|
FILE *f = fopen ("conftest.out", "w");
|
|
return ferror (f) || fclose (f) != 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
ac_clean_files="$ac_clean_files conftest.out"
|
|
# Check that the compiler produces executables we can run. If not, either
|
|
# the compiler is broken, or we cross compile.
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
|
$as_echo_n "checking whether we are cross compiling... " >&6; }
|
|
if test "$cross_compiling" != yes; then
|
|
{ { ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }
|
|
if { ac_try='./conftest$ac_cv_exeext'
|
|
{ { case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; }; then
|
|
cross_compiling=no
|
|
else
|
|
if test "$cross_compiling" = maybe; then
|
|
cross_compiling=yes
|
|
else
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error $? "cannot run C compiled programs.
|
|
If you meant to cross compile, use \`--host'.
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
fi
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
|
$as_echo "$cross_compiling" >&6; }
|
|
|
|
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
|
ac_clean_files=$ac_clean_files_save
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
|
$as_echo_n "checking for suffix of object files... " >&6; }
|
|
if ${ac_cv_objext+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.o conftest.obj
|
|
if { { ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
(eval "$ac_compile") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then :
|
|
for ac_file in conftest.o conftest.obj conftest.*; do
|
|
test -f "$ac_file" || continue;
|
|
case $ac_file in
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
|
break;;
|
|
esac
|
|
done
|
|
else
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error $? "cannot compute suffix of object files: cannot compile
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
fi
|
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
|
$as_echo "$ac_cv_objext" >&6; }
|
|
OBJEXT=$ac_cv_objext
|
|
ac_objext=$OBJEXT
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
|
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
|
if ${ac_cv_c_compiler_gnu+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#ifndef __GNUC__
|
|
choke me
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_compiler_gnu=yes
|
|
else
|
|
ac_compiler_gnu=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
|
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
|
if test $ac_compiler_gnu = yes; then
|
|
GCC=yes
|
|
else
|
|
GCC=
|
|
fi
|
|
ac_test_CFLAGS=${CFLAGS+set}
|
|
ac_save_CFLAGS=$CFLAGS
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
|
$as_echo_n "checking whether $CC accepts -g... " >&6; }
|
|
if ${ac_cv_prog_cc_g+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_save_c_werror_flag=$ac_c_werror_flag
|
|
ac_c_werror_flag=yes
|
|
ac_cv_prog_cc_g=no
|
|
CFLAGS="-g"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_prog_cc_g=yes
|
|
else
|
|
CFLAGS=""
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
else
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
|
CFLAGS="-g"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_prog_cc_g=yes
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
|
$as_echo "$ac_cv_prog_cc_g" >&6; }
|
|
if test "$ac_test_CFLAGS" = set; then
|
|
CFLAGS=$ac_save_CFLAGS
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
|
if test "$GCC" = yes; then
|
|
CFLAGS="-g -O2"
|
|
else
|
|
CFLAGS="-g"
|
|
fi
|
|
else
|
|
if test "$GCC" = yes; then
|
|
CFLAGS="-O2"
|
|
else
|
|
CFLAGS=
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
|
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
|
if ${ac_cv_prog_cc_c89+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_cv_prog_cc_c89=no
|
|
ac_save_CC=$CC
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
struct stat;
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
|
struct buf { int x; };
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
static char *e (p, i)
|
|
char **p;
|
|
int i;
|
|
{
|
|
return p[i];
|
|
}
|
|
static char *f (char * (*g) (char **, int), char **p, ...)
|
|
{
|
|
char *s;
|
|
va_list v;
|
|
va_start (v,p);
|
|
s = g (p, va_arg (v,int));
|
|
va_end (v);
|
|
return s;
|
|
}
|
|
|
|
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
|
function prototypes and stuff, but not '\xHH' hex character constants.
|
|
These don't provoke an error unfortunately, instead are silently treated
|
|
as 'x'. The following induces an error, until -std is added to get
|
|
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
|
array size at least. It's necessary to write '\x00'==0 to get something
|
|
that's true only with -std. */
|
|
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
|
|
|
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
|
inside strings and character constants. */
|
|
#define FOO(x) 'x'
|
|
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
|
|
|
int test (int i, double x);
|
|
struct s1 {int (*f) (int a);};
|
|
struct s2 {int (*f) (double a);};
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
|
int argc;
|
|
char **argv;
|
|
int
|
|
main ()
|
|
{
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
|
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
|
do
|
|
CC="$ac_save_CC $ac_arg"
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_prog_cc_c89=$ac_arg
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext
|
|
test "x$ac_cv_prog_cc_c89" != "xno" && break
|
|
done
|
|
rm -f conftest.$ac_ext
|
|
CC=$ac_save_CC
|
|
|
|
fi
|
|
# AC_CACHE_VAL
|
|
case "x$ac_cv_prog_cc_c89" in
|
|
x)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
$as_echo "none needed" >&6; } ;;
|
|
xno)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
$as_echo "unsupported" >&6; } ;;
|
|
*)
|
|
CC="$CC $ac_cv_prog_cc_c89"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
|
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
|
esac
|
|
if test "x$ac_cv_prog_cc_c89" != xno; then :
|
|
|
|
fi
|
|
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
|
|
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
|
|
if ${ac_cv_path_SED+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
|
for ac_i in 1 2 3 4 5 6 7; do
|
|
ac_script="$ac_script$as_nl$ac_script"
|
|
done
|
|
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
|
{ ac_script=; unset ac_script;}
|
|
if test -z "$SED"; then
|
|
ac_path_SED_found=false
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_prog in sed gsed; do
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
|
as_fn_executable_p "$ac_path_SED" || continue
|
|
# Check for GNU ac_path_SED and select it if it is found.
|
|
# Check for GNU $ac_path_SED
|
|
case `"$ac_path_SED" --version 2>&1` in
|
|
*GNU*)
|
|
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
|
*)
|
|
ac_count=0
|
|
$as_echo_n 0123456789 >"conftest.in"
|
|
while :
|
|
do
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
mv "conftest.tmp" "conftest.in"
|
|
cp "conftest.in" "conftest.nl"
|
|
$as_echo '' >> "conftest.nl"
|
|
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
|
if test $ac_count -gt ${ac_path_SED_max-0}; then
|
|
# Best one so far, save it but keep looking for a better one
|
|
ac_cv_path_SED="$ac_path_SED"
|
|
ac_path_SED_max=$ac_count
|
|
fi
|
|
# 10*(2^10) chars as input seems more than enough
|
|
test $ac_count -gt 10 && break
|
|
done
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
esac
|
|
|
|
$ac_path_SED_found && break 3
|
|
done
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
if test -z "$ac_cv_path_SED"; then
|
|
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
|
fi
|
|
else
|
|
ac_cv_path_SED=$SED
|
|
fi
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
|
|
$as_echo "$ac_cv_path_SED" >&6; }
|
|
SED="$ac_cv_path_SED"
|
|
rm -f conftest.sed
|
|
|
|
test -z "$SED" && SED=sed
|
|
Xsed="$SED -e 1s/^X//"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
|
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
|
if ${ac_cv_path_GREP+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -z "$GREP"; then
|
|
ac_path_GREP_found=false
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_prog in grep ggrep; do
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
as_fn_executable_p "$ac_path_GREP" || continue
|
|
# Check for GNU ac_path_GREP and select it if it is found.
|
|
# Check for GNU $ac_path_GREP
|
|
case `"$ac_path_GREP" --version 2>&1` in
|
|
*GNU*)
|
|
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
|
*)
|
|
ac_count=0
|
|
$as_echo_n 0123456789 >"conftest.in"
|
|
while :
|
|
do
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
mv "conftest.tmp" "conftest.in"
|
|
cp "conftest.in" "conftest.nl"
|
|
$as_echo 'GREP' >> "conftest.nl"
|
|
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
|
if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
|
# Best one so far, save it but keep looking for a better one
|
|
ac_cv_path_GREP="$ac_path_GREP"
|
|
ac_path_GREP_max=$ac_count
|
|
fi
|
|
# 10*(2^10) chars as input seems more than enough
|
|
test $ac_count -gt 10 && break
|
|
done
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
esac
|
|
|
|
$ac_path_GREP_found && break 3
|
|
done
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
if test -z "$ac_cv_path_GREP"; then
|
|
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
fi
|
|
else
|
|
ac_cv_path_GREP=$GREP
|
|
fi
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
|
$as_echo "$ac_cv_path_GREP" >&6; }
|
|
GREP="$ac_cv_path_GREP"
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
|
$as_echo_n "checking for egrep... " >&6; }
|
|
if ${ac_cv_path_EGREP+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
|
then ac_cv_path_EGREP="$GREP -E"
|
|
else
|
|
if test -z "$EGREP"; then
|
|
ac_path_EGREP_found=false
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_prog in egrep; do
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
as_fn_executable_p "$ac_path_EGREP" || continue
|
|
# Check for GNU ac_path_EGREP and select it if it is found.
|
|
# Check for GNU $ac_path_EGREP
|
|
case `"$ac_path_EGREP" --version 2>&1` in
|
|
*GNU*)
|
|
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
|
*)
|
|
ac_count=0
|
|
$as_echo_n 0123456789 >"conftest.in"
|
|
while :
|
|
do
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
mv "conftest.tmp" "conftest.in"
|
|
cp "conftest.in" "conftest.nl"
|
|
$as_echo 'EGREP' >> "conftest.nl"
|
|
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
|
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
|
# Best one so far, save it but keep looking for a better one
|
|
ac_cv_path_EGREP="$ac_path_EGREP"
|
|
ac_path_EGREP_max=$ac_count
|
|
fi
|
|
# 10*(2^10) chars as input seems more than enough
|
|
test $ac_count -gt 10 && break
|
|
done
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
esac
|
|
|
|
$ac_path_EGREP_found && break 3
|
|
done
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
if test -z "$ac_cv_path_EGREP"; then
|
|
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
fi
|
|
else
|
|
ac_cv_path_EGREP=$EGREP
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
|
$as_echo "$ac_cv_path_EGREP" >&6; }
|
|
EGREP="$ac_cv_path_EGREP"
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
|
|
$as_echo_n "checking for fgrep... " >&6; }
|
|
if ${ac_cv_path_FGREP+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
|
then ac_cv_path_FGREP="$GREP -F"
|
|
else
|
|
if test -z "$FGREP"; then
|
|
ac_path_FGREP_found=false
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_prog in fgrep; do
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
as_fn_executable_p "$ac_path_FGREP" || continue
|
|
# Check for GNU ac_path_FGREP and select it if it is found.
|
|
# Check for GNU $ac_path_FGREP
|
|
case `"$ac_path_FGREP" --version 2>&1` in
|
|
*GNU*)
|
|
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
|
*)
|
|
ac_count=0
|
|
$as_echo_n 0123456789 >"conftest.in"
|
|
while :
|
|
do
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
mv "conftest.tmp" "conftest.in"
|
|
cp "conftest.in" "conftest.nl"
|
|
$as_echo 'FGREP' >> "conftest.nl"
|
|
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
|
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
|
# Best one so far, save it but keep looking for a better one
|
|
ac_cv_path_FGREP="$ac_path_FGREP"
|
|
ac_path_FGREP_max=$ac_count
|
|
fi
|
|
# 10*(2^10) chars as input seems more than enough
|
|
test $ac_count -gt 10 && break
|
|
done
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
esac
|
|
|
|
$ac_path_FGREP_found && break 3
|
|
done
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
if test -z "$ac_cv_path_FGREP"; then
|
|
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
fi
|
|
else
|
|
ac_cv_path_FGREP=$FGREP
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
|
|
$as_echo "$ac_cv_path_FGREP" >&6; }
|
|
FGREP="$ac_cv_path_FGREP"
|
|
|
|
|
|
test -z "$GREP" && GREP=grep
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-gnu-ld was given.
|
|
if test "${with_gnu_ld+set}" = set; then :
|
|
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
|
|
else
|
|
with_gnu_ld=no
|
|
fi
|
|
|
|
ac_prog=ld
|
|
if test yes = "$GCC"; then
|
|
# Check if gcc -print-prog-name=ld gives a path.
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
|
$as_echo_n "checking for ld used by $CC... " >&6; }
|
|
case $host in
|
|
*-*-mingw*)
|
|
# gcc leaves a trailing carriage return, which upsets mingw
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|
*)
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|
esac
|
|
case $ac_prog in
|
|
# Accept absolute paths.
|
|
[\\/]* | ?:[\\/]*)
|
|
re_direlt='/[^/][^/]*/\.\./'
|
|
# Canonicalize the pathname of ld
|
|
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
|
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
|
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
|
done
|
|
test -z "$LD" && LD=$ac_prog
|
|
;;
|
|
"")
|
|
# If it fails, then pretend we aren't using GCC.
|
|
ac_prog=ld
|
|
;;
|
|
*)
|
|
# If it is relative, then search for the first ld in PATH.
|
|
with_gnu_ld=unknown
|
|
;;
|
|
esac
|
|
elif test yes = "$with_gnu_ld"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
|
$as_echo_n "checking for GNU ld... " >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
|
$as_echo_n "checking for non-GNU ld... " >&6; }
|
|
fi
|
|
if ${lt_cv_path_LD+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -z "$LD"; then
|
|
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
|
for ac_dir in $PATH; do
|
|
IFS=$lt_save_ifs
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|
lt_cv_path_LD=$ac_dir/$ac_prog
|
|
# Check to see if the program is GNU ld. I'd rather use --version,
|
|
# but apparently some variants of GNU ld only accept -v.
|
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
|
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
|
*GNU* | *'with BFD'*)
|
|
test no != "$with_gnu_ld" && break
|
|
;;
|
|
*)
|
|
test yes != "$with_gnu_ld" && break
|
|
;;
|
|
esac
|
|
fi
|
|
done
|
|
IFS=$lt_save_ifs
|
|
else
|
|
lt_cv_path_LD=$LD # Let the user override the test with a path.
|
|
fi
|
|
fi
|
|
|
|
LD=$lt_cv_path_LD
|
|
if test -n "$LD"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
|
$as_echo "$LD" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
|
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
|
if ${lt_cv_prog_gnu_ld+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
|
case `$LD -v 2>&1 </dev/null` in
|
|
*GNU* | *'with BFD'*)
|
|
lt_cv_prog_gnu_ld=yes
|
|
;;
|
|
*)
|
|
lt_cv_prog_gnu_ld=no
|
|
;;
|
|
esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
|
|
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
|
|
with_gnu_ld=$lt_cv_prog_gnu_ld
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
|
|
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
|
|
if ${lt_cv_path_NM+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$NM"; then
|
|
# Let the user override the test.
|
|
lt_cv_path_NM=$NM
|
|
else
|
|
lt_nm_to_check=${ac_tool_prefix}nm
|
|
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
|
lt_nm_to_check="$lt_nm_to_check nm"
|
|
fi
|
|
for lt_tmp_nm in $lt_nm_to_check; do
|
|
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
|
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
|
IFS=$lt_save_ifs
|
|
test -z "$ac_dir" && ac_dir=.
|
|
tmp_nm=$ac_dir/$lt_tmp_nm
|
|
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
|
|
# Check to see if the nm accepts a BSD-compat flag.
|
|
# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
|
|
# nm: unknown option "B" ignored
|
|
# Tru64's nm complains that /dev/null is an invalid object file
|
|
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
|
|
case $build_os in
|
|
mingw*) lt_bad_file=conftest.nm/nofile ;;
|
|
*) lt_bad_file=/dev/null ;;
|
|
esac
|
|
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
|
|
*$lt_bad_file* | *'Invalid file or object type'*)
|
|
lt_cv_path_NM="$tmp_nm -B"
|
|
break 2
|
|
;;
|
|
*)
|
|
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
|
*/dev/null*)
|
|
lt_cv_path_NM="$tmp_nm -p"
|
|
break 2
|
|
;;
|
|
*)
|
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|
continue # so that we can try to find one that supports BSD flags
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
fi
|
|
done
|
|
IFS=$lt_save_ifs
|
|
done
|
|
: ${lt_cv_path_NM=no}
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
|
|
$as_echo "$lt_cv_path_NM" >&6; }
|
|
if test no != "$lt_cv_path_NM"; then
|
|
NM=$lt_cv_path_NM
|
|
else
|
|
# Didn't find any BSD compatible name lister, look for dumpbin.
|
|
if test -n "$DUMPBIN"; then :
|
|
# Let the user override the test.
|
|
else
|
|
if test -n "$ac_tool_prefix"; then
|
|
for ac_prog in dumpbin "link -dump"
|
|
do
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_DUMPBIN+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$DUMPBIN"; then
|
|
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
DUMPBIN=$ac_cv_prog_DUMPBIN
|
|
if test -n "$DUMPBIN"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
|
|
$as_echo "$DUMPBIN" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$DUMPBIN" && break
|
|
done
|
|
fi
|
|
if test -z "$DUMPBIN"; then
|
|
ac_ct_DUMPBIN=$DUMPBIN
|
|
for ac_prog in dumpbin "link -dump"
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_DUMPBIN"; then
|
|
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
|
|
if test -n "$ac_ct_DUMPBIN"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
|
|
$as_echo "$ac_ct_DUMPBIN" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$ac_ct_DUMPBIN" && break
|
|
done
|
|
|
|
if test "x$ac_ct_DUMPBIN" = x; then
|
|
DUMPBIN=":"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
DUMPBIN=$ac_ct_DUMPBIN
|
|
fi
|
|
fi
|
|
|
|
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
|
|
*COFF*)
|
|
DUMPBIN="$DUMPBIN -symbols -headers"
|
|
;;
|
|
*)
|
|
DUMPBIN=:
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
if test : != "$DUMPBIN"; then
|
|
NM=$DUMPBIN
|
|
fi
|
|
fi
|
|
test -z "$NM" && NM=nm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
|
|
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
|
|
if ${lt_cv_nm_interface+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_nm_interface="BSD nm"
|
|
echo "int some_variable = 0;" > conftest.$ac_ext
|
|
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
|
|
(eval "$ac_compile" 2>conftest.err)
|
|
cat conftest.err >&5
|
|
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
|
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
|
cat conftest.err >&5
|
|
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
|
|
cat conftest.out >&5
|
|
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
|
lt_cv_nm_interface="MS dumpbin"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
|
|
$as_echo "$lt_cv_nm_interface" >&6; }
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
|
$as_echo_n "checking whether ln -s works... " >&6; }
|
|
LN_S=$as_ln_s
|
|
if test "$LN_S" = "ln -s"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
|
$as_echo "no, using $LN_S" >&6; }
|
|
fi
|
|
|
|
# find the maximum length of command line arguments
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
|
|
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
|
|
if ${lt_cv_sys_max_cmd_len+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
i=0
|
|
teststring=ABCD
|
|
|
|
case $build_os in
|
|
msdosdjgpp*)
|
|
# On DJGPP, this test can blow up pretty badly due to problems in libc
|
|
# (any single argument exceeding 2000 bytes causes a buffer overrun
|
|
# during glob expansion). Even if it were fixed, the result of this
|
|
# check would be larger than it should be.
|
|
lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
|
;;
|
|
|
|
gnu*)
|
|
# Under GNU Hurd, this test is not required because there is
|
|
# no limit to the length of command line arguments.
|
|
# Libtool will interpret -1 as no limit whatsoever
|
|
lt_cv_sys_max_cmd_len=-1;
|
|
;;
|
|
|
|
cygwin* | mingw* | cegcc*)
|
|
# On Win9x/ME, this test blows up -- it succeeds, but takes
|
|
# about 5 minutes as the teststring grows exponentially.
|
|
# Worse, since 9x/ME are not pre-emptively multitasking,
|
|
# you end up with a "frozen" computer, even though with patience
|
|
# the test eventually succeeds (with a max line length of 256k).
|
|
# Instead, let's just punt: use the minimum linelength reported by
|
|
# all of the supported platforms: 8192 (on NT/2K/XP).
|
|
lt_cv_sys_max_cmd_len=8192;
|
|
;;
|
|
|
|
mint*)
|
|
# On MiNT this can take a long time and run out of memory.
|
|
lt_cv_sys_max_cmd_len=8192;
|
|
;;
|
|
|
|
amigaos*)
|
|
# On AmigaOS with pdksh, this test takes hours, literally.
|
|
# So we just punt and use a minimum line length of 8192.
|
|
lt_cv_sys_max_cmd_len=8192;
|
|
;;
|
|
|
|
bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
|
|
# This has been around since 386BSD, at least. Likely further.
|
|
if test -x /sbin/sysctl; then
|
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
|
elif test -x /usr/sbin/sysctl; then
|
|
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
|
else
|
|
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
|
fi
|
|
# And add a safety zone
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|
;;
|
|
|
|
interix*)
|
|
# We know the value 262144 and hardcode it with a safety zone (like BSD)
|
|
lt_cv_sys_max_cmd_len=196608
|
|
;;
|
|
|
|
os2*)
|
|
# The test takes a long time on OS/2.
|
|
lt_cv_sys_max_cmd_len=8192
|
|
;;
|
|
|
|
osf*)
|
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
|
# nice to cause kernel panics so lets avoid the loop below.
|
|
# First set a reasonable default.
|
|
lt_cv_sys_max_cmd_len=16384
|
|
#
|
|
if test -x /sbin/sysconfig; then
|
|
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
|
*1*) lt_cv_sys_max_cmd_len=-1 ;;
|
|
esac
|
|
fi
|
|
;;
|
|
sco3.2v5*)
|
|
lt_cv_sys_max_cmd_len=102400
|
|
;;
|
|
sysv5* | sco5v6* | sysv4.2uw2*)
|
|
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
|
if test -n "$kargmax"; then
|
|
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
|
else
|
|
lt_cv_sys_max_cmd_len=32768
|
|
fi
|
|
;;
|
|
*)
|
|
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
|
if test -n "$lt_cv_sys_max_cmd_len" && \
|
|
test undefined != "$lt_cv_sys_max_cmd_len"; then
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|
else
|
|
# Make teststring a little bigger before we do anything with it.
|
|
# a 1K string should be a reasonable start.
|
|
for i in 1 2 3 4 5 6 7 8; do
|
|
teststring=$teststring$teststring
|
|
done
|
|
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
|
# If test is not a shell built-in, we'll probably end up computing a
|
|
# maximum length that is only half of the actual maximum length, but
|
|
# we can't tell.
|
|
while { test X`env echo "$teststring$teststring" 2>/dev/null` \
|
|
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
|
test 17 != "$i" # 1/2 MB should be enough
|
|
do
|
|
i=`expr $i + 1`
|
|
teststring=$teststring$teststring
|
|
done
|
|
# Only check the string length outside the loop.
|
|
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
|
teststring=
|
|
# Add a significant safety factor because C++ compilers can tack on
|
|
# massive amounts of additional arguments before passing them to the
|
|
# linker. It appears as though 1/2 is a usable value.
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
fi
|
|
|
|
if test -n "$lt_cv_sys_max_cmd_len"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
|
|
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
|
|
$as_echo "none" >&6; }
|
|
fi
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
|
|
|
|
|
|
|
|
|
|
|
|
|
: ${CP="cp -f"}
|
|
: ${MV="mv -f"}
|
|
: ${RM="rm -f"}
|
|
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
|
lt_unset=unset
|
|
else
|
|
lt_unset=false
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# test EBCDIC or ASCII
|
|
case `echo X|tr X '\101'` in
|
|
A) # ASCII based system
|
|
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
|
lt_SP2NL='tr \040 \012'
|
|
lt_NL2SP='tr \015\012 \040\040'
|
|
;;
|
|
*) # EBCDIC based system
|
|
lt_SP2NL='tr \100 \n'
|
|
lt_NL2SP='tr \r\n \100\100'
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
|
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
|
if ${lt_cv_to_host_file_cmd+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $host in
|
|
*-*-mingw* )
|
|
case $build in
|
|
*-*-mingw* ) # actually msys
|
|
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
;;
|
|
*-*-cygwin* )
|
|
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
;;
|
|
* ) # otherwise, assume *nix
|
|
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
;;
|
|
esac
|
|
;;
|
|
*-*-cygwin* )
|
|
case $build in
|
|
*-*-mingw* ) # actually msys
|
|
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
;;
|
|
*-*-cygwin* )
|
|
lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
;;
|
|
* ) # otherwise, assume *nix
|
|
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
;;
|
|
esac
|
|
;;
|
|
* ) # unhandled hosts (and "normal" native builds)
|
|
lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
;;
|
|
esac
|
|
|
|
fi
|
|
|
|
to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
|
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
|
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
|
if ${lt_cv_to_tool_file_cmd+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
#assume ordinary cross tools, or native build.
|
|
lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
case $host in
|
|
*-*-mingw* )
|
|
case $build in
|
|
*-*-mingw* ) # actually msys
|
|
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
|
|
fi
|
|
|
|
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
|
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if ${lt_cv_ld_reload_flag+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_ld_reload_flag='-r'
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
|
|
$as_echo "$lt_cv_ld_reload_flag" >&6; }
|
|
reload_flag=$lt_cv_ld_reload_flag
|
|
case $reload_flag in
|
|
"" | " "*) ;;
|
|
*) reload_flag=" $reload_flag" ;;
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
if test yes != "$GCC"; then
|
|
reload_cmds=false
|
|
fi
|
|
;;
|
|
darwin*)
|
|
if test yes = "$GCC"; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
|
|
else
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_OBJDUMP+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$OBJDUMP"; then
|
|
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
OBJDUMP=$ac_cv_prog_OBJDUMP
|
|
if test -n "$OBJDUMP"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
|
$as_echo "$OBJDUMP" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_OBJDUMP"; then
|
|
ac_ct_OBJDUMP=$OBJDUMP
|
|
# Extract the first word of "objdump", so it can be a program name with args.
|
|
set dummy objdump; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_OBJDUMP"; then
|
|
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
|
if test -n "$ac_ct_OBJDUMP"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
|
$as_echo "$ac_ct_OBJDUMP" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_OBJDUMP" = x; then
|
|
OBJDUMP="false"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
OBJDUMP=$ac_ct_OBJDUMP
|
|
fi
|
|
else
|
|
OBJDUMP="$ac_cv_prog_OBJDUMP"
|
|
fi
|
|
|
|
test -z "$OBJDUMP" && OBJDUMP=objdump
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
|
|
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
|
|
if ${lt_cv_deplibs_check_method+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|
lt_cv_file_magic_test_file=
|
|
lt_cv_deplibs_check_method='unknown'
|
|
# Need to set the preceding variable on all platforms that support
|
|
# interlibrary dependencies.
|
|
# 'none' -- dependencies not supported.
|
|
# 'unknown' -- same as none, but documents that we really don't know.
|
|
# 'pass_all' -- all dependencies passed with no checks.
|
|
# 'test_compile' -- check by making test program.
|
|
# 'file_magic [[regex]]' -- check by looking for files in library path
|
|
# that responds to the $file_magic_cmd with a given extended regex.
|
|
# If you have 'file' or equivalent on your system and you're not sure
|
|
# whether 'pass_all' will *always* work, you probably want this one.
|
|
|
|
case $host_os in
|
|
aix[4-9]*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
beos*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
bsdi[45]*)
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|
lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|
lt_cv_file_magic_test_file=/shlib/libc.so
|
|
;;
|
|
|
|
cygwin*)
|
|
# func_win32_libid is a shell function defined in ltmain.sh
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
;;
|
|
|
|
mingw* | pw32*)
|
|
# Base MSYS/MinGW do not provide the 'file' command needed by
|
|
# func_win32_libid shell function, so use a weaker test based on 'objdump',
|
|
# unless we find 'file', for example because we are cross-compiling.
|
|
if ( file / ) >/dev/null 2>&1; then
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
# Keep this pattern in sync with the one in func_win32_libid.
|
|
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
|
|
cegcc*)
|
|
# use the weaker test based on 'objdump'. See mingw*.
|
|
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
freebsd* | dragonfly*)
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
|
case $host_cpu in
|
|
i*86 )
|
|
# Not sure whether the presence of OpenBSD here was a mistake.
|
|
# Let's accept both of them until this is cleared up.
|
|
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|
;;
|
|
esac
|
|
else
|
|
lt_cv_deplibs_check_method=pass_all
|
|
fi
|
|
;;
|
|
|
|
haiku*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
hpux10.20* | hpux11*)
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
|
case $host_cpu in
|
|
ia64*)
|
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
|
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|
;;
|
|
hppa*64*)
|
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
|
|
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
|
;;
|
|
*)
|
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
|
|
lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
interix[3-9]*)
|
|
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
|
;;
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
case $LD in
|
|
*-32|*"-32 ") libmagic=32-bit;;
|
|
*-n32|*"-n32 ") libmagic=N32;;
|
|
*-64|*"-64 ") libmagic=64-bit;;
|
|
*) libmagic=never-match;;
|
|
esac
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
# This must be glibc/ELF.
|
|
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
netbsd*)
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
|
else
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
|
fi
|
|
;;
|
|
|
|
newos6*)
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
|
lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|
;;
|
|
|
|
*nto* | *qnx*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
openbsd* | bitrig*)
|
|
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
|
else
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
|
fi
|
|
;;
|
|
|
|
osf3* | osf4* | osf5*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
rdos*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
solaris*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
sysv4 | sysv4.3*)
|
|
case $host_vendor in
|
|
motorola)
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|
;;
|
|
ncr)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
sequent)
|
|
lt_cv_file_magic_cmd='/bin/file'
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
|
;;
|
|
sni)
|
|
lt_cv_file_magic_cmd='/bin/file'
|
|
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
|
lt_cv_file_magic_test_file=/lib/libc.so
|
|
;;
|
|
siemens)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
pc)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
tpf*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
os2*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
esac
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
|
|
|
file_magic_glob=
|
|
want_nocaseglob=no
|
|
if test "$build" = "$host"; then
|
|
case $host_os in
|
|
mingw* | pw32*)
|
|
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
want_nocaseglob=yes
|
|
else
|
|
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
|
fi
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_DLLTOOL+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$DLLTOOL"; then
|
|
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
DLLTOOL=$ac_cv_prog_DLLTOOL
|
|
if test -n "$DLLTOOL"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
|
$as_echo "$DLLTOOL" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
ac_ct_DLLTOOL=$DLLTOOL
|
|
# Extract the first word of "dlltool", so it can be a program name with args.
|
|
set dummy dlltool; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_DLLTOOL"; then
|
|
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
|
if test -n "$ac_ct_DLLTOOL"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
|
$as_echo "$ac_ct_DLLTOOL" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_DLLTOOL" = x; then
|
|
DLLTOOL="false"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
DLLTOOL=$ac_ct_DLLTOOL
|
|
fi
|
|
else
|
|
DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
fi
|
|
|
|
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
|
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
|
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
|
|
case $host_os in
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
# two different shell functions defined in ltmain.sh;
|
|
# decide which one to use based on capabilities of $DLLTOOL
|
|
case `$DLLTOOL --help 2>&1` in
|
|
*--identify-strict*)
|
|
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
;;
|
|
*)
|
|
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
# fallback: assume linklib IS sharedlib
|
|
lt_cv_sharedlib_from_linklib_cmd=$ECHO
|
|
;;
|
|
esac
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
|
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
|
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
for ac_prog in ar
|
|
do
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AR+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$AR"; then
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
AR=$ac_cv_prog_AR
|
|
if test -n "$AR"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
|
$as_echo "$AR" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$AR" && break
|
|
done
|
|
fi
|
|
if test -z "$AR"; then
|
|
ac_ct_AR=$AR
|
|
for ac_prog in ar
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_AR"; then
|
|
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_AR="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
|
if test -n "$ac_ct_AR"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
|
$as_echo "$ac_ct_AR" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$ac_ct_AR" && break
|
|
done
|
|
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
|
fi
|
|
fi
|
|
|
|
: ${AR=ar}
|
|
: ${AR_FLAGS=cru}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
|
$as_echo_n "checking for archiver @FILE support... " >&6; }
|
|
if ${lt_cv_ar_at_file+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_ar_at_file=no
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
echo conftest.$ac_objext > conftest.lst
|
|
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
|
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
(eval $lt_ar_try) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }
|
|
if test 0 -eq "$ac_status"; then
|
|
# Ensure the archiver fails upon bogus file names.
|
|
rm -f conftest.$ac_objext libconftest.a
|
|
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
(eval $lt_ar_try) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }
|
|
if test 0 -ne "$ac_status"; then
|
|
lt_cv_ar_at_file=@
|
|
fi
|
|
fi
|
|
rm -f conftest.* libconftest.a
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
|
$as_echo "$lt_cv_ar_at_file" >&6; }
|
|
|
|
if test no = "$lt_cv_ar_at_file"; then
|
|
archiver_list_spec=
|
|
else
|
|
archiver_list_spec=$lt_cv_ar_at_file
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_STRIP+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$STRIP"; then
|
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
STRIP=$ac_cv_prog_STRIP
|
|
if test -n "$STRIP"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
|
$as_echo "$STRIP" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_STRIP"; then
|
|
ac_ct_STRIP=$STRIP
|
|
# Extract the first word of "strip", so it can be a program name with args.
|
|
set dummy strip; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_STRIP"; then
|
|
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_STRIP="strip"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
|
if test -n "$ac_ct_STRIP"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
|
$as_echo "$ac_ct_STRIP" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_STRIP" = x; then
|
|
STRIP=":"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
STRIP=$ac_ct_STRIP
|
|
fi
|
|
else
|
|
STRIP="$ac_cv_prog_STRIP"
|
|
fi
|
|
|
|
test -z "$STRIP" && STRIP=:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_RANLIB+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$RANLIB"; then
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
RANLIB=$ac_cv_prog_RANLIB
|
|
if test -n "$RANLIB"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
|
$as_echo "$RANLIB" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_RANLIB"; then
|
|
ac_ct_RANLIB=$RANLIB
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
|
set dummy ranlib; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_RANLIB"; then
|
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_RANLIB="ranlib"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
|
if test -n "$ac_ct_RANLIB"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
|
$as_echo "$ac_ct_RANLIB" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_RANLIB" = x; then
|
|
RANLIB=":"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
RANLIB=$ac_ct_RANLIB
|
|
fi
|
|
else
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
|
fi
|
|
|
|
test -z "$RANLIB" && RANLIB=:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Determine commands to create old-style static archives.
|
|
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
|
old_postinstall_cmds='chmod 644 $oldlib'
|
|
old_postuninstall_cmds=
|
|
|
|
if test -n "$RANLIB"; then
|
|
case $host_os in
|
|
bitrig* | openbsd*)
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
|
;;
|
|
*)
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
|
;;
|
|
esac
|
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
|
fi
|
|
|
|
case $host_os in
|
|
darwin*)
|
|
lock_old_archive_extraction=yes ;;
|
|
*)
|
|
lock_old_archive_extraction=no ;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_prog in gawk mawk nawk awk
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AWK+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$AWK"; then
|
|
ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_AWK="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
AWK=$ac_cv_prog_AWK
|
|
if test -n "$AWK"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
|
$as_echo "$AWK" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$AWK" && break
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If no C compiler was specified, use CC.
|
|
LTCC=${LTCC-"$CC"}
|
|
|
|
# If no C compiler flags were specified, use CFLAGS.
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
|
|
# Allow CC to be a program name with arguments.
|
|
compiler=$CC
|
|
|
|
|
|
# Check for command to grab the raw symbol name followed by C symbol from nm.
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
|
|
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
|
|
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
|
|
# These are sane defaults that work on at least a few old systems.
|
|
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
|
|
|
# Character class describing NM global symbol codes.
|
|
symcode='[BCDEGRST]'
|
|
|
|
# Regexp to match symbols that can be accessed directly from C.
|
|
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
|
|
|
# Define system-specific variables.
|
|
case $host_os in
|
|
aix*)
|
|
symcode='[BCDT]'
|
|
;;
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
symcode='[ABCDGISTW]'
|
|
;;
|
|
hpux*)
|
|
if test ia64 = "$host_cpu"; then
|
|
symcode='[ABCDEGRST]'
|
|
fi
|
|
;;
|
|
irix* | nonstopux*)
|
|
symcode='[BCDEGRST]'
|
|
;;
|
|
osf*)
|
|
symcode='[BCDEGQRST]'
|
|
;;
|
|
solaris*)
|
|
symcode='[BDRT]'
|
|
;;
|
|
sco3.2v5*)
|
|
symcode='[DT]'
|
|
;;
|
|
sysv4.2uw2*)
|
|
symcode='[DT]'
|
|
;;
|
|
sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
|
symcode='[ABDT]'
|
|
;;
|
|
sysv4)
|
|
symcode='[DFNSTU]'
|
|
;;
|
|
esac
|
|
|
|
# If we're using GNU nm, then use its standard symbol codes.
|
|
case `$NM -V 2>&1` in
|
|
*GNU* | *'with BFD'*)
|
|
symcode='[ABCDGIRSTW]' ;;
|
|
esac
|
|
|
|
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
# Gets list of data symbols to import.
|
|
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
|
|
# Adjust the below global symbol transforms to fixup imported variables.
|
|
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
|
|
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
|
|
lt_c_name_lib_hook="\
|
|
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
|
|
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
|
|
else
|
|
# Disable hooks by default.
|
|
lt_cv_sys_global_symbol_to_import=
|
|
lt_cdecl_hook=
|
|
lt_c_name_hook=
|
|
lt_c_name_lib_hook=
|
|
fi
|
|
|
|
# Transform an extracted symbol line into a proper C declaration.
|
|
# Some systems (esp. on ia64) link data and code symbols differently,
|
|
# so use this general approach.
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
|
|
$lt_cdecl_hook\
|
|
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
|
|
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
|
|
$lt_c_name_hook\
|
|
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
|
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name with lib prefix and
|
|
# symbol address.
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
|
|
$lt_c_name_lib_hook\
|
|
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
|
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
|
|
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
case $build_os in
|
|
mingw*)
|
|
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
|
;;
|
|
esac
|
|
|
|
# Try without a prefix underscore, then with it.
|
|
for ac_symprfx in "" "_"; do
|
|
|
|
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
|
symxfrm="\\1 $ac_symprfx\\2 \\2"
|
|
|
|
# Write the raw and C identifiers.
|
|
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
# Fake it for dumpbin and say T for any non-static function,
|
|
# D for any global variable and I for any imported variable.
|
|
# Also find C++ and __fastcall symbols from MSVC++,
|
|
# which start with @ or ?.
|
|
lt_cv_sys_global_symbol_pipe="$AWK '"\
|
|
" {last_section=section; section=\$ 3};"\
|
|
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
|
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
|
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
|
|
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
|
|
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
|
|
" \$ 0!~/External *\|/{next};"\
|
|
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
|
" {if(hide[section]) next};"\
|
|
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
|
|
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
|
|
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
|
|
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
|
|
" ' prfx=^$ac_symprfx"
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
|
|
rm -f conftest*
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
char nm_test_var;
|
|
void nm_test_func(void);
|
|
void nm_test_func(void){}
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
int main(){nm_test_var='a';nm_test_func();return(0);}
|
|
_LT_EOF
|
|
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
# Now try to grab the symbols.
|
|
nlist=conftest.nm
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
|
|
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; } && test -s "$nlist"; then
|
|
# Try sorting and uniquifying the output.
|
|
if sort "$nlist" | uniq > "$nlist"T; then
|
|
mv -f "$nlist"T "$nlist"
|
|
else
|
|
rm -f "$nlist"T
|
|
fi
|
|
|
|
# Make sure that we snagged all the symbols we need.
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
|
|
/* DATA imports from DLLs on WIN32 can't be const, because runtime
|
|
relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
# define LT_DLSYM_CONST
|
|
#elif defined __osf__
|
|
/* This system does not cope well with relocations in const data. */
|
|
# define LT_DLSYM_CONST
|
|
#else
|
|
# define LT_DLSYM_CONST const
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
_LT_EOF
|
|
# Now generate the symbol file.
|
|
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
|
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
LT_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
lt__PROGRAM__LTX_preloaded_symbols[] =
|
|
{
|
|
{ "@PROGRAM@", (void *) 0 },
|
|
_LT_EOF
|
|
$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
|
cat <<\_LT_EOF >> conftest.$ac_ext
|
|
{0, (void *) 0}
|
|
};
|
|
|
|
/* This works around a problem in FreeBSD linker */
|
|
#ifdef FREEBSD_WORKAROUND
|
|
static const void *lt_preloaded_setup() {
|
|
return lt__PROGRAM__LTX_preloaded_symbols;
|
|
}
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
lt_globsym_save_LIBS=$LIBS
|
|
lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS=conftstm.$ac_objext
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
(eval $ac_link) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; } && test -s conftest$ac_exeext; then
|
|
pipe_works=yes
|
|
fi
|
|
LIBS=$lt_globsym_save_LIBS
|
|
CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
|
fi
|
|
else
|
|
echo "cannot find nm_test_var in $nlist" >&5
|
|
fi
|
|
else
|
|
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
|
fi
|
|
else
|
|
echo "$progname: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -rf conftest* conftst*
|
|
|
|
# Do not use the global_symbol_pipe unless it works.
|
|
if test yes = "$pipe_works"; then
|
|
break
|
|
else
|
|
lt_cv_sys_global_symbol_pipe=
|
|
fi
|
|
done
|
|
|
|
fi
|
|
|
|
if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
|
lt_cv_sys_global_symbol_to_cdecl=
|
|
fi
|
|
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
|
|
$as_echo "failed" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
|
|
$as_echo "ok" >&6; }
|
|
fi
|
|
|
|
# Response file support.
|
|
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
nm_file_list_spec='@'
|
|
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
|
nm_file_list_spec='@'
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
|
$as_echo_n "checking for sysroot... " >&6; }
|
|
|
|
# Check whether --with-sysroot was given.
|
|
if test "${with_sysroot+set}" = set; then :
|
|
withval=$with_sysroot;
|
|
else
|
|
with_sysroot=no
|
|
fi
|
|
|
|
|
|
lt_sysroot=
|
|
case $with_sysroot in #(
|
|
yes)
|
|
if test yes = "$GCC"; then
|
|
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
fi
|
|
;; #(
|
|
/*)
|
|
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
|
|
;; #(
|
|
no|'')
|
|
;; #(
|
|
*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
|
|
$as_echo "$with_sysroot" >&6; }
|
|
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
|
;;
|
|
esac
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
|
$as_echo "${lt_sysroot:-no}" >&6; }
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
|
|
$as_echo_n "checking for a working dd... " >&6; }
|
|
if ${ac_cv_path_lt_DD+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
printf 0123456789abcdef0123456789abcdef >conftest.i
|
|
cat conftest.i conftest.i >conftest2.i
|
|
: ${lt_DD:=$DD}
|
|
if test -z "$lt_DD"; then
|
|
ac_path_lt_DD_found=false
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_prog in dd; do
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
|
|
as_fn_executable_p "$ac_path_lt_DD" || continue
|
|
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
|
cmp -s conftest.i conftest.out \
|
|
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
|
|
fi
|
|
$ac_path_lt_DD_found && break 3
|
|
done
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
if test -z "$ac_cv_path_lt_DD"; then
|
|
:
|
|
fi
|
|
else
|
|
ac_cv_path_lt_DD=$lt_DD
|
|
fi
|
|
|
|
rm -f conftest.i conftest2.i conftest.out
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
|
|
$as_echo "$ac_cv_path_lt_DD" >&6; }
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
|
|
$as_echo_n "checking how to truncate binary pipes... " >&6; }
|
|
if ${lt_cv_truncate_bin+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
printf 0123456789abcdef0123456789abcdef >conftest.i
|
|
cat conftest.i conftest.i >conftest2.i
|
|
lt_cv_truncate_bin=
|
|
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
|
cmp -s conftest.i conftest.out \
|
|
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
|
|
fi
|
|
rm -f conftest.i conftest2.i conftest.out
|
|
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
|
|
$as_echo "$lt_cv_truncate_bin" >&6; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
|
func_cc_basename ()
|
|
{
|
|
for cc_temp in $*""; do
|
|
case $cc_temp in
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
|
\-*) ;;
|
|
*) break;;
|
|
esac
|
|
done
|
|
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
|
}
|
|
|
|
# Check whether --enable-libtool-lock was given.
|
|
if test "${enable_libtool_lock+set}" = set; then :
|
|
enableval=$enable_libtool_lock;
|
|
fi
|
|
|
|
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
|
|
|
|
# Some flags need to be propagated to the compiler or linker for good
|
|
# libtool support.
|
|
case $host in
|
|
ia64-*-hpux*)
|
|
# Find out what ABI is being produced by ac_compile, and set mode
|
|
# options accordingly.
|
|
echo 'int i;' > conftest.$ac_ext
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
|
*ELF-32*)
|
|
HPUX_IA64_MODE=32
|
|
;;
|
|
*ELF-64*)
|
|
HPUX_IA64_MODE=64
|
|
;;
|
|
esac
|
|
fi
|
|
rm -rf conftest*
|
|
;;
|
|
*-*-irix6*)
|
|
# Find out what ABI is being produced by ac_compile, and set linker
|
|
# options accordingly.
|
|
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
if test yes = "$lt_cv_prog_gnu_ld"; then
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
|
*32-bit*)
|
|
LD="${LD-ld} -melf32bsmip"
|
|
;;
|
|
*N32*)
|
|
LD="${LD-ld} -melf32bmipn32"
|
|
;;
|
|
*64-bit*)
|
|
LD="${LD-ld} -melf64bmip"
|
|
;;
|
|
esac
|
|
else
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
|
*32-bit*)
|
|
LD="${LD-ld} -32"
|
|
;;
|
|
*N32*)
|
|
LD="${LD-ld} -n32"
|
|
;;
|
|
*64-bit*)
|
|
LD="${LD-ld} -64"
|
|
;;
|
|
esac
|
|
fi
|
|
fi
|
|
rm -rf conftest*
|
|
;;
|
|
|
|
mips64*-*linux*)
|
|
# Find out what ABI is being produced by ac_compile, and set linker
|
|
# options accordingly.
|
|
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
emul=elf
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
|
*32-bit*)
|
|
emul="${emul}32"
|
|
;;
|
|
*64-bit*)
|
|
emul="${emul}64"
|
|
;;
|
|
esac
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
|
*MSB*)
|
|
emul="${emul}btsmip"
|
|
;;
|
|
*LSB*)
|
|
emul="${emul}ltsmip"
|
|
;;
|
|
esac
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
|
*N32*)
|
|
emul="${emul}n32"
|
|
;;
|
|
esac
|
|
LD="${LD-ld} -m $emul"
|
|
fi
|
|
rm -rf conftest*
|
|
;;
|
|
|
|
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
|
|
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
|
# Find out what ABI is being produced by ac_compile, and set linker
|
|
# options accordingly. Note that the listed cases only cover the
|
|
# situations where additional linker options are needed (such as when
|
|
# doing 32-bit compilation for a host where ld defaults to 64-bit, or
|
|
# vice versa); the common cases where no linker options are needed do
|
|
# not appear in the list.
|
|
echo 'int i;' > conftest.$ac_ext
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
case `/usr/bin/file conftest.o` in
|
|
*32-bit*)
|
|
case $host in
|
|
x86_64-*kfreebsd*-gnu)
|
|
LD="${LD-ld} -m elf_i386_fbsd"
|
|
;;
|
|
x86_64-*linux*)
|
|
case `/usr/bin/file conftest.o` in
|
|
*x86-64*)
|
|
LD="${LD-ld} -m elf32_x86_64"
|
|
;;
|
|
*)
|
|
LD="${LD-ld} -m elf_i386"
|
|
;;
|
|
esac
|
|
;;
|
|
powerpc64le-*linux*)
|
|
LD="${LD-ld} -m elf32lppclinux"
|
|
;;
|
|
powerpc64-*linux*)
|
|
LD="${LD-ld} -m elf32ppclinux"
|
|
;;
|
|
s390x-*linux*)
|
|
LD="${LD-ld} -m elf_s390"
|
|
;;
|
|
sparc64-*linux*)
|
|
LD="${LD-ld} -m elf32_sparc"
|
|
;;
|
|
esac
|
|
;;
|
|
*64-bit*)
|
|
case $host in
|
|
x86_64-*kfreebsd*-gnu)
|
|
LD="${LD-ld} -m elf_x86_64_fbsd"
|
|
;;
|
|
x86_64-*linux*)
|
|
LD="${LD-ld} -m elf_x86_64"
|
|
;;
|
|
powerpcle-*linux*)
|
|
LD="${LD-ld} -m elf64lppc"
|
|
;;
|
|
powerpc-*linux*)
|
|
LD="${LD-ld} -m elf64ppc"
|
|
;;
|
|
s390*-*linux*|s390*-*tpf*)
|
|
LD="${LD-ld} -m elf64_s390"
|
|
;;
|
|
sparc*-*linux*)
|
|
LD="${LD-ld} -m elf64_sparc"
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
fi
|
|
rm -rf conftest*
|
|
;;
|
|
|
|
*-*-sco3.2v5*)
|
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|
SAVE_CFLAGS=$CFLAGS
|
|
CFLAGS="$CFLAGS -belf"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
|
|
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
|
|
if ${lt_cv_cc_needs_belf+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
lt_cv_cc_needs_belf=yes
|
|
else
|
|
lt_cv_cc_needs_belf=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
|
|
$as_echo "$lt_cv_cc_needs_belf" >&6; }
|
|
if test yes != "$lt_cv_cc_needs_belf"; then
|
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|
CFLAGS=$SAVE_CFLAGS
|
|
fi
|
|
;;
|
|
*-*solaris*)
|
|
# Find out what ABI is being produced by ac_compile, and set linker
|
|
# options accordingly.
|
|
echo 'int i;' > conftest.$ac_ext
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
case `/usr/bin/file conftest.o` in
|
|
*64-bit*)
|
|
case $lt_cv_prog_gnu_ld in
|
|
yes*)
|
|
case $host in
|
|
i?86-*-solaris*|x86_64-*-solaris*)
|
|
LD="${LD-ld} -m elf_x86_64"
|
|
;;
|
|
sparc*-*-solaris*)
|
|
LD="${LD-ld} -m elf64_sparc"
|
|
;;
|
|
esac
|
|
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
|
|
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
|
|
LD=${LD-ld}_sol2
|
|
fi
|
|
;;
|
|
*)
|
|
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
|
LD="${LD-ld} -64"
|
|
fi
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
fi
|
|
rm -rf conftest*
|
|
;;
|
|
esac
|
|
|
|
need_locks=$enable_libtool_lock
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}mt; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$MANIFEST_TOOL"; then
|
|
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
|
if test -n "$MANIFEST_TOOL"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
|
$as_echo "$MANIFEST_TOOL" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
|
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
|
# Extract the first word of "mt", so it can be a program name with args.
|
|
set dummy mt; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
|
if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
|
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
|
MANIFEST_TOOL=":"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
|
fi
|
|
else
|
|
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
|
fi
|
|
|
|
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
|
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
|
if ${lt_cv_path_mainfest_tool+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_path_mainfest_tool=no
|
|
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
|
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
cat conftest.err >&5
|
|
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
lt_cv_path_mainfest_tool=yes
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
|
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
|
if test yes != "$lt_cv_path_mainfest_tool"; then
|
|
MANIFEST_TOOL=:
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case $host_os in
|
|
rhapsody* | darwin*)
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_DSYMUTIL+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$DSYMUTIL"; then
|
|
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
DSYMUTIL=$ac_cv_prog_DSYMUTIL
|
|
if test -n "$DSYMUTIL"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
|
|
$as_echo "$DSYMUTIL" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_DSYMUTIL"; then
|
|
ac_ct_DSYMUTIL=$DSYMUTIL
|
|
# Extract the first word of "dsymutil", so it can be a program name with args.
|
|
set dummy dsymutil; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_DSYMUTIL"; then
|
|
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
|
|
if test -n "$ac_ct_DSYMUTIL"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
|
|
$as_echo "$ac_ct_DSYMUTIL" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_DSYMUTIL" = x; then
|
|
DSYMUTIL=":"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
DSYMUTIL=$ac_ct_DSYMUTIL
|
|
fi
|
|
else
|
|
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
|
|
fi
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_NMEDIT+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$NMEDIT"; then
|
|
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
NMEDIT=$ac_cv_prog_NMEDIT
|
|
if test -n "$NMEDIT"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
|
|
$as_echo "$NMEDIT" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_NMEDIT"; then
|
|
ac_ct_NMEDIT=$NMEDIT
|
|
# Extract the first word of "nmedit", so it can be a program name with args.
|
|
set dummy nmedit; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_NMEDIT"; then
|
|
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
|
|
if test -n "$ac_ct_NMEDIT"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
|
|
$as_echo "$ac_ct_NMEDIT" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_NMEDIT" = x; then
|
|
NMEDIT=":"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
NMEDIT=$ac_ct_NMEDIT
|
|
fi
|
|
else
|
|
NMEDIT="$ac_cv_prog_NMEDIT"
|
|
fi
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}lipo; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_LIPO+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$LIPO"; then
|
|
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
LIPO=$ac_cv_prog_LIPO
|
|
if test -n "$LIPO"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
|
|
$as_echo "$LIPO" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_LIPO"; then
|
|
ac_ct_LIPO=$LIPO
|
|
# Extract the first word of "lipo", so it can be a program name with args.
|
|
set dummy lipo; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_LIPO"; then
|
|
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_LIPO="lipo"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
|
|
if test -n "$ac_ct_LIPO"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
|
|
$as_echo "$ac_ct_LIPO" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_LIPO" = x; then
|
|
LIPO=":"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
LIPO=$ac_ct_LIPO
|
|
fi
|
|
else
|
|
LIPO="$ac_cv_prog_LIPO"
|
|
fi
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}otool; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_OTOOL+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$OTOOL"; then
|
|
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
OTOOL=$ac_cv_prog_OTOOL
|
|
if test -n "$OTOOL"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
|
|
$as_echo "$OTOOL" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_OTOOL"; then
|
|
ac_ct_OTOOL=$OTOOL
|
|
# Extract the first word of "otool", so it can be a program name with args.
|
|
set dummy otool; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_OTOOL"; then
|
|
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_OTOOL="otool"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
|
|
if test -n "$ac_ct_OTOOL"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
|
|
$as_echo "$ac_ct_OTOOL" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_OTOOL" = x; then
|
|
OTOOL=":"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
OTOOL=$ac_ct_OTOOL
|
|
fi
|
|
else
|
|
OTOOL="$ac_cv_prog_OTOOL"
|
|
fi
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}otool64; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_OTOOL64+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$OTOOL64"; then
|
|
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
OTOOL64=$ac_cv_prog_OTOOL64
|
|
if test -n "$OTOOL64"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
|
|
$as_echo "$OTOOL64" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_OTOOL64"; then
|
|
ac_ct_OTOOL64=$OTOOL64
|
|
# Extract the first word of "otool64", so it can be a program name with args.
|
|
set dummy otool64; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_OTOOL64"; then
|
|
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_OTOOL64="otool64"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
|
|
if test -n "$ac_ct_OTOOL64"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
|
|
$as_echo "$ac_ct_OTOOL64" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_OTOOL64" = x; then
|
|
OTOOL64=":"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
OTOOL64=$ac_ct_OTOOL64
|
|
fi
|
|
else
|
|
OTOOL64="$ac_cv_prog_OTOOL64"
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
|
|
$as_echo_n "checking for -single_module linker flag... " >&6; }
|
|
if ${lt_cv_apple_cc_single_mod+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_apple_cc_single_mod=no
|
|
if test -z "$LT_MULTI_MODULE"; then
|
|
# By default we will add the -single_module flag. You can override
|
|
# by either setting the environment variable LT_MULTI_MODULE
|
|
# non-empty at configure time, or by adding -multi_module to the
|
|
# link flags.
|
|
rm -rf libconftest.dylib*
|
|
echo "int foo(void){return 1;}" > conftest.c
|
|
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
-dynamiclib -Wl,-single_module conftest.c" >&5
|
|
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
|
_lt_result=$?
|
|
# If there is a non-empty error log, and "single_module"
|
|
# appears in it, assume the flag caused a linker warning
|
|
if test -s conftest.err && $GREP single_module conftest.err; then
|
|
cat conftest.err >&5
|
|
# Otherwise, if the output was created with a 0 exit code from
|
|
# the compiler, it worked.
|
|
elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
|
|
lt_cv_apple_cc_single_mod=yes
|
|
else
|
|
cat conftest.err >&5
|
|
fi
|
|
rm -rf libconftest.dylib*
|
|
rm -f conftest.*
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
|
|
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
|
|
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
|
|
if ${lt_cv_ld_exported_symbols_list+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_ld_exported_symbols_list=no
|
|
save_LDFLAGS=$LDFLAGS
|
|
echo "_main" > conftest.sym
|
|
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
lt_cv_ld_exported_symbols_list=yes
|
|
else
|
|
lt_cv_ld_exported_symbols_list=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LDFLAGS=$save_LDFLAGS
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
|
|
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
|
|
$as_echo_n "checking for -force_load linker flag... " >&6; }
|
|
if ${lt_cv_ld_force_load+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_ld_force_load=no
|
|
cat > conftest.c << _LT_EOF
|
|
int forced_loaded() { return 2;}
|
|
_LT_EOF
|
|
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
|
echo "$AR cru libconftest.a conftest.o" >&5
|
|
$AR cru libconftest.a conftest.o 2>&5
|
|
echo "$RANLIB libconftest.a" >&5
|
|
$RANLIB libconftest.a 2>&5
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
|
|
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
|
_lt_result=$?
|
|
if test -s conftest.err && $GREP force_load conftest.err; then
|
|
cat conftest.err >&5
|
|
elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
|
|
lt_cv_ld_force_load=yes
|
|
else
|
|
cat conftest.err >&5
|
|
fi
|
|
rm -f conftest.err libconftest.a conftest conftest.c
|
|
rm -rf conftest.dSYM
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
|
|
$as_echo "$lt_cv_ld_force_load" >&6; }
|
|
case $host_os in
|
|
rhapsody* | darwin1.[012])
|
|
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
|
|
darwin1.*)
|
|
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
|
darwin*) # darwin 5.x on
|
|
# if running on 10.5 or later, the deployment target defaults
|
|
# to the OS version, if on x86, and 10.4, the deployment
|
|
# target defaults to 10.4. Don't you love it?
|
|
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
|
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
|
|
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
|
|
10.[012][,.]*)
|
|
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
|
10.*)
|
|
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
|
|
esac
|
|
;;
|
|
esac
|
|
if test yes = "$lt_cv_apple_cc_single_mod"; then
|
|
_lt_dar_single_mod='$single_module'
|
|
fi
|
|
if test yes = "$lt_cv_ld_exported_symbols_list"; then
|
|
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
|
|
else
|
|
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
|
|
fi
|
|
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
|
|
_lt_dsymutil='~$DSYMUTIL $lib || :'
|
|
else
|
|
_lt_dsymutil=
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
# func_munge_path_list VARIABLE PATH
|
|
# -----------------------------------
|
|
# VARIABLE is name of variable containing _space_ separated list of
|
|
# directories to be munged by the contents of PATH, which is string
|
|
# having a format:
|
|
# "DIR[:DIR]:"
|
|
# string "DIR[ DIR]" will be prepended to VARIABLE
|
|
# ":DIR[:DIR]"
|
|
# string "DIR[ DIR]" will be appended to VARIABLE
|
|
# "DIRP[:DIRP]::[DIRA:]DIRA"
|
|
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
|
# "DIRA[ DIRA]" will be appended to VARIABLE
|
|
# "DIR[:DIR]"
|
|
# VARIABLE will be replaced by "DIR[ DIR]"
|
|
func_munge_path_list ()
|
|
{
|
|
case x$2 in
|
|
x)
|
|
;;
|
|
*:)
|
|
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
|
|
;;
|
|
x:*)
|
|
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
|
|
;;
|
|
*::*)
|
|
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
|
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
|
|
;;
|
|
*)
|
|
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
|
$as_echo_n "checking how to run the C preprocessor... " >&6; }
|
|
# On Suns, sometimes $CPP names a directory.
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
|
CPP=
|
|
fi
|
|
if test -z "$CPP"; then
|
|
if ${ac_cv_prog_CPP+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
# Double quotes because CPP needs to be expanded
|
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
|
do
|
|
ac_preproc_ok=false
|
|
for ac_c_preproc_warn_flag in '' yes
|
|
do
|
|
# Use a header file that comes with gcc, so configuring glibc
|
|
# with a fresh cross-compiler works.
|
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
# <limits.h> exists even on freestanding compilers.
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
Syntax error
|
|
_ACEOF
|
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
|
|
|
else
|
|
# Broken: fails on valid input.
|
|
continue
|
|
fi
|
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
|
# can be detected and how.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <ac_nonexistent.h>
|
|
_ACEOF
|
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
|
# Broken: success on invalid input.
|
|
continue
|
|
else
|
|
# Passes both tests.
|
|
ac_preproc_ok=:
|
|
break
|
|
fi
|
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
|
|
done
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
rm -f conftest.i conftest.err conftest.$ac_ext
|
|
if $ac_preproc_ok; then :
|
|
break
|
|
fi
|
|
|
|
done
|
|
ac_cv_prog_CPP=$CPP
|
|
|
|
fi
|
|
CPP=$ac_cv_prog_CPP
|
|
else
|
|
ac_cv_prog_CPP=$CPP
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
|
$as_echo "$CPP" >&6; }
|
|
ac_preproc_ok=false
|
|
for ac_c_preproc_warn_flag in '' yes
|
|
do
|
|
# Use a header file that comes with gcc, so configuring glibc
|
|
# with a fresh cross-compiler works.
|
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
# <limits.h> exists even on freestanding compilers.
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
Syntax error
|
|
_ACEOF
|
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
|
|
|
else
|
|
# Broken: fails on valid input.
|
|
continue
|
|
fi
|
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
|
# can be detected and how.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <ac_nonexistent.h>
|
|
_ACEOF
|
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
|
# Broken: success on invalid input.
|
|
continue
|
|
else
|
|
# Passes both tests.
|
|
ac_preproc_ok=:
|
|
break
|
|
fi
|
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
|
|
done
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
rm -f conftest.i conftest.err conftest.$ac_ext
|
|
if $ac_preproc_ok; then :
|
|
|
|
else
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
fi
|
|
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
|
$as_echo_n "checking for ANSI C header files... " >&6; }
|
|
if ${ac_cv_header_stdc+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
#include <string.h>
|
|
#include <float.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_header_stdc=yes
|
|
else
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <string.h>
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "memchr" >/dev/null 2>&1; then :
|
|
|
|
else
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdlib.h>
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "free" >/dev/null 2>&1; then :
|
|
|
|
else
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
if test "$cross_compiling" = yes; then :
|
|
:
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <ctype.h>
|
|
#include <stdlib.h>
|
|
#if ((' ' & 0x0FF) == 0x020)
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
#else
|
|
# define ISLOWER(c) \
|
|
(('a' <= (c) && (c) <= 'i') \
|
|
|| ('j' <= (c) && (c) <= 'r') \
|
|
|| ('s' <= (c) && (c) <= 'z'))
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
#endif
|
|
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
int
|
|
main ()
|
|
{
|
|
int i;
|
|
for (i = 0; i < 256; i++)
|
|
if (XOR (islower (i), ISLOWER (i))
|
|
|| toupper (i) != TOUPPER (i))
|
|
return 2;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
|
|
else
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
|
$as_echo "$ac_cv_header_stdc" >&6; }
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
|
inttypes.h stdint.h unistd.h
|
|
do :
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
|
"
|
|
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
for ac_header in dlfcn.h
|
|
do :
|
|
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
|
|
"
|
|
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_DLFCN_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# Set options
|
|
|
|
|
|
|
|
enable_dlopen=no
|
|
|
|
|
|
enable_win32_dll=no
|
|
|
|
|
|
# Check whether --enable-shared was given.
|
|
if test "${enable_shared+set}" = set; then :
|
|
enableval=$enable_shared; p=${PACKAGE-default}
|
|
case $enableval in
|
|
yes) enable_shared=yes ;;
|
|
no) enable_shared=no ;;
|
|
*)
|
|
enable_shared=no
|
|
# Look at the argument we got. We use all the common list separators.
|
|
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
|
for pkg in $enableval; do
|
|
IFS=$lt_save_ifs
|
|
if test "X$pkg" = "X$p"; then
|
|
enable_shared=yes
|
|
fi
|
|
done
|
|
IFS=$lt_save_ifs
|
|
;;
|
|
esac
|
|
else
|
|
enable_shared=yes
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-static was given.
|
|
if test "${enable_static+set}" = set; then :
|
|
enableval=$enable_static; p=${PACKAGE-default}
|
|
case $enableval in
|
|
yes) enable_static=yes ;;
|
|
no) enable_static=no ;;
|
|
*)
|
|
enable_static=no
|
|
# Look at the argument we got. We use all the common list separators.
|
|
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
|
for pkg in $enableval; do
|
|
IFS=$lt_save_ifs
|
|
if test "X$pkg" = "X$p"; then
|
|
enable_static=yes
|
|
fi
|
|
done
|
|
IFS=$lt_save_ifs
|
|
;;
|
|
esac
|
|
else
|
|
enable_static=yes
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-pic was given.
|
|
if test "${with_pic+set}" = set; then :
|
|
withval=$with_pic; lt_p=${PACKAGE-default}
|
|
case $withval in
|
|
yes|no) pic_mode=$withval ;;
|
|
*)
|
|
pic_mode=default
|
|
# Look at the argument we got. We use all the common list separators.
|
|
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
|
for lt_pkg in $withval; do
|
|
IFS=$lt_save_ifs
|
|
if test "X$lt_pkg" = "X$lt_p"; then
|
|
pic_mode=yes
|
|
fi
|
|
done
|
|
IFS=$lt_save_ifs
|
|
;;
|
|
esac
|
|
else
|
|
pic_mode=default
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-fast-install was given.
|
|
if test "${enable_fast_install+set}" = set; then :
|
|
enableval=$enable_fast_install; p=${PACKAGE-default}
|
|
case $enableval in
|
|
yes) enable_fast_install=yes ;;
|
|
no) enable_fast_install=no ;;
|
|
*)
|
|
enable_fast_install=no
|
|
# Look at the argument we got. We use all the common list separators.
|
|
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
|
for pkg in $enableval; do
|
|
IFS=$lt_save_ifs
|
|
if test "X$pkg" = "X$p"; then
|
|
enable_fast_install=yes
|
|
fi
|
|
done
|
|
IFS=$lt_save_ifs
|
|
;;
|
|
esac
|
|
else
|
|
enable_fast_install=yes
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shared_archive_member_spec=
|
|
case $host,$enable_shared in
|
|
power*-*-aix[5-9]*,yes)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
|
|
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
|
|
|
|
# Check whether --with-aix-soname was given.
|
|
if test "${with_aix_soname+set}" = set; then :
|
|
withval=$with_aix_soname; case $withval in
|
|
aix|svr4|both)
|
|
;;
|
|
*)
|
|
as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
|
|
;;
|
|
esac
|
|
lt_cv_with_aix_soname=$with_aix_soname
|
|
else
|
|
if ${lt_cv_with_aix_soname+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_with_aix_soname=aix
|
|
fi
|
|
|
|
with_aix_soname=$lt_cv_with_aix_soname
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
|
|
$as_echo "$with_aix_soname" >&6; }
|
|
if test aix != "$with_aix_soname"; then
|
|
# For the AIX way of multilib, we name the shared archive member
|
|
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
|
|
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
|
|
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
|
|
# the AIX toolchain works better with OBJECT_MODE set (default 32).
|
|
if test 64 = "${OBJECT_MODE-32}"; then
|
|
shared_archive_member_spec=shr_64
|
|
else
|
|
shared_archive_member_spec=shr
|
|
fi
|
|
fi
|
|
;;
|
|
*)
|
|
with_aix_soname=aix
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This can be used to rebuild libtool when needed
|
|
LIBTOOL_DEPS=$ltmain
|
|
|
|
# Always use our own libtool.
|
|
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test -z "$LN_S" && LN_S="ln -s"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test -n "${ZSH_VERSION+set}"; then
|
|
setopt NO_GLOB_SUBST
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
|
|
$as_echo_n "checking for objdir... " >&6; }
|
|
if ${lt_cv_objdir+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
rm -f .libs 2>/dev/null
|
|
mkdir .libs 2>/dev/null
|
|
if test -d .libs; then
|
|
lt_cv_objdir=.libs
|
|
else
|
|
# MS-DOS does not allow filenames that begin with a dot.
|
|
lt_cv_objdir=_libs
|
|
fi
|
|
rmdir .libs 2>/dev/null
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
|
|
$as_echo "$lt_cv_objdir" >&6; }
|
|
objdir=$lt_cv_objdir
|
|
|
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define LT_OBJDIR "$lt_cv_objdir/"
|
|
_ACEOF
|
|
|
|
|
|
|
|
|
|
case $host_os in
|
|
aix3*)
|
|
# AIX sometimes has problems with the GCC collect2 program. For some
|
|
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
# vanish in a puff of smoke.
|
|
if test set != "${COLLECT_NAMES+set}"; then
|
|
COLLECT_NAMES=
|
|
export COLLECT_NAMES
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
# Global variables:
|
|
ofile=libtool
|
|
can_build_shared=yes
|
|
|
|
# All known linkers require a '.a' archive for static linking (except MSVC,
|
|
# which needs '.lib').
|
|
libext=a
|
|
|
|
with_gnu_ld=$lt_cv_prog_gnu_ld
|
|
|
|
old_CC=$CC
|
|
old_CFLAGS=$CFLAGS
|
|
|
|
# Set sane defaults for various variables
|
|
test -z "$CC" && CC=cc
|
|
test -z "$LTCC" && LTCC=$CC
|
|
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
|
test -z "$LD" && LD=ld
|
|
test -z "$ac_objext" && ac_objext=o
|
|
|
|
func_cc_basename $compiler
|
|
cc_basename=$func_cc_basename_result
|
|
|
|
|
|
# Only perform the check for file, if the check method requires it
|
|
test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
|
case $deplibs_check_method in
|
|
file_magic*)
|
|
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
|
|
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
|
|
if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $MAGIC_CMD in
|
|
[\\/*] | ?:[\\/]*)
|
|
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
lt_save_MAGIC_CMD=$MAGIC_CMD
|
|
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
IFS=$lt_save_ifs
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f "$ac_dir/${ac_tool_prefix}file"; then
|
|
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
|
|
if test -n "$file_magic_test_file"; then
|
|
case $deplibs_check_method in
|
|
"file_magic "*)
|
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
|
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|
$EGREP "$file_magic_regex" > /dev/null; then
|
|
:
|
|
else
|
|
cat <<_LT_EOF 1>&2
|
|
|
|
*** Warning: the command libtool uses to detect shared libraries,
|
|
*** $file_magic_cmd, produces output that libtool cannot recognize.
|
|
*** The result is that libtool may fail to recognize shared libraries
|
|
*** as such. This will affect the creation of libtool libraries that
|
|
*** depend on shared libraries, but programs linked with such libtool
|
|
*** libraries will work regardless of this problem. Nevertheless, you
|
|
*** may want to report the problem to your system manager and/or to
|
|
*** bug-libtool@gnu.org
|
|
|
|
_LT_EOF
|
|
fi ;;
|
|
esac
|
|
fi
|
|
break
|
|
fi
|
|
done
|
|
IFS=$lt_save_ifs
|
|
MAGIC_CMD=$lt_save_MAGIC_CMD
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
|
if test -n "$MAGIC_CMD"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
|
$as_echo "$MAGIC_CMD" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|
if test -n "$ac_tool_prefix"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
|
|
$as_echo_n "checking for file... " >&6; }
|
|
if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $MAGIC_CMD in
|
|
[\\/*] | ?:[\\/]*)
|
|
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
lt_save_MAGIC_CMD=$MAGIC_CMD
|
|
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
IFS=$lt_save_ifs
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f "$ac_dir/file"; then
|
|
lt_cv_path_MAGIC_CMD=$ac_dir/"file"
|
|
if test -n "$file_magic_test_file"; then
|
|
case $deplibs_check_method in
|
|
"file_magic "*)
|
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
|
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|
$EGREP "$file_magic_regex" > /dev/null; then
|
|
:
|
|
else
|
|
cat <<_LT_EOF 1>&2
|
|
|
|
*** Warning: the command libtool uses to detect shared libraries,
|
|
*** $file_magic_cmd, produces output that libtool cannot recognize.
|
|
*** The result is that libtool may fail to recognize shared libraries
|
|
*** as such. This will affect the creation of libtool libraries that
|
|
*** depend on shared libraries, but programs linked with such libtool
|
|
*** libraries will work regardless of this problem. Nevertheless, you
|
|
*** may want to report the problem to your system manager and/or to
|
|
*** bug-libtool@gnu.org
|
|
|
|
_LT_EOF
|
|
fi ;;
|
|
esac
|
|
fi
|
|
break
|
|
fi
|
|
done
|
|
IFS=$lt_save_ifs
|
|
MAGIC_CMD=$lt_save_MAGIC_CMD
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
|
if test -n "$MAGIC_CMD"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
|
$as_echo "$MAGIC_CMD" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
else
|
|
MAGIC_CMD=:
|
|
fi
|
|
fi
|
|
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
# Use C for the default configuration in the libtool script
|
|
|
|
lt_save_CC=$CC
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
# Source file extension for C test sources.
|
|
ac_ext=c
|
|
|
|
# Object file extension for compiled C test sources.
|
|
objext=o
|
|
objext=$objext
|
|
|
|
# Code to be used in simple compile tests
|
|
lt_simple_compile_test_code="int some_variable = 0;"
|
|
|
|
# Code to be used in simple link tests
|
|
lt_simple_link_test_code='int main(){return(0);}'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If no C compiler was specified, use CC.
|
|
LTCC=${LTCC-"$CC"}
|
|
|
|
# If no C compiler flags were specified, use CFLAGS.
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
|
|
# Allow CC to be a program name with arguments.
|
|
compiler=$CC
|
|
|
|
# Save the default compiler, since it gets overwritten when the other
|
|
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
|
compiler_DEFAULT=$CC
|
|
|
|
# save warnings/boilerplate of simple test code
|
|
ac_outfile=conftest.$ac_objext
|
|
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
_lt_compiler_boilerplate=`cat conftest.err`
|
|
$RM conftest*
|
|
|
|
ac_outfile=conftest.$ac_objext
|
|
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
_lt_linker_boilerplate=`cat conftest.err`
|
|
$RM -r conftest*
|
|
|
|
|
|
## CAVEAT EMPTOR:
|
|
## There is no encapsulation within the following macros, do not change
|
|
## the running order or otherwise move them around unless you know exactly
|
|
## what you are doing...
|
|
if test -n "$compiler"; then
|
|
|
|
lt_prog_compiler_no_builtin_flag=
|
|
|
|
if test yes = "$GCC"; then
|
|
case $cc_basename in
|
|
nvcc*)
|
|
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
|
|
*)
|
|
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
|
|
esac
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
|
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
|
|
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_prog_compiler_rtti_exceptions=no
|
|
ac_outfile=conftest.$ac_objext
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
# The option is referenced via a variable to avoid confusing sed.
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
|
(eval "$lt_compile" 2>conftest.err)
|
|
ac_status=$?
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
# The compiler can only warn and ignore the option if not recognized
|
|
# So say no if there are warnings other than the usual output.
|
|
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
|
lt_cv_prog_compiler_rtti_exceptions=yes
|
|
fi
|
|
fi
|
|
$RM conftest*
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
|
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
|
|
|
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
|
|
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
|
else
|
|
:
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lt_prog_compiler_wl=
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_static=
|
|
|
|
|
|
if test yes = "$GCC"; then
|
|
lt_prog_compiler_wl='-Wl,'
|
|
lt_prog_compiler_static='-static'
|
|
|
|
case $host_os in
|
|
aix*)
|
|
# All AIX code is PIC.
|
|
if test ia64 = "$host_cpu"; then
|
|
# AIX 5 now supports IA64 processor
|
|
lt_prog_compiler_static='-Bstatic'
|
|
fi
|
|
lt_prog_compiler_pic='-fPIC'
|
|
;;
|
|
|
|
amigaos*)
|
|
case $host_cpu in
|
|
powerpc)
|
|
# see comment about AmigaOS4 .so support
|
|
lt_prog_compiler_pic='-fPIC'
|
|
;;
|
|
m68k)
|
|
# FIXME: we need at least 68020 code to build shared libraries, but
|
|
# adding the '-m68020' flag to GCC prevents building anything better,
|
|
# like '-m68040'.
|
|
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
# PIC is the default for these OSes.
|
|
;;
|
|
|
|
mingw* | cygwin* | pw32* | os2* | cegcc*)
|
|
# This hack is so that the source file can tell whether it is being
|
|
# built for inclusion in a dll (and should export symbols for example).
|
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
|
# (--disable-auto-import) libraries
|
|
lt_prog_compiler_pic='-DDLL_EXPORT'
|
|
case $host_os in
|
|
os2*)
|
|
lt_prog_compiler_static='$wl-static'
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
# PIC is the default on this platform
|
|
# Common symbols not allowed in MH_DYLIB files
|
|
lt_prog_compiler_pic='-fno-common'
|
|
;;
|
|
|
|
haiku*)
|
|
# PIC is the default for Haiku.
|
|
# The "-static" flag exists, but is broken.
|
|
lt_prog_compiler_static=
|
|
;;
|
|
|
|
hpux*)
|
|
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
|
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
|
# sets the default TLS model and affects inlining.
|
|
case $host_cpu in
|
|
hppa*64*)
|
|
# +Z the default
|
|
;;
|
|
*)
|
|
lt_prog_compiler_pic='-fPIC'
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
interix[3-9]*)
|
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
# Instead, we relocate shared libraries at runtime.
|
|
;;
|
|
|
|
msdosdjgpp*)
|
|
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
|
# on systems that don't support them.
|
|
lt_prog_compiler_can_build_shared=no
|
|
enable_shared=no
|
|
;;
|
|
|
|
*nto* | *qnx*)
|
|
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
# it will coredump.
|
|
lt_prog_compiler_pic='-fPIC -shared'
|
|
;;
|
|
|
|
sysv4*MP*)
|
|
if test -d /usr/nec; then
|
|
lt_prog_compiler_pic=-Kconform_pic
|
|
fi
|
|
;;
|
|
|
|
*)
|
|
lt_prog_compiler_pic='-fPIC'
|
|
;;
|
|
esac
|
|
|
|
case $cc_basename in
|
|
nvcc*) # Cuda Compiler Driver 2.2
|
|
lt_prog_compiler_wl='-Xlinker '
|
|
if test -n "$lt_prog_compiler_pic"; then
|
|
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
|
|
fi
|
|
;;
|
|
esac
|
|
else
|
|
# PORTME Check for flag to pass linker flags through the system compiler.
|
|
case $host_os in
|
|
aix*)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
if test ia64 = "$host_cpu"; then
|
|
# AIX 5 now supports IA64 processor
|
|
lt_prog_compiler_static='-Bstatic'
|
|
else
|
|
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
|
fi
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
# PIC is the default on this platform
|
|
# Common symbols not allowed in MH_DYLIB files
|
|
lt_prog_compiler_pic='-fno-common'
|
|
case $cc_basename in
|
|
nagfor*)
|
|
# NAG Fortran compiler
|
|
lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
lt_prog_compiler_pic='-PIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
mingw* | cygwin* | pw32* | os2* | cegcc*)
|
|
# This hack is so that the source file can tell whether it is being
|
|
# built for inclusion in a dll (and should export symbols for example).
|
|
lt_prog_compiler_pic='-DDLL_EXPORT'
|
|
case $host_os in
|
|
os2*)
|
|
lt_prog_compiler_static='$wl-static'
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
hpux9* | hpux10* | hpux11*)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|
# not for PA HP-UX.
|
|
case $host_cpu in
|
|
hppa*64*|ia64*)
|
|
# +Z the default
|
|
;;
|
|
*)
|
|
lt_prog_compiler_pic='+Z'
|
|
;;
|
|
esac
|
|
# Is there a better lt_prog_compiler_static that works with the bundled CC?
|
|
lt_prog_compiler_static='$wl-a ${wl}archive'
|
|
;;
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
# PIC (with -KPIC) is the default.
|
|
lt_prog_compiler_static='-non_shared'
|
|
;;
|
|
|
|
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
|
case $cc_basename in
|
|
# old Intel for x86_64, which still supported -KPIC.
|
|
ecc*)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-static'
|
|
;;
|
|
# icc used to be incompatible with GCC.
|
|
# ICC 10 doesn't accept -KPIC any more.
|
|
icc* | ifort*)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
lt_prog_compiler_pic='-fPIC'
|
|
lt_prog_compiler_static='-static'
|
|
;;
|
|
# Lahey Fortran 8.1.
|
|
lf95*)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
lt_prog_compiler_pic='--shared'
|
|
lt_prog_compiler_static='--static'
|
|
;;
|
|
nagfor*)
|
|
# NAG Fortran compiler
|
|
lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
lt_prog_compiler_pic='-PIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
;;
|
|
tcc*)
|
|
# Fabrice Bellard et al's Tiny C Compiler
|
|
lt_prog_compiler_wl='-Wl,'
|
|
lt_prog_compiler_pic='-fPIC'
|
|
lt_prog_compiler_static='-static'
|
|
;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
lt_prog_compiler_pic='-fpic'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
;;
|
|
ccc*)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
# All Alpha code is PIC.
|
|
lt_prog_compiler_static='-non_shared'
|
|
;;
|
|
xl* | bgxl* | bgf* | mpixl*)
|
|
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
|
lt_prog_compiler_wl='-Wl,'
|
|
lt_prog_compiler_pic='-qpic'
|
|
lt_prog_compiler_static='-qstaticlink'
|
|
;;
|
|
*)
|
|
case `$CC -V 2>&1 | sed 5q` in
|
|
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
|
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
lt_prog_compiler_wl=''
|
|
;;
|
|
*Sun\ F* | *Sun*Fortran*)
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
lt_prog_compiler_wl='-Qoption ld '
|
|
;;
|
|
*Sun\ C*)
|
|
# Sun C 5.9
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
lt_prog_compiler_wl='-Wl,'
|
|
;;
|
|
*Intel*\ [CF]*Compiler*)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
lt_prog_compiler_pic='-fPIC'
|
|
lt_prog_compiler_static='-static'
|
|
;;
|
|
*Portland\ Group*)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
lt_prog_compiler_pic='-fpic'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
newsos6)
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
;;
|
|
|
|
*nto* | *qnx*)
|
|
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
# it will coredump.
|
|
lt_prog_compiler_pic='-fPIC -shared'
|
|
;;
|
|
|
|
osf3* | osf4* | osf5*)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
# All OSF/1 code is PIC.
|
|
lt_prog_compiler_static='-non_shared'
|
|
;;
|
|
|
|
rdos*)
|
|
lt_prog_compiler_static='-non_shared'
|
|
;;
|
|
|
|
solaris*)
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
case $cc_basename in
|
|
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
|
*)
|
|
lt_prog_compiler_wl='-Wl,';;
|
|
esac
|
|
;;
|
|
|
|
sunos4*)
|
|
lt_prog_compiler_wl='-Qoption ld '
|
|
lt_prog_compiler_pic='-PIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
;;
|
|
|
|
sysv4 | sysv4.2uw2* | sysv4.3*)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
;;
|
|
|
|
sysv4*MP*)
|
|
if test -d /usr/nec; then
|
|
lt_prog_compiler_pic='-Kconform_pic'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
fi
|
|
;;
|
|
|
|
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
;;
|
|
|
|
unicos*)
|
|
lt_prog_compiler_wl='-Wl,'
|
|
lt_prog_compiler_can_build_shared=no
|
|
;;
|
|
|
|
uts4*)
|
|
lt_prog_compiler_pic='-pic'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
;;
|
|
|
|
*)
|
|
lt_prog_compiler_can_build_shared=no
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
case $host_os in
|
|
# For platforms that do not support PIC, -DPIC is meaningless:
|
|
*djgpp*)
|
|
lt_prog_compiler_pic=
|
|
;;
|
|
*)
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
;;
|
|
esac
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
if ${lt_cv_prog_compiler_pic+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
|
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
|
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
#
|
|
if test -n "$lt_prog_compiler_pic"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
|
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
|
|
if ${lt_cv_prog_compiler_pic_works+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_prog_compiler_pic_works=no
|
|
ac_outfile=conftest.$ac_objext
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
# The option is referenced via a variable to avoid confusing sed.
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
|
(eval "$lt_compile" 2>conftest.err)
|
|
ac_status=$?
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
# The compiler can only warn and ignore the option if not recognized
|
|
# So say no if there are warnings other than the usual output.
|
|
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
|
lt_cv_prog_compiler_pic_works=yes
|
|
fi
|
|
fi
|
|
$RM conftest*
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
|
|
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
|
|
|
|
if test yes = "$lt_cv_prog_compiler_pic_works"; then
|
|
case $lt_prog_compiler_pic in
|
|
"" | " "*) ;;
|
|
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
|
esac
|
|
else
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_can_build_shared=no
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
|
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
|
|
if ${lt_cv_prog_compiler_static_works+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_prog_compiler_static_works=no
|
|
save_LDFLAGS=$LDFLAGS
|
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
# The linker can only warn and ignore the option if not recognized
|
|
# So say no if there are warnings
|
|
if test -s conftest.err; then
|
|
# Append any errors to the config.log.
|
|
cat conftest.err 1>&5
|
|
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
if diff conftest.exp conftest.er2 >/dev/null; then
|
|
lt_cv_prog_compiler_static_works=yes
|
|
fi
|
|
else
|
|
lt_cv_prog_compiler_static_works=yes
|
|
fi
|
|
fi
|
|
$RM -r conftest*
|
|
LDFLAGS=$save_LDFLAGS
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
|
|
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
|
|
|
|
if test yes = "$lt_cv_prog_compiler_static_works"; then
|
|
:
|
|
else
|
|
lt_prog_compiler_static=
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
|
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
|
if ${lt_cv_prog_compiler_c_o+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_prog_compiler_c_o=no
|
|
$RM -r conftest 2>/dev/null
|
|
mkdir conftest
|
|
cd conftest
|
|
mkdir out
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
|
ac_status=$?
|
|
cat out/conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
|
then
|
|
# The compiler can only warn and ignore the option if not recognized
|
|
# So say no if there are warnings
|
|
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
lt_cv_prog_compiler_c_o=yes
|
|
fi
|
|
fi
|
|
chmod u+w . 2>&5
|
|
$RM conftest*
|
|
# SGI C++ compiler will create directory out/ii_files/ for
|
|
# template instantiation
|
|
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
|
$RM out/* && rmdir out
|
|
cd ..
|
|
$RM -r conftest
|
|
$RM conftest*
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
|
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
|
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
|
if ${lt_cv_prog_compiler_c_o+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_prog_compiler_c_o=no
|
|
$RM -r conftest 2>/dev/null
|
|
mkdir conftest
|
|
cd conftest
|
|
mkdir out
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
|
ac_status=$?
|
|
cat out/conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
|
then
|
|
# The compiler can only warn and ignore the option if not recognized
|
|
# So say no if there are warnings
|
|
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
lt_cv_prog_compiler_c_o=yes
|
|
fi
|
|
fi
|
|
chmod u+w . 2>&5
|
|
$RM conftest*
|
|
# SGI C++ compiler will create directory out/ii_files/ for
|
|
# template instantiation
|
|
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
|
$RM out/* && rmdir out
|
|
cd ..
|
|
$RM -r conftest
|
|
$RM conftest*
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
|
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
|
|
|
|
|
|
|
|
|
hard_links=nottested
|
|
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
|
|
# do not overwrite the value of need_locks provided by the user
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
|
|
$as_echo_n "checking if we can lock with hard links... " >&6; }
|
|
hard_links=yes
|
|
$RM conftest*
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
touch conftest.a
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
|
|
$as_echo "$hard_links" >&6; }
|
|
if test no = "$hard_links"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
|
|
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
|
|
need_locks=warn
|
|
fi
|
|
else
|
|
need_locks=no
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
|
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
|
|
|
|
runpath_var=
|
|
allow_undefined_flag=
|
|
always_export_symbols=no
|
|
archive_cmds=
|
|
archive_expsym_cmds=
|
|
compiler_needs_object=no
|
|
enable_shared_with_static_runtimes=no
|
|
export_dynamic_flag_spec=
|
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
hardcode_automatic=no
|
|
hardcode_direct=no
|
|
hardcode_direct_absolute=no
|
|
hardcode_libdir_flag_spec=
|
|
hardcode_libdir_separator=
|
|
hardcode_minus_L=no
|
|
hardcode_shlibpath_var=unsupported
|
|
inherit_rpath=no
|
|
link_all_deplibs=unknown
|
|
module_cmds=
|
|
module_expsym_cmds=
|
|
old_archive_from_new_cmds=
|
|
old_archive_from_expsyms_cmds=
|
|
thread_safe_flag_spec=
|
|
whole_archive_flag_spec=
|
|
# include_expsyms should be a list of space-separated symbols to be *always*
|
|
# included in the symbol list
|
|
include_expsyms=
|
|
# exclude_expsyms can be an extended regexp of symbols to exclude
|
|
# it will be wrapped by ' (' and ')$', so one must not match beginning or
|
|
# end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
|
|
# as well as any symbol that contains 'd'.
|
|
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
|
# platforms (ab)use it in PIC code, but their linkers get confused if
|
|
# the symbol is explicitly referenced. Since portable code cannot
|
|
# rely on this symbol name, it's probably fine to never include it in
|
|
# preloaded symbol tables.
|
|
# Exclude shared library initialization/finalization symbols.
|
|
extract_expsyms_cmds=
|
|
|
|
case $host_os in
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
|
# When not using gcc, we currently assume that we are using
|
|
# Microsoft Visual C++.
|
|
if test yes != "$GCC"; then
|
|
with_gnu_ld=no
|
|
fi
|
|
;;
|
|
interix*)
|
|
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
|
with_gnu_ld=yes
|
|
;;
|
|
openbsd* | bitrig*)
|
|
with_gnu_ld=no
|
|
;;
|
|
esac
|
|
|
|
ld_shlibs=yes
|
|
|
|
# On some targets, GNU ld is compatible enough with the native linker
|
|
# that we're better off using the native interface for both.
|
|
lt_use_gnu_ld_interface=no
|
|
if test yes = "$with_gnu_ld"; then
|
|
case $host_os in
|
|
aix*)
|
|
# The AIX port of GNU ld has always aspired to compatibility
|
|
# with the native linker. However, as the warning in the GNU ld
|
|
# block says, versions before 2.19.5* couldn't really create working
|
|
# shared libraries, regardless of the interface used.
|
|
case `$LD -v 2>&1` in
|
|
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
|
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
|
|
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
|
|
*)
|
|
lt_use_gnu_ld_interface=yes
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
lt_use_gnu_ld_interface=yes
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
if test yes = "$lt_use_gnu_ld_interface"; then
|
|
# If archive_cmds runs LD, not CC, wlarc should be empty
|
|
wlarc='$wl'
|
|
|
|
# Set some defaults for GNU ld with shared library support. These
|
|
# are reset later if shared libraries are not supported. Putting them
|
|
# here allows them to be overridden if necessary.
|
|
runpath_var=LD_RUN_PATH
|
|
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
|
export_dynamic_flag_spec='$wl--export-dynamic'
|
|
# ancient GNU ld didn't support --whole-archive et. al.
|
|
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
|
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
|
|
else
|
|
whole_archive_flag_spec=
|
|
fi
|
|
supports_anon_versioning=no
|
|
case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
|
|
*GNU\ gold*) supports_anon_versioning=yes ;;
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
|
*\ 2.11.*) ;; # other 2.11 versions
|
|
*) supports_anon_versioning=yes ;;
|
|
esac
|
|
|
|
# See if GNU ld supports shared libraries.
|
|
case $host_os in
|
|
aix[3-9]*)
|
|
# On AIX/PPC, the GNU linker is very broken
|
|
if test ia64 != "$host_cpu"; then
|
|
ld_shlibs=no
|
|
cat <<_LT_EOF 1>&2
|
|
|
|
*** Warning: the GNU linker, at least up to release 2.19, is reported
|
|
*** to be unable to reliably create shared libraries on AIX.
|
|
*** Therefore, libtool is disabling shared libraries support. If you
|
|
*** really care for shared libraries, you may want to install binutils
|
|
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
|
*** You will then need to restart the configuration process.
|
|
|
|
_LT_EOF
|
|
fi
|
|
;;
|
|
|
|
amigaos*)
|
|
case $host_cpu in
|
|
powerpc)
|
|
# see comment about AmigaOS4 .so support
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
|
archive_expsym_cmds=''
|
|
;;
|
|
m68k)
|
|
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
|
hardcode_minus_L=yes
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
beos*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
allow_undefined_flag=unsupported
|
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
|
# support --undefined. This deserves some investigation. FIXME
|
|
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
;;
|
|
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
|
# as there is no search path for DLLs.
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
|
export_dynamic_flag_spec='$wl--export-all-symbols'
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=no
|
|
enable_shared_with_static_runtimes=yes
|
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
# If the export-symbols file already is a .def file, use it as
|
|
# is; otherwise, prepend EXPORTS...
|
|
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
|
cp $export_symbols $output_objdir/$soname.def;
|
|
else
|
|
echo EXPORTS > $output_objdir/$soname.def;
|
|
cat $export_symbols >> $output_objdir/$soname.def;
|
|
fi~
|
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
;;
|
|
|
|
haiku*)
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
|
link_all_deplibs=yes
|
|
;;
|
|
|
|
os2*)
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
|
hardcode_minus_L=yes
|
|
allow_undefined_flag=unsupported
|
|
shrext_cmds=.dll
|
|
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
|
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
|
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
|
$ECHO EXPORTS >> $output_objdir/$libname.def~
|
|
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
|
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
|
emximp -o $lib $output_objdir/$libname.def'
|
|
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
|
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
|
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
|
$ECHO EXPORTS >> $output_objdir/$libname.def~
|
|
prefix_cmds="$SED"~
|
|
if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
|
prefix_cmds="$prefix_cmds -e 1d";
|
|
fi~
|
|
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
|
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
|
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
|
emximp -o $lib $output_objdir/$libname.def'
|
|
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
|
enable_shared_with_static_runtimes=yes
|
|
;;
|
|
|
|
interix[3-9]*)
|
|
hardcode_direct=no
|
|
hardcode_shlibpath_var=no
|
|
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
|
export_dynamic_flag_spec='$wl-E'
|
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
# default) and relocated if they conflict, which is a slow very memory
|
|
# consuming and fragmenting process. To avoid this, we pick a random,
|
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
;;
|
|
|
|
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
tmp_diet=no
|
|
if test linux-dietlibc = "$host_os"; then
|
|
case $cc_basename in
|
|
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
|
esac
|
|
fi
|
|
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
|
&& test no = "$tmp_diet"
|
|
then
|
|
tmp_addflag=' $pic_flag'
|
|
tmp_sharedflag='-shared'
|
|
case $cc_basename,$host_cpu in
|
|
pgcc*) # Portland Group C compiler
|
|
whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
|
|
tmp_addflag=' $pic_flag'
|
|
;;
|
|
pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group f77 and f90 compilers
|
|
whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
|
|
tmp_addflag=' $pic_flag -Mnomain' ;;
|
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
|
tmp_addflag=' -i_dynamic' ;;
|
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
|
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
|
ifc* | ifort*) # Intel Fortran compiler
|
|
tmp_addflag=' -nofor_main' ;;
|
|
lf95*) # Lahey Fortran 8.1
|
|
whole_archive_flag_spec=
|
|
tmp_sharedflag='--shared' ;;
|
|
nagfor*) # NAGFOR 5.3
|
|
tmp_sharedflag='-Wl,-shared' ;;
|
|
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
|
tmp_sharedflag='-qmkshrobj'
|
|
tmp_addflag= ;;
|
|
nvcc*) # Cuda Compiler Driver 2.2
|
|
whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
|
|
compiler_needs_object=yes
|
|
;;
|
|
esac
|
|
case `$CC -V 2>&1 | sed 5q` in
|
|
*Sun\ C*) # Sun C 5.9
|
|
whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
|
|
compiler_needs_object=yes
|
|
tmp_sharedflag='-G' ;;
|
|
*Sun\ F*) # Sun Fortran 8.3
|
|
tmp_sharedflag='-G' ;;
|
|
esac
|
|
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
|
|
|
if test yes = "$supports_anon_versioning"; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
|
|
case $cc_basename in
|
|
tcc*)
|
|
export_dynamic_flag_spec='-rdynamic'
|
|
;;
|
|
xlf* | bgf* | bgxlf* | mpixlf*)
|
|
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
|
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
|
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test yes = "$supports_anon_versioning"; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
;;
|
|
|
|
netbsd*)
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
|
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
solaris*)
|
|
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
|
ld_shlibs=no
|
|
cat <<_LT_EOF 1>&2
|
|
|
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
|
*** create shared libraries on Solaris systems. Therefore, libtool
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
*** binutils to release 2.9.1 or newer. Another option is to modify
|
|
*** your PATH or compiler configuration so that the native linker is
|
|
*** used, and then restart.
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
|
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
;;
|
|
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
|
case `$LD -v 2>&1` in
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
|
ld_shlibs=no
|
|
cat <<_LT_EOF 1>&2
|
|
|
|
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
|
|
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
|
*** your PATH or compiler configuration so that the native linker is
|
|
*** used, and then restart.
|
|
|
|
_LT_EOF
|
|
;;
|
|
*)
|
|
# For security reasons, it is highly recommended that you always
|
|
# use absolute paths for naming shared libraries, and exclude the
|
|
# DT_RUNPATH tag from executables and libraries. But doing so
|
|
# requires that you compile everything twice, which is a pain.
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
sunos4*)
|
|
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
wlarc=
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
;;
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
|
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
if test no = "$ld_shlibs"; then
|
|
runpath_var=
|
|
hardcode_libdir_flag_spec=
|
|
export_dynamic_flag_spec=
|
|
whole_archive_flag_spec=
|
|
fi
|
|
else
|
|
# PORTME fill in a description of your system's linker (not GNU ld)
|
|
case $host_os in
|
|
aix3*)
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=yes
|
|
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
|
|
# Note: this linker hardcodes the directories in LIBPATH if there
|
|
# are no directories specified by -L.
|
|
hardcode_minus_L=yes
|
|
if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
|
|
# Neither direct hardcoding nor static linking is supported with a
|
|
# broken collect2.
|
|
hardcode_direct=unsupported
|
|
fi
|
|
;;
|
|
|
|
aix[4-9]*)
|
|
if test ia64 = "$host_cpu"; then
|
|
# On IA64, the linker does run time linking by default, so we don't
|
|
# have to do anything special.
|
|
aix_use_runtimelinking=no
|
|
exp_sym_flag='-Bexport'
|
|
no_entry_flag=
|
|
else
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
|
# -C means demangle to GNU nm, but means don't demangle to AIX nm.
|
|
# Without the "-l" option, or with the "-B" option, AIX nm treats
|
|
# weak defined symbols like other global defined symbols, whereas
|
|
# GNU nm marks them as "W".
|
|
# While the 'weak' keyword is ignored in the Export File, we need
|
|
# it in the Import File for the 'aix-soname' feature, so we have
|
|
# to replace the "-B" option with "-P" for AIX nm.
|
|
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
|
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
|
|
else
|
|
export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
|
|
fi
|
|
aix_use_runtimelinking=no
|
|
|
|
# Test if we are trying to use run time linking or normal
|
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
|
# have runtime linking enabled, and use it for executables.
|
|
# For shared libraries, we enable/disable runtime linking
|
|
# depending on the kind of the shared library created -
|
|
# when "with_aix_soname,aix_use_runtimelinking" is:
|
|
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
|
|
# "aix,yes" lib.so shared, rtl:yes, for executables
|
|
# lib.a static archive
|
|
# "both,no" lib.so.V(shr.o) shared, rtl:yes
|
|
# lib.a(lib.so.V) shared, rtl:no, for executables
|
|
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
|
|
# lib.a(lib.so.V) shared, rtl:no
|
|
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
|
|
# lib.a static archive
|
|
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
|
for ld_flag in $LDFLAGS; do
|
|
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
|
|
aix_use_runtimelinking=yes
|
|
break
|
|
fi
|
|
done
|
|
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
|
|
# With aix-soname=svr4, we create the lib.so.V shared archives only,
|
|
# so we don't have lib.a shared libs to link our executables.
|
|
# We have to force runtime linking in this case.
|
|
aix_use_runtimelinking=yes
|
|
LDFLAGS="$LDFLAGS -Wl,-brtl"
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
exp_sym_flag='-bexport'
|
|
no_entry_flag='-bnoentry'
|
|
fi
|
|
|
|
# When large executables or shared objects are built, AIX ld can
|
|
# have problems creating the table of contents. If linking a library
|
|
# or program results in "error TOC overflow" add -mminimal-toc to
|
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
|
|
|
archive_cmds=''
|
|
hardcode_direct=yes
|
|
hardcode_direct_absolute=yes
|
|
hardcode_libdir_separator=':'
|
|
link_all_deplibs=yes
|
|
file_list_spec='$wl-f,'
|
|
case $with_aix_soname,$aix_use_runtimelinking in
|
|
aix,*) ;; # traditional, no import file
|
|
svr4,* | *,yes) # use import file
|
|
# The Import File defines what to hardcode.
|
|
hardcode_direct=no
|
|
hardcode_direct_absolute=no
|
|
;;
|
|
esac
|
|
|
|
if test yes = "$GCC"; then
|
|
case $host_os in aix4.[012]|aix4.[012].*)
|
|
# We only want to do this on AIX 4.2 and lower, the check
|
|
# below for broken collect2 doesn't work under 4.3+
|
|
collect2name=`$CC -print-prog-name=collect2`
|
|
if test -f "$collect2name" &&
|
|
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
|
then
|
|
# We have reworked collect2
|
|
:
|
|
else
|
|
# We have old collect2
|
|
hardcode_direct=unsupported
|
|
# It fails to find uninstalled libraries when the uninstalled
|
|
# path is not listed in the libpath. Setting hardcode_minus_L
|
|
# to unsupported forces relinking
|
|
hardcode_minus_L=yes
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
|
hardcode_libdir_separator=
|
|
fi
|
|
;;
|
|
esac
|
|
shared_flag='-shared'
|
|
if test yes = "$aix_use_runtimelinking"; then
|
|
shared_flag="$shared_flag "'$wl-G'
|
|
fi
|
|
# Need to ensure runtime linking is disabled for the traditional
|
|
# shared library, or the linker may eventually find shared libraries
|
|
# /with/ Import File - we do not want to mix them.
|
|
shared_flag_aix='-shared'
|
|
shared_flag_svr4='-shared $wl-G'
|
|
else
|
|
# not using gcc
|
|
if test ia64 = "$host_cpu"; then
|
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
|
# chokes on -Wl,-G. The following line is correct:
|
|
shared_flag='-G'
|
|
else
|
|
if test yes = "$aix_use_runtimelinking"; then
|
|
shared_flag='$wl-G'
|
|
else
|
|
shared_flag='$wl-bM:SRE'
|
|
fi
|
|
shared_flag_aix='$wl-bM:SRE'
|
|
shared_flag_svr4='$wl-G'
|
|
fi
|
|
fi
|
|
|
|
export_dynamic_flag_spec='$wl-bexpall'
|
|
# It seems that -bexpall does not export symbols beginning with
|
|
# underscore (_), so it is better to generate a list of symbols to export.
|
|
always_export_symbols=yes
|
|
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
|
|
# Warning - without using the other runtime loading flags (-brtl),
|
|
# -berok will link without error, but may produce a broken library.
|
|
allow_undefined_flag='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
if test set = "${lt_cv_aix_libpath+set}"; then
|
|
aix_libpath=$lt_cv_aix_libpath
|
|
else
|
|
if ${lt_cv_aix_libpath_+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
lt_aix_libpath_sed='
|
|
/Import File Strings/,/^$/ {
|
|
/^0/ {
|
|
s/^0 *\([^ ]*\) *$/\1/
|
|
p
|
|
}
|
|
}'
|
|
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
# Check for a 64-bit object if we didn't find anything.
|
|
if test -z "$lt_cv_aix_libpath_"; then
|
|
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
if test -z "$lt_cv_aix_libpath_"; then
|
|
lt_cv_aix_libpath_=/usr/lib:/lib
|
|
fi
|
|
|
|
fi
|
|
|
|
aix_libpath=$lt_cv_aix_libpath_
|
|
fi
|
|
|
|
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
|
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
|
|
else
|
|
if test ia64 = "$host_cpu"; then
|
|
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
|
|
allow_undefined_flag="-z nodefs"
|
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
if test set = "${lt_cv_aix_libpath+set}"; then
|
|
aix_libpath=$lt_cv_aix_libpath
|
|
else
|
|
if ${lt_cv_aix_libpath_+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
lt_aix_libpath_sed='
|
|
/Import File Strings/,/^$/ {
|
|
/^0/ {
|
|
s/^0 *\([^ ]*\) *$/\1/
|
|
p
|
|
}
|
|
}'
|
|
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
# Check for a 64-bit object if we didn't find anything.
|
|
if test -z "$lt_cv_aix_libpath_"; then
|
|
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
if test -z "$lt_cv_aix_libpath_"; then
|
|
lt_cv_aix_libpath_=/usr/lib:/lib
|
|
fi
|
|
|
|
fi
|
|
|
|
aix_libpath=$lt_cv_aix_libpath_
|
|
fi
|
|
|
|
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
# -berok will link without error, but may produce a broken library.
|
|
no_undefined_flag=' $wl-bernotok'
|
|
allow_undefined_flag=' $wl-berok'
|
|
if test yes = "$with_gnu_ld"; then
|
|
# We only use this code for GNU lds that support --whole-archive.
|
|
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
|
|
else
|
|
# Exported symbols can be pulled into shared objects from archives
|
|
whole_archive_flag_spec='$convenience'
|
|
fi
|
|
archive_cmds_need_lc=yes
|
|
archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
|
|
# -brtl affects multiple linker settings, -berok does not and is overridden later
|
|
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
|
|
if test svr4 != "$with_aix_soname"; then
|
|
# This is similar to how AIX traditionally builds its shared libraries.
|
|
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
|
|
fi
|
|
if test aix != "$with_aix_soname"; then
|
|
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
|
|
else
|
|
# used by -dlpreopen to get the symbols
|
|
archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
|
|
fi
|
|
archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
|
|
fi
|
|
fi
|
|
;;
|
|
|
|
amigaos*)
|
|
case $host_cpu in
|
|
powerpc)
|
|
# see comment about AmigaOS4 .so support
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
|
archive_expsym_cmds=''
|
|
;;
|
|
m68k)
|
|
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
|
hardcode_minus_L=yes
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
bsdi[45]*)
|
|
export_dynamic_flag_spec=-rdynamic
|
|
;;
|
|
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
# When not using gcc, we currently assume that we are using
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
case $cc_basename in
|
|
cl*)
|
|
# Native MSVC
|
|
hardcode_libdir_flag_spec=' '
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=yes
|
|
file_list_spec='@'
|
|
# Tell ltmain to make .lib files, not .a files.
|
|
libext=lib
|
|
# Tell ltmain to make .dll files, not .so files.
|
|
shrext_cmds=.dll
|
|
# FIXME: Setting linknames here is a bad hack.
|
|
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
|
|
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
|
cp "$export_symbols" "$output_objdir/$soname.def";
|
|
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
|
|
else
|
|
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
|
|
fi~
|
|
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
linknames='
|
|
# The linker will not automatically build a static lib if we build a DLL.
|
|
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
|
enable_shared_with_static_runtimes=yes
|
|
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
# Don't use ranlib
|
|
old_postinstall_cmds='chmod 644 $oldlib'
|
|
postlink_cmds='lt_outputfile="@OUTPUT@"~
|
|
lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
case $lt_outputfile in
|
|
*.exe|*.EXE) ;;
|
|
*)
|
|
lt_outputfile=$lt_outputfile.exe
|
|
lt_tool_outputfile=$lt_tool_outputfile.exe
|
|
;;
|
|
esac~
|
|
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
|
|
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
$RM "$lt_outputfile.manifest";
|
|
fi'
|
|
;;
|
|
*)
|
|
# Assume MSVC wrapper
|
|
hardcode_libdir_flag_spec=' '
|
|
allow_undefined_flag=unsupported
|
|
# Tell ltmain to make .lib files, not .a files.
|
|
libext=lib
|
|
# Tell ltmain to make .dll files, not .so files.
|
|
shrext_cmds=.dll
|
|
# FIXME: Setting linknames here is a bad hack.
|
|
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
# The linker will automatically build a .lib file if we build a DLL.
|
|
old_archive_from_new_cmds='true'
|
|
# FIXME: Should let the user specify the lib program.
|
|
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
enable_shared_with_static_runtimes=yes
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
|
|
|
|
archive_cmds_need_lc=no
|
|
hardcode_direct=no
|
|
hardcode_automatic=yes
|
|
hardcode_shlibpath_var=unsupported
|
|
if test yes = "$lt_cv_ld_force_load"; then
|
|
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
|
|
|
|
else
|
|
whole_archive_flag_spec=''
|
|
fi
|
|
link_all_deplibs=yes
|
|
allow_undefined_flag=$_lt_dar_allow_undefined
|
|
case $cc_basename in
|
|
ifort*|nagfor*) _lt_dar_can_shared=yes ;;
|
|
*) _lt_dar_can_shared=$GCC ;;
|
|
esac
|
|
if test yes = "$_lt_dar_can_shared"; then
|
|
output_verbose_link_cmd=func_echo_all
|
|
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
|
|
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
|
|
archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
|
|
module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
|
|
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
|
|
;;
|
|
|
|
dgux*)
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
|
hardcode_shlibpath_var=no
|
|
;;
|
|
|
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
# support. Future versions do this automatically, but an explicit c++rt0.o
|
|
# does not break anything, and helps significantly (at the cost of a little
|
|
# extra space).
|
|
freebsd2.2*)
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
;;
|
|
|
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
|
freebsd2.*)
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
hardcode_direct=yes
|
|
hardcode_minus_L=yes
|
|
hardcode_shlibpath_var=no
|
|
;;
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
;;
|
|
|
|
hpux9*)
|
|
if test yes = "$GCC"; then
|
|
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
|
|
else
|
|
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
|
|
fi
|
|
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
|
hardcode_libdir_separator=:
|
|
hardcode_direct=yes
|
|
|
|
# hardcode_minus_L: Not really in the search PATH,
|
|
# but as the default location of the library.
|
|
hardcode_minus_L=yes
|
|
export_dynamic_flag_spec='$wl-E'
|
|
;;
|
|
|
|
hpux10*)
|
|
if test yes,no = "$GCC,$with_gnu_ld"; then
|
|
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
if test no = "$with_gnu_ld"; then
|
|
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
|
hardcode_libdir_separator=:
|
|
hardcode_direct=yes
|
|
hardcode_direct_absolute=yes
|
|
export_dynamic_flag_spec='$wl-E'
|
|
# hardcode_minus_L: Not really in the search PATH,
|
|
# but as the default location of the library.
|
|
hardcode_minus_L=yes
|
|
fi
|
|
;;
|
|
|
|
hpux11*)
|
|
if test yes,no = "$GCC,$with_gnu_ld"; then
|
|
case $host_cpu in
|
|
hppa*64*)
|
|
archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
case $host_cpu in
|
|
hppa*64*)
|
|
archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
|
|
# Older versions of the 11.00 compiler do not understand -b yet
|
|
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
|
|
$as_echo_n "checking if $CC understands -b... " >&6; }
|
|
if ${lt_cv_prog_compiler__b+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_prog_compiler__b=no
|
|
save_LDFLAGS=$LDFLAGS
|
|
LDFLAGS="$LDFLAGS -b"
|
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
# The linker can only warn and ignore the option if not recognized
|
|
# So say no if there are warnings
|
|
if test -s conftest.err; then
|
|
# Append any errors to the config.log.
|
|
cat conftest.err 1>&5
|
|
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
if diff conftest.exp conftest.er2 >/dev/null; then
|
|
lt_cv_prog_compiler__b=yes
|
|
fi
|
|
else
|
|
lt_cv_prog_compiler__b=yes
|
|
fi
|
|
fi
|
|
$RM -r conftest*
|
|
LDFLAGS=$save_LDFLAGS
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
|
|
$as_echo "$lt_cv_prog_compiler__b" >&6; }
|
|
|
|
if test yes = "$lt_cv_prog_compiler__b"; then
|
|
archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
if test no = "$with_gnu_ld"; then
|
|
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
|
hardcode_libdir_separator=:
|
|
|
|
case $host_cpu in
|
|
hppa*64*|ia64*)
|
|
hardcode_direct=no
|
|
hardcode_shlibpath_var=no
|
|
;;
|
|
*)
|
|
hardcode_direct=yes
|
|
hardcode_direct_absolute=yes
|
|
export_dynamic_flag_spec='$wl-E'
|
|
|
|
# hardcode_minus_L: Not really in the search PATH,
|
|
# but as the default location of the library.
|
|
hardcode_minus_L=yes
|
|
;;
|
|
esac
|
|
fi
|
|
;;
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test yes = "$GCC"; then
|
|
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
# This should be the same for all languages, so no per-tag cache variable.
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
|
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
|
if ${lt_cv_irix_exported_symbol+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
save_LDFLAGS=$LDFLAGS
|
|
LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
int foo (void) { return 0; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
lt_cv_irix_exported_symbol=yes
|
|
else
|
|
lt_cv_irix_exported_symbol=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LDFLAGS=$save_LDFLAGS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
|
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|
if test yes = "$lt_cv_irix_exported_symbol"; then
|
|
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
|
|
fi
|
|
else
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
|
|
fi
|
|
archive_cmds_need_lc='no'
|
|
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
|
hardcode_libdir_separator=:
|
|
inherit_rpath=yes
|
|
link_all_deplibs=yes
|
|
;;
|
|
|
|
linux*)
|
|
case $cc_basename in
|
|
tcc*)
|
|
# Fabrice Bellard et al's Tiny C Compiler
|
|
ld_shlibs=yes
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
netbsd*)
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
|
else
|
|
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
|
fi
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
;;
|
|
|
|
newsos6)
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
hardcode_direct=yes
|
|
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
|
hardcode_libdir_separator=:
|
|
hardcode_shlibpath_var=no
|
|
;;
|
|
|
|
*nto* | *qnx*)
|
|
;;
|
|
|
|
openbsd* | bitrig*)
|
|
if test -f /usr/libexec/ld.so; then
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
hardcode_direct_absolute=yes
|
|
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
|
|
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
|
export_dynamic_flag_spec='$wl-E'
|
|
else
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
|
fi
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
;;
|
|
|
|
os2*)
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
|
hardcode_minus_L=yes
|
|
allow_undefined_flag=unsupported
|
|
shrext_cmds=.dll
|
|
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
|
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
|
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
|
$ECHO EXPORTS >> $output_objdir/$libname.def~
|
|
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
|
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
|
emximp -o $lib $output_objdir/$libname.def'
|
|
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
|
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
|
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
|
$ECHO EXPORTS >> $output_objdir/$libname.def~
|
|
prefix_cmds="$SED"~
|
|
if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
|
prefix_cmds="$prefix_cmds -e 1d";
|
|
fi~
|
|
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
|
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
|
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
|
emximp -o $lib $output_objdir/$libname.def'
|
|
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
|
enable_shared_with_static_runtimes=yes
|
|
;;
|
|
|
|
osf3*)
|
|
if test yes = "$GCC"; then
|
|
allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
|
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
|
|
fi
|
|
archive_cmds_need_lc='no'
|
|
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
|
hardcode_libdir_separator=:
|
|
;;
|
|
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test yes = "$GCC"; then
|
|
allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
|
archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
|
|
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
|
|
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
|
|
$CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
|
|
|
|
# Both c and cxx compiler support -rpath directly
|
|
hardcode_libdir_flag_spec='-rpath $libdir'
|
|
fi
|
|
archive_cmds_need_lc='no'
|
|
hardcode_libdir_separator=:
|
|
;;
|
|
|
|
solaris*)
|
|
no_undefined_flag=' -z defs'
|
|
if test yes = "$GCC"; then
|
|
wlarc='$wl'
|
|
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
$CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
wlarc=''
|
|
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
|
;;
|
|
*)
|
|
wlarc='$wl'
|
|
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
;;
|
|
esac
|
|
fi
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_shlibpath_var=no
|
|
case $host_os in
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
|
*)
|
|
# The compiler driver will combine and reorder linker options,
|
|
# but understands '-z linker_flag'. GCC discards it without '$wl',
|
|
# but is careful enough not to reorder.
|
|
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
if test yes = "$GCC"; then
|
|
whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
|
|
else
|
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
|
fi
|
|
;;
|
|
esac
|
|
link_all_deplibs=yes
|
|
;;
|
|
|
|
sunos4*)
|
|
if test sequent = "$host_vendor"; then
|
|
# Use $CC to link under sequent, because it throws in some extra .o
|
|
# files that make .init and .fini sections work.
|
|
archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_minus_L=yes
|
|
hardcode_shlibpath_var=no
|
|
;;
|
|
|
|
sysv4)
|
|
case $host_vendor in
|
|
sni)
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
hardcode_direct=yes # is this really true???
|
|
;;
|
|
siemens)
|
|
## LD is ld it makes a PLAMLIB
|
|
## CC just makes a GrossModule.
|
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
|
reload_cmds='$CC -r -o $output$reload_objs'
|
|
hardcode_direct=no
|
|
;;
|
|
motorola)
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
|
;;
|
|
esac
|
|
runpath_var='LD_RUN_PATH'
|
|
hardcode_shlibpath_var=no
|
|
;;
|
|
|
|
sysv4.3*)
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
hardcode_shlibpath_var=no
|
|
export_dynamic_flag_spec='-Bexport'
|
|
;;
|
|
|
|
sysv4*MP*)
|
|
if test -d /usr/nec; then
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
hardcode_shlibpath_var=no
|
|
runpath_var=LD_RUN_PATH
|
|
hardcode_runpath_var=yes
|
|
ld_shlibs=yes
|
|
fi
|
|
;;
|
|
|
|
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
|
no_undefined_flag='$wl-z,text'
|
|
archive_cmds_need_lc=no
|
|
hardcode_shlibpath_var=no
|
|
runpath_var='LD_RUN_PATH'
|
|
|
|
if test yes = "$GCC"; then
|
|
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
fi
|
|
;;
|
|
|
|
sysv5* | sco3.2v5* | sco5v6*)
|
|
# Note: We CANNOT use -z defs as we might desire, because we do not
|
|
# link with -lc, and that would cause any symbols used from libc to
|
|
# always be unresolved, which means just about no library would
|
|
# ever link correctly. If we're not using GNU ld we use -z text
|
|
# though, which does catch some bad symbols but isn't as heavy-handed
|
|
# as -z defs.
|
|
no_undefined_flag='$wl-z,text'
|
|
allow_undefined_flag='$wl-z,nodefs'
|
|
archive_cmds_need_lc=no
|
|
hardcode_shlibpath_var=no
|
|
hardcode_libdir_flag_spec='$wl-R,$libdir'
|
|
hardcode_libdir_separator=':'
|
|
link_all_deplibs=yes
|
|
export_dynamic_flag_spec='$wl-Bexport'
|
|
runpath_var='LD_RUN_PATH'
|
|
|
|
if test yes = "$GCC"; then
|
|
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
fi
|
|
;;
|
|
|
|
uts4*)
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
|
hardcode_shlibpath_var=no
|
|
;;
|
|
|
|
*)
|
|
ld_shlibs=no
|
|
;;
|
|
esac
|
|
|
|
if test sni = "$host_vendor"; then
|
|
case $host in
|
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
export_dynamic_flag_spec='$wl-Blargedynsym'
|
|
;;
|
|
esac
|
|
fi
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
|
|
$as_echo "$ld_shlibs" >&6; }
|
|
test no = "$ld_shlibs" && can_build_shared=no
|
|
|
|
with_gnu_ld=$with_gnu_ld
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# Do we need to explicitly link libc?
|
|
#
|
|
case "x$archive_cmds_need_lc" in
|
|
x|xyes)
|
|
# Assume -lc should be added
|
|
archive_cmds_need_lc=yes
|
|
|
|
if test yes,yes = "$GCC,$enable_shared"; then
|
|
case $archive_cmds in
|
|
*'~'*)
|
|
# FIXME: we may have to deal with multi-command sequences.
|
|
;;
|
|
'$CC '*)
|
|
# Test whether the compiler implicitly links with -lc since on some
|
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
|
# to ld, don't add -lc before -lgcc.
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
|
|
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
|
|
if ${lt_cv_archive_cmds_need_lc+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
$RM conftest*
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; } 2>conftest.err; then
|
|
soname=conftest
|
|
lib=conftest
|
|
libobjs=conftest.$ac_objext
|
|
deplibs=
|
|
wl=$lt_prog_compiler_wl
|
|
pic_flag=$lt_prog_compiler_pic
|
|
compiler_flags=-v
|
|
linker_flags=-v
|
|
verstring=
|
|
output_objdir=.
|
|
libname=conftest
|
|
lt_save_allow_undefined_flag=$allow_undefined_flag
|
|
allow_undefined_flag=
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
|
|
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }
|
|
then
|
|
lt_cv_archive_cmds_need_lc=no
|
|
else
|
|
lt_cv_archive_cmds_need_lc=yes
|
|
fi
|
|
allow_undefined_flag=$lt_save_allow_undefined_flag
|
|
else
|
|
cat conftest.err 1>&5
|
|
fi
|
|
$RM conftest*
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
|
|
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
|
|
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
|
|
;;
|
|
esac
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
|
|
$as_echo_n "checking dynamic linker characteristics... " >&6; }
|
|
|
|
if test yes = "$GCC"; then
|
|
case $host_os in
|
|
darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
|
|
*) lt_awk_arg='/^libraries:/' ;;
|
|
esac
|
|
case $host_os in
|
|
mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
|
|
*) lt_sed_strip_eq='s|=/|/|g' ;;
|
|
esac
|
|
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
|
|
case $lt_search_path_spec in
|
|
*\;*)
|
|
# if the path contains ";" then we assume it to be the separator
|
|
# otherwise default to the standard path separator (i.e. ":") - it is
|
|
# assumed that no part of a normal pathname contains ";" but that should
|
|
# okay in the real world where ";" in dirpaths is itself problematic.
|
|
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
|
|
;;
|
|
*)
|
|
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
|
|
;;
|
|
esac
|
|
# Ok, now we have the path, separated by spaces, we can step through it
|
|
# and add multilib dir if necessary...
|
|
lt_tmp_lt_search_path_spec=
|
|
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
|
# ...but if some path component already ends with the multilib dir we assume
|
|
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
|
|
case "$lt_multi_os_dir; $lt_search_path_spec " in
|
|
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
|
|
lt_multi_os_dir=
|
|
;;
|
|
esac
|
|
for lt_sys_path in $lt_search_path_spec; do
|
|
if test -d "$lt_sys_path$lt_multi_os_dir"; then
|
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
|
|
elif test -n "$lt_multi_os_dir"; then
|
|
test -d "$lt_sys_path" && \
|
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
|
fi
|
|
done
|
|
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
|
|
BEGIN {RS = " "; FS = "/|\n";} {
|
|
lt_foo = "";
|
|
lt_count = 0;
|
|
for (lt_i = NF; lt_i > 0; lt_i--) {
|
|
if ($lt_i != "" && $lt_i != ".") {
|
|
if ($lt_i == "..") {
|
|
lt_count++;
|
|
} else {
|
|
if (lt_count == 0) {
|
|
lt_foo = "/" $lt_i lt_foo;
|
|
} else {
|
|
lt_count--;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (lt_foo != "") { lt_freq[lt_foo]++; }
|
|
if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
|
}'`
|
|
# AWK program above erroneously prepends '/' to C:/dos/paths
|
|
# for these hosts.
|
|
case $host_os in
|
|
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
|
|
$SED 's|/\([A-Za-z]:\)|\1|g'` ;;
|
|
esac
|
|
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
|
|
else
|
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
|
fi
|
|
library_names_spec=
|
|
libname_spec='lib$name'
|
|
soname_spec=
|
|
shrext_cmds=.so
|
|
postinstall_cmds=
|
|
postuninstall_cmds=
|
|
finish_cmds=
|
|
finish_eval=
|
|
shlibpath_var=
|
|
shlibpath_overrides_runpath=unknown
|
|
version_type=none
|
|
dynamic_linker="$host_os ld.so"
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
need_lib_prefix=unknown
|
|
hardcode_into_libs=no
|
|
|
|
# when you set need_version to no, make sure it does not cause -set_version
|
|
# flags to be left without arguments
|
|
need_version=unknown
|
|
|
|
|
|
|
|
case $host_os in
|
|
aix3*)
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
|
|
shlibpath_var=LIBPATH
|
|
|
|
# AIX 3 has no versioning support, so we append a major version to the name.
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
;;
|
|
|
|
aix[4-9]*)
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
hardcode_into_libs=yes
|
|
if test ia64 = "$host_cpu"; then
|
|
# AIX 5 supports IA64
|
|
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
else
|
|
# With GCC up to 2.95.x, collect2 would create an import file
|
|
# for dependence libraries. The import file would start with
|
|
# the line '#! .'. This would cause the generated library to
|
|
# depend on '.', always an invalid library. This was fixed in
|
|
# development snapshots of GCC prior to 3.0.
|
|
case $host_os in
|
|
aix4 | aix4.[01] | aix4.[01].*)
|
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
|
echo ' yes '
|
|
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
|
|
:
|
|
else
|
|
can_build_shared=no
|
|
fi
|
|
;;
|
|
esac
|
|
# Using Import Files as archive members, it is possible to support
|
|
# filename-based versioning of shared library archives on AIX. While
|
|
# this would work for both with and without runtime linking, it will
|
|
# prevent static linking of such archives. So we do filename-based
|
|
# shared library versioning with .so extension only, which is used
|
|
# when both runtime linking and shared linking is enabled.
|
|
# Unfortunately, runtime linking may impact performance, so we do
|
|
# not want this to be the default eventually. Also, we use the
|
|
# versioned .so libs for executables only if there is the -brtl
|
|
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
|
|
# To allow for filename-based versioning support, we need to create
|
|
# libNAME.so.V as an archive file, containing:
|
|
# *) an Import File, referring to the versioned filename of the
|
|
# archive as well as the shared archive member, telling the
|
|
# bitwidth (32 or 64) of that shared object, and providing the
|
|
# list of exported symbols of that shared object, eventually
|
|
# decorated with the 'weak' keyword
|
|
# *) the shared object with the F_LOADONLY flag set, to really avoid
|
|
# it being seen by the linker.
|
|
# At run time we better use the real file rather than another symlink,
|
|
# but for link time we create the symlink libNAME.so -> libNAME.so.V
|
|
|
|
case $with_aix_soname,$aix_use_runtimelinking in
|
|
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
|
|
# soname into executable. Probably we can add versioning support to
|
|
# collect2, so additional links can be useful in future.
|
|
aix,yes) # traditional libtool
|
|
dynamic_linker='AIX unversionable lib.so'
|
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
|
# instead of lib<name>.a to let people know that these are not
|
|
# typical AIX shared libraries.
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
;;
|
|
aix,no) # traditional AIX only
|
|
dynamic_linker='AIX lib.a(lib.so.V)'
|
|
# We preserve .a as extension for shared libraries through AIX4.2
|
|
# and later when we are not doing run time linking.
|
|
library_names_spec='$libname$release.a $libname.a'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
;;
|
|
svr4,*) # full svr4 only
|
|
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
|
|
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
|
# We do not specify a path in Import Files, so LIBPATH fires.
|
|
shlibpath_overrides_runpath=yes
|
|
;;
|
|
*,yes) # both, prefer svr4
|
|
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
|
|
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
|
# unpreferred sharedlib libNAME.a needs extra handling
|
|
postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
|
|
postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
|
|
# We do not specify a path in Import Files, so LIBPATH fires.
|
|
shlibpath_overrides_runpath=yes
|
|
;;
|
|
*,no) # both, prefer aix
|
|
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
|
|
library_names_spec='$libname$release.a $libname.a'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
|
|
postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
|
|
postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
|
|
;;
|
|
esac
|
|
shlibpath_var=LIBPATH
|
|
fi
|
|
;;
|
|
|
|
amigaos*)
|
|
case $host_cpu in
|
|
powerpc)
|
|
# Since July 2007 AmigaOS4 officially supports .so libraries.
|
|
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
;;
|
|
m68k)
|
|
library_names_spec='$libname.ixlibrary $libname.a'
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
|
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
beos*)
|
|
library_names_spec='$libname$shared_ext'
|
|
dynamic_linker="$host_os ld.so"
|
|
shlibpath_var=LIBRARY_PATH
|
|
;;
|
|
|
|
bsdi[45]*)
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_version=no
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
|
# the default ld.so.conf also contains /usr/contrib/lib and
|
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
|
# libtool to hard-code these into programs
|
|
;;
|
|
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
version_type=windows
|
|
shrext_cmds=.dll
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
case $GCC,$cc_basename in
|
|
yes,*)
|
|
# gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \$file`~
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
|
dldir=$destdir/`dirname \$dlpath`~
|
|
test -d \$dldir || mkdir -p \$dldir~
|
|
$install_prog $dir/$dlname \$dldir/$dlname~
|
|
chmod a+x \$dldir/$dlname~
|
|
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
|
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
|
fi'
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
dlpath=$dir/\$dldll~
|
|
$RM \$dlpath'
|
|
shlibpath_overrides_runpath=yes
|
|
|
|
case $host_os in
|
|
cygwin*)
|
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
|
soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
|
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
|
|
;;
|
|
mingw* | cegcc*)
|
|
# MinGW DLLs use traditional 'lib' prefix
|
|
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
|
;;
|
|
pw32*)
|
|
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
|
library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
|
;;
|
|
esac
|
|
dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
|
|
*,cl*)
|
|
# Native MSVC
|
|
libname_spec='$name'
|
|
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
|
library_names_spec='$libname.dll.lib'
|
|
|
|
case $build_os in
|
|
mingw*)
|
|
sys_lib_search_path_spec=
|
|
lt_save_ifs=$IFS
|
|
IFS=';'
|
|
for lt_path in $LIB
|
|
do
|
|
IFS=$lt_save_ifs
|
|
# Let DOS variable expansion print the short 8.3 style file name.
|
|
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
done
|
|
IFS=$lt_save_ifs
|
|
# Convert to MSYS style.
|
|
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
;;
|
|
cygwin*)
|
|
# Convert to unix form, then to dos form, then back to unix form
|
|
# but this time dos style (no spaces!) so that the unix form looks
|
|
# like /cygdrive/c/PROGRA~1:/cygdr...
|
|
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
;;
|
|
*)
|
|
sys_lib_search_path_spec=$LIB
|
|
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
# It is most probably a Windows format PATH.
|
|
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
else
|
|
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
fi
|
|
# FIXME: find the short name or the path components, as spaces are
|
|
# common. (e.g. "Program Files" -> "PROGRA~1")
|
|
;;
|
|
esac
|
|
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \$file`~
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
|
dldir=$destdir/`dirname \$dlpath`~
|
|
test -d \$dldir || mkdir -p \$dldir~
|
|
$install_prog $dir/$dlname \$dldir/$dlname'
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
dlpath=$dir/\$dldll~
|
|
$RM \$dlpath'
|
|
shlibpath_overrides_runpath=yes
|
|
dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
# Assume MSVC wrapper
|
|
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
|
|
dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
dynamic_linker="$host_os dyld"
|
|
version_type=darwin
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
|
|
soname_spec='$libname$release$major$shared_ext'
|
|
shlibpath_overrides_runpath=yes
|
|
shlibpath_var=DYLD_LIBRARY_PATH
|
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|
;;
|
|
|
|
dgux*)
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
;;
|
|
|
|
freebsd* | dragonfly*)
|
|
# DragonFly does not have aout. When/if they implement a new
|
|
# versioning mechanism, adjust this.
|
|
if test -x /usr/bin/objformat; then
|
|
objformat=`/usr/bin/objformat`
|
|
else
|
|
case $host_os in
|
|
freebsd[23].*) objformat=aout ;;
|
|
*) objformat=elf ;;
|
|
esac
|
|
fi
|
|
version_type=freebsd-$objformat
|
|
case $version_type in
|
|
freebsd-elf*)
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
;;
|
|
freebsd-*)
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
|
need_version=yes
|
|
;;
|
|
esac
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
case $host_os in
|
|
freebsd2.*)
|
|
shlibpath_overrides_runpath=yes
|
|
;;
|
|
freebsd3.[01]* | freebsdelf3.[01]*)
|
|
shlibpath_overrides_runpath=yes
|
|
hardcode_into_libs=yes
|
|
;;
|
|
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
|
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
|
shlibpath_overrides_runpath=no
|
|
hardcode_into_libs=yes
|
|
;;
|
|
*) # from 4.6 on, and DragonFly
|
|
shlibpath_overrides_runpath=yes
|
|
hardcode_into_libs=yes
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
haiku*)
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
dynamic_linker="$host_os runtime_loader"
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
shlibpath_var=LIBRARY_PATH
|
|
shlibpath_overrides_runpath=no
|
|
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
|
hardcode_into_libs=yes
|
|
;;
|
|
|
|
hpux9* | hpux10* | hpux11*)
|
|
# Give a soname corresponding to the major version so that dld.sl refuses to
|
|
# link against other versions.
|
|
version_type=sunos
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
case $host_cpu in
|
|
ia64*)
|
|
shrext_cmds='.so'
|
|
hardcode_into_libs=yes
|
|
dynamic_linker="$host_os dld.so"
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
if test 32 = "$HPUX_IA64_MODE"; then
|
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
|
sys_lib_dlsearch_path_spec=/usr/lib/hpux32
|
|
else
|
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
|
sys_lib_dlsearch_path_spec=/usr/lib/hpux64
|
|
fi
|
|
;;
|
|
hppa*64*)
|
|
shrext_cmds='.sl'
|
|
hardcode_into_libs=yes
|
|
dynamic_linker="$host_os dld.sl"
|
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
;;
|
|
*)
|
|
shrext_cmds='.sl'
|
|
dynamic_linker="$host_os dld.sl"
|
|
shlibpath_var=SHLIB_PATH
|
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
;;
|
|
esac
|
|
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
|
|
postinstall_cmds='chmod 555 $lib'
|
|
# or fails outright, so override atomically:
|
|
install_override_mode=555
|
|
;;
|
|
|
|
interix[3-9]*)
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=no
|
|
hardcode_into_libs=yes
|
|
;;
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
case $host_os in
|
|
nonstopux*) version_type=nonstopux ;;
|
|
*)
|
|
if test yes = "$lt_cv_prog_gnu_ld"; then
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
else
|
|
version_type=irix
|
|
fi ;;
|
|
esac
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
|
|
case $host_os in
|
|
irix5* | nonstopux*)
|
|
libsuff= shlibsuff=
|
|
;;
|
|
*)
|
|
case $LD in # libtool.m4 will add one of these switches to LD
|
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
|
libsuff= shlibsuff= libmagic=32-bit;;
|
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
|
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
|
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
|
*) libsuff= shlibsuff= libmagic=never-match;;
|
|
esac
|
|
;;
|
|
esac
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
|
shlibpath_overrides_runpath=no
|
|
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
|
|
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
|
|
hardcode_into_libs=yes
|
|
;;
|
|
|
|
# No shared lib support for Linux oldld, aout, or coff.
|
|
linux*oldld* | linux*aout* | linux*coff*)
|
|
dynamic_linker=no
|
|
;;
|
|
|
|
linux*android*)
|
|
version_type=none # Android doesn't support versioned libraries.
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
library_names_spec='$libname$release$shared_ext'
|
|
soname_spec='$libname$release$shared_ext'
|
|
finish_cmds=
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=yes
|
|
|
|
# This implies no fast_install, which is unacceptable.
|
|
# Some rework will be needed to allow for fast_install
|
|
# before this can be enabled.
|
|
hardcode_into_libs=yes
|
|
|
|
dynamic_linker='Android linker'
|
|
# Don't embed -rpath directories since the linker doesn't support them.
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
|
;;
|
|
|
|
# This must be glibc/ELF.
|
|
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=no
|
|
|
|
# Some binutils ld are patched to set DT_RUNPATH
|
|
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_shlibpath_overrides_runpath=no
|
|
save_LDFLAGS=$LDFLAGS
|
|
save_libdir=$libdir
|
|
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
|
|
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
|
|
lt_cv_shlibpath_overrides_runpath=yes
|
|
fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LDFLAGS=$save_LDFLAGS
|
|
libdir=$save_libdir
|
|
|
|
fi
|
|
|
|
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
|
|
|
|
# This implies no fast_install, which is unacceptable.
|
|
# Some rework will be needed to allow for fast_install
|
|
# before this can be enabled.
|
|
hardcode_into_libs=yes
|
|
|
|
# Ideally, we could use ldconfig to report *all* directores which are
|
|
# searched for libraries, however this is still not possible. Aside from not
|
|
# being certain /sbin/ldconfig is available, command
|
|
# 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
|
|
# even though it is searched at run-time. Try to do the best guess by
|
|
# appending ld.so.conf contents (and includes) to the search path.
|
|
if test -f /etc/ld.so.conf; then
|
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
fi
|
|
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
# powerpc, because MkLinux only supported shared libraries with the
|
|
# GNU dynamic linker. Since this was broken with cross compilers,
|
|
# most powerpc-linux boxes support dynamic linking these days and
|
|
# people can always --disable-shared, the test was removed, and we
|
|
# assume the GNU/Linux dynamic linker is in use.
|
|
dynamic_linker='GNU/Linux ld.so'
|
|
;;
|
|
|
|
netbsd*)
|
|
version_type=sunos
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
dynamic_linker='NetBSD (a.out) ld.so'
|
|
else
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
dynamic_linker='NetBSD ld.elf_so'
|
|
fi
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=yes
|
|
hardcode_into_libs=yes
|
|
;;
|
|
|
|
newsos6)
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=yes
|
|
;;
|
|
|
|
*nto* | *qnx*)
|
|
version_type=qnx
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=no
|
|
hardcode_into_libs=yes
|
|
dynamic_linker='ldqnx.so'
|
|
;;
|
|
|
|
openbsd* | bitrig*)
|
|
version_type=sunos
|
|
sys_lib_dlsearch_path_spec=/usr/lib
|
|
need_lib_prefix=no
|
|
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
|
need_version=no
|
|
else
|
|
need_version=yes
|
|
fi
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=yes
|
|
;;
|
|
|
|
os2*)
|
|
libname_spec='$name'
|
|
version_type=windows
|
|
shrext_cmds=.dll
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
# OS/2 can only load a DLL with a base name of 8 characters or less.
|
|
soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
|
|
v=$($ECHO $release$versuffix | tr -d .-);
|
|
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
|
|
$ECHO $n$v`$shared_ext'
|
|
library_names_spec='${libname}_dll.$libext'
|
|
dynamic_linker='OS/2 ld.exe'
|
|
shlibpath_var=BEGINLIBPATH
|
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
postinstall_cmds='base_file=`basename \$file`~
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
|
|
dldir=$destdir/`dirname \$dlpath`~
|
|
test -d \$dldir || mkdir -p \$dldir~
|
|
$install_prog $dir/$dlname \$dldir/$dlname~
|
|
chmod a+x \$dldir/$dlname~
|
|
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
|
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
|
fi'
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
|
|
dlpath=$dir/\$dldll~
|
|
$RM \$dlpath'
|
|
;;
|
|
|
|
osf3* | osf4* | osf5*)
|
|
version_type=osf
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
;;
|
|
|
|
rdos*)
|
|
dynamic_linker=no
|
|
;;
|
|
|
|
solaris*)
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=yes
|
|
hardcode_into_libs=yes
|
|
# ldd complains unless libraries are executable
|
|
postinstall_cmds='chmod +x $lib'
|
|
;;
|
|
|
|
sunos4*)
|
|
version_type=sunos
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=yes
|
|
if test yes = "$with_gnu_ld"; then
|
|
need_lib_prefix=no
|
|
fi
|
|
need_version=yes
|
|
;;
|
|
|
|
sysv4 | sysv4.3*)
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
case $host_vendor in
|
|
sni)
|
|
shlibpath_overrides_runpath=no
|
|
need_lib_prefix=no
|
|
runpath_var=LD_RUN_PATH
|
|
;;
|
|
siemens)
|
|
need_lib_prefix=no
|
|
;;
|
|
motorola)
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
shlibpath_overrides_runpath=no
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
sysv4*MP*)
|
|
if test -d /usr/nec; then
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
|
|
soname_spec='$libname$shared_ext.$major'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
fi
|
|
;;
|
|
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
version_type=sco
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=yes
|
|
hardcode_into_libs=yes
|
|
if test yes = "$with_gnu_ld"; then
|
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
|
else
|
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
|
case $host_os in
|
|
sco3.2v5*)
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
|
;;
|
|
esac
|
|
fi
|
|
sys_lib_dlsearch_path_spec='/usr/lib'
|
|
;;
|
|
|
|
tpf*)
|
|
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=no
|
|
hardcode_into_libs=yes
|
|
;;
|
|
|
|
uts4*)
|
|
version_type=linux # correct to gnu/linux during the next big refactor
|
|
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
|
soname_spec='$libname$release$shared_ext$major'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
;;
|
|
|
|
*)
|
|
dynamic_linker=no
|
|
;;
|
|
esac
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
|
|
$as_echo "$dynamic_linker" >&6; }
|
|
test no = "$dynamic_linker" && can_build_shared=no
|
|
|
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
if test yes = "$GCC"; then
|
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
fi
|
|
|
|
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
|
|
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
|
|
fi
|
|
|
|
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
|
|
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
|
|
fi
|
|
|
|
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
|
|
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
|
|
|
|
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
|
|
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
|
|
|
|
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
|
|
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
|
|
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
|
|
hardcode_action=
|
|
if test -n "$hardcode_libdir_flag_spec" ||
|
|
test -n "$runpath_var" ||
|
|
test yes = "$hardcode_automatic"; then
|
|
|
|
# We can hardcode non-existent directories.
|
|
if test no != "$hardcode_direct" &&
|
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
|
# have to relink, otherwise we might link with an installed library
|
|
# when we should be linking with a yet-to-be-installed one
|
|
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
|
|
test no != "$hardcode_minus_L"; then
|
|
# Linking always hardcodes the temporary library directory.
|
|
hardcode_action=relink
|
|
else
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
|
hardcode_action=immediate
|
|
fi
|
|
else
|
|
# We cannot hardcode anything, or else we can only hardcode existing
|
|
# directories.
|
|
hardcode_action=unsupported
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
|
|
$as_echo "$hardcode_action" >&6; }
|
|
|
|
if test relink = "$hardcode_action" ||
|
|
test yes = "$inherit_rpath"; then
|
|
# Fast installation is not supported
|
|
enable_fast_install=no
|
|
elif test yes = "$shlibpath_overrides_runpath" ||
|
|
test no = "$enable_shared"; then
|
|
# Fast installation is not necessary
|
|
enable_fast_install=needless
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test yes != "$enable_dlopen"; then
|
|
enable_dlopen=unknown
|
|
enable_dlopen_self=unknown
|
|
enable_dlopen_self_static=unknown
|
|
else
|
|
lt_cv_dlopen=no
|
|
lt_cv_dlopen_libs=
|
|
|
|
case $host_os in
|
|
beos*)
|
|
lt_cv_dlopen=load_add_on
|
|
lt_cv_dlopen_libs=
|
|
lt_cv_dlopen_self=yes
|
|
;;
|
|
|
|
mingw* | pw32* | cegcc*)
|
|
lt_cv_dlopen=LoadLibrary
|
|
lt_cv_dlopen_libs=
|
|
;;
|
|
|
|
cygwin*)
|
|
lt_cv_dlopen=dlopen
|
|
lt_cv_dlopen_libs=
|
|
;;
|
|
|
|
darwin*)
|
|
# if libdl is installed we need to link against it
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
|
$as_echo_n "checking for dlopen in -ldl... " >&6; }
|
|
if ${ac_cv_lib_dl_dlopen+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-ldl $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char dlopen ();
|
|
int
|
|
main ()
|
|
{
|
|
return dlopen ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_dl_dlopen=yes
|
|
else
|
|
ac_cv_lib_dl_dlopen=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
|
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
|
|
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
|
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
|
|
else
|
|
|
|
lt_cv_dlopen=dyld
|
|
lt_cv_dlopen_libs=
|
|
lt_cv_dlopen_self=yes
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
tpf*)
|
|
# Don't try to run any link tests for TPF. We know it's impossible
|
|
# because TPF is a cross-compiler, and we know how we open DSOs.
|
|
lt_cv_dlopen=dlopen
|
|
lt_cv_dlopen_libs=
|
|
lt_cv_dlopen_self=no
|
|
;;
|
|
|
|
*)
|
|
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
|
|
if test "x$ac_cv_func_shl_load" = xyes; then :
|
|
lt_cv_dlopen=shl_load
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
|
|
$as_echo_n "checking for shl_load in -ldld... " >&6; }
|
|
if ${ac_cv_lib_dld_shl_load+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-ldld $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char shl_load ();
|
|
int
|
|
main ()
|
|
{
|
|
return shl_load ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_dld_shl_load=yes
|
|
else
|
|
ac_cv_lib_dld_shl_load=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
|
|
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
|
|
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
|
|
lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
|
|
else
|
|
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
|
|
if test "x$ac_cv_func_dlopen" = xyes; then :
|
|
lt_cv_dlopen=dlopen
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
|
$as_echo_n "checking for dlopen in -ldl... " >&6; }
|
|
if ${ac_cv_lib_dl_dlopen+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-ldl $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char dlopen ();
|
|
int
|
|
main ()
|
|
{
|
|
return dlopen ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_dl_dlopen=yes
|
|
else
|
|
ac_cv_lib_dl_dlopen=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
|
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
|
|
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
|
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
|
|
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
|
|
if ${ac_cv_lib_svld_dlopen+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lsvld $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char dlopen ();
|
|
int
|
|
main ()
|
|
{
|
|
return dlopen ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_svld_dlopen=yes
|
|
else
|
|
ac_cv_lib_svld_dlopen=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
|
|
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
|
|
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
|
|
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
|
|
$as_echo_n "checking for dld_link in -ldld... " >&6; }
|
|
if ${ac_cv_lib_dld_dld_link+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-ldld $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char dld_link ();
|
|
int
|
|
main ()
|
|
{
|
|
return dld_link ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_dld_dld_link=yes
|
|
else
|
|
ac_cv_lib_dld_dld_link=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
|
|
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
|
|
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
|
|
lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
;;
|
|
esac
|
|
|
|
if test no = "$lt_cv_dlopen"; then
|
|
enable_dlopen=no
|
|
else
|
|
enable_dlopen=yes
|
|
fi
|
|
|
|
case $lt_cv_dlopen in
|
|
dlopen)
|
|
save_CPPFLAGS=$CPPFLAGS
|
|
test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
|
|
|
save_LDFLAGS=$LDFLAGS
|
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
|
|
|
save_LIBS=$LIBS
|
|
LIBS="$lt_cv_dlopen_libs $LIBS"
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
|
|
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
|
|
if ${lt_cv_dlopen_self+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test yes = "$cross_compiling"; then :
|
|
lt_cv_dlopen_self=cross
|
|
else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
#include <dlfcn.h>
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
#ifdef RTLD_GLOBAL
|
|
# define LT_DLGLOBAL RTLD_GLOBAL
|
|
#else
|
|
# ifdef DL_GLOBAL
|
|
# define LT_DLGLOBAL DL_GLOBAL
|
|
# else
|
|
# define LT_DLGLOBAL 0
|
|
# endif
|
|
#endif
|
|
|
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
|
find out it does not work in some platform. */
|
|
#ifndef LT_DLLAZY_OR_NOW
|
|
# ifdef RTLD_LAZY
|
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
|
# else
|
|
# ifdef DL_LAZY
|
|
# define LT_DLLAZY_OR_NOW DL_LAZY
|
|
# else
|
|
# ifdef RTLD_NOW
|
|
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
|
# else
|
|
# ifdef DL_NOW
|
|
# define LT_DLLAZY_OR_NOW DL_NOW
|
|
# else
|
|
# define LT_DLLAZY_OR_NOW 0
|
|
# endif
|
|
# endif
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
/* When -fvisibility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
int status = $lt_dlunknown;
|
|
|
|
if (self)
|
|
{
|
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
|
else
|
|
{
|
|
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
|
else puts (dlerror ());
|
|
}
|
|
/* dlclose (self); */
|
|
}
|
|
else
|
|
puts (dlerror ());
|
|
|
|
return status;
|
|
}
|
|
_LT_EOF
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
(eval $ac_link) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
|
|
(./conftest; exit; ) >&5 2>/dev/null
|
|
lt_status=$?
|
|
case x$lt_status in
|
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
|
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
|
esac
|
|
else :
|
|
# compilation failed
|
|
lt_cv_dlopen_self=no
|
|
fi
|
|
fi
|
|
rm -fr conftest*
|
|
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
|
|
$as_echo "$lt_cv_dlopen_self" >&6; }
|
|
|
|
if test yes = "$lt_cv_dlopen_self"; then
|
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
|
|
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
|
|
if ${lt_cv_dlopen_self_static+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test yes = "$cross_compiling"; then :
|
|
lt_cv_dlopen_self_static=cross
|
|
else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
#include <dlfcn.h>
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
#ifdef RTLD_GLOBAL
|
|
# define LT_DLGLOBAL RTLD_GLOBAL
|
|
#else
|
|
# ifdef DL_GLOBAL
|
|
# define LT_DLGLOBAL DL_GLOBAL
|
|
# else
|
|
# define LT_DLGLOBAL 0
|
|
# endif
|
|
#endif
|
|
|
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
|
find out it does not work in some platform. */
|
|
#ifndef LT_DLLAZY_OR_NOW
|
|
# ifdef RTLD_LAZY
|
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
|
# else
|
|
# ifdef DL_LAZY
|
|
# define LT_DLLAZY_OR_NOW DL_LAZY
|
|
# else
|
|
# ifdef RTLD_NOW
|
|
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
|
# else
|
|
# ifdef DL_NOW
|
|
# define LT_DLLAZY_OR_NOW DL_NOW
|
|
# else
|
|
# define LT_DLLAZY_OR_NOW 0
|
|
# endif
|
|
# endif
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
/* When -fvisibility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
int status = $lt_dlunknown;
|
|
|
|
if (self)
|
|
{
|
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
|
else
|
|
{
|
|
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
|
else puts (dlerror ());
|
|
}
|
|
/* dlclose (self); */
|
|
}
|
|
else
|
|
puts (dlerror ());
|
|
|
|
return status;
|
|
}
|
|
_LT_EOF
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
(eval $ac_link) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
|
|
(./conftest; exit; ) >&5 2>/dev/null
|
|
lt_status=$?
|
|
case x$lt_status in
|
|
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
|
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
|
esac
|
|
else :
|
|
# compilation failed
|
|
lt_cv_dlopen_self_static=no
|
|
fi
|
|
fi
|
|
rm -fr conftest*
|
|
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
|
|
$as_echo "$lt_cv_dlopen_self_static" >&6; }
|
|
fi
|
|
|
|
CPPFLAGS=$save_CPPFLAGS
|
|
LDFLAGS=$save_LDFLAGS
|
|
LIBS=$save_LIBS
|
|
;;
|
|
esac
|
|
|
|
case $lt_cv_dlopen_self in
|
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
|
*) enable_dlopen_self=unknown ;;
|
|
esac
|
|
|
|
case $lt_cv_dlopen_self_static in
|
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
|
*) enable_dlopen_self_static=unknown ;;
|
|
esac
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
striplib=
|
|
old_striplib=
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
|
|
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
|
|
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
# FIXME - insert some real tests, host_os isn't really good enough
|
|
case $host_os in
|
|
darwin*)
|
|
if test -n "$STRIP"; then
|
|
striplib="$STRIP -x"
|
|
old_striplib="$STRIP -S"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
;;
|
|
*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Report what library types will actually be built
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
|
|
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
|
|
$as_echo "$can_build_shared" >&6; }
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
|
|
$as_echo_n "checking whether to build shared libraries... " >&6; }
|
|
test no = "$can_build_shared" && enable_shared=no
|
|
|
|
# On AIX, shared libraries and static libraries use the same namespace, and
|
|
# are all built from PIC.
|
|
case $host_os in
|
|
aix3*)
|
|
test yes = "$enable_shared" && enable_static=no
|
|
if test -n "$RANLIB"; then
|
|
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
|
postinstall_cmds='$RANLIB $lib'
|
|
fi
|
|
;;
|
|
|
|
aix[4-9]*)
|
|
if test ia64 != "$host_cpu"; then
|
|
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
|
|
yes,aix,yes) ;; # shared object as lib.so file only
|
|
yes,svr4,*) ;; # shared object as lib.so archive member only
|
|
yes,*) enable_static=no ;; # shared object in lib.a archive as well
|
|
esac
|
|
fi
|
|
;;
|
|
esac
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
|
|
$as_echo "$enable_shared" >&6; }
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
|
|
$as_echo_n "checking whether to build static libraries... " >&6; }
|
|
# Make sure either enable_shared or enable_static is yes.
|
|
test yes = "$enable_shared" || enable_static=yes
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
|
|
$as_echo "$enable_static" >&6; }
|
|
|
|
|
|
|
|
|
|
fi
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
CC=$lt_save_CC
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ac_config_commands="$ac_config_commands libtool"
|
|
|
|
|
|
|
|
|
|
# Only expand once:
|
|
|
|
|
|
# Find a good install program. We prefer a C program (faster),
|
|
# so one script is as good as another. But avoid the broken or
|
|
# incompatible versions:
|
|
# SysV /etc/install, /usr/sbin/install
|
|
# SunOS /usr/etc/install
|
|
# IRIX /sbin/install
|
|
# AIX /bin/install
|
|
# AmigaOS /C/install, which installs bootblocks on floppy discs
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
# OS/2's system install, which has a completely different semantic
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
|
# Reject install programs that cannot install multiple files.
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
|
$as_echo_n "checking for a BSD-compatible install... " >&6; }
|
|
if test -z "$INSTALL"; then
|
|
if ${ac_cv_path_install+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
# Account for people who put trailing slashes in PATH elements.
|
|
case $as_dir/ in #((
|
|
./ | .// | /[cC]/* | \
|
|
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
|
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
|
/usr/ucb/* ) ;;
|
|
*)
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
|
# by default.
|
|
for ac_prog in ginstall scoinst install; do
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
|
if test $ac_prog = install &&
|
|
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
|
# AIX install. It has an incompatible calling convention.
|
|
:
|
|
elif test $ac_prog = install &&
|
|
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
|
# program-specific install script used by HP pwplus--don't use.
|
|
:
|
|
else
|
|
rm -rf conftest.one conftest.two conftest.dir
|
|
echo one > conftest.one
|
|
echo two > conftest.two
|
|
mkdir conftest.dir
|
|
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
|
test -s conftest.one && test -s conftest.two &&
|
|
test -s conftest.dir/conftest.one &&
|
|
test -s conftest.dir/conftest.two
|
|
then
|
|
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
|
break 3
|
|
fi
|
|
fi
|
|
fi
|
|
done
|
|
done
|
|
;;
|
|
esac
|
|
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
rm -rf conftest.one conftest.two conftest.dir
|
|
|
|
fi
|
|
if test "${ac_cv_path_install+set}" = set; then
|
|
INSTALL=$ac_cv_path_install
|
|
else
|
|
# As a last resort, use the slow shell script. Don't cache a
|
|
# value for INSTALL within a source directory, because that will
|
|
# break other packages using the cache if that directory is
|
|
# removed, or if the value is a relative name.
|
|
INSTALL=$ac_install_sh
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
|
$as_echo "$INSTALL" >&6; }
|
|
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|
# It thinks the first close brace ends the variable substitution.
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
|
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
|
$as_echo_n "checking whether ln -s works... " >&6; }
|
|
LN_S=$as_ln_s
|
|
if test "$LN_S" = "ln -s"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
|
$as_echo "no, using $LN_S" >&6; }
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# Use pkg-config
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_PKG_CONFIG+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $PKG_CONFIG in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
|
if test -n "$PKG_CONFIG"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
|
|
$as_echo "$PKG_CONFIG" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_path_PKG_CONFIG"; then
|
|
ac_pt_PKG_CONFIG=$PKG_CONFIG
|
|
# Extract the first word of "pkg-config", so it can be a program name with args.
|
|
set dummy pkg-config; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $ac_pt_PKG_CONFIG in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
|
|
if test -n "$ac_pt_PKG_CONFIG"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
|
|
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_pt_PKG_CONFIG" = x; then
|
|
PKG_CONFIG=""
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
PKG_CONFIG=$ac_pt_PKG_CONFIG
|
|
fi
|
|
else
|
|
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
|
fi
|
|
|
|
fi
|
|
if test -n "$PKG_CONFIG"; then
|
|
_pkg_min_version=0.9.0
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
|
|
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
|
|
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
PKG_CONFIG=""
|
|
fi
|
|
fi
|
|
|
|
# Warn if the user specified libbind, which is now deprecated
|
|
# Check whether --enable-libbind was given.
|
|
if test "${enable_libbind+set}" = set; then :
|
|
enableval=$enable_libbind;
|
|
fi
|
|
|
|
|
|
case "$enable_libbind" in
|
|
yes)
|
|
as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution.
|
|
It is available from http://www.isc.org as a separate download." "$LINENO" 5
|
|
;;
|
|
no|'')
|
|
;;
|
|
esac
|
|
|
|
# Check whether --enable-buffer_useinline was given.
|
|
if test "${enable_buffer_useinline+set}" = set; then :
|
|
enableval=$enable_buffer_useinline; if test yes = "${enable}"
|
|
then
|
|
|
|
$as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
|
|
|
|
fi
|
|
else
|
|
$as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
|
|
# Check whether --enable-warn_shadow was given.
|
|
if test "${enable_warn_shadow+set}" = set; then :
|
|
enableval=$enable_warn_shadow;
|
|
fi
|
|
|
|
|
|
# Check whether --enable-warn_error was given.
|
|
if test "${enable_warn_error+set}" = set; then :
|
|
enableval=$enable_warn_error;
|
|
fi
|
|
|
|
|
|
# Check whether --enable-developer was given.
|
|
if test "${enable_developer+set}" = set; then :
|
|
enableval=$enable_developer;
|
|
fi
|
|
|
|
XTARGETS=
|
|
case "$enable_developer" in
|
|
yes)
|
|
STD_CDEFINES="$STD_CDEFINES -DISC_LIST_CHECKINIT=1"
|
|
test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
|
|
test "${enable_querytrace+set}" = set || enable_querytrace=yes
|
|
test "${enable_filter_aaaa+set}" = set || enable_filter_aaaa=yes
|
|
test "${with_cmocka+set}" = set || with_cmocka=yes
|
|
test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
|
|
test "${enable_symtable+set}" = set || enable_symtable=all
|
|
test "${enable_warn_error+set}" = set || enable_warn_error=yes
|
|
test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
|
|
test "${with_zlib+set}" = set || with_zlib=yes
|
|
XTARGETS='${XTARGETS}'
|
|
;;
|
|
esac
|
|
|
|
|
|
# American Fuzzy Lop
|
|
# Check whether --enable-afl was given.
|
|
if test "${enable_afl+set}" = set; then :
|
|
enableval=$enable_afl;
|
|
$as_echo "#define ENABLE_AFL 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
case "$enable_afl" in
|
|
yes)
|
|
LIBS="$LIBS -lpthread"
|
|
;;
|
|
esac
|
|
|
|
|
|
#libseccomp sandboxing
|
|
for ac_func in getrandom
|
|
do :
|
|
ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
|
|
if test "x$ac_cv_func_getrandom" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_GETRANDOM 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
# Check whether --enable-seccomp was given.
|
|
if test "${enable_seccomp+set}" = set; then :
|
|
enableval=$enable_seccomp;
|
|
fi
|
|
|
|
case "$enable_seccomp" in
|
|
yes)
|
|
case $host_os in
|
|
linux*)
|
|
;;
|
|
*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: seccomp is not supported on non-linux platforms; disabling it" >&5
|
|
$as_echo "$as_me: WARNING: seccomp is not supported on non-linux platforms; disabling it" >&2;}
|
|
enable_seccomp=no
|
|
;;
|
|
esac
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
|
|
$as_echo_n "checking for library containing seccomp_init... " >&6; }
|
|
if ${ac_cv_search_seccomp_init+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char seccomp_init ();
|
|
int
|
|
main ()
|
|
{
|
|
return seccomp_init ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' seccomp; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_search_seccomp_init=$ac_res
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if ${ac_cv_search_seccomp_init+:} false; then :
|
|
break
|
|
fi
|
|
done
|
|
if ${ac_cv_search_seccomp_init+:} false; then :
|
|
|
|
else
|
|
ac_cv_search_seccomp_init=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
|
|
$as_echo "$ac_cv_search_seccomp_init" >&6; }
|
|
ac_res=$ac_cv_search_seccomp_init
|
|
if test "$ac_res" != no; then :
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
fi
|
|
|
|
if test "X$ac_cv_search_seccomp_init" = "X-lseccomp" ; then
|
|
if test "$cross_compiling" = yes; then :
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error $? "cannot run test program while cross compiling
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <errno.h>
|
|
#include <sys/prctl.h>
|
|
#include <linux/seccomp.h>
|
|
|
|
int main(void)
|
|
{
|
|
int ret;
|
|
|
|
ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
|
|
if (ret < 0) {
|
|
switch (errno) {
|
|
case ENOSYS:
|
|
return 1;
|
|
case EINVAL:
|
|
return 1;
|
|
default:
|
|
return 1;
|
|
}
|
|
}
|
|
ret =
|
|
prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
|
|
if (ret < 0) {
|
|
switch (errno) {
|
|
case EINVAL:
|
|
return 1;
|
|
case EFAULT:
|
|
return 0;
|
|
default:
|
|
return 1;
|
|
}
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
|
|
$as_echo "#define HAVE_LIBSECCOMP 1" >>confdefs.h
|
|
|
|
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
fi
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Make very sure that these are the first files processed by
|
|
# config.status, since we use the processed output as the input for
|
|
# AC_SUBST_FILE() substitutions in other files.
|
|
#
|
|
ac_config_files="$ac_config_files make/rules make/includes"
|
|
|
|
|
|
# Extract the first word of "ar", so it can be a program name with args.
|
|
set dummy ar; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_AR+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $AR in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_AR="$AR" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
AR=$ac_cv_path_AR
|
|
if test -n "$AR"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
|
$as_echo "$AR" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
ARFLAGS="cruv"
|
|
|
|
|
|
|
|
# The POSIX ln(1) program. Non-POSIX systems may substitute
|
|
# "copy" or something.
|
|
LN=ln
|
|
|
|
|
|
case "$AR" in
|
|
"")
|
|
as_fn_error $? "
|
|
ar program not found. Please fix your PATH to include the directory in
|
|
which ar resides, or set AR in the environment with the full path to ar.
|
|
" "$LINENO" 5
|
|
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Etags.
|
|
#
|
|
for ac_prog in etags emacs-etags
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_ETAGS+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $ETAGS in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
ETAGS=$ac_cv_path_ETAGS
|
|
if test -n "$ETAGS"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
|
|
$as_echo "$ETAGS" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$ETAGS" && break
|
|
done
|
|
|
|
|
|
#
|
|
# Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
|
|
# GNU emacs etags, and it requires the -L flag.
|
|
#
|
|
if test "X$ETAGS" != "X"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5
|
|
$as_echo_n "checking for Exuberant Ctags etags... " >&6; }
|
|
if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ETAGS="$ETAGS -L"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
fi
|
|
|
|
|
|
#
|
|
# Perl is optional; it is used only by some of the system test scripts.
|
|
# Note: the backtrace feature (see below) uses perl to build the symbol table,
|
|
# but it still compiles without perl, in which case an empty table will be used.
|
|
#
|
|
for ac_prog in perl5 perl
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_PERL+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $PERL in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
PERL=$ac_cv_path_PERL
|
|
if test -n "$PERL"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
|
|
$as_echo "$PERL" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$PERL" && break
|
|
done
|
|
|
|
|
|
|
|
#
|
|
# Python is also optional but required by default so that dnssec-keymgr gets
|
|
# installed unless explicitly prevented by the user using --without-python.
|
|
#
|
|
testminvers='import sys
|
|
if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
|
|
exit(1)'
|
|
|
|
testargparse='try: import argparse
|
|
except: exit(1)'
|
|
|
|
testply='try: import ply
|
|
except: exit(1)'
|
|
|
|
testsetup='try: from distutils.core import setup
|
|
except: exit(1)'
|
|
|
|
default_with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
|
|
|
|
|
|
|
|
|
|
# Check whether --with-python was given.
|
|
if test "${with_python+set}" = set; then :
|
|
withval=$with_python;
|
|
else
|
|
with_python=$default_with_python
|
|
fi
|
|
|
|
|
|
# Check whether --with-python-install-dir was given.
|
|
if test "${with_python_install_dir+set}" = set; then :
|
|
withval=$with_python_install_dir;
|
|
else
|
|
with_python_install_dir=""
|
|
fi
|
|
|
|
|
|
if test "$with_python" = "yes"; then :
|
|
with_python=$default_with_python
|
|
fi
|
|
|
|
if test "$with_python" = "no"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
|
|
$as_echo_n "checking for Python support... " >&6; }
|
|
unset PYTHON
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
|
|
$as_echo "disabled" >&6; }
|
|
else
|
|
for p in $with_python
|
|
do
|
|
case $p in #(
|
|
/*) :
|
|
PYTHON="$p" ;; #(
|
|
*) :
|
|
;;
|
|
esac
|
|
|
|
# Extract the first word of "$p", so it can be a program name with args.
|
|
set dummy $p; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_PYTHON+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $PYTHON in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
PYTHON=$ac_cv_path_PYTHON
|
|
if test -n "$PYTHON"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
|
|
$as_echo "$PYTHON" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
# Do not cache the result of the check from the previous line. If the
|
|
# first found Python interpreter has missing module dependencies and
|
|
# the result of the above check is cached, subsequent module checks
|
|
# will erroneously keep on using the cached path to the first found
|
|
# Python interpreter instead of different ones.
|
|
unset ac_cv_path_PYTHON
|
|
|
|
if test -z "$PYTHON"; then :
|
|
continue
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
|
|
$as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
|
|
if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
unset PYTHON
|
|
continue
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
|
|
$as_echo_n "checking Python module 'argparse'... " >&6; }
|
|
if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
unset PYTHON
|
|
continue
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
|
|
$as_echo_n "checking Python module 'ply'... " >&6; }
|
|
if "$PYTHON" -c "$testply" 2>/dev/null; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
unset PYTHON
|
|
continue
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'distutils.core setup'" >&5
|
|
$as_echo_n "checking Python module 'distutils.core setup'... " >&6; }
|
|
if "$PYTHON" -c "$testsetup" 2>/dev/null; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
unset PYTHON
|
|
continue
|
|
fi
|
|
|
|
# Stop looking any further once we find a Python interpreter
|
|
# satisfying all requirements.
|
|
break
|
|
done
|
|
|
|
if test "X$PYTHON" = "X"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
|
|
$as_echo_n "checking for Python support... " >&6; }
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
as_fn_error $? "Python >= 2.7 or >= 3.2 and the PLY package are required for dnssec-keymgr and other Python-based tools. PLY may be available from your OS package manager as python-ply or python3-ply; it can also be installed via pip. To build without Python/PLY, use --without-python." "$LINENO" 5
|
|
fi
|
|
fi
|
|
|
|
PYTHON_TOOLS=''
|
|
CHECKDS=''
|
|
COVERAGE=''
|
|
KEYMGR=''
|
|
if test "X$PYTHON" != "X"; then :
|
|
PYTHON_TOOLS=python
|
|
CHECKDS=checkds
|
|
COVERAGE=coverage
|
|
KEYMGR=keymgr
|
|
PYTHON_INSTALL_DIR="$with_python_install_dir"
|
|
if test -n "$with_python_install_dir"; then :
|
|
PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# Special processing of paths depending on whether --prefix,
|
|
# --sysconfdir or --localstatedir arguments were given. What's
|
|
# desired is some compatibility with the way previous versions
|
|
# of BIND built; they defaulted to /usr/local for most parts of
|
|
# the installation, but named.boot/named.conf was in /etc
|
|
# and named.pid was in /var/run.
|
|
#
|
|
# So ... if none of --prefix, --sysconfdir or --localstatedir are
|
|
# specified, set things up that way. If --prefix is given, use
|
|
# it for sysconfdir and localstatedir the way configure normally
|
|
# would. To change the prefix for everything but leave named.conf
|
|
# in /etc or named.pid in /var/run, then do this the usual configure way:
|
|
# ./configure --prefix=/somewhere --sysconfdir=/etc
|
|
# ./configure --prefix=/somewhere --localstatedir=/var
|
|
#
|
|
# To put named.conf and named.pid in /usr/local with everything else,
|
|
# set the prefix explicitly to /usr/local even though that's the default:
|
|
# ./configure --prefix=/usr/local
|
|
#
|
|
case "$prefix" in
|
|
NONE)
|
|
case "$sysconfdir" in
|
|
'${prefix}/etc')
|
|
sysconfdir=/etc
|
|
;;
|
|
esac
|
|
case "$localstatedir" in
|
|
'${prefix}/var')
|
|
localstatedir=/var
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
expanded_sysconfdir=`eval echo $sysconfdir`
|
|
|
|
|
|
#
|
|
# Make sure INSTALL uses an absolute path, else it will be wrong in all
|
|
# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
|
|
# configure based on the location of the file where it is substituted.
|
|
# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
|
|
# subdirectory of install-sh, This relative path will be wrong for all
|
|
# directories more than one level down from install-sh.
|
|
#
|
|
case "$INSTALL" in
|
|
/*)
|
|
;;
|
|
*)
|
|
#
|
|
# Not all systems have dirname.
|
|
#
|
|
|
|
ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
|
|
|
|
|
|
ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
|
|
test "X$ac_dir" = "X$ac_prog" && ac_dir=.
|
|
test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
|
|
INSTALL="$ac_dir/$ac_prog"
|
|
;;
|
|
esac
|
|
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_CC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
CC=$ac_cv_prog_CC
|
|
if test -n "$CC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
$as_echo "$CC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_CC"; then
|
|
ac_ct_CC=$CC
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
|
set dummy gcc; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_CC"; then
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_CC="gcc"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
if test -n "$ac_ct_CC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
$as_echo "$ac_ct_CC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_CC" = x; then
|
|
CC=""
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
CC=$ac_ct_CC
|
|
fi
|
|
else
|
|
CC="$ac_cv_prog_CC"
|
|
fi
|
|
|
|
if test -z "$CC"; then
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}cc; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_CC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
CC=$ac_cv_prog_CC
|
|
if test -n "$CC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
$as_echo "$CC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
fi
|
|
if test -z "$CC"; then
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
|
set dummy cc; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_CC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
ac_prog_rejected=no
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
|
ac_prog_rejected=yes
|
|
continue
|
|
fi
|
|
ac_cv_prog_CC="cc"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
if test $ac_prog_rejected = yes; then
|
|
# We found a bogon in the path, so make sure we never use it.
|
|
set dummy $ac_cv_prog_CC
|
|
shift
|
|
if test $# != 0; then
|
|
# We chose a different compiler from the bogus one.
|
|
# However, it has the same basename, so the bogon will be chosen
|
|
# first if we set CC to just the basename; use the full file name.
|
|
shift
|
|
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
CC=$ac_cv_prog_CC
|
|
if test -n "$CC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
$as_echo "$CC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$CC"; then
|
|
if test -n "$ac_tool_prefix"; then
|
|
for ac_prog in cl.exe
|
|
do
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_CC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
CC=$ac_cv_prog_CC
|
|
if test -n "$CC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
$as_echo "$CC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$CC" && break
|
|
done
|
|
fi
|
|
if test -z "$CC"; then
|
|
ac_ct_CC=$CC
|
|
for ac_prog in cl.exe
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_CC"; then
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_ac_ct_CC="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
if test -n "$ac_ct_CC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
$as_echo "$ac_ct_CC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$ac_ct_CC" && break
|
|
done
|
|
|
|
if test "x$ac_ct_CC" = x; then
|
|
CC=""
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
CC=$ac_ct_CC
|
|
fi
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error $? "no acceptable C compiler found in \$PATH
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
|
|
# Provide some information about the compiler.
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
|
set X $ac_compile
|
|
ac_compiler=$2
|
|
for ac_option in --version -v -V -qversion; do
|
|
{ { ac_try="$ac_compiler $ac_option >&5"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
|
ac_status=$?
|
|
if test -s conftest.err; then
|
|
sed '10a\
|
|
... rest of stderr output deleted ...
|
|
10q' conftest.err >conftest.er1
|
|
cat conftest.er1 >&5
|
|
fi
|
|
rm -f conftest.er1 conftest.err
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }
|
|
done
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
|
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
|
if ${ac_cv_c_compiler_gnu+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#ifndef __GNUC__
|
|
choke me
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_compiler_gnu=yes
|
|
else
|
|
ac_compiler_gnu=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
|
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
|
if test $ac_compiler_gnu = yes; then
|
|
GCC=yes
|
|
else
|
|
GCC=
|
|
fi
|
|
ac_test_CFLAGS=${CFLAGS+set}
|
|
ac_save_CFLAGS=$CFLAGS
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
|
$as_echo_n "checking whether $CC accepts -g... " >&6; }
|
|
if ${ac_cv_prog_cc_g+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_save_c_werror_flag=$ac_c_werror_flag
|
|
ac_c_werror_flag=yes
|
|
ac_cv_prog_cc_g=no
|
|
CFLAGS="-g"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_prog_cc_g=yes
|
|
else
|
|
CFLAGS=""
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
else
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
|
CFLAGS="-g"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_prog_cc_g=yes
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
|
$as_echo "$ac_cv_prog_cc_g" >&6; }
|
|
if test "$ac_test_CFLAGS" = set; then
|
|
CFLAGS=$ac_save_CFLAGS
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
|
if test "$GCC" = yes; then
|
|
CFLAGS="-g -O2"
|
|
else
|
|
CFLAGS="-g"
|
|
fi
|
|
else
|
|
if test "$GCC" = yes; then
|
|
CFLAGS="-O2"
|
|
else
|
|
CFLAGS=
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
|
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
|
if ${ac_cv_prog_cc_c89+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_cv_prog_cc_c89=no
|
|
ac_save_CC=$CC
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
struct stat;
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
|
struct buf { int x; };
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
static char *e (p, i)
|
|
char **p;
|
|
int i;
|
|
{
|
|
return p[i];
|
|
}
|
|
static char *f (char * (*g) (char **, int), char **p, ...)
|
|
{
|
|
char *s;
|
|
va_list v;
|
|
va_start (v,p);
|
|
s = g (p, va_arg (v,int));
|
|
va_end (v);
|
|
return s;
|
|
}
|
|
|
|
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
|
function prototypes and stuff, but not '\xHH' hex character constants.
|
|
These don't provoke an error unfortunately, instead are silently treated
|
|
as 'x'. The following induces an error, until -std is added to get
|
|
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
|
array size at least. It's necessary to write '\x00'==0 to get something
|
|
that's true only with -std. */
|
|
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
|
|
|
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
|
inside strings and character constants. */
|
|
#define FOO(x) 'x'
|
|
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
|
|
|
int test (int i, double x);
|
|
struct s1 {int (*f) (int a);};
|
|
struct s2 {int (*f) (double a);};
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
|
int argc;
|
|
char **argv;
|
|
int
|
|
main ()
|
|
{
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
|
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
|
do
|
|
CC="$ac_save_CC $ac_arg"
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_prog_cc_c89=$ac_arg
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext
|
|
test "x$ac_cv_prog_cc_c89" != "xno" && break
|
|
done
|
|
rm -f conftest.$ac_ext
|
|
CC=$ac_save_CC
|
|
|
|
fi
|
|
# AC_CACHE_VAL
|
|
case "x$ac_cv_prog_cc_c89" in
|
|
x)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
$as_echo "none needed" >&6; } ;;
|
|
xno)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
$as_echo "unsupported" >&6; } ;;
|
|
*)
|
|
CC="$CC $ac_cv_prog_cc_c89"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
|
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
|
esac
|
|
if test "x$ac_cv_prog_cc_c89" != xno; then :
|
|
|
|
fi
|
|
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
|
|
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
|
|
if ${ac_cv_prog_cc_c99+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_cv_prog_cc_c99=no
|
|
ac_save_CC=$CC
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stdlib.h>
|
|
#include <wchar.h>
|
|
#include <stdio.h>
|
|
|
|
// Check varargs macros. These examples are taken from C99 6.10.3.5.
|
|
#define debug(...) fprintf (stderr, __VA_ARGS__)
|
|
#define showlist(...) puts (#__VA_ARGS__)
|
|
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
|
|
static void
|
|
test_varargs_macros (void)
|
|
{
|
|
int x = 1234;
|
|
int y = 5678;
|
|
debug ("Flag");
|
|
debug ("X = %d\n", x);
|
|
showlist (The first, second, and third items.);
|
|
report (x>y, "x is %d but y is %d", x, y);
|
|
}
|
|
|
|
// Check long long types.
|
|
#define BIG64 18446744073709551615ull
|
|
#define BIG32 4294967295ul
|
|
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
|
|
#if !BIG_OK
|
|
your preprocessor is broken;
|
|
#endif
|
|
#if BIG_OK
|
|
#else
|
|
your preprocessor is broken;
|
|
#endif
|
|
static long long int bignum = -9223372036854775807LL;
|
|
static unsigned long long int ubignum = BIG64;
|
|
|
|
struct incomplete_array
|
|
{
|
|
int datasize;
|
|
double data[];
|
|
};
|
|
|
|
struct named_init {
|
|
int number;
|
|
const wchar_t *name;
|
|
double average;
|
|
};
|
|
|
|
typedef const char *ccp;
|
|
|
|
static inline int
|
|
test_restrict (ccp restrict text)
|
|
{
|
|
// See if C++-style comments work.
|
|
// Iterate through items via the restricted pointer.
|
|
// Also check for declarations in for loops.
|
|
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
|
|
continue;
|
|
return 0;
|
|
}
|
|
|
|
// Check varargs and va_copy.
|
|
static void
|
|
test_varargs (const char *format, ...)
|
|
{
|
|
va_list args;
|
|
va_start (args, format);
|
|
va_list args_copy;
|
|
va_copy (args_copy, args);
|
|
|
|
const char *str;
|
|
int number;
|
|
float fnumber;
|
|
|
|
while (*format)
|
|
{
|
|
switch (*format++)
|
|
{
|
|
case 's': // string
|
|
str = va_arg (args_copy, const char *);
|
|
break;
|
|
case 'd': // int
|
|
number = va_arg (args_copy, int);
|
|
break;
|
|
case 'f': // float
|
|
fnumber = va_arg (args_copy, double);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
va_end (args_copy);
|
|
va_end (args);
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
// Check bool.
|
|
_Bool success = false;
|
|
|
|
// Check restrict.
|
|
if (test_restrict ("String literal") == 0)
|
|
success = true;
|
|
char *restrict newvar = "Another string";
|
|
|
|
// Check varargs.
|
|
test_varargs ("s, d' f .", "string", 65, 34.234);
|
|
test_varargs_macros ();
|
|
|
|
// Check flexible array members.
|
|
struct incomplete_array *ia =
|
|
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
|
|
ia->datasize = 10;
|
|
for (int i = 0; i < ia->datasize; ++i)
|
|
ia->data[i] = i * 1.234;
|
|
|
|
// Check named initializers.
|
|
struct named_init ni = {
|
|
.number = 34,
|
|
.name = L"Test wide string",
|
|
.average = 543.34343,
|
|
};
|
|
|
|
ni.number = 58;
|
|
|
|
int dynamic_array[ni.number];
|
|
dynamic_array[ni.number - 1] = 543;
|
|
|
|
// work around unused variable warnings
|
|
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
|
|
|| dynamic_array[ni.number - 1] != 543);
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
|
|
do
|
|
CC="$ac_save_CC $ac_arg"
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_prog_cc_c99=$ac_arg
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext
|
|
test "x$ac_cv_prog_cc_c99" != "xno" && break
|
|
done
|
|
rm -f conftest.$ac_ext
|
|
CC=$ac_save_CC
|
|
|
|
fi
|
|
# AC_CACHE_VAL
|
|
case "x$ac_cv_prog_cc_c99" in
|
|
x)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
$as_echo "none needed" >&6; } ;;
|
|
xno)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
$as_echo "unsupported" >&6; } ;;
|
|
*)
|
|
CC="$CC $ac_cv_prog_cc_c99"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
|
|
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
|
|
esac
|
|
if test "x$ac_cv_prog_cc_c99" != xno; then :
|
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
# OS dependent CC flags
|
|
#
|
|
case "$host" in
|
|
# OSF 5.0: recv/send are only available with -D_POSIX_PII_SOCKET or
|
|
# -D_XOPEN_SOURCE_EXTENDED.
|
|
*-dec-osf*)
|
|
STD_CDEFINES="$STD_CDEFINES -D_POSIX_PII_SOCKET"
|
|
CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET"
|
|
;;
|
|
#HP-UX: need -D_XOPEN_SOURCE_EXTENDED and -lxnet for CMSG macros
|
|
*-hp-hpux*)
|
|
STD_CDEFINES="$STD_CDEFINES -D_XOPEN_SOURCE_EXTENDED"
|
|
CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
|
|
LIBS="-lxnet $LIBS"
|
|
;;
|
|
# Solaris: need -D_XPG4_2 and -D__EXTENSIONS__ for CMSG macros
|
|
*-solaris*)
|
|
STD_CDEFINES="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__"
|
|
CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
|
|
;;
|
|
# POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
|
|
# parts of the IPv6 Advanced Socket API as a result. This is stupid
|
|
# as it breaks how the two halves (Basic and Advanced) of the IPv6
|
|
# Socket API were designed to be used but we have to live with it.
|
|
# Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
|
|
*-linux* | *-kfreebsd*-gnu*)
|
|
STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
|
|
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
|
;;
|
|
#
|
|
# Starting with OSX 10.7 (Lion) we must choose which IPv6 API to use.
|
|
# Setting this is sufficient to select the correct behavior for BIND 9.
|
|
#
|
|
*-darwin*)
|
|
STD_CDEFINES="$STD_CDEFINES -D__APPLE_USE_RFC_3542"
|
|
CPPFLAGS="$CPPFLAGS -D__APPLE_USE_RFC_3542"
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# CCNOOPT defaults to -O0 on gcc and disables optimization when is last
|
|
#
|
|
if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
|
|
CCNOOPT="-O0"
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
|
$as_echo_n "checking for ANSI C header files... " >&6; }
|
|
if ${ac_cv_header_stdc+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
#include <string.h>
|
|
#include <float.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_header_stdc=yes
|
|
else
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <string.h>
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "memchr" >/dev/null 2>&1; then :
|
|
|
|
else
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdlib.h>
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "free" >/dev/null 2>&1; then :
|
|
|
|
else
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
if test "$cross_compiling" = yes; then :
|
|
:
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <ctype.h>
|
|
#include <stdlib.h>
|
|
#if ((' ' & 0x0FF) == 0x020)
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
#else
|
|
# define ISLOWER(c) \
|
|
(('a' <= (c) && (c) <= 'i') \
|
|
|| ('j' <= (c) && (c) <= 'r') \
|
|
|| ('s' <= (c) && (c) <= 'z'))
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
#endif
|
|
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
int
|
|
main ()
|
|
{
|
|
int i;
|
|
for (i = 0; i < 256; i++)
|
|
if (XOR (islower (i), ISLOWER (i))
|
|
|| toupper (i) != TOUPPER (i))
|
|
return 2;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
|
|
else
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
|
$as_echo "$ac_cv_header_stdc" >&6; }
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
|
|
for ac_header in fcntl.h regex.h sys/time.h unistd.h sys/mman.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h sys/socket.h net/route.h linux/netlink.h linux/rtnetlink.h
|
|
do :
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
|
#ifdef HAVE_SYS_PARAM_H
|
|
# include <sys/param.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
# include <sys/socket.h>
|
|
#endif
|
|
|
|
"
|
|
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
|
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
|
if ${ac_cv_c_const+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
#ifndef __cplusplus
|
|
/* Ultrix mips cc rejects this sort of thing. */
|
|
typedef int charset[2];
|
|
const charset cs = { 0, 0 };
|
|
/* SunOS 4.1.1 cc rejects this. */
|
|
char const *const *pcpcc;
|
|
char **ppc;
|
|
/* NEC SVR4.0.2 mips cc rejects this. */
|
|
struct point {int x, y;};
|
|
static struct point const zero = {0,0};
|
|
/* AIX XL C 1.02.0.0 rejects this.
|
|
It does not let you subtract one const X* pointer from another in
|
|
an arm of an if-expression whose if-part is not a constant
|
|
expression */
|
|
const char *g = "string";
|
|
pcpcc = &g + (g ? g-g : 0);
|
|
/* HPUX 7.0 cc rejects these. */
|
|
++pcpcc;
|
|
ppc = (char**) pcpcc;
|
|
pcpcc = (char const *const *) ppc;
|
|
{ /* SCO 3.2v4 cc rejects this sort of thing. */
|
|
char tx;
|
|
char *t = &tx;
|
|
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
|
|
*t++ = 0;
|
|
if (s) return 0;
|
|
}
|
|
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
int x[] = {25, 17};
|
|
const int *foo = &x[0];
|
|
++foo;
|
|
}
|
|
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
typedef const int *iptr;
|
|
iptr p = 0;
|
|
++p;
|
|
}
|
|
{ /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
|
|
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
struct s { int j; const int *ap[3]; } bx;
|
|
struct s *b = &bx; b->j = 5;
|
|
}
|
|
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
const int foo = 10;
|
|
if (!foo) return 0;
|
|
}
|
|
return !cs[0] && !zero.x;
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_c_const=yes
|
|
else
|
|
ac_cv_c_const=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
|
$as_echo "$ac_cv_c_const" >&6; }
|
|
if test $ac_cv_c_const = no; then
|
|
|
|
$as_echo "#define const /**/" >>confdefs.h
|
|
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
|
|
$as_echo_n "checking for inline... " >&6; }
|
|
if ${ac_cv_c_inline+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_cv_c_inline=no
|
|
for ac_kw in inline __inline__ __inline; do
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#ifndef __cplusplus
|
|
typedef int foo_t;
|
|
static $ac_kw foo_t static_foo () {return 0; }
|
|
$ac_kw foo_t foo () {return 0; }
|
|
#endif
|
|
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_c_inline=$ac_kw
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
test "$ac_cv_c_inline" != no && break
|
|
done
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
|
|
$as_echo "$ac_cv_c_inline" >&6; }
|
|
|
|
case $ac_cv_c_inline in
|
|
inline | yes) ;;
|
|
*)
|
|
case $ac_cv_c_inline in
|
|
no) ac_val=;;
|
|
*) ac_val=$ac_cv_c_inline;;
|
|
esac
|
|
cat >>confdefs.h <<_ACEOF
|
|
#ifndef __cplusplus
|
|
#define inline $ac_val
|
|
#endif
|
|
_ACEOF
|
|
;;
|
|
esac
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
|
|
$as_echo_n "checking for working volatile... " >&6; }
|
|
if ${ac_cv_c_volatile+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
volatile int x;
|
|
int * volatile y = (int *) 0;
|
|
return !x && !y;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_c_volatile=yes
|
|
else
|
|
ac_cv_c_volatile=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
|
|
$as_echo "$ac_cv_c_volatile" >&6; }
|
|
if test $ac_cv_c_volatile = no; then
|
|
|
|
$as_echo "#define volatile /**/" >>confdefs.h
|
|
|
|
fi
|
|
|
|
ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
|
|
if test "x$ac_cv_func_sysctlbyname" = xyes; then :
|
|
$as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
|
|
$as_echo_n "checking for flexible array members... " >&6; }
|
|
if ${ac_cv_c_flexmember+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <stddef.h>
|
|
struct s { int n; double d[]; };
|
|
int
|
|
main ()
|
|
{
|
|
int m = getchar ();
|
|
struct s *p = malloc (offsetof (struct s, d)
|
|
+ m * sizeof (double));
|
|
p->d[0] = 0.0;
|
|
return p->d != (double *) NULL;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_c_flexmember=yes
|
|
else
|
|
ac_cv_c_flexmember=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
|
|
$as_echo "$ac_cv_c_flexmember" >&6; }
|
|
if test $ac_cv_c_flexmember = yes; then
|
|
|
|
$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
|
|
|
|
else
|
|
$as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
|
|
#
|
|
# Check for the existence of mmap to enable the fast format zones
|
|
#
|
|
for ac_func in mmap
|
|
do :
|
|
ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
|
|
if test "x$ac_cv_func_mmap" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_MMAP 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
#
|
|
# Older versions of HP/UX don't define seteuid() and setegid()
|
|
#
|
|
for ac_func in seteuid setresuid
|
|
do :
|
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
for ac_func in setegid setresgid
|
|
do :
|
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
# BSDI doesn't have ftello fseeko
|
|
for ac_func in ftello fseeko
|
|
do :
|
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
#
|
|
# UnixWare 7.1.1 with the feature supplement to the UDK compiler
|
|
# is reported to not support "static inline" (RT #1212).
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for static inline breakage" >&5
|
|
$as_echo_n "checking for static inline breakage... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
static inline int foo1() {
|
|
return 0;
|
|
}
|
|
|
|
static inline int foo2() {
|
|
return foo1();
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
foo1();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "#define inline /**/" >>confdefs.h
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
|
if test "x$ac_cv_type_size_t" = xyes; then :
|
|
|
|
else
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define size_t unsigned int
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
|
|
if test "x$ac_cv_type_ssize_t" = xyes; then :
|
|
|
|
else
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define ssize_t int
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
|
|
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
|
|
if test "x$ac_cv_type_uintptr_t" = xyes; then :
|
|
|
|
$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
|
|
|
|
else
|
|
for ac_type in 'unsigned int' 'unsigned long int' \
|
|
'unsigned long long int'; do
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
|
|
test_array [0] = 0;
|
|
return test_array [0];
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define uintptr_t $ac_type
|
|
_ACEOF
|
|
|
|
ac_type=
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
test -z "$ac_type" && break
|
|
done
|
|
fi
|
|
|
|
|
|
|
|
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
|
|
"
|
|
if test "x$ac_cv_type_socklen_t" = xyes; then :
|
|
$as_echo "#define ISC_SOCKADDR_LEN_T socklen_t" >>confdefs.h
|
|
|
|
else
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
int getsockname(int, struct sockaddr *, size_t *);
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
$as_echo "#define ISC_SOCKADDR_LEN_T size_t" >>confdefs.h
|
|
|
|
else
|
|
$as_echo "#define ISC_SOCKADDR_LEN_T int" >>confdefs.h
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
|
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
|
if ${ac_cv_header_time+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <sys/time.h>
|
|
#include <time.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
if ((struct tm *) 0)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_header_time=yes
|
|
else
|
|
ac_cv_header_time=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
|
$as_echo "$ac_cv_header_time" >&6; }
|
|
if test $ac_cv_header_time = yes; then
|
|
|
|
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
|
|
$as_echo_n "checking for long long... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
long long i = 0; return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
#
|
|
# check for uname library routine
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
|
|
$as_echo_n "checking for uname... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/utsname.h>
|
|
#include <stdio.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
struct utsname uts;
|
|
uname(&uts);
|
|
printf("running on %s %s %s for %s\n",
|
|
uts.sysname, uts.release, uts.version, uts.machine);
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
$as_echo "#define HAVE_UNAME 1" >>confdefs.h
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
|
|
$as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
#
|
|
# check for GCC noreturn attribute
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
|
|
$as_echo_n "checking for GCC noreturn attribute... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
void foo() __attribute__((noreturn));
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
|
|
ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
|
|
ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
|
|
#
|
|
# check if we have lifconf
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5
|
|
$as_echo_n "checking for struct lifconf... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <net/if.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
struct lifconf lifconf;
|
|
lifconf.lifc_len = 0;
|
|
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
#
|
|
# check if we have kqueue
|
|
#
|
|
# Check whether --enable-kqueue was given.
|
|
if test "${enable_kqueue+set}" = set; then :
|
|
enableval=$enable_kqueue; want_kqueue="$enableval"
|
|
else
|
|
want_kqueue="yes"
|
|
fi
|
|
|
|
case $want_kqueue in
|
|
yes)
|
|
ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
|
|
if test "x$ac_cv_func_kqueue" = xyes; then :
|
|
ac_cv_have_kqueue=yes
|
|
else
|
|
ac_cv_have_kqueue=no
|
|
fi
|
|
|
|
case $ac_cv_have_kqueue in
|
|
yes)
|
|
ISC_PLATFORM_HAVEKQUEUE="#define ISC_PLATFORM_HAVEKQUEUE 1"
|
|
;;
|
|
*)
|
|
ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
|
|
;;
|
|
esac
|
|
|
|
|
|
#
|
|
# check if we have epoll. Linux kernel 2.4 has epoll_create() which fails,
|
|
# so we need to try running the code, not just test its existence.
|
|
#
|
|
# Check whether --enable-epoll was given.
|
|
if test "${enable_epoll+set}" = set; then :
|
|
enableval=$enable_epoll; want_epoll="$enableval"
|
|
else
|
|
want_epoll="auto"
|
|
fi
|
|
|
|
case $want_epoll in
|
|
auto)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll support" >&5
|
|
$as_echo_n "checking epoll support... " >&6; }
|
|
if test "$cross_compiling" = yes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/epoll.h>
|
|
int main() {
|
|
if (epoll_create(1) < 0)
|
|
return (1);
|
|
return (0);
|
|
}
|
|
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
;;
|
|
yes)
|
|
ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
|
|
;;
|
|
*)
|
|
ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
|
|
;;
|
|
esac
|
|
|
|
|
|
#
|
|
# check if we support /dev/poll
|
|
#
|
|
# Check whether --enable-devpoll was given.
|
|
if test "${enable_devpoll+set}" = set; then :
|
|
enableval=$enable_devpoll; want_devpoll="$enableval"
|
|
else
|
|
want_devpoll="yes"
|
|
fi
|
|
|
|
case $want_devpoll in
|
|
yes)
|
|
for ac_header in sys/devpoll.h devpoll.h
|
|
do :
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
|
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
ISC_PLATFORM_HAVEDEVPOLL="#define ISC_PLATFORM_HAVEDEVPOLL 1"
|
|
|
|
else
|
|
ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
;;
|
|
*)
|
|
ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
|
|
;;
|
|
esac
|
|
|
|
|
|
#
|
|
# check if we need to #include sys/select.h explicitly
|
|
#
|
|
case $ac_cv_header_unistd_h in
|
|
yes)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unistd.h or sys/types.h defines fd_set" >&5
|
|
$as_echo_n "checking if unistd.h or sys/types.h defines fd_set... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h> /* Ultrix */
|
|
#include <unistd.h>
|
|
int
|
|
main ()
|
|
{
|
|
fd_set read_set; return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
|
|
LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
case $ac_cv_header_sys_select_h in
|
|
yes)
|
|
ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
|
|
LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
|
|
;;
|
|
no)
|
|
as_fn_error $? "need either working unistd.h or sys/select.h" "$LINENO" 5
|
|
;;
|
|
esac
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
;;
|
|
no)
|
|
case $ac_cv_header_sys_select_h in
|
|
yes)
|
|
ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
|
|
LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
|
|
;;
|
|
no)
|
|
as_fn_error $? "need either unistd.h or sys/select.h" "$LINENO" 5
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
#
|
|
# Find the machine's endian flavor.
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
|
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
|
if ${ac_cv_c_bigendian+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_cv_c_bigendian=unknown
|
|
# See if we're dealing with a universal compiler.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#ifndef __APPLE_CC__
|
|
not a universal capable compiler
|
|
#endif
|
|
typedef int dummy;
|
|
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
# Check for potential -arch flags. It is not universal unless
|
|
# there are at least two -arch flags with different values.
|
|
ac_arch=
|
|
ac_prev=
|
|
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
|
if test -n "$ac_prev"; then
|
|
case $ac_word in
|
|
i?86 | x86_64 | ppc | ppc64)
|
|
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
|
ac_arch=$ac_word
|
|
else
|
|
ac_cv_c_bigendian=universal
|
|
break
|
|
fi
|
|
;;
|
|
esac
|
|
ac_prev=
|
|
elif test "x$ac_word" = "x-arch"; then
|
|
ac_prev=arch
|
|
fi
|
|
done
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
if test $ac_cv_c_bigendian = unknown; then
|
|
# See if sys/param.h defines the BYTE_ORDER macro.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <sys/param.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
|
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
|
&& LITTLE_ENDIAN)
|
|
bogus endian macros
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
# It does; now see whether it defined to BIG_ENDIAN or not.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <sys/param.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#if BYTE_ORDER != BIG_ENDIAN
|
|
not big endian
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_c_bigendian=yes
|
|
else
|
|
ac_cv_c_bigendian=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
if test $ac_cv_c_bigendian = unknown; then
|
|
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <limits.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
|
bogus endian macros
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
# It does; now see whether it defined to _BIG_ENDIAN or not.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <limits.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#ifndef _BIG_ENDIAN
|
|
not big endian
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
ac_cv_c_bigendian=yes
|
|
else
|
|
ac_cv_c_bigendian=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
if test $ac_cv_c_bigendian = unknown; then
|
|
# Compile a test program.
|
|
if test "$cross_compiling" = yes; then :
|
|
# Try to guess by grepping values from an object file.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
short int ascii_mm[] =
|
|
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
|
short int ascii_ii[] =
|
|
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
|
int use_ascii (int i) {
|
|
return ascii_mm[i] + ascii_ii[i];
|
|
}
|
|
short int ebcdic_ii[] =
|
|
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
|
short int ebcdic_mm[] =
|
|
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
|
int use_ebcdic (int i) {
|
|
return ebcdic_mm[i] + ebcdic_ii[i];
|
|
}
|
|
extern int foo;
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return use_ascii (foo) == use_ebcdic (foo);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
|
ac_cv_c_bigendian=yes
|
|
fi
|
|
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
|
if test "$ac_cv_c_bigendian" = unknown; then
|
|
ac_cv_c_bigendian=no
|
|
else
|
|
# finding both strings is unlikely to happen, but who knows?
|
|
ac_cv_c_bigendian=unknown
|
|
fi
|
|
fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
|
|
/* Are we little or big endian? From Harbison&Steele. */
|
|
union
|
|
{
|
|
long int l;
|
|
char c[sizeof (long int)];
|
|
} u;
|
|
u.l = 1;
|
|
return u.c[sizeof (long int) - 1] == 1;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
ac_cv_c_bigendian=no
|
|
else
|
|
ac_cv_c_bigendian=yes
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
|
$as_echo "$ac_cv_c_bigendian" >&6; }
|
|
case $ac_cv_c_bigendian in #(
|
|
yes)
|
|
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
|
;; #(
|
|
no)
|
|
;; #(
|
|
universal)
|
|
|
|
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
|
|
|
;; #(
|
|
*)
|
|
as_fn_error $? "unknown endianness
|
|
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
|
esac
|
|
|
|
|
|
#
|
|
# GeoIP support?
|
|
#
|
|
geoip2_default="no"
|
|
|
|
# Check whether --with-geoip was given.
|
|
if test "${with_geoip+set}" = set; then :
|
|
withval=$with_geoip;
|
|
use_geoip="$withval"
|
|
geoip2_default="no"
|
|
|
|
else
|
|
use_geoip="no"
|
|
fi
|
|
|
|
|
|
# Check whether --with-geoip2 was given.
|
|
if test "${with_geoip2+set}" = set; then :
|
|
withval=$with_geoip2;
|
|
else
|
|
with_geoip2="$geoip2_default"
|
|
fi
|
|
|
|
|
|
# specifying both --with-geoip and --with-geoip2 is an error.
|
|
if test "no" != "$with_geoip2" && test "no" != "$use_geoip"; then :
|
|
as_fn_error $? "--with-geoip and --with-geoip2 are incompatible" "$LINENO" 5
|
|
fi
|
|
|
|
GEOIP2LINKSRCS=
|
|
GEOIP2LINKOBJS=
|
|
case $with_geoip2 in #(
|
|
no) :
|
|
;; #(
|
|
auto) :
|
|
|
|
pkg_failed=no
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
|
|
$as_echo_n "checking for libmaxminddb... " >&6; }
|
|
|
|
if test -n "$MAXMINDDB_CFLAGS"; then
|
|
pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
|
|
($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
fi
|
|
else
|
|
pkg_failed=untried
|
|
fi
|
|
if test -n "$MAXMINDDB_LIBS"; then
|
|
pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
|
|
($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
fi
|
|
else
|
|
pkg_failed=untried
|
|
fi
|
|
|
|
|
|
|
|
if test $pkg_failed = yes; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
|
|
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
_pkg_short_errors_supported=yes
|
|
else
|
|
_pkg_short_errors_supported=no
|
|
fi
|
|
if test $_pkg_short_errors_supported = yes; then
|
|
MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
|
|
else
|
|
MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
|
|
fi
|
|
# Put the nasty error message in config.log where it belongs
|
|
echo "$MAXMINDDB_PKG_ERRORS" >&5
|
|
|
|
:
|
|
elif test $pkg_failed = untried; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
:
|
|
else
|
|
MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
|
|
MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
|
|
|
|
|
|
if test -n "$MAXMINDDB_PREFIX"; then
|
|
pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
|
|
($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
fi
|
|
else
|
|
pkg_failed=untried
|
|
fi
|
|
MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
|
|
|
|
if test "x$MAXMINDDB_PREFIX" = x""; then :
|
|
as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
|
|
fi
|
|
GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
|
|
GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
|
|
|
|
fi ;; #(
|
|
yes) :
|
|
|
|
pkg_failed=no
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
|
|
$as_echo_n "checking for libmaxminddb... " >&6; }
|
|
|
|
if test -n "$MAXMINDDB_CFLAGS"; then
|
|
pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
|
|
($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
fi
|
|
else
|
|
pkg_failed=untried
|
|
fi
|
|
if test -n "$MAXMINDDB_LIBS"; then
|
|
pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
|
|
($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
fi
|
|
else
|
|
pkg_failed=untried
|
|
fi
|
|
|
|
|
|
|
|
if test $pkg_failed = yes; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
|
|
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
_pkg_short_errors_supported=yes
|
|
else
|
|
_pkg_short_errors_supported=no
|
|
fi
|
|
if test $_pkg_short_errors_supported = yes; then
|
|
MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
|
|
else
|
|
MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
|
|
fi
|
|
# Put the nasty error message in config.log where it belongs
|
|
echo "$MAXMINDDB_PKG_ERRORS" >&5
|
|
|
|
as_fn_error $? "Package requirements (libmaxminddb) were not met:
|
|
|
|
$MAXMINDDB_PKG_ERRORS
|
|
|
|
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
installed software in a non-standard prefix.
|
|
|
|
Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
|
|
and MAXMINDDB_LIBS to avoid the need to call pkg-config.
|
|
See the pkg-config man page for more details." "$LINENO" 5
|
|
elif test $pkg_failed = untried; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
|
|
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
path to pkg-config.
|
|
|
|
Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
|
|
and MAXMINDDB_LIBS to avoid the need to call pkg-config.
|
|
See the pkg-config man page for more details.
|
|
|
|
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
else
|
|
MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
|
|
MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
|
|
|
|
|
|
if test -n "$MAXMINDDB_PREFIX"; then
|
|
pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
|
|
($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
fi
|
|
else
|
|
pkg_failed=untried
|
|
fi
|
|
MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
|
|
|
|
if test "x$MAXMINDDB_PREFIX" = x""; then :
|
|
as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
|
|
fi
|
|
GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
|
|
GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
|
|
|
|
fi ;; #(
|
|
*) :
|
|
# default
|
|
|
|
|
|
CCASFLAGS_geoip2_ax_save_flags=$CCASFLAGS
|
|
|
|
|
|
|
|
CFLAGS_geoip2_ax_save_flags=$CFLAGS
|
|
|
|
|
|
|
|
CPPFLAGS_geoip2_ax_save_flags=$CPPFLAGS
|
|
|
|
|
|
|
|
CXXFLAGS_geoip2_ax_save_flags=$CXXFLAGS
|
|
|
|
|
|
|
|
ERLCFLAGS_geoip2_ax_save_flags=$ERLCFLAGS
|
|
|
|
|
|
|
|
FCFLAGS_geoip2_ax_save_flags=$FCFLAGS
|
|
|
|
|
|
|
|
FCLIBS_geoip2_ax_save_flags=$FCLIBS
|
|
|
|
|
|
|
|
FFLAGS_geoip2_ax_save_flags=$FFLAGS
|
|
|
|
|
|
|
|
FLIBS_geoip2_ax_save_flags=$FLIBS
|
|
|
|
|
|
|
|
GCJFLAGS_geoip2_ax_save_flags=$GCJFLAGS
|
|
|
|
|
|
|
|
JAVACFLAGS_geoip2_ax_save_flags=$JAVACFLAGS
|
|
|
|
|
|
|
|
LDFLAGS_geoip2_ax_save_flags=$LDFLAGS
|
|
|
|
|
|
|
|
LIBS_geoip2_ax_save_flags=$LIBS
|
|
|
|
|
|
|
|
OBJCFLAGS_geoip2_ax_save_flags=$OBJCFLAGS
|
|
|
|
|
|
|
|
OBJCXXFLAGS_geoip2_ax_save_flags=$OBJCXXFLAGS
|
|
|
|
|
|
|
|
UPCFLAGS_geoip2_ax_save_flags=$UPCFLAGS
|
|
|
|
|
|
|
|
VALAFLAGS_geoip2_ax_save_flags=$VALAFLAGS
|
|
|
|
|
|
|
|
MAXMINDDB_CFLAGS="-I$with_geoip2/include"
|
|
MAXMINDDB_LIBS="-L$with_geoip2/lib"
|
|
CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS"
|
|
LDFLAGS="$LDFLAGS $MAXMINDDB_LIBS"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5
|
|
$as_echo_n "checking for library containing MMDB_open... " >&6; }
|
|
if ${ac_cv_search_MMDB_open+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char MMDB_open ();
|
|
int
|
|
main ()
|
|
{
|
|
return MMDB_open ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' maxminddb; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_search_MMDB_open=$ac_res
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if ${ac_cv_search_MMDB_open+:} false; then :
|
|
break
|
|
fi
|
|
done
|
|
if ${ac_cv_search_MMDB_open+:} false; then :
|
|
|
|
else
|
|
ac_cv_search_MMDB_open=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5
|
|
$as_echo "$ac_cv_search_MMDB_open" >&6; }
|
|
ac_res=$ac_cv_search_MMDB_open
|
|
if test "$ac_res" != no; then :
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
$as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
|
|
|
|
GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
|
|
GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
|
|
MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_mmdb_open"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_geoip2/share/GeoIP" >&5
|
|
$as_echo "$as_me: GeoIP2 default database path set to $with_geoip2/share/GeoIP" >&6;}
|
|
eval MAXMINDDB_PREFIX=\$$with_geoip2
|
|
|
|
else
|
|
as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5
|
|
fi
|
|
|
|
|
|
CCASFLAGS=$CCASFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
CFLAGS=$CFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
CPPFLAGS=$CPPFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
CXXFLAGS=$CXXFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
ERLCFLAGS=$ERLCFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
FCFLAGS=$FCFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
FCLIBS=$FCLIBS_geoip2_ax_save_flags
|
|
|
|
|
|
FFLAGS=$FFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
FLIBS=$FLIBS_geoip2_ax_save_flags
|
|
|
|
|
|
GCJFLAGS=$GCJFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
JAVACFLAGS=$JAVACFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
LDFLAGS=$LDFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
LIBS=$LIBS_geoip2_ax_save_flags
|
|
|
|
|
|
OBJCFLAGS=$OBJCFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
OBJCXXFLAGS=$OBJCXXFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
UPCFLAGS=$UPCFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
VALAFLAGS=$VALAFLAGS_geoip2_ax_save_flags
|
|
|
|
|
|
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GEOIPLINKSRCS=
|
|
GEOIPLINKOBJS=
|
|
if test "yes" = "$use_geoip"
|
|
then
|
|
for d in /usr /usr/local /opt/local
|
|
do
|
|
if test -f $d/include/GeoIP.h
|
|
then
|
|
use_geoip=$d
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
|
|
case "$use_geoip" in
|
|
no|'')
|
|
;;
|
|
*)
|
|
if test -d "$use_geoip" -o -L "$use_geoip"
|
|
then
|
|
CFLAGS="$CFLAGS -I$use_geoip/include"
|
|
CPPFLAGS="$CPPFLAGS -I$use_geoip/include"
|
|
LIBS="$LIBS -L$use_geoip/lib"
|
|
case "$host_os" in
|
|
netbsd*|openbsd*|solaris*)
|
|
LIBS="$LIBS -Wl,-rpath=$use_geoip/lib"
|
|
;;
|
|
esac
|
|
elif test "yes" = "$use_geoip"
|
|
then
|
|
as_fn_error $? "GeoIP path not found" "$LINENO" 5
|
|
else
|
|
as_fn_error $? "GeoIP path $use_geoip does not exist" "$LINENO" 5
|
|
fi
|
|
ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_GeoIP_h" = xyes; then :
|
|
|
|
else
|
|
as_fn_error $? "GeoIP header file not found" "$LINENO" 5
|
|
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_addr_gl" >&5
|
|
$as_echo_n "checking for library containing GeoIP_id_by_addr_gl... " >&6; }
|
|
if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char GeoIP_id_by_addr_gl ();
|
|
int
|
|
main ()
|
|
{
|
|
return GeoIP_id_by_addr_gl ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' GeoIP; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_search_GeoIP_id_by_addr_gl=$ac_res
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
|
|
break
|
|
fi
|
|
done
|
|
if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
|
|
|
|
else
|
|
ac_cv_search_GeoIP_id_by_addr_gl=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_addr_gl" >&5
|
|
$as_echo "$ac_cv_search_GeoIP_id_by_addr_gl" >&6; }
|
|
ac_res=$ac_cv_search_GeoIP_id_by_addr_gl
|
|
if test "$ac_res" != no; then :
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
else
|
|
as_fn_error $? "suitable GeoIP library not found" "$LINENO" 5
|
|
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
|
|
$as_echo_n "checking for library containing fabsf... " >&6; }
|
|
if ${ac_cv_search_fabsf+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char fabsf ();
|
|
int
|
|
main ()
|
|
{
|
|
return fabsf ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' m; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_search_fabsf=$ac_res
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if ${ac_cv_search_fabsf+:} false; then :
|
|
break
|
|
fi
|
|
done
|
|
if ${ac_cv_search_fabsf+:} false; then :
|
|
|
|
else
|
|
ac_cv_search_fabsf=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
|
|
$as_echo "$ac_cv_search_fabsf" >&6; }
|
|
ac_res=$ac_cv_search_fabsf
|
|
if test "$ac_res" != no; then :
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
else
|
|
as_fn_error $? "Math library not found" "$LINENO" 5
|
|
|
|
fi
|
|
|
|
|
|
$as_echo "#define HAVE_GEOIP 1" >>confdefs.h
|
|
|
|
GEOIPLINKSRCS='${GEOIPLINKSRCS}'
|
|
GEOIPLINKOBJS='${GEOIPLINKOBJS}'
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
|
|
$as_echo_n "checking for GeoIP support... " >&6; }
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP Country IPv6 support" >&5
|
|
$as_echo_n "checking for GeoIP Country IPv6 support... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <GeoIP.h>
|
|
#include <netinet/in.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
struct in6_addr in6;
|
|
GeoIP_country_name_by_ipnum_v6(NULL, in6);
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "#define HAVE_GEOIP_V6 1" >>confdefs.h
|
|
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP City IPv6 support" >&5
|
|
$as_echo_n "checking for GeoIP City IPv6 support... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <GeoIP.h>
|
|
#include <GeoIPCity.h>
|
|
#include <netinet/in.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
struct in6_addr in6;
|
|
int i = GEOIP_CITY_EDITION_REV0_V6;
|
|
GeoIP_record_by_ipnum_v6(NULL, in6);
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "#define HAVE_GEOIP_CITY_V6 1" >>confdefs.h
|
|
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
|
|
$as_echo_n "checking for GSSAPI library... " >&6; }
|
|
|
|
# Check whether --with-gssapi was given.
|
|
if test "${with_gssapi+set}" = set; then :
|
|
withval=$with_gssapi; use_gssapi="$withval"
|
|
else
|
|
use_gssapi="auto"
|
|
fi
|
|
|
|
|
|
# first try using krb5-config, if that does not work then fall back to "yes" method.
|
|
|
|
case "$use_gssapi" in
|
|
*/krb5-config|krb5-config)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
|
|
$as_echo "trying $use_gssapi" >&6; }
|
|
if test krb5-config = "$use_gssapi"
|
|
then
|
|
# Extract the first word of "$use_gssapi", so it can be a program name with args.
|
|
set dummy $use_gssapi; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_KRB5_CONFIG+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $KRB5_CONFIG in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
|
|
if test -n "$KRB5_CONFIG"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
|
|
$as_echo "$KRB5_CONFIG" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
else
|
|
KRB5_CONFIG="$use_gssapi"
|
|
fi
|
|
gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
|
|
gssapi_libs=`$KRB5_CONFIG --libs gssapi`
|
|
saved_cppflags="$CPPFLAGS"
|
|
CPPFLAGS="$gssapi_cflags $CPPFLAGS"
|
|
for ac_header in gssapi.h gssapi/gssapi.h
|
|
do :
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
|
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
|
|
fi
|
|
|
|
done
|
|
|
|
if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
|
|
$as_echo "krb5-config: gssapi.h not found" >&6; }
|
|
CPPFLAGS="$saved_cppflags"
|
|
use_gssapi="yes"
|
|
else
|
|
for ac_header in krb5/krb5.h krb5.h
|
|
do :
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
|
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
|
|
fi
|
|
|
|
done
|
|
|
|
if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
|
|
$as_echo "krb5-config: krb5.h not found" >&6; }
|
|
CPPFLAGS="$saved_cppflags"
|
|
use_gssapi="yes"
|
|
else
|
|
CPPFLAGS="$saved_cppflags"
|
|
saved_libs="$LIBS"
|
|
LIBS=$gssapi_libs
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
|
|
$as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
gss_acquire_cred();krb5_init_context()
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
gssapi_linked=yes
|
|
else
|
|
gssapi_linked=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
case $gssapi_linked in
|
|
yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
|
|
$as_echo "krb5-config: linked" >&6; };;
|
|
no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
|
|
$as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
|
|
use_gssapi="yes"
|
|
;;
|
|
esac
|
|
LIBS=$saved_libs
|
|
fi
|
|
fi
|
|
if test "yes" = "$use_gssapi"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
|
|
$as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
case "$host" in
|
|
*darwin*)
|
|
if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
|
|
then
|
|
use_gssapi=framework
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
# gssapi is just the framework, we really require kerberos v5, so
|
|
# look for those headers (the gssapi headers must be there, too)
|
|
# The problem with this implementation is that it doesn't allow
|
|
# for the specification of gssapi and krb5 headers in different locations,
|
|
# which probably ought to be fixed although fixing might raise the issue of
|
|
# trying to build with incompatible versions of gssapi and krb5.
|
|
if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
|
|
then
|
|
# first, deal with the obvious
|
|
if test \( -f /usr/include/kerberosv5/krb5.h -o \
|
|
-f /usr/include/krb5/krb5.h -o \
|
|
-f /usr/include/krb5.h \) -a \
|
|
\( -f /usr/include/gssapi.h -o \
|
|
-f /usr/include/gssapi/gssapi.h \)
|
|
then
|
|
use_gssapi=/usr
|
|
else
|
|
krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
|
|
for d in $krb5dirs
|
|
do
|
|
if test -f $d/include/gssapi/gssapi_krb5.h -o \
|
|
-f $d/include/krb5.h
|
|
then
|
|
if test -f $d/include/gssapi/gssapi.h -o \
|
|
-f $d/include/gssapi.h
|
|
then
|
|
use_gssapi=$d
|
|
break
|
|
fi
|
|
fi
|
|
done
|
|
if test "auto" = "$use_gssapi"
|
|
then
|
|
use_gssapi="no"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
case "$use_gssapi" in
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
|
|
$as_echo "disabled" >&6; }
|
|
USE_GSSAPI=''
|
|
;;
|
|
yes)
|
|
as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
|
|
;;
|
|
*/krb5-config|krb5-config)
|
|
USE_GSSAPI='-DGSSAPI'
|
|
DST_GSSAPI_INC="$gssapi_cflags"
|
|
DNS_GSSAPI_LIBS="$gssapi_libs"
|
|
;;
|
|
framework)
|
|
USE_GSSAPI='-DGSSAPI'
|
|
ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
|
|
ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
|
|
DNS_GSSAPI_LIBS="-framework Kerberos"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
|
|
$as_echo "framework" >&6; }
|
|
;;
|
|
|
|
*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
|
|
$as_echo "looking in $use_gssapi/lib" >&6; }
|
|
USE_GSSAPI='-DGSSAPI'
|
|
saved_cppflags="$CPPFLAGS"
|
|
CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
|
|
for ac_header in gssapi.h gssapi/gssapi.h
|
|
do :
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
|
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
|
|
gssapi_hack="#include <$ac_header>"
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
|
|
as_fn_error $? "gssapi.h not found" "$LINENO" 5
|
|
fi
|
|
|
|
for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
|
|
do :
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
|
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
|
|
gssapi_krb5_hack="#include <$ac_header>"
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
|
|
do :
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
|
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
|
|
krb5_hack="#include <$ac_header>"
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
|
|
as_fn_error $? "krb5.h not found" "$LINENO" 5
|
|
fi
|
|
|
|
#
|
|
# XXXDCL This probably doesn't work right on all systems.
|
|
# It will need to be worked on as problems become evident.
|
|
#
|
|
# Essentially the problems here relate to two different
|
|
# areas. The first area is building with either KTH
|
|
# or MIT Kerberos, particularly when both are present on
|
|
# the machine. The other is static versus dynamic linking.
|
|
#
|
|
# On the KTH vs MIT issue, Both have libkrb5 that can mess
|
|
# up the works if one implementation ends up trying to
|
|
# use the other's krb. This is unfortunately a situation
|
|
# that very easily arises.
|
|
#
|
|
# Dynamic linking when the dependency information is built
|
|
# into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
|
|
# all such problems go away, but when that setup is not
|
|
# present, because either the dynamic libraries lack
|
|
# dependencies or static linking is being done, then the
|
|
# problems start to show up.
|
|
saved_libs="$LIBS"
|
|
for TRY_LIBS in \
|
|
"-lgssapi_krb5" \
|
|
"-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
|
|
"-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
|
|
"-lgssapi" \
|
|
"-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
|
|
"-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
|
|
"-lgssapi -lkrb5 -lgssapi_krb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
|
|
"-lgssapi -lkrb5 -lhx509 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
|
|
"-lgss -lkrb5"
|
|
do
|
|
# Note that this does not include $saved_libs, because
|
|
# on FreeBSD machines this configure script has added
|
|
# -L/usr/local/lib to LIBS, which can make the
|
|
# -lgssapi_krb5 test succeed with shared libraries even
|
|
# when you are trying to build with KTH in /usr/lib.
|
|
if test "/usr" = "$use_gssapi"
|
|
then
|
|
LIBS="$TRY_LIBS"
|
|
else
|
|
LIBS="-L$use_gssapi/lib $TRY_LIBS"
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
|
|
$as_echo_n "checking linking as $TRY_LIBS... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
$gssapi_hack
|
|
$gssapi_krb5_hack
|
|
$krb5_hack
|
|
|
|
int
|
|
main ()
|
|
{
|
|
gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
|
|
#if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
|
|
gsskrb5_register_acceptor_identity(NULL);
|
|
#endif
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
gssapi_linked=yes
|
|
else
|
|
gssapi_linked=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
case $gssapi_linked in
|
|
yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }; break ;;
|
|
no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; } ;;
|
|
esac
|
|
done
|
|
|
|
CPPFLAGS="$saved_cppflags"
|
|
|
|
case $gssapi_linked in
|
|
no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
|
|
esac
|
|
|
|
#
|
|
# XXXDCL Major kludge. Tries to cope with KTH in /usr/lib
|
|
# but MIT in /usr/local/lib and trying to build with KTH.
|
|
# /usr/local/lib can end up earlier on the link lines.
|
|
# Like most kludges, this one is not only inelegant it
|
|
# is also likely to be the wrong thing to do at least as
|
|
# many times as it is the right thing. Something better
|
|
# needs to be done.
|
|
#
|
|
if test "/usr" = "$use_gssapi" -a \
|
|
-f /usr/local/lib/libkrb5.a; then
|
|
FIX_KTH_VS_MIT=yes
|
|
fi
|
|
|
|
case "$FIX_KTH_VS_MIT" in
|
|
yes)
|
|
case "$enable_static_linking" in
|
|
yes) gssapi_lib_suffix=".a" ;;
|
|
*) gssapi_lib_suffix=".so" ;;
|
|
esac
|
|
|
|
for lib in $LIBS; do
|
|
case $lib in
|
|
-L*)
|
|
;;
|
|
-l*)
|
|
new_lib=`echo $lib |
|
|
sed -e s%^-l%$use_gssapi/lib/lib% \
|
|
-e s%$%$gssapi_lib_suffix%`
|
|
NEW_LIBS="$NEW_LIBS $new_lib"
|
|
;;
|
|
*)
|
|
as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
|
|
;;
|
|
esac
|
|
done
|
|
LIBS="$NEW_LIBS"
|
|
;;
|
|
esac
|
|
|
|
DST_GSSAPI_INC="-I$use_gssapi/include"
|
|
DNS_GSSAPI_LIBS="$LIBS"
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
|
|
$as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
|
|
LIBS="$saved_libs"
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS $DNS_CRYPTO_LIBS"
|
|
|
|
#
|
|
# Applications linking with libdns also need to link with these libraries.
|
|
#
|
|
|
|
|
|
|
|
#
|
|
# was --with-randomdev specified?
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
|
|
$as_echo_n "checking for random device... " >&6; }
|
|
|
|
# Check whether --with-randomdev was given.
|
|
if test "${with_randomdev+set}" = set; then :
|
|
withval=$with_randomdev; use_randomdev="$withval"
|
|
else
|
|
use_randomdev="unspec"
|
|
fi
|
|
|
|
|
|
case "$use_randomdev" in
|
|
unspec)
|
|
case "$cross_compiling" in
|
|
yes)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5
|
|
$as_echo "unspecified" >&6; }
|
|
as_fn_error $? " need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5
|
|
esac
|
|
case "$host" in
|
|
*-openbsd*)
|
|
devrandom=/dev/arandom
|
|
;;
|
|
*)
|
|
devrandom=/dev/random
|
|
;;
|
|
esac
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5
|
|
$as_echo "$devrandom" >&6; }
|
|
as_ac_File=`$as_echo "ac_cv_file_$devrandom" | $as_tr_sh`
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $devrandom" >&5
|
|
$as_echo_n "checking for $devrandom... " >&6; }
|
|
if eval \${$as_ac_File+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
test "$cross_compiling" = yes &&
|
|
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
|
|
if test -r "$devrandom"; then
|
|
eval "$as_ac_File=yes"
|
|
else
|
|
eval "$as_ac_File=no"
|
|
fi
|
|
fi
|
|
eval ac_res=\$$as_ac_File
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
$as_echo "$ac_res" >&6; }
|
|
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define PATH_RANDOMDEV "$devrandom"
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
|
|
;;
|
|
yes)
|
|
as_fn_error $? "--with-randomdev must specify a path" "$LINENO" 5
|
|
;;
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
|
|
$as_echo "disabled" >&6; }
|
|
;;
|
|
*)
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define PATH_RANDOMDEV "$use_randomdev"
|
|
_ACEOF
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using \"$use_randomdev\"" >&5
|
|
$as_echo "using \"$use_randomdev\"" >&6; }
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Only check dsa signature generation on these platforms when performing
|
|
# system tests.
|
|
#
|
|
CHECK_DSA=0
|
|
if grep "#define PATH_RANDOMDEV " confdefs.h > /dev/null
|
|
then
|
|
case "$host" in
|
|
*darwin*|*freebsd*)
|
|
CHECK_DSA=1
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
|
|
#
|
|
# Do we have arc4random(), etc ?
|
|
# Will use stir and if not exist addrandom
|
|
#
|
|
for ac_func in arc4random
|
|
do :
|
|
ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
|
|
if test "x$ac_cv_func_arc4random" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_ARC4RANDOM 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
for ac_func in arc4random_stir
|
|
do :
|
|
ac_fn_c_check_func "$LINENO" "arc4random_stir" "ac_cv_func_arc4random_stir"
|
|
if test "x$ac_cv_func_arc4random_stir" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_ARC4RANDOM_STIR 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
for ac_func in arc4random_addrandom
|
|
do :
|
|
ac_fn_c_check_func "$LINENO" "arc4random_addrandom" "ac_cv_func_arc4random_addrandom"
|
|
if test "x$ac_cv_func_arc4random_addrandom" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_ARC4RANDOM_ADDRANDOM 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
#
|
|
# Begin pthreads checking.
|
|
#
|
|
# First, decide whether to use multithreading or not.
|
|
#
|
|
# Enable multithreading by default on systems where it is known
|
|
# to work well, and where debugging of multithreaded programs
|
|
# is supported.
|
|
#
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with thread support" >&5
|
|
$as_echo_n "checking whether to build with thread support... " >&6; }
|
|
|
|
case $host in
|
|
*-dec-osf*)
|
|
use_threads=true ;;
|
|
*-solaris2.[0-6])
|
|
# Thread signals are broken on Solaris 2.6; they are sometimes
|
|
# delivered to the wrong thread.
|
|
use_threads=false ;;
|
|
*-solaris*)
|
|
use_threads=true ;;
|
|
*-ibm-aix*)
|
|
use_threads=true ;;
|
|
*-hp-hpux10*)
|
|
use_threads=false ;;
|
|
*-hp-hpux11*)
|
|
use_threads=true ;;
|
|
*-sgi-irix*)
|
|
use_threads=true ;;
|
|
*-sco-sysv*uw*|*-*-sysv*UnixWare*)
|
|
# UnixWare
|
|
use_threads=false ;;
|
|
*-*-sysv*OpenUNIX*)
|
|
# UnixWare
|
|
use_threads=true ;;
|
|
*-netbsd[1234].*)
|
|
# NetBSD earlier than NetBSD 5.0 has poor pthreads.
|
|
# Don't use it by default.
|
|
use_threads=false ;;
|
|
*-netbsd*)
|
|
use_threads=true ;;
|
|
*-openbsd[12345].*|*-openbsd6.[01])
|
|
# OpenBSD users reported that named dumps core on
|
|
# startup when built with threads.
|
|
use_threads=false ;;
|
|
*-openbsd*)
|
|
use_threads=true ;;
|
|
*-freebsd[1234567].*)
|
|
# Threads are broken at least up to FreeBSD 4.11.
|
|
# FreeBSD 5, 6 and 7 we have never officially supported threads
|
|
# on. YMMV
|
|
use_threads=false ;;
|
|
*-freebsd*)
|
|
use_threads=true ;;
|
|
*-bsdi[234]*)
|
|
# Thread signals do not work reliably on some versions of BSD/OS.
|
|
use_threads=false ;;
|
|
*-bsdi5*)
|
|
use_threads=true ;;
|
|
*-linux*)
|
|
use_threads=true ;;
|
|
*-darwin[123456789].*)
|
|
use_threads=false ;;
|
|
*-darwin*.*)
|
|
use_threads=true ;;
|
|
*)
|
|
use_threads=true ;;
|
|
esac
|
|
|
|
# Check whether --enable-threads was given.
|
|
if test "${enable_threads+set}" = set; then :
|
|
enableval=$enable_threads;
|
|
fi
|
|
|
|
case "$enable_threads" in
|
|
yes)
|
|
use_threads=true
|
|
;;
|
|
no)
|
|
use_threads=false
|
|
;;
|
|
'')
|
|
# Use system-dependent default
|
|
;;
|
|
*)
|
|
as_fn_error $? "--enable-threads takes yes or no" "$LINENO" 5
|
|
;;
|
|
esac
|
|
|
|
if $use_threads
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if $use_threads
|
|
then
|
|
#
|
|
# Search for / configure pthreads in a system-dependent fashion.
|
|
#
|
|
case "$host" in
|
|
*-freebsd*)
|
|
# We don't want to set -lpthread as that break
|
|
# the ability to choose threads library at final
|
|
# link time and is not valid for all architectures.
|
|
|
|
PTHREAD=
|
|
if test "X$GCC" = "Xyes"; then
|
|
saved_cc="$CC"
|
|
CC="$CC -pthread"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pthread support" >&5
|
|
$as_echo_n "checking for gcc -pthread support... " >&6; };
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <pthread.h>
|
|
int
|
|
main ()
|
|
{
|
|
printf("%x\n", pthread_create);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
PTHREAD="yes"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
CC="$saved_cc"
|
|
fi
|
|
if test "X$PTHREAD" != "Xyes"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
|
|
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
|
|
if ${ac_cv_lib_pthread_pthread_create+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lpthread $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char pthread_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return pthread_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_pthread_pthread_create=yes
|
|
else
|
|
ac_cv_lib_pthread_pthread_create=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
|
|
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
|
|
if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBPTHREAD 1
|
|
_ACEOF
|
|
|
|
LIBS="-lpthread $LIBS"
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_create in -lthr" >&5
|
|
$as_echo_n "checking for thread_create in -lthr... " >&6; }
|
|
if ${ac_cv_lib_thr_thread_create+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lthr $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char thread_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return thread_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_thr_thread_create=yes
|
|
else
|
|
ac_cv_lib_thr_thread_create=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_thread_create" >&5
|
|
$as_echo "$ac_cv_lib_thr_thread_create" >&6; }
|
|
if test "x$ac_cv_lib_thr_thread_create" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBTHR 1
|
|
_ACEOF
|
|
|
|
LIBS="-lthr $LIBS"
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
|
|
$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
|
|
if ${ac_cv_lib_c_r_pthread_create+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lc_r $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char pthread_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return pthread_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_c_r_pthread_create=yes
|
|
else
|
|
ac_cv_lib_c_r_pthread_create=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
|
|
$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
|
|
if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBC_R 1
|
|
_ACEOF
|
|
|
|
LIBS="-lc_r $LIBS"
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
|
|
$as_echo_n "checking for pthread_create in -lc... " >&6; }
|
|
if ${ac_cv_lib_c_pthread_create+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lc $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char pthread_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return pthread_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_c_pthread_create=yes
|
|
else
|
|
ac_cv_lib_c_pthread_create=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
|
|
$as_echo "$ac_cv_lib_c_pthread_create" >&6; }
|
|
if test "x$ac_cv_lib_c_pthread_create" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBC 1
|
|
_ACEOF
|
|
|
|
LIBS="-lc $LIBS"
|
|
|
|
else
|
|
as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
;;
|
|
*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
|
|
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
|
|
if ${ac_cv_lib_pthread_pthread_create+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lpthread $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char pthread_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return pthread_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_pthread_pthread_create=yes
|
|
else
|
|
ac_cv_lib_pthread_pthread_create=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
|
|
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
|
|
if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBPTHREAD 1
|
|
_ACEOF
|
|
|
|
LIBS="-lpthread $LIBS"
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create in -lpthread" >&5
|
|
$as_echo_n "checking for __pthread_create in -lpthread... " >&6; }
|
|
if ${ac_cv_lib_pthread___pthread_create+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lpthread $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char __pthread_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return __pthread_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_pthread___pthread_create=yes
|
|
else
|
|
ac_cv_lib_pthread___pthread_create=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create" >&5
|
|
$as_echo "$ac_cv_lib_pthread___pthread_create" >&6; }
|
|
if test "x$ac_cv_lib_pthread___pthread_create" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBPTHREAD 1
|
|
_ACEOF
|
|
|
|
LIBS="-lpthread $LIBS"
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
|
|
$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
|
|
if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lpthread $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char __pthread_create_system ();
|
|
int
|
|
main ()
|
|
{
|
|
return __pthread_create_system ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_pthread___pthread_create_system=yes
|
|
else
|
|
ac_cv_lib_pthread___pthread_create_system=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
|
|
$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
|
|
if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBPTHREAD 1
|
|
_ACEOF
|
|
|
|
LIBS="-lpthread $LIBS"
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
|
|
$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
|
|
if ${ac_cv_lib_c_r_pthread_create+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lc_r $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char pthread_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return pthread_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_c_r_pthread_create=yes
|
|
else
|
|
ac_cv_lib_c_r_pthread_create=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
|
|
$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
|
|
if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBC_R 1
|
|
_ACEOF
|
|
|
|
LIBS="-lc_r $LIBS"
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
|
|
$as_echo_n "checking for pthread_create in -lc... " >&6; }
|
|
if ${ac_cv_lib_c_pthread_create+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lc $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char pthread_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return pthread_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_c_pthread_create=yes
|
|
else
|
|
ac_cv_lib_c_pthread_create=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
|
|
$as_echo "$ac_cv_lib_c_pthread_create" >&6; }
|
|
if test "x$ac_cv_lib_c_pthread_create" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBC 1
|
|
_ACEOF
|
|
|
|
LIBS="-lc $LIBS"
|
|
|
|
else
|
|
as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
if $use_threads
|
|
then
|
|
if test "X$GCC" = "Xyes"; then
|
|
case "$host" in
|
|
*-freebsd*)
|
|
CC="$CC -pthread"
|
|
CCOPT="$CCOPT -pthread"
|
|
CCNOOPT="$CCNOOPT -pthread"
|
|
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
|
|
;;
|
|
*-openbsd*)
|
|
CC="$CC -pthread"
|
|
CCOPT="$CCOPT -pthread"
|
|
CCNOOPT="$CCNOOPT -pthread"
|
|
;;
|
|
*-solaris*)
|
|
LIBS="$LIBS -lthread"
|
|
;;
|
|
*-ibm-aix*)
|
|
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
|
|
;;
|
|
esac
|
|
else
|
|
case $host in
|
|
*-dec-osf*)
|
|
CC="$CC -pthread"
|
|
CCOPT="$CCOPT -pthread"
|
|
CCNOOPT="$CCNOOPT -pthread"
|
|
;;
|
|
*-solaris*)
|
|
CC="$CC -mt"
|
|
CCOPT="$CCOPT -mt"
|
|
CCNOOPT="$CCNOOPT -mt"
|
|
;;
|
|
*-ibm-aix*)
|
|
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
|
|
;;
|
|
*-sco-sysv*uw*|*-*-sysv*UnixWare*)
|
|
CC="$CC -Kthread"
|
|
CCOPT="$CCOPT -Kthread"
|
|
CCNOOPT="$CCNOOPT -Kthread"
|
|
;;
|
|
*-*-sysv*OpenUNIX*)
|
|
CC="$CC -Kpthread"
|
|
CCOPT="$CCOPT -Kpthread"
|
|
CCNOOPT="$CCNOOPT -Kpthread"
|
|
;;
|
|
esac
|
|
fi
|
|
ALWAYS_DEFINES="-D_REENTRANT"
|
|
ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
|
|
THREADOPTOBJS='${THREADOPTOBJS}'
|
|
THREADOPTSRCS='${THREADOPTSRCS}'
|
|
thread_dir=pthreads
|
|
#
|
|
# We'd like to use sigwait() too
|
|
#
|
|
ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
|
|
if test "x$ac_cv_func_sigwait" = xyes; then :
|
|
$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
|
|
$as_echo_n "checking for sigwait in -lc... " >&6; }
|
|
if ${ac_cv_lib_c_sigwait+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lc $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char sigwait ();
|
|
int
|
|
main ()
|
|
{
|
|
return sigwait ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_c_sigwait=yes
|
|
else
|
|
ac_cv_lib_c_sigwait=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
|
|
$as_echo "$ac_cv_lib_c_sigwait" >&6; }
|
|
if test "x$ac_cv_lib_c_sigwait" = xyes; then :
|
|
$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
|
|
$as_echo_n "checking for sigwait in -lpthread... " >&6; }
|
|
if ${ac_cv_lib_pthread_sigwait+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lpthread $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char sigwait ();
|
|
int
|
|
main ()
|
|
{
|
|
return sigwait ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_pthread_sigwait=yes
|
|
else
|
|
ac_cv_lib_pthread_sigwait=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
|
|
$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
|
|
if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
|
|
$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
|
|
$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
|
|
if ${ac_cv_lib_pthread__Psigwait+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lpthread $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char _Psigwait ();
|
|
int
|
|
main ()
|
|
{
|
|
return _Psigwait ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_pthread__Psigwait=yes
|
|
else
|
|
ac_cv_lib_pthread__Psigwait=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
|
|
$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
|
|
if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
|
|
$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
|
|
if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
|
|
$as_echo "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
|
|
ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
|
|
if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes; then :
|
|
$as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Check whether --with-locktype was given.
|
|
if test "${with_locktype+set}" = set; then :
|
|
withval=$with_locktype; locktype="$withval"
|
|
else
|
|
locktype="adaptive"
|
|
fi
|
|
|
|
|
|
case "$locktype" in
|
|
adaptive)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
|
|
$as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#ifndef _GNU_SOURCE
|
|
#define _GNU_SOURCE
|
|
#endif
|
|
#include <pthread.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
return (PTHREAD_MUTEX_ADAPTIVE_NP);
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
|
|
$as_echo "using adaptive lock type" >&6; }
|
|
|
|
$as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
|
|
$as_echo "using standard lock type" >&6; }
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
;;
|
|
standard)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
|
|
$as_echo "using standard lock type" >&6; }
|
|
;;
|
|
*)
|
|
as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
|
|
;;
|
|
esac
|
|
|
|
for ac_header in sched.h
|
|
do :
|
|
ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_sched_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_SCHED_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
case "$host" in
|
|
*solaris-*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
|
|
$as_echo_n "checking for sched_yield in -lrt... " >&6; }
|
|
if ${ac_cv_lib_rt_sched_yield+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lrt $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char sched_yield ();
|
|
int
|
|
main ()
|
|
{
|
|
return sched_yield ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_rt_sched_yield=yes
|
|
else
|
|
ac_cv_lib_rt_sched_yield=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
|
|
$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
|
|
if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBRT 1
|
|
_ACEOF
|
|
|
|
LIBS="-lrt $LIBS"
|
|
|
|
fi
|
|
|
|
;;
|
|
esac
|
|
|
|
for ac_func in sched_yield pthread_yield pthread_yield_np
|
|
do :
|
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
#
|
|
# Additional OS-specific issues related to pthreads and sigwait.
|
|
#
|
|
case "$host" in
|
|
#
|
|
# One more place to look for sigwait.
|
|
#
|
|
*-freebsd*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
|
|
$as_echo_n "checking for sigwait in -lc_r... " >&6; }
|
|
if ${ac_cv_lib_c_r_sigwait+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lc_r $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char sigwait ();
|
|
int
|
|
main ()
|
|
{
|
|
return sigwait ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_c_r_sigwait=yes
|
|
else
|
|
ac_cv_lib_c_r_sigwait=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
|
|
$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
|
|
if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
|
|
$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
case $host in
|
|
*-freebsd5.[012]|*-freebsd5.[012].*);;
|
|
*-freebsd5.[3456789]|*-freebsd5.[3456789].*)
|
|
$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
|
|
|
|
;;
|
|
*-freebsd6.*)
|
|
$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
|
|
|
|
;;
|
|
esac
|
|
;;
|
|
#
|
|
# BSDI 3.0 through 4.0.1 needs pthread_init() to be
|
|
# called before certain pthreads calls. This is deprecated
|
|
# in BSD/OS 4.1.
|
|
#
|
|
*-bsdi3.*|*-bsdi4.0*)
|
|
$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
|
|
|
|
;;
|
|
#
|
|
# LinuxThreads requires some changes to the way we
|
|
# deal with signals.
|
|
#
|
|
*-linux*)
|
|
$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
|
|
|
|
;;
|
|
#
|
|
# Ensure the right sigwait() semantics on Solaris and make
|
|
# sure we call pthread_setconcurrency.
|
|
#
|
|
*-solaris*)
|
|
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
|
|
|
ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
|
|
if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
|
|
$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
;;
|
|
#
|
|
# UnixWare does things its own way.
|
|
#
|
|
*-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
|
|
$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
|
|
|
|
;;
|
|
esac
|
|
|
|
# Look for functions relating to thread naming
|
|
for ac_func in pthread_setname_np pthread_set_name_np
|
|
do :
|
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
for ac_header in pthread_np.h
|
|
do :
|
|
ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
|
|
"
|
|
if test "x$ac_cv_header_pthread_np_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_PTHREAD_NP_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
#
|
|
# Look for sysconf to allow detection of the number of processors.
|
|
#
|
|
ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
|
|
if test "x$ac_cv_func_sysconf" = xyes; then :
|
|
$as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
|
|
else
|
|
ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
|
|
thread_dir=nothreads
|
|
THREADOPTOBJS=""
|
|
THREADOPTSRCS=""
|
|
ALWAYS_DEFINES=""
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
ISC_THREAD_DIR=$thread_dir
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
|
|
$as_echo_n "checking for libtool... " >&6; }
|
|
|
|
# Check whether --with-libtool was given.
|
|
if test "${with_libtool+set}" = set; then :
|
|
withval=$with_libtool; use_libtool="$withval"
|
|
else
|
|
use_libtool="no"
|
|
fi
|
|
|
|
|
|
case $use_libtool in
|
|
yes)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
O=lo
|
|
A=la
|
|
LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
|
|
LIBTOOL_MODE_COMPILE='--mode=compile --tag=CC'
|
|
LIBTOOL_MODE_INSTALL='--mode=install --tag=CC'
|
|
LIBTOOL_MODE_LINK='--mode=link --tag=CC'
|
|
LIBTOOL_MODE_UNINSTALL='--mode=uninstall --tag=CC'
|
|
INSTALL_LIBRARY='${INSTALL_PROGRAM}'
|
|
case "$host" in
|
|
*) LIBTOOL_ALLOW_UNDEFINED= ;;
|
|
esac
|
|
case "$host" in
|
|
*-ibm-aix*) LIBTOOL_IN_MAIN="-Wl,-bI:T_testlist.imp" ;;
|
|
*) LIBTOOL_IN_MAIN= ;;
|
|
esac;
|
|
;;
|
|
*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
O=o
|
|
A=a
|
|
LIBTOOL=
|
|
|
|
LIBTOOL_MKDEP_SED=
|
|
LIBTOOL_MODE_COMPILE=
|
|
LIBTOOL_MODE_INSTALL=
|
|
LIBTOOL_MODE_LINK=
|
|
LIBTOOL_MODE_UNINSTALL=
|
|
LIBTOOL_ALLOW_UNDEFINED=
|
|
LIBTOOL_IN_MAIN=
|
|
INSTALL_LIBRARY='${INSTALL_DATA}'
|
|
;;
|
|
esac
|
|
|
|
|
|
#
|
|
# was --enable-native-pkcs11 specified?
|
|
# (note it implies both --without-openssl and --with-pkcs11)
|
|
#
|
|
# Check whether --enable-native-pkcs11 was given.
|
|
if test "${enable_native_pkcs11+set}" = set; then :
|
|
enableval=$enable_native_pkcs11; want_native_pkcs11="$enableval"
|
|
else
|
|
want_native_pkcs11="no"
|
|
fi
|
|
|
|
|
|
#
|
|
# was --with-openssl specified?
|
|
#
|
|
|
|
# Check whether --with-openssl was given.
|
|
if test "${with_openssl+set}" = set; then :
|
|
withval=$with_openssl; use_openssl="$withval"
|
|
else
|
|
use_openssl="auto"
|
|
fi
|
|
|
|
|
|
#
|
|
# was --with-pkcs11 specified?
|
|
#
|
|
|
|
# Check whether --with-pkcs11 was given.
|
|
if test "${with_pkcs11+set}" = set; then :
|
|
withval=$with_pkcs11; use_pkcs11="$withval"
|
|
else
|
|
use_pkcs11="auto"
|
|
fi
|
|
|
|
|
|
#
|
|
# were --with-ecdsa, --with-gost, --with-eddsa, --with-aes specified
|
|
#
|
|
|
|
# Check whether --with-ecdsa was given.
|
|
if test "${with_ecdsa+set}" = set; then :
|
|
withval=$with_ecdsa; with_ecdsa="$withval"
|
|
else
|
|
with_ecdsa="auto"
|
|
fi
|
|
|
|
|
|
# Check whether --with-gost was given.
|
|
if test "${with_gost+set}" = set; then :
|
|
withval=$with_gost; with_gost="$withval"
|
|
else
|
|
with_gost="auto"
|
|
fi
|
|
|
|
|
|
# Check whether --with-eddsa was given.
|
|
if test "${with_eddsa+set}" = set; then :
|
|
withval=$with_eddsa; with_eddsa="$withval"
|
|
else
|
|
with_eddsa="auto"
|
|
fi
|
|
|
|
|
|
# Check whether --with-aes was given.
|
|
if test "${with_aes+set}" = set; then :
|
|
withval=$with_aes; with_aes="$withval"
|
|
else
|
|
with_aes="yes"
|
|
fi
|
|
|
|
|
|
#
|
|
# was --enable-openssl-hash specified?
|
|
#
|
|
# Check whether --enable-openssl-hash was given.
|
|
if test "${enable_openssl_hash+set}" = set; then :
|
|
enableval=$enable_openssl_hash; want_openssl_hash="$enableval"
|
|
else
|
|
want_openssl_hash="checkcc"
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library" >&5
|
|
$as_echo_n "checking for OpenSSL library... " >&6; }
|
|
OPENSSL_WARNING=
|
|
openssldirs="/usr /usr/local /usr/local/ssl /opt/local /usr/pkg /usr/sfw"
|
|
if test "yes" = "$want_native_pkcs11"
|
|
then
|
|
use_openssl="native_pkcs11"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: use of native PKCS11 instead" >&5
|
|
$as_echo "use of native PKCS11 instead" >&6; }
|
|
fi
|
|
|
|
if test "auto" = "$use_openssl"
|
|
then
|
|
for d in $openssldirs
|
|
do
|
|
if test -f $d/include/openssl/opensslv.h
|
|
then
|
|
use_openssl=$d
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
OPENSSL_ECDSA=""
|
|
OPENSSL_GOST=""
|
|
OPENSSL_ED25519=""
|
|
gosttype="raw"
|
|
case "$with_gost" in
|
|
raw)
|
|
with_gost="yes"
|
|
;;
|
|
asn1)
|
|
|
|
$as_echo "#define PREFER_GOSTASN1 1" >>confdefs.h
|
|
|
|
gosttype="asn1"
|
|
with_gost="yes"
|
|
;;
|
|
auto|yes|no)
|
|
;;
|
|
*)
|
|
as_fn_error $? "unknown GOST private key encoding" "$LINENO" 5
|
|
;;
|
|
esac
|
|
|
|
case "$use_openssl" in
|
|
native_pkcs11)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled because of native PKCS11" >&5
|
|
$as_echo "disabled because of native PKCS11" >&6; }
|
|
DST_OPENSSL_INC=""
|
|
CRYPTO="-DPKCS11CRYPTO"
|
|
OPENSSLECDSALINKOBJS=""
|
|
OPENSSLECDSALINKSRCS=""
|
|
OPENSSLEDDSALINKOBJS=""
|
|
OPENSSLEDDSALINKSRCS=""
|
|
OPENSSLGOSTLINKOBJS=""
|
|
OPENSSLGOSTLINKSRCS=""
|
|
OPENSSLLINKOBJS=""
|
|
OPENSSLLINKSRCS=""
|
|
;;
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
DST_OPENSSL_INC=""
|
|
CRYPTO=""
|
|
OPENSSLECDSALINKOBJS=""
|
|
OPENSSLECDSALINKSRCS=""
|
|
OPENSSLEDDSALINKOBJS=""
|
|
OPENSSLEDDSALINKSRCS=""
|
|
OPENSSLGOSTLINKOBJS=""
|
|
OPENSSLGOSTLINKSRCS=""
|
|
OPENSSLLINKOBJS=""
|
|
OPENSSLLINKSRCS=""
|
|
;;
|
|
auto)
|
|
DST_OPENSSL_INC=""
|
|
CRYPTO=""
|
|
OPENSSLECDSALINKOBJS=""
|
|
OPENSSLECDSALINKSRCS=""
|
|
OPENSSLEDDSALINKOBJS=""
|
|
OPENSSLEDDSALINKSRCS=""
|
|
OPENSSLGOSTLINKOBJS=""
|
|
OPENSSLGOSTLINKSRCS=""
|
|
OPENSSLLINKOBJS=""
|
|
OPENSSLLINKSRCS=""
|
|
as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
|
|
If you don't want OpenSSL, use --without-openssl" "$LINENO" 5
|
|
;;
|
|
*)
|
|
if test "yes" = "$want_native_pkcs11"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
|
|
$as_echo "" >&6; }
|
|
as_fn_error $? "OpenSSL and native PKCS11 cannot be used together." "$LINENO" 5
|
|
fi
|
|
if test "yes" = "$use_openssl"
|
|
then
|
|
# User did not specify a path - guess it
|
|
for d in $openssldirs
|
|
do
|
|
if test -f $d/include/openssl/opensslv.h
|
|
then
|
|
use_openssl=$d
|
|
break
|
|
fi
|
|
done
|
|
if test "yes" = "$use_openssl"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
|
|
$as_echo "not found" >&6; }
|
|
as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" "$LINENO" 5
|
|
fi
|
|
elif ! test -f "$use_openssl"/include/openssl/opensslv.h
|
|
then
|
|
as_fn_error $? "\"$use_openssl/include/openssl/opensslv.h\" not found" "$LINENO" 5
|
|
fi
|
|
CRYPTO='-DOPENSSL'
|
|
if test "/usr" = "$use_openssl"
|
|
then
|
|
DST_OPENSSL_INC=""
|
|
DST_OPENSSL_LIBS="-lcrypto"
|
|
else
|
|
DST_OPENSSL_INC="-I$use_openssl/include"
|
|
case $host in
|
|
*-solaris*)
|
|
DST_OPENSSL_LIBS="-L$use_openssl/lib -R$use_openssl/lib -lcrypto"
|
|
;;
|
|
*-hp-hpux*)
|
|
DST_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto"
|
|
;;
|
|
*-apple-darwin*)
|
|
#
|
|
# Apple's ld seaches for serially for dynamic
|
|
# then static libraries. This means you can't
|
|
# use -L to override dynamic system libraries
|
|
# with static ones when linking. Instead
|
|
# we specify a absolute path.
|
|
#
|
|
if test -f "$use_openssl/lib/libcrypto.dylib"
|
|
then
|
|
DST_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
|
|
else
|
|
DST_OPENSSL_LIBS="$use_openssl/lib/libcrypto.a"
|
|
fi
|
|
;;
|
|
*)
|
|
DST_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
|
|
;;
|
|
esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenSSL from $use_openssl/lib and $use_openssl/include" >&5
|
|
$as_echo "using OpenSSL from $use_openssl/lib and $use_openssl/include" >&6; }
|
|
|
|
saved_cc="$CC"
|
|
saved_cflags="$CFLAGS"
|
|
saved_libs="$LIBS"
|
|
CFLAGS="$DST_OPENSSL_INC $CFLAGS"
|
|
LIBS="$DST_OPENSSL_LIBS $LIBS"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL works" >&5
|
|
$as_echo_n "checking whether linking with OpenSSL works... " >&6; }
|
|
if test "$cross_compiling" = yes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming it does work on target platform" >&5
|
|
$as_echo "assuming it does work on target platform" >&6; }
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <openssl/err.h>
|
|
int main() {
|
|
ERR_clear_error();
|
|
return (0);
|
|
}
|
|
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
as_fn_error $? "Could not run test program using OpenSSL from
|
|
$use_openssl/lib and $use_openssl/include.
|
|
Please check the argument to --with-openssl and your
|
|
shared library configuration (e.g., LD_LIBRARY_PATH)." "$LINENO" 5
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL requires -ldl" >&5
|
|
$as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <openssl/opensslv.h>
|
|
#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L)
|
|
#include <openssl/crypto.h>
|
|
#else
|
|
#include <openssl/err.h>
|
|
#include <openssl/dso.h>
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L)
|
|
OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL);
|
|
#else
|
|
DSO_METHOD_dlfcn();
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
else
|
|
LIBS="$LIBS -ldl"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L)
|
|
#include <openssl/crypto.h>
|
|
#else
|
|
#include <openssl/err.h>
|
|
#include <openssl/dso.h>
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L)
|
|
OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL);
|
|
#else
|
|
DSO_METHOD_dlfcn();
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
DST_OPENSSL_LIBS="$DST_OPENSSL_LIBS -ldl"
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
|
|
$as_echo "unknown" >&6; }
|
|
as_fn_error $? "OpenSSL has unsupported dynamic loading" "$LINENO" 5
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL FIPS mode support" >&5
|
|
$as_echo_n "checking for OpenSSL FIPS mode support... " >&6; }
|
|
have_fips_mode=""
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <openssl/crypto.h>
|
|
int
|
|
main ()
|
|
{
|
|
FIPS_mode();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
have_fips_mode=yes
|
|
else
|
|
have_fips_mode=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
if test "x$have_fips_mode" = "xyes"
|
|
then
|
|
|
|
$as_echo "#define HAVE_FIPS_MODE 1" >>confdefs.h
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL DSA support" >&5
|
|
$as_echo_n "checking for OpenSSL DSA support... " >&6; }
|
|
if test -f $use_openssl/include/openssl/dsa.h
|
|
then
|
|
$as_echo "#define HAVE_OPENSSL_DSA 1" >>confdefs.h
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
for ac_func in EVP_sha256 EVP_sha384 EVP_sha512
|
|
do :
|
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key DSA_get0_pqg
|
|
do :
|
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ECDSA support" >&5
|
|
$as_echo_n "checking for OpenSSL ECDSA support... " >&6; }
|
|
have_ecdsa=""
|
|
if test "$cross_compiling" = yes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-ecdsa" >&5
|
|
$as_echo "using --with-ecdsa" >&6; }
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <openssl/ecdsa.h>
|
|
#include <openssl/objects.h>
|
|
int main() {
|
|
EC_KEY *ec256, *ec384;
|
|
|
|
#if !defined(HAVE_EVP_SHA256) || !defined(HAVE_EVP_SHA384)
|
|
return (1);
|
|
#endif
|
|
ec256 = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
|
|
ec384 = EC_KEY_new_by_curve_name(NID_secp384r1);
|
|
if (ec256 == NULL || ec384 == NULL)
|
|
return (2);
|
|
return (0);
|
|
}
|
|
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
have_ecdsa="yes"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
have_ecdsa="no"
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
case "$with_ecdsa" in
|
|
yes)
|
|
case "$have_ecdsa" in
|
|
no) as_fn_error $? "ecdsa not supported" "$LINENO" 5 ;;
|
|
*) have_ecdsa=yes ;;
|
|
esac
|
|
;;
|
|
no)
|
|
have_ecdsa=no ;;
|
|
*)
|
|
case "$have_ecdsa" in
|
|
yes|no) ;;
|
|
*) as_fn_error $? "need --with-ecdsa=[yes or no]" "$LINENO" 5 ;;
|
|
esac
|
|
;;
|
|
esac
|
|
case $have_ecdsa in
|
|
yes)
|
|
OPENSSL_ECDSA="yes"
|
|
OPENSSLECDSALINKOBJS='${OPENSSLECDSALINKOBJS}'
|
|
OPENSSLECDSALINKSRCS='${OPENSSLECDSALINKSRCS}'
|
|
|
|
$as_echo "#define HAVE_OPENSSL_ECDSA 1" >>confdefs.h
|
|
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL GOST support" >&5
|
|
$as_echo_n "checking for OpenSSL GOST support... " >&6; }
|
|
have_gost=""
|
|
case "$use_pkcs11" in
|
|
auto|no)
|
|
;;
|
|
*)
|
|
if $use_threads; then
|
|
CC="$CC -pthread"
|
|
fi
|
|
;;
|
|
esac
|
|
if test "$cross_compiling" = yes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-gost" >&5
|
|
$as_echo "using --with-gost" >&6; }
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <openssl/conf.h>
|
|
#include <openssl/engine.h>
|
|
int main() {
|
|
#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10000000L)
|
|
ENGINE *e;
|
|
EC_KEY *ek;
|
|
|
|
ek = NULL;
|
|
OPENSSL_config(NULL);
|
|
|
|
e = ENGINE_by_id("gost");
|
|
if (e == NULL)
|
|
return (1);
|
|
if (ENGINE_init(e) <= 0)
|
|
return (1);
|
|
return (0);
|
|
#else
|
|
return (1);
|
|
#endif
|
|
}
|
|
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
have_gost="yes"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
have_gost="no"
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
case "$with_gost" in
|
|
yes)
|
|
case "$have_gost" in
|
|
no) as_fn_error $? "gost not supported" "$LINENO" 5 ;;
|
|
*) have_gost=yes ;;
|
|
esac
|
|
;;
|
|
no)
|
|
have_gost=no ;;
|
|
*)
|
|
case "$have_gost" in
|
|
yes|no) ;;
|
|
*) as_fn_error $? "need --with-gost=[yes, no, raw or asn1]" "$LINENO" 5 ;;
|
|
esac
|
|
;;
|
|
esac
|
|
case $have_gost in
|
|
yes)
|
|
OPENSSL_GOST="yes"
|
|
OPENSSLGOSTLINKOBJS='${OPENSSLGOSTLINKOBJS}'
|
|
OPENSSLGOSTLINKSRCS='${OPENSSLGOSTLINKSRCS}'
|
|
|
|
$as_echo "#define HAVE_OPENSSL_GOST 1" >>confdefs.h
|
|
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL Ed25519 support" >&5
|
|
$as_echo_n "checking for OpenSSL Ed25519 support... " >&6; }
|
|
have_ed25519=""
|
|
have_ed448=""
|
|
if test "$cross_compiling" = yes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-eddsa" >&5
|
|
$as_echo "using --with-eddsa" >&6; }
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <openssl/evp.h>
|
|
#include <openssl/objects.h>
|
|
int main() {
|
|
EVP_PKEY_CTX *ctx;
|
|
|
|
ctx = EVP_PKEY_CTX_new_id(NID_ED25519, NULL);
|
|
if (ctx == NULL)
|
|
return (2);
|
|
return (0);
|
|
}
|
|
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
have_ed25519="yes"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
have_ed25519="no"
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
case "$with_eddsa" in
|
|
yes|all)
|
|
case "$have_ed25519" in
|
|
no) as_fn_error $? "eddsa not supported" "$LINENO" 5 ;;
|
|
*) have_ed25519=yes ;;
|
|
esac
|
|
;;
|
|
no)
|
|
have_ed25519=no ;;
|
|
*)
|
|
case "$have_ed25519" in
|
|
yes|no) ;;
|
|
*) as_fn_error $? "need --with-eddsa=[yes, all or no]" "$LINENO" 5 ;;
|
|
esac
|
|
;;
|
|
esac
|
|
case $have_ed25519 in
|
|
yes)
|
|
OPENSSL_ED25519="yes"
|
|
OPENSSLEDDSALINKOBJS='${OPENSSLEDDSALINKOBJS}'
|
|
OPENSSLEDDSALINKSRCS='${OPENSSLEDDSALINKSRCS}'
|
|
|
|
$as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL Ed448 support" >&5
|
|
$as_echo_n "checking for OpenSSL Ed448 support... " >&6; }
|
|
if test "$cross_compiling" = yes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-eddsa" >&5
|
|
$as_echo "using --with-eddsa" >&6; }
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <openssl/evp.h>
|
|
#include <openssl/objects.h>
|
|
int main() {
|
|
EVP_PKEY_CTX *ctx;
|
|
|
|
ctx = EVP_PKEY_CTX_new_id(NID_ED448, NULL);
|
|
if (ctx == NULL)
|
|
return (2);
|
|
return (0);
|
|
}
|
|
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
have_ed448="yes"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
have_ed448="no"
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
case $with_eddsa in
|
|
all)
|
|
have_ed448=yes ;;
|
|
*)
|
|
;;
|
|
esac
|
|
case $have_ed448 in
|
|
yes)
|
|
|
|
$as_echo "#define HAVE_OPENSSL_ED448 1" >>confdefs.h
|
|
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
have_aes="no"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL AES support" >&5
|
|
$as_echo_n "checking for OpenSSL AES support... " >&6; }
|
|
if test "$cross_compiling" = yes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-aes" >&5
|
|
$as_echo "using --with-aes" >&6; }
|
|
# Expect cross-compiling with a modern OpenSSL
|
|
have_aes="evp"
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <openssl/evp.h>
|
|
int main() {
|
|
const EVP_CIPHER *aes128, *aes192, *aes256;
|
|
|
|
aes128 = EVP_aes_128_ecb();
|
|
aes192 = EVP_aes_192_ecb();
|
|
aes256 = EVP_aes_256_ecb();
|
|
if (aes128 == NULL || aes192 == NULL || aes256 == NULL)
|
|
return (1);
|
|
return (0);
|
|
}
|
|
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
have_aes="evp"
|
|
else
|
|
ac_fn_c_check_func "$LINENO" "AES_encrypt" "ac_cv_func_AES_encrypt"
|
|
if test "x$ac_cv_func_AES_encrypt" = xyes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
have_aes="yes"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
ISC_OPENSSL_INC=""
|
|
ISC_OPENSSL_LIBS=""
|
|
if test "yes" = "$with_aes"
|
|
then
|
|
case "$have_aes" in
|
|
evp)
|
|
|
|
$as_echo "#define HAVE_OPENSSL_EVP_AES 1" >>confdefs.h
|
|
|
|
ISC_OPENSSL_INC="$DST_OPENSSL_INC"
|
|
ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS"
|
|
;;
|
|
yes)
|
|
|
|
$as_echo "#define HAVE_OPENSSL_AES 1" >>confdefs.h
|
|
|
|
ISC_OPENSSL_INC="$DST_OPENSSL_INC"
|
|
ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
CC="$saved_cc"
|
|
CFLAGS="$saved_cflags"
|
|
LIBS="$saved_libs"
|
|
OPENSSLLINKOBJS='${OPENSSLLINKOBJS}'
|
|
OPENSSLLINKSRCS='${OPENSSLLINKSRCS}'
|
|
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# This would include the system openssl path (and linker options to use
|
|
# it as needed) if it is found.
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DNS_CRYPTO_LIBS="$DNS_CRYPTO_LIBS $DST_OPENSSL_LIBS"
|
|
|
|
ISC_PLATFORM_WANTAES="#undef ISC_PLATFORM_WANTAES"
|
|
if test "yes" = "$with_aes"
|
|
then
|
|
if test "X$CRYPTO" = "X"
|
|
then
|
|
with_aes="no"
|
|
fi
|
|
fi
|
|
if test "yes" = "$with_aes"
|
|
then
|
|
ISC_PLATFORM_WANTAES="#define ISC_PLATFORM_WANTAES 1"
|
|
fi
|
|
|
|
|
|
#
|
|
# Choose Client Cookie algorithm
|
|
#
|
|
|
|
# Check whether --with-cc-alg was given.
|
|
if test "${with_cc_alg+set}" = set; then :
|
|
withval=$with_cc_alg; :
|
|
else
|
|
with_cc_alg="siphash24"
|
|
fi
|
|
|
|
|
|
case $with_cc_alg in #(
|
|
siphash24) :
|
|
: ;; #(
|
|
*) :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The Client Cookie is always SipHash 2-4 based" >&5
|
|
$as_echo "$as_me: WARNING: The Client Cookie is always SipHash 2-4 based" >&2;} ;;
|
|
esac
|
|
|
|
if test "checkcc" = "$want_openssl_hash"
|
|
then
|
|
want_openssl_hash="no"
|
|
fi
|
|
|
|
#
|
|
# Use OpenSSL for hash functions
|
|
#
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for using OpenSSL for hash functions" >&5
|
|
$as_echo_n "checking for using OpenSSL for hash functions... " >&6; }
|
|
ISC_PLATFORM_OPENSSLHASH="#undef ISC_PLATFORM_OPENSSLHASH"
|
|
case $want_openssl_hash in
|
|
yes)
|
|
if test "$CRYPTO" != "-DOPENSSL"
|
|
then
|
|
as_fn_error $? "No OpenSSL for hash functions" "$LINENO" 5
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_OPENSSLHASH="#define ISC_PLATFORM_OPENSSLHASH 1"
|
|
ISC_OPENSSL_INC="$DST_OPENSSL_INC"
|
|
ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS"
|
|
;;
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
#
|
|
# PKCS11 (aka crypto hardware) support (--with moved just after openssl)
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 support" >&5
|
|
$as_echo_n "checking for PKCS11 support... " >&6; }
|
|
|
|
if test "auto" = "$use_pkcs11"
|
|
then
|
|
if test "yes" = "$want_native_pkcs11"
|
|
then
|
|
use_pkcs11="yes"
|
|
else
|
|
use_pkcs11="no"
|
|
fi
|
|
fi
|
|
|
|
case "$use_pkcs11" in
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
USE_PKCS11=""
|
|
PKCS11_TEST=""
|
|
PKCS11_TOOLS=""
|
|
ISC_PK11_C=""
|
|
ISC_PK11_O=""
|
|
ISC_PK11_API_C=""
|
|
ISC_PK11_API_O=""
|
|
ISC_PK11_RESULT_C=""
|
|
ISC_PK11_RESULT_O=""
|
|
ISC_ISCPK11_API_C=""
|
|
ISC_ISCPK11_API_O=""
|
|
;;
|
|
yes|*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
if ! $use_threads; then
|
|
as_fn_error $? "PKCS11 requires thread support" "$LINENO" 5
|
|
fi
|
|
if test "X$CRYPTO" = "X-DOPENSSL"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL with PKCS11 support" >&5
|
|
$as_echo_n "checking for OpenSSL with PKCS11 support... " >&6; }
|
|
saved_cc="$CC"
|
|
saved_cflags="$CFLAGS"
|
|
saved_libs="$LIBS"
|
|
CC="$CC -pthread"
|
|
CFLAGS="$CFLAGS $DST_OPENSSL_INC"
|
|
LIBS="$LIBS $DST_OPENSSL_LIBS"
|
|
if test "$cross_compiling" = yes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile" >&5
|
|
$as_echo "cross compile" >&6; }
|
|
PKCS11_TEST=''
|
|
PKCS11_ENGINE='-DPKCS11_ENGINE=NULL'
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <openssl/conf.h>
|
|
#include <openssl/engine.h>
|
|
int main() {
|
|
ENGINE *e;
|
|
|
|
OPENSSL_config(NULL);
|
|
e = ENGINE_by_id("pkcs11");
|
|
if (e == NULL)
|
|
return (1);
|
|
if (ENGINE_init(e) <= 0)
|
|
return (1);
|
|
return (0);
|
|
}
|
|
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
PKCS11_TEST=pkcs11ssl
|
|
PKCS11_ENGINE='-DPKCS11_ENGINE="\"pkcs11\""'
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
PKCS11_TEST=''
|
|
PKCS11_ENGINE='-DPKCS11_ENGINE=NULL'
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
CC="$saved_cc"
|
|
CFLAGS="$saved_cflags"
|
|
LIBS="$saved_libs"
|
|
else
|
|
PKCS11_TEST=''
|
|
PKCS11_ENGINE='-DPKCS11_ENGINE=NULL'
|
|
|
|
fi
|
|
USE_PKCS11='-DUSE_PKCS11'
|
|
PKCS11_TOOLS=pkcs11
|
|
ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
|
|
if test "x$ac_cv_func_getpassphrase" = xyes; then :
|
|
$as_echo "#define HAVE_GETPASSPHRASE 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
ISC_PK11_C="pk11.c"
|
|
ISC_PK11_O="pk11.$O"
|
|
ISC_PK11_API_C="pk11_api.c"
|
|
ISC_PK11_API_O="pk11_api.$O"
|
|
ISC_PK11_RESULT_C="pk11_result.c"
|
|
ISC_PK11_RESULT_O="pk11_result.$O"
|
|
ISC_ISCPK11_API_C="unix/pk11_api.c"
|
|
ISC_ISCPK11_API_O="unix/pk11_api.$O"
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 tools" >&5
|
|
$as_echo_n "checking for PKCS11 tools... " >&6; }
|
|
case "$use_pkcs11" in
|
|
no)
|
|
PKCS11_PROVIDER="undefined"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
|
|
$as_echo "disabled" >&6; }
|
|
;;
|
|
yes|'')
|
|
PKCS11_PROVIDER="undefined"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
|
|
$as_echo "enabled" >&6; }
|
|
;;
|
|
*)
|
|
PKCS11_PROVIDER="$use_pkcs11"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled, PKCS11 provider is $PKCS11_PROVIDER" >&5
|
|
$as_echo "enabled, PKCS11 provider is $PKCS11_PROVIDER" >&6; }
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
PKCS11_ECDSA=""
|
|
PKCS11_GOST=""
|
|
PKCS11_ED25519=""
|
|
set_pk11_flavor="no"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native PKCS11" >&5
|
|
$as_echo_n "checking for native PKCS11... " >&6; }
|
|
|
|
case "$want_native_pkcs11" in
|
|
yes)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using native PKCS11 crypto" >&5
|
|
$as_echo "using native PKCS11 crypto" >&6; }
|
|
PKCS11LINKOBJS='${PKCS11LINKOBJS}'
|
|
PKCS11LINKSRCS='${PKCS11LINKSRCS}'
|
|
PKCS11_TEST=pkcs11
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 ECDSA" >&5
|
|
$as_echo_n "checking for PKCS11 ECDSA... " >&6; }
|
|
case "$with_ecdsa" in
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
|
|
$as_echo "disabled" >&6; }
|
|
;;
|
|
*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
|
|
$as_echo "enabled" >&6; }
|
|
PKCS11_ECDSA="yes"
|
|
|
|
$as_echo "#define HAVE_PKCS11_ECDSA 1" >>confdefs.h
|
|
|
|
;;
|
|
esac
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 GOST" >&5
|
|
$as_echo_n "checking for PKCS11 GOST... " >&6; }
|
|
case "$with_gost" in
|
|
yes)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
|
|
$as_echo "enabled" >&6; }
|
|
PKCS11_GOST="yes"
|
|
|
|
$as_echo "#define HAVE_PKCS11_GOST 1" >>confdefs.h
|
|
|
|
;;
|
|
*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
|
|
$as_echo "disabled" >&6; }
|
|
;;
|
|
esac
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 Ed25519" >&5
|
|
$as_echo_n "checking for PKCS11 Ed25519... " >&6; }
|
|
case "$with_eddsa" in
|
|
yes|all)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
|
|
$as_echo "enabled" >&6; }
|
|
PKCS11_ED25519="yes"
|
|
|
|
$as_echo "#define HAVE_PKCS11_ED25519 1" >>confdefs.h
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 Ed448" >&5
|
|
$as_echo_n "checking for PKCS11 Ed448... " >&6; }
|
|
case "$with_eddsa" in
|
|
all)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
|
|
$as_echo "enabled" >&6; }
|
|
|
|
$as_echo "#define HAVE_PKCS11_ED448 1" >>confdefs.h
|
|
|
|
;;
|
|
*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
|
|
$as_echo "disabled" >&6; }
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
|
|
$as_echo "disabled" >&6; }
|
|
;;
|
|
esac
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 flavor" >&5
|
|
$as_echo_n "checking for PKCS11 flavor... " >&6; }
|
|
case "$PKCS11_PROVIDER" in
|
|
*nfast*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Thales nCipher" >&5
|
|
$as_echo "Thales nCipher" >&6; }
|
|
# default
|
|
pk11_flavor="PK11_THALES_FLAVOR"
|
|
set_pk11_flavor="yes"
|
|
;;
|
|
*libsofthsm2*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SoftHSMv2" >&5
|
|
$as_echo "SoftHSMv2" >&6; }
|
|
pk11_flavor="PK11_SOFTHSMV2_FLAVOR"
|
|
set_pk11_flavor="yes"
|
|
;;
|
|
*libsofthsm*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SoftHSM" >&5
|
|
$as_echo "SoftHSM" >&6; }
|
|
pk11_flavor="PK11_SOFTHSMV1_FLAVOR"
|
|
set_pk11_flavor="yes"
|
|
;;
|
|
*cryptech*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Cryptech" >&5
|
|
$as_echo "Cryptech" >&6; }
|
|
pk11_flavor="PK11_CRYPTECH_FLAVOR"
|
|
set_pk11_flavor="yes"
|
|
;;
|
|
*Keyper*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: AEP Keyper" >&5
|
|
$as_echo "AEP Keyper" >&6; }
|
|
pk11_flavor="PK11_AEP_FLAVOR"
|
|
set_pk11_flavor="yes"
|
|
;;
|
|
*libcs*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Utimaco HSM" >&5
|
|
$as_echo "Utimaco HSM" >&6; }
|
|
pk11_flavor="PK11_UTIMACO_FLAVOR"
|
|
set_pk11_flavor="yes"
|
|
;;
|
|
undefined)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: undefined provider?" >&5
|
|
$as_echo "undefined provider?" >&6; }
|
|
;;
|
|
*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown provider: tweaks are in lib/isc/include/pk11/site.h" >&5
|
|
$as_echo "unknown provider: tweaks are in lib/isc/include/pk11/site.h" >&6; }
|
|
;;
|
|
esac
|
|
if test "yes" = "$set_pk11_flavor" ; then
|
|
CFLAGS="$CFLAGS -DPK11_FLAVOR=$pk11_flavor"
|
|
fi
|
|
;;
|
|
no|'')
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
|
|
$as_echo "disabled" >&6; }
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# for PKCS11 benchmarks
|
|
|
|
have_clock_gt=no
|
|
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
|
|
if test "x$ac_cv_func_clock_gettime" = xyes; then :
|
|
have_clock_gt=yes
|
|
fi
|
|
|
|
if test "no" = "$have_clock_gt"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
|
|
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
|
|
if ${ac_cv_lib_rt_clock_gettime+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lrt $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char clock_gettime ();
|
|
int
|
|
main ()
|
|
{
|
|
return clock_gettime ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_rt_clock_gettime=yes
|
|
else
|
|
ac_cv_lib_rt_clock_gettime=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
|
|
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
|
|
if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
|
|
have_clock_gt=rt
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "no" != "$have_clock_gt"; then
|
|
|
|
$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
if test "rt" = "$have_clock_gt"; then
|
|
LIBS="-lrt $LIBS"
|
|
fi
|
|
|
|
#
|
|
# was --with-lmdb specified?
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
|
|
$as_echo_n "checking for lmdb library... " >&6; }
|
|
|
|
# Check whether --with-lmdb was given.
|
|
if test "${with_lmdb+set}" = set; then :
|
|
withval=$with_lmdb; use_lmdb="$withval"
|
|
else
|
|
use_lmdb="auto"
|
|
fi
|
|
|
|
|
|
have_lmdb=""
|
|
case "$use_lmdb" in
|
|
no)
|
|
lmdb_libs=""
|
|
;;
|
|
auto|yes)
|
|
for d in /usr /usr/local /opt/local
|
|
do
|
|
if test -f "${d}/include/lmdb.h"
|
|
then
|
|
if test ${d} != /usr
|
|
then
|
|
lmdb_cflags="-I ${d}/include"
|
|
LIBS="$LIBS -L${d}/lib"
|
|
fi
|
|
have_lmdb="yes"
|
|
fi
|
|
done
|
|
;;
|
|
*)
|
|
if test -f "${use_lmdb}/include/lmdb.h"
|
|
then
|
|
lmdb_cflags="-I${use_lmdb}/include"
|
|
LIBS="$LIBS -L${use_lmdb}/lib"
|
|
have_lmdb="yes"
|
|
else
|
|
as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
if test "X${have_lmdb}" != "X"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
|
|
$as_echo_n "checking for library containing mdb_env_create... " >&6; }
|
|
if ${ac_cv_search_mdb_env_create+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char mdb_env_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return mdb_env_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' lmdb; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_search_mdb_env_create=$ac_res
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if ${ac_cv_search_mdb_env_create+:} false; then :
|
|
break
|
|
fi
|
|
done
|
|
if ${ac_cv_search_mdb_env_create+:} false; then :
|
|
|
|
else
|
|
ac_cv_search_mdb_env_create=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
|
|
$as_echo "$ac_cv_search_mdb_env_create" >&6; }
|
|
ac_res=$ac_cv_search_mdb_env_create
|
|
if test "$ac_res" != no; then :
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
else
|
|
as_fn_error $? "found lmdb include but not library." "$LINENO" 5
|
|
have_lmdb=""
|
|
fi
|
|
|
|
elif test "X$use_lmdb" = Xyes
|
|
then
|
|
as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
NZD_TOOLS=""
|
|
NZDSRCS=
|
|
NZDTARGETS=
|
|
if test "X${have_lmdb}" != "X"
|
|
then
|
|
CFLAGS="$CFLAGS $lmdb_cflags"
|
|
|
|
$as_echo "#define HAVE_LMDB 1" >>confdefs.h
|
|
|
|
NZD_TOOLS="nzd"
|
|
NZDSRCS='${NZDSRCS}'
|
|
NZDTARGETS='${NZDTARGETS}'
|
|
fi
|
|
|
|
|
|
|
|
|
|
#
|
|
# was --with-libxml2 specified?
|
|
#
|
|
|
|
# Check whether --with-libxml2 was given.
|
|
if test "${with_libxml2+set}" = set; then :
|
|
withval=$with_libxml2; :
|
|
else
|
|
with_libxml2="auto"
|
|
fi
|
|
|
|
|
|
LIBXML2_CFLAGS=
|
|
LIBXML2_LIBS=
|
|
case $with_libxml2 in #(
|
|
no) :
|
|
: ;; #(
|
|
auto) :
|
|
|
|
pkg_failed=no
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
|
|
$as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
|
|
|
|
if test -n "$LIBXML2_CFLAGS"; then
|
|
pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
|
|
($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
fi
|
|
else
|
|
pkg_failed=untried
|
|
fi
|
|
if test -n "$LIBXML2_LIBS"; then
|
|
pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
|
|
($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
fi
|
|
else
|
|
pkg_failed=untried
|
|
fi
|
|
|
|
|
|
|
|
if test $pkg_failed = yes; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
|
|
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
_pkg_short_errors_supported=yes
|
|
else
|
|
_pkg_short_errors_supported=no
|
|
fi
|
|
if test $_pkg_short_errors_supported = yes; then
|
|
LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
|
|
else
|
|
LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
|
|
fi
|
|
# Put the nasty error message in config.log where it belongs
|
|
echo "$LIBXML2_PKG_ERRORS" >&5
|
|
|
|
:
|
|
elif test $pkg_failed = untried; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
:
|
|
else
|
|
LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
|
|
LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
:
|
|
fi ;; #(
|
|
yes) :
|
|
|
|
pkg_failed=no
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
|
|
$as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
|
|
|
|
if test -n "$LIBXML2_CFLAGS"; then
|
|
pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
|
|
($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
fi
|
|
else
|
|
pkg_failed=untried
|
|
fi
|
|
if test -n "$LIBXML2_LIBS"; then
|
|
pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
|
|
($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
fi
|
|
else
|
|
pkg_failed=untried
|
|
fi
|
|
|
|
|
|
|
|
if test $pkg_failed = yes; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
|
|
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
_pkg_short_errors_supported=yes
|
|
else
|
|
_pkg_short_errors_supported=no
|
|
fi
|
|
if test $_pkg_short_errors_supported = yes; then
|
|
LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
|
|
else
|
|
LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
|
|
fi
|
|
# Put the nasty error message in config.log where it belongs
|
|
echo "$LIBXML2_PKG_ERRORS" >&5
|
|
|
|
as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met:
|
|
|
|
$LIBXML2_PKG_ERRORS
|
|
|
|
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
installed software in a non-standard prefix.
|
|
|
|
Alternatively, you may set the environment variables LIBXML2_CFLAGS
|
|
and LIBXML2_LIBS to avoid the need to call pkg-config.
|
|
See the pkg-config man page for more details." "$LINENO" 5
|
|
elif test $pkg_failed = untried; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
|
|
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
path to pkg-config.
|
|
|
|
Alternatively, you may set the environment variables LIBXML2_CFLAGS
|
|
and LIBXML2_LIBS to avoid the need to call pkg-config.
|
|
See the pkg-config man page for more details.
|
|
|
|
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
else
|
|
LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
|
|
LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
fi ;; #(
|
|
*) :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library in $with_libxml2" >&5
|
|
$as_echo_n "checking for libxml2 library in $with_libxml2... " >&6; }
|
|
if test -x "$with_libxml2/bin/xml2-config"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
LIBXML2_LIBS=`$with_libxml2/bin/xml2-config --libs`
|
|
LIBXML2_CFLAGS=`$with_libxml2/bin/xml2-config --cflags`
|
|
else
|
|
as_fn_error $? "not found" "$LINENO" 5
|
|
fi ;;
|
|
esac
|
|
|
|
if test -n "$LIBXML2_LIBS"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with libxml2 works" >&5
|
|
$as_echo_n "checking whether linking with libxml2 works... " >&6; }
|
|
CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
|
|
LIBS="$LIBS $LIBXML2_LIBS"
|
|
#
|
|
# Sanity check xml2-config output.
|
|
#
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <libxml/xmlwriter.h>
|
|
int
|
|
main ()
|
|
{
|
|
return(xmlTextWriterStartElement(NULL, NULL));
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
as_fn_error $? "no" "$LINENO" 5
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
|
|
|
|
XMLSTATS=1
|
|
fi
|
|
|
|
|
|
#
|
|
# was --with-libjson specified?
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for json library" >&5
|
|
$as_echo_n "checking for json library... " >&6; }
|
|
|
|
# Check whether --with-libjson was given.
|
|
if test "${with_libjson+set}" = set; then :
|
|
withval=$with_libjson; use_libjson="$withval"
|
|
else
|
|
use_libjson="auto"
|
|
fi
|
|
|
|
|
|
have_libjson=""
|
|
have_libjson_c=""
|
|
case "$use_libjson" in
|
|
no)
|
|
libjson_libs=""
|
|
;;
|
|
auto|yes)
|
|
for d in /usr /usr/local /opt/local
|
|
do
|
|
if test -f "${d}/include/json/json.h"
|
|
then
|
|
if test ${d} != /usr
|
|
then
|
|
libjson_cflags="-I ${d}/include"
|
|
LIBS="$LIBS -L${d}/lib"
|
|
fi
|
|
have_libjson="yes"
|
|
elif test -f "${d}/include/json-c/json.h"
|
|
then
|
|
if test ${d} != /usr
|
|
then
|
|
libjson_cflags="-I ${d}/include"
|
|
LIBS="$LIBS -L${d}/lib"
|
|
fi
|
|
have_libjson="yes"
|
|
have_libjson_c="yes"
|
|
fi
|
|
done
|
|
;;
|
|
*)
|
|
if test -f "${use_libjson}/include/json/json.h"
|
|
then
|
|
libjson_cflags="-I${use_libjson}/include"
|
|
LIBS="$LIBS -L${use_libjson}/lib"
|
|
have_libjson="yes"
|
|
elif test -f "${use_libjson}/include/json-c/json.h"
|
|
then
|
|
libjson_cflags="-I${use_libjson}/include"
|
|
LIBS="$LIBS -L${use_libjson}/lib"
|
|
have_libjson="yes"
|
|
have_libjson_c="yes"
|
|
else
|
|
as_fn_error $? "$use_libjson/include/json{,-c}/json.h not found." "$LINENO" 5
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
if test "X${have_libjson}" != "X"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int64" >&5
|
|
$as_echo_n "checking for library containing json_object_new_int64... " >&6; }
|
|
if ${ac_cv_search_json_object_new_int64+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char json_object_new_int64 ();
|
|
int
|
|
main ()
|
|
{
|
|
return json_object_new_int64 ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' json json-c; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_search_json_object_new_int64=$ac_res
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if ${ac_cv_search_json_object_new_int64+:} false; then :
|
|
break
|
|
fi
|
|
done
|
|
if ${ac_cv_search_json_object_new_int64+:} false; then :
|
|
|
|
else
|
|
ac_cv_search_json_object_new_int64=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int64" >&5
|
|
$as_echo "$ac_cv_search_json_object_new_int64" >&6; }
|
|
ac_res=$ac_cv_search_json_object_new_int64
|
|
if test "$ac_res" != no; then :
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
else
|
|
as_fn_error $? "found libjson include but not library." "$LINENO" 5
|
|
have_libjson=""
|
|
fi
|
|
|
|
elif test "X$use_libjson" = Xyes
|
|
then
|
|
as_fn_error $? "include/json{,-c}/json.h not found." "$LINENO" 5
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "X${have_libjson}" != "X"
|
|
then
|
|
CFLAGS="$CFLAGS $libjson_cflags"
|
|
|
|
$as_echo "#define HAVE_JSON 1" >>confdefs.h
|
|
|
|
if test "X${have_libjson_c}" = Xyes
|
|
then
|
|
|
|
$as_echo "#define HAVE_JSON_C 1" >>confdefs.h
|
|
|
|
fi
|
|
JSONSTATS=1
|
|
fi
|
|
|
|
|
|
#
|
|
# was --with-zlib specified?
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
|
|
$as_echo_n "checking for zlib library... " >&6; }
|
|
|
|
# Check whether --with-zlib was given.
|
|
if test "${with_zlib+set}" = set; then :
|
|
withval=$with_zlib; with_zlib="$withval"
|
|
else
|
|
with_zlib="auto"
|
|
fi
|
|
|
|
|
|
have_zlib=""
|
|
case "$with_zlib" in
|
|
no)
|
|
zlib_libs=""
|
|
;;
|
|
auto|yes)
|
|
for d in /usr /usr/local /opt/local
|
|
do
|
|
if test -f "${d}/include/zlib.h"
|
|
then
|
|
if test ${d} != /usr
|
|
then
|
|
zlib_cflags="-I ${d}/include"
|
|
LIBS="$LIBS -L${d}/lib"
|
|
fi
|
|
have_zlib="yes"
|
|
fi
|
|
done
|
|
;;
|
|
*)
|
|
if test -f "${with_zlib}/include/zlib.h"
|
|
then
|
|
zlib_cflags="-I${with_zlib}/include"
|
|
LIBS="$LIBS -L${with_zlib}/lib"
|
|
have_zlib="yes"
|
|
else
|
|
as_fn_error $? "$with_zlib/include/zlib.h not found." "$LINENO" 5
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
if test "X${have_zlib}" != "X"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
|
|
$as_echo_n "checking for library containing deflate... " >&6; }
|
|
if ${ac_cv_search_deflate+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char deflate ();
|
|
int
|
|
main ()
|
|
{
|
|
return deflate ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' z; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_search_deflate=$ac_res
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if ${ac_cv_search_deflate+:} false; then :
|
|
break
|
|
fi
|
|
done
|
|
if ${ac_cv_search_deflate+:} false; then :
|
|
|
|
else
|
|
ac_cv_search_deflate=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
|
|
$as_echo "$ac_cv_search_deflate" >&6; }
|
|
ac_res=$ac_cv_search_deflate
|
|
if test "$ac_res" != no; then :
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
else
|
|
as_fn_error $? "found zlib include but not library." "$LINENO" 5
|
|
have_zlib=""
|
|
fi
|
|
|
|
elif test "X$with_zlib" = Xyes
|
|
then
|
|
as_fn_error $? "include/zlib.h not found." "$LINENO" 5
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
ZLIB=
|
|
if test "X${have_zlib}" != "X"
|
|
then
|
|
CFLAGS="$CFLAGS $zlib_cflags"
|
|
|
|
$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
|
|
|
|
ZLIB=1
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
# In solaris 10, SMF can manage named service
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
|
|
$as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
|
|
if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lscf $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char smf_enable_instance ();
|
|
int
|
|
main ()
|
|
{
|
|
return smf_enable_instance ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_scf_smf_enable_instance=yes
|
|
else
|
|
ac_cv_lib_scf_smf_enable_instance=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
|
|
$as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
|
|
if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBSCF 1
|
|
_ACEOF
|
|
|
|
LIBS="-lscf $LIBS"
|
|
|
|
fi
|
|
|
|
|
|
#
|
|
# flockfile is usually provided by pthreads, but we may want to use it
|
|
# even if compiled with --disable-threads. getc_unlocked might also not
|
|
# be defined.
|
|
#
|
|
ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
|
|
if test "x$ac_cv_func_flockfile" = xyes; then :
|
|
$as_echo "#define HAVE_FLOCKFILE 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
|
|
if test "x$ac_cv_func_getc_unlocked" = xyes; then :
|
|
$as_echo "#define HAVE_GETCUNLOCKED 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
|
|
#
|
|
# Indicate what the final decision was regarding threads.
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with threads" >&5
|
|
$as_echo_n "checking whether to build with threads... " >&6; }
|
|
if $use_threads; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
#
|
|
# End of pthreads stuff.
|
|
#
|
|
|
|
#
|
|
# Large File
|
|
#
|
|
# Check whether --enable-largefile was given.
|
|
if test "${enable_largefile+set}" = set; then :
|
|
enableval=$enable_largefile; want_largefile="yes"
|
|
else
|
|
want_largefile="no"
|
|
fi
|
|
|
|
case $want_largefile in
|
|
yes)
|
|
ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Additional compiler settings.
|
|
#
|
|
MKDEPCC="$CC"
|
|
MKDEPCFLAGS="-M"
|
|
IRIX_DNSSEC_WARNINGS_HACK=""
|
|
|
|
if test "X$GCC" = "Xyes"; then
|
|
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
|
|
$as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
|
|
SAVE_CFLAGS="$CFLAGS"
|
|
CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
FNOSTRICTALIASING=yes
|
|
else
|
|
FNOSTRICTALIASING=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
CFLAGS="$SAVE_CFLAGS"
|
|
if test "yes" = "$FNOSTRICTALIASING"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
#
|
|
# turn off delete null pointer checks
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5
|
|
$as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; }
|
|
SAVE_CFLAGS="$CFLAGS"
|
|
CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
FNODELETENULLPOINTERCHECKS=yes
|
|
else
|
|
FNODELETENULLPOINTERCHECKS=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
CFLAGS="$SAVE_CFLAGS"
|
|
if test "yes" = "$FNODELETENULLPOINTERCHECKS"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
case "$host" in
|
|
*-hp-hpux*)
|
|
CFLAGS="$CFLAGS -Wl,+vnocompatwarnings"
|
|
BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings"
|
|
;;
|
|
esac
|
|
if test "X$enable_warn_shadow" = Xyes; then
|
|
STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
|
|
fi
|
|
if test "X$enable_warn_error" = Xyes; then
|
|
STD_CWARNINGS="$STD_CWARNINGS -Werror"
|
|
fi
|
|
else
|
|
case $host in
|
|
*-dec-osf*)
|
|
CC="$CC -std"
|
|
CCOPT="$CCOPT -std"
|
|
CCNOOPT="$CCNOOPT -std"
|
|
MKDEPCC="$CC"
|
|
;;
|
|
*-hp-hpux*)
|
|
CC="$CC -Ae -z"
|
|
# The version of the C compiler that constantly warns about
|
|
# 'const' as well as alignment issues is unfortunately not
|
|
# able to be discerned via the version of the operating
|
|
# system, nor does cc have a version flag.
|
|
case "`$CC +W 123 2>&1`" in
|
|
*Unknown?option*)
|
|
STD_CWARNINGS="+w1"
|
|
;;
|
|
*)
|
|
# Turn off the pointlessly noisy warnings.
|
|
STD_CWARNINGS="+w1 +W 474,530,2193,2236"
|
|
;;
|
|
esac
|
|
CCOPT="$CCOPT -Ae -z"
|
|
CCNOOPT="$CCNOOPT -Ae -z"
|
|
CFLAGS="$CFLAGS -Wl,+vnocompatwarnings"
|
|
BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings"
|
|
MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
|
|
;;
|
|
*-sgi-irix*)
|
|
STD_CWARNINGS="-fullwarn -woff 1209"
|
|
#
|
|
# Silence more than 250 instances of
|
|
# "prototyped function redeclared without prototype"
|
|
# and 11 instances of
|
|
# "variable ... was set but never used"
|
|
# from lib/dns/sec/openssl.
|
|
#
|
|
IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
|
|
;;
|
|
*-solaris*)
|
|
MKDEPCFLAGS="-xM"
|
|
;;
|
|
*-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
|
|
# UnixWare
|
|
CC="$CC -w"
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# NLS
|
|
#
|
|
ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
|
|
if test "x$ac_cv_func_catgets" = xyes; then :
|
|
$as_echo "#define HAVE_CATGETS 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
|
|
#
|
|
# -lxnet buys us one big porting headache... standards, gotta love 'em.
|
|
#
|
|
# AC_CHECK_LIB(xnet, socket, ,
|
|
# AC_CHECK_LIB(socket, socket)
|
|
# )
|
|
#
|
|
# Use this for now, instead:
|
|
#
|
|
case "$host" in
|
|
mips-sgi-irix*)
|
|
;;
|
|
*-linux*)
|
|
;;
|
|
*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
|
|
$as_echo_n "checking for socket in -lsocket... " >&6; }
|
|
if ${ac_cv_lib_socket_socket+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lsocket $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char socket ();
|
|
int
|
|
main ()
|
|
{
|
|
return socket ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_socket_socket=yes
|
|
else
|
|
ac_cv_lib_socket_socket=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
|
|
$as_echo "$ac_cv_lib_socket_socket" >&6; }
|
|
if test "x$ac_cv_lib_socket_socket" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBSOCKET 1
|
|
_ACEOF
|
|
|
|
LIBS="-lsocket $LIBS"
|
|
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
|
|
$as_echo_n "checking for inet_addr in -lnsl... " >&6; }
|
|
if ${ac_cv_lib_nsl_inet_addr+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lnsl $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char inet_addr ();
|
|
int
|
|
main ()
|
|
{
|
|
return inet_addr ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_nsl_inet_addr=yes
|
|
else
|
|
ac_cv_lib_nsl_inet_addr=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
|
|
$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
|
|
if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBNSL 1
|
|
_ACEOF
|
|
|
|
LIBS="-lnsl $LIBS"
|
|
|
|
fi
|
|
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Work around Solaris's select() limitations.
|
|
#
|
|
case "$host" in
|
|
*-solaris2.[89]|*-solaris2.1?)
|
|
|
|
$as_echo "#define FD_SETSIZE 65536" >>confdefs.h
|
|
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Purify support
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
|
|
$as_echo_n "checking whether to use purify... " >&6; }
|
|
|
|
# Check whether --with-purify was given.
|
|
if test "${with_purify+set}" = set; then :
|
|
withval=$with_purify; use_purify="$withval"
|
|
else
|
|
use_purify="no"
|
|
fi
|
|
|
|
|
|
case "$use_purify" in
|
|
no)
|
|
;;
|
|
yes)
|
|
# Extract the first word of "purify", so it can be a program name with args.
|
|
set dummy purify; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_purify_path+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $purify_path in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
|
|
;;
|
|
esac
|
|
fi
|
|
purify_path=$ac_cv_path_purify_path
|
|
if test -n "$purify_path"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
|
|
$as_echo "$purify_path" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
;;
|
|
*)
|
|
purify_path="$use_purify"
|
|
;;
|
|
esac
|
|
|
|
case "$use_purify" in
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
PURIFY=""
|
|
;;
|
|
*)
|
|
if test -f "$purify_path" || test purify = "$purify_path"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
|
|
$as_echo "$purify_path" >&6; }
|
|
PURIFYFLAGS="`echo $PURIFYOPTIONS`"
|
|
PURIFY="$purify_path $PURIFYFLAGS"
|
|
else
|
|
as_fn_error $? "$purify_path not found.
|
|
|
|
Please choose the proper path with the following command:
|
|
|
|
configure --with-purify=PATH
|
|
" "$LINENO" 5
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
#
|
|
# Google/Great Performance Tools CPU Profiler
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
|
|
$as_echo_n "checking whether to use gperftools profiler... " >&6; }
|
|
|
|
# Check whether --with-gperftools-profiler was given.
|
|
if test "${with_gperftools_profiler+set}" = set; then :
|
|
withval=$with_gperftools_profiler; use_profiler="$withval"
|
|
else
|
|
use_profiler="no"
|
|
fi
|
|
|
|
|
|
case $use_profiler in
|
|
yes)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
|
|
|
|
LIBS="$LIBS -lprofiler"
|
|
;;
|
|
*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# enable/disable dumping stack backtrace. Also check if the system supports
|
|
# glibc-compatible backtrace() function.
|
|
#
|
|
# Check whether --enable-backtrace was given.
|
|
if test "${enable_backtrace+set}" = set; then :
|
|
enableval=$enable_backtrace; want_backtrace="$enableval"
|
|
else
|
|
want_backtrace="yes"
|
|
fi
|
|
|
|
case $want_backtrace in
|
|
yes)
|
|
ISC_PLATFORM_USEBACKTRACE="#define ISC_PLATFORM_USEBACKTRACE 1"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <execinfo.h>
|
|
int
|
|
main ()
|
|
{
|
|
return (backtrace((void **)0, 0));
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
$as_echo "#define HAVE_LIBCTRACE /**/" >>confdefs.h
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
;;
|
|
*)
|
|
ISC_PLATFORM_USEBACKTRACE="#undef ISC_PLATFORM_USEBACKTRACE"
|
|
;;
|
|
esac
|
|
|
|
|
|
# Check whether --enable-symtable was given.
|
|
if test "${enable_symtable+set}" = set; then :
|
|
enableval=$enable_symtable; want_symtable="$enableval"
|
|
else
|
|
want_symtable="minimal"
|
|
fi
|
|
|
|
case $want_symtable in
|
|
yes|all|minimal) # "yes" is a hidden value equivalent to "minimal"
|
|
if test "" = "$PERL"
|
|
then
|
|
as_fn_error $? "Internal symbol table requires perl but no perl is found.
|
|
Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
|
|
fi
|
|
if test "yes" = "$use_libtool"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&5
|
|
$as_echo "$as_me: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&2;}
|
|
else
|
|
# we generate the internal symbol table only for those systems
|
|
# known to work to avoid unexpected build failure. Also, warn
|
|
# about unsupported systems when the feature is enabled
|
|
# manually.
|
|
case $host_os in
|
|
freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
|
|
MKSYMTBL_PROGRAM="$PERL"
|
|
if test "all" = "$want_symtable"; then
|
|
ALWAYS_MAKE_SYMTABLE="yes"
|
|
fi
|
|
;;
|
|
*)
|
|
if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
|
|
$as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
|
|
fi
|
|
esac
|
|
fi
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
#
|
|
# File name extension for static archive files, for those few places
|
|
# where they are treated differently from dynamic ones.
|
|
#
|
|
SA=a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BIND9_CO_RULE=".c.$O:"
|
|
|
|
|
|
#
|
|
# Here begins a very long section to determine the system's networking
|
|
# capabilities. The order of the tests is significant.
|
|
#
|
|
|
|
#
|
|
# IPv6
|
|
#
|
|
# Check whether --enable-ipv6 was given.
|
|
if test "${enable_ipv6+set}" = set; then :
|
|
enableval=$enable_ipv6;
|
|
fi
|
|
|
|
|
|
case "$enable_ipv6" in
|
|
yes|''|autodetect)
|
|
$as_echo "#define WANT_IPV6 1" >>confdefs.h
|
|
|
|
;;
|
|
no)
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# We do the IPv6 compilation checking after libtool so that we can put
|
|
# the right suffix on the files.
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
|
|
$as_echo_n "checking for IPv6 structures... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
int
|
|
main ()
|
|
{
|
|
struct sockaddr_in6 sin6; return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
found_ipv6=yes
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
found_ipv6=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
#
|
|
# See whether IPv6 support is provided via a Kame add-on.
|
|
# This is done before other IPv6 linking tests to LIBS is properly set.
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
|
|
$as_echo_n "checking for Kame IPv6 support... " >&6; }
|
|
|
|
# Check whether --with-kame was given.
|
|
if test "${with_kame+set}" = set; then :
|
|
withval=$with_kame; use_kame="$withval"
|
|
else
|
|
use_kame="no"
|
|
fi
|
|
|
|
|
|
case "$use_kame" in
|
|
no)
|
|
;;
|
|
yes)
|
|
kame_path=/usr/local/v6
|
|
;;
|
|
*)
|
|
kame_path="$use_kame"
|
|
;;
|
|
esac
|
|
|
|
case "$use_kame" in
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
;;
|
|
*)
|
|
if test -f $kame_path/lib/libinet6.a; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
|
|
$as_echo "$kame_path/lib/libinet6.a" >&6; }
|
|
LIBS="-L$kame_path/lib -linet6 $LIBS"
|
|
else
|
|
as_fn_error $? "$kame_path/lib/libinet6.a not found.
|
|
|
|
Please choose the proper path with the following command:
|
|
|
|
configure --with-kame=PATH
|
|
" "$LINENO" 5
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
|
|
# Including it on Kame-using platforms is very bad, though, because
|
|
# Kame uses #error against direct inclusion. So include it on only
|
|
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
|
|
# This is done before the in6_pktinfo check because that's what
|
|
# netinet6/in6.h is needed for.
|
|
#
|
|
|
|
case "$host" in
|
|
*-bsdi4.[01]*)
|
|
ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
|
|
LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
|
|
isc_netinet6in6_hack="#include <netinet6/in6.h>"
|
|
;;
|
|
*)
|
|
ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
|
|
LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
|
|
isc_netinet6in6_hack=""
|
|
;;
|
|
esac
|
|
|
|
|
|
#
|
|
# This is similar to the netinet6/in6.h issue.
|
|
#
|
|
case "$host" in
|
|
*-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
|
|
# UnixWare
|
|
ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
|
|
LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
|
|
ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
|
|
isc_netinetin6_hack="#include <netinet/in6.h>"
|
|
;;
|
|
*)
|
|
ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
|
|
LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
|
|
ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
|
|
isc_netinetin6_hack=""
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Now delve deeper into the suitability of the IPv6 support.
|
|
#
|
|
case "$found_ipv6" in
|
|
yes)
|
|
ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
|
|
LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_addr" >&5
|
|
$as_echo_n "checking for in6_addr... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
$isc_netinetin6_hack
|
|
$isc_netinet6in6_hack
|
|
|
|
int
|
|
main ()
|
|
{
|
|
struct in6_addr in6; return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
|
|
LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6"
|
|
isc_in_addr6_hack=""
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
|
|
LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1"
|
|
isc_in_addr6_hack="#define in6_addr in_addr6"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
|
|
$as_echo_n "checking for in6addr_any... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
$isc_netinetin6_hack
|
|
$isc_netinet6in6_hack
|
|
$isc_in_addr6_hack
|
|
|
|
int
|
|
main ()
|
|
{
|
|
struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
|
|
LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
|
|
LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5
|
|
$as_echo_n "checking for in6addr_loopback... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
$isc_netinetin6_hack
|
|
$isc_netinet6in6_hack
|
|
$isc_in_addr6_hack
|
|
|
|
int
|
|
main ()
|
|
{
|
|
struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK"
|
|
LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#define ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
|
|
LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#define LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin6_scope_id in struct sockaddr_in6" >&5
|
|
$as_echo_n "checking for sin6_scope_id in struct sockaddr_in6... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
$isc_netinetin6_hack
|
|
$isc_netinet6in6_hack
|
|
|
|
int
|
|
main ()
|
|
{
|
|
struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
|
|
result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_HAVESCOPEID="#undef ISC_PLATFORM_HAVESCOPEID"
|
|
result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
LWRES_HAVE_SIN6_SCOPE_ID="$result"
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
|
|
$as_echo_n "checking for in6_pktinfo... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
$isc_netinetin6_hack
|
|
$isc_netinet6in6_hack
|
|
|
|
int
|
|
main ()
|
|
{
|
|
struct in6_pktinfo xyzzy; return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- disabling runtime ipv6 support" >&5
|
|
$as_echo "no -- disabling runtime ipv6 support" >&6; }
|
|
ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
;;
|
|
no)
|
|
ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
|
|
LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
|
|
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
|
|
LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
|
|
ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
|
|
LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
|
|
ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
|
|
ISC_IPV6_H="ipv6.h"
|
|
ISC_IPV6_O="ipv6.$O"
|
|
ISC_ISCIPV6_O="unix/ipv6.$O"
|
|
ISC_IPV6_C="ipv6.c"
|
|
;;
|
|
esac
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
|
|
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
$isc_netinetin6_hack
|
|
$isc_netinet6in6_hack
|
|
|
|
int
|
|
main ()
|
|
{
|
|
struct sockaddr_storage storage; return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_HAVESOCKADDRSTORAGE="#define ISC_PLATFORM_HAVESOCKADDRSTORAGE 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_HAVESOCKADDRSTORAGE="#undef ISC_PLATFORM_HAVESOCKADDRSTORAGE"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
|
|
$as_echo_n "checking for struct if_laddrreq... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <net/if6.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
struct if_laddrreq a;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_HAVEIF_LADDRREQ="#define ISC_PLATFORM_HAVEIF_LADDRREQ 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_HAVEIF_LADDRREQ="#undef ISC_PLATFORM_HAVEIF_LADDRREQ"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
|
|
$as_echo_n "checking for struct if_laddrconf... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <net/if6.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
struct if_laddrconf a;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_HAVEIF_LADDRCONF="#define ISC_PLATFORM_HAVEIF_LADDRCONF 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_HAVEIF_LADDRCONF="#undef ISC_PLATFORM_HAVEIF_LADDRCONF"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
|
|
#
|
|
# Check for network functions that are often missing. We do this
|
|
# after the libtool checking, so we can put the right suffix on
|
|
# the files. It also needs to come after checking for a Kame add-on,
|
|
# which provides some (all?) of the desired functions.
|
|
#
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop with IPv6 support" >&5
|
|
$as_echo_n "checking for inet_ntop with IPv6 support... " >&6; }
|
|
if test "$cross_compiling" = yes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_ntop not needed" >&5
|
|
$as_echo "assuming inet_ntop not needed" >&6; }
|
|
ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
main() {
|
|
char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);}
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
|
|
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
|
|
ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
|
|
# On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts
|
|
# addresses with less than four octets, like "1.2.3". Also leading
|
|
# zeros should also be rejected.
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working inet_pton with IPv6 support" >&5
|
|
$as_echo_n "checking for working inet_pton with IPv6 support... " >&6; }
|
|
if test "$cross_compiling" = yes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_pton needed" >&5
|
|
$as_echo "assuming inet_pton needed" >&6; }
|
|
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
|
|
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
|
|
ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :
|
|
inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 :
|
|
(inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); }
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
|
|
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
|
|
ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# Look for a 4.4BSD-style sa_len member in struct sockaddr.
|
|
#
|
|
case "$host" in
|
|
*-dec-osf*)
|
|
# Turn on 4.4BSD style sa_len support.
|
|
$as_echo "#define _SOCKADDR_LEN 1" >>confdefs.h
|
|
|
|
;;
|
|
esac
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5
|
|
$as_echo_n "checking for sa_len in struct sockaddr... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
int
|
|
main ()
|
|
{
|
|
struct sockaddr sa; sa.sa_len = 0; return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
|
|
LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
|
|
LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
|
|
#
|
|
# Look for a 4.4BSD or 4.3BSD struct msghdr
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr flavor" >&5
|
|
$as_echo_n "checking for struct msghdr flavor... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
int
|
|
main ()
|
|
{
|
|
struct msghdr msg; msg.msg_flags = 0; return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.4BSD" >&5
|
|
$as_echo "4.4BSD" >&6; }
|
|
ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.3BSD" >&5
|
|
$as_echo "4.3BSD" >&6; }
|
|
ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
#
|
|
# Look for in_port_t.
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_port_t" >&5
|
|
$as_echo_n "checking for type in_port_t... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <netinet/in.h>
|
|
int
|
|
main ()
|
|
{
|
|
in_port_t port = 25; return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
#
|
|
# Allow forcibly disabling TCP Fast Open support as autodetection might yield
|
|
# confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
|
|
# comment in lib/isc/unix/socket.c).
|
|
#
|
|
|
|
# Check whether --enable-tcp_fastopen was given.
|
|
if test "${enable_tcp_fastopen+set}" = set; then :
|
|
enableval=$enable_tcp_fastopen;
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_FASTOPEN socket option" >&5
|
|
$as_echo_n "checking for TCP_FASTOPEN socket option... " >&6; }
|
|
case "$enable_tcp_fastopen" in
|
|
yes|''|autodetect)
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/tcp.h>
|
|
#ifdef TCP_FASTOPEN
|
|
int has_tfo() { return (0); }
|
|
#endif
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "has_tfo" >/dev/null 2>&1; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_HAVETFO="#define ISC_PLATFORM_HAVETFO 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_HAVETFO="#undef ISC_PLATFORM_HAVETFO"
|
|
fi
|
|
rm -f conftest*
|
|
|
|
|
|
;;
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
|
|
$as_echo "disabled" >&6; }
|
|
ISC_PLATFORM_HAVETFO="#undef ISC_PLATFORM_HAVETFO"
|
|
;;
|
|
esac
|
|
|
|
|
|
#
|
|
# Check for addrinfo
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
|
|
$as_echo_n "checking for struct addrinfo... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <netdb.h>
|
|
int
|
|
main ()
|
|
{
|
|
struct addrinfo a; return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
|
|
ISC_IRS_NEEDADDRINFO="#undef ISC_IRS_NEEDADDRINFO"
|
|
$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
|
|
ISC_IRS_NEEDADDRINFO="#define ISC_IRS_NEEDADDRINFO 1"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
|
|
#
|
|
# Check for rrsetinfo
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rrsetinfo" >&5
|
|
$as_echo_n "checking for struct rrsetinfo... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <netdb.h>
|
|
int
|
|
main ()
|
|
{
|
|
struct rrsetinfo r; return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_LWRES_NEEDRRSETINFO="#define ISC_LWRES_NEEDRRSETINFO 1"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int sethostent" >&5
|
|
$as_echo_n "checking for int sethostent... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <netdb.h>
|
|
int
|
|
main ()
|
|
{
|
|
int i = sethostent(0); return(0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endhostent" >&5
|
|
$as_echo_n "checking for int endhostent... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <netdb.h>
|
|
int
|
|
main ()
|
|
{
|
|
int i = endhostent(); return(0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnetbyaddr(in_addr_t, ...)" >&5
|
|
$as_echo_n "checking for getnetbyaddr(in_addr_t, ...)... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <netdb.h>
|
|
struct netent *getnetbyaddr(in_addr_t, int);
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int setnetent" >&5
|
|
$as_echo_n "checking for int setnetent... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <netdb.h>
|
|
int
|
|
main ()
|
|
{
|
|
int i = setnetent(0); return(0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endnetent" >&5
|
|
$as_echo_n "checking for int endnetent... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <netdb.h>
|
|
int
|
|
main ()
|
|
{
|
|
int i = endnetent(); return(0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr(const void *, size_t, ...)" >&5
|
|
$as_echo_n "checking for gethostbyaddr(const void *, size_t, ...)... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <netdb.h>
|
|
struct hostent *gethostbyaddr(const void *, size_t, int);
|
|
int
|
|
main ()
|
|
{
|
|
return(0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
|
|
$as_echo_n "checking for h_errno in netdb.h... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <netdb.h>
|
|
int
|
|
main ()
|
|
{
|
|
h_errno = 1; return(0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
#
|
|
# Sadly, the definitions of system-supplied getnameinfo(3) vary. Try to catch
|
|
# known variations here:
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo prototype definitions" >&5
|
|
$as_echo_n "checking for getnameinfo prototype definitions... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netdb.h>
|
|
int getnameinfo(const struct sockaddr *, socklen_t, char *,
|
|
socklen_t, char *, socklen_t, int);
|
|
int
|
|
main ()
|
|
{
|
|
return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t for buflen; int for flags" >&5
|
|
$as_echo "socklen_t for buflen; int for flags" >&6; }
|
|
|
|
$as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h
|
|
|
|
|
|
$as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h
|
|
|
|
|
|
$as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
|
|
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netdb.h>
|
|
int getnameinfo(const struct sockaddr *, socklen_t, char *,
|
|
size_t, char *, size_t, int);
|
|
int
|
|
main ()
|
|
{
|
|
return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5
|
|
$as_echo "size_t for buflen; int for flags" >&6; }
|
|
$as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h
|
|
|
|
$as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h
|
|
|
|
$as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
|
|
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netdb.h>
|
|
int getnameinfo(const struct sockaddr *, size_t, char *,
|
|
size_t, char *, size_t, int);
|
|
int
|
|
main ()
|
|
{
|
|
return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5
|
|
$as_echo "size_t for buflen; int for flags" >&6; }
|
|
$as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T size_t" >>confdefs.h
|
|
|
|
$as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h
|
|
|
|
$as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; socklen_t for buflen; u_int for flags" >&5
|
|
$as_echo "not match any subspecies; socklen_t for buflen; u_int for flags" >&6; }
|
|
$as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h
|
|
|
|
$as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h
|
|
|
|
$as_echo "#define IRS_GETNAMEINFO_FLAGS_T unsigned int" >>confdefs.h
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
#
|
|
# ...and same for gai_strerror().
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror prototype definitions" >&5
|
|
$as_echo_n "checking for gai_strerror prototype definitions... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netdb.h>
|
|
char *gai_strerror(int ecode);
|
|
int
|
|
main ()
|
|
{
|
|
return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: returning char *" >&5
|
|
$as_echo "returning char *" >&6; }
|
|
|
|
$as_echo "#define IRS_GAISTRERROR_RETURN_T char *" >>confdefs.h
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5
|
|
$as_echo "not match any subspecies; assume standard definition" >&6; }
|
|
$as_echo "#define IRS_GAISTRERROR_RETURN_T const char *" >>confdefs.h
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname"
|
|
if test "x$ac_cv_func_getipnodebyname" = xyes; then :
|
|
ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
|
|
else
|
|
ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
|
|
fi
|
|
|
|
ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
|
|
if test "x$ac_cv_func_getnameinfo" = xyes; then :
|
|
ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
|
|
else
|
|
ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
|
|
fi
|
|
|
|
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
|
|
if test "x$ac_cv_func_getaddrinfo" = xyes; then :
|
|
ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
|
|
$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
|
|
|
|
else
|
|
ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
|
|
fi
|
|
|
|
ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
|
|
if test "x$ac_cv_func_gai_strerror" = xyes; then :
|
|
$as_echo "#define HAVE_GAISTRERROR 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-getifaddrs was given.
|
|
if test "${enable_getifaddrs+set}" = set; then :
|
|
enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
|
|
else
|
|
want_getifaddrs="yes"
|
|
fi
|
|
|
|
|
|
#
|
|
# This interface iteration code for getifaddrs() will fall back to using
|
|
# /proc/net/if_inet6 if getifaddrs() in glibc doesn't return any IPv6
|
|
# addresses.
|
|
#
|
|
case $want_getifaddrs in
|
|
glibc)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&5
|
|
$as_echo "$as_me: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&2;}
|
|
ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
|
|
if test "x$ac_cv_func_getifaddrs" = xyes; then :
|
|
$as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
;;
|
|
yes)
|
|
ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
|
|
if test "x$ac_cv_func_getifaddrs" = xyes; then :
|
|
$as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
;;
|
|
no)
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Look for a sysctl call to get the list of network interfaces.
|
|
#
|
|
case $ac_cv_header_sys_sysctl_h in
|
|
yes)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
|
|
$as_echo_n "checking for interface list sysctl... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/param.h>
|
|
#include <sys/sysctl.h>
|
|
#include <sys/socket.h>
|
|
#ifdef NET_RT_IFLIST
|
|
found_rt_iflist
|
|
#endif
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "found_rt_iflist" >/dev/null 2>&1; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
rm -f conftest*
|
|
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Check for some other useful functions that are not ever-present.
|
|
#
|
|
|
|
# We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC
|
|
# because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77
|
|
# reportedly defines strsep() without declaring it in <string.h> when
|
|
# -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and
|
|
# AC_CHECK_FUNC() incorrectly succeeds because it declares
|
|
# the function itself.
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correctly declared strsep()" >&5
|
|
$as_echo_n "checking for correctly declared strsep()... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <string.h>
|
|
int
|
|
main ()
|
|
{
|
|
char *sp; char *foo = strsep(&sp, ".");
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
|
|
ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
|
|
if test "x$ac_cv_func_memmove" = xyes; then :
|
|
ISC_PLATFORM_NEEDMEMMOVE="#undef ISC_PLATFORM_NEEDMEMMOVE"
|
|
else
|
|
ISC_PLATFORM_NEEDMEMMOVE="#define ISC_PLATFORM_NEEDMEMMOVE 1"
|
|
fi
|
|
|
|
|
|
|
|
ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
|
|
if test "x$ac_cv_func_strtoul" = xyes; then :
|
|
ISC_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL"
|
|
LWRES_PLATFORM_NEEDSTRTOUL="#undef LWRES_PLATFORM_NEEDSTRTOUL"
|
|
GENRANDOMLIB=""
|
|
else
|
|
ISC_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1"
|
|
LWRES_PLATFORM_NEEDSTRTOUL="#define LWRES_PLATFORM_NEEDSTRTOUL 1"
|
|
GENRANDOMLIB='${ISCLIBS}'
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
|
|
if test "x$ac_cv_func_strlcpy" = xyes; then :
|
|
ISC_PLATFORM_NEEDSTRLCPY="#undef ISC_PLATFORM_NEEDSTRLCPY"
|
|
LWRES_PLATFORM_NEEDSTRLCPY="#undef LWRES_PLATFORM_NEEDSTRLCPY"
|
|
else
|
|
ISC_PLATFORM_NEEDSTRLCPY="#define ISC_PLATFORM_NEEDSTRLCPY 1"
|
|
LWRES_PLATFORM_NEEDSTRLCPY="#define LWRES_PLATFORM_NEEDSTRLCPY 1"
|
|
fi
|
|
|
|
|
|
|
|
|
|
ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
|
|
if test "x$ac_cv_func_strlcat" = xyes; then :
|
|
ISC_PLATFORM_NEEDSTRLCAT="#undef ISC_PLATFORM_NEEDSTRLCAT"
|
|
else
|
|
ISC_PLATFORM_NEEDSTRLCAT="#define ISC_PLATFORM_NEEDSTRLCAT 1"
|
|
fi
|
|
|
|
|
|
|
|
ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
|
|
if test "x$ac_cv_func_strcasestr" = xyes; then :
|
|
ISC_PLATFORM_NEEDSTRCASESTR="#undef ISC_PLATFORM_NEEDSTRCASESTR"
|
|
else
|
|
ISC_PLATFORM_NEEDSTRCASESTR="#define ISC_PLATFORM_NEEDSTRCASESTR 1"
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-readline was given.
|
|
if test "${with_readline+set}" = set; then :
|
|
withval=$with_readline; use_readline="$withval"
|
|
else
|
|
use_readline="auto"
|
|
fi
|
|
|
|
case "$use_readline" in
|
|
no) ;;
|
|
*)
|
|
saved_LIBS="$LIBS"
|
|
case "$use_readline" in
|
|
yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
|
|
*) try_readline="$use_readline"
|
|
esac
|
|
for readline in "$try_readline" $or_readline
|
|
do
|
|
LIBS="$readline"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
|
|
$as_echo "$as_me: checking for readline with $readline" >&6;}
|
|
for ac_func in readline
|
|
do :
|
|
ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
|
|
if test "x$ac_cv_func_readline" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_READLINE 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
if test "yes" = "$ac_cv_func_readline"
|
|
then
|
|
READLINE_LIB="$readline"
|
|
break
|
|
fi
|
|
for lib in -lterminfo -ltermcap -lncurses -lcurses
|
|
do
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
|
|
$as_echo "$as_me: checking for readline with $readline $lib" >&6;}
|
|
unset ac_cv_func_readline
|
|
LIBS="$readline $lib"
|
|
for ac_func in readline
|
|
do :
|
|
ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
|
|
if test "x$ac_cv_func_readline" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_READLINE 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
if test "yes" = "$ac_cv_func_readline"
|
|
then
|
|
READLINE_LIB="$readline $lib"
|
|
break
|
|
fi
|
|
done
|
|
if test "yes" = "$ac_cv_func_readline"
|
|
then
|
|
break
|
|
fi
|
|
done
|
|
if test "auto" != "$use_readline" &&
|
|
test "X$READLINE_LIB" = "X"
|
|
then
|
|
as_fn_error $? "The readline library was not found." "$LINENO" 5
|
|
fi
|
|
LIBS="$saved_LIBS"
|
|
;;
|
|
esac
|
|
if test "yes" = "$ac_cv_func_readline"
|
|
then
|
|
case "$READLINE_LIB" in
|
|
*edit*)
|
|
for ac_header in editline/readline.h
|
|
do :
|
|
ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_editline_readline_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_EDITLINE_READLINE_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for ac_header in edit/readline/readline.h
|
|
do :
|
|
ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_EDIT_READLINE_READLINE_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for ac_header in edit/readline/history.h
|
|
do :
|
|
ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_EDIT_READLINE_HISTORY_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
;;
|
|
esac
|
|
for ac_header in readline/readline.h
|
|
do :
|
|
ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_readline_readline_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_READLINE_READLINE_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for ac_header in readline/history.h
|
|
do :
|
|
ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_readline_history_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_READLINE_HISTORY_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
ISC_PRINT_OBJS=
|
|
ISC_PRINT_SRCS=
|
|
ISC_PLATFORM_NEEDPRINTF='#undef ISC_PLATFORM_NEEDPRINTF'
|
|
ISC_PLATFORM_NEEDFPRINTF='#undef ISC_PLATFORM_NEEDFPRINTF'
|
|
ISC_PLATFORM_NEEDSPRINTF='#undef ISC_PLATFORM_NEEDSPRINTF'
|
|
ISC_PLATFORM_NEEDVSNPRINTF='#undef ISC_PLATFORM_NEEDVSNPRINTF'
|
|
LWRES_PLATFORM_NEEDVSNPRINTF='#undef LWRES_PLATFORM_NEEDVSNPRINTF'
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sprintf return type" >&5
|
|
$as_echo_n "checking sprintf return type... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <stdio.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
char buf[2]; return(*sprintf(buf,"x"));
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: char *" >&5
|
|
$as_echo "char *" >&6; }
|
|
ISC_PRINT_OBJS="print.$O"
|
|
ISC_PRINT_SRCS="print.c"
|
|
ISC_PLATFORM_NEEDSPRINTF="#define ISC_PLATFORM_NEEDSPRINTF"
|
|
LWRES_PLATFORM_NEEDSPRINTF="#define LWRES_PLATFORM_NEEDSPRINTF"
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
|
|
$as_echo "int" >&6; }
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
|
|
if test "x$ac_cv_func_vsnprintf" = xyes; then :
|
|
|
|
else
|
|
ISC_PRINT_OBJS="print.$O"
|
|
ISC_PRINT_SRCS="print.c"
|
|
ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
|
|
LWRES_PLATFORM_NEEDVSNPRINTF="#define LWRES_PLATFORM_NEEDVSNPRINTF 1"
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking printf for %z support" >&5
|
|
$as_echo_n "checking printf for %z support... " >&6; }
|
|
if test "$cross_compiling" = yes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform supports %z" >&5
|
|
$as_echo "assuming target platform supports %z" >&6; }
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <stdio.h>
|
|
|
|
int
|
|
main() {
|
|
size_t j = 0;
|
|
char buf[100];
|
|
buf[0] = 0;
|
|
sprintf(buf, "%zu", j);
|
|
return ((buf[0] == '0' && buf[1] == '\0') ? 0 : 1);
|
|
}
|
|
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PRINT_OBJS="print.$O"
|
|
ISC_PRINT_SRCS="print.c"
|
|
ISC_PLATFORM_NEEDPRINTF='#define ISC_PLATFORM_NEEDPRINTF 1'
|
|
ISC_PLATFORM_NEEDFPRINTF='#define ISC_PLATFORM_NEEDFPRINTF 1'
|
|
ISC_PLATFORM_NEEDFSRINTF='#define ISC_PLATFORM_NEEDSPRINTF 1'
|
|
ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
|
|
LWRES_PLATFORM_NEEDVSNPRINTF="#define LWRES_PLATFORM_NEEDVSNPRINTF 1"
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS $ISC_PRINT_OBJS"
|
|
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS $ISC_PRINT_SRCS"
|
|
|
|
|
|
|
|
ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
|
|
if test "x$ac_cv_func_strerror" = xyes; then :
|
|
$as_echo "#define HAVE_STRERROR 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
#
|
|
# Use our own SPNEGO implementation?
|
|
#
|
|
# Check whether --enable-isc-spnego was given.
|
|
if test "${enable_isc_spnego+set}" = set; then :
|
|
enableval=$enable_isc_spnego;
|
|
fi
|
|
|
|
|
|
if test -n "$USE_GSSAPI"
|
|
then
|
|
case "$enable_isc_spnego" in
|
|
yes|'')
|
|
USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
|
|
DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
|
|
DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
|
|
$as_echo "using SPNEGO from lib/dns" >&6; }
|
|
;;
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
|
|
$as_echo "using SPNEGO from GSSAPI library" >&6; }
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# Security Stuff
|
|
#
|
|
# Note it is very recommended to *not* disable chroot(),
|
|
# this is only because chroot() was made obsolete by Posix.
|
|
# Check whether --enable-chroot was given.
|
|
if test "${enable_chroot+set}" = set; then :
|
|
enableval=$enable_chroot;
|
|
fi
|
|
|
|
case "$enable_chroot" in
|
|
yes|'')
|
|
for ac_func in chroot
|
|
do :
|
|
ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
|
|
if test "x$ac_cv_func_chroot" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_CHROOT 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
;;
|
|
no)
|
|
;;
|
|
esac
|
|
# Check whether --enable-linux-caps was given.
|
|
if test "${enable_linux_caps+set}" = set; then :
|
|
enableval=$enable_linux_caps;
|
|
fi
|
|
|
|
case "$enable_linux_caps" in
|
|
yes|'')
|
|
for ac_header in linux/types.h
|
|
do :
|
|
ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_linux_types_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LINUX_TYPES_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for ac_header in sys/capability.h
|
|
do :
|
|
ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_sys_capability_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_SYS_CAPABILITY_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for ac_header in linux/capability.h
|
|
do :
|
|
ac_fn_c_check_header_compile "$LINENO" "linux/capability.h" "ac_cv_header_linux_capability_h" "#ifdef HAVE_LINUX_TYPES_H
|
|
#include <linux/types.h>
|
|
#endif
|
|
|
|
"
|
|
if test "x$ac_cv_header_linux_capability_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LINUX_CAPABILITY_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
|
|
$as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
|
|
if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lcap $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char cap_set_proc ();
|
|
int
|
|
main ()
|
|
{
|
|
return cap_set_proc ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_cap_cap_set_proc=yes
|
|
else
|
|
ac_cv_lib_cap_cap_set_proc=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
|
|
$as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
|
|
if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBCAP 1
|
|
_ACEOF
|
|
|
|
LIBS="-lcap $LIBS"
|
|
|
|
fi
|
|
|
|
;;
|
|
no)
|
|
;;
|
|
esac
|
|
for ac_header in sys/prctl.h
|
|
do :
|
|
ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_SYS_PRCTL_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
for ac_header in sys/un.h
|
|
do :
|
|
ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_sys_un_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_SYS_UN_H 1
|
|
_ACEOF
|
|
ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
|
|
|
|
else
|
|
ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
case "$host" in
|
|
*-solaris*)
|
|
|
|
$as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
|
|
|
|
;;
|
|
*-sunos*)
|
|
|
|
$as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
|
|
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Time Zone Stuff
|
|
#
|
|
ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
|
|
if test "x$ac_cv_func_tzset" = xyes; then :
|
|
$as_echo "#define HAVE_TZSET 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
|
|
$as_echo_n "checking for optarg declaration... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <unistd.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
optarg = 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
GEN_NEED_OPTARG="-DNEED_OPTARG=1"
|
|
|
|
$as_echo "#define NEED_OPTARG 1" >>confdefs.h
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
#
|
|
# Check for nanoseconds in file stats
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking st_mtim.tv_nsec" >&5
|
|
$as_echo_n "checking st_mtim.tv_nsec... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <sys/fcntl.h>
|
|
int
|
|
main ()
|
|
{
|
|
struct stat s; return(s.st_mtim.tv_nsec);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_HAVESTATNSEC="#define ISC_PLATFORM_HAVESTATNSEC 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_PLATFORM_HAVESTATNSEC="#undef ISC_PLATFORM_HAVESTATNSEC"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
#
|
|
# BSD/OS, and perhaps some others, don't define rlim_t.
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type rlim_t" >&5
|
|
$as_echo_n "checking for type rlim_t... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/time.h>
|
|
#include <sys/resource.h>
|
|
int
|
|
main ()
|
|
{
|
|
rlim_t rl = 19671212; return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of rlim_cur" >&5
|
|
$as_echo_n "checking type of rlim_cur... " >&6; }
|
|
if test "$cross_compiling" = yes; then :
|
|
|
|
|
|
# Check whether --with-rlimtype was given.
|
|
if test "${with_rlimtype+set}" = set; then :
|
|
withval=$with_rlimtype; rlimtype="$withval"
|
|
else
|
|
rlimtype="long long int"
|
|
fi
|
|
|
|
ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE $rlimtype"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&5
|
|
$as_echo "cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&6; }
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/time.h>
|
|
#include <sys/resource.h>
|
|
main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
|
|
$as_echo "int" >&6; }
|
|
ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then :
|
|
as_fn_error $? "this cannot happen" "$LINENO" 5
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/time.h>
|
|
#include <sys/resource.h>
|
|
main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: long int" >&5
|
|
$as_echo "long int" >&6; }
|
|
ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then :
|
|
as_fn_error $? "this cannot happen" "$LINENO" 5
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/time.h>
|
|
#include <sys/resource.h>
|
|
main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: long long int" >&5
|
|
$as_echo "long long int" >&6; }
|
|
ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
|
|
else
|
|
as_fn_error $? "unable to determine sizeof rlim_cur" "$LINENO" 5
|
|
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
#
|
|
# Older HP-UX doesn't have gettune
|
|
#
|
|
case "$host" in
|
|
*-hp-hpux*)
|
|
for ac_header in sys/dyntune.h
|
|
do :
|
|
ac_fn_c_check_header_mongrel "$LINENO" "sys/dyntune.h" "ac_cv_header_sys_dyntune_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_sys_dyntune_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_SYS_DYNTUNE_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
|
|
#
|
|
# Compaq TruCluster requires more code for handling cluster IP aliases
|
|
#
|
|
case "$host" in
|
|
*-dec-osf*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clua_getaliasaddress in -lclua" >&5
|
|
$as_echo_n "checking for clua_getaliasaddress in -lclua... " >&6; }
|
|
if ${ac_cv_lib_clua_clua_getaliasaddress+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lclua $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char clua_getaliasaddress ();
|
|
int
|
|
main ()
|
|
{
|
|
return clua_getaliasaddress ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_clua_clua_getaliasaddress=yes
|
|
else
|
|
ac_cv_lib_clua_clua_getaliasaddress=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clua_clua_getaliasaddress" >&5
|
|
$as_echo "$ac_cv_lib_clua_clua_getaliasaddress" >&6; }
|
|
if test "x$ac_cv_lib_clua_clua_getaliasaddress" = xyes; then :
|
|
LIBS="-lclua $LIBS"
|
|
fi
|
|
|
|
ac_fn_c_check_func "$LINENO" "clua_getaliasaddress" "ac_cv_func_clua_getaliasaddress"
|
|
if test "x$ac_cv_func_clua_getaliasaddress" = xyes; then :
|
|
|
|
$as_echo "#define HAVE_TRUCLUSTER 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Some hosts need msg_namelen to match the size of the socket structure.
|
|
# Some hosts don't set msg_namelen appropriately on return from recvmsg().
|
|
#
|
|
case $host in
|
|
*os2*|*hp-mpeix*)
|
|
|
|
$as_echo "#define BROKEN_RECVMSG 1" >>confdefs.h
|
|
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Microsoft has their own way of handling shared libraries that requires
|
|
# additional qualifiers on extern variables. Unix systems don't need it.
|
|
#
|
|
|
|
ISC_PLATFORM_USEDECLSPEC="#undef ISC_PLATFORM_USEDECLSPEC"
|
|
|
|
LWRES_PLATFORM_USEDECLSPEC="#undef LWRES_PLATFORM_USEDECLSPEC"
|
|
|
|
IRS_PLATFORM_USEDECLSPEC="#undef IRS_PLATFORM_USEDECLSPEC"
|
|
|
|
#
|
|
# Random remaining OS-specific issues involving compiler warnings.
|
|
# XXXDCL print messages to indicate some compensation is being done?
|
|
#
|
|
|
|
ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
|
|
|
|
case "$host" in
|
|
*-aix5.[123].*)
|
|
hack_shutup_pthreadonceinit=yes
|
|
;;
|
|
*-bsdi3.1*)
|
|
hack_shutup_sputaux=yes
|
|
;;
|
|
*-bsdi4.0*)
|
|
hack_shutup_sigwait=yes
|
|
hack_shutup_sputaux=yes
|
|
;;
|
|
*-bsdi4.[12]*)
|
|
hack_shutup_stdargcast=yes
|
|
;;
|
|
*-solaris2.[89])
|
|
hack_shutup_pthreadonceinit=yes
|
|
;;
|
|
*-solaris2.1[0-9])
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <pthread.h>
|
|
int
|
|
main ()
|
|
{
|
|
static pthread_once_t once_test = { PTHREAD_ONCE_INIT };
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
hack_shutup_pthreadonceinit=yes
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
;;
|
|
esac
|
|
|
|
case "$hack_shutup_pthreadonceinit" in
|
|
yes)
|
|
#
|
|
# Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
|
|
#
|
|
ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
|
|
;;
|
|
esac
|
|
|
|
case "$hack_shutup_sigwait" in
|
|
yes)
|
|
#
|
|
# Shut up a -Wmissing-prototypes warning for sigwait().
|
|
#
|
|
$as_echo "#define SHUTUP_SIGWAIT 1" >>confdefs.h
|
|
|
|
;;
|
|
esac
|
|
|
|
case "$hack_shutup_sputaux" in
|
|
yes)
|
|
#
|
|
# Shut up a -Wmissing-prototypes warning from <stdio.h>.
|
|
#
|
|
$as_echo "#define SHUTUP_SPUTAUX 1" >>confdefs.h
|
|
|
|
;;
|
|
esac
|
|
|
|
case "$hack_shutup_stdargcast" in
|
|
yes)
|
|
#
|
|
# Shut up a -Wcast-qual warning from va_start().
|
|
#
|
|
$as_echo "#define SHUTUP_STDARG_CAST 1" >>confdefs.h
|
|
|
|
;;
|
|
esac
|
|
|
|
for ac_header in strings.h
|
|
do :
|
|
ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_strings_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_STRINGS_H 1
|
|
_ACEOF
|
|
ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1"
|
|
|
|
else
|
|
ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
#
|
|
# Check for if_nametoindex() for IPv6 scoped addresses support
|
|
#
|
|
ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
|
|
if test "x$ac_cv_func_if_nametoindex" = xyes; then :
|
|
ac_cv_have_if_nametoindex=yes
|
|
else
|
|
ac_cv_have_if_nametoindex=no
|
|
fi
|
|
|
|
case $ac_cv_have_if_nametoindex in
|
|
no)
|
|
case "$host" in
|
|
*-hp-hpux*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5
|
|
$as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
|
|
if ${ac_cv_lib_ipv6_if_nametoindex+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lipv6 $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char if_nametoindex ();
|
|
int
|
|
main ()
|
|
{
|
|
return if_nametoindex ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_ipv6_if_nametoindex=yes
|
|
else
|
|
ac_cv_lib_ipv6_if_nametoindex=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
|
|
$as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
|
|
if test "x$ac_cv_lib_ipv6_if_nametoindex" = xyes; then :
|
|
ac_cv_have_if_nametoindex=yes
|
|
LIBS="-lipv6 $LIBS"
|
|
fi
|
|
|
|
;;
|
|
esac
|
|
esac
|
|
case $ac_cv_have_if_nametoindex in
|
|
yes)
|
|
ISC_PLATFORM_HAVEIFNAMETOINDEX="#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1"
|
|
|
|
$as_echo "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
|
|
|
|
;;
|
|
*)
|
|
ISC_PLATFORM_HAVEIFNAMETOINDEX="#undef ISC_PLATFORM_HAVEIFNAMETOINDEX"
|
|
;;
|
|
esac
|
|
|
|
|
|
for ac_func in nanosleep usleep explicit_bzero
|
|
do :
|
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
#
|
|
# Machine architecture dependent features
|
|
#
|
|
have_stdatomic=no
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable stdatomic.h" >&5
|
|
$as_echo_n "checking for usable stdatomic.h... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
#include <stdio.h>
|
|
#include <stdatomic.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
#if ATOMIC_INT_LOCK_FREE == 2 && ATOMIC_LONG_LOCK_FREE == 2
|
|
atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
|
|
#else
|
|
#error stdatomic not lock free
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
have_stdatomic=yes
|
|
ISC_PLATFORM_HAVESTDATOMIC="#define ISC_PLATFORM_HAVESTDATOMIC 1"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
have_stdatomic=no
|
|
ISC_PLATFORM_HAVESTDATOMIC="#undef ISC_PLATFORM_HAVESTDATOMIC"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
# Check whether --enable-atomic was given.
|
|
if test "${enable_atomic+set}" = set; then :
|
|
enableval=$enable_atomic; enable_atomic="$enableval"
|
|
else
|
|
enable_atomic="autodetect"
|
|
fi
|
|
|
|
case "$enable_atomic" in
|
|
yes|''|autodetect)
|
|
case "$host" in
|
|
powerpc-ibm-aix*)
|
|
if test "X$GCC" = "Xyes"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"ics\"); works" >&5
|
|
$as_echo_n "checking if asm(\"ics\"); works... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
main() { asm("ics"); exit(0); }
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
use_atomic=yes
|
|
else
|
|
|
|
saved_cflags="$CFLAGS"
|
|
CFLAGS="$CFLAGS -Wa,-many"
|
|
if test "$cross_compiling" = yes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile, assume yes" >&5
|
|
$as_echo "cross compile, assume yes" >&6; }
|
|
CFLAGS="$saved_cflags"
|
|
use_atomic=yes
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
main() { asm("ics"); exit(0); }
|
|
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, required -Wa,-many" >&5
|
|
$as_echo "yes, required -Wa,-many" >&6; }
|
|
use_atomic=yes
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, use_atomic disabled" >&5
|
|
$as_echo "no, use_atomic disabled" >&6; }
|
|
CFLAGS="$saved_cflags"
|
|
use_atomic=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
else
|
|
use_atomic=yes
|
|
fi
|
|
;;
|
|
*)
|
|
use_atomic=yes
|
|
;;
|
|
esac
|
|
;;
|
|
no)
|
|
have_stdatomic=no
|
|
ISC_PLATFORM_HAVESTDATOMIC="#undef ISC_PLATFORM_HAVESTDATOMIC"
|
|
use_atomic=no
|
|
arch=noatomic
|
|
;;
|
|
esac
|
|
|
|
if test "X$have_stdatomic" = "Xyes"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -latomic is needed to use 64-bit stdatomic.h primitives" >&5
|
|
$as_echo_n "checking if -latomic is needed to use 64-bit stdatomic.h primitives... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdatomic.h>
|
|
int
|
|
main ()
|
|
{
|
|
atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
ISC_ATOMIC_LIBS=""
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_ATOMIC_LIBS="-latomic"
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS="$LIBS $ISC_ATOMIC_LIBS"
|
|
fi
|
|
|
|
|
|
|
|
ISC_PLATFORM_USEOSFASM="#undef ISC_PLATFORM_USEOSFASM"
|
|
ISC_PLATFORM_USEGCCASM="#undef ISC_PLATFORM_USEGCCASM"
|
|
ISC_PLATFORM_USESTDASM="#undef ISC_PLATFORM_USESTDASM"
|
|
ISC_PLATFORM_USEMACASM="#undef ISC_PLATFORM_USEMACASM"
|
|
if test "yes" = "$use_atomic"; then
|
|
have_atomic=yes # set default
|
|
case "$host" in
|
|
i[3456]86-*)
|
|
# XXX: some old x86 architectures actually do not support
|
|
# (some of) these operations. Do we need stricter checks?
|
|
# The cast to long int works around a bug in the HP C Compiler
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
# This bug is HP SR number 8606223364.
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
|
|
$as_echo_n "checking size of void *... " >&6; }
|
|
if ${ac_cv_sizeof_void_p+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
|
|
|
|
else
|
|
if test "$ac_cv_type_void_p" = yes; then
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error 77 "cannot compute sizeof (void *)
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
else
|
|
ac_cv_sizeof_void_p=0
|
|
fi
|
|
fi
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
|
|
$as_echo "$ac_cv_sizeof_void_p" >&6; }
|
|
|
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
_ACEOF
|
|
|
|
|
|
if test $ac_cv_sizeof_void_p = 8; then
|
|
arch=x86_64
|
|
have_xaddq=yes
|
|
else
|
|
arch=x86_32
|
|
fi
|
|
;;
|
|
x86_64-*|amd64-*)
|
|
# The cast to long int works around a bug in the HP C Compiler
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
# This bug is HP SR number 8606223364.
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
|
|
$as_echo_n "checking size of void *... " >&6; }
|
|
if ${ac_cv_sizeof_void_p+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
|
|
|
|
else
|
|
if test "$ac_cv_type_void_p" = yes; then
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error 77 "cannot compute sizeof (void *)
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
else
|
|
ac_cv_sizeof_void_p=0
|
|
fi
|
|
fi
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
|
|
$as_echo "$ac_cv_sizeof_void_p" >&6; }
|
|
|
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
_ACEOF
|
|
|
|
|
|
if test $ac_cv_sizeof_void_p = 8; then
|
|
arch=x86_64
|
|
have_xaddq=yes
|
|
else
|
|
arch=x86_32
|
|
fi
|
|
;;
|
|
alpha*-*)
|
|
arch=alpha
|
|
;;
|
|
powerpc-*|powerpc64*-*|powerpc64el-*)
|
|
arch=powerpc
|
|
;;
|
|
mips-*|mipsel-*|mips64-*|mips64el-*)
|
|
arch=mips
|
|
;;
|
|
ia64-*)
|
|
arch=ia64
|
|
;;
|
|
*)
|
|
have_atomic=no
|
|
arch=noatomic
|
|
;;
|
|
esac
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking architecture type for atomic operations" >&5
|
|
$as_echo_n "checking architecture type for atomic operations... " >&6; }
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $arch" >&5
|
|
$as_echo "$arch" >&6; }
|
|
fi
|
|
|
|
if test "yes" = "$have_atomic"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for inline assembly code" >&5
|
|
$as_echo_n "checking compiler support for inline assembly code... " >&6; }
|
|
|
|
compiler=generic
|
|
# Check whether the compiler supports the assembly syntax we provide.
|
|
if test "X$GCC" = "Xyes"; then
|
|
# GCC's ASM extension always works
|
|
compiler=gcc
|
|
if test $arch = "x86_64"; then
|
|
# We can share the same code for gcc with x86_32
|
|
arch=x86_32
|
|
fi
|
|
if test $arch = "powerpc"; then
|
|
#
|
|
# The MacOS (and maybe others) uses "r0" for register
|
|
# zero. Under linux/ibm it is "0" for register 0.
|
|
# Probe to see if we have a MacOS style assembler.
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for MacOS style assembler syntax" >&5
|
|
$as_echo_n "checking Checking for MacOS style assembler syntax... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
__asm__ volatile ("li r0, 0x0\n"::);
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
compiler="mac"
|
|
ISC_PLATFORM_USEMACASM="#define ISC_PLATFORM_USEMACASM 1"
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
else
|
|
case "$host" in
|
|
alpha*-dec-osf*)
|
|
# Tru64 compiler has its own syntax for inline
|
|
# assembly.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
#ifndef __DECC
|
|
#error "unexpected compiler"
|
|
#endif
|
|
return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
compiler=osf
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
;;
|
|
powerpc-ibm-aix*)
|
|
compiler=aix
|
|
;;
|
|
esac
|
|
fi
|
|
case "$compiler" in
|
|
gcc)
|
|
ISC_PLATFORM_USEGCCASM="#define ISC_PLATFORM_USEGCCASM 1"
|
|
;;
|
|
osf)
|
|
ISC_PLATFORM_USEOSFASM="#define ISC_PLATFORM_USEOSFASM 1"
|
|
;;
|
|
aix)
|
|
;;
|
|
mac)
|
|
;;
|
|
*)
|
|
# See if the generic __asm function works. If not,
|
|
# we need to disable the atomic operations.
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
__asm("nop")
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
compiler="standard"
|
|
ISC_PLATFORM_USESTDASM="#define ISC_PLATFORM_USESTDASM 1"
|
|
else
|
|
compiler="not supported (atomic operations disabled)"
|
|
have_atomic=no
|
|
arch=noatomic
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext;
|
|
;;
|
|
esac
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler" >&5
|
|
$as_echo "$compiler" >&6; }
|
|
fi
|
|
|
|
if test "yes" = "$have_atomic"; then
|
|
ISC_PLATFORM_HAVEXADD="#define ISC_PLATFORM_HAVEXADD 1"
|
|
ISC_PLATFORM_HAVECMPXCHG="#define ISC_PLATFORM_HAVECMPXCHG 1"
|
|
ISC_PLATFORM_HAVEATOMICSTORE="#define ISC_PLATFORM_HAVEATOMICSTORE 1"
|
|
if test "yes" = "$have_xaddq"; then
|
|
ISC_PLATFORM_HAVEXADDQ="#define ISC_PLATFORM_HAVEXADDQ 1"
|
|
ISC_PLATFORM_HAVEATOMICSTOREQ="#define ISC_PLATFORM_HAVEATOMICSTOREQ 1"
|
|
else
|
|
ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ"
|
|
ISC_PLATFORM_HAVEATOMICSTOREQ="#undef ISC_PLATFORM_HAVEATOMICSTOREQ"
|
|
fi
|
|
else
|
|
ISC_PLATFORM_HAVEXADD="#undef ISC_PLATFORM_HAVEXADD"
|
|
ISC_PLATFORM_HAVECMPXCHG="#undef ISC_PLATFORM_HAVECMPXCHG"
|
|
ISC_PLATFORM_HAVEATOMICSTORE="#undef ISC_PLATFORM_HAVEATOMICSTORE"
|
|
ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ"
|
|
ISC_PLATFORM_HAVEATOMICSTOREQ="#undef ISC_PLATFORM_HAVEATOMICSTOREQ"
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ISC_ARCH_DIR=$arch
|
|
|
|
|
|
#
|
|
# Check for __builtin_unreachable
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
|
|
$as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
__builtin_unreachable();
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
|
|
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
#
|
|
# Check for __builtin_expect
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
|
|
$as_echo_n "checking compiler support for __builtin_expect... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
return (__builtin_expect(1, 1) ? 1 : 0);
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
have_builtin_expect=yes
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
else
|
|
|
|
have_builtin_expect=no
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
if test "yes" = "$have_builtin_expect"; then
|
|
|
|
$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
#
|
|
# Check for __builtin_clz
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
|
|
$as_echo_n "checking compiler support for __builtin_clz... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
return (__builtin_clz(0xff) == 24 ? 1 : 0);
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
have_builtin_clz=yes
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
else
|
|
|
|
have_builtin_clz=no
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
if test "yes" = "$have_builtin_clz"; then
|
|
|
|
$as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
#
|
|
# CPU relax (for spin locks)
|
|
#
|
|
if $use_threads
|
|
then
|
|
case "$host" in
|
|
i[3456]86-*)
|
|
# x86_32
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"rep; nop\"); works" >&5
|
|
$as_echo_n "checking if asm(\"rep; nop\"); works... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
asm("rep; nop");
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP asm(\"rep; nop\")"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
;;
|
|
x86_64-*|amd64-*)
|
|
# x86_64
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"rep; nop\"); works" >&5
|
|
$as_echo_n "checking if asm(\"rep; nop\"); works... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
asm("rep; nop");
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP asm(\"rep; nop\")"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
;;
|
|
ia64-*)
|
|
# ia64
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"hint @pause\"); works" >&5
|
|
$as_echo_n "checking if asm(\"hint @pause\"); works... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
asm("hint @pause");
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP asm(\"hint @pause\")"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
;;
|
|
sparc-*)
|
|
# sparc
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpu_relax(); or __cpu_relax(); works" >&5
|
|
$as_echo_n "checking if cpu_relax(); or __cpu_relax(); works... " >&6; }
|
|
ac_fn_c_check_func "$LINENO" "cpu_relax" "ac_cv_func_cpu_relax"
|
|
if test "x$ac_cv_func_cpu_relax" = xyes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP cpu_relax()"
|
|
else
|
|
ac_fn_c_check_func "$LINENO" "__cpu_relax" "ac_cv_func___cpu_relax"
|
|
if test "x$ac_cv_func___cpu_relax" = xyes; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP __cpu_relax()"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
# Activate "rrset-order fixed" or not?
|
|
#
|
|
# Check whether --enable-fixed-rrset was given.
|
|
if test "${enable_fixed_rrset+set}" = set; then :
|
|
enableval=$enable_fixed_rrset; enable_fixed="$enableval"
|
|
else
|
|
enable_fixed="no"
|
|
fi
|
|
|
|
case "$enable_fixed" in
|
|
yes)
|
|
|
|
$as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
|
|
|
|
;;
|
|
no)
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Enable response policy rewriting using NS IP addresses
|
|
#
|
|
# Check whether --enable-rpz-nsip was given.
|
|
if test "${enable_rpz_nsip+set}" = set; then :
|
|
enableval=$enable_rpz_nsip; enable_nsip="$enableval"
|
|
else
|
|
enable_nsip="yes"
|
|
fi
|
|
|
|
case "$enable_nsip" in
|
|
yes)
|
|
|
|
$as_echo "#define ENABLE_RPZ_NSIP 1" >>confdefs.h
|
|
|
|
;;
|
|
no)
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Enable response policy rewriting using NS name
|
|
#
|
|
# Check whether --enable-rpz-nsdname was given.
|
|
if test "${enable_rpz_nsdname+set}" = set; then :
|
|
enableval=$enable_rpz_nsdname; enable_nsdname="$enableval"
|
|
else
|
|
enable_nsdname="yes"
|
|
fi
|
|
|
|
case "$enable_nsdname" in
|
|
yes)
|
|
|
|
$as_echo "#define ENABLE_RPZ_NSDNAME 1" >>confdefs.h
|
|
|
|
;;
|
|
no)
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Activate "filter-aaaa-on-v4/v6" or not?
|
|
#
|
|
# Check whether --enable-filter-aaaa was given.
|
|
if test "${enable_filter_aaaa+set}" = set; then :
|
|
enableval=$enable_filter_aaaa; enable_filter="$enableval"
|
|
else
|
|
enable_filter="no"
|
|
fi
|
|
|
|
case "$enable_filter" in
|
|
yes)
|
|
|
|
$as_echo "#define ALLOW_FILTER_AAAA 1" >>confdefs.h
|
|
|
|
;;
|
|
no)
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Activate dnstap?
|
|
#
|
|
# Check whether --enable-dnstap was given.
|
|
if test "${enable_dnstap+set}" = set; then :
|
|
enableval=$enable_dnstap; use_dnstap=$enableval
|
|
else
|
|
use_dnstap=no
|
|
fi
|
|
|
|
|
|
DNSTAP=
|
|
DNSTAPSRCS=
|
|
DNSTAPOBJS=
|
|
DNSTAPTARGETS=
|
|
if test "x$use_dnstap" != "xno"; then
|
|
if ! $use_threads; then
|
|
as_fn_error $? "Dnstap requires threads." "$LINENO" 5
|
|
fi
|
|
|
|
# Check whether --with-protobuf-c was given.
|
|
if test "${with_protobuf_c+set}" = set; then :
|
|
withval=$with_protobuf_c;
|
|
# workaround for protobuf-c includes at old dir
|
|
# before protobuf-c-1.0.0
|
|
if test -f $withval/include/google/protobuf-c/protobuf-c.h
|
|
then
|
|
CFLAGS="$CFLAGS -I$withval/include/google"
|
|
else
|
|
CFLAGS="$CFLAGS -I$withval/include"
|
|
fi
|
|
LDFLAGS="$LDFLAGS -L$withval/lib"
|
|
# Extract the first word of "protoc-c", so it can be a program name with args.
|
|
set dummy protoc-c; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_PROTOC_C+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $PROTOC_C in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH$PATH_SEPARATOR$withval/bin
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
PROTOC_C=$ac_cv_path_PROTOC_C
|
|
if test -n "$PROTOC_C"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
|
|
$as_echo "$PROTOC_C" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
|
|
else
|
|
|
|
# workaround for protobuf-c includes at old dir
|
|
# before protobuf-c-1.0.0
|
|
if test -f /usr/include/google/protobuf-c/protobuf-c.h
|
|
then
|
|
CFLAGS="$CFLAGS -I/usr/include/google"
|
|
else
|
|
if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
|
|
then
|
|
CFLAGS="$CFLAGS -I/usr/local/include/google"
|
|
LDFLAGS="$LDFLAGS -L/usr/local/lib"
|
|
fi
|
|
fi
|
|
# Extract the first word of "protoc-c", so it can be a program name with args.
|
|
set dummy protoc-c; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_PROTOC_C+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $PROTOC_C in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
PROTOC_C=$ac_cv_path_PROTOC_C
|
|
if test -n "$PROTOC_C"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
|
|
$as_echo "$PROTOC_C" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
if test -z "$PROTOC_C"; then
|
|
as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
|
|
fi
|
|
|
|
# Check whether --with-libfstrm was given.
|
|
if test "${with_libfstrm+set}" = set; then :
|
|
withval=$with_libfstrm;
|
|
CFLAGS="$CFLAGS -I$withval/include"
|
|
LDFLAGS="$LDFLAGS -L$withval/lib"
|
|
# Extract the first word of "fstrm_capture", so it can be a program name with args.
|
|
set dummy fstrm_capture; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $FSTRM_CAPTURE in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH$PATH_SEPARATOR$withval/bin
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
|
|
if test -n "$FSTRM_CAPTURE"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
|
|
$as_echo "$FSTRM_CAPTURE" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
|
|
else
|
|
|
|
# Extract the first word of "fstrm_capture", so it can be a program name with args.
|
|
set dummy fstrm_capture; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $FSTRM_CAPTURE in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
|
|
if test -n "$FSTRM_CAPTURE"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
|
|
$as_echo "$FSTRM_CAPTURE" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
|
|
$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
|
|
if ${ac_cv_search_fstrm_iothr_init+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char fstrm_iothr_init ();
|
|
int
|
|
main ()
|
|
{
|
|
return fstrm_iothr_init ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' fstrm; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_search_fstrm_iothr_init=$ac_res
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if ${ac_cv_search_fstrm_iothr_init+:} false; then :
|
|
break
|
|
fi
|
|
done
|
|
if ${ac_cv_search_fstrm_iothr_init+:} false; then :
|
|
|
|
else
|
|
ac_cv_search_fstrm_iothr_init=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
|
|
$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
|
|
ac_res=$ac_cv_search_fstrm_iothr_init
|
|
if test "$ac_res" != no; then :
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
else
|
|
as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
|
|
$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
|
|
if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char protobuf_c_message_pack ();
|
|
int
|
|
main ()
|
|
{
|
|
return protobuf_c_message_pack ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' protobuf-c; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_search_protobuf_c_message_pack=$ac_res
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
|
|
break
|
|
fi
|
|
done
|
|
if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
|
|
|
|
else
|
|
ac_cv_search_protobuf_c_message_pack=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
|
|
$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
|
|
ac_res=$ac_cv_search_protobuf_c_message_pack
|
|
if test "$ac_res" != no; then :
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
else
|
|
as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
|
|
fi
|
|
|
|
|
|
|
|
$as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
|
|
|
|
DNSTAP=dnstap
|
|
DNSTAPSRCS='${DNSTAPSRCS}'
|
|
DNSTAPOBJS='${DNSTAPOBJS}'
|
|
DNSTAPTARGETS='${DNSTAPTARGETS}'
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# The following sets up how non-blocking i/o is established.
|
|
# Sunos, cygwin and solaris 2.x (x<5) require special handling.
|
|
#
|
|
case "$host" in
|
|
*-sunos*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
|
|
;;
|
|
*-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
|
|
;;
|
|
*-solaris2.[01234])
|
|
$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
|
|
|
|
|
|
$as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
|
|
|
|
;;
|
|
*)
|
|
$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
|
|
|
|
;;
|
|
esac
|
|
#
|
|
# Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
|
|
# This prevents the source address being set.
|
|
#
|
|
case "$host" in
|
|
*-solaris2.[012345]|*-solaris2.5.1)
|
|
|
|
$as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
|
|
|
|
;;
|
|
esac
|
|
#
|
|
# The following sections deal with tools used for formatting
|
|
# the documentation. They are all optional, unless you are
|
|
# a developer editing the documentation source.
|
|
#
|
|
|
|
#
|
|
# Look for TeX.
|
|
#
|
|
|
|
for ac_prog in latex
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_LATEX+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $LATEX in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
LATEX=$ac_cv_path_LATEX
|
|
if test -n "$LATEX"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
|
|
$as_echo "$LATEX" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$LATEX" && break
|
|
done
|
|
test -n "$LATEX" || LATEX="latex"
|
|
|
|
|
|
|
|
for ac_prog in pdflatex
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_PDFLATEX+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $PDFLATEX in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
PDFLATEX=$ac_cv_path_PDFLATEX
|
|
if test -n "$PDFLATEX"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
|
|
$as_echo "$PDFLATEX" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$PDFLATEX" && break
|
|
done
|
|
test -n "$PDFLATEX" || PDFLATEX="pdflatex"
|
|
|
|
|
|
|
|
for ac_prog in dblatex
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_DBLATEX+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $DBLATEX in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
DBLATEX=$ac_cv_path_DBLATEX
|
|
if test -n "$DBLATEX"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
|
|
$as_echo "$DBLATEX" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$DBLATEX" && break
|
|
done
|
|
test -n "$DBLATEX" || DBLATEX="dblatex"
|
|
|
|
|
|
|
|
#
|
|
# Look for w3m
|
|
#
|
|
|
|
for ac_prog in w3m
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_W3M+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $W3M in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
W3M=$ac_cv_path_W3M
|
|
if test -n "$W3M"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
|
|
$as_echo "$W3M" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$W3M" && break
|
|
done
|
|
test -n "$W3M" || W3M="w3m"
|
|
|
|
|
|
|
|
#
|
|
# Look for pandoc
|
|
#
|
|
# Extract the first word of "pandoc", so it can be a program name with args.
|
|
set dummy pandoc; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_PANDOC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $PANDOC in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
|
|
;;
|
|
esac
|
|
fi
|
|
PANDOC=$ac_cv_path_PANDOC
|
|
if test -n "$PANDOC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
|
|
$as_echo "$PANDOC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# Look for xsltproc (libxslt)
|
|
#
|
|
|
|
# Extract the first word of "xsltproc", so it can be a program name with args.
|
|
set dummy xsltproc; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_XSLTPROC+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $XSLTPROC in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
|
|
;;
|
|
esac
|
|
fi
|
|
XSLTPROC=$ac_cv_path_XSLTPROC
|
|
if test -n "$XSLTPROC"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
|
|
$as_echo "$XSLTPROC" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
|
|
|
|
#
|
|
# Look for xmllint (libxml2)
|
|
#
|
|
|
|
# Extract the first word of "xmllint", so it can be a program name with args.
|
|
set dummy xmllint; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_XMLLINT+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $XMLLINT in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
|
|
;;
|
|
esac
|
|
fi
|
|
XMLLINT=$ac_cv_path_XMLLINT
|
|
if test -n "$XMLLINT"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
|
|
$as_echo "$XMLLINT" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
|
|
|
|
#
|
|
# Look for Doxygen
|
|
#
|
|
|
|
# Extract the first word of "doxygen", so it can be a program name with args.
|
|
set dummy doxygen; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_DOXYGEN+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $DOXYGEN in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
|
|
;;
|
|
esac
|
|
fi
|
|
DOXYGEN=$ac_cv_path_DOXYGEN
|
|
if test -n "$DOXYGEN"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
|
|
$as_echo "$DOXYGEN" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
|
|
|
|
#
|
|
# Look for curl
|
|
#
|
|
|
|
# Extract the first word of "curl", so it can be a program name with args.
|
|
set dummy curl; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_CURL+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $CURL in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
|
|
;;
|
|
esac
|
|
fi
|
|
CURL=$ac_cv_path_CURL
|
|
if test -n "$CURL"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
|
|
$as_echo "$CURL" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
|
|
|
|
#
|
|
# Subroutine for searching for an ordinary file (e.g., a stylesheet)
|
|
# in a number of directories:
|
|
#
|
|
# NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
|
|
#
|
|
# If the file FILENAME is found in one of the DIRECTORIES, the shell
|
|
# variable VARIABLE is defined to its absolute pathname. Otherwise,
|
|
# it is set to FILENAME, with no directory prefix (that's not terribly
|
|
# useful, but looks less confusing in substitutions than leaving it
|
|
# empty). The variable VARIABLE will be substituted into output files.
|
|
#
|
|
|
|
|
|
|
|
#
|
|
# Look for Docbook-XSL stylesheets. Location probably varies by system.
|
|
# If it's not explicitly specified, guess where it might be found, based on
|
|
# where SGML stuff lives on some systems (FreeBSD is the only one we're sure
|
|
# of at the moment).
|
|
#
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
|
|
$as_echo_n "checking for Docbook-XSL path... " >&6; }
|
|
|
|
# Check whether --with-docbook-xsl was given.
|
|
if test "${with_docbook_xsl+set}" = set; then :
|
|
withval=$with_docbook_xsl; docbook_path="$withval"
|
|
else
|
|
docbook_path="auto"
|
|
fi
|
|
|
|
case "$docbook_path" in
|
|
auto)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
|
|
$as_echo "auto" >&6; }
|
|
docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook-ns /usr/local/share/xsl/docbook /usr/share/xsl/docbook /usr/share/sgml/docbook/xsl-stylesheets /opt/local/share/xsl/docbook-xsl /opt/local/share/xsl/docbook-xsl-nons /usr/share/xml/docbook/stylesheet/docbook-xsl"
|
|
;;
|
|
*)
|
|
docbook_xsl_trees="$withval"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
|
|
$as_echo "$docbook_xsl_trees" >&6; }
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Look for stylesheets we need.
|
|
#
|
|
|
|
|
|
XSLT_DOCBOOK_STYLE_HTML=""
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
|
|
$as_echo_n "checking for html/docbook.xsl... " >&6; }
|
|
for d in $docbook_xsl_trees
|
|
do
|
|
f=$d/html/docbook.xsl
|
|
if test -f $f
|
|
then
|
|
XSLT_DOCBOOK_STYLE_HTML=$f
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
|
|
$as_echo "$f" >&6; }
|
|
break
|
|
fi
|
|
done
|
|
if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
|
|
$as_echo "\"not found\"" >&6; };
|
|
XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
|
|
fi
|
|
|
|
|
|
|
|
XSLT_DOCBOOK_STYLE_XHTML=""
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
|
|
$as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
|
|
for d in $docbook_xsl_trees
|
|
do
|
|
f=$d/xhtml/docbook.xsl
|
|
if test -f $f
|
|
then
|
|
XSLT_DOCBOOK_STYLE_XHTML=$f
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
|
|
$as_echo "$f" >&6; }
|
|
break
|
|
fi
|
|
done
|
|
if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
|
|
$as_echo "\"not found\"" >&6; };
|
|
XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
|
|
fi
|
|
|
|
|
|
|
|
XSLT_DOCBOOK_STYLE_MAN=""
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
|
|
$as_echo_n "checking for manpages/docbook.xsl... " >&6; }
|
|
for d in $docbook_xsl_trees
|
|
do
|
|
f=$d/manpages/docbook.xsl
|
|
if test -f $f
|
|
then
|
|
XSLT_DOCBOOK_STYLE_MAN=$f
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
|
|
$as_echo "$f" >&6; }
|
|
break
|
|
fi
|
|
done
|
|
if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
|
|
$as_echo "\"not found\"" >&6; };
|
|
XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
|
|
fi
|
|
|
|
|
|
|
|
XSLT_DOCBOOK_CHUNK_HTML=""
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
|
|
$as_echo_n "checking for html/chunk.xsl... " >&6; }
|
|
for d in $docbook_xsl_trees
|
|
do
|
|
f=$d/html/chunk.xsl
|
|
if test -f $f
|
|
then
|
|
XSLT_DOCBOOK_CHUNK_HTML=$f
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
|
|
$as_echo "$f" >&6; }
|
|
break
|
|
fi
|
|
done
|
|
if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
|
|
$as_echo "\"not found\"" >&6; };
|
|
XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
|
|
fi
|
|
|
|
|
|
|
|
XSLT_DOCBOOK_CHUNK_XHTML=""
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
|
|
$as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
|
|
for d in $docbook_xsl_trees
|
|
do
|
|
f=$d/xhtml/chunk.xsl
|
|
if test -f $f
|
|
then
|
|
XSLT_DOCBOOK_CHUNK_XHTML=$f
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
|
|
$as_echo "$f" >&6; }
|
|
break
|
|
fi
|
|
done
|
|
if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
|
|
$as_echo "\"not found\"" >&6; };
|
|
XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
|
|
fi
|
|
|
|
|
|
|
|
XSLT_DOCBOOK_CHUNKTOC_HTML=""
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
|
|
$as_echo_n "checking for html/chunktoc.xsl... " >&6; }
|
|
for d in $docbook_xsl_trees
|
|
do
|
|
f=$d/html/chunktoc.xsl
|
|
if test -f $f
|
|
then
|
|
XSLT_DOCBOOK_CHUNKTOC_HTML=$f
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
|
|
$as_echo "$f" >&6; }
|
|
break
|
|
fi
|
|
done
|
|
if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
|
|
$as_echo "\"not found\"" >&6; };
|
|
XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
|
|
fi
|
|
|
|
|
|
|
|
XSLT_DOCBOOK_CHUNKTOC_XHTML=""
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
|
|
$as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
|
|
for d in $docbook_xsl_trees
|
|
do
|
|
f=$d/xhtml/chunktoc.xsl
|
|
if test -f $f
|
|
then
|
|
XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
|
|
$as_echo "$f" >&6; }
|
|
break
|
|
fi
|
|
done
|
|
if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
|
|
$as_echo "\"not found\"" >&6; };
|
|
XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
|
|
fi
|
|
|
|
|
|
|
|
XSLT_DOCBOOK_MAKETOC_HTML=""
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
|
|
$as_echo_n "checking for html/maketoc.xsl... " >&6; }
|
|
for d in $docbook_xsl_trees
|
|
do
|
|
f=$d/html/maketoc.xsl
|
|
if test -f $f
|
|
then
|
|
XSLT_DOCBOOK_MAKETOC_HTML=$f
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
|
|
$as_echo "$f" >&6; }
|
|
break
|
|
fi
|
|
done
|
|
if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
|
|
$as_echo "\"not found\"" >&6; };
|
|
XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
|
|
fi
|
|
|
|
|
|
|
|
XSLT_DOCBOOK_MAKETOC_XHTML=""
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
|
|
$as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
|
|
for d in $docbook_xsl_trees
|
|
do
|
|
f=$d/xhtml/maketoc.xsl
|
|
if test -f $f
|
|
then
|
|
XSLT_DOCBOOK_MAKETOC_XHTML=$f
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
|
|
$as_echo "$f" >&6; }
|
|
break
|
|
fi
|
|
done
|
|
if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
|
|
$as_echo "\"not found\"" >&6; };
|
|
XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
# IDN support using idnkit
|
|
#
|
|
|
|
# Check whether --with-idnkit was given.
|
|
if test "${with_idnkit+set}" = set; then :
|
|
withval=$with_idnkit; use_idnkit="$withval"
|
|
else
|
|
use_idnkit="no"
|
|
fi
|
|
|
|
case "$use_idnkit" in
|
|
yes)
|
|
if test X$prefix = XNONE ; then
|
|
idnkit_path=/usr/local
|
|
else
|
|
idnkit_path=$prefix
|
|
fi
|
|
;;
|
|
no)
|
|
;;
|
|
*)
|
|
idnkit_path="$use_idnkit"
|
|
;;
|
|
esac
|
|
|
|
iconvinc=
|
|
iconvlib=
|
|
|
|
# Check whether --with-libiconv was given.
|
|
if test "${with_libiconv+set}" = set; then :
|
|
withval=$with_libiconv; use_libiconv="$withval"
|
|
else
|
|
use_libiconv="no"
|
|
fi
|
|
|
|
case "$use_libiconv" in
|
|
yes)
|
|
if test X$prefix = XNONE ; then
|
|
iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv"
|
|
else
|
|
iconvlib="-L$prefix/lib -R$prefix/lib -liconv"
|
|
fi
|
|
;;
|
|
no)
|
|
iconvlib=
|
|
;;
|
|
*)
|
|
iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
|
|
;;
|
|
esac
|
|
|
|
|
|
# Check whether --with-iconv was given.
|
|
if test "${with_iconv+set}" = set; then :
|
|
withval=$with_iconv; iconvlib="$withval"
|
|
fi
|
|
|
|
case "$iconvlib" in
|
|
no)
|
|
iconvlib=
|
|
;;
|
|
yes)
|
|
iconvlib=-liconv
|
|
;;
|
|
esac
|
|
|
|
|
|
# Check whether --with-idnlib was given.
|
|
if test "${with_idnlib+set}" = set; then :
|
|
withval=$with_idnlib; idnlib="$withval"
|
|
else
|
|
idnlib="no"
|
|
fi
|
|
|
|
if test "yes" = "$idnlib"; then
|
|
as_fn_error $? "You must specify ARG for --with-idnlib." "$LINENO" 5
|
|
fi
|
|
|
|
IDNKIT_LIBS=
|
|
if test "no" != "$use_idnkit"; then
|
|
|
|
$as_echo "#define WITH_IDNKIT 1" >>confdefs.h
|
|
|
|
STD_CINCLUDES="$STD_CINCLUDES -I$idnkit_path/include"
|
|
if test "no" != "$idnlib"; then
|
|
IDNKIT_LIBS="$idnlib $iconvlib"
|
|
else
|
|
IDNKIT_LIBS="-L$idnkit_path/lib -lidnkit $iconvlib"
|
|
fi
|
|
fi
|
|
|
|
|
|
#
|
|
# IDN support using libidn2
|
|
#
|
|
|
|
LIBIDN2_CFLAGS=
|
|
LIBIDN2_LDFLAGS=
|
|
LIBIDN2_LIBS=
|
|
|
|
# Check whether --with-libidn2 was given.
|
|
if test "${with_libidn2+set}" = set; then :
|
|
withval=$with_libidn2; use_libidn2="$withval"
|
|
else
|
|
use_libidn2="no"
|
|
fi
|
|
|
|
case $use_libidn2 in #(
|
|
no) :
|
|
: ;; #(
|
|
yes) :
|
|
: ;; #(
|
|
*) :
|
|
|
|
LIBIDN2_CFLAGS="-I$use_libidn2/include"
|
|
LIBIDN2_LDFLAGS="-L$use_libidn2/lib"
|
|
;; #(
|
|
*) :
|
|
;;
|
|
esac
|
|
|
|
if test "$use_libidn2" != "no"; then :
|
|
save_CFLAGS="$CFLAGS"
|
|
save_LIBS="$LIBS"
|
|
save_LDFLAGS="$LDFLAGS"
|
|
CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
|
|
LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_8z" >&5
|
|
$as_echo_n "checking for library containing idn2_to_ascii_8z... " >&6; }
|
|
if ${ac_cv_search_idn2_to_ascii_8z+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char idn2_to_ascii_8z ();
|
|
int
|
|
main ()
|
|
{
|
|
return idn2_to_ascii_8z ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' idn2; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_search_idn2_to_ascii_8z=$ac_res
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if ${ac_cv_search_idn2_to_ascii_8z+:} false; then :
|
|
break
|
|
fi
|
|
done
|
|
if ${ac_cv_search_idn2_to_ascii_8z+:} false; then :
|
|
|
|
else
|
|
ac_cv_search_idn2_to_ascii_8z=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_8z" >&5
|
|
$as_echo "$ac_cv_search_idn2_to_ascii_8z" >&6; }
|
|
ac_res=$ac_cv_search_idn2_to_ascii_8z
|
|
if test "$ac_res" != no; then :
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
$as_echo "#define WITH_IDN_SUPPORT 1" >>confdefs.h
|
|
|
|
|
|
$as_echo "#define WITH_LIBIDN2 1" >>confdefs.h
|
|
|
|
LIBIDN2_LIBS="$LIBIDN2_LDFLAGS -lidn2"
|
|
else
|
|
as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
|
|
fi
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <idn2.h>
|
|
int
|
|
main ()
|
|
{
|
|
idn2_to_unicode_8zlz(".", NULL, IDN2_NONTRANSITIONAL|IDN2_NFC_INPUT);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "#define WITH_IDN_OUT_SUPPORT 1" >>confdefs.h
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
CFLAGS="$save_CFLAGS"
|
|
LIBS="$save_LIBS"
|
|
LDFLAGS="$save_LDFLAGS"
|
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
# IDN support in general
|
|
#
|
|
|
|
# check if idnkit and libidn2 are not used at the same time
|
|
if test "$use_idnkit" != no && test "$use_libidn2" != no; then
|
|
as_fn_error $? "idnkit and libidn2 cannot be used at the same time." "$LINENO" 5
|
|
fi
|
|
# the IDN support is on
|
|
if test "$use_idnkit" != no || test "$use_libidn2" != no; then
|
|
|
|
$as_echo "#define WITH_IDN_SUPPORT 1" >>confdefs.h
|
|
|
|
if test "$use_libidn2" = no || test "$use_libidn2_out" != no; then
|
|
|
|
$as_echo "#define WITH_IDN_OUT_SUPPORT 1" >>confdefs.h
|
|
|
|
fi
|
|
fi
|
|
|
|
#
|
|
# Check whether to build with cmocka unit testing framework
|
|
#
|
|
|
|
|
|
# Check whether --with-cmocka was given.
|
|
if test "${with_cmocka+set}" = set; then :
|
|
withval=$with_cmocka; :
|
|
else
|
|
with_cmocka=no
|
|
fi
|
|
|
|
|
|
case $with_cmocka in #(
|
|
no) :
|
|
: ;; #(
|
|
yes) :
|
|
|
|
|
|
pkg_failed=no
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
|
|
$as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
|
|
|
|
if test -n "$CMOCKA_CFLAGS"; then
|
|
pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
|
|
($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
fi
|
|
else
|
|
pkg_failed=untried
|
|
fi
|
|
if test -n "$CMOCKA_LIBS"; then
|
|
pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
|
|
($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
fi
|
|
else
|
|
pkg_failed=untried
|
|
fi
|
|
|
|
|
|
|
|
if test $pkg_failed = yes; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
|
|
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
_pkg_short_errors_supported=yes
|
|
else
|
|
_pkg_short_errors_supported=no
|
|
fi
|
|
if test $_pkg_short_errors_supported = yes; then
|
|
CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
|
|
else
|
|
CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
|
|
fi
|
|
# Put the nasty error message in config.log where it belongs
|
|
echo "$CMOCKA_PKG_ERRORS" >&5
|
|
|
|
as_fn_error $? "Package requirements (cmocka >= 1.0.0) were not met:
|
|
|
|
$CMOCKA_PKG_ERRORS
|
|
|
|
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
installed software in a non-standard prefix.
|
|
|
|
Alternatively, you may set the environment variables CMOCKA_CFLAGS
|
|
and CMOCKA_LIBS to avoid the need to call pkg-config.
|
|
See the pkg-config man page for more details." "$LINENO" 5
|
|
elif test $pkg_failed = untried; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
|
|
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
path to pkg-config.
|
|
|
|
Alternatively, you may set the environment variables CMOCKA_CFLAGS
|
|
and CMOCKA_LIBS to avoid the need to call pkg-config.
|
|
See the pkg-config man page for more details.
|
|
|
|
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
|
See \`config.log' for more details" "$LINENO" 5; }
|
|
else
|
|
CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
|
|
CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
|
|
|
|
fi
|
|
;; #(
|
|
*) :
|
|
|
|
save_CFLAGS="$CFLAGS"
|
|
save_LIBS="$LIBS"
|
|
CFLAGS="$CFLAGS -I$with_cmocka/include"
|
|
LIBS="$LIBS -L$with_cmocka/lib"
|
|
for ac_header in cmocka.h
|
|
do :
|
|
ac_fn_c_check_header_compile "$LINENO" "cmocka.h" "ac_cv_header_cmocka_h" "#include <stdarg.h>
|
|
#include <stddef.h>
|
|
#include <setjmp.h>
|
|
|
|
"
|
|
if test "x$ac_cv_header_cmocka_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_CMOCKA_H 1
|
|
_ACEOF
|
|
:
|
|
else
|
|
as_fn_error $? "cmocka.h not found" "$LINENO" 5
|
|
fi
|
|
|
|
done
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cmocka_set_message_output" >&5
|
|
$as_echo_n "checking for library containing cmocka_set_message_output... " >&6; }
|
|
if ${ac_cv_search_cmocka_set_message_output+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char cmocka_set_message_output ();
|
|
int
|
|
main ()
|
|
{
|
|
return cmocka_set_message_output ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' cmocka; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_search_cmocka_set_message_output=$ac_res
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if ${ac_cv_search_cmocka_set_message_output+:} false; then :
|
|
break
|
|
fi
|
|
done
|
|
if ${ac_cv_search_cmocka_set_message_output+:} false; then :
|
|
|
|
else
|
|
ac_cv_search_cmocka_set_message_output=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cmocka_set_message_output" >&5
|
|
$as_echo "$ac_cv_search_cmocka_set_message_output" >&6; }
|
|
ac_res=$ac_cv_search_cmocka_set_message_output
|
|
if test "$ac_res" != no; then :
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
CMOCKA_CFLAGS="-Iwith_cmocka/include"
|
|
CMOCKA_LIBS="-L$with_cmocka/lib -lcmocka"
|
|
|
|
$as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
|
|
|
|
|
|
else
|
|
as_fn_error $? "cmocka unit testing framework not found in $with_cmocka path" "$LINENO" 5
|
|
fi
|
|
|
|
;; #(
|
|
*) :
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
#
|
|
# Check for kyua execution engine if CMocka was requested
|
|
# and bail out if execution engine was not found
|
|
#
|
|
|
|
if test "$with_cmocka" != "no"; then :
|
|
for ac_prog in kyua
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_KYUA+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $KYUA in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
KYUA=$ac_cv_path_KYUA
|
|
if test -n "$KYUA"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
|
|
$as_echo "$KYUA" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$KYUA" && break
|
|
done
|
|
|
|
if test -z "$KYUA"; then :
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
|
|
$as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
|
|
else
|
|
UNITTESTS=tests
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
# Check for -Wl,--wrap= support
|
|
#
|
|
|
|
save_LDFLAGS=$LDFLAGS
|
|
LDFLAGS="--wrap=printf"
|
|
|
|
LD_WRAP_TESTS=false
|
|
enable_ld_wrap=no
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5
|
|
$as_echo_n "checking for linker support for --wrap option... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdio.h>
|
|
int
|
|
main ()
|
|
{
|
|
__wrap_printf("success"); return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
enable_ld_wrap=yes
|
|
LD_WRAP_TESTS=true
|
|
|
|
$as_echo "#define LD_WRAP 1" >>confdefs.h
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
# AM_CONDITIONAL([LD_WRAP], [test $enable_ld_wrap = yes])
|
|
|
|
|
|
LDFLAGS=$save_LDFLAGS
|
|
|
|
#
|
|
# Check for i18n
|
|
#
|
|
for ac_header in locale.h
|
|
do :
|
|
ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_locale_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LOCALE_H 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for ac_func in setlocale
|
|
do :
|
|
ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
|
|
if test "x$ac_cv_func_setlocale" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_SETLOCALE 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
#
|
|
# was --with-tuning specified?
|
|
#
|
|
|
|
# Check whether --with-tuning was given.
|
|
if test "${with_tuning+set}" = set; then :
|
|
withval=$with_tuning; use_tuning="$withval"
|
|
else
|
|
use_tuning="no"
|
|
fi
|
|
|
|
|
|
case "$use_tuning" in
|
|
large)
|
|
if ! $use_threads; then
|
|
as_fn_error $? "Large-system tuning requires threads." "$LINENO" 5
|
|
fi
|
|
|
|
$as_echo "#define TUNE_LARGE 1" >>confdefs.h
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using large-system tuning" >&5
|
|
$as_echo "using large-system tuning" >&6; }
|
|
;;
|
|
no|default)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using default tuning" >&5
|
|
$as_echo "using default tuning" >&6; }
|
|
;;
|
|
yes|*)
|
|
as_fn_error $? "You must specify \"large\" or \"default\" for --with-tuning." "$LINENO" 5
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# was --enable-querytrace specified?
|
|
#
|
|
# Check whether --enable-querytrace was given.
|
|
if test "${enable_querytrace+set}" = set; then :
|
|
enableval=$enable_querytrace; want_querytrace="$enableval"
|
|
else
|
|
want_querytrace="no"
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
|
|
$as_echo_n "checking whether to enable query trace logging... " >&6; }
|
|
case "$want_querytrace" in
|
|
yes)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
|
|
|
|
;;
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
;;
|
|
*)
|
|
as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# Substitutions
|
|
#
|
|
|
|
BIND9_TOP_BUILDDIR=`pwd`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "X$srcdir" != "X"; then
|
|
BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
|
|
BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
|
|
BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
|
|
BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
|
|
BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
|
|
BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
|
|
BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
|
|
else
|
|
BIND9_ISC_BUILDINCLUDE=""
|
|
BIND9_ISCCC_BUILDINCLUDE=""
|
|
BIND9_ISCCFG_BUILDINCLUDE=""
|
|
BIND9_DNS_BUILDINCLUDE=""
|
|
BIND9_LWRES_BUILDINCLUDE=""
|
|
BIND9_BIND9_BUILDINCLUDE=""
|
|
BIND9_IRS_BUILDINCLUDE=""
|
|
fi
|
|
|
|
|
|
BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
|
|
|
|
|
|
BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
|
|
|
|
. "$srcdir/version"
|
|
BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
|
|
|
|
BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
|
|
|
|
BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
|
|
|
|
BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
|
|
|
|
BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
|
|
|
|
BIND9_VERSIONSHORT="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
|
|
|
|
|
|
BIND9_SRCID="SRCID=unset_id"
|
|
if test -f "${srcdir}/srcid"; then
|
|
. "${srcdir}/srcid"
|
|
BIND9_SRCID="SRCID=$SRCID"
|
|
elif test -d "${srcdir}/.git"; then
|
|
BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$ac_configure_args"; then
|
|
BIND9_CONFIGARGS="defaults"
|
|
else
|
|
for a in $ac_configure_args
|
|
do
|
|
BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
|
|
done
|
|
fi
|
|
BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
|
|
BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
|
|
|
|
|
|
|
|
LIBISC_API="$srcdir/lib/isc/api"
|
|
|
|
|
|
LIBISCCC_API="$srcdir/lib/isccc/api"
|
|
|
|
|
|
LIBISCCFG_API="$srcdir/lib/isccfg/api"
|
|
|
|
|
|
LIBDNS_API="$srcdir/lib/dns/api"
|
|
|
|
|
|
LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
|
|
|
|
|
|
LIBBIND9_API="$srcdir/lib/bind9/api"
|
|
|
|
|
|
LIBLWRES_API="$srcdir/lib/lwres/api"
|
|
|
|
|
|
LIBIRS_API="$srcdir/lib/irs/api"
|
|
|
|
#
|
|
# Configure any DLZ drivers.
|
|
#
|
|
# If config.dlz.in selects one or more DLZ drivers, it will set
|
|
# CONTRIB_DLZ to a non-empty value, which will be our clue to
|
|
# build DLZ drivers in contrib.
|
|
#
|
|
# This section has to come after the libtool stuff because it needs to
|
|
# know how to name the driver object files.
|
|
#
|
|
|
|
CONTRIB_DLZ=""
|
|
DLZ_DRIVER_INCLUDES=""
|
|
DLZ_DRIVER_LIBS=""
|
|
DLZ_DRIVER_SRCS=""
|
|
DLZ_DRIVER_OBJS=""
|
|
DLZ_SYSTEM_TEST=""
|
|
DLZ_DRIVER_MYSQL_INCLUDES=""
|
|
DLZ_DRIVER_MYSQL_LIBS=""
|
|
|
|
#
|
|
# Configure support for building a shared library object
|
|
#
|
|
# Even when libtool is available it can't always be relied upon
|
|
# to build an object that can be dlopen()'ed, but this is necessary
|
|
# for building the dlzexternal system test, so we'll try it the
|
|
# old-fashioned way.
|
|
#
|
|
SO="so"
|
|
SO_CFLAGS=""
|
|
SO_LDFLAGS=""
|
|
SO_LD=""
|
|
SO_TARGETS=""
|
|
SO_STRIP="cat"
|
|
|
|
|
|
# Check whether --with-dlopen was given.
|
|
if test "${with_dlopen+set}" = set; then :
|
|
withval=$with_dlopen;
|
|
else
|
|
with_dlopen="auto"
|
|
fi
|
|
|
|
|
|
#
|
|
# Disable for SunOS
|
|
#
|
|
case $host in #(
|
|
*-sunos*) :
|
|
with_dlopen="no" ;; #(
|
|
*) :
|
|
;;
|
|
esac
|
|
|
|
#
|
|
# If PIC is disabled, dlopen must also be
|
|
#
|
|
if test "$pic_mode" = "no"; then :
|
|
case $with_dlopen in #(
|
|
auto) :
|
|
with_dlopen="no" ;; #(
|
|
yes) :
|
|
as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
|
|
*) :
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
case $with_dlopen in #(
|
|
auto|yes) :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
|
|
$as_echo_n "checking for library containing dlopen... " >&6; }
|
|
if ${ac_cv_search_dlopen+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char dlopen ();
|
|
int
|
|
main ()
|
|
{
|
|
return dlopen ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' dl; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_search_dlopen=$ac_res
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if ${ac_cv_search_dlopen+:} false; then :
|
|
break
|
|
fi
|
|
done
|
|
if ${ac_cv_search_dlopen+:} false; then :
|
|
|
|
else
|
|
ac_cv_search_dlopen=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
|
|
$as_echo "$ac_cv_search_dlopen" >&6; }
|
|
ac_res=$ac_cv_search_dlopen
|
|
if test "$ac_res" != no; then :
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
fi
|
|
|
|
for ac_func in dlopen dlclose dlsym
|
|
do :
|
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
with_dlopen="yes"
|
|
else
|
|
with_dlopen="no"
|
|
fi
|
|
done
|
|
|
|
;; #(
|
|
*) :
|
|
;;
|
|
esac
|
|
|
|
if test "$with_dlopen" = "yes"; then :
|
|
case $host in #(
|
|
*-linux*|*-gnu*) :
|
|
|
|
LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
|
|
SO_CFLAGS="-fPIC"
|
|
SO_LDFLAGS=""
|
|
if test "$use_libtool" = "yes"; then :
|
|
|
|
SO_LDFLAGS="-Xcompiler -shared"
|
|
SO_LD="${CC}"
|
|
|
|
else
|
|
|
|
SO_LDFLAGS="-shared"
|
|
SO_LD="${CC}"
|
|
|
|
fi
|
|
;; #(
|
|
*-freebsd*|*-openbsd*|*-netbsd*) :
|
|
|
|
LDFLAGS="${LDFLAGS} -Wl,-E"
|
|
SO_CFLAGS="-fpic"
|
|
if test "$use_libtool" = "yes"; then :
|
|
|
|
SO_LDFLAGS="-Xcompiler -shared"
|
|
SO_LD="${CC}"
|
|
|
|
else
|
|
|
|
SO_LDFLAGS="-shared"
|
|
SO_LD="${CC}"
|
|
|
|
fi
|
|
;; #(
|
|
*-darwin*) :
|
|
|
|
SO_CFLAGS="-fPIC"
|
|
SO_LD="${CC}"
|
|
if test "$use_libtool" = "yes"; then :
|
|
|
|
SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
|
|
|
|
else
|
|
|
|
SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
|
|
|
|
fi
|
|
;; #(
|
|
*-solaris*) :
|
|
|
|
SO_CFLAGS="-KPIC"
|
|
SO_LDFLAGS="-G -z text"
|
|
SO_LD="ld"
|
|
;; #(
|
|
ia64-hp-hpux*) :
|
|
|
|
SO_CFLAGS="+z"
|
|
SO_LDFLAGS="-b"
|
|
SO_LD="${CC}"
|
|
;; #(
|
|
*) :
|
|
|
|
SO_CFLAGS="-fPIC"
|
|
;;
|
|
esac
|
|
if test "$GCC" = "yes"; then :
|
|
|
|
SO_CFLAGS="-fPIC"
|
|
if test -z "$SO_LD"; then :
|
|
if test "$use_libtool" = "yes"; then :
|
|
|
|
SO_LDFLAGS="-Xcompiler -shared"
|
|
SO_LD="${CC}"
|
|
|
|
else
|
|
|
|
SO_LDFLAGS="-shared"
|
|
SO_LD="${CC}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
# If we still don't know how to make shared objects, don't make any.
|
|
if test -n "$SO_LD"; then :
|
|
SO_TARGETS="\${SO_TARGETS}"
|
|
|
|
$as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CFLAGS="$CFLAGS $SO_CFLAGS"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
|
|
#
|
|
# Permission to use, copy, modify, and distribute this software for any
|
|
# purpose with or without fee is hereby granted, provided that the above
|
|
# copyright notice and this permission notice appear in all copies.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
|
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
|
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
# PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
#
|
|
# Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
|
|
#
|
|
dlzdir='${DLZ_DRIVER_DIR}'
|
|
|
|
#
|
|
# Private autoconf macro to simplify configuring drivers:
|
|
#
|
|
# DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
|
|
#
|
|
# where:
|
|
# DEFINE is FOO (to define -DDLZ_FOO)
|
|
# DRIVER is dlz_foo_driver (sources without the .c)
|
|
# INCLUDES is any necessary include definitions
|
|
# LIBS is any necessary library definitions
|
|
#
|
|
|
|
|
|
#
|
|
# Check for the various DLZ drivers
|
|
#
|
|
|
|
#
|
|
# Was --with-dlz-postgres specified?
|
|
#
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
|
|
$as_echo_n "checking for Postgres DLZ driver... " >&6; }
|
|
|
|
# Check whether --with-dlz_postgres was given.
|
|
if test "${with_dlz_postgres+set}" = set; then :
|
|
withval=$with_dlz_postgres; use_dlz_postgres="$withval"
|
|
else
|
|
use_dlz_postgres="no"
|
|
fi
|
|
|
|
|
|
if test "$use_dlz_postgres" != "no"
|
|
then
|
|
if test "$use_dlz_postgres" != "yes"
|
|
then
|
|
for ac_prog in pg_config
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_PG_CONFIG+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $PG_CONFIG in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $use_dlz_postgres/bin
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
PG_CONFIG=$ac_cv_path_PG_CONFIG
|
|
if test -n "$PG_CONFIG"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
|
|
$as_echo "$PG_CONFIG" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$PG_CONFIG" && break
|
|
done
|
|
test -n "$PG_CONFIG" || PG_CONFIG="not found"
|
|
|
|
else
|
|
for ac_prog in pg_config
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_path_PG_CONFIG+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
case $PG_CONFIG in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
PG_CONFIG=$ac_cv_path_PG_CONFIG
|
|
if test -n "$PG_CONFIG"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
|
|
$as_echo "$PG_CONFIG" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$PG_CONFIG" && break
|
|
done
|
|
test -n "$PG_CONFIG" || PG_CONFIG="not found"
|
|
|
|
fi
|
|
|
|
if test "$PG_CONFIG" != "not found"
|
|
then
|
|
use_dlz_postgres=`$PG_CONFIG --includedir`
|
|
use_dlz_postgres_lib=`$PG_CONFIG --libdir`
|
|
else
|
|
pgprefix="$use_dlz_postgres"
|
|
use_dlz_postgres="$pgprefix/include"
|
|
use_dlz_postgres_lib="$pgprefix/lib"
|
|
fi
|
|
fi
|
|
|
|
if test "$use_dlz_postgres" = "yes/include"
|
|
then
|
|
# User did not specify path and Postgres didn't say - guess it
|
|
pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
|
|
for d in $pgdirs
|
|
do
|
|
if test -f $d/include/libpq-fe.h
|
|
then
|
|
use_dlz_postgres=$d/include
|
|
use_dlz_postgres_lib=$d/lib
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
|
|
if test "$use_dlz_postgres" = "yes/include"
|
|
then
|
|
# Still no joy, give up
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
|
|
$as_echo "not found" >&6; }
|
|
as_fn_error $? "No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" "$LINENO" 5
|
|
fi
|
|
|
|
case "$use_dlz_postgres" in
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
;;
|
|
*)
|
|
|
|
CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
|
|
for i in dlz_postgres_driver
|
|
do
|
|
DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
|
|
DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
|
|
done
|
|
if test -n "-I$use_dlz_postgres"
|
|
then
|
|
DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
|
|
DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
|
|
fi
|
|
if test -n "-L$use_dlz_postgres_lib -lpq"
|
|
then
|
|
DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
|
|
DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
|
|
$as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
|
|
;;
|
|
esac
|
|
|
|
|
|
#
|
|
# Was --with-dlz-mysql specified?
|
|
#
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
|
|
$as_echo_n "checking for MySQL DLZ driver... " >&6; }
|
|
|
|
# Check whether --with-dlz_mysql was given.
|
|
if test "${with_dlz_mysql+set}" = set; then :
|
|
withval=$with_dlz_mysql; use_dlz_mysql="$withval"
|
|
else
|
|
use_dlz_mysql="no"
|
|
fi
|
|
|
|
|
|
mysql_include=""
|
|
mysql_lib=""
|
|
if test "$use_dlz_mysql" = "yes"
|
|
then
|
|
for ac_prog in mysql_config
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$MYSQL_CONFIG"; then
|
|
ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
ac_cv_prog_MYSQL_CONFIG="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
|
|
if test -n "$MYSQL_CONFIG"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
|
|
$as_echo "$MYSQL_CONFIG" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$MYSQL_CONFIG" && break
|
|
done
|
|
|
|
if test -n "$MYSQL_CONFIG"
|
|
then
|
|
mysql_include=`${MYSQL_CONFIG} --include`
|
|
mysql_lib=`${MYSQL_CONFIG} --libs`
|
|
use_dlz_mysql="config"
|
|
|
|
else
|
|
# User did not specify a path - guess it
|
|
mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
|
|
for d in $mysqldirs
|
|
do
|
|
if test -f $d/include/mysql/mysql.h
|
|
then
|
|
use_dlz_mysql=$d
|
|
mysql_include=$d/include/mysql
|
|
break
|
|
elif test -f $d/include/mysql.h
|
|
then
|
|
use_dlz_mysql=$d
|
|
mysql_include=$d/include
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
elif test "$use_dlz_mysql" != "no"
|
|
then
|
|
d=$use_dlz_mysql
|
|
if test -f $d/include/mysql/mysql.h
|
|
then
|
|
mysql_include=$d/include/mysql
|
|
elif test -f $d/include/mysql.h
|
|
then
|
|
mysql_include=$d/include
|
|
fi
|
|
fi
|
|
|
|
if test "$use_dlz_mysql" = "yes"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
|
|
$as_echo "not found" >&6; }
|
|
as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
|
|
fi
|
|
|
|
case "$use_dlz_mysql" in
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
;;
|
|
config)
|
|
|
|
CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
|
|
for i in dlz_mysql_driver
|
|
do
|
|
DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
|
|
DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
|
|
done
|
|
if test -n "${mysql_include}"
|
|
then
|
|
DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
|
|
DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
|
|
fi
|
|
if test -n "${mysql_lib}"
|
|
then
|
|
DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
|
|
DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
|
|
$as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
|
|
;;
|
|
*)
|
|
if test -d "$use_dlz_mysql/lib/mysql"
|
|
then
|
|
mysql_lib="$use_dlz_mysql/lib/mysql"
|
|
else
|
|
mysql_lib="$use_dlz_mysql/lib"
|
|
fi
|
|
|
|
CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
|
|
for i in dlz_mysql_driver
|
|
do
|
|
DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
|
|
DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
|
|
done
|
|
if test -n "-I${mysql_include}"
|
|
then
|
|
DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
|
|
DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
|
|
fi
|
|
if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
|
|
then
|
|
DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
|
|
DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
|
|
$as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
|
|
;;
|
|
esac
|
|
|
|
|
|
#
|
|
# Was --with-dlz-bdb specified?
|
|
#
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
|
|
$as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
|
|
|
|
# Check whether --with-dlz_bdb was given.
|
|
if test "${with_dlz_bdb+set}" = set; then :
|
|
withval=$with_dlz_bdb; use_dlz_bdb="$withval"
|
|
else
|
|
use_dlz_bdb="no"
|
|
fi
|
|
|
|
|
|
case "$use_dlz_bdb" in
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
;;
|
|
*)
|
|
if test "$use_dlz_bdb" = "yes"
|
|
then
|
|
# User did not specify a path - guess directories
|
|
bdbdirs="/usr/local /usr/pkg /usr"
|
|
elif test -d "$use_dlz_bdb"
|
|
then
|
|
# User specified directory and it exists
|
|
bdbdirs="$use_dlz_bdb"
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
|
|
$as_echo "not found" >&6; }
|
|
as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
|
|
bdbdirs=""
|
|
fi
|
|
|
|
# Use path we were given or guessed. This is insanely
|
|
# complicated because we have to search for a bunch of
|
|
# platform-specific variations and have to check
|
|
# separately for include and library directories.
|
|
|
|
# Set both to yes, so we can check them later
|
|
dlz_bdb_inc="yes"
|
|
dlz_bdb_libs="yes"
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
|
|
$as_echo "" >&6; }
|
|
for dd in $bdbdirs
|
|
do
|
|
# Skip nonexistent directories
|
|
if test ! -d "$dd"
|
|
then
|
|
continue
|
|
fi
|
|
|
|
# Check other locations for includes.
|
|
# Order is important (sigh).
|
|
|
|
bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
|
|
# include a blank element first
|
|
for d in "" $bdb_incdirs
|
|
do
|
|
if test -f "$dd/include${d}/db.h"
|
|
then
|
|
dlz_bdb_inc="-I$dd/include${d}"
|
|
break
|
|
fi
|
|
done
|
|
|
|
# Give up on this directory if we couldn't
|
|
# find the include subdir
|
|
|
|
if test "$dlz_bdb_inc" = "yes"
|
|
then
|
|
continue
|
|
fi
|
|
|
|
# Look for libname other than libdb.so.
|
|
# Order is important (sigh).
|
|
|
|
bdb_libnames="db53 db-5.3 db51 db-5.1 db48 db-4.8 db47 db-4.7 db46 db-4.6 db45 db-4.5 db44 db-4.4 db43 db-4.3 db42 db-4.2 db41 db-4.1 db"
|
|
for d in $bdb_libnames
|
|
do
|
|
if test "$dd" = "/usr"
|
|
then
|
|
as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
|
|
$as_echo_n "checking for db_create in -l$d... " >&6; }
|
|
if eval \${$as_ac_Lib+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-l$d $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char db_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return db_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
eval "$as_ac_Lib=yes"
|
|
else
|
|
eval "$as_ac_Lib=no"
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
eval ac_res=\$$as_ac_Lib
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
$as_echo "$ac_res" >&6; }
|
|
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
|
|
dlz_bdb_libs="-l${d}"
|
|
fi
|
|
|
|
if test $dlz_bdb_libs != "yes"
|
|
then
|
|
break
|
|
fi
|
|
elif test -f "$dd/lib/lib${d}.so"
|
|
then
|
|
dlz_bdb_libs="-L${dd}/lib -l${d}"
|
|
break
|
|
fi
|
|
done
|
|
|
|
# If we found both incdir and lib, we're done
|
|
if test "$dlz_bdb_libs" != "yes"
|
|
then
|
|
break
|
|
fi
|
|
|
|
# Otherwise, we're starting over
|
|
|
|
dlz_bdb_inc="yes"
|
|
dlz_bdb_libs="yes"
|
|
done
|
|
|
|
# Done searching, now make sure we got everything.
|
|
|
|
if test "$dlz_bdb_inc" = "yes"
|
|
then
|
|
as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
|
|
fi
|
|
|
|
if test "$dlz_bdb_libs" = "yes"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
|
|
$as_echo "not found" >&6; }
|
|
as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
|
|
fi
|
|
|
|
|
|
CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
|
|
for i in dlz_bdb_driver dlz_bdbhpt_driver
|
|
do
|
|
DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
|
|
DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
|
|
done
|
|
if test -n "$dlz_bdb_inc"
|
|
then
|
|
DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
|
|
DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
|
|
fi
|
|
if test -n "$dlz_bdb_libs"
|
|
then
|
|
DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
|
|
DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
|
|
$as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
|
|
|
|
ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
|
|
|
|
;;
|
|
esac
|
|
|
|
|
|
#
|
|
# Was --with-dlz-filesystem specified?
|
|
#
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
|
|
$as_echo_n "checking for file system DLZ driver... " >&6; }
|
|
|
|
# Check whether --with-dlz_filesystem was given.
|
|
if test "${with_dlz_filesystem+set}" = set; then :
|
|
withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
|
|
else
|
|
use_dlz_filesystem="no"
|
|
fi
|
|
|
|
|
|
case "$use_dlz_filesystem" in
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
;;
|
|
*)
|
|
|
|
CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
|
|
for i in dlz_filesystem_driver
|
|
do
|
|
DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
|
|
DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
|
|
done
|
|
if test -n ""
|
|
then
|
|
DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
|
|
DLZ_DRIVER_FILESYSTEM_INCLUDES=""
|
|
fi
|
|
if test -n ""
|
|
then
|
|
DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
|
|
DLZ_DRIVER_FILESYSTEM_LIBS=""
|
|
fi
|
|
|
|
DLZ_SYSTEM_TEST=filesystem
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
;;
|
|
esac
|
|
|
|
|
|
#
|
|
# Was --with-dlz-ldap specified?
|
|
#
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
|
|
$as_echo_n "checking for LDAP DLZ driver... " >&6; }
|
|
|
|
# Check whether --with-dlz_ldap was given.
|
|
if test "${with_dlz_ldap+set}" = set; then :
|
|
withval=$with_dlz_ldap; use_dlz_ldap="$withval"
|
|
else
|
|
use_dlz_ldap="no"
|
|
fi
|
|
|
|
|
|
if test "$use_dlz_ldap" = "yes"
|
|
then
|
|
# User did not specify a path - guess it
|
|
ldapdirs="/usr /usr/local /usr/pkg"
|
|
for d in $ldapdirs
|
|
do
|
|
if test -f $d/include/ldap.h
|
|
then
|
|
use_dlz_ldap=$d
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
|
|
if test "$use_dlz_ldap" = "yes"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
|
|
$as_echo "not found" >&6; }
|
|
as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
|
|
fi
|
|
|
|
case "$use_dlz_ldap" in
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
;;
|
|
*)
|
|
|
|
CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
|
|
for i in dlz_ldap_driver
|
|
do
|
|
DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
|
|
DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
|
|
done
|
|
if test -n "-I$use_dlz_ldap/include"
|
|
then
|
|
DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
|
|
DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
|
|
fi
|
|
if test -n "-L$use_dlz_ldap/lib -lldap -llber"
|
|
then
|
|
DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
|
|
DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
|
|
$as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
|
|
;;
|
|
esac
|
|
|
|
|
|
#
|
|
# Was --with-dlz-odbc specified?
|
|
#
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
|
|
$as_echo_n "checking for ODBC DLZ driver... " >&6; }
|
|
|
|
# Check whether --with-dlz_odbc was given.
|
|
if test "${with_dlz_odbc+set}" = set; then :
|
|
withval=$with_dlz_odbc; use_dlz_odbc="$withval"
|
|
else
|
|
use_dlz_odbc="no"
|
|
fi
|
|
|
|
|
|
if test "$use_dlz_odbc" = "yes"
|
|
then
|
|
# User did not specify a path - guess it
|
|
libodbc_found=no
|
|
sql_h_found=no
|
|
ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
|
|
if test "x$ac_cv_header_sql_h" = xyes; then :
|
|
sql_h_found=yes
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
|
|
$as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
|
|
if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lodbc $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char SQLConnect ();
|
|
int
|
|
main ()
|
|
{
|
|
return SQLConnect ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_lib_odbc_SQLConnect=yes
|
|
else
|
|
ac_cv_lib_odbc_SQLConnect=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
|
|
$as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
|
|
if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
|
|
libodbc_found=yes
|
|
fi
|
|
|
|
|
|
if test $libodbc_found = "yes" -o $sql_h_found = "yes"
|
|
then
|
|
use_dlz_odbc=system
|
|
dlz_odbc_include=""
|
|
dlz_odbc_libs="-lodbc"
|
|
else
|
|
odbcdirs="/usr /usr/local /usr/pkg"
|
|
for d in $odbcdirs
|
|
do
|
|
if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
|
|
then
|
|
use_dlz_odbc=$d
|
|
dlz_odbc_include="-I$use_dlz_odbc/include"
|
|
dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
fi
|
|
|
|
case "$use_dlz_odbc" in
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
;;
|
|
yes)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
|
|
$as_echo "not found" >&6; }
|
|
as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
|
|
;;
|
|
*)
|
|
|
|
CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
|
|
for i in dlz_odbc_driver
|
|
do
|
|
DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
|
|
DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
|
|
done
|
|
if test -n "$dlz_odbc_include"
|
|
then
|
|
DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
|
|
DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
|
|
fi
|
|
if test -n "$dlz_odbc_libs"
|
|
then
|
|
DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
|
|
DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
|
|
$as_echo "using ODBC from $use_dlz_odbc" >&6; }
|
|
;;
|
|
esac
|
|
|
|
|
|
#
|
|
# Was --with-dlz-stub specified?
|
|
#
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
|
|
$as_echo_n "checking for stub DLZ driver... " >&6; }
|
|
|
|
# Check whether --with-dlz_stub was given.
|
|
if test "${with_dlz_stub+set}" = set; then :
|
|
withval=$with_dlz_stub; use_dlz_stub="$withval"
|
|
else
|
|
use_dlz_stub="no"
|
|
fi
|
|
|
|
|
|
case "$use_dlz_stub" in
|
|
no)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
;;
|
|
*)
|
|
|
|
|
|
CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
|
|
for i in dlz_stub_driver
|
|
do
|
|
DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
|
|
DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
|
|
done
|
|
if test -n ""
|
|
then
|
|
DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
|
|
DLZ_DRIVER_STUB_INCLUDES=""
|
|
fi
|
|
if test -n ""
|
|
then
|
|
DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
|
|
DLZ_DRIVER_STUB_LIBS=""
|
|
fi
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
;;
|
|
esac
|
|
|
|
# Add any additional DLZ drivers here.
|
|
|
|
#
|
|
# Finally, some generic stuff that applies to all drivers, assuming
|
|
# we're compiling contrib DLZ drivers at all.
|
|
#
|
|
if test -n "$CONTRIB_DLZ"
|
|
then
|
|
CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
|
|
|
|
#
|
|
# Where to find DLZ driver header files.
|
|
#
|
|
DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
|
|
|
|
#
|
|
# Initialization and shutdown wrappers, helper functions.
|
|
#
|
|
DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
|
|
DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
|
|
$as_echo_n "checking contributed DLZ drivers... " >&6; }
|
|
|
|
if test -n "$CONTRIB_DLZ"
|
|
then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
|
|
ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
|
|
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
DLZ_DRIVER_RULES=/dev/null
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "yes" = "$cross_compiling"; then
|
|
if test -z "$BUILD_CC"; then
|
|
as_fn_error $? "BUILD_CC not set" "$LINENO" 5
|
|
fi
|
|
BUILD_CFLAGS="$BUILD_CFLAGS"
|
|
BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
|
|
BUILD_LDFLAGS="$BUILD_LDFLAGS"
|
|
BUILD_LIBS="$BUILD_LIBS"
|
|
else
|
|
BUILD_CC="$CC"
|
|
BUILD_CFLAGS="$CFLAGS"
|
|
BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
|
|
BUILD_LDFLAGS="$LDFLAGS"
|
|
BUILD_LIBS="$LIBS"
|
|
fi
|
|
|
|
NEWFLAGS=""
|
|
for e in $BUILD_LDFLAGS ; do
|
|
case $e in
|
|
-L*)
|
|
case $host_os in
|
|
netbsd*)
|
|
ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
|
|
NEWFLAGS="$NEWFLAGS $e $ee"
|
|
;;
|
|
freebsd*)
|
|
ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
|
|
NEWFLAGS="$NEWFLAGS $e $ee"
|
|
;;
|
|
solaris*)
|
|
ee=`echo $e | sed -e 's%^-L%-R%'`
|
|
NEWFLAGS="$NEWFLAGS $e $ee"
|
|
;;
|
|
*)
|
|
NEWFLAGS="$NEWFLAGS $e"
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
NEWFLAGS="$NEWFLAGS $e"
|
|
;;
|
|
esac
|
|
done
|
|
BUILD_LDFLAGS="$NEWFLAGS"
|
|
|
|
NEWFLAGS=""
|
|
for e in $DNS_GSSAPI_LIBS ; do
|
|
case $e in
|
|
-L*)
|
|
case $host_os in
|
|
netbsd*)
|
|
ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
|
|
NEWFLAGS="$NEWFLAGS $e $ee"
|
|
;;
|
|
freebsd*)
|
|
ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
|
|
NEWFLAGS="$NEWFLAGS $e $ee"
|
|
;;
|
|
solaris*)
|
|
ee=`echo $e | sed -e 's%^-L%-R%'`
|
|
NEWFLAGS="$NEWFLAGS $e $ee"
|
|
;;
|
|
*)
|
|
NEWFLAGS="$NEWFLAGS $e"
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
NEWFLAGS="$NEWFLAGS $e"
|
|
;;
|
|
esac
|
|
done
|
|
DNS_GSSAPI_LIBS="$NEWFLAGS"
|
|
|
|
NEWFLAGS=""
|
|
for e in $ISC_OPENSSL_LIBS ; do
|
|
case $e in
|
|
-L*)
|
|
case $host_os in
|
|
netbsd*)
|
|
ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
|
|
NEWFLAGS="$NEWFLAGS $e $ee"
|
|
;;
|
|
freebsd*)
|
|
ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
|
|
NEWFLAGS="$NEWFLAGS $e $ee"
|
|
;;
|
|
solaris*)
|
|
ee=`echo $e | sed -e 's%^-L%-R%'`
|
|
NEWFLAGS="$NEWFLAGS $e $ee"
|
|
;;
|
|
*)
|
|
NEWFLAGS="$NEWFLAGS $e"
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
NEWFLAGS="$NEWFLAGS $e"
|
|
;;
|
|
esac
|
|
done
|
|
ISC_OPENSSL_LIBS="$NEWFLAGS"
|
|
|
|
NEWFLAGS=""
|
|
for e in $DNS_CRYPTO_LIBS ; do
|
|
case $e in
|
|
-L*)
|
|
case $host_os in
|
|
netbsd*)
|
|
ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
|
|
NEWFLAGS="$NEWFLAGS $e $ee"
|
|
;;
|
|
freebsd*)
|
|
ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
|
|
NEWFLAGS="$NEWFLAGS $e $ee"
|
|
;;
|
|
solaris*)
|
|
ee=`echo $e | sed -e 's%^-L%-R%'`
|
|
NEWFLAGS="$NEWFLAGS $e $ee"
|
|
;;
|
|
*)
|
|
NEWFLAGS="$NEWFLAGS $e"
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
NEWFLAGS="$NEWFLAGS $e"
|
|
;;
|
|
esac
|
|
done
|
|
DNS_CRYPTO_LIBS="$NEWFLAGS"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# Commands to run at the end of config.status.
|
|
# Don't just put these into configure, it won't work right if somebody
|
|
# runs config.status directly (which autoconf allows).
|
|
#
|
|
|
|
ac_config_commands="$ac_config_commands chmod"
|
|
|
|
|
|
#
|
|
# Files to configure. These are listed here because we used to
|
|
# specify them as arguments to AC_OUTPUT. It's (now) ok to move these
|
|
# elsewhere if there's a good reason for doing so.
|
|
#
|
|
|
|
ac_config_files="$ac_config_files Makefile bin/Makefile bin/check/Makefile bin/confgen/Makefile bin/confgen/unix/Makefile bin/delv/Makefile bin/dig/Makefile bin/dnssec/Makefile bin/named/Makefile bin/named/unix/Makefile bin/nsupdate/Makefile bin/pkcs11/Makefile bin/python/Makefile bin/python/dnssec-checkds.py bin/python/dnssec-coverage.py bin/python/dnssec-keymgr.py bin/python/isc/Makefile bin/python/isc/__init__.py bin/python/isc/checkds.py bin/python/isc/coverage.py bin/python/isc/dnskey.py bin/python/isc/eventlist.py bin/python/isc/keydict.py bin/python/isc/keyevent.py bin/python/isc/keymgr.py bin/python/isc/keyseries.py bin/python/isc/keyzone.py bin/python/isc/policy.py bin/python/isc/rndc.py bin/python/isc/tests/Makefile bin/python/isc/tests/dnskey_test.py bin/python/isc/tests/policy_test.py bin/python/isc/utils.py bin/rndc/Makefile bin/tests/Makefile bin/tests/headerdep_test.sh bin/tests/optional/Makefile bin/tests/pkcs11/Makefile bin/tests/pkcs11/benchmarks/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/dlzexternal/Makefile bin/tests/system/dlzexternal/ns1/dlzs.conf bin/tests/system/dyndb/Makefile bin/tests/system/dyndb/driver/Makefile bin/tests/system/inline/checkdsa.sh bin/tests/system/lwresd/Makefile bin/tests/system/pipelined/Makefile bin/tests/system/rndc/Makefile bin/tests/system/rsabigexponent/Makefile bin/tests/system/tkey/Makefile bin/tests/virtual-time/Makefile bin/tests/virtual-time/conf.sh bin/tools/Makefile contrib/scripts/check-secure-delegation.pl contrib/scripts/zone-edit.sh doc/Makefile doc/arm/Makefile doc/arm/noteversion.xml doc/arm/pkgversion.xml doc/arm/releaseinfo.xml doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter doc/misc/Makefile doc/tex/Makefile doc/tex/armstyle.sty doc/xsl/Makefile doc/xsl/isc-docbook-chunk.xsl doc/xsl/isc-docbook-html.xsl doc/xsl/isc-manpage.xsl doc/xsl/isc-notes-html.xsl isc-config.sh lib/Makefile lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/dns/tests/Makefile lib/irs/Makefile lib/irs/include/Makefile lib/irs/include/irs/Makefile lib/irs/include/irs/netdb.h lib/irs/include/irs/platform.h lib/irs/tests/Makefile lib/isc/$arch/Makefile lib/isc/$arch/include/Makefile lib/isc/$arch/include/isc/Makefile lib/isc/$thread_dir/Makefile lib/isc/$thread_dir/include/Makefile lib/isc/$thread_dir/include/isc/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/include/pk11/Makefile lib/isc/include/pkcs11/Makefile lib/isc/nls/Makefile lib/isc/tests/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isc/unix/include/pkcs11/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccc/tests/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/isccfg/tests/Makefile lib/lwres/Makefile lib/lwres/include/Makefile lib/lwres/include/lwres/Makefile lib/lwres/include/lwres/netdb.h lib/lwres/include/lwres/platform.h lib/lwres/man/Makefile lib/lwres/tests/Makefile lib/lwres/unix/Makefile lib/lwres/unix/include/Makefile lib/lwres/unix/include/lwres/Makefile lib/samples/Makefile lib/samples/Makefile-postinstall make/Makefile make/mkdep unit/unittest.sh util/check-make-install"
|
|
|
|
|
|
#
|
|
# Do it
|
|
#
|
|
|
|
cat >confcache <<\_ACEOF
|
|
# This file is a shell script that caches the results of configure
|
|
# tests run on this system so they can be shared between configure
|
|
# scripts and configure runs, see configure's option --config-cache.
|
|
# It is not useful on other systems. If it contains results you don't
|
|
# want to keep, you may remove or edit it.
|
|
#
|
|
# config.status only pays attention to the cache file if you give it
|
|
# the --recheck option to rerun configure.
|
|
#
|
|
# `ac_cv_env_foo' variables (set or unset) will be overridden when
|
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the
|
|
# following values.
|
|
|
|
_ACEOF
|
|
|
|
# The following way of writing the cache mishandles newlines in values,
|
|
# but we know of no workaround that is simple, portable, and efficient.
|
|
# So, we kill variables containing newlines.
|
|
# Ultrix sh set writes to stderr and can't be redirected directly,
|
|
# and sets the high bit in the cache file unless we assign to the vars.
|
|
(
|
|
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
|
eval ac_val=\$$ac_var
|
|
case $ac_val in #(
|
|
*${as_nl}*)
|
|
case $ac_var in #(
|
|
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
|
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
|
esac
|
|
case $ac_var in #(
|
|
_ | IFS | as_nl) ;; #(
|
|
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
|
*) { eval $ac_var=; unset $ac_var;} ;;
|
|
esac ;;
|
|
esac
|
|
done
|
|
|
|
(set) 2>&1 |
|
|
case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
|
*${as_nl}ac_space=\ *)
|
|
# `set' does not quote correctly, so add quotes: double-quote
|
|
# substitution turns \\\\ into \\, and sed turns \\ into \.
|
|
sed -n \
|
|
"s/'/'\\\\''/g;
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
|
;; #(
|
|
*)
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
|
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
|
;;
|
|
esac |
|
|
sort
|
|
) |
|
|
sed '
|
|
/^ac_cv_env_/b end
|
|
t clear
|
|
:clear
|
|
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
|
t end
|
|
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
|
:end' >>confcache
|
|
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
|
if test -w "$cache_file"; then
|
|
if test "x$cache_file" != "x/dev/null"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
|
$as_echo "$as_me: updating cache $cache_file" >&6;}
|
|
if test ! -f "$cache_file" || test -h "$cache_file"; then
|
|
cat confcache >"$cache_file"
|
|
else
|
|
case $cache_file in #(
|
|
*/* | ?:*)
|
|
mv -f confcache "$cache_file"$$ &&
|
|
mv -f "$cache_file"$$ "$cache_file" ;; #(
|
|
*)
|
|
mv -f confcache "$cache_file" ;;
|
|
esac
|
|
fi
|
|
fi
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
|
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
|
fi
|
|
fi
|
|
rm -f confcache
|
|
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
# Let make expand exec_prefix.
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
|
|
DEFS=-DHAVE_CONFIG_H
|
|
|
|
ac_libobjs=
|
|
ac_ltlibobjs=
|
|
U=
|
|
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
|
# 1. Remove the extension, and $U if already installed.
|
|
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
|
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
|
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
|
# will be set to the directory where LIBOBJS objects are built.
|
|
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
|
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
|
done
|
|
LIBOBJS=$ac_libobjs
|
|
|
|
LTLIBOBJS=$ac_ltlibobjs
|
|
|
|
|
|
|
|
|
|
: "${CONFIG_STATUS=./config.status}"
|
|
ac_write_fail=0
|
|
ac_clean_files_save=$ac_clean_files
|
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
|
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
|
as_write_fail=0
|
|
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
|
#! $SHELL
|
|
# Generated by $as_me.
|
|
# Run this file to recreate the current configuration.
|
|
# Compiler output produced by configure, useful for debugging
|
|
# configure, is in config.log if it exists.
|
|
|
|
debug=false
|
|
ac_cs_recheck=false
|
|
ac_cs_silent=false
|
|
|
|
SHELL=\${CONFIG_SHELL-$SHELL}
|
|
export SHELL
|
|
_ASEOF
|
|
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
|
## -------------------- ##
|
|
## M4sh Initialization. ##
|
|
## -------------------- ##
|
|
|
|
# Be more Bourne compatible
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
|
emulate sh
|
|
NULLCMD=:
|
|
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
|
# is contrary to our usage. Disable this feature.
|
|
alias -g '${1+"$@"}'='"$@"'
|
|
setopt NO_GLOB_SUBST
|
|
else
|
|
case `(set -o) 2>/dev/null` in #(
|
|
*posix*) :
|
|
set -o posix ;; #(
|
|
*) :
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
|
|
as_nl='
|
|
'
|
|
export as_nl
|
|
# Printing a long string crashes Solaris 7 /usr/bin/printf.
|
|
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
|
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
# Prefer a ksh shell builtin over an external printf program on Solaris,
|
|
# but without wasting forks for bash or zsh.
|
|
if test -z "$BASH_VERSION$ZSH_VERSION" \
|
|
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
as_echo='print -r --'
|
|
as_echo_n='print -rn --'
|
|
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
as_echo='printf %s\n'
|
|
as_echo_n='printf %s'
|
|
else
|
|
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
|
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
|
as_echo_n='/usr/ucb/echo -n'
|
|
else
|
|
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
|
as_echo_n_body='eval
|
|
arg=$1;
|
|
case $arg in #(
|
|
*"$as_nl"*)
|
|
expr "X$arg" : "X\\(.*\\)$as_nl";
|
|
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
|
esac;
|
|
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
|
'
|
|
export as_echo_n_body
|
|
as_echo_n='sh -c $as_echo_n_body as_echo'
|
|
fi
|
|
export as_echo_body
|
|
as_echo='sh -c $as_echo_body as_echo'
|
|
fi
|
|
|
|
# The user is always right.
|
|
if test "${PATH_SEPARATOR+set}" != set; then
|
|
PATH_SEPARATOR=:
|
|
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
|
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
|
PATH_SEPARATOR=';'
|
|
}
|
|
fi
|
|
|
|
|
|
# IFS
|
|
# We need space, tab and new line, in precisely that order. Quoting is
|
|
# there to prevent editors from complaining about space-tab.
|
|
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
# splitting by setting IFS to empty value.)
|
|
IFS=" "" $as_nl"
|
|
|
|
# Find who we are. Look in the path if we contain no directory separator.
|
|
as_myself=
|
|
case $0 in #((
|
|
*[\\/]* ) as_myself=$0 ;;
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
# in which case we are not to be found in the path.
|
|
if test "x$as_myself" = x; then
|
|
as_myself=$0
|
|
fi
|
|
if test ! -f "$as_myself"; then
|
|
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Unset variables that we do not need and which cause bugs (e.g. in
|
|
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
|
# suppresses any "Segmentation fault" message there. '((' could
|
|
# trigger a bug in pdksh 5.2.14.
|
|
for as_var in BASH_ENV ENV MAIL MAILPATH
|
|
do eval test x\${$as_var+set} = xset \
|
|
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
|
done
|
|
PS1='$ '
|
|
PS2='> '
|
|
PS4='+ '
|
|
|
|
# NLS nuisances.
|
|
LC_ALL=C
|
|
export LC_ALL
|
|
LANGUAGE=C
|
|
export LANGUAGE
|
|
|
|
# CDPATH.
|
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
|
|
|
|
# as_fn_error STATUS ERROR [LINENO LOG_FD]
|
|
# ----------------------------------------
|
|
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
|
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
|
# script with STATUS, using 1 if that was 0.
|
|
as_fn_error ()
|
|
{
|
|
as_status=$1; test $as_status -eq 0 && as_status=1
|
|
if test "$4"; then
|
|
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
|
fi
|
|
$as_echo "$as_me: error: $2" >&2
|
|
as_fn_exit $as_status
|
|
} # as_fn_error
|
|
|
|
|
|
# as_fn_set_status STATUS
|
|
# -----------------------
|
|
# Set $? to STATUS, without forking.
|
|
as_fn_set_status ()
|
|
{
|
|
return $1
|
|
} # as_fn_set_status
|
|
|
|
# as_fn_exit STATUS
|
|
# -----------------
|
|
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
|
as_fn_exit ()
|
|
{
|
|
set +e
|
|
as_fn_set_status $1
|
|
exit $1
|
|
} # as_fn_exit
|
|
|
|
# as_fn_unset VAR
|
|
# ---------------
|
|
# Portably unset VAR.
|
|
as_fn_unset ()
|
|
{
|
|
{ eval $1=; unset $1;}
|
|
}
|
|
as_unset=as_fn_unset
|
|
# as_fn_append VAR VALUE
|
|
# ----------------------
|
|
# Append the text in VALUE to the end of the definition contained in VAR. Take
|
|
# advantage of any shell optimizations that allow amortized linear growth over
|
|
# repeated appends, instead of the typical quadratic growth present in naive
|
|
# implementations.
|
|
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
|
eval 'as_fn_append ()
|
|
{
|
|
eval $1+=\$2
|
|
}'
|
|
else
|
|
as_fn_append ()
|
|
{
|
|
eval $1=\$$1\$2
|
|
}
|
|
fi # as_fn_append
|
|
|
|
# as_fn_arith ARG...
|
|
# ------------------
|
|
# Perform arithmetic evaluation on the ARGs, and store the result in the
|
|
# global $as_val. Take advantage of shells that can avoid forks. The arguments
|
|
# must be portable across $(()) and expr.
|
|
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
|
eval 'as_fn_arith ()
|
|
{
|
|
as_val=$(( $* ))
|
|
}'
|
|
else
|
|
as_fn_arith ()
|
|
{
|
|
as_val=`expr "$@" || test $? -eq 1`
|
|
}
|
|
fi # as_fn_arith
|
|
|
|
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
as_expr=expr
|
|
else
|
|
as_expr=false
|
|
fi
|
|
|
|
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
as_basename=basename
|
|
else
|
|
as_basename=false
|
|
fi
|
|
|
|
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
|
as_dirname=dirname
|
|
else
|
|
as_dirname=false
|
|
fi
|
|
|
|
as_me=`$as_basename -- "$0" ||
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
X"$0" : 'X\(//\)$' \| \
|
|
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
$as_echo X/"$0" |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\/\(\/\/\)$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\/\(\/\).*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
s/.*/./; q'`
|
|
|
|
# Avoid depending upon Character Ranges.
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
|
as_cr_digits='0123456789'
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|
|
|
ECHO_C= ECHO_N= ECHO_T=
|
|
case `echo -n x` in #(((((
|
|
-n*)
|
|
case `echo 'xy\c'` in
|
|
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
|
xy) ECHO_C='\c';;
|
|
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
|
ECHO_T=' ';;
|
|
esac;;
|
|
*)
|
|
ECHO_N='-n';;
|
|
esac
|
|
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
|
if test -d conf$$.dir; then
|
|
rm -f conf$$.dir/conf$$.file
|
|
else
|
|
rm -f conf$$.dir
|
|
mkdir conf$$.dir 2>/dev/null
|
|
fi
|
|
if (echo >conf$$.file) 2>/dev/null; then
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
|
as_ln_s='ln -s'
|
|
# ... but there are two gotchas:
|
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
# In both cases, we have to default to `cp -pR'.
|
|
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
|
as_ln_s='cp -pR'
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then
|
|
as_ln_s=ln
|
|
else
|
|
as_ln_s='cp -pR'
|
|
fi
|
|
else
|
|
as_ln_s='cp -pR'
|
|
fi
|
|
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
|
rmdir conf$$.dir 2>/dev/null
|
|
|
|
|
|
# as_fn_mkdir_p
|
|
# -------------
|
|
# Create "$as_dir" as a directory, including parents if necessary.
|
|
as_fn_mkdir_p ()
|
|
{
|
|
|
|
case $as_dir in #(
|
|
-*) as_dir=./$as_dir;;
|
|
esac
|
|
test -d "$as_dir" || eval $as_mkdir_p || {
|
|
as_dirs=
|
|
while :; do
|
|
case $as_dir in #(
|
|
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
|
*) as_qdir=$as_dir;;
|
|
esac
|
|
as_dirs="'$as_qdir' $as_dirs"
|
|
as_dir=`$as_dirname -- "$as_dir" ||
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
|
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
|
$as_echo X"$as_dir" |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)[^/].*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\).*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
s/.*/./; q'`
|
|
test -d "$as_dir" && break
|
|
done
|
|
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
|
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
|
|
|
|
|
} # as_fn_mkdir_p
|
|
if mkdir -p . 2>/dev/null; then
|
|
as_mkdir_p='mkdir -p "$as_dir"'
|
|
else
|
|
test -d ./-p && rmdir ./-p
|
|
as_mkdir_p=false
|
|
fi
|
|
|
|
|
|
# as_fn_executable_p FILE
|
|
# -----------------------
|
|
# Test if FILE is an executable regular file.
|
|
as_fn_executable_p ()
|
|
{
|
|
test -f "$1" && test -x "$1"
|
|
} # as_fn_executable_p
|
|
as_test_x='test -x'
|
|
as_executable_p=as_fn_executable_p
|
|
|
|
# Sed expression to map a string onto a valid CPP name.
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
|
|
|
# Sed expression to map a string onto a valid variable name.
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
|
|
|
|
|
exec 6>&1
|
|
## ----------------------------------- ##
|
|
## Main body of $CONFIG_STATUS script. ##
|
|
## ----------------------------------- ##
|
|
_ASEOF
|
|
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
# Save the log message, to keep $0 and so on meaningful, and to
|
|
# report actual input values of CONFIG_FILES etc. instead of their
|
|
# values after options handling.
|
|
ac_log="
|
|
This file was extended by BIND $as_me 9.11, which was
|
|
generated by GNU Autoconf 2.69. Invocation command line was
|
|
|
|
CONFIG_FILES = $CONFIG_FILES
|
|
CONFIG_HEADERS = $CONFIG_HEADERS
|
|
CONFIG_LINKS = $CONFIG_LINKS
|
|
CONFIG_COMMANDS = $CONFIG_COMMANDS
|
|
$ $0 $@
|
|
|
|
on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
"
|
|
|
|
_ACEOF
|
|
|
|
case $ac_config_files in *"
|
|
"*) set x $ac_config_files; shift; ac_config_files=$*;;
|
|
esac
|
|
|
|
case $ac_config_headers in *"
|
|
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
|
esac
|
|
|
|
|
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
# Files that config.status was made for.
|
|
config_files="$ac_config_files"
|
|
config_headers="$ac_config_headers"
|
|
config_commands="$ac_config_commands"
|
|
|
|
_ACEOF
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
ac_cs_usage="\
|
|
\`$as_me' instantiates files and other configuration actions
|
|
from templates according to the current configuration. Unless the files
|
|
and actions are specified as TAGs, all are instantiated by default.
|
|
|
|
Usage: $0 [OPTION]... [TAG]...
|
|
|
|
-h, --help print this help, then exit
|
|
-V, --version print version number and configuration settings, then exit
|
|
--config print configuration, then exit
|
|
-q, --quiet, --silent
|
|
do not print progress messages
|
|
-d, --debug don't remove temporary files
|
|
--recheck update $as_me by reconfiguring in the same conditions
|
|
--file=FILE[:TEMPLATE]
|
|
instantiate the configuration file FILE
|
|
--header=FILE[:TEMPLATE]
|
|
instantiate the configuration header FILE
|
|
|
|
Configuration files:
|
|
$config_files
|
|
|
|
Configuration headers:
|
|
$config_headers
|
|
|
|
Configuration commands:
|
|
$config_commands
|
|
|
|
Report bugs to <info@isc.org>.
|
|
BIND home page: <https://www.isc.org/downloads/BIND/>."
|
|
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
|
ac_cs_version="\\
|
|
BIND config.status 9.11
|
|
configured by $0, generated by GNU Autoconf 2.69,
|
|
with options \\"\$ac_cs_config\\"
|
|
|
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
|
This config.status script is free software; the Free Software Foundation
|
|
gives unlimited permission to copy, distribute and modify it."
|
|
|
|
ac_pwd='$ac_pwd'
|
|
srcdir='$srcdir'
|
|
INSTALL='$INSTALL'
|
|
AWK='$AWK'
|
|
test -n "\$AWK" || AWK=awk
|
|
_ACEOF
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
# The default lists apply if the user does not specify any file.
|
|
ac_need_defaults=:
|
|
while test $# != 0
|
|
do
|
|
case $1 in
|
|
--*=?*)
|
|
ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
|
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
|
ac_shift=:
|
|
;;
|
|
--*=)
|
|
ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
|
ac_optarg=
|
|
ac_shift=:
|
|
;;
|
|
*)
|
|
ac_option=$1
|
|
ac_optarg=$2
|
|
ac_shift=shift
|
|
;;
|
|
esac
|
|
|
|
case $ac_option in
|
|
# Handling of the options.
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
ac_cs_recheck=: ;;
|
|
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
|
$as_echo "$ac_cs_version"; exit ;;
|
|
--config | --confi | --conf | --con | --co | --c )
|
|
$as_echo "$ac_cs_config"; exit ;;
|
|
--debug | --debu | --deb | --de | --d | -d )
|
|
debug=: ;;
|
|
--file | --fil | --fi | --f )
|
|
$ac_shift
|
|
case $ac_optarg in
|
|
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
'') as_fn_error $? "missing file argument" ;;
|
|
esac
|
|
as_fn_append CONFIG_FILES " '$ac_optarg'"
|
|
ac_need_defaults=false;;
|
|
--header | --heade | --head | --hea )
|
|
$ac_shift
|
|
case $ac_optarg in
|
|
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
esac
|
|
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
|
ac_need_defaults=false;;
|
|
--he | --h)
|
|
# Conflict between --help and --header
|
|
as_fn_error $? "ambiguous option: \`$1'
|
|
Try \`$0 --help' for more information.";;
|
|
--help | --hel | -h )
|
|
$as_echo "$ac_cs_usage"; exit ;;
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
| -silent | --silent | --silen | --sile | --sil | --si | --s)
|
|
ac_cs_silent=: ;;
|
|
|
|
# This is an error.
|
|
-*) as_fn_error $? "unrecognized option: \`$1'
|
|
Try \`$0 --help' for more information." ;;
|
|
|
|
*) as_fn_append ac_config_targets " $1"
|
|
ac_need_defaults=false ;;
|
|
|
|
esac
|
|
shift
|
|
done
|
|
|
|
ac_configure_extra_args=
|
|
|
|
if $ac_cs_silent; then
|
|
exec 6>/dev/null
|
|
ac_configure_extra_args="$ac_configure_extra_args --silent"
|
|
fi
|
|
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
if \$ac_cs_recheck; then
|
|
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
|
shift
|
|
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
|
CONFIG_SHELL='$SHELL'
|
|
export CONFIG_SHELL
|
|
exec "\$@"
|
|
fi
|
|
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
exec 5>>config.log
|
|
{
|
|
echo
|
|
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
|
## Running $as_me. ##
|
|
_ASBOX
|
|
$as_echo "$ac_log"
|
|
} >&5
|
|
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
#
|
|
# INIT-COMMANDS
|
|
#
|
|
|
|
|
|
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
|
# if CDPATH is set.
|
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
|
|
sed_quote_subst='$sed_quote_subst'
|
|
double_quote_subst='$double_quote_subst'
|
|
delay_variable_subst='$delay_variable_subst'
|
|
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
|
|
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
|
|
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
|
|
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
|
|
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
|
|
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
|
|
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
|
|
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
|
|
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
|
|
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
|
|
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
|
|
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
|
|
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
|
|
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
|
|
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
|
|
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
|
|
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
|
|
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
|
|
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
|
|
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
|
|
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
|
|
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
|
|
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
|
|
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
|
|
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
|
|
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
|
|
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
|
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
|
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
|
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
|
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
|
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
|
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
|
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
|
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
|
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
|
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
|
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
|
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
|
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
|
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
|
|
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
|
|
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
|
|
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
|
|
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
|
|
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
|
|
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
|
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
|
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
|
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
|
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
|
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
|
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
|
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
|
|
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
|
|
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
|
|
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
|
|
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
|
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
|
|
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
|
|
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
|
|
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
|
|
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
|
|
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
|
|
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
|
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
|
|
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
|
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
|
|
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
|
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
|
|
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
|
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
|
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
|
|
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
|
|
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
|
|
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
|
|
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
|
|
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
|
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
|
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
|
|
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
|
|
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
|
|
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
|
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
|
|
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
|
|
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
|
|
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
|
|
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
|
|
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
|
|
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
|
|
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
|
|
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
|
|
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
|
|
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
|
|
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
|
|
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
|
|
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
|
|
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
|
|
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
|
|
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
|
|
|
|
LTCC='$LTCC'
|
|
LTCFLAGS='$LTCFLAGS'
|
|
compiler='$compiler_DEFAULT'
|
|
|
|
# A function that is used when there is no print builtin or printf.
|
|
func_fallback_echo ()
|
|
{
|
|
eval 'cat <<_LTECHO_EOF
|
|
\$1
|
|
_LTECHO_EOF'
|
|
}
|
|
|
|
# Quote evaled strings.
|
|
for var in SHELL \
|
|
ECHO \
|
|
PATH_SEPARATOR \
|
|
SED \
|
|
GREP \
|
|
EGREP \
|
|
FGREP \
|
|
LD \
|
|
NM \
|
|
LN_S \
|
|
lt_SP2NL \
|
|
lt_NL2SP \
|
|
reload_flag \
|
|
OBJDUMP \
|
|
deplibs_check_method \
|
|
file_magic_cmd \
|
|
file_magic_glob \
|
|
want_nocaseglob \
|
|
DLLTOOL \
|
|
sharedlib_from_linklib_cmd \
|
|
AR \
|
|
AR_FLAGS \
|
|
archiver_list_spec \
|
|
STRIP \
|
|
RANLIB \
|
|
CC \
|
|
CFLAGS \
|
|
compiler \
|
|
lt_cv_sys_global_symbol_pipe \
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
|
lt_cv_sys_global_symbol_to_import \
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
|
lt_cv_nm_interface \
|
|
nm_file_list_spec \
|
|
lt_cv_truncate_bin \
|
|
lt_prog_compiler_no_builtin_flag \
|
|
lt_prog_compiler_pic \
|
|
lt_prog_compiler_wl \
|
|
lt_prog_compiler_static \
|
|
lt_cv_prog_compiler_c_o \
|
|
need_locks \
|
|
MANIFEST_TOOL \
|
|
DSYMUTIL \
|
|
NMEDIT \
|
|
LIPO \
|
|
OTOOL \
|
|
OTOOL64 \
|
|
shrext_cmds \
|
|
export_dynamic_flag_spec \
|
|
whole_archive_flag_spec \
|
|
compiler_needs_object \
|
|
with_gnu_ld \
|
|
allow_undefined_flag \
|
|
no_undefined_flag \
|
|
hardcode_libdir_flag_spec \
|
|
hardcode_libdir_separator \
|
|
exclude_expsyms \
|
|
include_expsyms \
|
|
file_list_spec \
|
|
variables_saved_for_relink \
|
|
libname_spec \
|
|
library_names_spec \
|
|
soname_spec \
|
|
install_override_mode \
|
|
finish_eval \
|
|
old_striplib \
|
|
striplib; do
|
|
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
|
*[\\\\\\\`\\"\\\$]*)
|
|
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
|
;;
|
|
*)
|
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
|
;;
|
|
esac
|
|
done
|
|
|
|
# Double-quote double-evaled strings.
|
|
for var in reload_cmds \
|
|
old_postinstall_cmds \
|
|
old_postuninstall_cmds \
|
|
old_archive_cmds \
|
|
extract_expsyms_cmds \
|
|
old_archive_from_new_cmds \
|
|
old_archive_from_expsyms_cmds \
|
|
archive_cmds \
|
|
archive_expsym_cmds \
|
|
module_cmds \
|
|
module_expsym_cmds \
|
|
export_symbols_cmds \
|
|
prelink_cmds \
|
|
postlink_cmds \
|
|
postinstall_cmds \
|
|
postuninstall_cmds \
|
|
finish_cmds \
|
|
sys_lib_search_path_spec \
|
|
configure_time_dlsearch_path \
|
|
configure_time_lt_sys_library_path; do
|
|
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
|
*[\\\\\\\`\\"\\\$]*)
|
|
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
|
;;
|
|
*)
|
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
|
;;
|
|
esac
|
|
done
|
|
|
|
ac_aux_dir='$ac_aux_dir'
|
|
|
|
# See if we are running on zsh, and set the options that allow our
|
|
# commands through without removal of \ escapes INIT.
|
|
if test -n "\${ZSH_VERSION+set}"; then
|
|
setopt NO_GLOB_SUBST
|
|
fi
|
|
|
|
|
|
PACKAGE='$PACKAGE'
|
|
VERSION='$VERSION'
|
|
RM='$RM'
|
|
ofile='$ofile'
|
|
|
|
|
|
|
|
|
|
_ACEOF
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
|
|
# Handling of arguments.
|
|
for ac_config_target in $ac_config_targets
|
|
do
|
|
case $ac_config_target in
|
|
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
|
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
|
"make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
|
|
"make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
|
|
"contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
|
|
"$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
|
|
"contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
|
|
"contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
|
|
"chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
|
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
|
"bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
|
|
"bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
|
|
"bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
|
|
"bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
|
|
"bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
|
|
"bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
|
|
"bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
|
|
"bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
|
|
"bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
|
|
"bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
|
|
"bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
|
|
"bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
|
|
"bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
|
|
"bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
|
|
"bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
|
|
"bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
|
|
"bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
|
|
"bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
|
|
"bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
|
|
"bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
|
|
"bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
|
|
"bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
|
|
"bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
|
|
"bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
|
|
"bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
|
|
"bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
|
|
"bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
|
|
"bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
|
|
"bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
|
|
"bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
|
|
"bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
|
|
"bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
|
|
"bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
|
|
"bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
|
|
"bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
|
|
"bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
|
|
"bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
|
|
"bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
|
|
"bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
|
|
"bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
|
|
"bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
|
|
"bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
|
|
"bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
|
|
"bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
|
|
"bin/tests/system/inline/checkdsa.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/inline/checkdsa.sh" ;;
|
|
"bin/tests/system/lwresd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/lwresd/Makefile" ;;
|
|
"bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
|
|
"bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
|
|
"bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
|
|
"bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
|
|
"bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
|
|
"bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
|
|
"bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
|
|
"contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
|
|
"contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
|
|
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
|
"doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
|
|
"doc/arm/noteversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/noteversion.xml" ;;
|
|
"doc/arm/pkgversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/pkgversion.xml" ;;
|
|
"doc/arm/releaseinfo.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/releaseinfo.xml" ;;
|
|
"doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
|
|
"doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
|
|
"doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
|
|
"doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
|
|
"doc/tex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex/Makefile" ;;
|
|
"doc/tex/armstyle.sty") CONFIG_FILES="$CONFIG_FILES doc/tex/armstyle.sty" ;;
|
|
"doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
|
|
"doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
|
|
"doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
|
|
"doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
|
|
"doc/xsl/isc-notes-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;;
|
|
"isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
|
|
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
|
"lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
|
|
"lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
|
|
"lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
|
|
"lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
|
|
"lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
|
|
"lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
|
|
"lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
|
|
"lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
|
|
"lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
|
|
"lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
|
|
"lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
|
|
"lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
|
|
"lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
|
|
"lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
|
|
"lib/isc/$arch/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/Makefile" ;;
|
|
"lib/isc/$arch/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;;
|
|
"lib/isc/$arch/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;;
|
|
"lib/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/Makefile" ;;
|
|
"lib/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/Makefile" ;;
|
|
"lib/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/isc/Makefile" ;;
|
|
"lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
|
|
"lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
|
|
"lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
|
|
"lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
|
|
"lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
|
|
"lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
|
|
"lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;;
|
|
"lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
|
|
"lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
|
|
"lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
|
|
"lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
|
|
"lib/isc/unix/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/pkcs11/Makefile" ;;
|
|
"lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
|
|
"lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
|
|
"lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
|
|
"lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
|
|
"lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
|
|
"lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
|
|
"lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
|
|
"lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
|
|
"lib/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/Makefile" ;;
|
|
"lib/lwres/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/Makefile" ;;
|
|
"lib/lwres/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/Makefile" ;;
|
|
"lib/lwres/include/lwres/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/netdb.h" ;;
|
|
"lib/lwres/include/lwres/platform.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/platform.h" ;;
|
|
"lib/lwres/man/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/man/Makefile" ;;
|
|
"lib/lwres/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/tests/Makefile" ;;
|
|
"lib/lwres/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/Makefile" ;;
|
|
"lib/lwres/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/Makefile" ;;
|
|
"lib/lwres/unix/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/lwres/Makefile" ;;
|
|
"lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
|
|
"lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
|
|
"make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
|
|
"make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
|
|
"unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
|
|
"util/check-make-install") CONFIG_FILES="$CONFIG_FILES util/check-make-install" ;;
|
|
|
|
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
|
esac
|
|
done
|
|
|
|
|
|
# If the user did not use the arguments to specify the items to instantiate,
|
|
# then the envvar interface is used. Set only those that are not.
|
|
# We use the long form for the default assignment because of an extremely
|
|
# bizarre bug on SunOS 4.1.3.
|
|
if $ac_need_defaults; then
|
|
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
|
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
|
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
|
fi
|
|
|
|
# Have a temporary directory for convenience. Make it in the build tree
|
|
# simply because there is no reason against having it here, and in addition,
|
|
# creating and moving files from /tmp can sometimes cause problems.
|
|
# Hook for its removal unless debugging.
|
|
# Note that there is a small window in which the directory will not be cleaned:
|
|
# after its creation but before its name has been assigned to `$tmp'.
|
|
$debug ||
|
|
{
|
|
tmp= ac_tmp=
|
|
trap 'exit_status=$?
|
|
: "${ac_tmp:=$tmp}"
|
|
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
|
' 0
|
|
trap 'as_fn_exit 1' 1 2 13 15
|
|
}
|
|
# Create a (secure) tmp directory for tmp files.
|
|
|
|
{
|
|
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
|
test -d "$tmp"
|
|
} ||
|
|
{
|
|
tmp=./conf$$-$RANDOM
|
|
(umask 077 && mkdir "$tmp")
|
|
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
|
ac_tmp=$tmp
|
|
|
|
# Set up the scripts for CONFIG_FILES section.
|
|
# No need to generate them if there are no CONFIG_FILES.
|
|
# This happens for instance with `./config.status config.h'.
|
|
if test -n "$CONFIG_FILES"; then
|
|
|
|
if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
|
|
ac_cs_awk_getline=:
|
|
ac_cs_awk_pipe_init=
|
|
ac_cs_awk_read_file='
|
|
while ((getline aline < (F[key])) > 0)
|
|
print(aline)
|
|
close(F[key])'
|
|
ac_cs_awk_pipe_fini=
|
|
else
|
|
ac_cs_awk_getline=false
|
|
ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
|
|
ac_cs_awk_read_file='
|
|
print "|#_!!_#|"
|
|
print "cat " F[key] " &&"
|
|
'$ac_cs_awk_pipe_init
|
|
# The final `:' finishes the AND list.
|
|
ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
|
|
fi
|
|
ac_cr=`echo X | tr X '\015'`
|
|
# On cygwin, bash can eat \r inside `` if the user requested igncr.
|
|
# But we know of no other shell where ac_cr would be empty at this
|
|
# point, so we can use a bashism as a fallback.
|
|
if test "x$ac_cr" = x; then
|
|
eval ac_cr=\$\'\\r\'
|
|
fi
|
|
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
|
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
|
ac_cs_awk_cr='\\r'
|
|
else
|
|
ac_cs_awk_cr=$ac_cr
|
|
fi
|
|
|
|
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
|
_ACEOF
|
|
|
|
# Create commands to substitute file output variables.
|
|
{
|
|
echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
|
|
echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
|
|
echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
|
|
echo "_ACAWK" &&
|
|
echo "_ACEOF"
|
|
} >conf$$files.sh &&
|
|
. ./conf$$files.sh ||
|
|
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
rm -f conf$$files.sh
|
|
|
|
{
|
|
echo "cat >conf$$subs.awk <<_ACEOF" &&
|
|
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
|
echo "_ACEOF"
|
|
} >conf$$subs.sh ||
|
|
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
|
ac_delim='%!_!# '
|
|
for ac_last_try in false false false false false :; do
|
|
. ./conf$$subs.sh ||
|
|
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
|
|
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
|
if test $ac_delim_n = $ac_delim_num; then
|
|
break
|
|
elif $ac_last_try; then
|
|
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
else
|
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
|
fi
|
|
done
|
|
rm -f conf$$subs.sh
|
|
|
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
|
_ACEOF
|
|
sed -n '
|
|
h
|
|
s/^/S["/; s/!.*/"]=/
|
|
p
|
|
g
|
|
s/^[^!]*!//
|
|
:repl
|
|
t repl
|
|
s/'"$ac_delim"'$//
|
|
t delim
|
|
:nl
|
|
h
|
|
s/\(.\{148\}\)..*/\1/
|
|
t more1
|
|
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
|
p
|
|
n
|
|
b repl
|
|
:more1
|
|
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
|
p
|
|
g
|
|
s/.\{148\}//
|
|
t nl
|
|
:delim
|
|
h
|
|
s/\(.\{148\}\)..*/\1/
|
|
t more2
|
|
s/["\\]/\\&/g; s/^/"/; s/$/"/
|
|
p
|
|
b
|
|
:more2
|
|
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
|
p
|
|
g
|
|
s/.\{148\}//
|
|
t delim
|
|
' <conf$$subs.awk | sed '
|
|
/^[^""]/{
|
|
N
|
|
s/\n//
|
|
}
|
|
' >>$CONFIG_STATUS || ac_write_fail=1
|
|
rm -f conf$$subs.awk
|
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
_ACAWK
|
|
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
|
for (key in S) S_is_set[key] = 1
|
|
FS = ""
|
|
\$ac_cs_awk_pipe_init
|
|
}
|
|
{
|
|
line = $ 0
|
|
nfields = split(line, field, "@")
|
|
substed = 0
|
|
len = length(field[1])
|
|
for (i = 2; i < nfields; i++) {
|
|
key = field[i]
|
|
keylen = length(key)
|
|
if (S_is_set[key]) {
|
|
value = S[key]
|
|
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
|
len += length(value) + length(field[++i])
|
|
substed = 1
|
|
} else
|
|
len += 1 + keylen
|
|
}
|
|
if (nfields == 3 && !substed) {
|
|
key = field[2]
|
|
if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
|
|
\$ac_cs_awk_read_file
|
|
next
|
|
}
|
|
}
|
|
print line
|
|
}
|
|
\$ac_cs_awk_pipe_fini
|
|
_ACAWK
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
|
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
|
else
|
|
cat
|
|
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
|
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
|
_ACEOF
|
|
|
|
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
|
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
|
# trailing colons and then remove the whole line if VPATH becomes empty
|
|
# (actually we leave an empty line to preserve line numbers).
|
|
if test "x$srcdir" = x.; then
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
|
h
|
|
s///
|
|
s/^/:/
|
|
s/[ ]*$/:/
|
|
s/:\$(srcdir):/:/g
|
|
s/:\${srcdir}:/:/g
|
|
s/:@srcdir@:/:/g
|
|
s/^:*//
|
|
s/:*$//
|
|
x
|
|
s/\(=[ ]*\).*/\1/
|
|
G
|
|
s/\n//
|
|
s/^[^=]*=[ ]*$//
|
|
}'
|
|
fi
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
fi # test -n "$CONFIG_FILES"
|
|
|
|
# Set up the scripts for CONFIG_HEADERS section.
|
|
# No need to generate them if there are no CONFIG_HEADERS.
|
|
# This happens for instance with `./config.status Makefile'.
|
|
if test -n "$CONFIG_HEADERS"; then
|
|
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
|
BEGIN {
|
|
_ACEOF
|
|
|
|
# Transform confdefs.h into an awk script `defines.awk', embedded as
|
|
# here-document in config.status, that substitutes the proper values into
|
|
# config.h.in to produce config.h.
|
|
|
|
# Create a delimiter string that does not exist in confdefs.h, to ease
|
|
# handling of long lines.
|
|
ac_delim='%!_!# '
|
|
for ac_last_try in false false :; do
|
|
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
|
if test -z "$ac_tt"; then
|
|
break
|
|
elif $ac_last_try; then
|
|
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
|
else
|
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
|
fi
|
|
done
|
|
|
|
# For the awk script, D is an array of macro values keyed by name,
|
|
# likewise P contains macro parameters if any. Preserve backslash
|
|
# newline sequences.
|
|
|
|
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
|
sed -n '
|
|
s/.\{148\}/&'"$ac_delim"'/g
|
|
t rset
|
|
:rset
|
|
s/^[ ]*#[ ]*define[ ][ ]*/ /
|
|
t def
|
|
d
|
|
:def
|
|
s/\\$//
|
|
t bsnl
|
|
s/["\\]/\\&/g
|
|
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
|
D["\1"]=" \3"/p
|
|
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
|
d
|
|
:bsnl
|
|
s/["\\]/\\&/g
|
|
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
|
D["\1"]=" \3\\\\\\n"\\/p
|
|
t cont
|
|
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
|
t cont
|
|
d
|
|
:cont
|
|
n
|
|
s/.\{148\}/&'"$ac_delim"'/g
|
|
t clear
|
|
:clear
|
|
s/\\$//
|
|
t bsnlc
|
|
s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
|
d
|
|
:bsnlc
|
|
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
|
b cont
|
|
' <confdefs.h | sed '
|
|
s/'"$ac_delim"'/"\\\
|
|
"/g' >>$CONFIG_STATUS || ac_write_fail=1
|
|
|
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
for (key in D) D_is_set[key] = 1
|
|
FS = ""
|
|
}
|
|
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
|
line = \$ 0
|
|
split(line, arg, " ")
|
|
if (arg[1] == "#") {
|
|
defundef = arg[2]
|
|
mac1 = arg[3]
|
|
} else {
|
|
defundef = substr(arg[1], 2)
|
|
mac1 = arg[2]
|
|
}
|
|
split(mac1, mac2, "(") #)
|
|
macro = mac2[1]
|
|
prefix = substr(line, 1, index(line, defundef) - 1)
|
|
if (D_is_set[macro]) {
|
|
# Preserve the white space surrounding the "#".
|
|
print prefix "define", macro P[macro] D[macro]
|
|
next
|
|
} else {
|
|
# Replace #undef with comments. This is necessary, for example,
|
|
# in the case of _POSIX_SOURCE, which is predefined and required
|
|
# on some systems where configure will not decide to define it.
|
|
if (defundef == "undef") {
|
|
print "/*", prefix defundef, macro, "*/"
|
|
next
|
|
}
|
|
}
|
|
}
|
|
{ print }
|
|
_ACAWK
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
|
fi # test -n "$CONFIG_HEADERS"
|
|
|
|
|
|
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
|
shift
|
|
for ac_tag
|
|
do
|
|
case $ac_tag in
|
|
:[FHLC]) ac_mode=$ac_tag; continue;;
|
|
esac
|
|
case $ac_mode$ac_tag in
|
|
:[FHL]*:*);;
|
|
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
|
:[FH]-) ac_tag=-:-;;
|
|
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
|
esac
|
|
ac_save_IFS=$IFS
|
|
IFS=:
|
|
set x $ac_tag
|
|
IFS=$ac_save_IFS
|
|
shift
|
|
ac_file=$1
|
|
shift
|
|
|
|
case $ac_mode in
|
|
:L) ac_source=$1;;
|
|
:[FH])
|
|
ac_file_inputs=
|
|
for ac_f
|
|
do
|
|
case $ac_f in
|
|
-) ac_f="$ac_tmp/stdin";;
|
|
*) # Look for the file first in the build tree, then in the source tree
|
|
# (if the path is not absolute). The absolute path cannot be DOS-style,
|
|
# because $ac_f cannot contain `:'.
|
|
test -f "$ac_f" ||
|
|
case $ac_f in
|
|
[\\/$]*) false;;
|
|
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
|
esac ||
|
|
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
|
esac
|
|
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
|
as_fn_append ac_file_inputs " '$ac_f'"
|
|
done
|
|
|
|
# Let's still pretend it is `configure' which instantiates (i.e., don't
|
|
# use $as_me), people would be surprised to read:
|
|
# /* config.h. Generated by config.status. */
|
|
configure_input='Generated from '`
|
|
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
|
`' by configure.'
|
|
if test x"$ac_file" != x-; then
|
|
configure_input="$ac_file. $configure_input"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
|
$as_echo "$as_me: creating $ac_file" >&6;}
|
|
fi
|
|
# Neutralize special characters interpreted by sed in replacement strings.
|
|
case $configure_input in #(
|
|
*\&* | *\|* | *\\* )
|
|
ac_sed_conf_input=`$as_echo "$configure_input" |
|
|
sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
|
*) ac_sed_conf_input=$configure_input;;
|
|
esac
|
|
|
|
case $ac_tag in
|
|
*:-:* | *:-) cat >"$ac_tmp/stdin" \
|
|
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
|
esac
|
|
;;
|
|
esac
|
|
|
|
ac_dir=`$as_dirname -- "$ac_file" ||
|
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
X"$ac_file" : 'X\(//\)[^/]' \| \
|
|
X"$ac_file" : 'X\(//\)$' \| \
|
|
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
|
$as_echo X"$ac_file" |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)[^/].*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\).*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
s/.*/./; q'`
|
|
as_dir="$ac_dir"; as_fn_mkdir_p
|
|
ac_builddir=.
|
|
|
|
case "$ac_dir" in
|
|
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
*)
|
|
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
|
# A ".." for each directory in $ac_dir_suffix.
|
|
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
|
case $ac_top_builddir_sub in
|
|
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
esac ;;
|
|
esac
|
|
ac_abs_top_builddir=$ac_pwd
|
|
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
# for backward compatibility:
|
|
ac_top_builddir=$ac_top_build_prefix
|
|
|
|
case $srcdir in
|
|
.) # We are building in place.
|
|
ac_srcdir=.
|
|
ac_top_srcdir=$ac_top_builddir_sub
|
|
ac_abs_top_srcdir=$ac_pwd ;;
|
|
[\\/]* | ?:[\\/]* ) # Absolute name.
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
|
ac_top_srcdir=$srcdir
|
|
ac_abs_top_srcdir=$srcdir ;;
|
|
*) # Relative name.
|
|
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
esac
|
|
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
|
|
|
|
case $ac_mode in
|
|
:F)
|
|
#
|
|
# CONFIG_FILE
|
|
#
|
|
|
|
case $INSTALL in
|
|
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
|
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
|
esac
|
|
_ACEOF
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
# If the template does not know about datarootdir, expand it.
|
|
# FIXME: This hack should be removed a few years after 2.60.
|
|
ac_datarootdir_hack=; ac_datarootdir_seen=
|
|
ac_sed_dataroot='
|
|
/datarootdir/ {
|
|
p
|
|
q
|
|
}
|
|
/@datadir@/p
|
|
/@docdir@/p
|
|
/@infodir@/p
|
|
/@localedir@/p
|
|
/@mandir@/p'
|
|
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
|
*datarootdir*) ac_datarootdir_seen=yes;;
|
|
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
|
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
ac_datarootdir_hack='
|
|
s&@datadir@&$datadir&g
|
|
s&@docdir@&$docdir&g
|
|
s&@infodir@&$infodir&g
|
|
s&@localedir@&$localedir&g
|
|
s&@mandir@&$mandir&g
|
|
s&\\\${datarootdir}&$datarootdir&g' ;;
|
|
esac
|
|
_ACEOF
|
|
|
|
# Neutralize VPATH when `$srcdir' = `.'.
|
|
# Shell code in configure.ac might set extrasub.
|
|
# FIXME: do we really want to maintain this feature?
|
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
ac_sed_extra="$ac_vpsub
|
|
$extrasub
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
:t
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
|
s|@configure_input@|$ac_sed_conf_input|;t t
|
|
s&@top_builddir@&$ac_top_builddir_sub&;t t
|
|
s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
|
s&@srcdir@&$ac_srcdir&;t t
|
|
s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
|
s&@top_srcdir@&$ac_top_srcdir&;t t
|
|
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
|
s&@builddir@&$ac_builddir&;t t
|
|
s&@abs_builddir@&$ac_abs_builddir&;t t
|
|
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
|
s&@INSTALL@&$ac_INSTALL&;t t
|
|
$ac_datarootdir_hack
|
|
"
|
|
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
|
|
if $ac_cs_awk_getline; then
|
|
$AWK -f "$ac_tmp/subs.awk"
|
|
else
|
|
$AWK -f "$ac_tmp/subs.awk" | $SHELL
|
|
fi \
|
|
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
|
|
|
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
|
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
|
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
|
"$ac_tmp/out"`; test -z "$ac_out"; } &&
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
which seems to be undefined. Please make sure it is defined" >&5
|
|
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
which seems to be undefined. Please make sure it is defined" >&2;}
|
|
|
|
rm -f "$ac_tmp/stdin"
|
|
case $ac_file in
|
|
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
|
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
|
esac \
|
|
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
|
;;
|
|
:H)
|
|
#
|
|
# CONFIG_HEADER
|
|
#
|
|
if test x"$ac_file" != x-; then
|
|
{
|
|
$as_echo "/* $configure_input */" \
|
|
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
|
} >"$ac_tmp/config.h" \
|
|
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
|
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
|
$as_echo "$as_me: $ac_file is unchanged" >&6;}
|
|
else
|
|
rm -f "$ac_file"
|
|
mv "$ac_tmp/config.h" "$ac_file" \
|
|
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
|
fi
|
|
else
|
|
$as_echo "/* $configure_input */" \
|
|
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
|
|| as_fn_error $? "could not create -" "$LINENO" 5
|
|
fi
|
|
;;
|
|
|
|
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
|
$as_echo "$as_me: executing $ac_file commands" >&6;}
|
|
;;
|
|
esac
|
|
|
|
|
|
case $ac_file$ac_mode in
|
|
"libtool":C)
|
|
|
|
# See if we are running on zsh, and set the options that allow our
|
|
# commands through without removal of \ escapes.
|
|
if test -n "${ZSH_VERSION+set}"; then
|
|
setopt NO_GLOB_SUBST
|
|
fi
|
|
|
|
cfgfile=${ofile}T
|
|
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
|
$RM "$cfgfile"
|
|
|
|
cat <<_LT_EOF >> "$cfgfile"
|
|
#! $SHELL
|
|
# Generated automatically by $as_me ($PACKAGE) $VERSION
|
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
|
|
# Provide generalized library-building support services.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
|
|
# Copyright (C) 2014 Free Software Foundation, Inc.
|
|
# This is free software; see the source for copying conditions. There is NO
|
|
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
# GNU Libtool is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# As a special exception to the GNU General Public License, if you
|
|
# distribute this file as part of a program or library that is built
|
|
# using GNU Libtool, you may include this file under the same
|
|
# distribution terms that you use for the rest of that program.
|
|
#
|
|
# GNU Libtool is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
# The names of the tagged configurations supported by this script.
|
|
available_tags=''
|
|
|
|
# Configured defaults for sys_lib_dlsearch_path munging.
|
|
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
|
|
|
|
# ### BEGIN LIBTOOL CONFIG
|
|
|
|
# Which release of libtool.m4 was used?
|
|
macro_version=$macro_version
|
|
macro_revision=$macro_revision
|
|
|
|
# Whether or not to build shared libraries.
|
|
build_libtool_libs=$enable_shared
|
|
|
|
# Whether or not to build static libraries.
|
|
build_old_libs=$enable_static
|
|
|
|
# What type of objects to build.
|
|
pic_mode=$pic_mode
|
|
|
|
# Whether or not to optimize for fast installation.
|
|
fast_install=$enable_fast_install
|
|
|
|
# Shared archive member basename,for filename based shared library versioning on AIX.
|
|
shared_archive_member_spec=$shared_archive_member_spec
|
|
|
|
# Shell to use when invoking shell scripts.
|
|
SHELL=$lt_SHELL
|
|
|
|
# An echo program that protects backslashes.
|
|
ECHO=$lt_ECHO
|
|
|
|
# The PATH separator for the build system.
|
|
PATH_SEPARATOR=$lt_PATH_SEPARATOR
|
|
|
|
# The host system.
|
|
host_alias=$host_alias
|
|
host=$host
|
|
host_os=$host_os
|
|
|
|
# The build system.
|
|
build_alias=$build_alias
|
|
build=$build
|
|
build_os=$build_os
|
|
|
|
# A sed program that does not truncate output.
|
|
SED=$lt_SED
|
|
|
|
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
|
Xsed="\$SED -e 1s/^X//"
|
|
|
|
# A grep program that handles long lines.
|
|
GREP=$lt_GREP
|
|
|
|
# An ERE matcher.
|
|
EGREP=$lt_EGREP
|
|
|
|
# A literal string matcher.
|
|
FGREP=$lt_FGREP
|
|
|
|
# A BSD- or MS-compatible name lister.
|
|
NM=$lt_NM
|
|
|
|
# Whether we need soft or hard links.
|
|
LN_S=$lt_LN_S
|
|
|
|
# What is the maximum length of a command?
|
|
max_cmd_len=$max_cmd_len
|
|
|
|
# Object file suffix (normally "o").
|
|
objext=$ac_objext
|
|
|
|
# Executable file suffix (normally "").
|
|
exeext=$exeext
|
|
|
|
# whether the shell understands "unset".
|
|
lt_unset=$lt_unset
|
|
|
|
# turn spaces into newlines.
|
|
SP2NL=$lt_lt_SP2NL
|
|
|
|
# turn newlines into spaces.
|
|
NL2SP=$lt_lt_NL2SP
|
|
|
|
# convert \$build file names to \$host format.
|
|
to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
|
|
# convert \$build files to toolchain format.
|
|
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
|
|
# An object symbol dumper.
|
|
OBJDUMP=$lt_OBJDUMP
|
|
|
|
# Method to check whether dependent libraries are shared objects.
|
|
deplibs_check_method=$lt_deplibs_check_method
|
|
|
|
# Command to use when deplibs_check_method = "file_magic".
|
|
file_magic_cmd=$lt_file_magic_cmd
|
|
|
|
# How to find potential files when deplibs_check_method = "file_magic".
|
|
file_magic_glob=$lt_file_magic_glob
|
|
|
|
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
|
want_nocaseglob=$lt_want_nocaseglob
|
|
|
|
# DLL creation program.
|
|
DLLTOOL=$lt_DLLTOOL
|
|
|
|
# Command to associate shared and link libraries.
|
|
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
|
|
|
# The archiver.
|
|
AR=$lt_AR
|
|
|
|
# Flags to create an archive.
|
|
AR_FLAGS=$lt_AR_FLAGS
|
|
|
|
# How to feed a file listing to the archiver.
|
|
archiver_list_spec=$lt_archiver_list_spec
|
|
|
|
# A symbol stripping program.
|
|
STRIP=$lt_STRIP
|
|
|
|
# Commands used to install an old-style archive.
|
|
RANLIB=$lt_RANLIB
|
|
old_postinstall_cmds=$lt_old_postinstall_cmds
|
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
|
|
|
# Whether to use a lock for old archive extraction.
|
|
lock_old_archive_extraction=$lock_old_archive_extraction
|
|
|
|
# A C compiler.
|
|
LTCC=$lt_CC
|
|
|
|
# LTCC compiler flags.
|
|
LTCFLAGS=$lt_CFLAGS
|
|
|
|
# Take the output of nm and produce a listing of raw symbols and C names.
|
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
|
|
|
# Transform the output of nm in a proper C declaration.
|
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
|
|
|
# Transform the output of nm into a list of symbols to manually relocate.
|
|
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
|
|
|
|
# Transform the output of nm in a C name address pair.
|
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
|
|
|
# The name lister interface.
|
|
nm_interface=$lt_lt_cv_nm_interface
|
|
|
|
# Specify filename containing input files for \$NM.
|
|
nm_file_list_spec=$lt_nm_file_list_spec
|
|
|
|
# The root where to search for dependent libraries,and where our libraries should be installed.
|
|
lt_sysroot=$lt_sysroot
|
|
|
|
# Command to truncate a binary pipe.
|
|
lt_truncate_bin=$lt_lt_cv_truncate_bin
|
|
|
|
# The name of the directory that contains temporary libtool files.
|
|
objdir=$objdir
|
|
|
|
# Used to examine libraries when file_magic_cmd begins with "file".
|
|
MAGIC_CMD=$MAGIC_CMD
|
|
|
|
# Must we lock files when doing compilation?
|
|
need_locks=$lt_need_locks
|
|
|
|
# Manifest tool.
|
|
MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
|
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
|
DSYMUTIL=$lt_DSYMUTIL
|
|
|
|
# Tool to change global to local symbols on Mac OS X.
|
|
NMEDIT=$lt_NMEDIT
|
|
|
|
# Tool to manipulate fat objects and archives on Mac OS X.
|
|
LIPO=$lt_LIPO
|
|
|
|
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
|
|
OTOOL=$lt_OTOOL
|
|
|
|
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
|
|
OTOOL64=$lt_OTOOL64
|
|
|
|
# Old archive suffix (normally "a").
|
|
libext=$libext
|
|
|
|
# Shared library suffix (normally ".so").
|
|
shrext_cmds=$lt_shrext_cmds
|
|
|
|
# The commands to extract the exported symbol list from a shared archive.
|
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
|
|
|
# Variables whose values should be saved in libtool wrapper scripts and
|
|
# restored at link time.
|
|
variables_saved_for_relink=$lt_variables_saved_for_relink
|
|
|
|
# Do we need the "lib" prefix for modules?
|
|
need_lib_prefix=$need_lib_prefix
|
|
|
|
# Do we need a version for libraries?
|
|
need_version=$need_version
|
|
|
|
# Library versioning type.
|
|
version_type=$version_type
|
|
|
|
# Shared library runtime path variable.
|
|
runpath_var=$runpath_var
|
|
|
|
# Shared library path variable.
|
|
shlibpath_var=$shlibpath_var
|
|
|
|
# Is shlibpath searched before the hard-coded library search path?
|
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
|
|
|
# Format of library name prefix.
|
|
libname_spec=$lt_libname_spec
|
|
|
|
# List of archive names. First name is the real one, the rest are links.
|
|
# The last name is the one that the linker finds with -lNAME
|
|
library_names_spec=$lt_library_names_spec
|
|
|
|
# The coded name of the library, if different from the real name.
|
|
soname_spec=$lt_soname_spec
|
|
|
|
# Permission mode override for installation of shared libraries.
|
|
install_override_mode=$lt_install_override_mode
|
|
|
|
# Command to use after installation of a shared archive.
|
|
postinstall_cmds=$lt_postinstall_cmds
|
|
|
|
# Command to use after uninstallation of a shared archive.
|
|
postuninstall_cmds=$lt_postuninstall_cmds
|
|
|
|
# Commands used to finish a libtool library installation in a directory.
|
|
finish_cmds=$lt_finish_cmds
|
|
|
|
# As "finish_cmds", except a single script fragment to be evaled but
|
|
# not shown.
|
|
finish_eval=$lt_finish_eval
|
|
|
|
# Whether we should hardcode library paths into libraries.
|
|
hardcode_into_libs=$hardcode_into_libs
|
|
|
|
# Compile-time system search path for libraries.
|
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
|
|
|
# Detected run-time system search path for libraries.
|
|
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
|
|
|
|
# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
|
|
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
|
|
|
|
# Whether dlopen is supported.
|
|
dlopen_support=$enable_dlopen
|
|
|
|
# Whether dlopen of programs is supported.
|
|
dlopen_self=$enable_dlopen_self
|
|
|
|
# Whether dlopen of statically linked programs is supported.
|
|
dlopen_self_static=$enable_dlopen_self_static
|
|
|
|
# Commands to strip libraries.
|
|
old_striplib=$lt_old_striplib
|
|
striplib=$lt_striplib
|
|
|
|
|
|
# The linker used to build libraries.
|
|
LD=$lt_LD
|
|
|
|
# How to create reloadable object files.
|
|
reload_flag=$lt_reload_flag
|
|
reload_cmds=$lt_reload_cmds
|
|
|
|
# Commands used to build an old-style archive.
|
|
old_archive_cmds=$lt_old_archive_cmds
|
|
|
|
# A language specific compiler.
|
|
CC=$lt_compiler
|
|
|
|
# Is the compiler the GNU compiler?
|
|
with_gcc=$GCC
|
|
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
|
# How to pass a linker flag through the compiler.
|
|
wl=$lt_lt_prog_compiler_wl
|
|
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
|
# Does compiler simultaneously support -c and -o options?
|
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
|
|
|
# Whether or not to add -lc for building shared libraries.
|
|
build_libtool_need_lc=$archive_cmds_need_lc
|
|
|
|
# Whether or not to disallow shared libs when runtime libs are static.
|
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
|
|
|
# Compiler flag to allow reflexive dlopens.
|
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
|
|
|
# Compiler flag to generate shared objects directly from archives.
|
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
|
|
|
# Whether the compiler copes with passing no objects directly.
|
|
compiler_needs_object=$lt_compiler_needs_object
|
|
|
|
# Create an old-style archive from a shared archive.
|
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
|
|
|
# Create a temporary old-style archive to link instead of a shared archive.
|
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
|
|
|
# Commands used to build a shared archive.
|
|
archive_cmds=$lt_archive_cmds
|
|
archive_expsym_cmds=$lt_archive_expsym_cmds
|
|
|
|
# Commands used to build a loadable module if different from building
|
|
# a shared archive.
|
|
module_cmds=$lt_module_cmds
|
|
module_expsym_cmds=$lt_module_expsym_cmds
|
|
|
|
# Whether we are building with GNU ld or not.
|
|
with_gnu_ld=$lt_with_gnu_ld
|
|
|
|
# Flag that allows shared libraries with undefined symbols to be built.
|
|
allow_undefined_flag=$lt_allow_undefined_flag
|
|
|
|
# Flag that enforces no undefined symbols.
|
|
no_undefined_flag=$lt_no_undefined_flag
|
|
|
|
# Flag to hardcode \$libdir into a binary during linking.
|
|
# This must work even if \$libdir does not exist
|
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
|
|
|
# Whether we need a single "-rpath" flag with a separated argument.
|
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
|
|
|
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
|
|
# DIR into the resulting binary.
|
|
hardcode_direct=$hardcode_direct
|
|
|
|
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
|
|
# DIR into the resulting binary and the resulting library dependency is
|
|
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
|
|
# library is relocated.
|
|
hardcode_direct_absolute=$hardcode_direct_absolute
|
|
|
|
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
|
# into the resulting binary.
|
|
hardcode_minus_L=$hardcode_minus_L
|
|
|
|
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
|
# into the resulting binary.
|
|
hardcode_shlibpath_var=$hardcode_shlibpath_var
|
|
|
|
# Set to "yes" if building a shared library automatically hardcodes DIR
|
|
# into the library and all subsequent libraries and executables linked
|
|
# against it.
|
|
hardcode_automatic=$hardcode_automatic
|
|
|
|
# Set to yes if linker adds runtime paths of dependent libraries
|
|
# to runtime path list.
|
|
inherit_rpath=$inherit_rpath
|
|
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs
|
|
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols
|
|
|
|
# The commands to list exported symbols.
|
|
export_symbols_cmds=$lt_export_symbols_cmds
|
|
|
|
# Symbols that should not be listed in the preloaded symbols.
|
|
exclude_expsyms=$lt_exclude_expsyms
|
|
|
|
# Symbols that must always be exported.
|
|
include_expsyms=$lt_include_expsyms
|
|
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds
|
|
|
|
# Commands necessary for finishing linking programs.
|
|
postlink_cmds=$lt_postlink_cmds
|
|
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec
|
|
|
|
# How to hardcode a shared library path into an executable.
|
|
hardcode_action=$hardcode_action
|
|
|
|
# ### END LIBTOOL CONFIG
|
|
|
|
_LT_EOF
|
|
|
|
cat <<'_LT_EOF' >> "$cfgfile"
|
|
|
|
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
|
|
|
|
# func_munge_path_list VARIABLE PATH
|
|
# -----------------------------------
|
|
# VARIABLE is name of variable containing _space_ separated list of
|
|
# directories to be munged by the contents of PATH, which is string
|
|
# having a format:
|
|
# "DIR[:DIR]:"
|
|
# string "DIR[ DIR]" will be prepended to VARIABLE
|
|
# ":DIR[:DIR]"
|
|
# string "DIR[ DIR]" will be appended to VARIABLE
|
|
# "DIRP[:DIRP]::[DIRA:]DIRA"
|
|
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
|
# "DIRA[ DIRA]" will be appended to VARIABLE
|
|
# "DIR[:DIR]"
|
|
# VARIABLE will be replaced by "DIR[ DIR]"
|
|
func_munge_path_list ()
|
|
{
|
|
case x$2 in
|
|
x)
|
|
;;
|
|
*:)
|
|
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
|
|
;;
|
|
x:*)
|
|
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
|
|
;;
|
|
*::*)
|
|
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
|
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
|
|
;;
|
|
*)
|
|
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
|
|
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
|
func_cc_basename ()
|
|
{
|
|
for cc_temp in $*""; do
|
|
case $cc_temp in
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
|
\-*) ;;
|
|
*) break;;
|
|
esac
|
|
done
|
|
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
|
}
|
|
|
|
|
|
# ### END FUNCTIONS SHARED WITH CONFIGURE
|
|
|
|
_LT_EOF
|
|
|
|
case $host_os in
|
|
aix3*)
|
|
cat <<\_LT_EOF >> "$cfgfile"
|
|
# AIX sometimes has problems with the GCC collect2 program. For some
|
|
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
# vanish in a puff of smoke.
|
|
if test set != "${COLLECT_NAMES+set}"; then
|
|
COLLECT_NAMES=
|
|
export COLLECT_NAMES
|
|
fi
|
|
_LT_EOF
|
|
;;
|
|
esac
|
|
|
|
|
|
ltmain=$ac_aux_dir/ltmain.sh
|
|
|
|
|
|
# We use sed instead of cat because bash on DJGPP gets confused if
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
sed '$q' "$ltmain" >> "$cfgfile" \
|
|
|| (rm -f "$cfgfile"; exit 1)
|
|
|
|
mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
|
|
;;
|
|
"chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
|
|
|
|
esac
|
|
done # for ac_tag
|
|
|
|
|
|
as_fn_exit 0
|
|
_ACEOF
|
|
ac_clean_files=$ac_clean_files_save
|
|
|
|
test $ac_write_fail = 0 ||
|
|
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
|
|
|
|
|
# configure is writing to config.log, and then calls config.status.
|
|
# config.status does its own redirection, appending to config.log.
|
|
# Unfortunately, on DOS this fails, as config.log is still kept open
|
|
# by configure, so config.status won't be able to write to it; its
|
|
# output is simply discarded. So we exec the FD to /dev/null,
|
|
# effectively closing config.log, so it can be properly (re)opened and
|
|
# appended to by config.status. When coming back to configure, we
|
|
# need to make the FD available again.
|
|
if test "$no_create" != yes; then
|
|
ac_cs_success=:
|
|
ac_config_status_args=
|
|
test "$silent" = yes &&
|
|
ac_config_status_args="$ac_config_status_args --quiet"
|
|
exec 5>/dev/null
|
|
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
|
exec 5>>config.log
|
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
|
# would make configure fail if this is the last instruction.
|
|
$ac_cs_success || as_fn_exit 1
|
|
fi
|
|
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
|
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
|
fi
|
|
|
|
|
|
#
|
|
# Now that the Makefiles exist we can ensure that everything is rebuilt.
|
|
#
|
|
|
|
# Check whether --with-make-clean was given.
|
|
if test "${with_make_clean+set}" = set; then :
|
|
withval=$with_make_clean; make_clean="$withval"
|
|
else
|
|
make_clean="yes"
|
|
fi
|
|
|
|
case "$make_clean" in
|
|
yes)
|
|
if test "yes" != "$no_create"
|
|
then
|
|
if test "yes" = "$silent"
|
|
then
|
|
make clean > /dev/null
|
|
else
|
|
make clean
|
|
fi
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
# Check whether --enable-full-report was given.
|
|
if test "${enable_full_report+set}" = set; then :
|
|
enableval=$enable_full_report;
|
|
fi
|
|
|
|
|
|
report() {
|
|
echo "==============================================================================="
|
|
echo "Configuration summary:"
|
|
echo "-------------------------------------------------------------------------------"
|
|
echo "Optional features enabled:"
|
|
if $use_threads; then
|
|
echo " Multiprocessing support (--enable-threads)"
|
|
if test "yes" = "$enable_full_report" -o "standard" = "$locktype"; then
|
|
echo " Mutex lock type: $locktype"
|
|
fi
|
|
fi
|
|
test "large" = "$use_tuning" && echo " Large-system tuning (--with-tuning)"
|
|
test "no" = "$use_dnstap" || \
|
|
echo " Allow 'dnstap' packet logging (--enable-dnstap)"
|
|
test -z "$MAXMINDDB_LIBS" || echo " GeoIP2 access control (--with-geoip2)"
|
|
test "no" = "$use_geoip" || echo " Legacy GeoIP access control (--with-geoip)"
|
|
test "no" = "$use_gssapi" || echo " GSS-API (--with-gssapi)"
|
|
|
|
# these lines are only printed if run with --enable-full-report
|
|
if test "yes" = "$enable_full_report"; then
|
|
test "no" = "$enable_ipv6" -o "no" = "$found_ipv6" || \
|
|
echo " IPv6 support (--enable-ipv6)"
|
|
test "X$CRYPTO" = "X" -o "yes" = "$want_native_pkcs11" || \
|
|
echo " OpenSSL cryptography/DNSSEC (--with-openssl)"
|
|
test "X$PYTHON" = "X" || echo " Python tools (--with-python)"
|
|
test "X$XMLSTATS" = "X" || echo " XML statistics (--with-libxml2)"
|
|
test "X$JSONSTATS" = "X" || echo " JSON statistics (--with-libjson)"
|
|
test "X$ZLIB" = "X" || echo " HTTP zlib compression (--with-zlib)"
|
|
test "X$NZD_TOOLS" = "X" || echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
|
|
test "no" = "$use_libidn2" || echo " IDN support (--with-libidn2)"
|
|
fi
|
|
|
|
if test "no" != "$use_pkcs11"; then
|
|
if test "yes" = "$want_native_pkcs11"; then
|
|
echo " Native PKCS#11/Cryptoki support (--enable-native-pkcs11)"
|
|
else
|
|
echo " PKCS#11/Cryptoki support using OpenSSL (--with-pkcs11)"
|
|
fi
|
|
echo " Provider library: $PKCS11_PROVIDER"
|
|
fi
|
|
if test "yes" = "$OPENSSL_GOST" -o "yes" = "$PKCS11_GOST"; then
|
|
echo " GOST algorithm support (encoding: $gosttype) (--with-gost)"
|
|
fi
|
|
test "yes" = "$OPENSSL_ECDSA" -o "$PKCS11_ECDSA" && \
|
|
echo " ECDSA algorithm support (--with-ecdsa)"
|
|
test "yes" = "$OPENSSL_ED25519" -o "$PKCS11_ED25519" && \
|
|
echo " EDDSA algorithm support (--with-eddsa)"
|
|
test "yes" = "$enable_fixed" && \
|
|
echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
|
|
test "yes" = "$enable_filter" && \
|
|
echo " AAAA filtering (--enable-filter-aaaa)"
|
|
test "yes" = "$enable_seccomp" && \
|
|
echo " Use libseccomp system call filtering (--enable-seccomp)"
|
|
test "yes" = "$want_backtrace" && \
|
|
echo " Print backtrace on crash (--enable-backtrace)"
|
|
test "minimal" = "$want_symtable" && \
|
|
echo " Use symbol table for backtrace, named only (--enable-symtable)"
|
|
test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
|
|
echo " Use symbol table for backtrace, all binaries (--enable-symtable=all)"
|
|
test "no" = "$use_libtool" || echo " Use GNU libtool (--with-libtool)"
|
|
test "yes" = "$want_querytrace" && \
|
|
echo " Very verbose query trace logging (--enable-querytrace)"
|
|
test "no" = "$with_cmocka" || echo " CMocka Unit Testing Framework (--with-cmocka)"
|
|
|
|
echo " Dynamically loadable zone (DLZ) drivers:"
|
|
test "no" = "$use_dlz_bdb" || \
|
|
echo " Berkeley DB (--with-dlz-bdb)"
|
|
test "no" = "$use_dlz_ldap" || \
|
|
echo " LDAP (--with-dlz-ldap)"
|
|
test "no" = "$use_dlz_mysql" || \
|
|
echo " MySQL (--with-dlz-mysql)"
|
|
test "no" = "$use_dlz_odbc" || \
|
|
echo " ODBC (--with-dlz-odbc)"
|
|
test "no" = "$use_dlz_postgres" || \
|
|
echo " Postgres (--with-dlz-postgres)"
|
|
test "no" = "$use_dlz_filesystem" || \
|
|
echo " Filesystem (--with-dlz-filesystem)"
|
|
test "no" = "$use_dlz_stub" || \
|
|
echo " Stub (--with-dlz-stub)"
|
|
test "$use_dlz_bdb $use_dlz_ldap $use_dlz_mysql $use_dlz_odbc $use_dlz_postgres $use_dlz_filesystem $use_dlz_stub" = "no no no no no no no" && echo " None"
|
|
|
|
echo "-------------------------------------------------------------------------------"
|
|
|
|
echo "Features disabled or unavailable on this platform:"
|
|
$use_threads || echo " Multiprocessing support (--enable-threads)"
|
|
test "no" = "$enable_ipv6" -o "no" = "$found_ipv6" && \
|
|
echo " IPv6 support (--enable-ipv6)"
|
|
test "large" = "$use_tuning" || echo " Large-system tuning (--with-tuning)"
|
|
|
|
test "no" = "$use_dnstap" && \
|
|
echo " Allow 'dnstap' packet logging (--enable-dnstap)"
|
|
test -z "$MAXMINDDB_LIBS" && echo " GeoIP2 access control (--with-geoip2)"
|
|
test "no" = "$use_gssapi" && echo " GSS-API (--with-gssapi)"
|
|
|
|
test "yes" = "$enable_fixed" || \
|
|
echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
|
|
|
|
if test "X$CRYPTO" = "X" -o "yes" = "$want_native_pkcs11"
|
|
then
|
|
echo " OpenSSL cryptography/DNSSEC (--with-openssl)"
|
|
elif test "no" = "$use_pkcs11"; then
|
|
echo " PKCS#11/Cryptoki support (--with-pkcs11)"
|
|
fi
|
|
test "yes" = "$want_native_pkcs11" ||
|
|
echo " Native PKCS#11/Cryptoki support (--enable-native-pkcs11)"
|
|
test "X$CRYPTO" = "X" -o "yes" = "$OPENSSL_GOST" -o "yes" = "$PKCS11_GOST" || \
|
|
echo " GOST algorithm support (--with-gost)"
|
|
test "X$CRYPTO" = "X" -o "yes" = "$OPENSSL_ECDSA" -o "yes" = "$PKCS11_ECDSA" || \
|
|
echo " ECDSA algorithm support (--with-ecdsa)"
|
|
test "X$CRYPTO" = "X" -o "yes" = "$OPENSSL_ED25519" -o "yes" = "$PKCS11_ED25519" || \
|
|
echo " EDDSA algorithm support (--with-eddsa)"
|
|
|
|
test "yes" = "$enable_seccomp" || \
|
|
echo " Use libseccomp system call filtering (--enable-seccomp)"
|
|
test "yes" = "$want_backtrace" || \
|
|
echo " Print backtrace on crash (--enable-backtrace)"
|
|
test "yes" = "$want_querytrace" || \
|
|
echo " Very verbose query trace logging (--enable-querytrace)"
|
|
|
|
test "yes" = "$use_libtool" || echo " Use GNU libtool (--with-libtool)"
|
|
test "no" = "$with_cmocka" && echo " CMocka Unit Testng Framework (--with-cmocka)"
|
|
|
|
test "X$PYTHON" = "X" && echo " Python tools (--with-python)"
|
|
test "X$XMLSTATS" = "X" && echo " XML statistics (--with-libxml2)"
|
|
test "X$JSONSTATS" = "X" && echo " JSON statistics (--with-libjson)"
|
|
test "X$ZLIB" = "X" && echo " HTTP zlib compression (--with-zlib)"
|
|
test "X$NZD_TOOLS" = "X" && echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
|
|
test "no" = "$use_libidn2" && echo " IDN support (--with-libidn2)"
|
|
|
|
echo "-------------------------------------------------------------------------------"
|
|
echo "Configured paths:"
|
|
echo " prefix: $prefix"
|
|
echo " sysconfdir: $sysconfdir"
|
|
echo " localstatedir: $localstatedir"
|
|
echo "-------------------------------------------------------------------------------"
|
|
echo "Compiler: $CC"
|
|
$CC --version 2>&1 | sed 's/^/ /'
|
|
|
|
if test "X$ac_unrecognized_opts" != "X"; then
|
|
echo "Unrecognized options:"
|
|
echo " $ac_unrecognized_opts"
|
|
fi
|
|
|
|
if test "yes" != "$enable_full_report"; then
|
|
echo "-------------------------------------------------------------------------------"
|
|
echo "For more detail, use --enable-full-report."
|
|
fi
|
|
echo "==============================================================================="
|
|
}
|
|
|
|
if test "yes" != "$silent"; then
|
|
report
|
|
fi
|
|
|
|
if test "X$CRYPTO" = "X"; then
|
|
cat << \EOF
|
|
BIND 9 is being built without cryptography support. This means it will
|
|
not have DNSSEC support. Use --with-openssl, or --with-pkcs11 and
|
|
--enable-native-pkcs11 to enable cryptography.
|
|
EOF
|
|
fi
|
|
|
|
# Tell Emacs to edit this file in shell mode.
|
|
# Local Variables:
|
|
# mode: sh
|
|
# End:
|