13 kx #! /bin/sh
13 kx # Guess values for system-dependent variables and create Makefiles.
13 kx # Generated by GNU Autoconf 2.69.
13 kx #
13 kx #
13 kx # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
13 kx #
13 kx #
13 kx # This configure script is free software; the Free Software Foundation
13 kx # gives unlimited permission to copy, distribute and modify it.
13 kx ## -------------------- ##
13 kx ## M4sh Initialization. ##
13 kx ## -------------------- ##
13 kx
13 kx # Be more Bourne compatible
13 kx DUALCASE=1; export DUALCASE # for MKS sh
13 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13 kx emulate sh
13 kx NULLCMD=:
13 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13 kx # is contrary to our usage. Disable this feature.
13 kx alias -g '${1+"$@"}'='"$@"'
13 kx setopt NO_GLOB_SUBST
13 kx else
13 kx case `(set -o) 2>/dev/null` in #(
13 kx *posix*) :
13 kx set -o posix ;; #(
13 kx *) :
13 kx ;;
13 kx esac
13 kx fi
13 kx
13 kx
13 kx as_nl='
13 kx '
13 kx export as_nl
13 kx # Printing a long string crashes Solaris 7 /usr/bin/printf.
13 kx as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13 kx # Prefer a ksh shell builtin over an external printf program on Solaris,
13 kx # but without wasting forks for bash or zsh.
13 kx if test -z "$BASH_VERSION$ZSH_VERSION" \
13 kx && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13 kx as_echo='print -r --'
13 kx as_echo_n='print -rn --'
13 kx elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13 kx as_echo='printf %s\n'
13 kx as_echo_n='printf %s'
13 kx else
13 kx if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13 kx as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13 kx as_echo_n='/usr/ucb/echo -n'
13 kx else
13 kx as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13 kx as_echo_n_body='eval
13 kx arg=$1;
13 kx case $arg in #(
13 kx *"$as_nl"*)
13 kx expr "X$arg" : "X\\(.*\\)$as_nl";
13 kx arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13 kx esac;
13 kx expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13 kx '
13 kx export as_echo_n_body
13 kx as_echo_n='sh -c $as_echo_n_body as_echo'
13 kx fi
13 kx export as_echo_body
13 kx as_echo='sh -c $as_echo_body as_echo'
13 kx fi
13 kx
13 kx # The user is always right.
13 kx if test "${PATH_SEPARATOR+set}" != set; then
13 kx PATH_SEPARATOR=:
13 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13 kx PATH_SEPARATOR=';'
13 kx }
13 kx fi
13 kx
13 kx
13 kx # IFS
13 kx # We need space, tab and new line, in precisely that order. Quoting is
13 kx # there to prevent editors from complaining about space-tab.
13 kx # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13 kx # splitting by setting IFS to empty value.)
13 kx IFS=" "" $as_nl"
13 kx
13 kx # Find who we are. Look in the path if we contain no directory separator.
13 kx as_myself=
13 kx case $0 in #((
13 kx *[\\/]* ) as_myself=$0 ;;
13 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx ;;
13 kx esac
13 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
13 kx # in which case we are not to be found in the path.
13 kx if test "x$as_myself" = x; then
13 kx as_myself=$0
13 kx fi
13 kx if test ! -f "$as_myself"; then
13 kx $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13 kx exit 1
13 kx fi
13 kx
13 kx # Unset variables that we do not need and which cause bugs (e.g. in
13 kx # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13 kx # suppresses any "Segmentation fault" message there. '((' could
13 kx # trigger a bug in pdksh 5.2.14.
13 kx for as_var in BASH_ENV ENV MAIL MAILPATH
13 kx do eval test x\${$as_var+set} = xset \
13 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13 kx done
13 kx PS1='$ '
13 kx PS2='> '
13 kx PS4='+ '
13 kx
13 kx # NLS nuisances.
13 kx LC_ALL=C
13 kx export LC_ALL
13 kx LANGUAGE=C
13 kx export LANGUAGE
13 kx
13 kx # CDPATH.
13 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13 kx
13 kx # Use a proper internal environment variable to ensure we don't fall
13 kx # into an infinite loop, continuously re-executing ourselves.
13 kx if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
13 kx _as_can_reexec=no; export _as_can_reexec;
13 kx # We cannot yet assume a decent shell, so we have to provide a
13 kx # neutralization value for shells without unset; and this also
13 kx # works around shells that cannot unset nonexistent variables.
13 kx # Preserve -v and -x to the replacement shell.
13 kx BASH_ENV=/dev/null
13 kx ENV=/dev/null
13 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
13 kx case $- in # ((((
13 kx *v*x* | *x*v* ) as_opts=-vx ;;
13 kx *v* ) as_opts=-v ;;
13 kx *x* ) as_opts=-x ;;
13 kx * ) as_opts= ;;
13 kx esac
13 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
13 kx # Admittedly, this is quite paranoid, since all the known shells bail
13 kx # out after a failed `exec'.
13 kx $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
13 kx as_fn_exit 255
13 kx fi
13 kx # We don't want this to propagate to other subprocesses.
13 kx { _as_can_reexec=; unset _as_can_reexec;}
13 kx if test "x$CONFIG_SHELL" = x; then
13 kx as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
13 kx emulate sh
13 kx NULLCMD=:
13 kx # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
13 kx # is contrary to our usage. Disable this feature.
13 kx alias -g '\${1+\"\$@\"}'='\"\$@\"'
13 kx setopt NO_GLOB_SUBST
13 kx else
13 kx case \`(set -o) 2>/dev/null\` in #(
13 kx *posix*) :
13 kx set -o posix ;; #(
13 kx *) :
13 kx ;;
13 kx esac
13 kx fi
13 kx "
13 kx as_required="as_fn_return () { (exit \$1); }
13 kx as_fn_success () { as_fn_return 0; }
13 kx as_fn_failure () { as_fn_return 1; }
13 kx as_fn_ret_success () { return 0; }
13 kx as_fn_ret_failure () { return 1; }
13 kx
13 kx exitcode=0
13 kx as_fn_success || { exitcode=1; echo as_fn_success failed.; }
13 kx as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
13 kx as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
13 kx as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
13 kx if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
13 kx
13 kx else
13 kx exitcode=1; echo positional parameters were not saved.
13 kx fi
13 kx test x\$exitcode = x0 || exit 1
13 kx test -x / || exit 1"
13 kx as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
13 kx as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
13 kx eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
13 kx test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
13 kx test \$(( 1 + 1 )) = 2 || exit 1
13 kx
13 kx test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
13 kx ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13 kx ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
13 kx ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
13 kx PATH=/empty FPATH=/empty; export PATH FPATH
13 kx test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
13 kx || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
13 kx if (eval "$as_required") 2>/dev/null; then :
13 kx as_have_required=yes
13 kx else
13 kx as_have_required=no
13 kx fi
13 kx if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
13 kx
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx as_found=false
13 kx for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx as_found=:
13 kx case $as_dir in #(
13 kx /*)
13 kx for as_base in sh bash ksh sh5; do
13 kx # Try only shells that exist, to save several forks.
13 kx as_shell=$as_dir/$as_base
13 kx if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
13 kx { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
13 kx CONFIG_SHELL=$as_shell as_have_required=yes
13 kx if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
13 kx break 2
13 kx fi
13 kx fi
13 kx done;;
13 kx esac
13 kx as_found=false
13 kx done
13 kx $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
13 kx { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
13 kx CONFIG_SHELL=$SHELL as_have_required=yes
13 kx fi; }
13 kx IFS=$as_save_IFS
13 kx
13 kx
13 kx if test "x$CONFIG_SHELL" != x; then :
13 kx export CONFIG_SHELL
13 kx # We cannot yet assume a decent shell, so we have to provide a
13 kx # neutralization value for shells without unset; and this also
13 kx # works around shells that cannot unset nonexistent variables.
13 kx # Preserve -v and -x to the replacement shell.
13 kx BASH_ENV=/dev/null
13 kx ENV=/dev/null
13 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
13 kx case $- in # ((((
13 kx *v*x* | *x*v* ) as_opts=-vx ;;
13 kx *v* ) as_opts=-v ;;
13 kx *x* ) as_opts=-x ;;
13 kx * ) as_opts= ;;
13 kx esac
13 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
13 kx # Admittedly, this is quite paranoid, since all the known shells bail
13 kx # out after a failed `exec'.
13 kx $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
13 kx exit 255
13 kx fi
13 kx
13 kx if test x$as_have_required = xno; then :
13 kx $as_echo "$0: This script requires a shell more modern than all"
13 kx $as_echo "$0: the shells that I found on your system."
13 kx if test x${ZSH_VERSION+set} = xset ; then
13 kx $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
13 kx $as_echo "$0: be upgraded to zsh 4.3.4 or later."
13 kx else
13 kx $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
13 kx $0: including any error possibly output before this
13 kx $0: message. Then install a modern shell, or manually run
13 kx $0: the script under such a shell if you do have one."
13 kx fi
13 kx exit 1
13 kx fi
13 kx fi
13 kx fi
13 kx SHELL=${CONFIG_SHELL-/bin/sh}
13 kx export SHELL
13 kx # Unset more variables known to interfere with behavior of common tools.
13 kx CLICOLOR_FORCE= GREP_OPTIONS=
13 kx unset CLICOLOR_FORCE GREP_OPTIONS
13 kx
13 kx ## --------------------- ##
13 kx ## M4sh Shell Functions. ##
13 kx ## --------------------- ##
13 kx # as_fn_unset VAR
13 kx # ---------------
13 kx # Portably unset VAR.
13 kx as_fn_unset ()
13 kx {
13 kx { eval $1=; unset $1;}
13 kx }
13 kx as_unset=as_fn_unset
13 kx
13 kx # as_fn_set_status STATUS
13 kx # -----------------------
13 kx # Set $? to STATUS, without forking.
13 kx as_fn_set_status ()
13 kx {
13 kx return $1
13 kx } # as_fn_set_status
13 kx
13 kx # as_fn_exit STATUS
13 kx # -----------------
13 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13 kx as_fn_exit ()
13 kx {
13 kx set +e
13 kx as_fn_set_status $1
13 kx exit $1
13 kx } # as_fn_exit
13 kx
13 kx # as_fn_mkdir_p
13 kx # -------------
13 kx # Create "$as_dir" as a directory, including parents if necessary.
13 kx as_fn_mkdir_p ()
13 kx {
13 kx
13 kx case $as_dir in #(
13 kx -*) as_dir=./$as_dir;;
13 kx esac
13 kx test -d "$as_dir" || eval $as_mkdir_p || {
13 kx as_dirs=
13 kx while :; do
13 kx case $as_dir in #(
13 kx *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13 kx *) as_qdir=$as_dir;;
13 kx esac
13 kx as_dirs="'$as_qdir' $as_dirs"
13 kx as_dir=`$as_dirname -- "$as_dir" ||
13 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13 kx X"$as_dir" : 'X\(//\)[^/]' \| \
13 kx X"$as_dir" : 'X\(//\)$' \| \
13 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13 kx $as_echo X"$as_dir" |
13 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\(\/\/\)[^/].*/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\(\/\/\)$/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\(\/\).*/{
13 kx s//\1/
13 kx q
13 kx }
13 kx s/.*/./; q'`
13 kx test -d "$as_dir" && break
13 kx done
13 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
13 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13 kx
13 kx
13 kx } # as_fn_mkdir_p
13 kx
13 kx # as_fn_executable_p FILE
13 kx # -----------------------
13 kx # Test if FILE is an executable regular file.
13 kx as_fn_executable_p ()
13 kx {
13 kx test -f "$1" && test -x "$1"
13 kx } # as_fn_executable_p
13 kx # as_fn_append VAR VALUE
13 kx # ----------------------
13 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
13 kx # advantage of any shell optimizations that allow amortized linear growth over
13 kx # repeated appends, instead of the typical quadratic growth present in naive
13 kx # implementations.
13 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13 kx eval 'as_fn_append ()
13 kx {
13 kx eval $1+=\$2
13 kx }'
13 kx else
13 kx as_fn_append ()
13 kx {
13 kx eval $1=\$$1\$2
13 kx }
13 kx fi # as_fn_append
13 kx
13 kx # as_fn_arith ARG...
13 kx # ------------------
13 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
13 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
13 kx # must be portable across $(()) and expr.
13 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13 kx eval 'as_fn_arith ()
13 kx {
13 kx as_val=$(( $* ))
13 kx }'
13 kx else
13 kx as_fn_arith ()
13 kx {
13 kx as_val=`expr "$@" || test $? -eq 1`
13 kx }
13 kx fi # as_fn_arith
13 kx
13 kx
13 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
13 kx # ----------------------------------------
13 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13 kx # script with STATUS, using 1 if that was 0.
13 kx as_fn_error ()
13 kx {
13 kx as_status=$1; test $as_status -eq 0 && as_status=1
13 kx if test "$4"; then
13 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13 kx fi
13 kx $as_echo "$as_me: error: $2" >&2
13 kx as_fn_exit $as_status
13 kx } # as_fn_error
13 kx
13 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
13 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
13 kx as_expr=expr
13 kx else
13 kx as_expr=false
13 kx fi
13 kx
13 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13 kx as_basename=basename
13 kx else
13 kx as_basename=false
13 kx fi
13 kx
13 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13 kx as_dirname=dirname
13 kx else
13 kx as_dirname=false
13 kx fi
13 kx
13 kx as_me=`$as_basename -- "$0" ||
13 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13 kx X"$0" : 'X\(//\)$' \| \
13 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13 kx $as_echo X/"$0" |
13 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\/\(\/\/\)$/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\/\(\/\).*/{
13 kx s//\1/
13 kx q
13 kx }
13 kx s/.*/./; q'`
13 kx
13 kx # Avoid depending upon Character Ranges.
13 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13 kx as_cr_digits='0123456789'
13 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
13 kx
13 kx
13 kx as_lineno_1=$LINENO as_lineno_1a=$LINENO
13 kx as_lineno_2=$LINENO as_lineno_2a=$LINENO
13 kx eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
13 kx test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
13 kx # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
13 kx sed -n '
13 kx p
13 kx /[$]LINENO/=
13 kx ' <$as_myself |
13 kx sed '
13 kx s/[$]LINENO.*/&-/
13 kx t lineno
13 kx b
13 kx :lineno
13 kx N
13 kx :loop
13 kx s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13 kx t loop
13 kx s/-\n.*//
13 kx ' >$as_me.lineno &&
13 kx chmod +x "$as_me.lineno" ||
13 kx { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
13 kx
13 kx # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
13 kx # already done that, so ensure we don't try to do so again and fall
13 kx # in an infinite loop. This has already happened in practice.
13 kx _as_can_reexec=no; export _as_can_reexec
13 kx # Don't try to exec as it changes $[0], causing all sort of problems
13 kx # (the dirname of $[0] is not the place where we might find the
13 kx # original and so on. Autoconf is especially sensitive to this).
13 kx . "./$as_me.lineno"
13 kx # Exit status is that of the last command.
13 kx exit
13 kx }
13 kx
13 kx ECHO_C= ECHO_N= ECHO_T=
13 kx case `echo -n x` in #(((((
13 kx -n*)
13 kx case `echo 'xy\c'` in
13 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13 kx xy) ECHO_C='\c';;
13 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13 kx ECHO_T=' ';;
13 kx esac;;
13 kx *)
13 kx ECHO_N='-n';;
13 kx esac
13 kx
13 kx rm -f conf$$ conf$$.exe conf$$.file
13 kx if test -d conf$$.dir; then
13 kx rm -f conf$$.dir/conf$$.file
13 kx else
13 kx rm -f conf$$.dir
13 kx mkdir conf$$.dir 2>/dev/null
13 kx fi
13 kx if (echo >conf$$.file) 2>/dev/null; then
13 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
13 kx as_ln_s='ln -s'
13 kx # ... but there are two gotchas:
13 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13 kx # In both cases, we have to default to `cp -pR'.
13 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13 kx as_ln_s='cp -pR'
13 kx elif ln conf$$.file conf$$ 2>/dev/null; then
13 kx as_ln_s=ln
13 kx else
13 kx as_ln_s='cp -pR'
13 kx fi
13 kx else
13 kx as_ln_s='cp -pR'
13 kx fi
13 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13 kx rmdir conf$$.dir 2>/dev/null
13 kx
13 kx if mkdir -p . 2>/dev/null; then
13 kx as_mkdir_p='mkdir -p "$as_dir"'
13 kx else
13 kx test -d ./-p && rmdir ./-p
13 kx as_mkdir_p=false
13 kx fi
13 kx
13 kx as_test_x='test -x'
13 kx as_executable_p=as_fn_executable_p
13 kx
13 kx # Sed expression to map a string onto a valid CPP name.
13 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13 kx
13 kx # Sed expression to map a string onto a valid variable name.
13 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13 kx
13 kx SHELL=${CONFIG_SHELL-/bin/sh}
13 kx
13 kx
13 kx test -n "$DJDIR" || exec 7<&0 </dev/null
13 kx exec 6>&1
13 kx
13 kx # Name of the host.
13 kx # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
13 kx # so uname gets run too.
13 kx ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
13 kx
13 kx #
13 kx # Initializations.
13 kx #
13 kx ac_default_prefix=/usr/local
13 kx ac_clean_files=
13 kx ac_config_libobj_dir=.
13 kx LIBOBJS=
13 kx cross_compiling=no
13 kx subdirs=
13 kx MFLAGS=
13 kx MAKEFLAGS=
13 kx
13 kx # Identity of this package.
13 kx PACKAGE_NAME=
13 kx PACKAGE_TARNAME=
13 kx PACKAGE_VERSION=
13 kx PACKAGE_STRING=
13 kx PACKAGE_BUGREPORT=
13 kx PACKAGE_URL=
13 kx
13 kx ac_unique_file="build/apr_common.m4"
13 kx ac_default_prefix=/usr/local/apr
13 kx # Factoring default headers for most tests.
13 kx ac_includes_default="\
13 kx #include <stdio.h>
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx # include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_STAT_H
13 kx # include <sys/stat.h>
13 kx #endif
13 kx #ifdef STDC_HEADERS
13 kx # include <stdlib.h>
13 kx # include <stddef.h>
13 kx #else
13 kx # ifdef HAVE_STDLIB_H
13 kx # include <stdlib.h>
13 kx # endif
13 kx #endif
13 kx #ifdef HAVE_STRING_H
13 kx # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
13 kx # include <memory.h>
13 kx # endif
13 kx # include <string.h>
13 kx #endif
13 kx #ifdef HAVE_STRINGS_H
13 kx # include <strings.h>
13 kx #endif
13 kx #ifdef HAVE_INTTYPES_H
13 kx # include <inttypes.h>
13 kx #endif
13 kx #ifdef HAVE_STDINT_H
13 kx # include <stdint.h>
13 kx #endif
13 kx #ifdef HAVE_UNISTD_H
13 kx # include <unistd.h>
13 kx #endif"
13 kx
13 kx ac_subst_vars='LTLIBOBJS
13 kx LIBOBJS
13 kx INCLUDE_OUTPUTS
13 kx INCLUDE_RULES
13 kx LT_NO_INSTALL
13 kx LIBTOOL_LIBS
13 kx DEFAULT_OSDIR
13 kx OSDIR
13 kx INCLUDES
13 kx LDLIBS
13 kx INTERNAL_CPPFLAGS
13 kx NOTEST_INCLUDES
13 kx NOTEST_LIBS
13 kx NOTEST_LDFLAGS
13 kx NOTEST_CFLAGS
13 kx NOTEST_CPPFLAGS
13 kx EXTRA_INCLUDES
13 kx EXTRA_LIBS
13 kx EXTRA_LDFLAGS
13 kx EXTRA_CFLAGS
13 kx EXTRA_CPPFLAGS
13 kx apr_has_user
13 kx apr_thread_func
13 kx apr_procattr_user_set_requires_password
13 kx apr_has_xthread_files
13 kx have_unicode_fs
13 kx apr_has_timedlocks
13 kx have_ipv6
13 kx have_sockaddr_un
13 kx have_sa_storage
13 kx have_sctp
13 kx acceptfilter
13 kx have_corkable_tcp
13 kx apr_tcp_nopush_flag
13 kx file_as_socket
13 kx have_in_addr
13 kx osuuid
13 kx rand
13 kx proclockglobal
13 kx pthreadser
13 kx procpthreadser
13 kx fcntlser
13 kx posixser
13 kx sysvser
13 kx flockser
13 kx hasprocpthreadser
13 kx hasfcntlser
13 kx hasposixser
13 kx hassysvser
13 kx hasflockser
13 kx have_pthread_condattr_setpshared
13 kx have_pthread_mutex_timedlock
13 kx have_union_semun
13 kx struct_rlimit
13 kx have_proc_invoked
13 kx oc
13 kx aprdso
13 kx have_memchr
13 kx have_strstr
13 kx have_strdup
13 kx have_strcasecmp
13 kx have_stricmp
13 kx have_strncasecmp
13 kx have_strnicmp
13 kx ino_t_value
13 kx have_iovec
13 kx aprlfs
13 kx bigendian
13 kx stdint
13 kx uint64_literal
13 kx int64_literal
13 kx pid_t_fmt
13 kx off_t_fmt
13 kx size_t_fmt
13 kx ssize_t_fmt
13 kx uint64_t_hex_fmt
13 kx uint64_t_fmt
13 kx int64_t_fmt
13 kx socklen_t_value
13 kx ssize_t_value
13 kx size_t_value
13 kx off_t_value
13 kx uint64_value
13 kx int64_value
13 kx int_value
13 kx short_value
13 kx voidp_size
13 kx winsock2h
13 kx windowsh
13 kx semaphoreh
13 kx pthreadh
13 kx processh
13 kx sys_waith
13 kx signalh
13 kx unistdh
13 kx timeh
13 kx sys_unh
13 kx sys_uioh
13 kx sys_timeh
13 kx sys_typesh
13 kx sys_sockioh
13 kx sys_socketh
13 kx sys_signalh
13 kx sys_sendfileh
13 kx sys_ioctlh
13 kx stringsh
13 kx stringh
13 kx stdlibh
13 kx stdioh
13 kx stdargh
13 kx netinet_tcph
13 kx netinet_sctp_uioh
13 kx netinet_sctph
13 kx netinet_inh
13 kx sys_syslimitsh
13 kx netdbh
13 kx limitsh
13 kx ioh
13 kx inttypesh
13 kx fcntlh
13 kx direnth
13 kx errnoh
13 kx crypth
13 kx ctypeh
13 kx conioh
13 kx arpa_ineth
13 kx have_memmove
13 kx mmap
13 kx have_getrlimit
13 kx have_setrlimit
13 kx have_sigaction
13 kx have_inet_network
13 kx o_nonblock_inherited
13 kx tcp_nodelay_inherited
13 kx have_inet_addr
13 kx fork
13 kx apr_inaddr_none
13 kx sendfile
13 kx ALLOCA
13 kx sharedmem
13 kx havewin32shm
13 kx haveos2shm
13 kx havebeosarea
13 kx haveshmget
13 kx havemmapshm
13 kx havemmaptmp
13 kx usewin32shm
13 kx useos2shm
13 kx usebeosarea
13 kx useshmget
13 kx usemmapshm
13 kx usemmaptmp
13 kx havemmapanon
13 kx havemmapzero
13 kx haveshmgetanon
13 kx usemmapanon
13 kx usemmapzero
13 kx useshmgetanon
13 kx have_sigwait
13 kx have_sigsuspend
13 kx threads
13 kx INSTALL_SUBDIRS
13 kx eolstr
13 kx proc_mutex_is_global
13 kx OBJECTS_PLATFORM
13 kx MKDEP
13 kx LT_VERSION
13 kx LT_LDFLAGS
13 kx LTFLAGS
13 kx shlibpath_var
13 kx export_lib_target
13 kx lib_target
13 kx so_ext
13 kx link
13 kx lt_compile
13 kx installbuilddir
13 kx LT_SYS_LIBRARY_PATH
13 kx OTOOL64
13 kx OTOOL
13 kx LIPO
13 kx NMEDIT
13 kx DSYMUTIL
13 kx MANIFEST_TOOL
13 kx STRIP
13 kx ac_ct_AR
13 kx NM
13 kx ac_ct_DUMPBIN
13 kx DUMPBIN
13 kx LD
13 kx FGREP
13 kx LIBTOOL
13 kx OBJDUMP
13 kx DLLTOOL
13 kx APR_LIBNAME
13 kx apr_charset_ebcdic
13 kx EGREP
13 kx GREP
13 kx AR
13 kx ASCPP
13 kx AS
13 kx RM
13 kx INSTALL_DATA
13 kx INSTALL_SCRIPT
13 kx INSTALL_PROGRAM
13 kx RANLIB
13 kx LN_S
13 kx AWK
13 kx SET_MAKE
13 kx SED
13 kx LDFLAGS_FOR_BUILD
13 kx CPPFLAGS_FOR_BUILD
13 kx CFLAGS_FOR_BUILD
13 kx BUILD_OBJEXT
13 kx BUILD_EXEEXT
13 kx CPP_FOR_BUILD
13 kx ac_ct_CC_FOR_BUILD
13 kx CC_FOR_BUILD
13 kx CPP
13 kx OBJEXT
13 kx EXEEXT
13 kx ac_ct_CC
13 kx CPPFLAGS
13 kx LDFLAGS
13 kx CFLAGS
13 kx CC
13 kx APR_MAJOR_VERSION
13 kx APR_DOTTED_VERSION
13 kx apr_builders
13 kx top_builddir
13 kx APR_CROSS_COMPILING
13 kx APR_CONFIG_LOCATION
13 kx apr_builddir
13 kx apr_srcdir
13 kx target_os
13 kx target_vendor
13 kx target_cpu
13 kx target
13 kx host_os
13 kx host_vendor
13 kx host_cpu
13 kx host
13 kx build_os
13 kx build_vendor
13 kx build_cpu
13 kx build
13 kx target_alias
13 kx host_alias
13 kx build_alias
13 kx LIBS
13 kx ECHO_T
13 kx ECHO_N
13 kx ECHO_C
13 kx DEFS
13 kx mandir
13 kx localedir
13 kx libdir
13 kx psdir
13 kx pdfdir
13 kx dvidir
13 kx htmldir
13 kx infodir
13 kx docdir
13 kx oldincludedir
13 kx includedir
13 kx localstatedir
13 kx sharedstatedir
13 kx sysconfdir
13 kx datadir
13 kx datarootdir
13 kx libexecdir
13 kx sbindir
13 kx bindir
13 kx program_transform_name
13 kx prefix
13 kx exec_prefix
13 kx PACKAGE_URL
13 kx PACKAGE_BUGREPORT
13 kx PACKAGE_STRING
13 kx PACKAGE_VERSION
13 kx PACKAGE_TARNAME
13 kx PACKAGE_NAME
13 kx PATH_SEPARATOR
13 kx SHELL'
13 kx ac_subst_files=''
13 kx ac_user_opts='
13 kx enable_option_checking
13 kx enable_layout
13 kx enable_experimental_libtool
13 kx enable_shared
13 kx enable_static
13 kx with_pic
13 kx enable_fast_install
13 kx with_aix_soname
13 kx with_gnu_ld
13 kx with_sysroot
13 kx enable_libtool_lock
13 kx with_installbuilddir
13 kx with_libtool
13 kx enable_debug
13 kx enable_maintainer_mode
13 kx enable_profile
13 kx enable_pool_debug
13 kx enable_malloc_debug
13 kx enable_lfs
13 kx enable_nonportable_atomics
13 kx enable_threads
13 kx with_efence
13 kx with_valgrind
13 kx enable_posix_shm
13 kx enable_sysv_shm
13 kx with_sendfile
13 kx enable_allocator_uses_mmap
13 kx enable_allocator_guard_pages
13 kx enable_pool_concurrency_check
13 kx enable_dso
13 kx enable_other_child
13 kx with_egd
13 kx with_devrandom
13 kx enable_sctp
13 kx enable_ipv6
13 kx enable_timedlocks
13 kx '
13 kx ac_precious_vars='build_alias
13 kx host_alias
13 kx target_alias
13 kx CC
13 kx CFLAGS
13 kx LDFLAGS
13 kx LIBS
13 kx CPPFLAGS
13 kx CPP
13 kx LT_SYS_LIBRARY_PATH'
13 kx
13 kx
13 kx # Initialize some variables set by options.
13 kx ac_init_help=
13 kx ac_init_version=false
13 kx ac_unrecognized_opts=
13 kx ac_unrecognized_sep=
13 kx # The variables have the same names as the options, with
13 kx # dashes changed to underlines.
13 kx cache_file=/dev/null
13 kx exec_prefix=NONE
13 kx no_create=
13 kx no_recursion=
13 kx prefix=NONE
13 kx program_prefix=NONE
13 kx program_suffix=NONE
13 kx program_transform_name=s,x,x,
13 kx silent=
13 kx site=
13 kx srcdir=
13 kx verbose=
13 kx x_includes=NONE
13 kx x_libraries=NONE
13 kx
13 kx # Installation directory options.
13 kx # These are left unexpanded so users can "make install exec_prefix=/foo"
13 kx # and all the variables that are supposed to be based on exec_prefix
13 kx # by default will actually change.
13 kx # Use braces instead of parens because sh, perl, etc. also accept them.
13 kx # (The list follows the same order as the GNU Coding Standards.)
13 kx bindir='${exec_prefix}/bin'
13 kx sbindir='${exec_prefix}/sbin'
13 kx libexecdir='${exec_prefix}/libexec'
13 kx datarootdir='${prefix}/share'
13 kx datadir='${datarootdir}'
13 kx sysconfdir='${prefix}/etc'
13 kx sharedstatedir='${prefix}/com'
13 kx localstatedir='${prefix}/var'
13 kx includedir='${prefix}/include'
13 kx oldincludedir='/usr/include'
13 kx docdir='${datarootdir}/doc/${PACKAGE}'
13 kx infodir='${datarootdir}/info'
13 kx htmldir='${docdir}'
13 kx dvidir='${docdir}'
13 kx pdfdir='${docdir}'
13 kx psdir='${docdir}'
13 kx libdir='${exec_prefix}/lib'
13 kx localedir='${datarootdir}/locale'
13 kx mandir='${datarootdir}/man'
13 kx
13 kx ac_prev=
13 kx ac_dashdash=
13 kx for ac_option
13 kx do
13 kx # If the previous option needs an argument, assign it.
13 kx if test -n "$ac_prev"; then
13 kx eval $ac_prev=\$ac_option
13 kx ac_prev=
13 kx continue
13 kx fi
13 kx
13 kx case $ac_option in
13 kx *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
13 kx *=) ac_optarg= ;;
13 kx *) ac_optarg=yes ;;
13 kx esac
13 kx
13 kx # Accept the important Cygnus configure options, so we can diagnose typos.
13 kx
13 kx case $ac_dashdash$ac_option in
13 kx --)
13 kx ac_dashdash=yes ;;
13 kx
13 kx -bindir | --bindir | --bindi | --bind | --bin | --bi)
13 kx ac_prev=bindir ;;
13 kx -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13 kx bindir=$ac_optarg ;;
13 kx
13 kx -build | --build | --buil | --bui | --bu)
13 kx ac_prev=build_alias ;;
13 kx -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13 kx build_alias=$ac_optarg ;;
13 kx
13 kx -cache-file | --cache-file | --cache-fil | --cache-fi \
13 kx | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13 kx ac_prev=cache_file ;;
13 kx -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13 kx | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13 kx cache_file=$ac_optarg ;;
13 kx
13 kx --config-cache | -C)
13 kx cache_file=config.cache ;;
13 kx
13 kx -datadir | --datadir | --datadi | --datad)
13 kx ac_prev=datadir ;;
13 kx -datadir=* | --datadir=* | --datadi=* | --datad=*)
13 kx datadir=$ac_optarg ;;
13 kx
13 kx -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
13 kx | --dataroo | --dataro | --datar)
13 kx ac_prev=datarootdir ;;
13 kx -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
13 kx | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
13 kx datarootdir=$ac_optarg ;;
13 kx
13 kx -disable-* | --disable-*)
13 kx ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
13 kx # Reject names that are not valid shell variable names.
13 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
13 kx as_fn_error $? "invalid feature name: $ac_useropt"
13 kx ac_useropt_orig=$ac_useropt
13 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
13 kx case $ac_user_opts in
13 kx *"
13 kx "enable_$ac_useropt"
13 kx "*) ;;
13 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
13 kx ac_unrecognized_sep=', ';;
13 kx esac
13 kx eval enable_$ac_useropt=no ;;
13 kx
13 kx -docdir | --docdir | --docdi | --doc | --do)
13 kx ac_prev=docdir ;;
13 kx -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
13 kx docdir=$ac_optarg ;;
13 kx
13 kx -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
13 kx ac_prev=dvidir ;;
13 kx -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
13 kx dvidir=$ac_optarg ;;
13 kx
13 kx -enable-* | --enable-*)
13 kx ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
13 kx # Reject names that are not valid shell variable names.
13 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
13 kx as_fn_error $? "invalid feature name: $ac_useropt"
13 kx ac_useropt_orig=$ac_useropt
13 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
13 kx case $ac_user_opts in
13 kx *"
13 kx "enable_$ac_useropt"
13 kx "*) ;;
13 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
13 kx ac_unrecognized_sep=', ';;
13 kx esac
13 kx eval enable_$ac_useropt=\$ac_optarg ;;
13 kx
13 kx -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
13 kx | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
13 kx | --exec | --exe | --ex)
13 kx ac_prev=exec_prefix ;;
13 kx -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
13 kx | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
13 kx | --exec=* | --exe=* | --ex=*)
13 kx exec_prefix=$ac_optarg ;;
13 kx
13 kx -gas | --gas | --ga | --g)
13 kx # Obsolete; use --with-gas.
13 kx with_gas=yes ;;
13 kx
13 kx -help | --help | --hel | --he | -h)
13 kx ac_init_help=long ;;
13 kx -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
13 kx ac_init_help=recursive ;;
13 kx -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
13 kx ac_init_help=short ;;
13 kx
13 kx -host | --host | --hos | --ho)
13 kx ac_prev=host_alias ;;
13 kx -host=* | --host=* | --hos=* | --ho=*)
13 kx host_alias=$ac_optarg ;;
13 kx
13 kx -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
13 kx ac_prev=htmldir ;;
13 kx -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
13 kx | --ht=*)
13 kx htmldir=$ac_optarg ;;
13 kx
13 kx -includedir | --includedir | --includedi | --included | --include \
13 kx | --includ | --inclu | --incl | --inc)
13 kx ac_prev=includedir ;;
13 kx -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
13 kx | --includ=* | --inclu=* | --incl=* | --inc=*)
13 kx includedir=$ac_optarg ;;
13 kx
13 kx -infodir | --infodir | --infodi | --infod | --info | --inf)
13 kx ac_prev=infodir ;;
13 kx -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13 kx infodir=$ac_optarg ;;
13 kx
13 kx -libdir | --libdir | --libdi | --libd)
13 kx ac_prev=libdir ;;
13 kx -libdir=* | --libdir=* | --libdi=* | --libd=*)
13 kx libdir=$ac_optarg ;;
13 kx
13 kx -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
13 kx | --libexe | --libex | --libe)
13 kx ac_prev=libexecdir ;;
13 kx -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
13 kx | --libexe=* | --libex=* | --libe=*)
13 kx libexecdir=$ac_optarg ;;
13 kx
13 kx -localedir | --localedir | --localedi | --localed | --locale)
13 kx ac_prev=localedir ;;
13 kx -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
13 kx localedir=$ac_optarg ;;
13 kx
13 kx -localstatedir | --localstatedir | --localstatedi | --localstated \
13 kx | --localstate | --localstat | --localsta | --localst | --locals)
13 kx ac_prev=localstatedir ;;
13 kx -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
13 kx | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
13 kx localstatedir=$ac_optarg ;;
13 kx
13 kx -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
13 kx ac_prev=mandir ;;
13 kx -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13 kx mandir=$ac_optarg ;;
13 kx
13 kx -nfp | --nfp | --nf)
13 kx # Obsolete; use --without-fp.
13 kx with_fp=no ;;
13 kx
13 kx -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13 kx | --no-cr | --no-c | -n)
13 kx no_create=yes ;;
13 kx
13 kx -no-recursion | --no-recursion | --no-recursio | --no-recursi \
13 kx | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
13 kx no_recursion=yes ;;
13 kx
13 kx -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
13 kx | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
13 kx | --oldin | --oldi | --old | --ol | --o)
13 kx ac_prev=oldincludedir ;;
13 kx -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
13 kx | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
13 kx | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13 kx oldincludedir=$ac_optarg ;;
13 kx
13 kx -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13 kx ac_prev=prefix ;;
13 kx -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13 kx prefix=$ac_optarg ;;
13 kx
13 kx -program-prefix | --program-prefix | --program-prefi | --program-pref \
13 kx | --program-pre | --program-pr | --program-p)
13 kx ac_prev=program_prefix ;;
13 kx -program-prefix=* | --program-prefix=* | --program-prefi=* \
13 kx | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13 kx program_prefix=$ac_optarg ;;
13 kx
13 kx -program-suffix | --program-suffix | --program-suffi | --program-suff \
13 kx | --program-suf | --program-su | --program-s)
13 kx ac_prev=program_suffix ;;
13 kx -program-suffix=* | --program-suffix=* | --program-suffi=* \
13 kx | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13 kx program_suffix=$ac_optarg ;;
13 kx
13 kx -program-transform-name | --program-transform-name \
13 kx | --program-transform-nam | --program-transform-na \
13 kx | --program-transform-n | --program-transform- \
13 kx | --program-transform | --program-transfor \
13 kx | --program-transfo | --program-transf \
13 kx | --program-trans | --program-tran \
13 kx | --progr-tra | --program-tr | --program-t)
13 kx ac_prev=program_transform_name ;;
13 kx -program-transform-name=* | --program-transform-name=* \
13 kx | --program-transform-nam=* | --program-transform-na=* \
13 kx | --program-transform-n=* | --program-transform-=* \
13 kx | --program-transform=* | --program-transfor=* \
13 kx | --program-transfo=* | --program-transf=* \
13 kx | --program-trans=* | --program-tran=* \
13 kx | --progr-tra=* | --program-tr=* | --program-t=*)
13 kx program_transform_name=$ac_optarg ;;
13 kx
13 kx -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
13 kx ac_prev=pdfdir ;;
13 kx -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
13 kx pdfdir=$ac_optarg ;;
13 kx
13 kx -psdir | --psdir | --psdi | --psd | --ps)
13 kx ac_prev=psdir ;;
13 kx -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
13 kx psdir=$ac_optarg ;;
13 kx
13 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13 kx | -silent | --silent | --silen | --sile | --sil)
13 kx silent=yes ;;
13 kx
13 kx -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
13 kx ac_prev=sbindir ;;
13 kx -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
13 kx | --sbi=* | --sb=*)
13 kx sbindir=$ac_optarg ;;
13 kx
13 kx -sharedstatedir | --sharedstatedir | --sharedstatedi \
13 kx | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
13 kx | --sharedst | --shareds | --shared | --share | --shar \
13 kx | --sha | --sh)
13 kx ac_prev=sharedstatedir ;;
13 kx -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
13 kx | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
13 kx | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
13 kx | --sha=* | --sh=*)
13 kx sharedstatedir=$ac_optarg ;;
13 kx
13 kx -site | --site | --sit)
13 kx ac_prev=site ;;
13 kx -site=* | --site=* | --sit=*)
13 kx site=$ac_optarg ;;
13 kx
13 kx -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13 kx ac_prev=srcdir ;;
13 kx -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13 kx srcdir=$ac_optarg ;;
13 kx
13 kx -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
13 kx | --syscon | --sysco | --sysc | --sys | --sy)
13 kx ac_prev=sysconfdir ;;
13 kx -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
13 kx | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13 kx sysconfdir=$ac_optarg ;;
13 kx
13 kx -target | --target | --targe | --targ | --tar | --ta | --t)
13 kx ac_prev=target_alias ;;
13 kx -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13 kx target_alias=$ac_optarg ;;
13 kx
13 kx -v | -verbose | --verbose | --verbos | --verbo | --verb)
13 kx verbose=yes ;;
13 kx
13 kx -version | --version | --versio | --versi | --vers | -V)
13 kx ac_init_version=: ;;
13 kx
13 kx -with-* | --with-*)
13 kx ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
13 kx # Reject names that are not valid shell variable names.
13 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
13 kx as_fn_error $? "invalid package name: $ac_useropt"
13 kx ac_useropt_orig=$ac_useropt
13 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
13 kx case $ac_user_opts in
13 kx *"
13 kx "with_$ac_useropt"
13 kx "*) ;;
13 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
13 kx ac_unrecognized_sep=', ';;
13 kx esac
13 kx eval with_$ac_useropt=\$ac_optarg ;;
13 kx
13 kx -without-* | --without-*)
13 kx ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
13 kx # Reject names that are not valid shell variable names.
13 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
13 kx as_fn_error $? "invalid package name: $ac_useropt"
13 kx ac_useropt_orig=$ac_useropt
13 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
13 kx case $ac_user_opts in
13 kx *"
13 kx "with_$ac_useropt"
13 kx "*) ;;
13 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
13 kx ac_unrecognized_sep=', ';;
13 kx esac
13 kx eval with_$ac_useropt=no ;;
13 kx
13 kx --x)
13 kx # Obsolete; use --with-x.
13 kx with_x=yes ;;
13 kx
13 kx -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
13 kx | --x-incl | --x-inc | --x-in | --x-i)
13 kx ac_prev=x_includes ;;
13 kx -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
13 kx | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13 kx x_includes=$ac_optarg ;;
13 kx
13 kx -x-libraries | --x-libraries | --x-librarie | --x-librari \
13 kx | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
13 kx ac_prev=x_libraries ;;
13 kx -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
13 kx | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13 kx x_libraries=$ac_optarg ;;
13 kx
13 kx -*) as_fn_error $? "unrecognized option: \`$ac_option'
13 kx Try \`$0 --help' for more information"
13 kx ;;
13 kx
13 kx *=*)
13 kx ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
13 kx # Reject names that are not valid shell variable names.
13 kx case $ac_envvar in #(
13 kx '' | [0-9]* | *[!_$as_cr_alnum]* )
13 kx as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
13 kx esac
13 kx eval $ac_envvar=\$ac_optarg
13 kx export $ac_envvar ;;
13 kx
13 kx *)
13 kx # FIXME: should be removed in autoconf 3.0.
13 kx $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13 kx expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
13 kx $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
13 kx : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
13 kx ;;
13 kx
13 kx esac
13 kx done
13 kx
13 kx if test -n "$ac_prev"; then
13 kx ac_option=--`echo $ac_prev | sed 's/_/-/g'`
13 kx as_fn_error $? "missing argument to $ac_option"
13 kx fi
13 kx
13 kx if test -n "$ac_unrecognized_opts"; then
13 kx case $enable_option_checking in
13 kx no) ;;
13 kx fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
13 kx *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13 kx esac
13 kx fi
13 kx
13 kx # Check all directory arguments for consistency.
13 kx for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
13 kx datadir sysconfdir sharedstatedir localstatedir includedir \
13 kx oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
13 kx libdir localedir mandir
13 kx do
13 kx eval ac_val=\$$ac_var
13 kx # Remove trailing slashes.
13 kx case $ac_val in
13 kx */ )
13 kx ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
13 kx eval $ac_var=\$ac_val;;
13 kx esac
13 kx # Be sure to have absolute directory names.
13 kx case $ac_val in
13 kx [\\/$]* | ?:[\\/]* ) continue;;
13 kx NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
13 kx esac
13 kx as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
13 kx done
13 kx
13 kx # There might be people who depend on the old broken behavior: `$host'
13 kx # used to hold the argument of --host etc.
13 kx # FIXME: To remove some day.
13 kx build=$build_alias
13 kx host=$host_alias
13 kx target=$target_alias
13 kx
13 kx # FIXME: To remove some day.
13 kx if test "x$host_alias" != x; then
13 kx if test "x$build_alias" = x; then
13 kx cross_compiling=maybe
13 kx elif test "x$build_alias" != "x$host_alias"; then
13 kx cross_compiling=yes
13 kx fi
13 kx fi
13 kx
13 kx ac_tool_prefix=
13 kx test -n "$host_alias" && ac_tool_prefix=$host_alias-
13 kx
13 kx test "$silent" = yes && exec 6>/dev/null
13 kx
13 kx
13 kx ac_pwd=`pwd` && test -n "$ac_pwd" &&
13 kx ac_ls_di=`ls -di .` &&
13 kx ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
13 kx as_fn_error $? "working directory cannot be determined"
13 kx test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
13 kx as_fn_error $? "pwd does not report name of working directory"
13 kx
13 kx
13 kx # Find the source files, if location was not specified.
13 kx if test -z "$srcdir"; then
13 kx ac_srcdir_defaulted=yes
13 kx # Try the directory containing this script, then the parent directory.
13 kx ac_confdir=`$as_dirname -- "$as_myself" ||
13 kx $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13 kx X"$as_myself" : 'X\(//\)[^/]' \| \
13 kx X"$as_myself" : 'X\(//\)$' \| \
13 kx X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
13 kx $as_echo X"$as_myself" |
13 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\(\/\/\)[^/].*/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\(\/\/\)$/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\(\/\).*/{
13 kx s//\1/
13 kx q
13 kx }
13 kx s/.*/./; q'`
13 kx srcdir=$ac_confdir
13 kx if test ! -r "$srcdir/$ac_unique_file"; then
13 kx srcdir=..
13 kx fi
13 kx else
13 kx ac_srcdir_defaulted=no
13 kx fi
13 kx if test ! -r "$srcdir/$ac_unique_file"; then
13 kx test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
13 kx as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
13 kx fi
13 kx ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
13 kx ac_abs_confdir=`(
13 kx cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
13 kx pwd)`
13 kx # When building in place, set srcdir=.
13 kx if test "$ac_abs_confdir" = "$ac_pwd"; then
13 kx srcdir=.
13 kx fi
13 kx # Remove unnecessary trailing slashes from srcdir.
13 kx # Double slashes in file names in object file debugging info
13 kx # mess up M-x gdb in Emacs.
13 kx case $srcdir in
13 kx */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
13 kx esac
13 kx for ac_var in $ac_precious_vars; do
13 kx eval ac_env_${ac_var}_set=\${${ac_var}+set}
13 kx eval ac_env_${ac_var}_value=\$${ac_var}
13 kx eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
13 kx eval ac_cv_env_${ac_var}_value=\$${ac_var}
13 kx done
13 kx
13 kx #
13 kx # Report the --help message.
13 kx #
13 kx if test "$ac_init_help" = "long"; then
13 kx # Omit some internal or obsolete options to make the list less imposing.
13 kx # This message is too long to be a string in the A/UX 3.1 sh.
13 kx cat <<_ACEOF
13 kx \`configure' configures this package to adapt to many kinds of systems.
13 kx
13 kx Usage: $0 [OPTION]... [VAR=VALUE]...
13 kx
13 kx To assign environment variables (e.g., CC, CFLAGS...), specify them as
13 kx VAR=VALUE. See below for descriptions of some of the useful variables.
13 kx
13 kx Defaults for the options are specified in brackets.
13 kx
13 kx Configuration:
13 kx -h, --help display this help and exit
13 kx --help=short display options specific to this package
13 kx --help=recursive display the short help of all the included packages
13 kx -V, --version display version information and exit
13 kx -q, --quiet, --silent do not print \`checking ...' messages
13 kx --cache-file=FILE cache test results in FILE [disabled]
13 kx -C, --config-cache alias for \`--cache-file=config.cache'
13 kx -n, --no-create do not create output files
13 kx --srcdir=DIR find the sources in DIR [configure dir or \`..']
13 kx
13 kx Installation directories:
13 kx --prefix=PREFIX install architecture-independent files in PREFIX
13 kx [$ac_default_prefix]
13 kx --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
13 kx [PREFIX]
13 kx
13 kx By default, \`make install' will install all the files in
13 kx \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
13 kx an installation prefix other than \`$ac_default_prefix' using \`--prefix',
13 kx for instance \`--prefix=\$HOME'.
13 kx
13 kx For better control, use the options below.
13 kx
13 kx Fine tuning of the installation directories:
13 kx --bindir=DIR user executables [EPREFIX/bin]
13 kx --sbindir=DIR system admin executables [EPREFIX/sbin]
13 kx --libexecdir=DIR program executables [EPREFIX/libexec]
13 kx --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
13 kx --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
13 kx --localstatedir=DIR modifiable single-machine data [PREFIX/var]
13 kx --libdir=DIR object code libraries [EPREFIX/lib]
13 kx --includedir=DIR C header files [PREFIX/include]
13 kx --oldincludedir=DIR C header files for non-gcc [/usr/include]
13 kx --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
13 kx --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
13 kx --infodir=DIR info documentation [DATAROOTDIR/info]
13 kx --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
13 kx --mandir=DIR man documentation [DATAROOTDIR/man]
13 kx --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
13 kx --htmldir=DIR html documentation [DOCDIR]
13 kx --dvidir=DIR dvi documentation [DOCDIR]
13 kx --pdfdir=DIR pdf documentation [DOCDIR]
13 kx --psdir=DIR ps documentation [DOCDIR]
13 kx _ACEOF
13 kx
13 kx cat <<\_ACEOF
13 kx
13 kx System types:
13 kx --build=BUILD configure for building on BUILD [guessed]
13 kx --host=HOST cross-compile to build programs to run on HOST [BUILD]
13 kx --target=TARGET configure for building compilers for TARGET [HOST]
13 kx _ACEOF
13 kx fi
13 kx
13 kx if test -n "$ac_init_help"; then
13 kx
13 kx cat <<\_ACEOF
13 kx
13 kx Optional Features:
13 kx --disable-option-checking ignore unrecognized --enable/--with options
13 kx --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
13 kx --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
13 kx --enable-layout=LAYOUT
13 kx --enable-experimental-libtool Use experimental custom libtool
13 kx --enable-shared[=PKGS] build shared libraries [default=yes]
13 kx --enable-static[=PKGS] build static libraries [default=yes]
13 kx --enable-fast-install[=PKGS]
13 kx optimize for fast installation [default=yes]
13 kx --disable-libtool-lock avoid locking (might break parallel builds)
13 kx --enable-debug Turn on debugging and compile time warnings
13 kx --enable-maintainer-mode Turn on debugging and compile time warnings
13 kx --enable-profile Turn on profiling for the build (GCC)
13 kx --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all] Turn on pools debugging
13 kx --enable-malloc-debug Switch on malloc_debug for BeOS
13 kx --disable-lfs Disable large file support on 32-bit platforms
13 kx --enable-nonportable-atomics Use optimized atomic code which may produce nonportable binaries
13 kx --enable-threads Enable threading support in APR.
13 kx --enable-posix-shm Use POSIX shared memory (shm_open) if available
13 kx --enable-sysv-shm Use SysV shared memory (shmget) if available
13 kx --enable-allocator-uses-mmap Use mmap in apr_allocator instead of malloc
13 kx --enable-allocator-guard-pages Use guard pages in apr_allocator
13 kx (implies --enable-allocator-uses-mmap)
13 kx --enable-pool-concurrency-check Check for concurrent usage of memory pools
13 kx --disable-dso Disable DSO support
13 kx --enable-other-child Enable reliable child processes
13 kx --disable-sctp disable SCTP protocol support
13 kx --disable-ipv6 Disable IPv6 support in APR.
13 kx --disable-timedlocks Disable timed locks
13 kx
13 kx Optional Packages:
13 kx --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
13 kx --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
13 kx --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
13 kx both]
13 kx --with-aix-soname=aix|svr4|both
13 kx shared library versioning (aka "SONAME") variant to
13 kx provide on AIX, [default=aix].
13 kx --with-gnu-ld assume the C compiler uses GNU ld [default=no]
13 kx --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
13 kx compiler's sysroot if not specified).
13 kx --with-installbuilddir=DIR location to store APR build files
13 kx --without-libtool avoid using libtool to link the library
13 kx --with-efence[=DIR] path to Electric Fence installation
13 kx --with-valgrind[=DIR] Enable code to teach valgrind about apr pools
13 kx (optionally: set path to valgrind headers)
13 kx --with-sendfile Override decision to use sendfile
13 kx --with-egd[=DIR] use EGD-compatible socket
13 kx --with-devrandom[=DEV] use /dev/random or compatible [searches by default]
13 kx
13 kx Some influential environment variables:
13 kx CC C compiler command
13 kx CFLAGS C compiler flags
13 kx LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
13 kx nonstandard directory <lib dir>
13 kx LIBS libraries to pass to the linker, e.g. -l<library>
13 kx CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
13 kx you have headers in a nonstandard directory <include dir>
13 kx CPP C preprocessor
13 kx LT_SYS_LIBRARY_PATH
13 kx User-defined run-time library search path.
13 kx
13 kx Use these variables to override the choices made by `configure' or to help
13 kx it to find libraries and programs with nonstandard names/locations.
13 kx
13 kx Report bugs to the package provider.
13 kx _ACEOF
13 kx ac_status=$?
13 kx fi
13 kx
13 kx if test "$ac_init_help" = "recursive"; then
13 kx # If there are subdirs, report their specific --help.
13 kx for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
13 kx test -d "$ac_dir" ||
13 kx { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
13 kx continue
13 kx ac_builddir=.
13 kx
13 kx case "$ac_dir" in
13 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13 kx *)
13 kx ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13 kx # A ".." for each directory in $ac_dir_suffix.
13 kx ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13 kx case $ac_top_builddir_sub in
13 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13 kx esac ;;
13 kx esac
13 kx ac_abs_top_builddir=$ac_pwd
13 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
13 kx # for backward compatibility:
13 kx ac_top_builddir=$ac_top_build_prefix
13 kx
13 kx case $srcdir in
13 kx .) # We are building in place.
13 kx ac_srcdir=.
13 kx ac_top_srcdir=$ac_top_builddir_sub
13 kx ac_abs_top_srcdir=$ac_pwd ;;
13 kx [\\/]* | ?:[\\/]* ) # Absolute name.
13 kx ac_srcdir=$srcdir$ac_dir_suffix;
13 kx ac_top_srcdir=$srcdir
13 kx ac_abs_top_srcdir=$srcdir ;;
13 kx *) # Relative name.
13 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
13 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13 kx esac
13 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13 kx
13 kx cd "$ac_dir" || { ac_status=$?; continue; }
13 kx # Check for guested configure.
13 kx if test -f "$ac_srcdir/configure.gnu"; then
13 kx echo &&
13 kx $SHELL "$ac_srcdir/configure.gnu" --help=recursive
13 kx elif test -f "$ac_srcdir/configure"; then
13 kx echo &&
13 kx $SHELL "$ac_srcdir/configure" --help=recursive
13 kx else
13 kx $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
13 kx fi || ac_status=$?
13 kx cd "$ac_pwd" || { ac_status=$?; break; }
13 kx done
13 kx fi
13 kx
13 kx test -n "$ac_init_help" && exit $ac_status
13 kx if $ac_init_version; then
13 kx cat <<\_ACEOF
13 kx configure
13 kx generated by GNU Autoconf 2.69
13 kx
13 kx Copyright (C) 2012 Free Software Foundation, Inc.
13 kx This configure script is free software; the Free Software Foundation
13 kx gives unlimited permission to copy, distribute and modify it.
13 kx _ACEOF
13 kx exit
13 kx fi
13 kx
13 kx ## ------------------------ ##
13 kx ## Autoconf initialization. ##
13 kx ## ------------------------ ##
13 kx
13 kx # ac_fn_c_try_compile LINENO
13 kx # --------------------------
13 kx # Try to compile conftest.$ac_ext, and return whether this succeeded.
13 kx ac_fn_c_try_compile ()
13 kx {
13 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13 kx rm -f conftest.$ac_objext
13 kx if { { ac_try="$ac_compile"
13 kx case "(($ac_try" in
13 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13 kx *) ac_try_echo=$ac_try;;
13 kx esac
13 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13 kx $as_echo "$ac_try_echo"; } >&5
13 kx (eval "$ac_compile") 2>conftest.err
13 kx ac_status=$?
13 kx if test -s conftest.err; then
13 kx grep -v '^ *+' conftest.err >conftest.er1
13 kx cat conftest.er1 >&5
13 kx mv -f conftest.er1 conftest.err
13 kx fi
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; } && {
13 kx test -z "$ac_c_werror_flag" ||
13 kx test ! -s conftest.err
13 kx } && test -s conftest.$ac_objext; then :
13 kx ac_retval=0
13 kx else
13 kx $as_echo "$as_me: failed program was:" >&5
13 kx sed 's/^/| /' conftest.$ac_ext >&5
13 kx
13 kx ac_retval=1
13 kx fi
13 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13 kx as_fn_set_status $ac_retval
13 kx
13 kx } # ac_fn_c_try_compile
13 kx
13 kx # ac_fn_c_try_cpp LINENO
13 kx # ----------------------
13 kx # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
13 kx ac_fn_c_try_cpp ()
13 kx {
13 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13 kx if { { ac_try="$ac_cpp conftest.$ac_ext"
13 kx case "(($ac_try" in
13 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13 kx *) ac_try_echo=$ac_try;;
13 kx esac
13 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13 kx $as_echo "$ac_try_echo"; } >&5
13 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
13 kx ac_status=$?
13 kx if test -s conftest.err; then
13 kx grep -v '^ *+' conftest.err >conftest.er1
13 kx cat conftest.er1 >&5
13 kx mv -f conftest.er1 conftest.err
13 kx fi
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; } > conftest.i && {
13 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13 kx test ! -s conftest.err
13 kx }; then :
13 kx ac_retval=0
13 kx else
13 kx $as_echo "$as_me: failed program was:" >&5
13 kx sed 's/^/| /' conftest.$ac_ext >&5
13 kx
13 kx ac_retval=1
13 kx fi
13 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13 kx as_fn_set_status $ac_retval
13 kx
13 kx } # ac_fn_c_try_cpp
13 kx
13 kx # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
13 kx # -------------------------------------------------------
13 kx # Tests whether HEADER exists, giving a warning if it cannot be compiled using
13 kx # the include files in INCLUDES and setting the cache variable VAR
13 kx # accordingly.
13 kx ac_fn_c_check_header_mongrel ()
13 kx {
13 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13 kx if eval \${$3+:} false; then :
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13 kx $as_echo_n "checking for $2... " >&6; }
13 kx if eval \${$3+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx fi
13 kx eval ac_res=\$$3
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13 kx $as_echo "$ac_res" >&6; }
13 kx else
13 kx # Is the header compilable?
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
13 kx $as_echo_n "checking $2 usability... " >&6; }
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $4
13 kx #include <$2>
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_header_compiler=yes
13 kx else
13 kx ac_header_compiler=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
13 kx $as_echo "$ac_header_compiler" >&6; }
13 kx
13 kx # Is the header present?
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
13 kx $as_echo_n "checking $2 presence... " >&6; }
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <$2>
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx ac_header_preproc=yes
13 kx else
13 kx ac_header_preproc=no
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
13 kx $as_echo "$ac_header_preproc" >&6; }
13 kx
13 kx # So? What about this header?
13 kx case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
13 kx yes:no: )
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
13 kx $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
13 kx $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
13 kx ;;
13 kx no:yes:* )
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
13 kx $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
13 kx $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
13 kx $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
13 kx $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
13 kx $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
13 kx ;;
13 kx esac
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13 kx $as_echo_n "checking for $2... " >&6; }
13 kx if eval \${$3+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx eval "$3=\$ac_header_compiler"
13 kx fi
13 kx eval ac_res=\$$3
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13 kx $as_echo "$ac_res" >&6; }
13 kx fi
13 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13 kx
13 kx } # ac_fn_c_check_header_mongrel
13 kx
13 kx # ac_fn_c_try_run LINENO
13 kx # ----------------------
13 kx # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
13 kx # that executables *can* be run.
13 kx ac_fn_c_try_run ()
13 kx {
13 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13 kx if { { ac_try="$ac_link"
13 kx case "(($ac_try" in
13 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13 kx *) ac_try_echo=$ac_try;;
13 kx esac
13 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13 kx $as_echo "$ac_try_echo"; } >&5
13 kx (eval "$ac_link") 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
13 kx { { case "(($ac_try" in
13 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13 kx *) ac_try_echo=$ac_try;;
13 kx esac
13 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13 kx $as_echo "$ac_try_echo"; } >&5
13 kx (eval "$ac_try") 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }; }; then :
13 kx ac_retval=0
13 kx else
13 kx $as_echo "$as_me: program exited with status $ac_status" >&5
13 kx $as_echo "$as_me: failed program was:" >&5
13 kx sed 's/^/| /' conftest.$ac_ext >&5
13 kx
13 kx ac_retval=$ac_status
13 kx fi
13 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
13 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13 kx as_fn_set_status $ac_retval
13 kx
13 kx } # ac_fn_c_try_run
13 kx
13 kx # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
13 kx # -------------------------------------------------------
13 kx # Tests whether HEADER exists and can be compiled using the include files in
13 kx # INCLUDES, setting the cache variable VAR accordingly.
13 kx ac_fn_c_check_header_compile ()
13 kx {
13 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13 kx $as_echo_n "checking for $2... " >&6; }
13 kx if eval \${$3+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $4
13 kx #include <$2>
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx eval "$3=yes"
13 kx else
13 kx eval "$3=no"
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx eval ac_res=\$$3
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13 kx $as_echo "$ac_res" >&6; }
13 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13 kx
13 kx } # ac_fn_c_check_header_compile
13 kx
13 kx # ac_fn_c_try_link LINENO
13 kx # -----------------------
13 kx # Try to link conftest.$ac_ext, and return whether this succeeded.
13 kx ac_fn_c_try_link ()
13 kx {
13 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13 kx rm -f conftest.$ac_objext conftest$ac_exeext
13 kx if { { ac_try="$ac_link"
13 kx case "(($ac_try" in
13 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13 kx *) ac_try_echo=$ac_try;;
13 kx esac
13 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13 kx $as_echo "$ac_try_echo"; } >&5
13 kx (eval "$ac_link") 2>conftest.err
13 kx ac_status=$?
13 kx if test -s conftest.err; then
13 kx grep -v '^ *+' conftest.err >conftest.er1
13 kx cat conftest.er1 >&5
13 kx mv -f conftest.er1 conftest.err
13 kx fi
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; } && {
13 kx test -z "$ac_c_werror_flag" ||
13 kx test ! -s conftest.err
13 kx } && test -s conftest$ac_exeext && {
13 kx test "$cross_compiling" = yes ||
13 kx test -x conftest$ac_exeext
13 kx }; then :
13 kx ac_retval=0
13 kx else
13 kx $as_echo "$as_me: failed program was:" >&5
13 kx sed 's/^/| /' conftest.$ac_ext >&5
13 kx
13 kx ac_retval=1
13 kx fi
13 kx # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
13 kx # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
13 kx # interfere with the next link command; also delete a directory that is
13 kx # left behind by Apple's compiler. We do this before executing the actions.
13 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
13 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13 kx as_fn_set_status $ac_retval
13 kx
13 kx } # ac_fn_c_try_link
13 kx
13 kx # ac_fn_c_check_func LINENO FUNC VAR
13 kx # ----------------------------------
13 kx # Tests whether FUNC exists, setting the cache variable VAR accordingly
13 kx ac_fn_c_check_func ()
13 kx {
13 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13 kx $as_echo_n "checking for $2... " >&6; }
13 kx if eval \${$3+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
13 kx For example, HP-UX 11i <limits.h> declares gettimeofday. */
13 kx #define $2 innocuous_$2
13 kx
13 kx /* System header to define __stub macros and hopefully few prototypes,
13 kx which can conflict with char $2 (); below.
13 kx Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13 kx <limits.h> exists even on freestanding compilers. */
13 kx
13 kx #ifdef __STDC__
13 kx # include <limits.h>
13 kx #else
13 kx # include <assert.h>
13 kx #endif
13 kx
13 kx #undef $2
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char $2 ();
13 kx /* The GNU C library defines this for functions which it implements
13 kx to always fail with ENOSYS. Some functions are actually named
13 kx something starting with __ and the normal name is an alias. */
13 kx #if defined __stub_$2 || defined __stub___$2
13 kx choke me
13 kx #endif
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx return $2 ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx eval "$3=yes"
13 kx else
13 kx eval "$3=no"
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx fi
13 kx eval ac_res=\$$3
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13 kx $as_echo "$ac_res" >&6; }
13 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13 kx
13 kx } # ac_fn_c_check_func
13 kx
13 kx # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
13 kx # -------------------------------------------
13 kx # Tests whether TYPE exists after having included INCLUDES, setting cache
13 kx # variable VAR accordingly.
13 kx ac_fn_c_check_type ()
13 kx {
13 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13 kx $as_echo_n "checking for $2... " >&6; }
13 kx if eval \${$3+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx eval "$3=no"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $4
13 kx int
13 kx main ()
13 kx {
13 kx if (sizeof ($2))
13 kx return 0;
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $4
13 kx int
13 kx main ()
13 kx {
13 kx if (sizeof (($2)))
13 kx return 0;
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx else
13 kx eval "$3=yes"
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx eval ac_res=\$$3
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13 kx $as_echo "$ac_res" >&6; }
13 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13 kx
13 kx } # ac_fn_c_check_type
13 kx
13 kx # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
13 kx # --------------------------------------------
13 kx # Tries to find the compile-time value of EXPR in a program that includes
13 kx # INCLUDES, setting VAR accordingly. Returns whether the value could be
13 kx # computed
13 kx ac_fn_c_compute_int ()
13 kx {
13 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13 kx if test "$cross_compiling" = yes; then
13 kx # Depending upon the size, compute the lo and hi bounds.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $4
13 kx int
13 kx main ()
13 kx {
13 kx static int test_array [1 - 2 * !(($2) >= 0)];
13 kx test_array [0] = 0;
13 kx return test_array [0];
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_lo=0 ac_mid=0
13 kx while :; do
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $4
13 kx int
13 kx main ()
13 kx {
13 kx static int test_array [1 - 2 * !(($2) <= $ac_mid)];
13 kx test_array [0] = 0;
13 kx return test_array [0];
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_hi=$ac_mid; break
13 kx else
13 kx as_fn_arith $ac_mid + 1 && ac_lo=$as_val
13 kx if test $ac_lo -le $ac_mid; then
13 kx ac_lo= ac_hi=
13 kx break
13 kx fi
13 kx as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx done
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $4
13 kx int
13 kx main ()
13 kx {
13 kx static int test_array [1 - 2 * !(($2) < 0)];
13 kx test_array [0] = 0;
13 kx return test_array [0];
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_hi=-1 ac_mid=-1
13 kx while :; do
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $4
13 kx int
13 kx main ()
13 kx {
13 kx static int test_array [1 - 2 * !(($2) >= $ac_mid)];
13 kx test_array [0] = 0;
13 kx return test_array [0];
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_lo=$ac_mid; break
13 kx else
13 kx as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
13 kx if test $ac_mid -le $ac_hi; then
13 kx ac_lo= ac_hi=
13 kx break
13 kx fi
13 kx as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx done
13 kx else
13 kx ac_lo= ac_hi=
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx # Binary search between lo and hi bounds.
13 kx while test "x$ac_lo" != "x$ac_hi"; do
13 kx as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $4
13 kx int
13 kx main ()
13 kx {
13 kx static int test_array [1 - 2 * !(($2) <= $ac_mid)];
13 kx test_array [0] = 0;
13 kx return test_array [0];
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_hi=$ac_mid
13 kx else
13 kx as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx done
13 kx case $ac_lo in #((
13 kx ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
13 kx '') ac_retval=1 ;;
13 kx esac
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $4
13 kx static long int longval () { return $2; }
13 kx static unsigned long int ulongval () { return $2; }
13 kx #include <stdio.h>
13 kx #include <stdlib.h>
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx FILE *f = fopen ("conftest.val", "w");
13 kx if (! f)
13 kx return 1;
13 kx if (($2) < 0)
13 kx {
13 kx long int i = longval ();
13 kx if (i != ($2))
13 kx return 1;
13 kx fprintf (f, "%ld", i);
13 kx }
13 kx else
13 kx {
13 kx unsigned long int i = ulongval ();
13 kx if (i != ($2))
13 kx return 1;
13 kx fprintf (f, "%lu", i);
13 kx }
13 kx /* Do not output a trailing newline, as this causes \r\n confusion
13 kx on some platforms. */
13 kx return ferror (f) || fclose (f) != 0;
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx echo >>conftest.val; read $3 <conftest.val; ac_retval=0
13 kx else
13 kx ac_retval=1
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx rm -f conftest.val
13 kx
13 kx fi
13 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13 kx as_fn_set_status $ac_retval
13 kx
13 kx } # ac_fn_c_compute_int
13 kx
13 kx # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
13 kx # ---------------------------------------------
13 kx # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
13 kx # accordingly.
13 kx ac_fn_c_check_decl ()
13 kx {
13 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13 kx as_decl_name=`echo $2|sed 's/ *(.*//'`
13 kx as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
13 kx $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
13 kx if eval \${$3+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $4
13 kx int
13 kx main ()
13 kx {
13 kx #ifndef $as_decl_name
13 kx #ifdef __cplusplus
13 kx (void) $as_decl_use;
13 kx #else
13 kx (void) $as_decl_name;
13 kx #endif
13 kx #endif
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx eval "$3=yes"
13 kx else
13 kx eval "$3=no"
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx eval ac_res=\$$3
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13 kx $as_echo "$ac_res" >&6; }
13 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13 kx
13 kx } # ac_fn_c_check_decl
13 kx
13 kx # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
13 kx # ----------------------------------------------------
13 kx # Tries to find if the field MEMBER exists in type AGGR, after including
13 kx # INCLUDES, setting cache variable VAR accordingly.
13 kx ac_fn_c_check_member ()
13 kx {
13 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
13 kx $as_echo_n "checking for $2.$3... " >&6; }
13 kx if eval \${$4+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $5
13 kx int
13 kx main ()
13 kx {
13 kx static $2 ac_aggr;
13 kx if (ac_aggr.$3)
13 kx return 0;
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx eval "$4=yes"
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $5
13 kx int
13 kx main ()
13 kx {
13 kx static $2 ac_aggr;
13 kx if (sizeof ac_aggr.$3)
13 kx return 0;
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx eval "$4=yes"
13 kx else
13 kx eval "$4=no"
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx eval ac_res=\$$4
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13 kx $as_echo "$ac_res" >&6; }
13 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13 kx
13 kx } # ac_fn_c_check_member
13 kx cat >config.log <<_ACEOF
13 kx This file contains any messages produced by compilers while
13 kx running configure, to aid debugging if configure makes a mistake.
13 kx
13 kx It was created by $as_me, which was
13 kx generated by GNU Autoconf 2.69. Invocation command line was
13 kx
13 kx $ $0 $@
13 kx
13 kx _ACEOF
13 kx exec 5>>config.log
13 kx {
13 kx cat <<_ASUNAME
13 kx ## --------- ##
13 kx ## Platform. ##
13 kx ## --------- ##
13 kx
13 kx hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
13 kx uname -m = `(uname -m) 2>/dev/null || echo unknown`
13 kx uname -r = `(uname -r) 2>/dev/null || echo unknown`
13 kx uname -s = `(uname -s) 2>/dev/null || echo unknown`
13 kx uname -v = `(uname -v) 2>/dev/null || echo unknown`
13 kx
13 kx /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
13 kx /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
13 kx
13 kx /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
13 kx /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
13 kx /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
13 kx /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
13 kx /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
13 kx /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
13 kx /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
13 kx
13 kx _ASUNAME
13 kx
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx $as_echo "PATH: $as_dir"
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx } >&5
13 kx
13 kx cat >&5 <<_ACEOF
13 kx
13 kx
13 kx ## ----------- ##
13 kx ## Core tests. ##
13 kx ## ----------- ##
13 kx
13 kx _ACEOF
13 kx
13 kx
13 kx # Keep a trace of the command line.
13 kx # Strip out --no-create and --no-recursion so they do not pile up.
13 kx # Strip out --silent because we don't want to record it for future runs.
13 kx # Also quote any args containing shell meta-characters.
13 kx # Make two passes to allow for proper duplicate-argument suppression.
13 kx ac_configure_args=
13 kx ac_configure_args0=
13 kx ac_configure_args1=
13 kx ac_must_keep_next=false
13 kx for ac_pass in 1 2
13 kx do
13 kx for ac_arg
13 kx do
13 kx case $ac_arg in
13 kx -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
13 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13 kx | -silent | --silent | --silen | --sile | --sil)
13 kx continue ;;
13 kx *\'*)
13 kx ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13 kx esac
13 kx case $ac_pass in
13 kx 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
13 kx 2)
13 kx as_fn_append ac_configure_args1 " '$ac_arg'"
13 kx if test $ac_must_keep_next = true; then
13 kx ac_must_keep_next=false # Got value, back to normal.
13 kx else
13 kx case $ac_arg in
13 kx *=* | --config-cache | -C | -disable-* | --disable-* \
13 kx | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
13 kx | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
13 kx | -with-* | --with-* | -without-* | --without-* | --x)
13 kx case "$ac_configure_args0 " in
13 kx "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
13 kx esac
13 kx ;;
13 kx -* ) ac_must_keep_next=true ;;
13 kx esac
13 kx fi
13 kx as_fn_append ac_configure_args " '$ac_arg'"
13 kx ;;
13 kx esac
13 kx done
13 kx done
13 kx { ac_configure_args0=; unset ac_configure_args0;}
13 kx { ac_configure_args1=; unset ac_configure_args1;}
13 kx
13 kx # When interrupted or exit'd, cleanup temporary files, and complete
13 kx # config.log. We remove comments because anyway the quotes in there
13 kx # would cause problems or look ugly.
13 kx # WARNING: Use '\'' to represent an apostrophe within the trap.
13 kx # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
13 kx trap 'exit_status=$?
13 kx # Save into config.log some information that might help in debugging.
13 kx {
13 kx echo
13 kx
13 kx $as_echo "## ---------------- ##
13 kx ## Cache variables. ##
13 kx ## ---------------- ##"
13 kx echo
13 kx # The following way of writing the cache mishandles newlines in values,
13 kx (
13 kx for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
13 kx eval ac_val=\$$ac_var
13 kx case $ac_val in #(
13 kx *${as_nl}*)
13 kx case $ac_var in #(
13 kx *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13 kx $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13 kx esac
13 kx case $ac_var in #(
13 kx _ | IFS | as_nl) ;; #(
13 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13 kx *) { eval $ac_var=; unset $ac_var;} ;;
13 kx esac ;;
13 kx esac
13 kx done
13 kx (set) 2>&1 |
13 kx case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
13 kx *${as_nl}ac_space=\ *)
13 kx sed -n \
13 kx "s/'\''/'\''\\\\'\'''\''/g;
13 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
13 kx ;; #(
13 kx *)
13 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13 kx ;;
13 kx esac |
13 kx sort
13 kx )
13 kx echo
13 kx
13 kx $as_echo "## ----------------- ##
13 kx ## Output variables. ##
13 kx ## ----------------- ##"
13 kx echo
13 kx for ac_var in $ac_subst_vars
13 kx do
13 kx eval ac_val=\$$ac_var
13 kx case $ac_val in
13 kx *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
13 kx esac
13 kx $as_echo "$ac_var='\''$ac_val'\''"
13 kx done | sort
13 kx echo
13 kx
13 kx if test -n "$ac_subst_files"; then
13 kx $as_echo "## ------------------- ##
13 kx ## File substitutions. ##
13 kx ## ------------------- ##"
13 kx echo
13 kx for ac_var in $ac_subst_files
13 kx do
13 kx eval ac_val=\$$ac_var
13 kx case $ac_val in
13 kx *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
13 kx esac
13 kx $as_echo "$ac_var='\''$ac_val'\''"
13 kx done | sort
13 kx echo
13 kx fi
13 kx
13 kx if test -s confdefs.h; then
13 kx $as_echo "## ----------- ##
13 kx ## confdefs.h. ##
13 kx ## ----------- ##"
13 kx echo
13 kx cat confdefs.h
13 kx echo
13 kx fi
13 kx test "$ac_signal" != 0 &&
13 kx $as_echo "$as_me: caught signal $ac_signal"
13 kx $as_echo "$as_me: exit $exit_status"
13 kx } >&5
13 kx rm -f core *.core core.conftest.* &&
13 kx rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
13 kx exit $exit_status
13 kx ' 0
13 kx for ac_signal in 1 2 13 15; do
13 kx trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
13 kx done
13 kx ac_signal=0
13 kx
13 kx # confdefs.h avoids OS command line length limits that DEFS can exceed.
13 kx rm -f -r conftest* confdefs.h
13 kx
13 kx $as_echo "/* confdefs.h */" > confdefs.h
13 kx
13 kx # Predefined preprocessor variables.
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define PACKAGE_NAME "$PACKAGE_NAME"
13 kx _ACEOF
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
13 kx _ACEOF
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define PACKAGE_VERSION "$PACKAGE_VERSION"
13 kx _ACEOF
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define PACKAGE_STRING "$PACKAGE_STRING"
13 kx _ACEOF
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
13 kx _ACEOF
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define PACKAGE_URL "$PACKAGE_URL"
13 kx _ACEOF
13 kx
13 kx
13 kx # Let the site file select an alternate cache file if it wants to.
13 kx # Prefer an explicitly selected file to automatically selected ones.
13 kx ac_site_file1=NONE
13 kx ac_site_file2=NONE
13 kx if test -n "$CONFIG_SITE"; then
13 kx # We do not want a PATH search for config.site.
13 kx case $CONFIG_SITE in #((
13 kx -*) ac_site_file1=./$CONFIG_SITE;;
13 kx */*) ac_site_file1=$CONFIG_SITE;;
13 kx *) ac_site_file1=./$CONFIG_SITE;;
13 kx esac
13 kx elif test "x$prefix" != xNONE; then
13 kx ac_site_file1=$prefix/share/config.site
13 kx ac_site_file2=$prefix/etc/config.site
13 kx else
13 kx ac_site_file1=$ac_default_prefix/share/config.site
13 kx ac_site_file2=$ac_default_prefix/etc/config.site
13 kx fi
13 kx for ac_site_file in "$ac_site_file1" "$ac_site_file2"
13 kx do
13 kx test "x$ac_site_file" = xNONE && continue
13 kx if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
13 kx $as_echo "$as_me: loading site script $ac_site_file" >&6;}
13 kx sed 's/^/| /' "$ac_site_file" >&5
13 kx . "$ac_site_file" \
13 kx || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error $? "failed to load site script $ac_site_file
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx fi
13 kx done
13 kx
13 kx if test -r "$cache_file"; then
13 kx # Some versions of bash will fail to source /dev/null (special files
13 kx # actually), so we avoid doing that. DJGPP emulates it as a regular file.
13 kx if test /dev/null != "$cache_file" && test -f "$cache_file"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
13 kx $as_echo "$as_me: loading cache $cache_file" >&6;}
13 kx case $cache_file in
13 kx [\\/]* | ?:[\\/]* ) . "$cache_file";;
13 kx *) . "./$cache_file";;
13 kx esac
13 kx fi
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
13 kx $as_echo "$as_me: creating cache $cache_file" >&6;}
13 kx >$cache_file
13 kx fi
13 kx
13 kx # Check that the precious variables saved in the cache have kept the same
13 kx # value.
13 kx ac_cache_corrupted=false
13 kx for ac_var in $ac_precious_vars; do
13 kx eval ac_old_set=\$ac_cv_env_${ac_var}_set
13 kx eval ac_new_set=\$ac_env_${ac_var}_set
13 kx eval ac_old_val=\$ac_cv_env_${ac_var}_value
13 kx eval ac_new_val=\$ac_env_${ac_var}_value
13 kx case $ac_old_set,$ac_new_set in
13 kx set,)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
13 kx $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
13 kx ac_cache_corrupted=: ;;
13 kx ,set)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
13 kx $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
13 kx ac_cache_corrupted=: ;;
13 kx ,);;
13 kx *)
13 kx if test "x$ac_old_val" != "x$ac_new_val"; then
13 kx # differences in whitespace do not lead to failure.
13 kx ac_old_val_w=`echo x $ac_old_val`
13 kx ac_new_val_w=`echo x $ac_new_val`
13 kx if test "$ac_old_val_w" != "$ac_new_val_w"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
13 kx $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
13 kx ac_cache_corrupted=:
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
13 kx $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
13 kx eval $ac_var=\$ac_old_val
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
13 kx $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
13 kx $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
13 kx fi;;
13 kx esac
13 kx # Pass precious variables to config.status.
13 kx if test "$ac_new_set" = set; then
13 kx case $ac_new_val in
13 kx *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
13 kx *) ac_arg=$ac_var=$ac_new_val ;;
13 kx esac
13 kx case " $ac_configure_args " in
13 kx *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
13 kx *) as_fn_append ac_configure_args " '$ac_arg'" ;;
13 kx esac
13 kx fi
13 kx done
13 kx if $ac_cache_corrupted; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
13 kx $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
13 kx as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
13 kx fi
13 kx ## -------------------- ##
13 kx ## Main body of script. ##
13 kx ## -------------------- ##
13 kx
13 kx ac_ext=c
13 kx ac_cpp='$CPP $CPPFLAGS'
13 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx
13 kx
13 kx ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
13 kx
13 kx ac_aux_dir=
13 kx for ac_dir in build "$srcdir"/build; do
13 kx if test -f "$ac_dir/install-sh"; then
13 kx ac_aux_dir=$ac_dir
13 kx ac_install_sh="$ac_aux_dir/install-sh -c"
13 kx break
13 kx elif test -f "$ac_dir/install.sh"; then
13 kx ac_aux_dir=$ac_dir
13 kx ac_install_sh="$ac_aux_dir/install.sh -c"
13 kx break
13 kx elif test -f "$ac_dir/shtool"; then
13 kx ac_aux_dir=$ac_dir
13 kx ac_install_sh="$ac_aux_dir/shtool install -c"
13 kx break
13 kx fi
13 kx done
13 kx if test -z "$ac_aux_dir"; then
13 kx as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
13 kx fi
13 kx
13 kx # These three variables are undocumented and unsupported,
13 kx # and are intended to be withdrawn in a future Autoconf release.
13 kx # They can cause serious problems if a builder's source tree is in a directory
13 kx # whose full name contains unusual characters.
13 kx ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
13 kx ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
13 kx ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
13 kx #
13 kx # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
13 kx # Written by Gordon Matzigkeit, 1996
13 kx #
13 kx # This file is free software; the Free Software Foundation gives
13 kx # unlimited permission to copy and/or distribute it, with or without
13 kx # modifications, as long as this notice is preserved.
13 kx
13 kx
13 kx
13 kx # serial 58 LT_INIT
13 kx
13 kx
13 kx # LT_PREREQ(VERSION)
13 kx # ------------------
13 kx # Complain and exit if this libtool version is less that VERSION.
13 kx
13 kx
13 kx
13 kx # _LT_CHECK_BUILDDIR
13 kx # ------------------
13 kx # Complain if the absolute build directory name contains unusual characters
13 kx
13 kx
13 kx
13 kx # LT_INIT([OPTIONS])
13 kx # ------------------
13 kx # LT_INIT
13 kx
13 kx # Old names:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx # _LT_PREPARE_CC_BASENAME
13 kx # -----------------------
13 kx # _LT_PREPARE_CC_BASENAME
13 kx
13 kx
13 kx # _LT_CC_BASENAME(CC)
13 kx # -------------------
13 kx # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
13 kx # but that macro is also expanded into generated libtool script, which
13 kx # arranges for $SED and $ECHO to be set by different means.
13 kx
13 kx
13 kx
13 kx # _LT_FILEUTILS_DEFAULTS
13 kx # ----------------------
13 kx # It is okay to use these file commands and assume they have been set
13 kx # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
13 kx # _LT_FILEUTILS_DEFAULTS
13 kx
13 kx
13 kx # _LT_SETUP
13 kx # ---------
13 kx # _LT_SETUP
13 kx
13 kx
13 kx # _LT_PREPARE_SED_QUOTE_VARS
13 kx # --------------------------
13 kx # Define a few sed substitution that help us do robust quoting.
13 kx
13 kx
13 kx # _LT_PROG_LTMAIN
13 kx # ---------------
13 kx # Note that this code is called both from 'configure', and 'config.status'
13 kx # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
13 kx # 'config.status' has no value for ac_aux_dir unless we are using Automake,
13 kx # so we pass a copy along to make sure it has a sensible value anyway.
13 kx # _LT_PROG_LTMAIN
13 kx
13 kx
13 kx ## ------------------------------------- ##
13 kx ## Accumulate code for creating libtool. ##
13 kx ## ------------------------------------- ##
13 kx
13 kx # So that we can recreate a full libtool script including additional
13 kx # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
13 kx # in macros and then make a single call at the end using the 'libtool'
13 kx # label.
13 kx
13 kx
13 kx # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
13 kx # ----------------------------------------
13 kx # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
13 kx
13 kx
13 kx # Initialize.
13 kx
13 kx
13 kx
13 kx # _LT_CONFIG_LIBTOOL([COMMANDS])
13 kx # ------------------------------
13 kx # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
13 kx
13 kx
13 kx # Initialize.
13 kx
13 kx
13 kx
13 kx # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
13 kx # -----------------------------------------------------
13 kx
13 kx
13 kx
13 kx # _LT_FORMAT_COMMENT([COMMENT])
13 kx # -----------------------------
13 kx # Add leading comment marks to the start of each line, and a trailing
13 kx # full-stop to the whole comment if one is not present already.
13 kx
13 kx
13 kx
13 kx
13 kx ## ------------------------ ##
13 kx ## FIXME: Eliminate VARNAME ##
13 kx ## ------------------------ ##
13 kx
13 kx
13 kx # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
13 kx # -------------------------------------------------------------------
13 kx # CONFIGNAME is the name given to the value in the libtool script.
13 kx # VARNAME is the (base) name used in the configure script.
13 kx # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
13 kx # VARNAME. Any other value will be used directly.
13 kx
13 kx
13 kx
13 kx # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
13 kx # --------------------------------------------------------
13 kx
13 kx
13 kx
13 kx # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
13 kx # ------------------------------------------------
13 kx
13 kx
13 kx
13 kx # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
13 kx # ---------------------------------------------------------
13 kx
13 kx
13 kx
13 kx # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
13 kx # --------------------------------------------------
13 kx
13 kx
13 kx
13 kx # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
13 kx # ---------------------------------------------------
13 kx
13 kx
13 kx
13 kx # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
13 kx # ---------------------------------------------------
13 kx
13 kx
13 kx
13 kx
13 kx # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
13 kx # ------------------------------------------------
13 kx
13 kx
13 kx
13 kx
13 kx # _LT_CONFIG_STATUS_DECLARE([VARNAME])
13 kx # ------------------------------------
13 kx # Quote a variable value, and forward it to 'config.status' so that its
13 kx # declaration there will have the same value as in 'configure'. VARNAME
13 kx # must have a single quote delimited value for this to work.
13 kx
13 kx
13 kx
13 kx # _LT_CONFIG_STATUS_DECLARATIONS
13 kx # ------------------------------
13 kx # We delimit libtool config variables with single quotes, so when
13 kx # we write them to config.status, we have to be sure to quote all
13 kx # embedded single quotes properly. In configure, this macro expands
13 kx # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
13 kx #
13 kx # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
13 kx
13 kx
13 kx
13 kx # _LT_LIBTOOL_TAGS
13 kx # ----------------
13 kx # Output comment and list of tags supported by the script
13 kx
13 kx
13 kx
13 kx # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
13 kx # -----------------------------------
13 kx # Extract the dictionary values for VARNAME (optionally with TAG) and
13 kx # expand to a commented shell variable setting:
13 kx #
13 kx # # Some comment about what VAR is for.
13 kx # visible_name=$lt_internal_name
13 kx
13 kx
13 kx
13 kx # _LT_LIBTOOL_CONFIG_VARS
13 kx # -----------------------
13 kx # Produce commented declarations of non-tagged libtool config variables
13 kx # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
13 kx # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
13 kx # section) are produced by _LT_LIBTOOL_TAG_VARS.
13 kx
13 kx
13 kx
13 kx # _LT_LIBTOOL_TAG_VARS(TAG)
13 kx # -------------------------
13 kx
13 kx
13 kx
13 kx # _LT_TAGVAR(VARNAME, [TAGNAME])
13 kx # ------------------------------
13 kx
13 kx
13 kx
13 kx # _LT_CONFIG_COMMANDS
13 kx # -------------------
13 kx # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
13 kx # variables for single and double quote escaping we saved from calls
13 kx # to _LT_DECL, we can put quote escaped variables declarations
13 kx # into 'config.status', and then the shell code to quote escape them in
13 kx # for loops in 'config.status'. Finally, any additional code accumulated
13 kx # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
13 kx #_LT_CONFIG_COMMANDS
13 kx
13 kx
13 kx # Initialize.
13 kx
13 kx
13 kx # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
13 kx # ------------------------------------
13 kx # Generate a child script FILE with all initialization necessary to
13 kx # reuse the environment learned by the parent script, and make the
13 kx # file executable. If COMMENT is supplied, it is inserted after the
13 kx # '#!' sequence but before initialization text begins. After this
13 kx # macro, additional text can be appended to FILE to form the body of
13 kx # the child script. The macro ends with non-zero status if the
13 kx # file could not be fully written (such as if the disk is full).
13 kx # _LT_GENERATED_FILE_INIT
13 kx
13 kx # LT_OUTPUT
13 kx # ---------
13 kx # This macro allows early generation of the libtool script (before
13 kx # AC_OUTPUT is called), incase it is used in configure for compilation
13 kx # tests.
13 kx # LT_OUTPUT
13 kx
13 kx
13 kx # _LT_CONFIG(TAG)
13 kx # ---------------
13 kx # If TAG is the built-in tag, create an initial libtool script with a
13 kx # default configuration from the untagged config vars. Otherwise add code
13 kx # to config.status for appending the configuration named by TAG from the
13 kx # matching tagged config vars.
13 kx # _LT_CONFIG
13 kx
13 kx
13 kx # LT_SUPPORTED_TAG(TAG)
13 kx # ---------------------
13 kx # Trace this macro to discover what tags are supported by the libtool
13 kx # --tag option, using:
13 kx # autoconf --trace 'LT_SUPPORTED_TAG:$1'
13 kx
13 kx
13 kx
13 kx # C support is built-in for now
13 kx
13 kx
13 kx
13 kx
13 kx # LT_LANG(LANG)
13 kx # -------------
13 kx # Enable libtool support for the given language if not already enabled.
13 kx # LT_LANG
13 kx
13 kx
13 kx # _LT_LANG(LANGNAME)
13 kx # ------------------
13 kx # _LT_LANG
13 kx
13 kx
13 kx #m4_ifndef
13 kx
13 kx
13 kx # _LT_LANG_DEFAULT_CONFIG
13 kx # -----------------------
13 kx # _LT_LANG_DEFAULT_CONFIG
13 kx
13 kx # Obsolete macros:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx # _LT_TAG_COMPILER
13 kx # ----------------
13 kx # _LT_TAG_COMPILER
13 kx
13 kx
13 kx # _LT_COMPILER_BOILERPLATE
13 kx # ------------------------
13 kx # Check for compiler boilerplate output or warnings with
13 kx # the simple compiler test code.
13 kx # _LT_COMPILER_BOILERPLATE
13 kx
13 kx
13 kx # _LT_LINKER_BOILERPLATE
13 kx # ----------------------
13 kx # Check for linker boilerplate output or warnings with
13 kx # the simple link test code.
13 kx # _LT_LINKER_BOILERPLATE
13 kx
13 kx # _LT_REQUIRED_DARWIN_CHECKS
13 kx # -------------------------
13 kx
13 kx
13 kx
13 kx # _LT_DARWIN_LINKER_FEATURES([TAG])
13 kx # ---------------------------------
13 kx # Checks for linker and compiler features on darwin
13 kx
13 kx
13 kx # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
13 kx # ----------------------------------
13 kx # Links a minimal program and checks the executable
13 kx # for the system default hardcoded library path. In most cases,
13 kx # this is /usr/lib:/lib, but when the MPI compilers are used
13 kx # the location of the communication and MPI libs are included too.
13 kx # If we don't find anything, use the default library path according
13 kx # to the aix ld manual.
13 kx # Store the results from the different compilers for each TAGNAME.
13 kx # Allow to override them for all tags through lt_cv_aix_libpath.
13 kx # _LT_SYS_MODULE_PATH_AIX
13 kx
13 kx
13 kx # _LT_SHELL_INIT(ARG)
13 kx # -------------------
13 kx # _LT_SHELL_INIT
13 kx
13 kx
13 kx
13 kx # _LT_PROG_ECHO_BACKSLASH
13 kx # -----------------------
13 kx # Find how we can fake an echo command that does not interpret backslash.
13 kx # In particular, with Autoconf 2.60 or later we add some code to the start
13 kx # of the generated configure script that will find a shell with a builtin
13 kx # printf (that we can use as an echo command).
13 kx # _LT_PROG_ECHO_BACKSLASH
13 kx
13 kx
13 kx # _LT_WITH_SYSROOT
13 kx # ----------------
13 kx
13 kx
13 kx # _LT_ENABLE_LOCK
13 kx # ---------------
13 kx # _LT_ENABLE_LOCK
13 kx
13 kx
13 kx # _LT_PROG_AR
13 kx # -----------
13 kx # _LT_PROG_AR
13 kx
13 kx
13 kx # _LT_CMD_OLD_ARCHIVE
13 kx # -------------------
13 kx # _LT_CMD_OLD_ARCHIVE
13 kx
13 kx
13 kx # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
13 kx # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
13 kx # ----------------------------------------------------------------
13 kx # Check whether the given compiler option works
13 kx # _LT_COMPILER_OPTION
13 kx
13 kx # Old name:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
13 kx # [ACTION-SUCCESS], [ACTION-FAILURE])
13 kx # ----------------------------------------------------
13 kx # Check whether the given linker option works
13 kx # _LT_LINKER_OPTION
13 kx
13 kx # Old name:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx # LT_CMD_MAX_LEN
13 kx #---------------
13 kx # LT_CMD_MAX_LEN
13 kx
13 kx # Old name:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx # _LT_HEADER_DLFCN
13 kx # ----------------
13 kx # _LT_HEADER_DLFCN
13 kx
13 kx
13 kx # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
13 kx # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
13 kx # ----------------------------------------------------------------
13 kx # _LT_TRY_DLOPEN_SELF
13 kx
13 kx
13 kx # LT_SYS_DLOPEN_SELF
13 kx # ------------------
13 kx # LT_SYS_DLOPEN_SELF
13 kx
13 kx # Old name:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx # _LT_COMPILER_C_O([TAGNAME])
13 kx # ---------------------------
13 kx # Check to see if options -c and -o are simultaneously supported by compiler.
13 kx # This macro does not hard code the compiler like AC_PROG_CC_C_O.
13 kx # _LT_COMPILER_C_O
13 kx
13 kx
13 kx # _LT_COMPILER_FILE_LOCKS([TAGNAME])
13 kx # ----------------------------------
13 kx # Check to see if we can do hard links to lock some files if needed
13 kx # _LT_COMPILER_FILE_LOCKS
13 kx
13 kx
13 kx # _LT_CHECK_OBJDIR
13 kx # ----------------
13 kx # _LT_CHECK_OBJDIR
13 kx
13 kx
13 kx # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
13 kx # --------------------------------------
13 kx # Check hardcoding attributes.
13 kx # _LT_LINKER_HARDCODE_LIBPATH
13 kx
13 kx
13 kx # _LT_CMD_STRIPLIB
13 kx # ----------------
13 kx # _LT_CMD_STRIPLIB
13 kx
13 kx
13 kx # _LT_PREPARE_MUNGE_PATH_LIST
13 kx # ---------------------------
13 kx # Make sure func_munge_path_list() is defined correctly.
13 kx # _LT_PREPARE_PATH_LIST
13 kx
13 kx
13 kx # _LT_SYS_DYNAMIC_LINKER([TAG])
13 kx # -----------------------------
13 kx # PORTME Fill in your ld.so characteristics
13 kx # _LT_SYS_DYNAMIC_LINKER
13 kx
13 kx
13 kx # _LT_PATH_TOOL_PREFIX(TOOL)
13 kx # --------------------------
13 kx # find a file program that can recognize shared library
13 kx # _LT_PATH_TOOL_PREFIX
13 kx
13 kx # Old name:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx # _LT_PATH_MAGIC
13 kx # --------------
13 kx # find a file program that can recognize a shared library
13 kx # _LT_PATH_MAGIC
13 kx
13 kx
13 kx # LT_PATH_LD
13 kx # ----------
13 kx # find the pathname to the GNU or non-GNU linker
13 kx # LT_PATH_LD
13 kx
13 kx # Old names:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx # _LT_PATH_LD_GNU
13 kx #- --------------
13 kx # _LT_PATH_LD_GNU
13 kx
13 kx
13 kx # _LT_CMD_RELOAD
13 kx # --------------
13 kx # find reload flag for linker
13 kx # -- PORTME Some linkers may need a different reload flag.
13 kx # _LT_CMD_RELOAD
13 kx
13 kx
13 kx # _LT_PATH_DD
13 kx # -----------
13 kx # find a working dd
13 kx # _LT_PATH_DD
13 kx
13 kx
13 kx # _LT_CMD_TRUNCATE
13 kx # ----------------
13 kx # find command to truncate a binary pipe
13 kx # _LT_CMD_TRUNCATE
13 kx
13 kx
13 kx # _LT_CHECK_MAGIC_METHOD
13 kx # ----------------------
13 kx # how to check for library dependencies
13 kx # -- PORTME fill in with the dynamic library characteristics
13 kx # _LT_CHECK_MAGIC_METHOD
13 kx
13 kx
13 kx # LT_PATH_NM
13 kx # ----------
13 kx # find the pathname to a BSD- or MS-compatible name lister
13 kx # LT_PATH_NM
13 kx
13 kx # Old names:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
13 kx # --------------------------------
13 kx # how to determine the name of the shared library
13 kx # associated with a specific link library.
13 kx # -- PORTME fill in with the dynamic library characteristics
13 kx # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
13 kx
13 kx
13 kx # _LT_PATH_MANIFEST_TOOL
13 kx # ----------------------
13 kx # locate the manifest tool
13 kx # _LT_PATH_MANIFEST_TOOL
13 kx
13 kx
13 kx # _LT_DLL_DEF_P([FILE])
13 kx # ---------------------
13 kx # True iff FILE is a Windows DLL '.def' file.
13 kx # Keep in sync with func_dll_def_p in the libtool script
13 kx # _LT_DLL_DEF_P
13 kx
13 kx
13 kx # LT_LIB_M
13 kx # --------
13 kx # check for math library
13 kx # LT_LIB_M
13 kx
13 kx # Old name:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx # _LT_COMPILER_NO_RTTI([TAGNAME])
13 kx # -------------------------------
13 kx # _LT_COMPILER_NO_RTTI
13 kx
13 kx
13 kx # _LT_CMD_GLOBAL_SYMBOLS
13 kx # ----------------------
13 kx # _LT_CMD_GLOBAL_SYMBOLS
13 kx
13 kx
13 kx # _LT_COMPILER_PIC([TAGNAME])
13 kx # ---------------------------
13 kx # _LT_COMPILER_PIC
13 kx
13 kx
13 kx # _LT_LINKER_SHLIBS([TAGNAME])
13 kx # ----------------------------
13 kx # See if the linker supports building shared libraries.
13 kx # _LT_LINKER_SHLIBS
13 kx
13 kx
13 kx # _LT_LANG_C_CONFIG([TAG])
13 kx # ------------------------
13 kx # Ensure that the configuration variables for a C compiler are suitably
13 kx # defined. These variables are subsequently used by _LT_CONFIG to write
13 kx # the compiler configuration to 'libtool'.
13 kx # _LT_LANG_C_CONFIG
13 kx
13 kx
13 kx # _LT_LANG_CXX_CONFIG([TAG])
13 kx # --------------------------
13 kx # Ensure that the configuration variables for a C++ compiler are suitably
13 kx # defined. These variables are subsequently used by _LT_CONFIG to write
13 kx # the compiler configuration to 'libtool'.
13 kx # _LT_LANG_CXX_CONFIG
13 kx
13 kx
13 kx # _LT_FUNC_STRIPNAME_CNF
13 kx # ----------------------
13 kx # func_stripname_cnf prefix suffix name
13 kx # strip PREFIX and SUFFIX off of NAME.
13 kx # PREFIX and SUFFIX must not contain globbing or regex special
13 kx # characters, hashes, percent signs, but SUFFIX may contain a leading
13 kx # dot (in which case that matches only a dot).
13 kx #
13 kx # This function is identical to the (non-XSI) version of func_stripname,
13 kx # except this one can be used by m4 code that may be executed by configure,
13 kx # rather than the libtool script.
13 kx # _LT_FUNC_STRIPNAME_CNF
13 kx
13 kx
13 kx # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
13 kx # ---------------------------------
13 kx # Figure out "hidden" library dependencies from verbose
13 kx # compiler output when linking a shared library.
13 kx # Parse the compiler output and extract the necessary
13 kx # objects, libraries and library flags.
13 kx # _LT_SYS_HIDDEN_LIBDEPS
13 kx
13 kx
13 kx # _LT_LANG_F77_CONFIG([TAG])
13 kx # --------------------------
13 kx # Ensure that the configuration variables for a Fortran 77 compiler are
13 kx # suitably defined. These variables are subsequently used by _LT_CONFIG
13 kx # to write the compiler configuration to 'libtool'.
13 kx # _LT_LANG_F77_CONFIG
13 kx
13 kx
13 kx # _LT_LANG_FC_CONFIG([TAG])
13 kx # -------------------------
13 kx # Ensure that the configuration variables for a Fortran compiler are
13 kx # suitably defined. These variables are subsequently used by _LT_CONFIG
13 kx # to write the compiler configuration to 'libtool'.
13 kx # _LT_LANG_FC_CONFIG
13 kx
13 kx
13 kx # _LT_LANG_GCJ_CONFIG([TAG])
13 kx # --------------------------
13 kx # Ensure that the configuration variables for the GNU Java Compiler compiler
13 kx # are suitably defined. These variables are subsequently used by _LT_CONFIG
13 kx # to write the compiler configuration to 'libtool'.
13 kx # _LT_LANG_GCJ_CONFIG
13 kx
13 kx
13 kx # _LT_LANG_GO_CONFIG([TAG])
13 kx # --------------------------
13 kx # Ensure that the configuration variables for the GNU Go compiler
13 kx # are suitably defined. These variables are subsequently used by _LT_CONFIG
13 kx # to write the compiler configuration to 'libtool'.
13 kx # _LT_LANG_GO_CONFIG
13 kx
13 kx
13 kx # _LT_LANG_RC_CONFIG([TAG])
13 kx # -------------------------
13 kx # Ensure that the configuration variables for the Windows resource compiler
13 kx # are suitably defined. These variables are subsequently used by _LT_CONFIG
13 kx # to write the compiler configuration to 'libtool'.
13 kx # _LT_LANG_RC_CONFIG
13 kx
13 kx
13 kx # LT_PROG_GCJ
13 kx # -----------
13 kx
13 kx
13 kx # Old name:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx # LT_PROG_GO
13 kx # ----------
13 kx
13 kx
13 kx
13 kx # LT_PROG_RC
13 kx # ----------
13 kx
13 kx
13 kx # Old name:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx # _LT_DECL_EGREP
13 kx # --------------
13 kx # If we don't have a new enough Autoconf to choose the best grep
13 kx # available, choose the one first in the user's PATH.
13 kx
13 kx
13 kx
13 kx # _LT_DECL_OBJDUMP
13 kx # --------------
13 kx # If we don't have a new enough Autoconf to choose the best objdump
13 kx # available, choose the one first in the user's PATH.
13 kx
13 kx
13 kx # _LT_DECL_DLLTOOL
13 kx # ----------------
13 kx # Ensure DLLTOOL variable is set.
13 kx
13 kx
13 kx # _LT_DECL_SED
13 kx # ------------
13 kx # Check for a fully-functional sed program, that truncates
13 kx # as few characters as possible. Prefer GNU sed if found.
13 kx # _LT_DECL_SED
13 kx
13 kx #m4_ifndef
13 kx
13 kx # Old name:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx # _LT_CHECK_SHELL_FEATURES
13 kx # ------------------------
13 kx # Find out whether the shell is Bourne or XSI compatible,
13 kx # or has some other useful features.
13 kx # _LT_CHECK_SHELL_FEATURES
13 kx
13 kx
13 kx # _LT_PATH_CONVERSION_FUNCTIONS
13 kx # -----------------------------
13 kx # Determine what file name conversion functions should be used by
13 kx # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
13 kx # for certain cross-compile configurations and native mingw.
13 kx # _LT_PATH_CONVERSION_FUNCTIONS
13 kx
13 kx # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
13 kx #
13 kx # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
13 kx # Foundation, Inc.
13 kx # Written by Gary V. Vaughan, 2004
13 kx #
13 kx # This file is free software; the Free Software Foundation gives
13 kx # unlimited permission to copy and/or distribute it, with or without
13 kx # modifications, as long as this notice is preserved.
13 kx
13 kx # serial 6 ltsugar.m4
13 kx
13 kx # This is to help aclocal find these macros, as it can't see m4_define.
13 kx
13 kx
13 kx
13 kx # lt_join(SEP, ARG1, [ARG2...])
13 kx # -----------------------------
13 kx # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
13 kx # associated separator.
13 kx # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
13 kx # versions in m4sugar had bugs.
13 kx
13 kx
13 kx
13 kx
13 kx # lt_car(LIST)
13 kx # lt_cdr(LIST)
13 kx # ------------
13 kx # Manipulate m4 lists.
13 kx # These macros are necessary as long as will still need to support
13 kx # Autoconf-2.59, which quotes differently.
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # lt_append(MACRO-NAME, STRING, [SEPARATOR])
13 kx # ------------------------------------------
13 kx # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
13 kx # Note that neither SEPARATOR nor STRING are expanded; they are appended
13 kx # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
13 kx # No SEPARATOR is output if MACRO-NAME was previously undefined (different
13 kx # than defined and empty).
13 kx #
13 kx # This macro is needed until we can rely on Autoconf 2.62, since earlier
13 kx # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
13 kx
13 kx
13 kx
13 kx
13 kx # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
13 kx # ----------------------------------------------------------
13 kx # Produce a SEP delimited list of all paired combinations of elements of
13 kx # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
13 kx # has the form PREFIXmINFIXSUFFIXn.
13 kx # Needed until we can rely on m4_combine added in Autoconf 2.62.
13 kx
13 kx
13 kx
13 kx # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
13 kx # -----------------------------------------------------------------------
13 kx # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
13 kx # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
13 kx
13 kx
13 kx
13 kx # lt_dict_add(DICT, KEY, VALUE)
13 kx # -----------------------------
13 kx
13 kx
13 kx
13 kx # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
13 kx # --------------------------------------------
13 kx
13 kx
13 kx
13 kx # lt_dict_fetch(DICT, KEY, [SUBKEY])
13 kx # ----------------------------------
13 kx
13 kx
13 kx
13 kx # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
13 kx # -----------------------------------------------------------------
13 kx
13 kx
13 kx
13 kx # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
13 kx # --------------------------------------------------------------
13 kx
13 kx
13 kx
13 kx # Helper functions for option handling. -*- Autoconf -*-
13 kx #
13 kx # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
13 kx # Foundation, Inc.
13 kx # Written by Gary V. Vaughan, 2004
13 kx #
13 kx # This file is free software; the Free Software Foundation gives
13 kx # unlimited permission to copy and/or distribute it, with or without
13 kx # modifications, as long as this notice is preserved.
13 kx
13 kx # serial 8 ltoptions.m4
13 kx
13 kx # This is to help aclocal find these macros, as it can't see m4_define.
13 kx
13 kx
13 kx
13 kx # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
13 kx # ------------------------------------------
13 kx
13 kx
13 kx
13 kx # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
13 kx # ---------------------------------------
13 kx # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
13 kx # matching handler defined, dispatch to it. Other OPTION-NAMEs are
13 kx # saved as a flag.
13 kx
13 kx
13 kx
13 kx # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
13 kx # ------------------------------------------------------------
13 kx # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
13 kx
13 kx
13 kx
13 kx # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
13 kx # -------------------------------------------------------
13 kx # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
13 kx # are set.
13 kx
13 kx
13 kx
13 kx # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
13 kx # ----------------------------------------
13 kx # OPTION-LIST is a space-separated list of Libtool options associated
13 kx # with MACRO-NAME. If any OPTION has a matching handler declared with
13 kx # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
13 kx # the unknown option and exit.
13 kx # _LT_SET_OPTIONS
13 kx
13 kx
13 kx ## --------------------------------- ##
13 kx ## Macros to handle LT_INIT options. ##
13 kx ## --------------------------------- ##
13 kx
13 kx # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
13 kx # -----------------------------------------
13 kx
13 kx
13 kx
13 kx # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
13 kx # -----------------------------------------------
13 kx # LT_OPTION_DEFINE
13 kx
13 kx
13 kx # dlopen
13 kx # ------
13 kx
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx
13 kx # win32-dll
13 kx # ---------
13 kx # Declare package support for building win32 dll's.
13 kx # win32-dll
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx
13 kx # _LT_ENABLE_SHARED([DEFAULT])
13 kx # ----------------------------
13 kx # implement the --enable-shared flag, and supports the 'shared' and
13 kx # 'disable-shared' LT_INIT options.
13 kx # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
13 kx # _LT_ENABLE_SHARED
13 kx
13 kx
13 kx
13 kx
13 kx # Old names:
13 kx
13 kx
13 kx
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # _LT_ENABLE_STATIC([DEFAULT])
13 kx # ----------------------------
13 kx # implement the --enable-static flag, and support the 'static' and
13 kx # 'disable-static' LT_INIT options.
13 kx # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
13 kx # _LT_ENABLE_STATIC
13 kx
13 kx
13 kx
13 kx
13 kx # Old names:
13 kx
13 kx
13 kx
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # _LT_ENABLE_FAST_INSTALL([DEFAULT])
13 kx # ----------------------------------
13 kx # implement the --enable-fast-install flag, and support the 'fast-install'
13 kx # and 'disable-fast-install' LT_INIT options.
13 kx # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
13 kx # _LT_ENABLE_FAST_INSTALL
13 kx
13 kx
13 kx
13 kx
13 kx # Old names:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx
13 kx # _LT_WITH_AIX_SONAME([DEFAULT])
13 kx # ----------------------------------
13 kx # implement the --with-aix-soname flag, and support the `aix-soname=aix'
13 kx # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
13 kx # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
13 kx # _LT_WITH_AIX_SONAME
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # _LT_WITH_PIC([MODE])
13 kx # --------------------
13 kx # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
13 kx # LT_INIT options.
13 kx # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
13 kx # _LT_WITH_PIC
13 kx
13 kx
13 kx
13 kx
13 kx # Old name:
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx ## ----------------- ##
13 kx ## LTDL_INIT Options ##
13 kx ## ----------------- ##
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # ltversion.m4 -- version numbers -*- Autoconf -*-
13 kx #
13 kx # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
13 kx # Written by Scott James Remnant, 2004
13 kx #
13 kx # This file is free software; the Free Software Foundation gives
13 kx # unlimited permission to copy and/or distribute it, with or without
13 kx # modifications, as long as this notice is preserved.
13 kx
13 kx # @configure_input@
13 kx
13 kx # serial 4179 ltversion.m4
13 kx # This file is part of GNU Libtool
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
13 kx #
13 kx # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
13 kx # Foundation, Inc.
13 kx # Written by Scott James Remnant, 2004.
13 kx #
13 kx # This file is free software; the Free Software Foundation gives
13 kx # unlimited permission to copy and/or distribute it, with or without
13 kx # modifications, as long as this notice is preserved.
13 kx
13 kx # serial 5 lt~obsolete.m4
13 kx
13 kx # These exist entirely to fool aclocal when bootstrapping libtool.
13 kx #
13 kx # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
13 kx # which have later been changed to m4_define as they aren't part of the
13 kx # exported API, or moved to Autoconf or Automake where they belong.
13 kx #
13 kx # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
13 kx # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
13 kx # using a macro with the same name in our local m4/libtool.m4 it'll
13 kx # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
13 kx # and doesn't know about Autoconf macros at all.)
13 kx #
13 kx # So we provide this file, which has a silly filename so it's always
13 kx # included after everything else. This provides aclocal with the
13 kx # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
13 kx # because those macros already exist, or will be overwritten later.
13 kx # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
13 kx #
13 kx # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
13 kx # Yes, that means every name once taken will need to remain here until
13 kx # we give up compatibility with versions before 1.7, at which point
13 kx # we need to keep only those names which we still refer to.
13 kx
13 kx # This is to help aclocal find these macros, as it can't see m4_define.
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # ===========================================================================
13 kx # https://www.gnu.org/software/autoconf-archive/ax_prog_cc_for_build.html
13 kx # ===========================================================================
13 kx #
13 kx # SYNOPSIS
13 kx #
13 kx # AX_PROG_CC_FOR_BUILD
13 kx #
13 kx # DESCRIPTION
13 kx #
13 kx # This macro searches for a C compiler that generates native executables,
13 kx # that is a C compiler that surely is not a cross-compiler. This can be
13 kx # useful if you have to generate source code at compile-time like for
13 kx # example GCC does.
13 kx #
13 kx # The macro sets the CC_FOR_BUILD and CPP_FOR_BUILD macros to anything
13 kx # needed to compile or link (CC_FOR_BUILD) and preprocess (CPP_FOR_BUILD).
13 kx # The value of these variables can be overridden by the user by specifying
13 kx # a compiler with an environment variable (like you do for standard CC).
13 kx #
13 kx # It also sets BUILD_EXEEXT and BUILD_OBJEXT to the executable and object
13 kx # file extensions for the build platform, and GCC_FOR_BUILD to `yes' if
13 kx # the compiler we found is GCC. All these variables but GCC_FOR_BUILD are
13 kx # substituted in the Makefile.
13 kx #
13 kx # LICENSE
13 kx #
13 kx # Copyright (c) 2008 Paolo Bonzini <bonzini@gnu.org>
13 kx #
13 kx # Copying and distribution of this file, with or without modification, are
13 kx # permitted in any medium without royalty provided the copyright notice
13 kx # and this notice are preserved. This file is offered as-is, without any
13 kx # warranty.
13 kx
13 kx #serial 9
13 kx
13 kx # This is what autoupdate's m4 run will expand. It fires
13 kx # the warning (with _au_warn_XXX), outputs it into the
13 kx # updated configure.ac (with AC_DIAGNOSE), and then outputs
13 kx # the replacement expansion.
13 kx
13 kx
13 kx # This is an auxiliary macro that is also run when
13 kx # autoupdate runs m4. It simply calls m4_warning, but
13 kx # we need a wrapper so that each warning is emitted only
13 kx # once. We break the quoting in m4_warning's argument in
13 kx # order to expand this macro's arguments, not AU_DEFUN's.
13 kx
13 kx
13 kx # Finally, this is the expansion that is picked up by
13 kx # autoconf. It tells the user to run autoupdate, and
13 kx # then outputs the replacement expansion. We do not care
13 kx # about autoupdate's warning because that contains
13 kx # information on what to do *after* running autoupdate.
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx apr_ste_save_CPPFLAGS="$CPPFLAGS"
13 kx
13 kx
13 kx apr_ste_save_CFLAGS="$CFLAGS"
13 kx
13 kx
13 kx apr_ste_save_LDFLAGS="$LDFLAGS"
13 kx
13 kx
13 kx apr_ste_save_LIBS="$LIBS"
13 kx
13 kx
13 kx apr_ste_save_INCLUDES="$INCLUDES"
13 kx
13 kx
13 kx
13 kx rm -f config.nice
13 kx cat >config.nice<<EOF
13 kx #! /bin/sh
13 kx #
13 kx # Created by configure
13 kx
13 kx EOF
13 kx if test -n "$CC"; then
13 kx echo "CC=\"$CC\"; export CC" >> config.nice
13 kx fi
13 kx if test -n "$CFLAGS"; then
13 kx echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
13 kx fi
13 kx if test -n "$CPPFLAGS"; then
13 kx echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
13 kx fi
13 kx if test -n "$LDFLAGS"; then
13 kx echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
13 kx fi
13 kx if test -n "$LTFLAGS"; then
13 kx echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
13 kx fi
13 kx if test -n "$LIBS"; then
13 kx echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
13 kx fi
13 kx if test -n "$INCLUDES"; then
13 kx echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
13 kx fi
13 kx if test -n "$NOTEST_CFLAGS"; then
13 kx echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
13 kx fi
13 kx if test -n "$NOTEST_CPPFLAGS"; then
13 kx echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
13 kx fi
13 kx if test -n "$NOTEST_LDFLAGS"; then
13 kx echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
13 kx fi
13 kx if test -n "$NOTEST_LIBS"; then
13 kx echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
13 kx fi
13 kx
13 kx # Retrieve command-line arguments.
13 kx eval "set x $0 $ac_configure_args"
13 kx shift
13 kx
13 kx for arg
13 kx do
13 kx
13 kx ap_last=
13 kx ap_cur="$arg"
13 kx while test "x${ap_cur}" != "x${ap_last}";
13 kx do
13 kx ap_last="${ap_cur}"
13 kx ap_cur=`eval "echo ${ap_cur}"`
13 kx done
13 kx arg="${ap_cur}"
13 kx
13 kx echo "\"$arg\" \\" >> config.nice
13 kx done
13 kx echo '"$@"' >> config.nice
13 kx chmod +x config.nice
13 kx
13 kx
13 kx # Make sure we can run config.sub.
13 kx $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13 kx as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13 kx $as_echo_n "checking build system type... " >&6; }
13 kx if ${ac_cv_build+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_build_alias=$build_alias
13 kx test "x$ac_build_alias" = x &&
13 kx ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13 kx test "x$ac_build_alias" = x &&
13 kx as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13 kx ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13 kx as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13 kx $as_echo "$ac_cv_build" >&6; }
13 kx case $ac_cv_build in
13 kx *-*-*) ;;
13 kx *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13 kx esac
13 kx build=$ac_cv_build
13 kx ac_save_IFS=$IFS; IFS='-'
13 kx set x $ac_cv_build
13 kx shift
13 kx build_cpu=$1
13 kx build_vendor=$2
13 kx shift; shift
13 kx # Remember, the first character of IFS is used to create $*,
13 kx # except with old shells:
13 kx build_os=$*
13 kx IFS=$ac_save_IFS
13 kx case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13 kx $as_echo_n "checking host system type... " >&6; }
13 kx if ${ac_cv_host+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "x$host_alias" = x; then
13 kx ac_cv_host=$ac_cv_build
13 kx else
13 kx ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13 kx as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13 kx $as_echo "$ac_cv_host" >&6; }
13 kx case $ac_cv_host in
13 kx *-*-*) ;;
13 kx *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13 kx esac
13 kx host=$ac_cv_host
13 kx ac_save_IFS=$IFS; IFS='-'
13 kx set x $ac_cv_host
13 kx shift
13 kx host_cpu=$1
13 kx host_vendor=$2
13 kx shift; shift
13 kx # Remember, the first character of IFS is used to create $*,
13 kx # except with old shells:
13 kx host_os=$*
13 kx IFS=$ac_save_IFS
13 kx case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13 kx $as_echo_n "checking target system type... " >&6; }
13 kx if ${ac_cv_target+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "x$target_alias" = x; then
13 kx ac_cv_target=$ac_cv_host
13 kx else
13 kx ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13 kx as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13 kx $as_echo "$ac_cv_target" >&6; }
13 kx case $ac_cv_target in
13 kx *-*-*) ;;
13 kx *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13 kx esac
13 kx target=$ac_cv_target
13 kx ac_save_IFS=$IFS; IFS='-'
13 kx set x $ac_cv_target
13 kx shift
13 kx target_cpu=$1
13 kx target_vendor=$2
13 kx shift; shift
13 kx # Remember, the first character of IFS is used to create $*,
13 kx # except with old shells:
13 kx target_os=$*
13 kx IFS=$ac_save_IFS
13 kx case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13 kx
13 kx
13 kx # The aliases save the names the user supplied, while $host etc.
13 kx # will get canonicalized.
13 kx test -n "$target_alias" &&
13 kx test "$program_prefix$program_suffix$program_transform_name" = \
13 kx NONENONEs,x,x, &&
13 kx program_prefix=${target_alias}-
13 kx
13 kx echo "Configuring APR library"
13 kx echo "Platform: $host"
13 kx
13 kx
13 kx
13 kx # Absolute source/build directory
13 kx apr_srcdir=`(cd $srcdir && pwd)`
13 kx apr_builddir=`pwd`
13 kx
13 kx
13 kx
13 kx if test "$apr_builddir" != "$apr_srcdir"; then
13 kx USE_VPATH=1
13 kx APR_CONFIG_LOCATION=build
13 kx else
13 kx APR_CONFIG_LOCATION=source
13 kx fi
13 kx
13 kx
13 kx
13 kx if test "x$host_alias" != x; then
13 kx if test "x$build_alias" = x; then
13 kx APR_CROSS_COMPILING=maybe
13 kx elif test "x$build_alias" != "x$host_alias"; then
13 kx APR_CROSS_COMPILING=yes
13 kx fi
13 kx else
13 kx APR_CROSS_COMPILING=no
13 kx fi
13 kx
13 kx
13 kx
13 kx # Libtool might need this symbol -- it must point to the location of
13 kx # the generated libtool script (not necessarily the "top" build dir).
13 kx #
13 kx top_builddir="$apr_builddir"
13 kx
13 kx
13 kx # Directory containing apr build macros, helpers, and make rules
13 kx # NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
13 kx #
13 kx apr_buildout=$apr_builddir/build
13 kx apr_builders=$apr_srcdir/build
13 kx
13 kx
13 kx MKDIR=$apr_builders/mkdir.sh
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
13 kx $as_echo_n "checking for working mkdir -p... " >&6; }
13 kx if ${ac_cv_mkdir_p+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx test -d conftestdir && rm -rf conftestdir
13 kx mkdir -p conftestdir/somedir >/dev/null 2>&1
13 kx if test -d conftestdir/somedir; then
13 kx ac_cv_mkdir_p=yes
13 kx else
13 kx ac_cv_mkdir_p=no
13 kx fi
13 kx rm -rf conftestdir
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
13 kx $as_echo "$ac_cv_mkdir_p" >&6; }
13 kx if test "$ac_cv_mkdir_p" = "yes"; then
13 kx mkdir_p="mkdir -p"
13 kx else
13 kx mkdir_p="$apr_builders/mkdir.sh"
13 kx fi
13 kx
13 kx
13 kx # get our version information
13 kx get_version="$apr_builders/get-version.sh"
13 kx version_hdr="$apr_srcdir/include/apr_version.h"
13 kx APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
13 kx APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
13 kx
13 kx
13 kx
13 kx
13 kx echo "APR Version: ${APR_DOTTED_VERSION}"
13 kx
13 kx
13 kx # Check whether --enable-layout was given.
13 kx if test "${enable_layout+set}" = set; then :
13 kx enableval=$enable_layout;
13 kx LAYOUT=$enableval
13 kx
13 kx fi
13 kx
13 kx
13 kx if test -z "$LAYOUT"; then
13 kx LAYOUT="apr"
13 kx fi
13 kx
13 kx if test ! -f $srcdir/config.layout; then
13 kx echo "** Error: Layout file $srcdir/config.layout not found"
13 kx echo "** Error: Cannot use undefined layout '$LAYOUT'"
13 kx exit 1
13 kx fi
13 kx # Catch layout names including a slash which will otherwise
13 kx # confuse the heck out of the sed script.
13 kx case $LAYOUT in
13 kx */*)
13 kx echo "** Error: $LAYOUT is not a valid layout name"
13 kx exit 1 ;;
13 kx esac
13 kx pldconf=./config.pld
13 kx
13 kx sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \
13 kx -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \
13 kx -e '/[ ]*<\/Layout>[ ]*/,$d' \
13 kx -e "s/^[ ]*//g" \
13 kx -e "s/:[ ]*/=\'/g" \
13 kx -e "s/[ ]*$/'/g" \
13 kx $srcdir/config.layout > $pldconf
13 kx layout_name=$LAYOUT
13 kx if test ! -s $pldconf; then
13 kx echo "** Error: unable to find layout $layout_name"
13 kx exit 1
13 kx fi
13 kx . $pldconf
13 kx rm $pldconf
13 kx for var in prefix exec_prefix bindir sbindir libexecdir mandir \
13 kx sysconfdir datadir includedir localstatedir runtimedir \
13 kx logfiledir libdir installbuilddir libsuffix ; do
13 kx eval "val=\"\$$var\""
13 kx case $val in
13 kx *+)
13 kx val=`echo $val | sed -e 's;\+$;;'`
13 kx eval "$var=\"\$val\""
13 kx autosuffix=yes
13 kx ;;
13 kx *)
13 kx autosuffix=no
13 kx ;;
13 kx esac
13 kx val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
13 kx val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
13 kx if test "$autosuffix" = "yes"; then
13 kx if echo $val | grep apache >/dev/null; then
13 kx addtarget=no
13 kx else
13 kx addtarget=yes
13 kx fi
13 kx if test "$addtarget" = "yes"; then
13 kx val="$val/apache2"
13 kx fi
13 kx fi
13 kx eval "$var='$val'"
13 kx done
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
13 kx $as_echo_n "checking for chosen layout... " >&6; }
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
13 kx $as_echo "$layout_name" >&6; }
13 kx
13 kx
13 kx
13 kx ac_prev=
13 kx # Retrieve the command-line arguments. The eval is needed because
13 kx # the arguments are quoted to preserve accuracy.
13 kx eval "set x $ac_configure_args"
13 kx shift
13 kx for ac_option
13 kx do
13 kx # If the previous option needs an argument, assign it.
13 kx if test -n "$ac_prev"; then
13 kx eval "$ac_prev=\$ac_option"
13 kx ac_prev=
13 kx continue
13 kx fi
13 kx
13 kx ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
13 kx
13 kx case $ac_option in
13 kx
13 kx -bindir | --bindir | --bindi | --bind | --bin | --bi)
13 kx ac_prev=bindir ;;
13 kx -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13 kx bindir="$ac_optarg" ;;
13 kx
13 kx -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
13 kx ac_prev=datadir ;;
13 kx -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
13 kx | --da=*)
13 kx datadir="$ac_optarg" ;;
13 kx
13 kx -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
13 kx | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
13 kx | --exec | --exe | --ex)
13 kx ac_prev=exec_prefix ;;
13 kx -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
13 kx | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
13 kx | --exec=* | --exe=* | --ex=*)
13 kx exec_prefix="$ac_optarg" ;;
13 kx
13 kx -includedir | --includedir | --includedi | --included | --include \
13 kx | --includ | --inclu | --incl | --inc)
13 kx ac_prev=includedir ;;
13 kx -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
13 kx | --includ=* | --inclu=* | --incl=* | --inc=*)
13 kx includedir="$ac_optarg" ;;
13 kx
13 kx -infodir | --infodir | --infodi | --infod | --info | --inf)
13 kx ac_prev=infodir ;;
13 kx -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13 kx infodir="$ac_optarg" ;;
13 kx
13 kx -libdir | --libdir | --libdi | --libd)
13 kx ac_prev=libdir ;;
13 kx -libdir=* | --libdir=* | --libdi=* | --libd=*)
13 kx libdir="$ac_optarg" ;;
13 kx
13 kx -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
13 kx | --libexe | --libex | --libe)
13 kx ac_prev=libexecdir ;;
13 kx -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
13 kx | --libexe=* | --libex=* | --libe=*)
13 kx libexecdir="$ac_optarg" ;;
13 kx
13 kx -localstatedir | --localstatedir | --localstatedi | --localstated \
13 kx | --localstate | --localstat | --localsta | --localst \
13 kx | --locals | --local | --loca | --loc | --lo)
13 kx ac_prev=localstatedir ;;
13 kx -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
13 kx | --localstate=* | --localstat=* | --localsta=* | --localst=* \
13 kx | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
13 kx localstatedir="$ac_optarg" ;;
13 kx
13 kx -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
13 kx ac_prev=mandir ;;
13 kx -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13 kx mandir="$ac_optarg" ;;
13 kx
13 kx -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13 kx ac_prev=prefix ;;
13 kx -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13 kx prefix="$ac_optarg" ;;
13 kx
13 kx -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
13 kx ac_prev=sbindir ;;
13 kx -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
13 kx | --sbi=* | --sb=*)
13 kx sbindir="$ac_optarg" ;;
13 kx
13 kx -sharedstatedir | --sharedstatedir | --sharedstatedi \
13 kx | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
13 kx | --sharedst | --shareds | --shared | --share | --shar \
13 kx | --sha | --sh)
13 kx ac_prev=sharedstatedir ;;
13 kx -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
13 kx | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
13 kx | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
13 kx | --sha=* | --sh=*)
13 kx sharedstatedir="$ac_optarg" ;;
13 kx
13 kx -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
13 kx | --syscon | --sysco | --sysc | --sys | --sy)
13 kx ac_prev=sysconfdir ;;
13 kx -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
13 kx | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13 kx sysconfdir="$ac_optarg" ;;
13 kx
13 kx esac
13 kx done
13 kx
13 kx # Be sure to have absolute paths.
13 kx for ac_var in exec_prefix prefix
13 kx do
13 kx eval ac_val=$`echo $ac_var`
13 kx case $ac_val in
13 kx [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
13 kx *) as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
13 kx esac
13 kx done
13 kx
13 kx
13 kx
13 kx
13 kx case "$host" in
13 kx *-apple-aux3*)
13 kx
13 kx if test -z "$CC"; then
13 kx test "x$silent" != "xyes" && echo " setting CC to \"gcc\""
13 kx CC="gcc"
13 kx fi
13 kx
13 kx ;;
13 kx bs2000*-siemens-sysv*)
13 kx
13 kx if test -z "$CC"; then
13 kx test "x$silent" != "xyes" && echo " setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
13 kx CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
13 kx fi
13 kx
13 kx ;;
13 kx *convex-v11*)
13 kx
13 kx if test -z "$CC"; then
13 kx test "x$silent" != "xyes" && echo " setting CC to \"cc\""
13 kx CC="cc"
13 kx fi
13 kx
13 kx ;;
13 kx *-ibm-os390)
13 kx
13 kx if test -z "$CC"; then
13 kx test "x$silent" != "xyes" && echo " setting CC to \"cc\""
13 kx CC="cc"
13 kx fi
13 kx
13 kx ;;
13 kx *-ibm-as400)
13 kx
13 kx if test -z "$CC"; then
13 kx test "x$silent" != "xyes" && echo " setting CC to \"icc\""
13 kx CC="icc"
13 kx fi
13 kx
13 kx ;;
13 kx *-isc4*)
13 kx
13 kx if test -z "$CC"; then
13 kx test "x$silent" != "xyes" && echo " setting CC to \"gcc\""
13 kx CC="gcc"
13 kx fi
13 kx
13 kx ;;
13 kx m88k-*-CX/SX|CYBER)
13 kx
13 kx if test -z "$CC"; then
13 kx test "x$silent" != "xyes" && echo " setting CC to \"cc\""
13 kx CC="cc"
13 kx fi
13 kx
13 kx ;;
13 kx *-next-openstep*)
13 kx
13 kx if test -z "$CC"; then
13 kx test "x$silent" != "xyes" && echo " setting CC to \"cc\""
13 kx CC="cc"
13 kx fi
13 kx
13 kx ;;
13 kx *-qnx32)
13 kx
13 kx if test -z "$CC"; then
13 kx test "x$silent" != "xyes" && echo " setting CC to \"cc -F\""
13 kx CC="cc -F"
13 kx fi
13 kx
13 kx ;;
13 kx *-tandem-oss)
13 kx
13 kx if test -z "$CC"; then
13 kx test "x$silent" != "xyes" && echo " setting CC to \"c89\""
13 kx CC="c89"
13 kx fi
13 kx
13 kx ;;
13 kx TPF)
13 kx
13 kx if test -z "$CC"; then
13 kx test "x$silent" != "xyes" && echo " setting CC to \"c89\""
13 kx CC="c89"
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx ac_ext=c
13 kx ac_cpp='$CPP $CPPFLAGS'
13 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}gcc; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_CC+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$CC"; then
13 kx ac_cv_prog_CC="$CC" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_CC="${ac_tool_prefix}gcc"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx CC=$ac_cv_prog_CC
13 kx if test -n "$CC"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13 kx $as_echo "$CC" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_CC"; then
13 kx ac_ct_CC=$CC
13 kx # Extract the first word of "gcc", so it can be a program name with args.
13 kx set dummy gcc; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_CC+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_CC"; then
13 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_CC="gcc"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
13 kx if test -n "$ac_ct_CC"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13 kx $as_echo "$ac_ct_CC" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_CC" = x; then
13 kx CC=""
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx CC=$ac_ct_CC
13 kx fi
13 kx else
13 kx CC="$ac_cv_prog_CC"
13 kx fi
13 kx
13 kx if test -z "$CC"; then
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}cc; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_CC+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$CC"; then
13 kx ac_cv_prog_CC="$CC" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_CC="${ac_tool_prefix}cc"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx CC=$ac_cv_prog_CC
13 kx if test -n "$CC"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13 kx $as_echo "$CC" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx fi
13 kx if test -z "$CC"; then
13 kx # Extract the first word of "cc", so it can be a program name with args.
13 kx set dummy cc; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_CC+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$CC"; then
13 kx ac_cv_prog_CC="$CC" # Let the user override the test.
13 kx else
13 kx ac_prog_rejected=no
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13 kx ac_prog_rejected=yes
13 kx continue
13 kx fi
13 kx ac_cv_prog_CC="cc"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx if test $ac_prog_rejected = yes; then
13 kx # We found a bogon in the path, so make sure we never use it.
13 kx set dummy $ac_cv_prog_CC
13 kx shift
13 kx if test $# != 0; then
13 kx # We chose a different compiler from the bogus one.
13 kx # However, it has the same basename, so the bogon will be chosen
13 kx # first if we set CC to just the basename; use the full file name.
13 kx shift
13 kx ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13 kx fi
13 kx fi
13 kx fi
13 kx fi
13 kx CC=$ac_cv_prog_CC
13 kx if test -n "$CC"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13 kx $as_echo "$CC" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$CC"; then
13 kx if test -n "$ac_tool_prefix"; then
13 kx for ac_prog in cl.exe
13 kx do
13 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_CC+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$CC"; then
13 kx ac_cv_prog_CC="$CC" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx CC=$ac_cv_prog_CC
13 kx if test -n "$CC"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13 kx $as_echo "$CC" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx test -n "$CC" && break
13 kx done
13 kx fi
13 kx if test -z "$CC"; then
13 kx ac_ct_CC=$CC
13 kx for ac_prog in cl.exe
13 kx do
13 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
13 kx set dummy $ac_prog; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_CC+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_CC"; then
13 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_CC="$ac_prog"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
13 kx if test -n "$ac_ct_CC"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13 kx $as_echo "$ac_ct_CC" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx test -n "$ac_ct_CC" && break
13 kx done
13 kx
13 kx if test "x$ac_ct_CC" = x; then
13 kx CC=""
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx CC=$ac_ct_CC
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx
13 kx
13 kx test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error $? "no acceptable C compiler found in \$PATH
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx
13 kx # Provide some information about the compiler.
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13 kx set X $ac_compile
13 kx ac_compiler=$2
13 kx for ac_option in --version -v -V -qversion; do
13 kx { { ac_try="$ac_compiler $ac_option >&5"
13 kx case "(($ac_try" in
13 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13 kx *) ac_try_echo=$ac_try;;
13 kx esac
13 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13 kx $as_echo "$ac_try_echo"; } >&5
13 kx (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13 kx ac_status=$?
13 kx if test -s conftest.err; then
13 kx sed '10a\
13 kx ... rest of stderr output deleted ...
13 kx 10q' conftest.err >conftest.er1
13 kx cat conftest.er1 >&5
13 kx fi
13 kx rm -f conftest.er1 conftest.err
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }
13 kx done
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx ac_clean_files_save=$ac_clean_files
13 kx ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
13 kx # Try to create an executable without -o first, disregard a.out.
13 kx # It will help us diagnose broken compilers, and finding out an intuition
13 kx # of exeext.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
13 kx $as_echo_n "checking whether the C compiler works... " >&6; }
13 kx ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
13 kx
13 kx # The possible output files:
13 kx ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
13 kx
13 kx ac_rmfiles=
13 kx for ac_file in $ac_files
13 kx do
13 kx case $ac_file in
13 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
13 kx * ) ac_rmfiles="$ac_rmfiles $ac_file";;
13 kx esac
13 kx done
13 kx rm -f $ac_rmfiles
13 kx
13 kx if { { ac_try="$ac_link_default"
13 kx case "(($ac_try" in
13 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13 kx *) ac_try_echo=$ac_try;;
13 kx esac
13 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13 kx $as_echo "$ac_try_echo"; } >&5
13 kx (eval "$ac_link_default") 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }; then :
13 kx # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
13 kx # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
13 kx # in a Makefile. We should not override ac_cv_exeext if it was cached,
13 kx # so that the user can short-circuit this test for compilers unknown to
13 kx # Autoconf.
13 kx for ac_file in $ac_files ''
13 kx do
13 kx test -f "$ac_file" || continue
13 kx case $ac_file in
13 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
13 kx ;;
13 kx [ab].out )
13 kx # We found the default executable, but exeext='' is most
13 kx # certainly right.
13 kx break;;
13 kx *.* )
13 kx if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
13 kx then :; else
13 kx ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
13 kx fi
13 kx # We set ac_cv_exeext here because the later test for it is not
13 kx # safe: cross compilers may not add the suffix if given an `-o'
13 kx # argument, so we may need to know it at that point already.
13 kx # Even if this section looks crufty: it has the advantage of
13 kx # actually working.
13 kx break;;
13 kx * )
13 kx break;;
13 kx esac
13 kx done
13 kx test "$ac_cv_exeext" = no && ac_cv_exeext=
13 kx
13 kx else
13 kx ac_file=''
13 kx fi
13 kx if test -z "$ac_file"; then :
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx $as_echo "$as_me: failed program was:" >&5
13 kx sed 's/^/| /' conftest.$ac_ext >&5
13 kx
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "C compiler cannot create executables
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13 kx $as_echo "yes" >&6; }
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
13 kx $as_echo_n "checking for C compiler default output file name... " >&6; }
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
13 kx $as_echo "$ac_file" >&6; }
13 kx ac_exeext=$ac_cv_exeext
13 kx
13 kx rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
13 kx ac_clean_files=$ac_clean_files_save
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
13 kx $as_echo_n "checking for suffix of executables... " >&6; }
13 kx if { { ac_try="$ac_link"
13 kx case "(($ac_try" in
13 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13 kx *) ac_try_echo=$ac_try;;
13 kx esac
13 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13 kx $as_echo "$ac_try_echo"; } >&5
13 kx (eval "$ac_link") 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }; then :
13 kx # If both `conftest.exe' and `conftest' are `present' (well, observable)
13 kx # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
13 kx # work properly (i.e., refer to `conftest.exe'), while it won't with
13 kx # `rm'.
13 kx for ac_file in conftest.exe conftest conftest.*; do
13 kx test -f "$ac_file" || continue
13 kx case $ac_file in
13 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
13 kx *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
13 kx break;;
13 kx * ) break;;
13 kx esac
13 kx done
13 kx else
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error $? "cannot compute suffix of executables: cannot compile and link
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx fi
13 kx rm -f conftest conftest$ac_cv_exeext
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
13 kx $as_echo "$ac_cv_exeext" >&6; }
13 kx
13 kx rm -f conftest.$ac_ext
13 kx EXEEXT=$ac_cv_exeext
13 kx ac_exeext=$EXEEXT
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <stdio.h>
13 kx int
13 kx main ()
13 kx {
13 kx FILE *f = fopen ("conftest.out", "w");
13 kx return ferror (f) || fclose (f) != 0;
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx ac_clean_files="$ac_clean_files conftest.out"
13 kx # Check that the compiler produces executables we can run. If not, either
13 kx # the compiler is broken, or we cross compile.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
13 kx $as_echo_n "checking whether we are cross compiling... " >&6; }
13 kx if test "$cross_compiling" != yes; then
13 kx { { ac_try="$ac_link"
13 kx case "(($ac_try" in
13 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13 kx *) ac_try_echo=$ac_try;;
13 kx esac
13 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13 kx $as_echo "$ac_try_echo"; } >&5
13 kx (eval "$ac_link") 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }
13 kx if { ac_try='./conftest$ac_cv_exeext'
13 kx { { case "(($ac_try" in
13 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13 kx *) ac_try_echo=$ac_try;;
13 kx esac
13 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13 kx $as_echo "$ac_try_echo"; } >&5
13 kx (eval "$ac_try") 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }; }; then
13 kx cross_compiling=no
13 kx else
13 kx if test "$cross_compiling" = maybe; then
13 kx cross_compiling=yes
13 kx else
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error $? "cannot run C compiled programs.
13 kx If you meant to cross compile, use \`--host'.
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx fi
13 kx fi
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
13 kx $as_echo "$cross_compiling" >&6; }
13 kx
13 kx rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
13 kx ac_clean_files=$ac_clean_files_save
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
13 kx $as_echo_n "checking for suffix of object files... " >&6; }
13 kx if ${ac_cv_objext+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx rm -f conftest.o conftest.obj
13 kx if { { ac_try="$ac_compile"
13 kx case "(($ac_try" in
13 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13 kx *) ac_try_echo=$ac_try;;
13 kx esac
13 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13 kx $as_echo "$ac_try_echo"; } >&5
13 kx (eval "$ac_compile") 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }; then :
13 kx for ac_file in conftest.o conftest.obj conftest.*; do
13 kx test -f "$ac_file" || continue;
13 kx case $ac_file in
13 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
13 kx *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
13 kx break;;
13 kx esac
13 kx done
13 kx else
13 kx $as_echo "$as_me: failed program was:" >&5
13 kx sed 's/^/| /' conftest.$ac_ext >&5
13 kx
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error $? "cannot compute suffix of object files: cannot compile
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx fi
13 kx rm -f conftest.$ac_cv_objext conftest.$ac_ext
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
13 kx $as_echo "$ac_cv_objext" >&6; }
13 kx OBJEXT=$ac_cv_objext
13 kx ac_objext=$OBJEXT
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13 kx $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13 kx if ${ac_cv_c_compiler_gnu+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx #ifndef __GNUC__
13 kx choke me
13 kx #endif
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_compiler_gnu=yes
13 kx else
13 kx ac_compiler_gnu=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx ac_cv_c_compiler_gnu=$ac_compiler_gnu
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13 kx $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13 kx if test $ac_compiler_gnu = yes; then
13 kx GCC=yes
13 kx else
13 kx GCC=
13 kx fi
13 kx ac_test_CFLAGS=${CFLAGS+set}
13 kx ac_save_CFLAGS=$CFLAGS
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13 kx $as_echo_n "checking whether $CC accepts -g... " >&6; }
13 kx if ${ac_cv_prog_cc_g+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_save_c_werror_flag=$ac_c_werror_flag
13 kx ac_c_werror_flag=yes
13 kx ac_cv_prog_cc_g=no
13 kx CFLAGS="-g"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_prog_cc_g=yes
13 kx else
13 kx CFLAGS=""
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx else
13 kx ac_c_werror_flag=$ac_save_c_werror_flag
13 kx CFLAGS="-g"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_prog_cc_g=yes
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx ac_c_werror_flag=$ac_save_c_werror_flag
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13 kx $as_echo "$ac_cv_prog_cc_g" >&6; }
13 kx if test "$ac_test_CFLAGS" = set; then
13 kx CFLAGS=$ac_save_CFLAGS
13 kx elif test $ac_cv_prog_cc_g = yes; then
13 kx if test "$GCC" = yes; then
13 kx CFLAGS="-g -O2"
13 kx else
13 kx CFLAGS="-g"
13 kx fi
13 kx else
13 kx if test "$GCC" = yes; then
13 kx CFLAGS="-O2"
13 kx else
13 kx CFLAGS=
13 kx fi
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13 kx $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13 kx if ${ac_cv_prog_cc_c89+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_cv_prog_cc_c89=no
13 kx ac_save_CC=$CC
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <stdarg.h>
13 kx #include <stdio.h>
13 kx struct stat;
13 kx /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13 kx struct buf { int x; };
13 kx FILE * (*rcsopen) (struct buf *, struct stat *, int);
13 kx static char *e (p, i)
13 kx char **p;
13 kx int i;
13 kx {
13 kx return p[i];
13 kx }
13 kx static char *f (char * (*g) (char **, int), char **p, ...)
13 kx {
13 kx char *s;
13 kx va_list v;
13 kx va_start (v,p);
13 kx s = g (p, va_arg (v,int));
13 kx va_end (v);
13 kx return s;
13 kx }
13 kx
13 kx /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13 kx function prototypes and stuff, but not '\xHH' hex character constants.
13 kx These don't provoke an error unfortunately, instead are silently treated
13 kx as 'x'. The following induces an error, until -std is added to get
13 kx proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13 kx array size at least. It's necessary to write '\x00'==0 to get something
13 kx that's true only with -std. */
13 kx int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13 kx
13 kx /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13 kx inside strings and character constants. */
13 kx #define FOO(x) 'x'
13 kx int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13 kx
13 kx int test (int i, double x);
13 kx struct s1 {int (*f) (int a);};
13 kx struct s2 {int (*f) (double a);};
13 kx int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13 kx int argc;
13 kx char **argv;
13 kx int
13 kx main ()
13 kx {
13 kx return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13 kx -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13 kx do
13 kx CC="$ac_save_CC $ac_arg"
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_prog_cc_c89=$ac_arg
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext
13 kx test "x$ac_cv_prog_cc_c89" != "xno" && break
13 kx done
13 kx rm -f conftest.$ac_ext
13 kx CC=$ac_save_CC
13 kx
13 kx fi
13 kx # AC_CACHE_VAL
13 kx case "x$ac_cv_prog_cc_c89" in
13 kx x)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13 kx $as_echo "none needed" >&6; } ;;
13 kx xno)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13 kx $as_echo "unsupported" >&6; } ;;
13 kx *)
13 kx CC="$CC $ac_cv_prog_cc_c89"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13 kx $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13 kx esac
13 kx if test "x$ac_cv_prog_cc_c89" != xno; then :
13 kx
13 kx fi
13 kx
13 kx ac_ext=c
13 kx ac_cpp='$CPP $CPPFLAGS'
13 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx
13 kx
13 kx ac_ext=c
13 kx ac_cpp='$CPP $CPPFLAGS'
13 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13 kx $as_echo_n "checking how to run the C preprocessor... " >&6; }
13 kx # On Suns, sometimes $CPP names a directory.
13 kx if test -n "$CPP" && test -d "$CPP"; then
13 kx CPP=
13 kx fi
13 kx if test -z "$CPP"; then
13 kx if ${ac_cv_prog_CPP+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx # Double quotes because CPP needs to be expanded
13 kx for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13 kx do
13 kx ac_preproc_ok=false
13 kx for ac_c_preproc_warn_flag in '' yes
13 kx do
13 kx # Use a header file that comes with gcc, so configuring glibc
13 kx # with a fresh cross-compiler works.
13 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13 kx # <limits.h> exists even on freestanding compilers.
13 kx # On the NeXT, cc -E runs the code through the compiler's parser,
13 kx # not just through cpp. "Syntax error" is here to catch this case.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #ifdef __STDC__
13 kx # include <limits.h>
13 kx #else
13 kx # include <assert.h>
13 kx #endif
13 kx Syntax error
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx
13 kx else
13 kx # Broken: fails on valid input.
13 kx continue
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx
13 kx # OK, works on sane cases. Now check whether nonexistent headers
13 kx # can be detected and how.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <ac_nonexistent.h>
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx # Broken: success on invalid input.
13 kx continue
13 kx else
13 kx # Passes both tests.
13 kx ac_preproc_ok=:
13 kx break
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx
13 kx done
13 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13 kx rm -f conftest.i conftest.err conftest.$ac_ext
13 kx if $ac_preproc_ok; then :
13 kx break
13 kx fi
13 kx
13 kx done
13 kx ac_cv_prog_CPP=$CPP
13 kx
13 kx fi
13 kx CPP=$ac_cv_prog_CPP
13 kx else
13 kx ac_cv_prog_CPP=$CPP
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13 kx $as_echo "$CPP" >&6; }
13 kx ac_preproc_ok=false
13 kx for ac_c_preproc_warn_flag in '' yes
13 kx do
13 kx # Use a header file that comes with gcc, so configuring glibc
13 kx # with a fresh cross-compiler works.
13 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13 kx # <limits.h> exists even on freestanding compilers.
13 kx # On the NeXT, cc -E runs the code through the compiler's parser,
13 kx # not just through cpp. "Syntax error" is here to catch this case.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #ifdef __STDC__
13 kx # include <limits.h>
13 kx #else
13 kx # include <assert.h>
13 kx #endif
13 kx Syntax error
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx
13 kx else
13 kx # Broken: fails on valid input.
13 kx continue
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx
13 kx # OK, works on sane cases. Now check whether nonexistent headers
13 kx # can be detected and how.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <ac_nonexistent.h>
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx # Broken: success on invalid input.
13 kx continue
13 kx else
13 kx # Passes both tests.
13 kx ac_preproc_ok=:
13 kx break
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx
13 kx done
13 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13 kx rm -f conftest.i conftest.err conftest.$ac_ext
13 kx if $ac_preproc_ok; then :
13 kx
13 kx else
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx fi
13 kx
13 kx ac_ext=c
13 kx ac_cpp='$CPP $CPPFLAGS'
13 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx
13 kx
13 kx
13 kx
13 kx save_cross_compiling=$cross_compiling
13 kx save_ac_tool_prefix=$ac_tool_prefix
13 kx cross_compiling=no
13 kx ac_tool_prefix=
13 kx
13 kx ac_ext=c
13 kx ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
13 kx ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
13 kx ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}gcc; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$CC_FOR_BUILD"; then
13 kx ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13 kx if test -n "$CC_FOR_BUILD"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13 kx $as_echo "$CC_FOR_BUILD" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
13 kx ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
13 kx # Extract the first word of "gcc", so it can be a program name with args.
13 kx set dummy gcc; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_CC_FOR_BUILD"; then
13 kx ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
13 kx if test -n "$ac_ct_CC_FOR_BUILD"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
13 kx $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_CC_FOR_BUILD" = x; then
13 kx CC_FOR_BUILD=""
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
13 kx fi
13 kx else
13 kx CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
13 kx fi
13 kx
13 kx if test -z "$CC_FOR_BUILD"; then
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}cc; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$CC_FOR_BUILD"; then
13 kx ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13 kx if test -n "$CC_FOR_BUILD"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13 kx $as_echo "$CC_FOR_BUILD" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx fi
13 kx if test -z "$CC_FOR_BUILD"; then
13 kx # Extract the first word of "cc", so it can be a program name with args.
13 kx set dummy cc; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$CC_FOR_BUILD"; then
13 kx ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13 kx else
13 kx ac_prog_rejected=no
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13 kx ac_prog_rejected=yes
13 kx continue
13 kx fi
13 kx ac_cv_prog_CC_FOR_BUILD="cc"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx if test $ac_prog_rejected = yes; then
13 kx # We found a bogon in the path, so make sure we never use it.
13 kx set dummy $ac_cv_prog_CC_FOR_BUILD
13 kx shift
13 kx if test $# != 0; then
13 kx # We chose a different compiler from the bogus one.
13 kx # However, it has the same basename, so the bogon will be chosen
13 kx # first if we set CC_FOR_BUILD to just the basename; use the full file name.
13 kx shift
13 kx ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
13 kx fi
13 kx fi
13 kx fi
13 kx fi
13 kx CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13 kx if test -n "$CC_FOR_BUILD"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13 kx $as_echo "$CC_FOR_BUILD" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$CC_FOR_BUILD"; then
13 kx if test -n "$ac_tool_prefix"; then
13 kx for ac_prog in cl.exe
13 kx do
13 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$CC_FOR_BUILD"; then
13 kx ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13 kx if test -n "$CC_FOR_BUILD"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13 kx $as_echo "$CC_FOR_BUILD" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx test -n "$CC_FOR_BUILD" && break
13 kx done
13 kx fi
13 kx if test -z "$CC_FOR_BUILD"; then
13 kx ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
13 kx for ac_prog in cl.exe
13 kx do
13 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
13 kx set dummy $ac_prog; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_CC_FOR_BUILD"; then
13 kx ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
13 kx if test -n "$ac_ct_CC_FOR_BUILD"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
13 kx $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx test -n "$ac_ct_CC_FOR_BUILD" && break
13 kx done
13 kx
13 kx if test "x$ac_ct_CC_FOR_BUILD" = x; then
13 kx CC_FOR_BUILD=""
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx
13 kx
13 kx test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error $? "no acceptable C compiler found in \$PATH
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx
13 kx # Provide some information about the compiler.
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13 kx set X $ac_build_compile
13 kx ac_compiler=$2
13 kx for ac_option in --version -v -V -qversion; do
13 kx { { ac_try="$ac_compiler $ac_option >&5"
13 kx case "(($ac_try" in
13 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13 kx *) ac_try_echo=$ac_try;;
13 kx esac
13 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13 kx $as_echo "$ac_try_echo"; } >&5
13 kx (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13 kx ac_status=$?
13 kx if test -s conftest.err; then
13 kx sed '10a\
13 kx ... rest of stderr output deleted ...
13 kx 10q' conftest.err >conftest.er1
13 kx cat conftest.er1 >&5
13 kx fi
13 kx rm -f conftest.er1 conftest.err
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }
13 kx done
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13 kx $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13 kx if ${ac_cv_c_compiler_gnu+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx #ifndef __GNUC__
13 kx choke me
13 kx #endif
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_compiler_gnu=yes
13 kx else
13 kx ac_compiler_gnu=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
13 kx ac_cv_c_compiler_gnu=$ac_compiler_gnu
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13 kx $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13 kx if test $ac_compiler_gnu = yes; then
13 kx GCC=yes
13 kx else
13 kx GCC=
13 kx fi
13 kx ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
13 kx ac_save_CFLAGS=$CFLAGS_FOR_BUILD
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
13 kx $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
13 kx if ${ac_cv_build_prog_cc_g+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_save_c_werror_flag=$ac_c_werror_flag
13 kx ac_c_werror_flag=yes
13 kx ac_cv_build_prog_cc_g=no
13 kx CFLAGS_FOR_BUILD="-g"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_build_prog_cc_g=yes
13 kx else
13 kx CFLAGS_FOR_BUILD=""
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx else
13 kx ac_c_werror_flag=$ac_save_c_werror_flag
13 kx CFLAGS_FOR_BUILD="-g"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_build_prog_cc_g=yes
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
13 kx ac_c_werror_flag=$ac_save_c_werror_flag
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
13 kx $as_echo "$ac_cv_build_prog_cc_g" >&6; }
13 kx if test "$ac_test_CFLAGS" = set; then
13 kx CFLAGS_FOR_BUILD=$ac_save_CFLAGS
13 kx elif test $ac_cv_build_prog_cc_g = yes; then
13 kx if test "$GCC" = yes; then
13 kx CFLAGS_FOR_BUILD="-g -O2"
13 kx else
13 kx CFLAGS_FOR_BUILD="-g"
13 kx fi
13 kx else
13 kx if test "$GCC" = yes; then
13 kx CFLAGS_FOR_BUILD="-O2"
13 kx else
13 kx CFLAGS_FOR_BUILD=
13 kx fi
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
13 kx $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
13 kx if ${ac_cv_prog_cc_c89+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_cv_prog_cc_c89=no
13 kx ac_save_CC=$CC_FOR_BUILD
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <stdarg.h>
13 kx #include <stdio.h>
13 kx struct stat;
13 kx /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13 kx struct buf { int x; };
13 kx FILE * (*rcsopen) (struct buf *, struct stat *, int);
13 kx static char *e (p, i)
13 kx char **p;
13 kx int i;
13 kx {
13 kx return p[i];
13 kx }
13 kx static char *f (char * (*g) (char **, int), char **p, ...)
13 kx {
13 kx char *s;
13 kx va_list v;
13 kx va_start (v,p);
13 kx s = g (p, va_arg (v,int));
13 kx va_end (v);
13 kx return s;
13 kx }
13 kx
13 kx /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13 kx function prototypes and stuff, but not '\xHH' hex character constants.
13 kx These don't provoke an error unfortunately, instead are silently treated
13 kx as 'x'. The following induces an error, until -std is added to get
13 kx proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13 kx array size at least. It's necessary to write '\x00'==0 to get something
13 kx that's true only with -std. */
13 kx int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13 kx
13 kx /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13 kx inside strings and character constants. */
13 kx #define FOO(x) 'x'
13 kx int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13 kx
13 kx int test (int i, double x);
13 kx struct s1 {int (*f) (int a);};
13 kx struct s2 {int (*f) (double a);};
13 kx int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13 kx int argc;
13 kx char **argv;
13 kx int
13 kx main ()
13 kx {
13 kx return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13 kx -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13 kx do
13 kx CC_FOR_BUILD="$ac_save_CC $ac_arg"
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_prog_cc_c89=$ac_arg
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_build_objext
13 kx test "x$ac_cv_prog_cc_c89" != "xno" && break
13 kx done
13 kx rm -f conftest.$ac_ext
13 kx CC_FOR_BUILD=$ac_save_CC
13 kx
13 kx fi
13 kx # AC_CACHE_VAL
13 kx case "x$ac_cv_prog_cc_c89" in
13 kx x)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13 kx $as_echo "none needed" >&6; } ;;
13 kx xno)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13 kx $as_echo "unsupported" >&6; } ;;
13 kx *)
13 kx CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13 kx $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13 kx esac
13 kx if test "x$ac_cv_prog_cc_c89" != xno; then :
13 kx
13 kx fi
13 kx
13 kx ac_ext=c
13 kx ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
13 kx ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
13 kx ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx
13 kx ac_ext=c
13 kx ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
13 kx ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
13 kx ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13 kx $as_echo_n "checking how to run the C preprocessor... " >&6; }
13 kx # On Suns, sometimes $CPP names a directory.
13 kx if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
13 kx CPP_FOR_BUILD=
13 kx fi
13 kx if test -z "$CPP_FOR_BUILD"; then
13 kx if ${ac_cv_build_prog_CPP+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx # Double quotes because CPP needs to be expanded
13 kx for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
13 kx do
13 kx ac_preproc_ok=false
13 kx for ac_c_preproc_warn_flag in '' yes
13 kx do
13 kx # Use a header file that comes with gcc, so configuring glibc
13 kx # with a fresh cross-compiler works.
13 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13 kx # <limits.h> exists even on freestanding compilers.
13 kx # On the NeXT, cc -E runs the code through the compiler's parser,
13 kx # not just through cpp. "Syntax error" is here to catch this case.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #ifdef __STDC__
13 kx # include <limits.h>
13 kx #else
13 kx # include <assert.h>
13 kx #endif
13 kx Syntax error
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx
13 kx else
13 kx # Broken: fails on valid input.
13 kx continue
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx
13 kx # OK, works on sane cases. Now check whether nonexistent headers
13 kx # can be detected and how.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <ac_nonexistent.h>
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx # Broken: success on invalid input.
13 kx continue
13 kx else
13 kx # Passes both tests.
13 kx ac_preproc_ok=:
13 kx break
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx
13 kx done
13 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13 kx rm -f conftest.i conftest.err conftest.$ac_ext
13 kx if $ac_preproc_ok; then :
13 kx break
13 kx fi
13 kx
13 kx done
13 kx ac_cv_build_prog_CPP=$CPP_FOR_BUILD
13 kx
13 kx fi
13 kx CPP_FOR_BUILD=$ac_cv_build_prog_CPP
13 kx else
13 kx ac_cv_build_prog_CPP=$CPP_FOR_BUILD
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
13 kx $as_echo "$CPP_FOR_BUILD" >&6; }
13 kx ac_preproc_ok=false
13 kx for ac_c_preproc_warn_flag in '' yes
13 kx do
13 kx # Use a header file that comes with gcc, so configuring glibc
13 kx # with a fresh cross-compiler works.
13 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13 kx # <limits.h> exists even on freestanding compilers.
13 kx # On the NeXT, cc -E runs the code through the compiler's parser,
13 kx # not just through cpp. "Syntax error" is here to catch this case.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #ifdef __STDC__
13 kx # include <limits.h>
13 kx #else
13 kx # include <assert.h>
13 kx #endif
13 kx Syntax error
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx
13 kx else
13 kx # Broken: fails on valid input.
13 kx continue
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx
13 kx # OK, works on sane cases. Now check whether nonexistent headers
13 kx # can be detected and how.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <ac_nonexistent.h>
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx # Broken: success on invalid input.
13 kx continue
13 kx else
13 kx # Passes both tests.
13 kx ac_preproc_ok=:
13 kx break
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx
13 kx done
13 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13 kx rm -f conftest.i conftest.err conftest.$ac_ext
13 kx if $ac_preproc_ok; then :
13 kx
13 kx else
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx fi
13 kx
13 kx ac_ext=c
13 kx ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
13 kx ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
13 kx ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx
13 kx
13 kx
13 kx ac_tool_prefix=$save_ac_tool_prefix
13 kx cross_compiling=$save_cross_compiling
13 kx
13 kx
13 kx BUILD_EXEEXT=$ac_build_exeext
13 kx BUILD_OBJEXT=$ac_build_objext
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13 kx $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13 kx if ${ac_cv_path_SED+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13 kx for ac_i in 1 2 3 4 5 6 7; do
13 kx ac_script="$ac_script$as_nl$ac_script"
13 kx done
13 kx echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13 kx { ac_script=; unset ac_script;}
13 kx if test -z "$SED"; then
13 kx ac_path_SED_found=false
13 kx # Loop through the user's path and test for each of PROGNAME-LIST
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_prog in sed gsed; do
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13 kx as_fn_executable_p "$ac_path_SED" || continue
13 kx # Check for GNU ac_path_SED and select it if it is found.
13 kx # Check for GNU $ac_path_SED
13 kx case `"$ac_path_SED" --version 2>&1` in
13 kx *GNU*)
13 kx ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13 kx *)
13 kx ac_count=0
13 kx $as_echo_n 0123456789 >"conftest.in"
13 kx while :
13 kx do
13 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
13 kx mv "conftest.tmp" "conftest.in"
13 kx cp "conftest.in" "conftest.nl"
13 kx $as_echo '' >> "conftest.nl"
13 kx "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
13 kx if test $ac_count -gt ${ac_path_SED_max-0}; then
13 kx # Best one so far, save it but keep looking for a better one
13 kx ac_cv_path_SED="$ac_path_SED"
13 kx ac_path_SED_max=$ac_count
13 kx fi
13 kx # 10*(2^10) chars as input seems more than enough
13 kx test $ac_count -gt 10 && break
13 kx done
13 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13 kx esac
13 kx
13 kx $ac_path_SED_found && break 3
13 kx done
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx if test -z "$ac_cv_path_SED"; then
13 kx as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13 kx fi
13 kx else
13 kx ac_cv_path_SED=$SED
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13 kx $as_echo "$ac_cv_path_SED" >&6; }
13 kx SED="$ac_cv_path_SED"
13 kx rm -f conftest.sed
13 kx
13 kx
13 kx
13 kx if test "x$apr_preload_done" != "xyes" ; then
13 kx
13 kx apr_preload_done="yes"
13 kx
13 kx echo "Applying APR hints file rules for $host"
13 kx
13 kx case "$host" in
13 kx *mint)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMINT -D_GNU_SOURCE\""
13 kx CPPFLAGS="-DMINT -D_GNU_SOURCE"
13 kx else
13 kx apr_addto_bugger="-DMINT -D_GNU_SOURCE"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *MPE/iX*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
13 kx CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
13 kx else
13 kx apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lsvipc -lcurses\""
13 kx LIBS="-lsvipc -lcurses"
13 kx else
13 kx apr_addto_bugger="-lsvipc -lcurses"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LDFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
13 kx LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
13 kx else
13 kx apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LDFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
13 kx LDFLAGS="$LDFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-apple-aux3*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
13 kx CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
13 kx else
13 kx apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lposix -lbsd\""
13 kx LIBS="-lposix -lbsd"
13 kx else
13 kx apr_addto_bugger="-lposix -lbsd"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LDFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-s\""
13 kx LDFLAGS="-s"
13 kx else
13 kx apr_addto_bugger="-s"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LDFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
13 kx LDFLAGS="$LDFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/ksh\""
13 kx SHELL="/bin/ksh"
13 kx
13 kx ;;
13 kx *-ibm-aix*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
13 kx CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
13 kx else
13 kx apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx case $host in
13 kx *-ibm-aix4.3)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
13 kx CPPFLAGS="-D_USE_IRS"
13 kx else
13 kx apr_addto_bugger="-D_USE_IRS"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-ibm-aix5*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
13 kx CPPFLAGS="-D_USE_IRS"
13 kx else
13 kx apr_addto_bugger="-D_USE_IRS"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-ibm-aix4.3.*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
13 kx CPPFLAGS="-D_USE_IRS"
13 kx else
13 kx apr_addto_bugger="-D_USE_IRS"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx if $CC 2>&1 | grep 'xlc' > /dev/null; then
13 kx
13 kx if test -z "$AIX_XLC"; then
13 kx test "x$silent" != "xyes" && echo " setting AIX_XLC to \"yes\""
13 kx AIX_XLC="yes"
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qHALT=E\""
13 kx CFLAGS="-qHALT=E"
13 kx else
13 kx apr_addto_bugger="-qHALT=E"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx
13 kx if test -z "$apr_sysvsem_is_global"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\""
13 kx apr_sysvsem_is_global="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_lock_method"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
13 kx apr_lock_method="USE_SYSVSEM_SERIALIZE"
13 kx fi
13 kx
13 kx case $host in
13 kx *-ibm-aix3* | *-ibm-aix4.1.*)
13 kx ;;
13 kx *)
13 kx
13 kx if test "x$LDFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,-brtl\""
13 kx LDFLAGS="-Wl,-brtl"
13 kx else
13 kx apr_addto_bugger="-Wl,-brtl"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LDFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
13 kx LDFLAGS="$LDFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx ;;
13 kx *-apollo-*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPOLLO\""
13 kx CPPFLAGS="-DAPOLLO"
13 kx else
13 kx apr_addto_bugger="-DAPOLLO"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-dg-dgux*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDGUX\""
13 kx CPPFLAGS="-DDGUX"
13 kx else
13 kx apr_addto_bugger="-DDGUX"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-os2*)
13 kx
13 kx test "x$silent" != "xyes" && echo " forcing SHELL to \"sh\""
13 kx SHELL="sh"
13 kx
13 kx
13 kx if test -z "$apr_gethostbyname_is_thread_safe"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
13 kx apr_gethostbyname_is_thread_safe="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_gethostbyaddr_is_thread_safe"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
13 kx apr_gethostbyaddr_is_thread_safe="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_getservbyname_is_thread_safe"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
13 kx apr_getservbyname_is_thread_safe="yes"
13 kx fi
13 kx
13 kx ;;
13 kx *-hi-hiux)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHIUX\""
13 kx CPPFLAGS="-DHIUX"
13 kx else
13 kx apr_addto_bugger="-DHIUX"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-hp-hpux11.*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE\""
13 kx CPPFLAGS="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
13 kx else
13 kx apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-hp-hpux10.*)
13 kx case $host in
13 kx *-hp-hpux10.01)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
13 kx CPPFLAGS="-DSELECT_NEEDS_CAST"
13 kx else
13 kx apr_addto_bugger="-DSELECT_NEEDS_CAST"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT\""
13 kx CPPFLAGS="-D_REENTRANT"
13 kx else
13 kx apr_addto_bugger="-D_REENTRANT"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-hp-hpux*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
13 kx CPPFLAGS="-DHPUX -D_REENTRANT"
13 kx else
13 kx apr_addto_bugger="-DHPUX -D_REENTRANT"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-linux*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DLINUX -D_REENTRANT -D_GNU_SOURCE\""
13 kx CPPFLAGS="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
13 kx else
13 kx apr_addto_bugger="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-lynx-lynxos)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
13 kx CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
13 kx else
13 kx apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd\""
13 kx LIBS="-lbsd"
13 kx else
13 kx apr_addto_bugger="-lbsd"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *486-*-bsdi*)
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-m486\""
13 kx CFLAGS="-m486"
13 kx else
13 kx apr_addto_bugger="-m486"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-*-bsdi*)
13 kx case $host in
13 kx *bsdi4.1)
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-D_REENTRANT\""
13 kx CFLAGS="-D_REENTRANT"
13 kx else
13 kx apr_addto_bugger="-D_REENTRANT"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx ;;
13 kx *-openbsd*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREADS\""
13 kx CPPFLAGS="-D_POSIX_THREADS"
13 kx else
13 kx apr_addto_bugger="-D_POSIX_THREADS"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx # binding to an ephemeral port fails on OpenBSD so override
13 kx # the test for O_NONBLOCK inheritance across accept().
13 kx
13 kx if test -z "$ac_cv_o_nonblock_inherited"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
13 kx ac_cv_o_nonblock_inherited="yes"
13 kx fi
13 kx
13 kx ;;
13 kx *-netbsd*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNETBSD\""
13 kx CPPFLAGS="-DNETBSD"
13 kx else
13 kx apr_addto_bugger="-DNETBSD"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
13 kx
13 kx if test -z "$ac_cv_o_nonblock_inherited"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
13 kx ac_cv_o_nonblock_inherited="yes"
13 kx fi
13 kx
13 kx ;;
13 kx *-freebsd*)
13 kx
13 kx if test -z "$apr_lock_method"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
13 kx apr_lock_method="USE_FLOCK_SERIALIZE"
13 kx fi
13 kx
13 kx if test -x /sbin/sysctl; then
13 kx os_version=`/sbin/sysctl -n kern.osreldate`
13 kx else
13 kx os_version=000000
13 kx fi
13 kx # 502102 is when libc_r switched to libpthread (aka libkse).
13 kx if test $os_version -ge "502102"; then
13 kx apr_cv_pthreads_cflags="none"
13 kx apr_cv_pthreads_lib="-lpthread"
13 kx else
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\""
13 kx CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT"
13 kx else
13 kx apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test -z "$enable_threads"; then
13 kx test "x$silent" != "xyes" && echo " setting enable_threads to \"no\""
13 kx enable_threads="no"
13 kx fi
13 kx
13 kx fi
13 kx # prevent use of KQueue before FreeBSD 4.8
13 kx if test $os_version -lt "480000"; then
13 kx
13 kx if test -z "$ac_cv_func_kqueue"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\""
13 kx ac_cv_func_kqueue="no"
13 kx fi
13 kx
13 kx fi
13 kx ;;
13 kx *-k*bsd*-gnu)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
13 kx CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
13 kx else
13 kx apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-gnu*|*-GNU*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE -DHURD\""
13 kx CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE -DHURD"
13 kx else
13 kx apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE -DHURD"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-next-nextstep*)
13 kx
13 kx if test -z "$CFLAGS"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
13 kx CFLAGS="-O"
13 kx fi
13 kx
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\""
13 kx CPPFLAGS="-DNEXT"
13 kx else
13 kx apr_addto_bugger="-DNEXT"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-next-openstep*)
13 kx
13 kx if test -z "$CFLAGS"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
13 kx CFLAGS="-O"
13 kx fi
13 kx
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\""
13 kx CPPFLAGS="-DNEXT"
13 kx else
13 kx apr_addto_bugger="-DNEXT"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-apple-rhapsody*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRHAPSODY\""
13 kx CPPFLAGS="-DRHAPSODY"
13 kx else
13 kx apr_addto_bugger="-DRHAPSODY"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-apple-darwin*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK\""
13 kx CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
13 kx else
13 kx apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_posixsem_is_global"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_posixsem_is_global to \"yes\""
13 kx apr_posixsem_is_global="yes"
13 kx fi
13 kx
13 kx case $host in
13 kx *-apple-darwin[1-9].*)
13 kx # APR's use of kqueue has triggered kernel panics for some
13 kx # 10.5.x (Darwin 9.x) users when running the entire test suite.
13 kx # In 10.4.x, use of kqueue would cause the socket tests to hang.
13 kx # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues
13 kx
13 kx if test -z "$ac_cv_func_kqueue"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\""
13 kx ac_cv_func_kqueue="no"
13 kx fi
13 kx
13 kx
13 kx if test -z "$ac_cv_func_poll"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_func_poll to \"no\""
13 kx ac_cv_func_poll="no"
13 kx fi
13 kx # See issue 34332
13 kx ;;
13 kx *-apple-darwin1?.*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN_10\""
13 kx CPPFLAGS="-DDARWIN_10"
13 kx else
13 kx apr_addto_bugger="-DDARWIN_10"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx ;;
13 kx *-dec-osf*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOSF1\""
13 kx CPPFLAGS="-DOSF1"
13 kx else
13 kx apr_addto_bugger="-DOSF1"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx # process-shared mutexes don't seem to work in Tru64 5.0
13 kx
13 kx if test -z "$apr_cv_process_shared_works"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_cv_process_shared_works to \"no\""
13 kx apr_cv_process_shared_works="no"
13 kx fi
13 kx
13 kx ;;
13 kx *-nto-qnx*)
13 kx ;;
13 kx *-qnx)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\""
13 kx CPPFLAGS="-DQNX"
13 kx else
13 kx apr_addto_bugger="-DQNX"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\""
13 kx LIBS="-N128k -lunix"
13 kx else
13 kx apr_addto_bugger="-N128k -lunix"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-qnx32)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\""
13 kx CPPFLAGS="-DQNX"
13 kx else
13 kx apr_addto_bugger="-DQNX"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-mf -3\""
13 kx CFLAGS="-mf -3"
13 kx else
13 kx apr_addto_bugger="-mf -3"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\""
13 kx LIBS="-N128k -lunix"
13 kx else
13 kx apr_addto_bugger="-N128k -lunix"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-isc4*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-posix -DISC\""
13 kx CPPFLAGS="-posix -DISC"
13 kx else
13 kx apr_addto_bugger="-posix -DISC"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LDFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-posix\""
13 kx LDFLAGS="-posix"
13 kx else
13 kx apr_addto_bugger="-posix"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LDFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
13 kx LDFLAGS="$LDFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-linet\""
13 kx LIBS="-linet"
13 kx else
13 kx apr_addto_bugger="-linet"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-sco3.2v[234]*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
13 kx CPPFLAGS="-DSCO -D_REENTRANT"
13 kx else
13 kx apr_addto_bugger="-DSCO -D_REENTRANT"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx if test "$GCC" = "no"; then
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Oacgiltz\""
13 kx CFLAGS="-Oacgiltz"
13 kx else
13 kx apr_addto_bugger="-Oacgiltz"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\""
13 kx LIBS="-lPW -lmalloc"
13 kx else
13 kx apr_addto_bugger="-lPW -lmalloc"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-sco3.2v5*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
13 kx CPPFLAGS="-DSCO5 -D_REENTRANT"
13 kx else
13 kx apr_addto_bugger="-DSCO5 -D_REENTRANT"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-sco_sv*|*-SCO_SV*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
13 kx CPPFLAGS="-DSCO -D_REENTRANT"
13 kx else
13 kx apr_addto_bugger="-DSCO -D_REENTRANT"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\""
13 kx LIBS="-lPW -lmalloc"
13 kx else
13 kx apr_addto_bugger="-lPW -lmalloc"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-solaris2*)
13 kx PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
13 kx CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
13 kx else
13 kx apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx if test $PLATOSVERS -eq 10; then
13 kx # pthread_mutex_timedlock is broken on Solaris 10.
13 kx # It can block without timeout in case of EDEADLK.
13 kx
13 kx if test -z "$ac_cv_func_pthread_mutex_timedlock"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_func_pthread_mutex_timedlock to \"no\""
13 kx ac_cv_func_pthread_mutex_timedlock="no"
13 kx fi
13 kx
13 kx fi
13 kx if test $PLATOSVERS -ge 10; then
13 kx
13 kx if test -z "$apr_lock_method"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_PROC_PTHREAD_SERIALIZE\""
13 kx apr_lock_method="USE_PROC_PTHREAD_SERIALIZE"
13 kx fi
13 kx
13 kx else
13 kx
13 kx if test -z "$apr_lock_method"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
13 kx apr_lock_method="USE_FCNTL_SERIALIZE"
13 kx fi
13 kx
13 kx fi
13 kx # readdir64_r error handling seems broken on Solaris (at least
13 kx # up till 2.8) -- it will return -1 at end-of-directory.
13 kx
13 kx if test -z "$ac_cv_func_readdir64_r"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_func_readdir64_r to \"no\""
13 kx ac_cv_func_readdir64_r="no"
13 kx fi
13 kx
13 kx ;;
13 kx *-sunos4*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSUNOS4\""
13 kx CPPFLAGS="-DSUNOS4"
13 kx else
13 kx apr_addto_bugger="-DSUNOS4"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-unixware1)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=100\""
13 kx CPPFLAGS="-DUW=100"
13 kx else
13 kx apr_addto_bugger="-DUW=100"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-unixware2)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=200\""
13 kx CPPFLAGS="-DUW=200"
13 kx else
13 kx apr_addto_bugger="-DUW=200"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
13 kx LIBS="-lgen"
13 kx else
13 kx apr_addto_bugger="-lgen"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-unixware211)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=211\""
13 kx CPPFLAGS="-DUW=211"
13 kx else
13 kx apr_addto_bugger="-DUW=211"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
13 kx LIBS="-lgen"
13 kx else
13 kx apr_addto_bugger="-lgen"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-unixware212)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=212\""
13 kx CPPFLAGS="-DUW=212"
13 kx else
13 kx apr_addto_bugger="-DUW=212"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
13 kx LIBS="-lgen"
13 kx else
13 kx apr_addto_bugger="-lgen"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-unixware7)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=700\""
13 kx CPPFLAGS="-DUW=700"
13 kx else
13 kx apr_addto_bugger="-DUW=700"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
13 kx LIBS="-lgen"
13 kx else
13 kx apr_addto_bugger="-lgen"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx maxion-*-sysv4*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
13 kx CPPFLAGS="-DSVR4"
13 kx else
13 kx apr_addto_bugger="-DSVR4"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -lgen\""
13 kx LIBS="-lc -lgen"
13 kx else
13 kx apr_addto_bugger="-lc -lgen"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-*-powermax*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
13 kx CPPFLAGS="-DSVR4"
13 kx else
13 kx apr_addto_bugger="-DSVR4"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
13 kx LIBS="-lgen"
13 kx else
13 kx apr_addto_bugger="-lgen"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx TPF)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\""
13 kx CPPFLAGS="-DTPF -D_POSIX_SOURCE"
13 kx else
13 kx apr_addto_bugger="-DTPF -D_POSIX_SOURCE"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx bs2000*-siemens-sysv*)
13 kx
13 kx if test -z "$CFLAGS"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
13 kx CFLAGS="-O"
13 kx fi
13 kx
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\""
13 kx CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER"
13 kx else
13 kx apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lsocket\""
13 kx LIBS="-lsocket"
13 kx else
13 kx apr_addto_bugger="-lsocket"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test -z "$enable_threads"; then
13 kx test "x$silent" != "xyes" && echo " setting enable_threads to \"no\""
13 kx enable_threads="no"
13 kx fi
13 kx
13 kx ;;
13 kx *-siemens-sysv4*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\""
13 kx CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
13 kx else
13 kx apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
13 kx LIBS="-lc"
13 kx else
13 kx apr_addto_bugger="-lc"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx pyramid-pyramid-svr4)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\""
13 kx CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE"
13 kx else
13 kx apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
13 kx LIBS="-lc"
13 kx else
13 kx apr_addto_bugger="-lc"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx DS/90\ 7000-*-sysv4*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUXPDS\""
13 kx CPPFLAGS="-DUXPDS"
13 kx else
13 kx apr_addto_bugger="-DUXPDS"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-tandem-sysv4*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
13 kx CPPFLAGS="-DSVR4"
13 kx else
13 kx apr_addto_bugger="-DSVR4"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-ncr-sysv4)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
13 kx CPPFLAGS="-DSVR4 -DMPRAS"
13 kx else
13 kx apr_addto_bugger="-DSVR4 -DMPRAS"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
13 kx LIBS="-lc -L/usr/ucblib -lucb"
13 kx else
13 kx apr_addto_bugger="-lc -L/usr/ucblib -lucb"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-sysv4*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
13 kx CPPFLAGS="-DSVR4"
13 kx else
13 kx apr_addto_bugger="-DSVR4"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
13 kx LIBS="-lc"
13 kx else
13 kx apr_addto_bugger="-lc"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx 88k-encore-sysv4)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DENCORE\""
13 kx CPPFLAGS="-DSVR4 -DENCORE"
13 kx else
13 kx apr_addto_bugger="-DSVR4 -DENCORE"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW\""
13 kx LIBS="-lPW"
13 kx else
13 kx apr_addto_bugger="-lPW"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-uts*)
13 kx PLATOSVERS=`echo $host | sed 's/^.*,//'`
13 kx case $PLATOSVERS in
13 kx 2*)
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUTS21\""
13 kx CPPFLAGS="-DUTS21"
13 kx else
13 kx apr_addto_bugger="-DUTS21"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa -eft\""
13 kx CFLAGS="-Xa -eft"
13 kx else
13 kx apr_addto_bugger="-Xa -eft"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd -la\""
13 kx LIBS="-lbsd -la"
13 kx else
13 kx apr_addto_bugger="-lbsd -la"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *)
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
13 kx CPPFLAGS="-DSVR4"
13 kx else
13 kx apr_addto_bugger="-DSVR4"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\""
13 kx CFLAGS="-Xa"
13 kx else
13 kx apr_addto_bugger="-Xa"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx ;;
13 kx *-ultrix)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DULTRIX\""
13 kx CPPFLAGS="-DULTRIX"
13 kx else
13 kx apr_addto_bugger="-DULTRIX"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/sh5\""
13 kx SHELL="/bin/sh5"
13 kx
13 kx ;;
13 kx *powerpc-tenon-machten*)
13 kx
13 kx if test "x$LDFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\""
13 kx LDFLAGS="-Xlstack=0x14000 -Xldelcsect"
13 kx else
13 kx apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LDFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
13 kx LDFLAGS="$LDFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-machten*)
13 kx
13 kx if test "x$LDFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-stack 0x14000\""
13 kx LDFLAGS="-stack 0x14000"
13 kx else
13 kx apr_addto_bugger="-stack 0x14000"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LDFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
13 kx LDFLAGS="$LDFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *convex-v11*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DCONVEXOS11\""
13 kx CPPFLAGS="-DCONVEXOS11"
13 kx else
13 kx apr_addto_bugger="-DCONVEXOS11"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test -z "$CFLAGS"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\""
13 kx CFLAGS="-O1"
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-ext\""
13 kx CFLAGS="-ext"
13 kx else
13 kx apr_addto_bugger="-ext"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx i860-intel-osf1)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DPARAGON\""
13 kx CPPFLAGS="-DPARAGON"
13 kx else
13 kx apr_addto_bugger="-DPARAGON"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-sequent-ptx2.*.*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=20\""
13 kx CPPFLAGS="-DSEQUENT=20"
13 kx else
13 kx apr_addto_bugger="-DSEQUENT=20"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
13 kx CFLAGS="-Wc,-pw"
13 kx else
13 kx apr_addto_bugger="-Wc,-pw"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc -lseq\""
13 kx LIBS="-linet -lc -lseq"
13 kx else
13 kx apr_addto_bugger="-linet -lc -lseq"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-sequent-ptx4.0.*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=40\""
13 kx CPPFLAGS="-DSEQUENT=40"
13 kx else
13 kx apr_addto_bugger="-DSEQUENT=40"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
13 kx CFLAGS="-Wc,-pw"
13 kx else
13 kx apr_addto_bugger="-Wc,-pw"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc\""
13 kx LIBS="-linet -lc"
13 kx else
13 kx apr_addto_bugger="-linet -lc"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-sequent-ptx4.[123].*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=41\""
13 kx CPPFLAGS="-DSEQUENT=41"
13 kx else
13 kx apr_addto_bugger="-DSEQUENT=41"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
13 kx CFLAGS="-Wc,-pw"
13 kx else
13 kx apr_addto_bugger="-Wc,-pw"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
13 kx LIBS="-lc"
13 kx else
13 kx apr_addto_bugger="-lc"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-sequent-ptx4.4.*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=44\""
13 kx CPPFLAGS="-DSEQUENT=44"
13 kx else
13 kx apr_addto_bugger="-DSEQUENT=44"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
13 kx CFLAGS="-Wc,-pw"
13 kx else
13 kx apr_addto_bugger="-Wc,-pw"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
13 kx LIBS="-lc"
13 kx else
13 kx apr_addto_bugger="-lc"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-sequent-ptx4.5.*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=45\""
13 kx CPPFLAGS="-DSEQUENT=45"
13 kx else
13 kx apr_addto_bugger="-DSEQUENT=45"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
13 kx CFLAGS="-Wc,-pw"
13 kx else
13 kx apr_addto_bugger="-Wc,-pw"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
13 kx LIBS="-lc"
13 kx else
13 kx apr_addto_bugger="-lc"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-sequent-ptx5.0.*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=50\""
13 kx CPPFLAGS="-DSEQUENT=50"
13 kx else
13 kx apr_addto_bugger="-DSEQUENT=50"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
13 kx CFLAGS="-Wc,-pw"
13 kx else
13 kx apr_addto_bugger="-Wc,-pw"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
13 kx LIBS="-lc"
13 kx else
13 kx apr_addto_bugger="-lc"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *NEWS-OS*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEWSOS\""
13 kx CPPFLAGS="-DNEWSOS"
13 kx else
13 kx apr_addto_bugger="-DNEWSOS"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-riscix)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRISCIX\""
13 kx CPPFLAGS="-DRISCIX"
13 kx else
13 kx apr_addto_bugger="-DRISCIX"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test -z "$CFLAGS"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
13 kx CFLAGS="-O"
13 kx fi
13 kx
13 kx ;;
13 kx *-irix*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\""
13 kx CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
13 kx else
13 kx apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *beos*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\""
13 kx CPPFLAGS="-DBEOS"
13 kx else
13 kx apr_addto_bugger="-DBEOS"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx PLATOSVERS=`uname -r`
13 kx
13 kx if test -z "$apr_process_lock_is_global"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
13 kx apr_process_lock_is_global="yes"
13 kx fi
13 kx
13 kx case $PLATOSVERS in
13 kx 5.0.4)
13 kx
13 kx if test "x$LDFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
13 kx LDFLAGS="-L/boot/beos/system/lib"
13 kx else
13 kx apr_addto_bugger="-L/boot/beos/system/lib"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LDFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
13 kx LDFLAGS="$LDFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\""
13 kx LIBS="-lbind -lsocket"
13 kx else
13 kx apr_addto_bugger="-lbind -lsocket"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBONE7\""
13 kx CPPFLAGS="-DBONE7"
13 kx else
13 kx apr_addto_bugger="-DBONE7"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx 5.1)
13 kx
13 kx if test "x$LDFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
13 kx LDFLAGS="-L/boot/beos/system/lib"
13 kx else
13 kx apr_addto_bugger="-L/boot/beos/system/lib"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LDFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
13 kx LDFLAGS="$LDFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\""
13 kx LIBS="-lbind -lsocket"
13 kx else
13 kx apr_addto_bugger="-lbind -lsocket"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK\""
13 kx CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK"
13 kx else
13 kx apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx 4850-*.*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
13 kx CPPFLAGS="-DSVR4 -DMPRAS"
13 kx else
13 kx apr_addto_bugger="-DSVR4 -DMPRAS"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
13 kx LIBS="-lc -L/usr/ucblib -lucb"
13 kx else
13 kx apr_addto_bugger="-lc -L/usr/ucblib -lucb"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx drs6000*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
13 kx CPPFLAGS="-DSVR4"
13 kx else
13 kx apr_addto_bugger="-DSVR4"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
13 kx LIBS="-lc -L/usr/ucblib -lucb"
13 kx else
13 kx apr_addto_bugger="-lc -L/usr/ucblib -lucb"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx m88k-*-CX/SX|CYBER)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_CX_SX\""
13 kx CPPFLAGS="-D_CX_SX"
13 kx else
13 kx apr_addto_bugger="-D_CX_SX"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\""
13 kx CFLAGS="-Xa"
13 kx else
13 kx apr_addto_bugger="-Xa"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-tandem-oss)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\""
13 kx CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
13 kx else
13 kx apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-ibm-os390)
13 kx
13 kx if test -z "$apr_lock_method"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
13 kx apr_lock_method="USE_SYSVSEM_SERIALIZE"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_sysvsem_is_global"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\""
13 kx apr_sysvsem_is_global="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_gethostbyname_is_thread_safe"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
13 kx apr_gethostbyname_is_thread_safe="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_gethostbyaddr_is_thread_safe"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
13 kx apr_gethostbyaddr_is_thread_safe="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_getservbyname_is_thread_safe"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
13 kx apr_getservbyname_is_thread_safe="yes"
13 kx fi
13 kx
13 kx
13 kx $as_echo "#define HAVE_ZOS_PTHREADS 1" >>confdefs.h
13 kx
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\""
13 kx CPPFLAGS="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
13 kx else
13 kx apr_addto_bugger="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx *-ibm-as400)
13 kx
13 kx if test -z "$apr_lock_method"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
13 kx apr_lock_method="USE_SYSVSEM_SERIALIZE"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_process_lock_is_global"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
13 kx apr_process_lock_is_global="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_gethostbyname_is_thread_safe"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
13 kx apr_gethostbyname_is_thread_safe="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_gethostbyaddr_is_thread_safe"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
13 kx apr_gethostbyaddr_is_thread_safe="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_getservbyname_is_thread_safe"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
13 kx apr_getservbyname_is_thread_safe="yes"
13 kx fi
13 kx
13 kx ;;
13 kx *mingw*)
13 kx
13 kx if test "x$INTERNAL_CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting INTERNAL_CPPFLAGS to \"-DBINPATH=$apr_builddir/test/.libs\""
13 kx INTERNAL_CPPFLAGS="-DBINPATH=$apr_builddir/test/.libs"
13 kx else
13 kx apr_addto_bugger="-DBINPATH=$apr_builddir/test/.libs"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $INTERNAL_CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to INTERNAL_CPPFLAGS"
13 kx INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DWIN32 -D__MSVCRT__\""
13 kx CPPFLAGS="-DWIN32 -D__MSVCRT__"
13 kx else
13 kx apr_addto_bugger="-DWIN32 -D__MSVCRT__"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LDFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,--enable-auto-import,--subsystem,console\""
13 kx LDFLAGS="-Wl,--enable-auto-import,--subsystem,console"
13 kx else
13 kx apr_addto_bugger="-Wl,--enable-auto-import,--subsystem,console"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LDFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
13 kx LDFLAGS="$LDFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test -z "$have_unicode_fs"; then
13 kx test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"1\""
13 kx have_unicode_fs="1"
13 kx fi
13 kx
13 kx
13 kx if test -z "$have_proc_invoked"; then
13 kx test "x$silent" != "xyes" && echo " setting have_proc_invoked to \"1\""
13 kx have_proc_invoked="1"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_lock_method"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_lock_method to \"win32\""
13 kx apr_lock_method="win32"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_process_lock_is_global"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
13 kx apr_process_lock_is_global="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_cv_use_lfs64"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_cv_use_lfs64 to \"yes\""
13 kx apr_cv_use_lfs64="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_cv_osuuid"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_cv_osuuid to \"yes\""
13 kx apr_cv_osuuid="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_cv_tcp_nodelay_with_cork"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_cv_tcp_nodelay_with_cork to \"no\""
13 kx apr_cv_tcp_nodelay_with_cork="no"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_thread_func"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_thread_func to \"__stdcall\""
13 kx apr_thread_func="__stdcall"
13 kx fi
13 kx
13 kx
13 kx if test -z "$ac_cv_o_nonblock_inherited"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
13 kx ac_cv_o_nonblock_inherited="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$ac_cv_tcp_nodelay_inherited"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_tcp_nodelay_inherited to \"yes\""
13 kx ac_cv_tcp_nodelay_inherited="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$ac_cv_file__dev_zero"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_file__dev_zero to \"no\""
13 kx ac_cv_file__dev_zero="no"
13 kx fi
13 kx
13 kx
13 kx if test -z "$ac_cv_func_setpgrp_void"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_func_setpgrp_void to \"no\""
13 kx ac_cv_func_setpgrp_void="no"
13 kx fi
13 kx
13 kx
13 kx if test -z "$ac_cv_func_mmap"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_func_mmap to \"yes\""
13 kx ac_cv_func_mmap="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$ac_cv_define_sockaddr_in6"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_define_sockaddr_in6 to \"yes\""
13 kx ac_cv_define_sockaddr_in6="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$ac_cv_working_getaddrinfo"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_working_getaddrinfo to \"yes\""
13 kx ac_cv_working_getaddrinfo="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$ac_cv_working_getnameinfo"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_working_getnameinfo to \"yes\""
13 kx ac_cv_working_getnameinfo="yes"
13 kx fi
13 kx
13 kx
13 kx if test -z "$ac_cv_func_gai_strerror"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_func_gai_strerror to \"yes\""
13 kx ac_cv_func_gai_strerror="yes"
13 kx fi
13 kx
13 kx case $host in
13 kx *mingw32*)
13 kx
13 kx if test -z "$apr_has_xthread_files"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"1\""
13 kx apr_has_xthread_files="1"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_has_user"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\""
13 kx apr_has_user="1"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_procattr_user_set_requires_password"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"1\""
13 kx apr_procattr_user_set_requires_password="1"
13 kx fi
13 kx
13 kx
13 kx if test -z "$ac_cv_func_sendfile"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"yes\""
13 kx ac_cv_func_sendfile="yes"
13 kx fi
13 kx
13 kx ;;
13 kx *mingwce)
13 kx
13 kx if test -z "$apr_has_xthread_files"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\""
13 kx apr_has_xthread_files="0"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_has_user"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_has_user to \"0\""
13 kx apr_has_user="0"
13 kx fi
13 kx
13 kx
13 kx if test -z "$apr_procattr_user_set_requires_password"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\""
13 kx apr_procattr_user_set_requires_password="0"
13 kx fi
13 kx
13 kx
13 kx if test -z "$ac_cv_func_sendfile"; then
13 kx test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"no\""
13 kx ac_cv_func_sendfile="no"
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx ;;
13 kx esac
13 kx
13 kx fi
13 kx
13 kx
13 kx DEFAULT_OSDIR="unix"
13 kx echo "(Default will be ${DEFAULT_OSDIR})"
13 kx
13 kx apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random"
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13 kx $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13 kx set x ${MAKE-make}
13 kx ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13 kx if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat >conftest.make <<\_ACEOF
13 kx SHELL = /bin/sh
13 kx all:
13 kx @echo '@@@%%%=$(MAKE)=@@@%%%'
13 kx _ACEOF
13 kx # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13 kx case `${MAKE-make} -f conftest.make 2>/dev/null` in
13 kx *@@@%%%=?*=@@@%%%*)
13 kx eval ac_cv_prog_make_${ac_make}_set=yes;;
13 kx *)
13 kx eval ac_cv_prog_make_${ac_make}_set=no;;
13 kx esac
13 kx rm -f conftest.make
13 kx fi
13 kx if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13 kx $as_echo "yes" >&6; }
13 kx SET_MAKE=
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx SET_MAKE="MAKE=${MAKE-make}"
13 kx fi
13 kx
13 kx ac_ext=c
13 kx ac_cpp='$CPP $CPPFLAGS'
13 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13 kx $as_echo_n "checking how to run the C preprocessor... " >&6; }
13 kx # On Suns, sometimes $CPP names a directory.
13 kx if test -n "$CPP" && test -d "$CPP"; then
13 kx CPP=
13 kx fi
13 kx if test -z "$CPP"; then
13 kx if ${ac_cv_prog_CPP+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx # Double quotes because CPP needs to be expanded
13 kx for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13 kx do
13 kx ac_preproc_ok=false
13 kx for ac_c_preproc_warn_flag in '' yes
13 kx do
13 kx # Use a header file that comes with gcc, so configuring glibc
13 kx # with a fresh cross-compiler works.
13 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13 kx # <limits.h> exists even on freestanding compilers.
13 kx # On the NeXT, cc -E runs the code through the compiler's parser,
13 kx # not just through cpp. "Syntax error" is here to catch this case.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #ifdef __STDC__
13 kx # include <limits.h>
13 kx #else
13 kx # include <assert.h>
13 kx #endif
13 kx Syntax error
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx
13 kx else
13 kx # Broken: fails on valid input.
13 kx continue
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx
13 kx # OK, works on sane cases. Now check whether nonexistent headers
13 kx # can be detected and how.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <ac_nonexistent.h>
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx # Broken: success on invalid input.
13 kx continue
13 kx else
13 kx # Passes both tests.
13 kx ac_preproc_ok=:
13 kx break
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx
13 kx done
13 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13 kx rm -f conftest.i conftest.err conftest.$ac_ext
13 kx if $ac_preproc_ok; then :
13 kx break
13 kx fi
13 kx
13 kx done
13 kx ac_cv_prog_CPP=$CPP
13 kx
13 kx fi
13 kx CPP=$ac_cv_prog_CPP
13 kx else
13 kx ac_cv_prog_CPP=$CPP
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13 kx $as_echo "$CPP" >&6; }
13 kx ac_preproc_ok=false
13 kx for ac_c_preproc_warn_flag in '' yes
13 kx do
13 kx # Use a header file that comes with gcc, so configuring glibc
13 kx # with a fresh cross-compiler works.
13 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13 kx # <limits.h> exists even on freestanding compilers.
13 kx # On the NeXT, cc -E runs the code through the compiler's parser,
13 kx # not just through cpp. "Syntax error" is here to catch this case.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #ifdef __STDC__
13 kx # include <limits.h>
13 kx #else
13 kx # include <assert.h>
13 kx #endif
13 kx Syntax error
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx
13 kx else
13 kx # Broken: fails on valid input.
13 kx continue
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx
13 kx # OK, works on sane cases. Now check whether nonexistent headers
13 kx # can be detected and how.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <ac_nonexistent.h>
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx # Broken: success on invalid input.
13 kx continue
13 kx else
13 kx # Passes both tests.
13 kx ac_preproc_ok=:
13 kx break
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx
13 kx done
13 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13 kx rm -f conftest.i conftest.err conftest.$ac_ext
13 kx if $ac_preproc_ok; then :
13 kx
13 kx else
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx fi
13 kx
13 kx ac_ext=c
13 kx ac_cpp='$CPP $CPPFLAGS'
13 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx
13 kx for ac_prog in gawk mawk nawk awk
13 kx do
13 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
13 kx set dummy $ac_prog; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_AWK+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$AWK"; then
13 kx ac_cv_prog_AWK="$AWK" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_AWK="$ac_prog"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx AWK=$ac_cv_prog_AWK
13 kx if test -n "$AWK"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13 kx $as_echo "$AWK" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx test -n "$AWK" && break
13 kx done
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13 kx $as_echo_n "checking whether ln -s works... " >&6; }
13 kx LN_S=$as_ln_s
13 kx if test "$LN_S" = "ln -s"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13 kx $as_echo "yes" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13 kx $as_echo "no, using $LN_S" >&6; }
13 kx fi
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_RANLIB+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$RANLIB"; then
13 kx ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx RANLIB=$ac_cv_prog_RANLIB
13 kx if test -n "$RANLIB"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13 kx $as_echo "$RANLIB" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_RANLIB"; then
13 kx ac_ct_RANLIB=$RANLIB
13 kx # Extract the first word of "ranlib", so it can be a program name with args.
13 kx set dummy ranlib; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_RANLIB"; then
13 kx ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_RANLIB="ranlib"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13 kx if test -n "$ac_ct_RANLIB"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13 kx $as_echo "$ac_ct_RANLIB" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_RANLIB" = x; then
13 kx RANLIB=":"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx RANLIB=$ac_ct_RANLIB
13 kx fi
13 kx else
13 kx RANLIB="$ac_cv_prog_RANLIB"
13 kx fi
13 kx
13 kx # Find a good install program. We prefer a C program (faster),
13 kx # so one script is as good as another. But avoid the broken or
13 kx # incompatible versions:
13 kx # SysV /etc/install, /usr/sbin/install
13 kx # SunOS /usr/etc/install
13 kx # IRIX /sbin/install
13 kx # AIX /bin/install
13 kx # AmigaOS /C/install, which installs bootblocks on floppy discs
13 kx # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13 kx # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13 kx # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13 kx # OS/2's system install, which has a completely different semantic
13 kx # ./install, which can be erroneously created by make from ./install.sh.
13 kx # Reject install programs that cannot install multiple files.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13 kx $as_echo_n "checking for a BSD-compatible install... " >&6; }
13 kx if test -z "$INSTALL"; then
13 kx if ${ac_cv_path_install+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx # Account for people who put trailing slashes in PATH elements.
13 kx case $as_dir/ in #((
13 kx ./ | .// | /[cC]/* | \
13 kx /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13 kx ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13 kx /usr/ucb/* ) ;;
13 kx *)
13 kx # OSF1 and SCO ODT 3.0 have their own names for install.
13 kx # Don't use installbsd from OSF since it installs stuff as root
13 kx # by default.
13 kx for ac_prog in ginstall scoinst install; do
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13 kx if test $ac_prog = install &&
13 kx grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13 kx # AIX install. It has an incompatible calling convention.
13 kx :
13 kx elif test $ac_prog = install &&
13 kx grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13 kx # program-specific install script used by HP pwplus--don't use.
13 kx :
13 kx else
13 kx rm -rf conftest.one conftest.two conftest.dir
13 kx echo one > conftest.one
13 kx echo two > conftest.two
13 kx mkdir conftest.dir
13 kx if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13 kx test -s conftest.one && test -s conftest.two &&
13 kx test -s conftest.dir/conftest.one &&
13 kx test -s conftest.dir/conftest.two
13 kx then
13 kx ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13 kx break 3
13 kx fi
13 kx fi
13 kx fi
13 kx done
13 kx done
13 kx ;;
13 kx esac
13 kx
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx rm -rf conftest.one conftest.two conftest.dir
13 kx
13 kx fi
13 kx if test "${ac_cv_path_install+set}" = set; then
13 kx INSTALL=$ac_cv_path_install
13 kx else
13 kx # As a last resort, use the slow shell script. Don't cache a
13 kx # value for INSTALL within a source directory, because that will
13 kx # break other packages using the cache if that directory is
13 kx # removed, or if the value is a relative name.
13 kx INSTALL=$ac_install_sh
13 kx fi
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13 kx $as_echo "$INSTALL" >&6; }
13 kx
13 kx # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13 kx # It thinks the first close brace ends the variable substitution.
13 kx test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13 kx
13 kx test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13 kx
13 kx test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13 kx
13 kx # Extract the first word of "rm", so it can be a program name with args.
13 kx set dummy rm; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_RM+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$RM"; then
13 kx ac_cv_prog_RM="$RM" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_RM="rm"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx RM=$ac_cv_prog_RM
13 kx if test -n "$RM"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13 kx $as_echo "$RM" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx # Extract the first word of "as", so it can be a program name with args.
13 kx set dummy as; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_AS+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$AS"; then
13 kx ac_cv_prog_AS="$AS" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_AS="as"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx AS=$ac_cv_prog_AS
13 kx if test -n "$AS"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13 kx $as_echo "$AS" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx # Extract the first word of "cpp", so it can be a program name with args.
13 kx set dummy cpp; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ASCPP+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ASCPP"; then
13 kx ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ASCPP="cpp"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ASCPP=$ac_cv_prog_ASCPP
13 kx if test -n "$ASCPP"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCPP" >&5
13 kx $as_echo "$ASCPP" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}ar; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_AR+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$AR"; then
13 kx ac_cv_prog_AR="$AR" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_AR="${ac_tool_prefix}ar"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx AR=$ac_cv_prog_AR
13 kx if test -n "$AR"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13 kx $as_echo "$AR" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_AR"; then
13 kx ac_ct_AR=$AR
13 kx # Extract the first word of "ar", so it can be a program name with args.
13 kx set dummy ar; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_AR+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_AR"; then
13 kx ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_AR="ar"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_AR=$ac_cv_prog_ac_ct_AR
13 kx if test -n "$ac_ct_AR"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13 kx $as_echo "$ac_ct_AR" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_AR" = x; then
13 kx AR="ar"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx AR=$ac_ct_AR
13 kx fi
13 kx else
13 kx AR="$ac_cv_prog_AR"
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13 kx $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13 kx if ${ac_cv_path_GREP+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -z "$GREP"; then
13 kx ac_path_GREP_found=false
13 kx # Loop through the user's path and test for each of PROGNAME-LIST
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_prog in grep ggrep; do
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13 kx as_fn_executable_p "$ac_path_GREP" || continue
13 kx # Check for GNU ac_path_GREP and select it if it is found.
13 kx # Check for GNU $ac_path_GREP
13 kx case `"$ac_path_GREP" --version 2>&1` in
13 kx *GNU*)
13 kx ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13 kx *)
13 kx ac_count=0
13 kx $as_echo_n 0123456789 >"conftest.in"
13 kx while :
13 kx do
13 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
13 kx mv "conftest.tmp" "conftest.in"
13 kx cp "conftest.in" "conftest.nl"
13 kx $as_echo 'GREP' >> "conftest.nl"
13 kx "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
13 kx if test $ac_count -gt ${ac_path_GREP_max-0}; then
13 kx # Best one so far, save it but keep looking for a better one
13 kx ac_cv_path_GREP="$ac_path_GREP"
13 kx ac_path_GREP_max=$ac_count
13 kx fi
13 kx # 10*(2^10) chars as input seems more than enough
13 kx test $ac_count -gt 10 && break
13 kx done
13 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13 kx esac
13 kx
13 kx $ac_path_GREP_found && break 3
13 kx done
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx if test -z "$ac_cv_path_GREP"; then
13 kx as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13 kx fi
13 kx else
13 kx ac_cv_path_GREP=$GREP
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13 kx $as_echo "$ac_cv_path_GREP" >&6; }
13 kx GREP="$ac_cv_path_GREP"
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13 kx $as_echo_n "checking for egrep... " >&6; }
13 kx if ${ac_cv_path_EGREP+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13 kx then ac_cv_path_EGREP="$GREP -E"
13 kx else
13 kx if test -z "$EGREP"; then
13 kx ac_path_EGREP_found=false
13 kx # Loop through the user's path and test for each of PROGNAME-LIST
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_prog in egrep; do
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13 kx as_fn_executable_p "$ac_path_EGREP" || continue
13 kx # Check for GNU ac_path_EGREP and select it if it is found.
13 kx # Check for GNU $ac_path_EGREP
13 kx case `"$ac_path_EGREP" --version 2>&1` in
13 kx *GNU*)
13 kx ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13 kx *)
13 kx ac_count=0
13 kx $as_echo_n 0123456789 >"conftest.in"
13 kx while :
13 kx do
13 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
13 kx mv "conftest.tmp" "conftest.in"
13 kx cp "conftest.in" "conftest.nl"
13 kx $as_echo 'EGREP' >> "conftest.nl"
13 kx "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
13 kx if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13 kx # Best one so far, save it but keep looking for a better one
13 kx ac_cv_path_EGREP="$ac_path_EGREP"
13 kx ac_path_EGREP_max=$ac_count
13 kx fi
13 kx # 10*(2^10) chars as input seems more than enough
13 kx test $ac_count -gt 10 && break
13 kx done
13 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13 kx esac
13 kx
13 kx $ac_path_EGREP_found && break 3
13 kx done
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx if test -z "$ac_cv_path_EGREP"; then
13 kx as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13 kx fi
13 kx else
13 kx ac_cv_path_EGREP=$EGREP
13 kx fi
13 kx
13 kx fi
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13 kx $as_echo "$ac_cv_path_EGREP" >&6; }
13 kx EGREP="$ac_cv_path_EGREP"
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13 kx $as_echo_n "checking for ANSI C header files... " >&6; }
13 kx if ${ac_cv_header_stdc+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <stdlib.h>
13 kx #include <stdarg.h>
13 kx #include <string.h>
13 kx #include <float.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_header_stdc=yes
13 kx else
13 kx ac_cv_header_stdc=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx if test $ac_cv_header_stdc = yes; then
13 kx # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <string.h>
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "memchr" >/dev/null 2>&1; then :
13 kx
13 kx else
13 kx ac_cv_header_stdc=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx fi
13 kx
13 kx if test $ac_cv_header_stdc = yes; then
13 kx # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <stdlib.h>
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "free" >/dev/null 2>&1; then :
13 kx
13 kx else
13 kx ac_cv_header_stdc=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx fi
13 kx
13 kx if test $ac_cv_header_stdc = yes; then
13 kx # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13 kx if test "$cross_compiling" = yes; then :
13 kx :
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <ctype.h>
13 kx #include <stdlib.h>
13 kx #if ((' ' & 0x0FF) == 0x020)
13 kx # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13 kx # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13 kx #else
13 kx # define ISLOWER(c) \
13 kx (('a' <= (c) && (c) <= 'i') \
13 kx || ('j' <= (c) && (c) <= 'r') \
13 kx || ('s' <= (c) && (c) <= 'z'))
13 kx # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13 kx #endif
13 kx
13 kx #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13 kx int
13 kx main ()
13 kx {
13 kx int i;
13 kx for (i = 0; i < 256; i++)
13 kx if (XOR (islower (i), ISLOWER (i))
13 kx || toupper (i) != TOUPPER (i))
13 kx return 2;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx
13 kx else
13 kx ac_cv_header_stdc=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13 kx $as_echo "$ac_cv_header_stdc" >&6; }
13 kx if test $ac_cv_header_stdc = yes; then
13 kx
13 kx $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13 kx for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13 kx inttypes.h stdint.h unistd.h
13 kx do :
13 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13 kx ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13 kx "
13 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx
13 kx
13 kx ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_minix_config_h" = xyes; then :
13 kx MINIX=yes
13 kx else
13 kx MINIX=
13 kx fi
13 kx
13 kx
13 kx if test "$MINIX" = yes; then
13 kx
13 kx $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
13 kx
13 kx
13 kx $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
13 kx
13 kx
13 kx $as_echo "#define _MINIX 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
13 kx $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
13 kx if ${ac_cv_safe_to_define___extensions__+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx # define __EXTENSIONS__ 1
13 kx $ac_includes_default
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_safe_to_define___extensions__=yes
13 kx else
13 kx ac_cv_safe_to_define___extensions__=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
13 kx $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
13 kx test $ac_cv_safe_to_define___extensions__ = yes &&
13 kx $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
13 kx
13 kx $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
13 kx
13 kx $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
13 kx
13 kx $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
13 kx
13 kx $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
13 kx $as_echo_n "checking for library containing strerror... " >&6; }
13 kx if ${ac_cv_search_strerror+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char strerror ();
13 kx int
13 kx main ()
13 kx {
13 kx return strerror ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' cposix; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_strerror=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_strerror+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_strerror+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_strerror=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
13 kx $as_echo "$ac_cv_search_strerror" >&6; }
13 kx ac_res=$ac_cv_search_strerror
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
13 kx $as_echo_n "checking whether system uses EBCDIC... " >&6; }
13 kx if ${ac_cv_ebcdic+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx
13 kx ac_cv_ebcdic="no"
13 kx
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int main(void) {
13 kx return (unsigned char)'A' != (unsigned char)0xC1;
13 kx }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx
13 kx ac_cv_ebcdic="yes"
13 kx
13 kx else
13 kx
13 kx ac_cv_ebcdic="no"
13 kx
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
13 kx $as_echo "$ac_cv_ebcdic" >&6; }
13 kx if test "$ac_cv_ebcdic" = "yes"; then
13 kx apr_charset_ebcdic=1
13 kx else
13 kx apr_charset_ebcdic=0
13 kx fi
13 kx
13 kx
13 kx
13 kx APR_LIBNAME="apr${libsuffix}"
13 kx
13 kx
13 kx echo "performing libtool configuration..."
13 kx
13 kx # Check whether --enable-experimental-libtool was given.
13 kx if test "${enable_experimental_libtool+set}" = set; then :
13 kx enableval=$enable_experimental_libtool; experimental_libtool=$enableval
13 kx else
13 kx experimental_libtool=no
13 kx fi
13 kx
13 kx
13 kx if test "x$Xsed" = "x"; then
13 kx Xsed="$SED -e 1s/^X//"
13 kx fi
13 kx
13 kx case $host in
13 kx *-os2*)
13 kx # Use a custom-made libtool replacement
13 kx echo "using aplibtool"
13 kx LIBTOOL="$srcdir/build/aplibtool"
13 kx gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c
13 kx ;;
13 kx *)
13 kx if test "x$LTFLAGS" = "x"; then
13 kx LTFLAGS='--silent'
13 kx fi
13 kx if test "$experimental_libtool" = "yes"; then
13 kx # Use a custom-made libtool replacement
13 kx echo "using jlibtool"
13 kx LIBTOOL="$apr_builddir/libtool"
13 kx LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c"
13 kx $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC
13 kx eval `$apr_builddir/libtool --config | grep "^shlibpath_var=[A-Z_]*$"`
13 kx if test "x$shlibpath_var" = "x"; then
13 kx shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
13 kx fi
13 kx else
13 kx enable_win32_dll=yes
13 kx
13 kx case $host in
13 kx *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}as; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_AS+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$AS"; then
13 kx ac_cv_prog_AS="$AS" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_AS="${ac_tool_prefix}as"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx AS=$ac_cv_prog_AS
13 kx if test -n "$AS"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13 kx $as_echo "$AS" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_AS"; then
13 kx ac_ct_AS=$AS
13 kx # Extract the first word of "as", so it can be a program name with args.
13 kx set dummy as; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_AS+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_AS"; then
13 kx ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_AS="as"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_AS=$ac_cv_prog_ac_ct_AS
13 kx if test -n "$ac_ct_AS"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13 kx $as_echo "$ac_ct_AS" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_AS" = x; then
13 kx AS="false"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx AS=$ac_ct_AS
13 kx fi
13 kx else
13 kx AS="$ac_cv_prog_AS"
13 kx fi
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_DLLTOOL+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$DLLTOOL"; then
13 kx ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx DLLTOOL=$ac_cv_prog_DLLTOOL
13 kx if test -n "$DLLTOOL"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13 kx $as_echo "$DLLTOOL" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_DLLTOOL"; then
13 kx ac_ct_DLLTOOL=$DLLTOOL
13 kx # Extract the first word of "dlltool", so it can be a program name with args.
13 kx set dummy dlltool; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_DLLTOOL"; then
13 kx ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13 kx if test -n "$ac_ct_DLLTOOL"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13 kx $as_echo "$ac_ct_DLLTOOL" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_DLLTOOL" = x; then
13 kx DLLTOOL="false"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx DLLTOOL=$ac_ct_DLLTOOL
13 kx fi
13 kx else
13 kx DLLTOOL="$ac_cv_prog_DLLTOOL"
13 kx fi
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}objdump; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_OBJDUMP+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$OBJDUMP"; then
13 kx ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx OBJDUMP=$ac_cv_prog_OBJDUMP
13 kx if test -n "$OBJDUMP"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13 kx $as_echo "$OBJDUMP" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_OBJDUMP"; then
13 kx ac_ct_OBJDUMP=$OBJDUMP
13 kx # Extract the first word of "objdump", so it can be a program name with args.
13 kx set dummy objdump; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_OBJDUMP"; then
13 kx ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_OBJDUMP="objdump"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13 kx if test -n "$ac_ct_OBJDUMP"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13 kx $as_echo "$ac_ct_OBJDUMP" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_OBJDUMP" = x; then
13 kx OBJDUMP="false"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx OBJDUMP=$ac_ct_OBJDUMP
13 kx fi
13 kx else
13 kx OBJDUMP="$ac_cv_prog_OBJDUMP"
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx
13 kx test -z "$AS" && AS=as
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx test -z "$DLLTOOL" && DLLTOOL=dlltool
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx test -z "$OBJDUMP" && OBJDUMP=objdump
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx case `pwd` in
13 kx *\ * | *\ *)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13 kx $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx macro_version='2.4.6'
13 kx macro_revision='2.4.6'
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx ltmain=$ac_aux_dir/ltmain.sh
13 kx
13 kx # Backslashify metacharacters that are still active within
13 kx # double-quoted strings.
13 kx sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13 kx
13 kx # Same as above, but do not quote variable references.
13 kx double_quote_subst='s/\(["`\\]\)/\\\1/g'
13 kx
13 kx # Sed substitution to delay expansion of an escaped shell variable in a
13 kx # double_quote_subst'ed string.
13 kx delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13 kx
13 kx # Sed substitution to delay expansion of an escaped single quote.
13 kx delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13 kx
13 kx # Sed substitution to avoid accidental globbing in evaled expressions
13 kx no_glob_subst='s/\*/\\\*/g'
13 kx
13 kx ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13 kx ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13 kx ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13 kx $as_echo_n "checking how to print strings... " >&6; }
13 kx # Test print first, because it will be a builtin if present.
13 kx if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
13 kx test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13 kx ECHO='print -r --'
13 kx elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13 kx ECHO='printf %s\n'
13 kx else
13 kx # Use this function as a fallback that always works.
13 kx func_fallback_echo ()
13 kx {
13 kx eval 'cat <<_LTECHO_EOF
13 kx $1
13 kx _LTECHO_EOF'
13 kx }
13 kx ECHO='func_fallback_echo'
13 kx fi
13 kx
13 kx # func_echo_all arg...
13 kx # Invoke $ECHO with all args, space-separated.
13 kx func_echo_all ()
13 kx {
13 kx $ECHO ""
13 kx }
13 kx
13 kx case $ECHO in
13 kx printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13 kx $as_echo "printf" >&6; } ;;
13 kx print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13 kx $as_echo "print -r" >&6; } ;;
13 kx *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13 kx $as_echo "cat" >&6; } ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13 kx $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13 kx if ${ac_cv_path_SED+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13 kx for ac_i in 1 2 3 4 5 6 7; do
13 kx ac_script="$ac_script$as_nl$ac_script"
13 kx done
13 kx echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13 kx { ac_script=; unset ac_script;}
13 kx if test -z "$SED"; then
13 kx ac_path_SED_found=false
13 kx # Loop through the user's path and test for each of PROGNAME-LIST
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_prog in sed gsed; do
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13 kx as_fn_executable_p "$ac_path_SED" || continue
13 kx # Check for GNU ac_path_SED and select it if it is found.
13 kx # Check for GNU $ac_path_SED
13 kx case `"$ac_path_SED" --version 2>&1` in
13 kx *GNU*)
13 kx ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13 kx *)
13 kx ac_count=0
13 kx $as_echo_n 0123456789 >"conftest.in"
13 kx while :
13 kx do
13 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
13 kx mv "conftest.tmp" "conftest.in"
13 kx cp "conftest.in" "conftest.nl"
13 kx $as_echo '' >> "conftest.nl"
13 kx "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
13 kx if test $ac_count -gt ${ac_path_SED_max-0}; then
13 kx # Best one so far, save it but keep looking for a better one
13 kx ac_cv_path_SED="$ac_path_SED"
13 kx ac_path_SED_max=$ac_count
13 kx fi
13 kx # 10*(2^10) chars as input seems more than enough
13 kx test $ac_count -gt 10 && break
13 kx done
13 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13 kx esac
13 kx
13 kx $ac_path_SED_found && break 3
13 kx done
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx if test -z "$ac_cv_path_SED"; then
13 kx as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13 kx fi
13 kx else
13 kx ac_cv_path_SED=$SED
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13 kx $as_echo "$ac_cv_path_SED" >&6; }
13 kx SED="$ac_cv_path_SED"
13 kx rm -f conftest.sed
13 kx
13 kx test -z "$SED" && SED=sed
13 kx Xsed="$SED -e 1s/^X//"
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13 kx $as_echo_n "checking for fgrep... " >&6; }
13 kx if ${ac_cv_path_FGREP+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13 kx then ac_cv_path_FGREP="$GREP -F"
13 kx else
13 kx if test -z "$FGREP"; then
13 kx ac_path_FGREP_found=false
13 kx # Loop through the user's path and test for each of PROGNAME-LIST
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_prog in fgrep; do
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13 kx as_fn_executable_p "$ac_path_FGREP" || continue
13 kx # Check for GNU ac_path_FGREP and select it if it is found.
13 kx # Check for GNU $ac_path_FGREP
13 kx case `"$ac_path_FGREP" --version 2>&1` in
13 kx *GNU*)
13 kx ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13 kx *)
13 kx ac_count=0
13 kx $as_echo_n 0123456789 >"conftest.in"
13 kx while :
13 kx do
13 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
13 kx mv "conftest.tmp" "conftest.in"
13 kx cp "conftest.in" "conftest.nl"
13 kx $as_echo 'FGREP' >> "conftest.nl"
13 kx "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
13 kx if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13 kx # Best one so far, save it but keep looking for a better one
13 kx ac_cv_path_FGREP="$ac_path_FGREP"
13 kx ac_path_FGREP_max=$ac_count
13 kx fi
13 kx # 10*(2^10) chars as input seems more than enough
13 kx test $ac_count -gt 10 && break
13 kx done
13 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13 kx esac
13 kx
13 kx $ac_path_FGREP_found && break 3
13 kx done
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx if test -z "$ac_cv_path_FGREP"; then
13 kx as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13 kx fi
13 kx else
13 kx ac_cv_path_FGREP=$FGREP
13 kx fi
13 kx
13 kx fi
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13 kx $as_echo "$ac_cv_path_FGREP" >&6; }
13 kx FGREP="$ac_cv_path_FGREP"
13 kx
13 kx
13 kx test -z "$GREP" && GREP=grep
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # Check whether --with-gnu-ld was given.
13 kx if test "${with_gnu_ld+set}" = set; then :
13 kx withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13 kx else
13 kx with_gnu_ld=no
13 kx fi
13 kx
13 kx ac_prog=ld
13 kx if test yes = "$GCC"; then
13 kx # Check if gcc -print-prog-name=ld gives a path.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13 kx $as_echo_n "checking for ld used by $CC... " >&6; }
13 kx case $host in
13 kx *-*-mingw*)
13 kx # gcc leaves a trailing carriage return, which upsets mingw
13 kx ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13 kx *)
13 kx ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13 kx esac
13 kx case $ac_prog in
13 kx # Accept absolute paths.
13 kx [\\/]* | ?:[\\/]*)
13 kx re_direlt='/[^/][^/]*/\.\./'
13 kx # Canonicalize the pathname of ld
13 kx ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13 kx while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13 kx ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13 kx done
13 kx test -z "$LD" && LD=$ac_prog
13 kx ;;
13 kx "")
13 kx # If it fails, then pretend we aren't using GCC.
13 kx ac_prog=ld
13 kx ;;
13 kx *)
13 kx # If it is relative, then search for the first ld in PATH.
13 kx with_gnu_ld=unknown
13 kx ;;
13 kx esac
13 kx elif test yes = "$with_gnu_ld"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13 kx $as_echo_n "checking for GNU ld... " >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13 kx $as_echo_n "checking for non-GNU ld... " >&6; }
13 kx fi
13 kx if ${lt_cv_path_LD+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -z "$LD"; then
13 kx lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13 kx for ac_dir in $PATH; do
13 kx IFS=$lt_save_ifs
13 kx test -z "$ac_dir" && ac_dir=.
13 kx if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13 kx lt_cv_path_LD=$ac_dir/$ac_prog
13 kx # Check to see if the program is GNU ld. I'd rather use --version,
13 kx # but apparently some variants of GNU ld only accept -v.
13 kx # Break only if it was the GNU/non-GNU ld that we prefer.
13 kx case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13 kx *GNU* | *'with BFD'*)
13 kx test no != "$with_gnu_ld" && break
13 kx ;;
13 kx *)
13 kx test yes != "$with_gnu_ld" && break
13 kx ;;
13 kx esac
13 kx fi
13 kx done
13 kx IFS=$lt_save_ifs
13 kx else
13 kx lt_cv_path_LD=$LD # Let the user override the test with a path.
13 kx fi
13 kx fi
13 kx
13 kx LD=$lt_cv_path_LD
13 kx if test -n "$LD"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13 kx $as_echo "$LD" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13 kx $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13 kx if ${lt_cv_prog_gnu_ld+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx # I'd rather use --version here, but apparently some GNU lds only accept -v.
13 kx case `$LD -v 2>&1 </dev/null` in
13 kx *GNU* | *'with BFD'*)
13 kx lt_cv_prog_gnu_ld=yes
13 kx ;;
13 kx *)
13 kx lt_cv_prog_gnu_ld=no
13 kx ;;
13 kx esac
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13 kx $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13 kx with_gnu_ld=$lt_cv_prog_gnu_ld
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13 kx $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13 kx if ${lt_cv_path_NM+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$NM"; then
13 kx # Let the user override the test.
13 kx lt_cv_path_NM=$NM
13 kx else
13 kx lt_nm_to_check=${ac_tool_prefix}nm
13 kx if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13 kx lt_nm_to_check="$lt_nm_to_check nm"
13 kx fi
13 kx for lt_tmp_nm in $lt_nm_to_check; do
13 kx lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13 kx for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13 kx IFS=$lt_save_ifs
13 kx test -z "$ac_dir" && ac_dir=.
13 kx tmp_nm=$ac_dir/$lt_tmp_nm
13 kx if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
13 kx # Check to see if the nm accepts a BSD-compat flag.
13 kx # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
13 kx # nm: unknown option "B" ignored
13 kx # Tru64's nm complains that /dev/null is an invalid object file
13 kx # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
13 kx case $build_os in
13 kx mingw*) lt_bad_file=conftest.nm/nofile ;;
13 kx *) lt_bad_file=/dev/null ;;
13 kx esac
13 kx case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
13 kx *$lt_bad_file* | *'Invalid file or object type'*)
13 kx lt_cv_path_NM="$tmp_nm -B"
13 kx break 2
13 kx ;;
13 kx *)
13 kx case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13 kx */dev/null*)
13 kx lt_cv_path_NM="$tmp_nm -p"
13 kx break 2
13 kx ;;
13 kx *)
13 kx lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13 kx continue # so that we can try to find one that supports BSD flags
13 kx ;;
13 kx esac
13 kx ;;
13 kx esac
13 kx fi
13 kx done
13 kx IFS=$lt_save_ifs
13 kx done
13 kx : ${lt_cv_path_NM=no}
13 kx fi
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13 kx $as_echo "$lt_cv_path_NM" >&6; }
13 kx if test no != "$lt_cv_path_NM"; then
13 kx NM=$lt_cv_path_NM
13 kx else
13 kx # Didn't find any BSD compatible name lister, look for dumpbin.
13 kx if test -n "$DUMPBIN"; then :
13 kx # Let the user override the test.
13 kx else
13 kx if test -n "$ac_tool_prefix"; then
13 kx for ac_prog in dumpbin "link -dump"
13 kx do
13 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_DUMPBIN+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$DUMPBIN"; then
13 kx ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx DUMPBIN=$ac_cv_prog_DUMPBIN
13 kx if test -n "$DUMPBIN"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13 kx $as_echo "$DUMPBIN" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx test -n "$DUMPBIN" && break
13 kx done
13 kx fi
13 kx if test -z "$DUMPBIN"; then
13 kx ac_ct_DUMPBIN=$DUMPBIN
13 kx for ac_prog in dumpbin "link -dump"
13 kx do
13 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
13 kx set dummy $ac_prog; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_DUMPBIN"; then
13 kx ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13 kx if test -n "$ac_ct_DUMPBIN"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13 kx $as_echo "$ac_ct_DUMPBIN" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx test -n "$ac_ct_DUMPBIN" && break
13 kx done
13 kx
13 kx if test "x$ac_ct_DUMPBIN" = x; then
13 kx DUMPBIN=":"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx DUMPBIN=$ac_ct_DUMPBIN
13 kx fi
13 kx fi
13 kx
13 kx case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
13 kx *COFF*)
13 kx DUMPBIN="$DUMPBIN -symbols -headers"
13 kx ;;
13 kx *)
13 kx DUMPBIN=:
13 kx ;;
13 kx esac
13 kx fi
13 kx
13 kx if test : != "$DUMPBIN"; then
13 kx NM=$DUMPBIN
13 kx fi
13 kx fi
13 kx test -z "$NM" && NM=nm
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13 kx $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13 kx if ${lt_cv_nm_interface+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_nm_interface="BSD nm"
13 kx echo "int some_variable = 0;" > conftest.$ac_ext
13 kx (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13 kx (eval "$ac_compile" 2>conftest.err)
13 kx cat conftest.err >&5
13 kx (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13 kx (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13 kx cat conftest.err >&5
13 kx (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13 kx cat conftest.out >&5
13 kx if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13 kx lt_cv_nm_interface="MS dumpbin"
13 kx fi
13 kx rm -f conftest*
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13 kx $as_echo "$lt_cv_nm_interface" >&6; }
13 kx
13 kx # find the maximum length of command line arguments
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13 kx $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13 kx if ${lt_cv_sys_max_cmd_len+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx i=0
13 kx teststring=ABCD
13 kx
13 kx case $build_os in
13 kx msdosdjgpp*)
13 kx # On DJGPP, this test can blow up pretty badly due to problems in libc
13 kx # (any single argument exceeding 2000 bytes causes a buffer overrun
13 kx # during glob expansion). Even if it were fixed, the result of this
13 kx # check would be larger than it should be.
13 kx lt_cv_sys_max_cmd_len=12288; # 12K is about right
13 kx ;;
13 kx
13 kx gnu*)
13 kx # Under GNU Hurd, this test is not required because there is
13 kx # no limit to the length of command line arguments.
13 kx # Libtool will interpret -1 as no limit whatsoever
13 kx lt_cv_sys_max_cmd_len=-1;
13 kx ;;
13 kx
13 kx cygwin* | mingw* | cegcc*)
13 kx # On Win9x/ME, this test blows up -- it succeeds, but takes
13 kx # about 5 minutes as the teststring grows exponentially.
13 kx # Worse, since 9x/ME are not pre-emptively multitasking,
13 kx # you end up with a "frozen" computer, even though with patience
13 kx # the test eventually succeeds (with a max line length of 256k).
13 kx # Instead, let's just punt: use the minimum linelength reported by
13 kx # all of the supported platforms: 8192 (on NT/2K/XP).
13 kx lt_cv_sys_max_cmd_len=8192;
13 kx ;;
13 kx
13 kx mint*)
13 kx # On MiNT this can take a long time and run out of memory.
13 kx lt_cv_sys_max_cmd_len=8192;
13 kx ;;
13 kx
13 kx amigaos*)
13 kx # On AmigaOS with pdksh, this test takes hours, literally.
13 kx # So we just punt and use a minimum line length of 8192.
13 kx lt_cv_sys_max_cmd_len=8192;
13 kx ;;
13 kx
13 kx bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
13 kx # This has been around since 386BSD, at least. Likely further.
13 kx if test -x /sbin/sysctl; then
13 kx lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13 kx elif test -x /usr/sbin/sysctl; then
13 kx lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13 kx else
13 kx lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13 kx fi
13 kx # And add a safety zone
13 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13 kx ;;
13 kx
13 kx interix*)
13 kx # We know the value 262144 and hardcode it with a safety zone (like BSD)
13 kx lt_cv_sys_max_cmd_len=196608
13 kx ;;
13 kx
13 kx os2*)
13 kx # The test takes a long time on OS/2.
13 kx lt_cv_sys_max_cmd_len=8192
13 kx ;;
13 kx
13 kx osf*)
13 kx # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13 kx # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13 kx # nice to cause kernel panics so lets avoid the loop below.
13 kx # First set a reasonable default.
13 kx lt_cv_sys_max_cmd_len=16384
13 kx #
13 kx if test -x /sbin/sysconfig; then
13 kx case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13 kx *1*) lt_cv_sys_max_cmd_len=-1 ;;
13 kx esac
13 kx fi
13 kx ;;
13 kx sco3.2v5*)
13 kx lt_cv_sys_max_cmd_len=102400
13 kx ;;
13 kx sysv5* | sco5v6* | sysv4.2uw2*)
13 kx kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13 kx if test -n "$kargmax"; then
13 kx lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13 kx else
13 kx lt_cv_sys_max_cmd_len=32768
13 kx fi
13 kx ;;
13 kx *)
13 kx lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13 kx if test -n "$lt_cv_sys_max_cmd_len" && \
13 kx test undefined != "$lt_cv_sys_max_cmd_len"; then
13 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13 kx else
13 kx # Make teststring a little bigger before we do anything with it.
13 kx # a 1K string should be a reasonable start.
13 kx for i in 1 2 3 4 5 6 7 8; do
13 kx teststring=$teststring$teststring
13 kx done
13 kx SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13 kx # If test is not a shell built-in, we'll probably end up computing a
13 kx # maximum length that is only half of the actual maximum length, but
13 kx # we can't tell.
13 kx while { test X`env echo "$teststring$teststring" 2>/dev/null` \
13 kx = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13 kx test 17 != "$i" # 1/2 MB should be enough
13 kx do
13 kx i=`expr $i + 1`
13 kx teststring=$teststring$teststring
13 kx done
13 kx # Only check the string length outside the loop.
13 kx lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13 kx teststring=
13 kx # Add a significant safety factor because C++ compilers can tack on
13 kx # massive amounts of additional arguments before passing them to the
13 kx # linker. It appears as though 1/2 is a usable value.
13 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13 kx fi
13 kx ;;
13 kx esac
13 kx
13 kx fi
13 kx
13 kx if test -n "$lt_cv_sys_max_cmd_len"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13 kx $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13 kx $as_echo "none" >&6; }
13 kx fi
13 kx max_cmd_len=$lt_cv_sys_max_cmd_len
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx : ${CP="cp -f"}
13 kx : ${MV="mv -f"}
13 kx : ${RM="rm -f"}
13 kx
13 kx if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13 kx lt_unset=unset
13 kx else
13 kx lt_unset=false
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # test EBCDIC or ASCII
13 kx case `echo X|tr X '\101'` in
13 kx A) # ASCII based system
13 kx # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13 kx lt_SP2NL='tr \040 \012'
13 kx lt_NL2SP='tr \015\012 \040\040'
13 kx ;;
13 kx *) # EBCDIC based system
13 kx lt_SP2NL='tr \100 \n'
13 kx lt_NL2SP='tr \r\n \100\100'
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
13 kx $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
13 kx if ${lt_cv_to_host_file_cmd+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx case $host in
13 kx *-*-mingw* )
13 kx case $build in
13 kx *-*-mingw* ) # actually msys
13 kx lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
13 kx ;;
13 kx *-*-cygwin* )
13 kx lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
13 kx ;;
13 kx * ) # otherwise, assume *nix
13 kx lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
13 kx ;;
13 kx esac
13 kx ;;
13 kx *-*-cygwin* )
13 kx case $build in
13 kx *-*-mingw* ) # actually msys
13 kx lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
13 kx ;;
13 kx *-*-cygwin* )
13 kx lt_cv_to_host_file_cmd=func_convert_file_noop
13 kx ;;
13 kx * ) # otherwise, assume *nix
13 kx lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
13 kx ;;
13 kx esac
13 kx ;;
13 kx * ) # unhandled hosts (and "normal" native builds)
13 kx lt_cv_to_host_file_cmd=func_convert_file_noop
13 kx ;;
13 kx esac
13 kx
13 kx fi
13 kx
13 kx to_host_file_cmd=$lt_cv_to_host_file_cmd
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
13 kx $as_echo "$lt_cv_to_host_file_cmd" >&6; }
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
13 kx $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
13 kx if ${lt_cv_to_tool_file_cmd+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx #assume ordinary cross tools, or native build.
13 kx lt_cv_to_tool_file_cmd=func_convert_file_noop
13 kx case $host in
13 kx *-*-mingw* )
13 kx case $build in
13 kx *-*-mingw* ) # actually msys
13 kx lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
13 kx ;;
13 kx esac
13 kx ;;
13 kx esac
13 kx
13 kx fi
13 kx
13 kx to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
13 kx $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13 kx $as_echo_n "checking for $LD option to reload object files... " >&6; }
13 kx if ${lt_cv_ld_reload_flag+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_ld_reload_flag='-r'
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13 kx $as_echo "$lt_cv_ld_reload_flag" >&6; }
13 kx reload_flag=$lt_cv_ld_reload_flag
13 kx case $reload_flag in
13 kx "" | " "*) ;;
13 kx *) reload_flag=" $reload_flag" ;;
13 kx esac
13 kx reload_cmds='$LD$reload_flag -o $output$reload_objs'
13 kx case $host_os in
13 kx cygwin* | mingw* | pw32* | cegcc*)
13 kx if test yes != "$GCC"; then
13 kx reload_cmds=false
13 kx fi
13 kx ;;
13 kx darwin*)
13 kx if test yes = "$GCC"; then
13 kx reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
13 kx else
13 kx reload_cmds='$LD$reload_flag -o $output$reload_objs'
13 kx fi
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}objdump; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_OBJDUMP+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$OBJDUMP"; then
13 kx ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx OBJDUMP=$ac_cv_prog_OBJDUMP
13 kx if test -n "$OBJDUMP"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13 kx $as_echo "$OBJDUMP" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_OBJDUMP"; then
13 kx ac_ct_OBJDUMP=$OBJDUMP
13 kx # Extract the first word of "objdump", so it can be a program name with args.
13 kx set dummy objdump; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_OBJDUMP"; then
13 kx ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_OBJDUMP="objdump"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13 kx if test -n "$ac_ct_OBJDUMP"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13 kx $as_echo "$ac_ct_OBJDUMP" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_OBJDUMP" = x; then
13 kx OBJDUMP="false"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx OBJDUMP=$ac_ct_OBJDUMP
13 kx fi
13 kx else
13 kx OBJDUMP="$ac_cv_prog_OBJDUMP"
13 kx fi
13 kx
13 kx test -z "$OBJDUMP" && OBJDUMP=objdump
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13 kx $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13 kx if ${lt_cv_deplibs_check_method+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_file_magic_cmd='$MAGIC_CMD'
13 kx lt_cv_file_magic_test_file=
13 kx lt_cv_deplibs_check_method='unknown'
13 kx # Need to set the preceding variable on all platforms that support
13 kx # interlibrary dependencies.
13 kx # 'none' -- dependencies not supported.
13 kx # 'unknown' -- same as none, but documents that we really don't know.
13 kx # 'pass_all' -- all dependencies passed with no checks.
13 kx # 'test_compile' -- check by making test program.
13 kx # 'file_magic [[regex]]' -- check by looking for files in library path
13 kx # that responds to the $file_magic_cmd with a given extended regex.
13 kx # If you have 'file' or equivalent on your system and you're not sure
13 kx # whether 'pass_all' will *always* work, you probably want this one.
13 kx
13 kx case $host_os in
13 kx aix[4-9]*)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx
13 kx beos*)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx
13 kx bsdi[45]*)
13 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13 kx lt_cv_file_magic_cmd='/usr/bin/file -L'
13 kx lt_cv_file_magic_test_file=/shlib/libc.so
13 kx ;;
13 kx
13 kx cygwin*)
13 kx # func_win32_libid is a shell function defined in ltmain.sh
13 kx lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13 kx lt_cv_file_magic_cmd='func_win32_libid'
13 kx ;;
13 kx
13 kx mingw* | pw32*)
13 kx # Base MSYS/MinGW do not provide the 'file' command needed by
13 kx # func_win32_libid shell function, so use a weaker test based on 'objdump',
13 kx # unless we find 'file', for example because we are cross-compiling.
13 kx if ( file / ) >/dev/null 2>&1; then
13 kx lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13 kx lt_cv_file_magic_cmd='func_win32_libid'
13 kx else
13 kx # Keep this pattern in sync with the one in func_win32_libid.
13 kx lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
13 kx lt_cv_file_magic_cmd='$OBJDUMP -f'
13 kx fi
13 kx ;;
13 kx
13 kx cegcc*)
13 kx # use the weaker test based on 'objdump'. See mingw*.
13 kx lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13 kx lt_cv_file_magic_cmd='$OBJDUMP -f'
13 kx ;;
13 kx
13 kx darwin* | rhapsody*)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx
13 kx freebsd* | dragonfly*)
13 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13 kx case $host_cpu in
13 kx i*86 )
13 kx # Not sure whether the presence of OpenBSD here was a mistake.
13 kx # Let's accept both of them until this is cleared up.
13 kx lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13 kx lt_cv_file_magic_cmd=/usr/bin/file
13 kx lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13 kx ;;
13 kx esac
13 kx else
13 kx lt_cv_deplibs_check_method=pass_all
13 kx fi
13 kx ;;
13 kx
13 kx haiku*)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx
13 kx hpux10.20* | hpux11*)
13 kx lt_cv_file_magic_cmd=/usr/bin/file
13 kx case $host_cpu in
13 kx ia64*)
13 kx lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13 kx lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13 kx ;;
13 kx hppa*64*)
13 kx 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]'
13 kx lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13 kx ;;
13 kx *)
13 kx lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13 kx lt_cv_file_magic_test_file=/usr/lib/libc.sl
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx interix[3-9]*)
13 kx # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13 kx ;;
13 kx
13 kx irix5* | irix6* | nonstopux*)
13 kx case $LD in
13 kx *-32|*"-32 ") libmagic=32-bit;;
13 kx *-n32|*"-n32 ") libmagic=N32;;
13 kx *-64|*"-64 ") libmagic=64-bit;;
13 kx *) libmagic=never-match;;
13 kx esac
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx
13 kx # This must be glibc/ELF.
13 kx linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx
13 kx netbsd*)
13 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13 kx else
13 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13 kx fi
13 kx ;;
13 kx
13 kx newos6*)
13 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13 kx lt_cv_file_magic_cmd=/usr/bin/file
13 kx lt_cv_file_magic_test_file=/usr/lib/libnls.so
13 kx ;;
13 kx
13 kx *nto* | *qnx*)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx
13 kx openbsd* | bitrig*)
13 kx if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13 kx else
13 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13 kx fi
13 kx ;;
13 kx
13 kx osf3* | osf4* | osf5*)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx
13 kx rdos*)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx
13 kx solaris*)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx
13 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx
13 kx sysv4 | sysv4.3*)
13 kx case $host_vendor in
13 kx motorola)
13 kx 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]'
13 kx lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13 kx ;;
13 kx ncr)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx sequent)
13 kx lt_cv_file_magic_cmd='/bin/file'
13 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13 kx ;;
13 kx sni)
13 kx lt_cv_file_magic_cmd='/bin/file'
13 kx lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13 kx lt_cv_file_magic_test_file=/lib/libc.so
13 kx ;;
13 kx siemens)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx pc)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx tpf*)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx os2*)
13 kx lt_cv_deplibs_check_method=pass_all
13 kx ;;
13 kx esac
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13 kx $as_echo "$lt_cv_deplibs_check_method" >&6; }
13 kx
13 kx file_magic_glob=
13 kx want_nocaseglob=no
13 kx if test "$build" = "$host"; then
13 kx case $host_os in
13 kx mingw* | pw32*)
13 kx if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13 kx want_nocaseglob=yes
13 kx else
13 kx file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13 kx fi
13 kx ;;
13 kx esac
13 kx fi
13 kx
13 kx file_magic_cmd=$lt_cv_file_magic_cmd
13 kx deplibs_check_method=$lt_cv_deplibs_check_method
13 kx test -z "$deplibs_check_method" && deplibs_check_method=unknown
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_DLLTOOL+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$DLLTOOL"; then
13 kx ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx DLLTOOL=$ac_cv_prog_DLLTOOL
13 kx if test -n "$DLLTOOL"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13 kx $as_echo "$DLLTOOL" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_DLLTOOL"; then
13 kx ac_ct_DLLTOOL=$DLLTOOL
13 kx # Extract the first word of "dlltool", so it can be a program name with args.
13 kx set dummy dlltool; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_DLLTOOL"; then
13 kx ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13 kx if test -n "$ac_ct_DLLTOOL"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13 kx $as_echo "$ac_ct_DLLTOOL" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_DLLTOOL" = x; then
13 kx DLLTOOL="false"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx DLLTOOL=$ac_ct_DLLTOOL
13 kx fi
13 kx else
13 kx DLLTOOL="$ac_cv_prog_DLLTOOL"
13 kx fi
13 kx
13 kx test -z "$DLLTOOL" && DLLTOOL=dlltool
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13 kx $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
13 kx if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_sharedlib_from_linklib_cmd='unknown'
13 kx
13 kx case $host_os in
13 kx cygwin* | mingw* | pw32* | cegcc*)
13 kx # two different shell functions defined in ltmain.sh;
13 kx # decide which one to use based on capabilities of $DLLTOOL
13 kx case `$DLLTOOL --help 2>&1` in
13 kx *--identify-strict*)
13 kx lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13 kx ;;
13 kx *)
13 kx lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13 kx ;;
13 kx esac
13 kx ;;
13 kx *)
13 kx # fallback: assume linklib IS sharedlib
13 kx lt_cv_sharedlib_from_linklib_cmd=$ECHO
13 kx ;;
13 kx esac
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13 kx $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13 kx sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13 kx test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx for ac_prog in ar
13 kx do
13 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_AR+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$AR"; then
13 kx ac_cv_prog_AR="$AR" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx AR=$ac_cv_prog_AR
13 kx if test -n "$AR"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13 kx $as_echo "$AR" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx test -n "$AR" && break
13 kx done
13 kx fi
13 kx if test -z "$AR"; then
13 kx ac_ct_AR=$AR
13 kx for ac_prog in ar
13 kx do
13 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
13 kx set dummy $ac_prog; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_AR+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_AR"; then
13 kx ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_AR="$ac_prog"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_AR=$ac_cv_prog_ac_ct_AR
13 kx if test -n "$ac_ct_AR"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13 kx $as_echo "$ac_ct_AR" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx test -n "$ac_ct_AR" && break
13 kx done
13 kx
13 kx if test "x$ac_ct_AR" = x; then
13 kx AR="false"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx AR=$ac_ct_AR
13 kx fi
13 kx fi
13 kx
13 kx : ${AR=ar}
13 kx : ${AR_FLAGS=cru}
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13 kx $as_echo_n "checking for archiver @FILE support... " >&6; }
13 kx if ${lt_cv_ar_at_file+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_ar_at_file=no
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx echo conftest.$ac_objext > conftest.lst
13 kx lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13 kx (eval $lt_ar_try) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }
13 kx if test 0 -eq "$ac_status"; then
13 kx # Ensure the archiver fails upon bogus file names.
13 kx rm -f conftest.$ac_objext libconftest.a
13 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13 kx (eval $lt_ar_try) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }
13 kx if test 0 -ne "$ac_status"; then
13 kx lt_cv_ar_at_file=@
13 kx fi
13 kx fi
13 kx rm -f conftest.* libconftest.a
13 kx
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13 kx $as_echo "$lt_cv_ar_at_file" >&6; }
13 kx
13 kx if test no = "$lt_cv_ar_at_file"; then
13 kx archiver_list_spec=
13 kx else
13 kx archiver_list_spec=$lt_cv_ar_at_file
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}strip; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_STRIP+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$STRIP"; then
13 kx ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx STRIP=$ac_cv_prog_STRIP
13 kx if test -n "$STRIP"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13 kx $as_echo "$STRIP" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_STRIP"; then
13 kx ac_ct_STRIP=$STRIP
13 kx # Extract the first word of "strip", so it can be a program name with args.
13 kx set dummy strip; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_STRIP"; then
13 kx ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_STRIP="strip"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13 kx if test -n "$ac_ct_STRIP"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13 kx $as_echo "$ac_ct_STRIP" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_STRIP" = x; then
13 kx STRIP=":"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx STRIP=$ac_ct_STRIP
13 kx fi
13 kx else
13 kx STRIP="$ac_cv_prog_STRIP"
13 kx fi
13 kx
13 kx test -z "$STRIP" && STRIP=:
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_RANLIB+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$RANLIB"; then
13 kx ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx RANLIB=$ac_cv_prog_RANLIB
13 kx if test -n "$RANLIB"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13 kx $as_echo "$RANLIB" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_RANLIB"; then
13 kx ac_ct_RANLIB=$RANLIB
13 kx # Extract the first word of "ranlib", so it can be a program name with args.
13 kx set dummy ranlib; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_RANLIB"; then
13 kx ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_RANLIB="ranlib"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13 kx if test -n "$ac_ct_RANLIB"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13 kx $as_echo "$ac_ct_RANLIB" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_RANLIB" = x; then
13 kx RANLIB=":"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx RANLIB=$ac_ct_RANLIB
13 kx fi
13 kx else
13 kx RANLIB="$ac_cv_prog_RANLIB"
13 kx fi
13 kx
13 kx test -z "$RANLIB" && RANLIB=:
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # Determine commands to create old-style static archives.
13 kx old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13 kx old_postinstall_cmds='chmod 644 $oldlib'
13 kx old_postuninstall_cmds=
13 kx
13 kx if test -n "$RANLIB"; then
13 kx case $host_os in
13 kx bitrig* | openbsd*)
13 kx old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13 kx ;;
13 kx *)
13 kx old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13 kx ;;
13 kx esac
13 kx old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13 kx fi
13 kx
13 kx case $host_os in
13 kx darwin*)
13 kx lock_old_archive_extraction=yes ;;
13 kx *)
13 kx lock_old_archive_extraction=no ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # If no C compiler was specified, use CC.
13 kx LTCC=${LTCC-"$CC"}
13 kx
13 kx # If no C compiler flags were specified, use CFLAGS.
13 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13 kx
13 kx # Allow CC to be a program name with arguments.
13 kx compiler=$CC
13 kx
13 kx
13 kx # Check for command to grab the raw symbol name followed by C symbol from nm.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13 kx $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13 kx if ${lt_cv_sys_global_symbol_pipe+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx # These are sane defaults that work on at least a few old systems.
13 kx # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13 kx
13 kx # Character class describing NM global symbol codes.
13 kx symcode='[BCDEGRST]'
13 kx
13 kx # Regexp to match symbols that can be accessed directly from C.
13 kx sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13 kx
13 kx # Define system-specific variables.
13 kx case $host_os in
13 kx aix*)
13 kx symcode='[BCDT]'
13 kx ;;
13 kx cygwin* | mingw* | pw32* | cegcc*)
13 kx symcode='[ABCDGISTW]'
13 kx ;;
13 kx hpux*)
13 kx if test ia64 = "$host_cpu"; then
13 kx symcode='[ABCDEGRST]'
13 kx fi
13 kx ;;
13 kx irix* | nonstopux*)
13 kx symcode='[BCDEGRST]'
13 kx ;;
13 kx osf*)
13 kx symcode='[BCDEGQRST]'
13 kx ;;
13 kx solaris*)
13 kx symcode='[BDRT]'
13 kx ;;
13 kx sco3.2v5*)
13 kx symcode='[DT]'
13 kx ;;
13 kx sysv4.2uw2*)
13 kx symcode='[DT]'
13 kx ;;
13 kx sysv5* | sco5v6* | unixware* | OpenUNIX*)
13 kx symcode='[ABDT]'
13 kx ;;
13 kx sysv4)
13 kx symcode='[DFNSTU]'
13 kx ;;
13 kx esac
13 kx
13 kx # If we're using GNU nm, then use its standard symbol codes.
13 kx case `$NM -V 2>&1` in
13 kx *GNU* | *'with BFD'*)
13 kx symcode='[ABCDGIRSTW]' ;;
13 kx esac
13 kx
13 kx if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13 kx # Gets list of data symbols to import.
13 kx lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
13 kx # Adjust the below global symbol transforms to fixup imported variables.
13 kx lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13 kx lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13 kx lt_c_name_lib_hook="\
13 kx -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13 kx -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13 kx else
13 kx # Disable hooks by default.
13 kx lt_cv_sys_global_symbol_to_import=
13 kx lt_cdecl_hook=
13 kx lt_c_name_hook=
13 kx lt_c_name_lib_hook=
13 kx fi
13 kx
13 kx # Transform an extracted symbol line into a proper C declaration.
13 kx # Some systems (esp. on ia64) link data and code symbols differently,
13 kx # so use this general approach.
13 kx lt_cv_sys_global_symbol_to_cdecl="sed -n"\
13 kx $lt_cdecl_hook\
13 kx " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13 kx " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13 kx
13 kx # Transform an extracted symbol line into symbol name and symbol address
13 kx lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
13 kx $lt_c_name_hook\
13 kx " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13 kx " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13 kx
13 kx # Transform an extracted symbol line into symbol name with lib prefix and
13 kx # symbol address.
13 kx lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
13 kx $lt_c_name_lib_hook\
13 kx " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13 kx " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13 kx " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13 kx
13 kx # Handle CRLF in mingw tool chain
13 kx opt_cr=
13 kx case $build_os in
13 kx mingw*)
13 kx opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13 kx ;;
13 kx esac
13 kx
13 kx # Try without a prefix underscore, then with it.
13 kx for ac_symprfx in "" "_"; do
13 kx
13 kx # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13 kx symxfrm="\\1 $ac_symprfx\\2 \\2"
13 kx
13 kx # Write the raw and C identifiers.
13 kx if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13 kx # Fake it for dumpbin and say T for any non-static function,
13 kx # D for any global variable and I for any imported variable.
13 kx # Also find C++ and __fastcall symbols from MSVC++,
13 kx # which start with @ or ?.
13 kx lt_cv_sys_global_symbol_pipe="$AWK '"\
13 kx " {last_section=section; section=\$ 3};"\
13 kx " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13 kx " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13 kx " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13 kx " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13 kx " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13 kx " \$ 0!~/External *\|/{next};"\
13 kx " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13 kx " {if(hide[section]) next};"\
13 kx " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13 kx " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13 kx " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13 kx " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13 kx " ' prfx=^$ac_symprfx"
13 kx else
13 kx lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13 kx fi
13 kx lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13 kx
13 kx # Check to see that the pipe works correctly.
13 kx pipe_works=no
13 kx
13 kx rm -f conftest*
13 kx cat > conftest.$ac_ext <<_LT_EOF
13 kx #ifdef __cplusplus
13 kx extern "C" {
13 kx #endif
13 kx char nm_test_var;
13 kx void nm_test_func(void);
13 kx void nm_test_func(void){}
13 kx #ifdef __cplusplus
13 kx }
13 kx #endif
13 kx int main(){nm_test_var='a';nm_test_func();return(0);}
13 kx _LT_EOF
13 kx
13 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13 kx (eval $ac_compile) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }; then
13 kx # Now try to grab the symbols.
13 kx nlist=conftest.nm
13 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13 kx (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; } && test -s "$nlist"; then
13 kx # Try sorting and uniquifying the output.
13 kx if sort "$nlist" | uniq > "$nlist"T; then
13 kx mv -f "$nlist"T "$nlist"
13 kx else
13 kx rm -f "$nlist"T
13 kx fi
13 kx
13 kx # Make sure that we snagged all the symbols we need.
13 kx if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13 kx if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13 kx cat <<_LT_EOF > conftest.$ac_ext
13 kx /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13 kx #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13 kx /* DATA imports from DLLs on WIN32 can't be const, because runtime
13 kx relocations are performed -- see ld's documentation on pseudo-relocs. */
13 kx # define LT_DLSYM_CONST
13 kx #elif defined __osf__
13 kx /* This system does not cope well with relocations in const data. */
13 kx # define LT_DLSYM_CONST
13 kx #else
13 kx # define LT_DLSYM_CONST const
13 kx #endif
13 kx
13 kx #ifdef __cplusplus
13 kx extern "C" {
13 kx #endif
13 kx
13 kx _LT_EOF
13 kx # Now generate the symbol file.
13 kx eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13 kx
13 kx cat <<_LT_EOF >> conftest.$ac_ext
13 kx
13 kx /* The mapping between symbol names and symbols. */
13 kx LT_DLSYM_CONST struct {
13 kx const char *name;
13 kx void *address;
13 kx }
13 kx lt__PROGRAM__LTX_preloaded_symbols[] =
13 kx {
13 kx { "@PROGRAM@", (void *) 0 },
13 kx _LT_EOF
13 kx $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13 kx cat <<\_LT_EOF >> conftest.$ac_ext
13 kx {0, (void *) 0}
13 kx };
13 kx
13 kx /* This works around a problem in FreeBSD linker */
13 kx #ifdef FREEBSD_WORKAROUND
13 kx static const void *lt_preloaded_setup() {
13 kx return lt__PROGRAM__LTX_preloaded_symbols;
13 kx }
13 kx #endif
13 kx
13 kx #ifdef __cplusplus
13 kx }
13 kx #endif
13 kx _LT_EOF
13 kx # Now try linking the two files.
13 kx mv conftest.$ac_objext conftstm.$ac_objext
13 kx lt_globsym_save_LIBS=$LIBS
13 kx lt_globsym_save_CFLAGS=$CFLAGS
13 kx LIBS=conftstm.$ac_objext
13 kx CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13 kx (eval $ac_link) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; } && test -s conftest$ac_exeext; then
13 kx pipe_works=yes
13 kx fi
13 kx LIBS=$lt_globsym_save_LIBS
13 kx CFLAGS=$lt_globsym_save_CFLAGS
13 kx else
13 kx echo "cannot find nm_test_func in $nlist" >&5
13 kx fi
13 kx else
13 kx echo "cannot find nm_test_var in $nlist" >&5
13 kx fi
13 kx else
13 kx echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13 kx fi
13 kx else
13 kx echo "$progname: failed program was:" >&5
13 kx cat conftest.$ac_ext >&5
13 kx fi
13 kx rm -rf conftest* conftst*
13 kx
13 kx # Do not use the global_symbol_pipe unless it works.
13 kx if test yes = "$pipe_works"; then
13 kx break
13 kx else
13 kx lt_cv_sys_global_symbol_pipe=
13 kx fi
13 kx done
13 kx
13 kx fi
13 kx
13 kx if test -z "$lt_cv_sys_global_symbol_pipe"; then
13 kx lt_cv_sys_global_symbol_to_cdecl=
13 kx fi
13 kx if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13 kx $as_echo "failed" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13 kx $as_echo "ok" >&6; }
13 kx fi
13 kx
13 kx # Response file support.
13 kx if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13 kx nm_file_list_spec='@'
13 kx elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13 kx nm_file_list_spec='@'
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13 kx $as_echo_n "checking for sysroot... " >&6; }
13 kx
13 kx # Check whether --with-sysroot was given.
13 kx if test "${with_sysroot+set}" = set; then :
13 kx withval=$with_sysroot;
13 kx else
13 kx with_sysroot=no
13 kx fi
13 kx
13 kx
13 kx lt_sysroot=
13 kx case $with_sysroot in #(
13 kx yes)
13 kx if test yes = "$GCC"; then
13 kx lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13 kx fi
13 kx ;; #(
13 kx /*)
13 kx lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13 kx ;; #(
13 kx no|'')
13 kx ;; #(
13 kx *)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13 kx $as_echo "$with_sysroot" >&6; }
13 kx as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13 kx ;;
13 kx esac
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13 kx $as_echo "${lt_sysroot:-no}" >&6; }
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13 kx $as_echo_n "checking for a working dd... " >&6; }
13 kx if ${ac_cv_path_lt_DD+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx printf 0123456789abcdef0123456789abcdef >conftest.i
13 kx cat conftest.i conftest.i >conftest2.i
13 kx : ${lt_DD:=$DD}
13 kx if test -z "$lt_DD"; then
13 kx ac_path_lt_DD_found=false
13 kx # Loop through the user's path and test for each of PROGNAME-LIST
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_prog in dd; do
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13 kx as_fn_executable_p "$ac_path_lt_DD" || continue
13 kx if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13 kx cmp -s conftest.i conftest.out \
13 kx && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13 kx fi
13 kx $ac_path_lt_DD_found && break 3
13 kx done
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx if test -z "$ac_cv_path_lt_DD"; then
13 kx :
13 kx fi
13 kx else
13 kx ac_cv_path_lt_DD=$lt_DD
13 kx fi
13 kx
13 kx rm -f conftest.i conftest2.i conftest.out
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13 kx $as_echo "$ac_cv_path_lt_DD" >&6; }
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13 kx $as_echo_n "checking how to truncate binary pipes... " >&6; }
13 kx if ${lt_cv_truncate_bin+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx printf 0123456789abcdef0123456789abcdef >conftest.i
13 kx cat conftest.i conftest.i >conftest2.i
13 kx lt_cv_truncate_bin=
13 kx if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13 kx cmp -s conftest.i conftest.out \
13 kx && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13 kx fi
13 kx rm -f conftest.i conftest2.i conftest.out
13 kx test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13 kx $as_echo "$lt_cv_truncate_bin" >&6; }
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13 kx func_cc_basename ()
13 kx {
13 kx for cc_temp in $*""; do
13 kx case $cc_temp in
13 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13 kx \-*) ;;
13 kx *) break;;
13 kx esac
13 kx done
13 kx func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13 kx }
13 kx
13 kx # Check whether --enable-libtool-lock was given.
13 kx if test "${enable_libtool_lock+set}" = set; then :
13 kx enableval=$enable_libtool_lock;
13 kx fi
13 kx
13 kx test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13 kx
13 kx # Some flags need to be propagated to the compiler or linker for good
13 kx # libtool support.
13 kx case $host in
13 kx ia64-*-hpux*)
13 kx # Find out what ABI is being produced by ac_compile, and set mode
13 kx # options accordingly.
13 kx echo 'int i;' > conftest.$ac_ext
13 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13 kx (eval $ac_compile) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }; then
13 kx case `/usr/bin/file conftest.$ac_objext` in
13 kx *ELF-32*)
13 kx HPUX_IA64_MODE=32
13 kx ;;
13 kx *ELF-64*)
13 kx HPUX_IA64_MODE=64
13 kx ;;
13 kx esac
13 kx fi
13 kx rm -rf conftest*
13 kx ;;
13 kx *-*-irix6*)
13 kx # Find out what ABI is being produced by ac_compile, and set linker
13 kx # options accordingly.
13 kx echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13 kx (eval $ac_compile) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }; then
13 kx if test yes = "$lt_cv_prog_gnu_ld"; then
13 kx case `/usr/bin/file conftest.$ac_objext` in
13 kx *32-bit*)
13 kx LD="${LD-ld} -melf32bsmip"
13 kx ;;
13 kx *N32*)
13 kx LD="${LD-ld} -melf32bmipn32"
13 kx ;;
13 kx *64-bit*)
13 kx LD="${LD-ld} -melf64bmip"
13 kx ;;
13 kx esac
13 kx else
13 kx case `/usr/bin/file conftest.$ac_objext` in
13 kx *32-bit*)
13 kx LD="${LD-ld} -32"
13 kx ;;
13 kx *N32*)
13 kx LD="${LD-ld} -n32"
13 kx ;;
13 kx *64-bit*)
13 kx LD="${LD-ld} -64"
13 kx ;;
13 kx esac
13 kx fi
13 kx fi
13 kx rm -rf conftest*
13 kx ;;
13 kx
13 kx mips64*-*linux*)
13 kx # Find out what ABI is being produced by ac_compile, and set linker
13 kx # options accordingly.
13 kx echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13 kx (eval $ac_compile) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }; then
13 kx emul=elf
13 kx case `/usr/bin/file conftest.$ac_objext` in
13 kx *32-bit*)
13 kx emul="${emul}32"
13 kx ;;
13 kx *64-bit*)
13 kx emul="${emul}64"
13 kx ;;
13 kx esac
13 kx case `/usr/bin/file conftest.$ac_objext` in
13 kx *MSB*)
13 kx emul="${emul}btsmip"
13 kx ;;
13 kx *LSB*)
13 kx emul="${emul}ltsmip"
13 kx ;;
13 kx esac
13 kx case `/usr/bin/file conftest.$ac_objext` in
13 kx *N32*)
13 kx emul="${emul}n32"
13 kx ;;
13 kx esac
13 kx LD="${LD-ld} -m $emul"
13 kx fi
13 kx rm -rf conftest*
13 kx ;;
13 kx
13 kx x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13 kx s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13 kx # Find out what ABI is being produced by ac_compile, and set linker
13 kx # options accordingly. Note that the listed cases only cover the
13 kx # situations where additional linker options are needed (such as when
13 kx # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13 kx # vice versa); the common cases where no linker options are needed do
13 kx # not appear in the list.
13 kx echo 'int i;' > conftest.$ac_ext
13 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13 kx (eval $ac_compile) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }; then
13 kx case `/usr/bin/file conftest.o` in
13 kx *32-bit*)
13 kx case $host in
13 kx x86_64-*kfreebsd*-gnu)
13 kx LD="${LD-ld} -m elf_i386_fbsd"
13 kx ;;
13 kx x86_64-*linux*)
13 kx case `/usr/bin/file conftest.o` in
13 kx *x86-64*)
13 kx LD="${LD-ld} -m elf32_x86_64"
13 kx ;;
13 kx *)
13 kx LD="${LD-ld} -m elf_i386"
13 kx ;;
13 kx esac
13 kx ;;
13 kx powerpc64le-*linux*)
13 kx LD="${LD-ld} -m elf32lppclinux"
13 kx ;;
13 kx powerpc64-*linux*)
13 kx LD="${LD-ld} -m elf32ppclinux"
13 kx ;;
13 kx s390x-*linux*)
13 kx LD="${LD-ld} -m elf_s390"
13 kx ;;
13 kx sparc64-*linux*)
13 kx LD="${LD-ld} -m elf32_sparc"
13 kx ;;
13 kx esac
13 kx ;;
13 kx *64-bit*)
13 kx case $host in
13 kx x86_64-*kfreebsd*-gnu)
13 kx LD="${LD-ld} -m elf_x86_64_fbsd"
13 kx ;;
13 kx x86_64-*linux*)
13 kx LD="${LD-ld} -m elf_x86_64"
13 kx ;;
13 kx powerpcle-*linux*)
13 kx LD="${LD-ld} -m elf64lppc"
13 kx ;;
13 kx powerpc-*linux*)
13 kx LD="${LD-ld} -m elf64ppc"
13 kx ;;
13 kx s390*-*linux*|s390*-*tpf*)
13 kx LD="${LD-ld} -m elf64_s390"
13 kx ;;
13 kx sparc*-*linux*)
13 kx LD="${LD-ld} -m elf64_sparc"
13 kx ;;
13 kx esac
13 kx ;;
13 kx esac
13 kx fi
13 kx rm -rf conftest*
13 kx ;;
13 kx
13 kx *-*-sco3.2v5*)
13 kx # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13 kx SAVE_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS -belf"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13 kx $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13 kx if ${lt_cv_cc_needs_belf+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_ext=c
13 kx ac_cpp='$CPP $CPPFLAGS'
13 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx lt_cv_cc_needs_belf=yes
13 kx else
13 kx lt_cv_cc_needs_belf=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx ac_ext=c
13 kx ac_cpp='$CPP $CPPFLAGS'
13 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13 kx $as_echo "$lt_cv_cc_needs_belf" >&6; }
13 kx if test yes != "$lt_cv_cc_needs_belf"; then
13 kx # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13 kx CFLAGS=$SAVE_CFLAGS
13 kx fi
13 kx ;;
13 kx *-*solaris*)
13 kx # Find out what ABI is being produced by ac_compile, and set linker
13 kx # options accordingly.
13 kx echo 'int i;' > conftest.$ac_ext
13 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13 kx (eval $ac_compile) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }; then
13 kx case `/usr/bin/file conftest.o` in
13 kx *64-bit*)
13 kx case $lt_cv_prog_gnu_ld in
13 kx yes*)
13 kx case $host in
13 kx i?86-*-solaris*|x86_64-*-solaris*)
13 kx LD="${LD-ld} -m elf_x86_64"
13 kx ;;
13 kx sparc*-*-solaris*)
13 kx LD="${LD-ld} -m elf64_sparc"
13 kx ;;
13 kx esac
13 kx # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13 kx if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13 kx LD=${LD-ld}_sol2
13 kx fi
13 kx ;;
13 kx *)
13 kx if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13 kx LD="${LD-ld} -64"
13 kx fi
13 kx ;;
13 kx esac
13 kx ;;
13 kx esac
13 kx fi
13 kx rm -rf conftest*
13 kx ;;
13 kx esac
13 kx
13 kx need_locks=$enable_libtool_lock
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}mt; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$MANIFEST_TOOL"; then
13 kx ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13 kx if test -n "$MANIFEST_TOOL"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13 kx $as_echo "$MANIFEST_TOOL" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13 kx ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13 kx # Extract the first word of "mt", so it can be a program name with args.
13 kx set dummy mt; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_MANIFEST_TOOL"; then
13 kx ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13 kx if test -n "$ac_ct_MANIFEST_TOOL"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13 kx $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_MANIFEST_TOOL" = x; then
13 kx MANIFEST_TOOL=":"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13 kx fi
13 kx else
13 kx MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13 kx fi
13 kx
13 kx test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13 kx $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13 kx if ${lt_cv_path_mainfest_tool+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_path_mainfest_tool=no
13 kx echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13 kx $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13 kx cat conftest.err >&5
13 kx if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13 kx lt_cv_path_mainfest_tool=yes
13 kx fi
13 kx rm -f conftest*
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13 kx $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13 kx if test yes != "$lt_cv_path_mainfest_tool"; then
13 kx MANIFEST_TOOL=:
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx case $host_os in
13 kx rhapsody* | darwin*)
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_DSYMUTIL+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$DSYMUTIL"; then
13 kx ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx DSYMUTIL=$ac_cv_prog_DSYMUTIL
13 kx if test -n "$DSYMUTIL"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13 kx $as_echo "$DSYMUTIL" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_DSYMUTIL"; then
13 kx ac_ct_DSYMUTIL=$DSYMUTIL
13 kx # Extract the first word of "dsymutil", so it can be a program name with args.
13 kx set dummy dsymutil; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_DSYMUTIL"; then
13 kx ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13 kx if test -n "$ac_ct_DSYMUTIL"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13 kx $as_echo "$ac_ct_DSYMUTIL" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_DSYMUTIL" = x; then
13 kx DSYMUTIL=":"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx DSYMUTIL=$ac_ct_DSYMUTIL
13 kx fi
13 kx else
13 kx DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13 kx fi
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_NMEDIT+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$NMEDIT"; then
13 kx ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx NMEDIT=$ac_cv_prog_NMEDIT
13 kx if test -n "$NMEDIT"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13 kx $as_echo "$NMEDIT" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_NMEDIT"; then
13 kx ac_ct_NMEDIT=$NMEDIT
13 kx # Extract the first word of "nmedit", so it can be a program name with args.
13 kx set dummy nmedit; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_NMEDIT"; then
13 kx ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_NMEDIT="nmedit"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13 kx if test -n "$ac_ct_NMEDIT"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13 kx $as_echo "$ac_ct_NMEDIT" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_NMEDIT" = x; then
13 kx NMEDIT=":"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx NMEDIT=$ac_ct_NMEDIT
13 kx fi
13 kx else
13 kx NMEDIT="$ac_cv_prog_NMEDIT"
13 kx fi
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}lipo; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_LIPO+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$LIPO"; then
13 kx ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx LIPO=$ac_cv_prog_LIPO
13 kx if test -n "$LIPO"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13 kx $as_echo "$LIPO" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_LIPO"; then
13 kx ac_ct_LIPO=$LIPO
13 kx # Extract the first word of "lipo", so it can be a program name with args.
13 kx set dummy lipo; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_LIPO"; then
13 kx ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_LIPO="lipo"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13 kx if test -n "$ac_ct_LIPO"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13 kx $as_echo "$ac_ct_LIPO" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_LIPO" = x; then
13 kx LIPO=":"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx LIPO=$ac_ct_LIPO
13 kx fi
13 kx else
13 kx LIPO="$ac_cv_prog_LIPO"
13 kx fi
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}otool; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_OTOOL+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$OTOOL"; then
13 kx ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx OTOOL=$ac_cv_prog_OTOOL
13 kx if test -n "$OTOOL"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13 kx $as_echo "$OTOOL" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_OTOOL"; then
13 kx ac_ct_OTOOL=$OTOOL
13 kx # Extract the first word of "otool", so it can be a program name with args.
13 kx set dummy otool; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_OTOOL"; then
13 kx ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_OTOOL="otool"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13 kx if test -n "$ac_ct_OTOOL"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13 kx $as_echo "$ac_ct_OTOOL" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_OTOOL" = x; then
13 kx OTOOL=":"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx OTOOL=$ac_ct_OTOOL
13 kx fi
13 kx else
13 kx OTOOL="$ac_cv_prog_OTOOL"
13 kx fi
13 kx
13 kx if test -n "$ac_tool_prefix"; then
13 kx # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13 kx set dummy ${ac_tool_prefix}otool64; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_OTOOL64+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$OTOOL64"; then
13 kx ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx OTOOL64=$ac_cv_prog_OTOOL64
13 kx if test -n "$OTOOL64"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13 kx $as_echo "$OTOOL64" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx fi
13 kx if test -z "$ac_cv_prog_OTOOL64"; then
13 kx ac_ct_OTOOL64=$OTOOL64
13 kx # Extract the first word of "otool64", so it can be a program name with args.
13 kx set dummy otool64; ac_word=$2
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13 kx $as_echo_n "checking for $ac_word... " >&6; }
13 kx if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test -n "$ac_ct_OTOOL64"; then
13 kx ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13 kx else
13 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx for ac_exec_ext in '' $ac_executable_extensions; do
13 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13 kx ac_cv_prog_ac_ct_OTOOL64="otool64"
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13 kx break 2
13 kx fi
13 kx done
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx fi
13 kx fi
13 kx ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13 kx if test -n "$ac_ct_OTOOL64"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13 kx $as_echo "$ac_ct_OTOOL64" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx if test "x$ac_ct_OTOOL64" = x; then
13 kx OTOOL64=":"
13 kx else
13 kx case $cross_compiling:$ac_tool_warned in
13 kx yes:)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13 kx ac_tool_warned=yes ;;
13 kx esac
13 kx OTOOL64=$ac_ct_OTOOL64
13 kx fi
13 kx else
13 kx OTOOL64="$ac_cv_prog_OTOOL64"
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13 kx $as_echo_n "checking for -single_module linker flag... " >&6; }
13 kx if ${lt_cv_apple_cc_single_mod+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_apple_cc_single_mod=no
13 kx if test -z "$LT_MULTI_MODULE"; then
13 kx # By default we will add the -single_module flag. You can override
13 kx # by either setting the environment variable LT_MULTI_MODULE
13 kx # non-empty at configure time, or by adding -multi_module to the
13 kx # link flags.
13 kx rm -rf libconftest.dylib*
13 kx echo "int foo(void){return 1;}" > conftest.c
13 kx echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13 kx -dynamiclib -Wl,-single_module conftest.c" >&5
13 kx $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13 kx -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13 kx _lt_result=$?
13 kx # If there is a non-empty error log, and "single_module"
13 kx # appears in it, assume the flag caused a linker warning
13 kx if test -s conftest.err && $GREP single_module conftest.err; then
13 kx cat conftest.err >&5
13 kx # Otherwise, if the output was created with a 0 exit code from
13 kx # the compiler, it worked.
13 kx elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13 kx lt_cv_apple_cc_single_mod=yes
13 kx else
13 kx cat conftest.err >&5
13 kx fi
13 kx rm -rf libconftest.dylib*
13 kx rm -f conftest.*
13 kx fi
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13 kx $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13 kx $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13 kx if ${lt_cv_ld_exported_symbols_list+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_ld_exported_symbols_list=no
13 kx save_LDFLAGS=$LDFLAGS
13 kx echo "_main" > conftest.sym
13 kx LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx lt_cv_ld_exported_symbols_list=yes
13 kx else
13 kx lt_cv_ld_exported_symbols_list=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LDFLAGS=$save_LDFLAGS
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13 kx $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13 kx $as_echo_n "checking for -force_load linker flag... " >&6; }
13 kx if ${lt_cv_ld_force_load+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_ld_force_load=no
13 kx cat > conftest.c << _LT_EOF
13 kx int forced_loaded() { return 2;}
13 kx _LT_EOF
13 kx echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13 kx $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13 kx echo "$AR cru libconftest.a conftest.o" >&5
13 kx $AR cru libconftest.a conftest.o 2>&5
13 kx echo "$RANLIB libconftest.a" >&5
13 kx $RANLIB libconftest.a 2>&5
13 kx cat > conftest.c << _LT_EOF
13 kx int main() { return 0;}
13 kx _LT_EOF
13 kx echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13 kx $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13 kx _lt_result=$?
13 kx if test -s conftest.err && $GREP force_load conftest.err; then
13 kx cat conftest.err >&5
13 kx elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13 kx lt_cv_ld_force_load=yes
13 kx else
13 kx cat conftest.err >&5
13 kx fi
13 kx rm -f conftest.err libconftest.a conftest conftest.c
13 kx rm -rf conftest.dSYM
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13 kx $as_echo "$lt_cv_ld_force_load" >&6; }
13 kx case $host_os in
13 kx rhapsody* | darwin1.[012])
13 kx _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
13 kx darwin1.*)
13 kx _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13 kx darwin*) # darwin 5.x on
13 kx # if running on 10.5 or later, the deployment target defaults
13 kx # to the OS version, if on x86, and 10.4, the deployment
13 kx # target defaults to 10.4. Don't you love it?
13 kx case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13 kx 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13 kx _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13 kx 10.[012][,.]*)
13 kx _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13 kx 10.*)
13 kx _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13 kx esac
13 kx ;;
13 kx esac
13 kx if test yes = "$lt_cv_apple_cc_single_mod"; then
13 kx _lt_dar_single_mod='$single_module'
13 kx fi
13 kx if test yes = "$lt_cv_ld_exported_symbols_list"; then
13 kx _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
13 kx else
13 kx _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
13 kx fi
13 kx if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
13 kx _lt_dsymutil='~$DSYMUTIL $lib || :'
13 kx else
13 kx _lt_dsymutil=
13 kx fi
13 kx ;;
13 kx esac
13 kx
13 kx # func_munge_path_list VARIABLE PATH
13 kx # -----------------------------------
13 kx # VARIABLE is name of variable containing _space_ separated list of
13 kx # directories to be munged by the contents of PATH, which is string
13 kx # having a format:
13 kx # "DIR[:DIR]:"
13 kx # string "DIR[ DIR]" will be prepended to VARIABLE
13 kx # ":DIR[:DIR]"
13 kx # string "DIR[ DIR]" will be appended to VARIABLE
13 kx # "DIRP[:DIRP]::[DIRA:]DIRA"
13 kx # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
13 kx # "DIRA[ DIRA]" will be appended to VARIABLE
13 kx # "DIR[:DIR]"
13 kx # VARIABLE will be replaced by "DIR[ DIR]"
13 kx func_munge_path_list ()
13 kx {
13 kx case x$2 in
13 kx x)
13 kx ;;
13 kx *:)
13 kx eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
13 kx ;;
13 kx x:*)
13 kx eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
13 kx ;;
13 kx *::*)
13 kx eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
13 kx eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
13 kx ;;
13 kx *)
13 kx eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
13 kx ;;
13 kx esac
13 kx }
13 kx
13 kx for ac_header in dlfcn.h
13 kx do :
13 kx ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13 kx "
13 kx if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_DLFCN_H 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # Set options
13 kx
13 kx
13 kx
13 kx enable_dlopen=no
13 kx
13 kx
13 kx
13 kx # Check whether --enable-shared was given.
13 kx if test "${enable_shared+set}" = set; then :
13 kx enableval=$enable_shared; p=${PACKAGE-default}
13 kx case $enableval in
13 kx yes) enable_shared=yes ;;
13 kx no) enable_shared=no ;;
13 kx *)
13 kx enable_shared=no
13 kx # Look at the argument we got. We use all the common list separators.
13 kx lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13 kx for pkg in $enableval; do
13 kx IFS=$lt_save_ifs
13 kx if test "X$pkg" = "X$p"; then
13 kx enable_shared=yes
13 kx fi
13 kx done
13 kx IFS=$lt_save_ifs
13 kx ;;
13 kx esac
13 kx else
13 kx enable_shared=yes
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # Check whether --enable-static was given.
13 kx if test "${enable_static+set}" = set; then :
13 kx enableval=$enable_static; p=${PACKAGE-default}
13 kx case $enableval in
13 kx yes) enable_static=yes ;;
13 kx no) enable_static=no ;;
13 kx *)
13 kx enable_static=no
13 kx # Look at the argument we got. We use all the common list separators.
13 kx lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13 kx for pkg in $enableval; do
13 kx IFS=$lt_save_ifs
13 kx if test "X$pkg" = "X$p"; then
13 kx enable_static=yes
13 kx fi
13 kx done
13 kx IFS=$lt_save_ifs
13 kx ;;
13 kx esac
13 kx else
13 kx enable_static=yes
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # Check whether --with-pic was given.
13 kx if test "${with_pic+set}" = set; then :
13 kx withval=$with_pic; lt_p=${PACKAGE-default}
13 kx case $withval in
13 kx yes|no) pic_mode=$withval ;;
13 kx *)
13 kx pic_mode=default
13 kx # Look at the argument we got. We use all the common list separators.
13 kx lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13 kx for lt_pkg in $withval; do
13 kx IFS=$lt_save_ifs
13 kx if test "X$lt_pkg" = "X$lt_p"; then
13 kx pic_mode=yes
13 kx fi
13 kx done
13 kx IFS=$lt_save_ifs
13 kx ;;
13 kx esac
13 kx else
13 kx pic_mode=default
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # Check whether --enable-fast-install was given.
13 kx if test "${enable_fast_install+set}" = set; then :
13 kx enableval=$enable_fast_install; p=${PACKAGE-default}
13 kx case $enableval in
13 kx yes) enable_fast_install=yes ;;
13 kx no) enable_fast_install=no ;;
13 kx *)
13 kx enable_fast_install=no
13 kx # Look at the argument we got. We use all the common list separators.
13 kx lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13 kx for pkg in $enableval; do
13 kx IFS=$lt_save_ifs
13 kx if test "X$pkg" = "X$p"; then
13 kx enable_fast_install=yes
13 kx fi
13 kx done
13 kx IFS=$lt_save_ifs
13 kx ;;
13 kx esac
13 kx else
13 kx enable_fast_install=yes
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx shared_archive_member_spec=
13 kx case $host,$enable_shared in
13 kx power*-*-aix[5-9]*,yes)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
13 kx $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
13 kx
13 kx # Check whether --with-aix-soname was given.
13 kx if test "${with_aix_soname+set}" = set; then :
13 kx withval=$with_aix_soname; case $withval in
13 kx aix|svr4|both)
13 kx ;;
13 kx *)
13 kx as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
13 kx ;;
13 kx esac
13 kx lt_cv_with_aix_soname=$with_aix_soname
13 kx else
13 kx if ${lt_cv_with_aix_soname+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_with_aix_soname=aix
13 kx fi
13 kx
13 kx with_aix_soname=$lt_cv_with_aix_soname
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
13 kx $as_echo "$with_aix_soname" >&6; }
13 kx if test aix != "$with_aix_soname"; then
13 kx # For the AIX way of multilib, we name the shared archive member
13 kx # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
13 kx # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
13 kx # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
13 kx # the AIX toolchain works better with OBJECT_MODE set (default 32).
13 kx if test 64 = "${OBJECT_MODE-32}"; then
13 kx shared_archive_member_spec=shr_64
13 kx else
13 kx shared_archive_member_spec=shr
13 kx fi
13 kx fi
13 kx ;;
13 kx *)
13 kx with_aix_soname=aix
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # This can be used to rebuild libtool when needed
13 kx LIBTOOL_DEPS=$ltmain
13 kx
13 kx # Always use our own libtool.
13 kx LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx test -z "$LN_S" && LN_S="ln -s"
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx if test -n "${ZSH_VERSION+set}"; then
13 kx setopt NO_GLOB_SUBST
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13 kx $as_echo_n "checking for objdir... " >&6; }
13 kx if ${lt_cv_objdir+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx rm -f .libs 2>/dev/null
13 kx mkdir .libs 2>/dev/null
13 kx if test -d .libs; then
13 kx lt_cv_objdir=.libs
13 kx else
13 kx # MS-DOS does not allow filenames that begin with a dot.
13 kx lt_cv_objdir=_libs
13 kx fi
13 kx rmdir .libs 2>/dev/null
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13 kx $as_echo "$lt_cv_objdir" >&6; }
13 kx objdir=$lt_cv_objdir
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define LT_OBJDIR "$lt_cv_objdir/"
13 kx _ACEOF
13 kx
13 kx
13 kx
13 kx
13 kx case $host_os in
13 kx aix3*)
13 kx # AIX sometimes has problems with the GCC collect2 program. For some
13 kx # reason, if we set the COLLECT_NAMES environment variable, the problems
13 kx # vanish in a puff of smoke.
13 kx if test set != "${COLLECT_NAMES+set}"; then
13 kx COLLECT_NAMES=
13 kx export COLLECT_NAMES
13 kx fi
13 kx ;;
13 kx esac
13 kx
13 kx # Global variables:
13 kx ofile=libtool
13 kx can_build_shared=yes
13 kx
13 kx # All known linkers require a '.a' archive for static linking (except MSVC,
13 kx # which needs '.lib').
13 kx libext=a
13 kx
13 kx with_gnu_ld=$lt_cv_prog_gnu_ld
13 kx
13 kx old_CC=$CC
13 kx old_CFLAGS=$CFLAGS
13 kx
13 kx # Set sane defaults for various variables
13 kx test -z "$CC" && CC=cc
13 kx test -z "$LTCC" && LTCC=$CC
13 kx test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13 kx test -z "$LD" && LD=ld
13 kx test -z "$ac_objext" && ac_objext=o
13 kx
13 kx func_cc_basename $compiler
13 kx cc_basename=$func_cc_basename_result
13 kx
13 kx
13 kx # Only perform the check for file, if the check method requires it
13 kx test -z "$MAGIC_CMD" && MAGIC_CMD=file
13 kx case $deplibs_check_method in
13 kx file_magic*)
13 kx if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13 kx $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13 kx if ${lt_cv_path_MAGIC_CMD+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx case $MAGIC_CMD in
13 kx [\\/*] | ?:[\\/]*)
13 kx lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13 kx ;;
13 kx *)
13 kx lt_save_MAGIC_CMD=$MAGIC_CMD
13 kx lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13 kx ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13 kx for ac_dir in $ac_dummy; do
13 kx IFS=$lt_save_ifs
13 kx test -z "$ac_dir" && ac_dir=.
13 kx if test -f "$ac_dir/${ac_tool_prefix}file"; then
13 kx lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
13 kx if test -n "$file_magic_test_file"; then
13 kx case $deplibs_check_method in
13 kx "file_magic "*)
13 kx file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13 kx MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13 kx if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13 kx $EGREP "$file_magic_regex" > /dev/null; then
13 kx :
13 kx else
13 kx cat <<_LT_EOF 1>&2
13 kx
13 kx *** Warning: the command libtool uses to detect shared libraries,
13 kx *** $file_magic_cmd, produces output that libtool cannot recognize.
13 kx *** The result is that libtool may fail to recognize shared libraries
13 kx *** as such. This will affect the creation of libtool libraries that
13 kx *** depend on shared libraries, but programs linked with such libtool
13 kx *** libraries will work regardless of this problem. Nevertheless, you
13 kx *** may want to report the problem to your system manager and/or to
13 kx *** bug-libtool@gnu.org
13 kx
13 kx _LT_EOF
13 kx fi ;;
13 kx esac
13 kx fi
13 kx break
13 kx fi
13 kx done
13 kx IFS=$lt_save_ifs
13 kx MAGIC_CMD=$lt_save_MAGIC_CMD
13 kx ;;
13 kx esac
13 kx fi
13 kx
13 kx MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13 kx if test -n "$MAGIC_CMD"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13 kx $as_echo "$MAGIC_CMD" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx if test -z "$lt_cv_path_MAGIC_CMD"; then
13 kx if test -n "$ac_tool_prefix"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13 kx $as_echo_n "checking for file... " >&6; }
13 kx if ${lt_cv_path_MAGIC_CMD+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx case $MAGIC_CMD in
13 kx [\\/*] | ?:[\\/]*)
13 kx lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13 kx ;;
13 kx *)
13 kx lt_save_MAGIC_CMD=$MAGIC_CMD
13 kx lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13 kx ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13 kx for ac_dir in $ac_dummy; do
13 kx IFS=$lt_save_ifs
13 kx test -z "$ac_dir" && ac_dir=.
13 kx if test -f "$ac_dir/file"; then
13 kx lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13 kx if test -n "$file_magic_test_file"; then
13 kx case $deplibs_check_method in
13 kx "file_magic "*)
13 kx file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13 kx MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13 kx if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13 kx $EGREP "$file_magic_regex" > /dev/null; then
13 kx :
13 kx else
13 kx cat <<_LT_EOF 1>&2
13 kx
13 kx *** Warning: the command libtool uses to detect shared libraries,
13 kx *** $file_magic_cmd, produces output that libtool cannot recognize.
13 kx *** The result is that libtool may fail to recognize shared libraries
13 kx *** as such. This will affect the creation of libtool libraries that
13 kx *** depend on shared libraries, but programs linked with such libtool
13 kx *** libraries will work regardless of this problem. Nevertheless, you
13 kx *** may want to report the problem to your system manager and/or to
13 kx *** bug-libtool@gnu.org
13 kx
13 kx _LT_EOF
13 kx fi ;;
13 kx esac
13 kx fi
13 kx break
13 kx fi
13 kx done
13 kx IFS=$lt_save_ifs
13 kx MAGIC_CMD=$lt_save_MAGIC_CMD
13 kx ;;
13 kx esac
13 kx fi
13 kx
13 kx MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13 kx if test -n "$MAGIC_CMD"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13 kx $as_echo "$MAGIC_CMD" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx else
13 kx MAGIC_CMD=:
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx ;;
13 kx esac
13 kx
13 kx # Use C for the default configuration in the libtool script
13 kx
13 kx lt_save_CC=$CC
13 kx ac_ext=c
13 kx ac_cpp='$CPP $CPPFLAGS'
13 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx
13 kx
13 kx # Source file extension for C test sources.
13 kx ac_ext=c
13 kx
13 kx # Object file extension for compiled C test sources.
13 kx objext=o
13 kx objext=$objext
13 kx
13 kx # Code to be used in simple compile tests
13 kx lt_simple_compile_test_code="int some_variable = 0;"
13 kx
13 kx # Code to be used in simple link tests
13 kx lt_simple_link_test_code='int main(){return(0);}'
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # If no C compiler was specified, use CC.
13 kx LTCC=${LTCC-"$CC"}
13 kx
13 kx # If no C compiler flags were specified, use CFLAGS.
13 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13 kx
13 kx # Allow CC to be a program name with arguments.
13 kx compiler=$CC
13 kx
13 kx # Save the default compiler, since it gets overwritten when the other
13 kx # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13 kx compiler_DEFAULT=$CC
13 kx
13 kx # save warnings/boilerplate of simple test code
13 kx ac_outfile=conftest.$ac_objext
13 kx echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13 kx eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13 kx _lt_compiler_boilerplate=`cat conftest.err`
13 kx $RM conftest*
13 kx
13 kx ac_outfile=conftest.$ac_objext
13 kx echo "$lt_simple_link_test_code" >conftest.$ac_ext
13 kx eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13 kx _lt_linker_boilerplate=`cat conftest.err`
13 kx $RM -r conftest*
13 kx
13 kx
13 kx ## CAVEAT EMPTOR:
13 kx ## There is no encapsulation within the following macros, do not change
13 kx ## the running order or otherwise move them around unless you know exactly
13 kx ## what you are doing...
13 kx if test -n "$compiler"; then
13 kx
13 kx lt_prog_compiler_no_builtin_flag=
13 kx
13 kx if test yes = "$GCC"; then
13 kx case $cc_basename in
13 kx nvcc*)
13 kx lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13 kx *)
13 kx lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13 kx esac
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13 kx $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13 kx if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_prog_compiler_rtti_exceptions=no
13 kx ac_outfile=conftest.$ac_objext
13 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13 kx lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
13 kx # Insert the option either (1) after the last *FLAGS variable, or
13 kx # (2) before a word containing "conftest.", or (3) at the end.
13 kx # Note that $ac_compile itself does not contain backslashes and begins
13 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
13 kx # The option is referenced via a variable to avoid confusing sed.
13 kx lt_compile=`echo "$ac_compile" | $SED \
13 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13 kx -e 's:$: $lt_compiler_flag:'`
13 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13 kx (eval "$lt_compile" 2>conftest.err)
13 kx ac_status=$?
13 kx cat conftest.err >&5
13 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
13 kx if (exit $ac_status) && test -s "$ac_outfile"; then
13 kx # The compiler can only warn and ignore the option if not recognized
13 kx # So say no if there are warnings other than the usual output.
13 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13 kx lt_cv_prog_compiler_rtti_exceptions=yes
13 kx fi
13 kx fi
13 kx $RM conftest*
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13 kx $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13 kx
13 kx if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13 kx lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13 kx else
13 kx :
13 kx fi
13 kx
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx lt_prog_compiler_wl=
13 kx lt_prog_compiler_pic=
13 kx lt_prog_compiler_static=
13 kx
13 kx
13 kx if test yes = "$GCC"; then
13 kx lt_prog_compiler_wl='-Wl,'
13 kx lt_prog_compiler_static='-static'
13 kx
13 kx case $host_os in
13 kx aix*)
13 kx # All AIX code is PIC.
13 kx if test ia64 = "$host_cpu"; then
13 kx # AIX 5 now supports IA64 processor
13 kx lt_prog_compiler_static='-Bstatic'
13 kx fi
13 kx lt_prog_compiler_pic='-fPIC'
13 kx ;;
13 kx
13 kx amigaos*)
13 kx case $host_cpu in
13 kx powerpc)
13 kx # see comment about AmigaOS4 .so support
13 kx lt_prog_compiler_pic='-fPIC'
13 kx ;;
13 kx m68k)
13 kx # FIXME: we need at least 68020 code to build shared libraries, but
13 kx # adding the '-m68020' flag to GCC prevents building anything better,
13 kx # like '-m68040'.
13 kx lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13 kx # PIC is the default for these OSes.
13 kx ;;
13 kx
13 kx mingw* | cygwin* | pw32* | os2* | cegcc*)
13 kx # This hack is so that the source file can tell whether it is being
13 kx # built for inclusion in a dll (and should export symbols for example).
13 kx # Although the cygwin gcc ignores -fPIC, still need this for old-style
13 kx # (--disable-auto-import) libraries
13 kx lt_prog_compiler_pic='-DDLL_EXPORT'
13 kx case $host_os in
13 kx os2*)
13 kx lt_prog_compiler_static='$wl-static'
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx darwin* | rhapsody*)
13 kx # PIC is the default on this platform
13 kx # Common symbols not allowed in MH_DYLIB files
13 kx lt_prog_compiler_pic='-fno-common'
13 kx ;;
13 kx
13 kx haiku*)
13 kx # PIC is the default for Haiku.
13 kx # The "-static" flag exists, but is broken.
13 kx lt_prog_compiler_static=
13 kx ;;
13 kx
13 kx hpux*)
13 kx # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13 kx # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13 kx # sets the default TLS model and affects inlining.
13 kx case $host_cpu in
13 kx hppa*64*)
13 kx # +Z the default
13 kx ;;
13 kx *)
13 kx lt_prog_compiler_pic='-fPIC'
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx interix[3-9]*)
13 kx # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13 kx # Instead, we relocate shared libraries at runtime.
13 kx ;;
13 kx
13 kx msdosdjgpp*)
13 kx # Just because we use GCC doesn't mean we suddenly get shared libraries
13 kx # on systems that don't support them.
13 kx lt_prog_compiler_can_build_shared=no
13 kx enable_shared=no
13 kx ;;
13 kx
13 kx *nto* | *qnx*)
13 kx # QNX uses GNU C++, but need to define -shared option too, otherwise
13 kx # it will coredump.
13 kx lt_prog_compiler_pic='-fPIC -shared'
13 kx ;;
13 kx
13 kx sysv4*MP*)
13 kx if test -d /usr/nec; then
13 kx lt_prog_compiler_pic=-Kconform_pic
13 kx fi
13 kx ;;
13 kx
13 kx *)
13 kx lt_prog_compiler_pic='-fPIC'
13 kx ;;
13 kx esac
13 kx
13 kx case $cc_basename in
13 kx nvcc*) # Cuda Compiler Driver 2.2
13 kx lt_prog_compiler_wl='-Xlinker '
13 kx if test -n "$lt_prog_compiler_pic"; then
13 kx lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13 kx fi
13 kx ;;
13 kx esac
13 kx else
13 kx # PORTME Check for flag to pass linker flags through the system compiler.
13 kx case $host_os in
13 kx aix*)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx if test ia64 = "$host_cpu"; then
13 kx # AIX 5 now supports IA64 processor
13 kx lt_prog_compiler_static='-Bstatic'
13 kx else
13 kx lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13 kx fi
13 kx ;;
13 kx
13 kx darwin* | rhapsody*)
13 kx # PIC is the default on this platform
13 kx # Common symbols not allowed in MH_DYLIB files
13 kx lt_prog_compiler_pic='-fno-common'
13 kx case $cc_basename in
13 kx nagfor*)
13 kx # NAG Fortran compiler
13 kx lt_prog_compiler_wl='-Wl,-Wl,,'
13 kx lt_prog_compiler_pic='-PIC'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx mingw* | cygwin* | pw32* | os2* | cegcc*)
13 kx # This hack is so that the source file can tell whether it is being
13 kx # built for inclusion in a dll (and should export symbols for example).
13 kx lt_prog_compiler_pic='-DDLL_EXPORT'
13 kx case $host_os in
13 kx os2*)
13 kx lt_prog_compiler_static='$wl-static'
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx hpux9* | hpux10* | hpux11*)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13 kx # not for PA HP-UX.
13 kx case $host_cpu in
13 kx hppa*64*|ia64*)
13 kx # +Z the default
13 kx ;;
13 kx *)
13 kx lt_prog_compiler_pic='+Z'
13 kx ;;
13 kx esac
13 kx # Is there a better lt_prog_compiler_static that works with the bundled CC?
13 kx lt_prog_compiler_static='$wl-a ${wl}archive'
13 kx ;;
13 kx
13 kx irix5* | irix6* | nonstopux*)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx # PIC (with -KPIC) is the default.
13 kx lt_prog_compiler_static='-non_shared'
13 kx ;;
13 kx
13 kx linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13 kx case $cc_basename in
13 kx # old Intel for x86_64, which still supported -KPIC.
13 kx ecc*)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx lt_prog_compiler_pic='-KPIC'
13 kx lt_prog_compiler_static='-static'
13 kx ;;
13 kx # icc used to be incompatible with GCC.
13 kx # ICC 10 doesn't accept -KPIC any more.
13 kx icc* | ifort*)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx lt_prog_compiler_pic='-fPIC'
13 kx lt_prog_compiler_static='-static'
13 kx ;;
13 kx # Lahey Fortran 8.1.
13 kx lf95*)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx lt_prog_compiler_pic='--shared'
13 kx lt_prog_compiler_static='--static'
13 kx ;;
13 kx nagfor*)
13 kx # NAG Fortran compiler
13 kx lt_prog_compiler_wl='-Wl,-Wl,,'
13 kx lt_prog_compiler_pic='-PIC'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx ;;
13 kx tcc*)
13 kx # Fabrice Bellard et al's Tiny C Compiler
13 kx lt_prog_compiler_wl='-Wl,'
13 kx lt_prog_compiler_pic='-fPIC'
13 kx lt_prog_compiler_static='-static'
13 kx ;;
13 kx pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13 kx # Portland Group compilers (*not* the Pentium gcc compiler,
13 kx # which looks to be a dead project)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx lt_prog_compiler_pic='-fpic'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx ;;
13 kx ccc*)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx # All Alpha code is PIC.
13 kx lt_prog_compiler_static='-non_shared'
13 kx ;;
13 kx xl* | bgxl* | bgf* | mpixl*)
13 kx # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13 kx lt_prog_compiler_wl='-Wl,'
13 kx lt_prog_compiler_pic='-qpic'
13 kx lt_prog_compiler_static='-qstaticlink'
13 kx ;;
13 kx *)
13 kx case `$CC -V 2>&1 | sed 5q` in
13 kx *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13 kx # Sun Fortran 8.3 passes all unrecognized flags to the linker
13 kx lt_prog_compiler_pic='-KPIC'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx lt_prog_compiler_wl=''
13 kx ;;
13 kx *Sun\ F* | *Sun*Fortran*)
13 kx lt_prog_compiler_pic='-KPIC'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx lt_prog_compiler_wl='-Qoption ld '
13 kx ;;
13 kx *Sun\ C*)
13 kx # Sun C 5.9
13 kx lt_prog_compiler_pic='-KPIC'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx lt_prog_compiler_wl='-Wl,'
13 kx ;;
13 kx *Intel*\ [CF]*Compiler*)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx lt_prog_compiler_pic='-fPIC'
13 kx lt_prog_compiler_static='-static'
13 kx ;;
13 kx *Portland\ Group*)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx lt_prog_compiler_pic='-fpic'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx ;;
13 kx esac
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx newsos6)
13 kx lt_prog_compiler_pic='-KPIC'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx ;;
13 kx
13 kx *nto* | *qnx*)
13 kx # QNX uses GNU C++, but need to define -shared option too, otherwise
13 kx # it will coredump.
13 kx lt_prog_compiler_pic='-fPIC -shared'
13 kx ;;
13 kx
13 kx osf3* | osf4* | osf5*)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx # All OSF/1 code is PIC.
13 kx lt_prog_compiler_static='-non_shared'
13 kx ;;
13 kx
13 kx rdos*)
13 kx lt_prog_compiler_static='-non_shared'
13 kx ;;
13 kx
13 kx solaris*)
13 kx lt_prog_compiler_pic='-KPIC'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx case $cc_basename in
13 kx f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13 kx lt_prog_compiler_wl='-Qoption ld ';;
13 kx *)
13 kx lt_prog_compiler_wl='-Wl,';;
13 kx esac
13 kx ;;
13 kx
13 kx sunos4*)
13 kx lt_prog_compiler_wl='-Qoption ld '
13 kx lt_prog_compiler_pic='-PIC'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx ;;
13 kx
13 kx sysv4 | sysv4.2uw2* | sysv4.3*)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx lt_prog_compiler_pic='-KPIC'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx ;;
13 kx
13 kx sysv4*MP*)
13 kx if test -d /usr/nec; then
13 kx lt_prog_compiler_pic='-Kconform_pic'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx fi
13 kx ;;
13 kx
13 kx sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx lt_prog_compiler_pic='-KPIC'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx ;;
13 kx
13 kx unicos*)
13 kx lt_prog_compiler_wl='-Wl,'
13 kx lt_prog_compiler_can_build_shared=no
13 kx ;;
13 kx
13 kx uts4*)
13 kx lt_prog_compiler_pic='-pic'
13 kx lt_prog_compiler_static='-Bstatic'
13 kx ;;
13 kx
13 kx *)
13 kx lt_prog_compiler_can_build_shared=no
13 kx ;;
13 kx esac
13 kx fi
13 kx
13 kx case $host_os in
13 kx # For platforms that do not support PIC, -DPIC is meaningless:
13 kx *djgpp*)
13 kx lt_prog_compiler_pic=
13 kx ;;
13 kx *)
13 kx lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13 kx ;;
13 kx esac
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13 kx $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13 kx if ${lt_cv_prog_compiler_pic+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13 kx $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13 kx lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13 kx
13 kx #
13 kx # Check to make sure the PIC flag actually works.
13 kx #
13 kx if test -n "$lt_prog_compiler_pic"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13 kx $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13 kx if ${lt_cv_prog_compiler_pic_works+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_prog_compiler_pic_works=no
13 kx ac_outfile=conftest.$ac_objext
13 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13 kx lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13 kx # Insert the option either (1) after the last *FLAGS variable, or
13 kx # (2) before a word containing "conftest.", or (3) at the end.
13 kx # Note that $ac_compile itself does not contain backslashes and begins
13 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
13 kx # The option is referenced via a variable to avoid confusing sed.
13 kx lt_compile=`echo "$ac_compile" | $SED \
13 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13 kx -e 's:$: $lt_compiler_flag:'`
13 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13 kx (eval "$lt_compile" 2>conftest.err)
13 kx ac_status=$?
13 kx cat conftest.err >&5
13 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
13 kx if (exit $ac_status) && test -s "$ac_outfile"; then
13 kx # The compiler can only warn and ignore the option if not recognized
13 kx # So say no if there are warnings other than the usual output.
13 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13 kx lt_cv_prog_compiler_pic_works=yes
13 kx fi
13 kx fi
13 kx $RM conftest*
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13 kx $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13 kx
13 kx if test yes = "$lt_cv_prog_compiler_pic_works"; then
13 kx case $lt_prog_compiler_pic in
13 kx "" | " "*) ;;
13 kx *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13 kx esac
13 kx else
13 kx lt_prog_compiler_pic=
13 kx lt_prog_compiler_can_build_shared=no
13 kx fi
13 kx
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx #
13 kx # Check to make sure the static flag actually works.
13 kx #
13 kx wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13 kx $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13 kx if ${lt_cv_prog_compiler_static_works+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_prog_compiler_static_works=no
13 kx save_LDFLAGS=$LDFLAGS
13 kx LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13 kx echo "$lt_simple_link_test_code" > conftest.$ac_ext
13 kx if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13 kx # The linker can only warn and ignore the option if not recognized
13 kx # So say no if there are warnings
13 kx if test -s conftest.err; then
13 kx # Append any errors to the config.log.
13 kx cat conftest.err 1>&5
13 kx $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13 kx if diff conftest.exp conftest.er2 >/dev/null; then
13 kx lt_cv_prog_compiler_static_works=yes
13 kx fi
13 kx else
13 kx lt_cv_prog_compiler_static_works=yes
13 kx fi
13 kx fi
13 kx $RM -r conftest*
13 kx LDFLAGS=$save_LDFLAGS
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13 kx $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13 kx
13 kx if test yes = "$lt_cv_prog_compiler_static_works"; then
13 kx :
13 kx else
13 kx lt_prog_compiler_static=
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13 kx $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13 kx if ${lt_cv_prog_compiler_c_o+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_prog_compiler_c_o=no
13 kx $RM -r conftest 2>/dev/null
13 kx mkdir conftest
13 kx cd conftest
13 kx mkdir out
13 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13 kx
13 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
13 kx # Insert the option either (1) after the last *FLAGS variable, or
13 kx # (2) before a word containing "conftest.", or (3) at the end.
13 kx # Note that $ac_compile itself does not contain backslashes and begins
13 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
13 kx lt_compile=`echo "$ac_compile" | $SED \
13 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13 kx -e 's:$: $lt_compiler_flag:'`
13 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13 kx (eval "$lt_compile" 2>out/conftest.err)
13 kx ac_status=$?
13 kx cat out/conftest.err >&5
13 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
13 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
13 kx then
13 kx # The compiler can only warn and ignore the option if not recognized
13 kx # So say no if there are warnings
13 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13 kx lt_cv_prog_compiler_c_o=yes
13 kx fi
13 kx fi
13 kx chmod u+w . 2>&5
13 kx $RM conftest*
13 kx # SGI C++ compiler will create directory out/ii_files/ for
13 kx # template instantiation
13 kx test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13 kx $RM out/* && rmdir out
13 kx cd ..
13 kx $RM -r conftest
13 kx $RM conftest*
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13 kx $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13 kx $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13 kx if ${lt_cv_prog_compiler_c_o+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_prog_compiler_c_o=no
13 kx $RM -r conftest 2>/dev/null
13 kx mkdir conftest
13 kx cd conftest
13 kx mkdir out
13 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13 kx
13 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
13 kx # Insert the option either (1) after the last *FLAGS variable, or
13 kx # (2) before a word containing "conftest.", or (3) at the end.
13 kx # Note that $ac_compile itself does not contain backslashes and begins
13 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
13 kx lt_compile=`echo "$ac_compile" | $SED \
13 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13 kx -e 's:$: $lt_compiler_flag:'`
13 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13 kx (eval "$lt_compile" 2>out/conftest.err)
13 kx ac_status=$?
13 kx cat out/conftest.err >&5
13 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
13 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
13 kx then
13 kx # The compiler can only warn and ignore the option if not recognized
13 kx # So say no if there are warnings
13 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13 kx lt_cv_prog_compiler_c_o=yes
13 kx fi
13 kx fi
13 kx chmod u+w . 2>&5
13 kx $RM conftest*
13 kx # SGI C++ compiler will create directory out/ii_files/ for
13 kx # template instantiation
13 kx test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13 kx $RM out/* && rmdir out
13 kx cd ..
13 kx $RM -r conftest
13 kx $RM conftest*
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13 kx $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13 kx
13 kx
13 kx
13 kx
13 kx hard_links=nottested
13 kx if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13 kx # do not overwrite the value of need_locks provided by the user
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13 kx $as_echo_n "checking if we can lock with hard links... " >&6; }
13 kx hard_links=yes
13 kx $RM conftest*
13 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
13 kx touch conftest.a
13 kx ln conftest.a conftest.b 2>&5 || hard_links=no
13 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13 kx $as_echo "$hard_links" >&6; }
13 kx if test no = "$hard_links"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13 kx $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13 kx need_locks=warn
13 kx fi
13 kx else
13 kx need_locks=no
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13 kx $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13 kx
13 kx runpath_var=
13 kx allow_undefined_flag=
13 kx always_export_symbols=no
13 kx archive_cmds=
13 kx archive_expsym_cmds=
13 kx compiler_needs_object=no
13 kx enable_shared_with_static_runtimes=no
13 kx export_dynamic_flag_spec=
13 kx export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13 kx hardcode_automatic=no
13 kx hardcode_direct=no
13 kx hardcode_direct_absolute=no
13 kx hardcode_libdir_flag_spec=
13 kx hardcode_libdir_separator=
13 kx hardcode_minus_L=no
13 kx hardcode_shlibpath_var=unsupported
13 kx inherit_rpath=no
13 kx link_all_deplibs=unknown
13 kx module_cmds=
13 kx module_expsym_cmds=
13 kx old_archive_from_new_cmds=
13 kx old_archive_from_expsyms_cmds=
13 kx thread_safe_flag_spec=
13 kx whole_archive_flag_spec=
13 kx # include_expsyms should be a list of space-separated symbols to be *always*
13 kx # included in the symbol list
13 kx include_expsyms=
13 kx # exclude_expsyms can be an extended regexp of symbols to exclude
13 kx # it will be wrapped by ' (' and ')$', so one must not match beginning or
13 kx # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13 kx # as well as any symbol that contains 'd'.
13 kx exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13 kx # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13 kx # platforms (ab)use it in PIC code, but their linkers get confused if
13 kx # the symbol is explicitly referenced. Since portable code cannot
13 kx # rely on this symbol name, it's probably fine to never include it in
13 kx # preloaded symbol tables.
13 kx # Exclude shared library initialization/finalization symbols.
13 kx extract_expsyms_cmds=
13 kx
13 kx case $host_os in
13 kx cygwin* | mingw* | pw32* | cegcc*)
13 kx # FIXME: the MSVC++ port hasn't been tested in a loooong time
13 kx # When not using gcc, we currently assume that we are using
13 kx # Microsoft Visual C++.
13 kx if test yes != "$GCC"; then
13 kx with_gnu_ld=no
13 kx fi
13 kx ;;
13 kx interix*)
13 kx # we just hope/assume this is gcc and not c89 (= MSVC++)
13 kx with_gnu_ld=yes
13 kx ;;
13 kx openbsd* | bitrig*)
13 kx with_gnu_ld=no
13 kx ;;
13 kx esac
13 kx
13 kx ld_shlibs=yes
13 kx
13 kx # On some targets, GNU ld is compatible enough with the native linker
13 kx # that we're better off using the native interface for both.
13 kx lt_use_gnu_ld_interface=no
13 kx if test yes = "$with_gnu_ld"; then
13 kx case $host_os in
13 kx aix*)
13 kx # The AIX port of GNU ld has always aspired to compatibility
13 kx # with the native linker. However, as the warning in the GNU ld
13 kx # block says, versions before 2.19.5* couldn't really create working
13 kx # shared libraries, regardless of the interface used.
13 kx case `$LD -v 2>&1` in
13 kx *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13 kx *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13 kx *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13 kx *)
13 kx lt_use_gnu_ld_interface=yes
13 kx ;;
13 kx esac
13 kx ;;
13 kx *)
13 kx lt_use_gnu_ld_interface=yes
13 kx ;;
13 kx esac
13 kx fi
13 kx
13 kx if test yes = "$lt_use_gnu_ld_interface"; then
13 kx # If archive_cmds runs LD, not CC, wlarc should be empty
13 kx wlarc='$wl'
13 kx
13 kx # Set some defaults for GNU ld with shared library support. These
13 kx # are reset later if shared libraries are not supported. Putting them
13 kx # here allows them to be overridden if necessary.
13 kx runpath_var=LD_RUN_PATH
13 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13 kx export_dynamic_flag_spec='$wl--export-dynamic'
13 kx # ancient GNU ld didn't support --whole-archive et. al.
13 kx if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13 kx whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13 kx else
13 kx whole_archive_flag_spec=
13 kx fi
13 kx supports_anon_versioning=no
13 kx case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
13 kx *GNU\ gold*) supports_anon_versioning=yes ;;
13 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13 kx *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13 kx *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13 kx *\ 2.11.*) ;; # other 2.11 versions
13 kx *) supports_anon_versioning=yes ;;
13 kx esac
13 kx
13 kx # See if GNU ld supports shared libraries.
13 kx case $host_os in
13 kx aix[3-9]*)
13 kx # On AIX/PPC, the GNU linker is very broken
13 kx if test ia64 != "$host_cpu"; then
13 kx ld_shlibs=no
13 kx cat <<_LT_EOF 1>&2
13 kx
13 kx *** Warning: the GNU linker, at least up to release 2.19, is reported
13 kx *** to be unable to reliably create shared libraries on AIX.
13 kx *** Therefore, libtool is disabling shared libraries support. If you
13 kx *** really care for shared libraries, you may want to install binutils
13 kx *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13 kx *** You will then need to restart the configuration process.
13 kx
13 kx _LT_EOF
13 kx fi
13 kx ;;
13 kx
13 kx amigaos*)
13 kx case $host_cpu in
13 kx powerpc)
13 kx # see comment about AmigaOS4 .so support
13 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13 kx archive_expsym_cmds=''
13 kx ;;
13 kx m68k)
13 kx 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)'
13 kx hardcode_libdir_flag_spec='-L$libdir'
13 kx hardcode_minus_L=yes
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx beos*)
13 kx if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13 kx allow_undefined_flag=unsupported
13 kx # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13 kx # support --undefined. This deserves some investigation. FIXME
13 kx archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13 kx else
13 kx ld_shlibs=no
13 kx fi
13 kx ;;
13 kx
13 kx cygwin* | mingw* | pw32* | cegcc*)
13 kx # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13 kx # as there is no search path for DLLs.
13 kx hardcode_libdir_flag_spec='-L$libdir'
13 kx export_dynamic_flag_spec='$wl--export-all-symbols'
13 kx allow_undefined_flag=unsupported
13 kx always_export_symbols=no
13 kx enable_shared_with_static_runtimes=yes
13 kx 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'
13 kx exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13 kx
13 kx if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13 kx # If the export-symbols file already is a .def file, use it as
13 kx # is; otherwise, prepend EXPORTS...
13 kx archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13 kx cp $export_symbols $output_objdir/$soname.def;
13 kx else
13 kx echo EXPORTS > $output_objdir/$soname.def;
13 kx cat $export_symbols >> $output_objdir/$soname.def;
13 kx fi~
13 kx $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13 kx else
13 kx ld_shlibs=no
13 kx fi
13 kx ;;
13 kx
13 kx haiku*)
13 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13 kx link_all_deplibs=yes
13 kx ;;
13 kx
13 kx os2*)
13 kx hardcode_libdir_flag_spec='-L$libdir'
13 kx hardcode_minus_L=yes
13 kx allow_undefined_flag=unsupported
13 kx shrext_cmds=.dll
13 kx archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
13 kx emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13 kx emximp -o $lib $output_objdir/$libname.def'
13 kx archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
13 kx prefix_cmds="$SED"~
13 kx if test EXPORTS = "`$SED 1q $export_symbols`"; then
13 kx prefix_cmds="$prefix_cmds -e 1d";
13 kx fi~
13 kx prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13 kx cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13 kx emximp -o $lib $output_objdir/$libname.def'
13 kx old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13 kx enable_shared_with_static_runtimes=yes
13 kx ;;
13 kx
13 kx interix[3-9]*)
13 kx hardcode_direct=no
13 kx hardcode_shlibpath_var=no
13 kx hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13 kx export_dynamic_flag_spec='$wl-E'
13 kx # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13 kx # Instead, shared libraries are loaded at an image base (0x10000000 by
13 kx # default) and relocated if they conflict, which is a slow very memory
13 kx # consuming and fragmenting process. To avoid this, we pick a random,
13 kx # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13 kx # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13 kx archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13 kx 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'
13 kx ;;
13 kx
13 kx gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13 kx tmp_diet=no
13 kx if test linux-dietlibc = "$host_os"; then
13 kx case $cc_basename in
13 kx diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13 kx esac
13 kx fi
13 kx if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13 kx && test no = "$tmp_diet"
13 kx then
13 kx tmp_addflag=' $pic_flag'
13 kx tmp_sharedflag='-shared'
13 kx case $cc_basename,$host_cpu in
13 kx pgcc*) # Portland Group C compiler
13 kx 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'
13 kx tmp_addflag=' $pic_flag'
13 kx ;;
13 kx pgf77* | pgf90* | pgf95* | pgfortran*)
13 kx # Portland Group f77 and f90 compilers
13 kx 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'
13 kx tmp_addflag=' $pic_flag -Mnomain' ;;
13 kx ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13 kx tmp_addflag=' -i_dynamic' ;;
13 kx efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13 kx tmp_addflag=' -i_dynamic -nofor_main' ;;
13 kx ifc* | ifort*) # Intel Fortran compiler
13 kx tmp_addflag=' -nofor_main' ;;
13 kx lf95*) # Lahey Fortran 8.1
13 kx whole_archive_flag_spec=
13 kx tmp_sharedflag='--shared' ;;
13 kx nagfor*) # NAGFOR 5.3
13 kx tmp_sharedflag='-Wl,-shared' ;;
13 kx xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13 kx tmp_sharedflag='-qmkshrobj'
13 kx tmp_addflag= ;;
13 kx nvcc*) # Cuda Compiler Driver 2.2
13 kx 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'
13 kx compiler_needs_object=yes
13 kx ;;
13 kx esac
13 kx case `$CC -V 2>&1 | sed 5q` in
13 kx *Sun\ C*) # Sun C 5.9
13 kx 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'
13 kx compiler_needs_object=yes
13 kx tmp_sharedflag='-G' ;;
13 kx *Sun\ F*) # Sun Fortran 8.3
13 kx tmp_sharedflag='-G' ;;
13 kx esac
13 kx archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13 kx
13 kx if test yes = "$supports_anon_versioning"; then
13 kx archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13 kx cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13 kx echo "local: *; };" >> $output_objdir/$libname.ver~
13 kx $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13 kx fi
13 kx
13 kx case $cc_basename in
13 kx tcc*)
13 kx export_dynamic_flag_spec='-rdynamic'
13 kx ;;
13 kx xlf* | bgf* | bgxlf* | mpixlf*)
13 kx # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13 kx whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13 kx archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13 kx if test yes = "$supports_anon_versioning"; then
13 kx archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13 kx cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13 kx echo "local: *; };" >> $output_objdir/$libname.ver~
13 kx $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13 kx fi
13 kx ;;
13 kx esac
13 kx else
13 kx ld_shlibs=no
13 kx fi
13 kx ;;
13 kx
13 kx netbsd*)
13 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13 kx archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13 kx wlarc=
13 kx else
13 kx archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13 kx archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13 kx fi
13 kx ;;
13 kx
13 kx solaris*)
13 kx if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13 kx ld_shlibs=no
13 kx cat <<_LT_EOF 1>&2
13 kx
13 kx *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13 kx *** create shared libraries on Solaris systems. Therefore, libtool
13 kx *** is disabling shared libraries support. We urge you to upgrade GNU
13 kx *** binutils to release 2.9.1 or newer. Another option is to modify
13 kx *** your PATH or compiler configuration so that the native linker is
13 kx *** used, and then restart.
13 kx
13 kx _LT_EOF
13 kx elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13 kx archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13 kx archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13 kx else
13 kx ld_shlibs=no
13 kx fi
13 kx ;;
13 kx
13 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13 kx case `$LD -v 2>&1` in
13 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13 kx ld_shlibs=no
13 kx cat <<_LT_EOF 1>&2
13 kx
13 kx *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13 kx *** reliably create shared libraries on SCO systems. Therefore, libtool
13 kx *** is disabling shared libraries support. We urge you to upgrade GNU
13 kx *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13 kx *** your PATH or compiler configuration so that the native linker is
13 kx *** used, and then restart.
13 kx
13 kx _LT_EOF
13 kx ;;
13 kx *)
13 kx # For security reasons, it is highly recommended that you always
13 kx # use absolute paths for naming shared libraries, and exclude the
13 kx # DT_RUNPATH tag from executables and libraries. But doing so
13 kx # requires that you compile everything twice, which is a pain.
13 kx if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13 kx archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13 kx else
13 kx ld_shlibs=no
13 kx fi
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx sunos4*)
13 kx archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13 kx wlarc=
13 kx hardcode_direct=yes
13 kx hardcode_shlibpath_var=no
13 kx ;;
13 kx
13 kx *)
13 kx if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13 kx archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13 kx archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13 kx else
13 kx ld_shlibs=no
13 kx fi
13 kx ;;
13 kx esac
13 kx
13 kx if test no = "$ld_shlibs"; then
13 kx runpath_var=
13 kx hardcode_libdir_flag_spec=
13 kx export_dynamic_flag_spec=
13 kx whole_archive_flag_spec=
13 kx fi
13 kx else
13 kx # PORTME fill in a description of your system's linker (not GNU ld)
13 kx case $host_os in
13 kx aix3*)
13 kx allow_undefined_flag=unsupported
13 kx always_export_symbols=yes
13 kx 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'
13 kx # Note: this linker hardcodes the directories in LIBPATH if there
13 kx # are no directories specified by -L.
13 kx hardcode_minus_L=yes
13 kx if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13 kx # Neither direct hardcoding nor static linking is supported with a
13 kx # broken collect2.
13 kx hardcode_direct=unsupported
13 kx fi
13 kx ;;
13 kx
13 kx aix[4-9]*)
13 kx if test ia64 = "$host_cpu"; then
13 kx # On IA64, the linker does run time linking by default, so we don't
13 kx # have to do anything special.
13 kx aix_use_runtimelinking=no
13 kx exp_sym_flag='-Bexport'
13 kx no_entry_flag=
13 kx else
13 kx # If we're using GNU nm, then we don't want the "-C" option.
13 kx # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13 kx # Without the "-l" option, or with the "-B" option, AIX nm treats
13 kx # weak defined symbols like other global defined symbols, whereas
13 kx # GNU nm marks them as "W".
13 kx # While the 'weak' keyword is ignored in the Export File, we need
13 kx # it in the Import File for the 'aix-soname' feature, so we have
13 kx # to replace the "-B" option with "-P" for AIX nm.
13 kx if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13 kx 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'
13 kx else
13 kx 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'
13 kx fi
13 kx aix_use_runtimelinking=no
13 kx
13 kx # Test if we are trying to use run time linking or normal
13 kx # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13 kx # have runtime linking enabled, and use it for executables.
13 kx # For shared libraries, we enable/disable runtime linking
13 kx # depending on the kind of the shared library created -
13 kx # when "with_aix_soname,aix_use_runtimelinking" is:
13 kx # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13 kx # "aix,yes" lib.so shared, rtl:yes, for executables
13 kx # lib.a static archive
13 kx # "both,no" lib.so.V(shr.o) shared, rtl:yes
13 kx # lib.a(lib.so.V) shared, rtl:no, for executables
13 kx # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13 kx # lib.a(lib.so.V) shared, rtl:no
13 kx # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13 kx # lib.a static archive
13 kx case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13 kx for ld_flag in $LDFLAGS; do
13 kx if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13 kx aix_use_runtimelinking=yes
13 kx break
13 kx fi
13 kx done
13 kx if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13 kx # With aix-soname=svr4, we create the lib.so.V shared archives only,
13 kx # so we don't have lib.a shared libs to link our executables.
13 kx # We have to force runtime linking in this case.
13 kx aix_use_runtimelinking=yes
13 kx LDFLAGS="$LDFLAGS -Wl,-brtl"
13 kx fi
13 kx ;;
13 kx esac
13 kx
13 kx exp_sym_flag='-bexport'
13 kx no_entry_flag='-bnoentry'
13 kx fi
13 kx
13 kx # When large executables or shared objects are built, AIX ld can
13 kx # have problems creating the table of contents. If linking a library
13 kx # or program results in "error TOC overflow" add -mminimal-toc to
13 kx # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13 kx # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13 kx
13 kx archive_cmds=''
13 kx hardcode_direct=yes
13 kx hardcode_direct_absolute=yes
13 kx hardcode_libdir_separator=':'
13 kx link_all_deplibs=yes
13 kx file_list_spec='$wl-f,'
13 kx case $with_aix_soname,$aix_use_runtimelinking in
13 kx aix,*) ;; # traditional, no import file
13 kx svr4,* | *,yes) # use import file
13 kx # The Import File defines what to hardcode.
13 kx hardcode_direct=no
13 kx hardcode_direct_absolute=no
13 kx ;;
13 kx esac
13 kx
13 kx if test yes = "$GCC"; then
13 kx case $host_os in aix4.[012]|aix4.[012].*)
13 kx # We only want to do this on AIX 4.2 and lower, the check
13 kx # below for broken collect2 doesn't work under 4.3+
13 kx collect2name=`$CC -print-prog-name=collect2`
13 kx if test -f "$collect2name" &&
13 kx strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13 kx then
13 kx # We have reworked collect2
13 kx :
13 kx else
13 kx # We have old collect2
13 kx hardcode_direct=unsupported
13 kx # It fails to find uninstalled libraries when the uninstalled
13 kx # path is not listed in the libpath. Setting hardcode_minus_L
13 kx # to unsupported forces relinking
13 kx hardcode_minus_L=yes
13 kx hardcode_libdir_flag_spec='-L$libdir'
13 kx hardcode_libdir_separator=
13 kx fi
13 kx ;;
13 kx esac
13 kx shared_flag='-shared'
13 kx if test yes = "$aix_use_runtimelinking"; then
13 kx shared_flag="$shared_flag "'$wl-G'
13 kx fi
13 kx # Need to ensure runtime linking is disabled for the traditional
13 kx # shared library, or the linker may eventually find shared libraries
13 kx # /with/ Import File - we do not want to mix them.
13 kx shared_flag_aix='-shared'
13 kx shared_flag_svr4='-shared $wl-G'
13 kx else
13 kx # not using gcc
13 kx if test ia64 = "$host_cpu"; then
13 kx # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13 kx # chokes on -Wl,-G. The following line is correct:
13 kx shared_flag='-G'
13 kx else
13 kx if test yes = "$aix_use_runtimelinking"; then
13 kx shared_flag='$wl-G'
13 kx else
13 kx shared_flag='$wl-bM:SRE'
13 kx fi
13 kx shared_flag_aix='$wl-bM:SRE'
13 kx shared_flag_svr4='$wl-G'
13 kx fi
13 kx fi
13 kx
13 kx export_dynamic_flag_spec='$wl-bexpall'
13 kx # It seems that -bexpall does not export symbols beginning with
13 kx # underscore (_), so it is better to generate a list of symbols to export.
13 kx always_export_symbols=yes
13 kx if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13 kx # Warning - without using the other runtime loading flags (-brtl),
13 kx # -berok will link without error, but may produce a broken library.
13 kx allow_undefined_flag='-berok'
13 kx # Determine the default libpath from the value encoded in an
13 kx # empty executable.
13 kx if test set = "${lt_cv_aix_libpath+set}"; then
13 kx aix_libpath=$lt_cv_aix_libpath
13 kx else
13 kx if ${lt_cv_aix_libpath_+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx
13 kx lt_aix_libpath_sed='
13 kx /Import File Strings/,/^$/ {
13 kx /^0/ {
13 kx s/^0 *\([^ ]*\) *$/\1/
13 kx p
13 kx }
13 kx }'
13 kx lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13 kx # Check for a 64-bit object if we didn't find anything.
13 kx if test -z "$lt_cv_aix_libpath_"; then
13 kx lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13 kx fi
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx if test -z "$lt_cv_aix_libpath_"; then
13 kx lt_cv_aix_libpath_=/usr/lib:/lib
13 kx fi
13 kx
13 kx fi
13 kx
13 kx aix_libpath=$lt_cv_aix_libpath_
13 kx fi
13 kx
13 kx hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13 kx 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
13 kx else
13 kx if test ia64 = "$host_cpu"; then
13 kx hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13 kx allow_undefined_flag="-z nodefs"
13 kx 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"
13 kx else
13 kx # Determine the default libpath from the value encoded in an
13 kx # empty executable.
13 kx if test set = "${lt_cv_aix_libpath+set}"; then
13 kx aix_libpath=$lt_cv_aix_libpath
13 kx else
13 kx if ${lt_cv_aix_libpath_+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx
13 kx lt_aix_libpath_sed='
13 kx /Import File Strings/,/^$/ {
13 kx /^0/ {
13 kx s/^0 *\([^ ]*\) *$/\1/
13 kx p
13 kx }
13 kx }'
13 kx lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13 kx # Check for a 64-bit object if we didn't find anything.
13 kx if test -z "$lt_cv_aix_libpath_"; then
13 kx lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13 kx fi
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx if test -z "$lt_cv_aix_libpath_"; then
13 kx lt_cv_aix_libpath_=/usr/lib:/lib
13 kx fi
13 kx
13 kx fi
13 kx
13 kx aix_libpath=$lt_cv_aix_libpath_
13 kx fi
13 kx
13 kx hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13 kx # Warning - without using the other run time loading flags,
13 kx # -berok will link without error, but may produce a broken library.
13 kx no_undefined_flag=' $wl-bernotok'
13 kx allow_undefined_flag=' $wl-berok'
13 kx if test yes = "$with_gnu_ld"; then
13 kx # We only use this code for GNU lds that support --whole-archive.
13 kx whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13 kx else
13 kx # Exported symbols can be pulled into shared objects from archives
13 kx whole_archive_flag_spec='$convenience'
13 kx fi
13 kx archive_cmds_need_lc=yes
13 kx archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13 kx # -brtl affects multiple linker settings, -berok does not and is overridden later
13 kx compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13 kx if test svr4 != "$with_aix_soname"; then
13 kx # This is similar to how AIX traditionally builds its shared libraries.
13 kx 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'
13 kx fi
13 kx if test aix != "$with_aix_soname"; then
13 kx 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'
13 kx else
13 kx # used by -dlpreopen to get the symbols
13 kx archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13 kx fi
13 kx archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13 kx fi
13 kx fi
13 kx ;;
13 kx
13 kx amigaos*)
13 kx case $host_cpu in
13 kx powerpc)
13 kx # see comment about AmigaOS4 .so support
13 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13 kx archive_expsym_cmds=''
13 kx ;;
13 kx m68k)
13 kx 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)'
13 kx hardcode_libdir_flag_spec='-L$libdir'
13 kx hardcode_minus_L=yes
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx bsdi[45]*)
13 kx export_dynamic_flag_spec=-rdynamic
13 kx ;;
13 kx
13 kx cygwin* | mingw* | pw32* | cegcc*)
13 kx # When not using gcc, we currently assume that we are using
13 kx # Microsoft Visual C++.
13 kx # hardcode_libdir_flag_spec is actually meaningless, as there is
13 kx # no search path for DLLs.
13 kx case $cc_basename in
13 kx cl*)
13 kx # Native MSVC
13 kx hardcode_libdir_flag_spec=' '
13 kx allow_undefined_flag=unsupported
13 kx always_export_symbols=yes
13 kx file_list_spec='@'
13 kx # Tell ltmain to make .lib files, not .a files.
13 kx libext=lib
13 kx # Tell ltmain to make .dll files, not .so files.
13 kx shrext_cmds=.dll
13 kx # FIXME: Setting linknames here is a bad hack.
13 kx archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13 kx archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13 kx cp "$export_symbols" "$output_objdir/$soname.def";
13 kx echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13 kx else
13 kx $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13 kx fi~
13 kx $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13 kx linknames='
13 kx # The linker will not automatically build a static lib if we build a DLL.
13 kx # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13 kx enable_shared_with_static_runtimes=yes
13 kx exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13 kx export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13 kx # Don't use ranlib
13 kx old_postinstall_cmds='chmod 644 $oldlib'
13 kx postlink_cmds='lt_outputfile="@OUTPUT@"~
13 kx lt_tool_outputfile="@TOOL_OUTPUT@"~
13 kx case $lt_outputfile in
13 kx *.exe|*.EXE) ;;
13 kx *)
13 kx lt_outputfile=$lt_outputfile.exe
13 kx lt_tool_outputfile=$lt_tool_outputfile.exe
13 kx ;;
13 kx esac~
13 kx if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13 kx $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13 kx $RM "$lt_outputfile.manifest";
13 kx fi'
13 kx ;;
13 kx *)
13 kx # Assume MSVC wrapper
13 kx hardcode_libdir_flag_spec=' '
13 kx allow_undefined_flag=unsupported
13 kx # Tell ltmain to make .lib files, not .a files.
13 kx libext=lib
13 kx # Tell ltmain to make .dll files, not .so files.
13 kx shrext_cmds=.dll
13 kx # FIXME: Setting linknames here is a bad hack.
13 kx archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13 kx # The linker will automatically build a .lib file if we build a DLL.
13 kx old_archive_from_new_cmds='true'
13 kx # FIXME: Should let the user specify the lib program.
13 kx old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13 kx enable_shared_with_static_runtimes=yes
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx darwin* | rhapsody*)
13 kx
13 kx
13 kx archive_cmds_need_lc=no
13 kx hardcode_direct=no
13 kx hardcode_automatic=yes
13 kx hardcode_shlibpath_var=unsupported
13 kx if test yes = "$lt_cv_ld_force_load"; then
13 kx 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\"`'
13 kx
13 kx else
13 kx whole_archive_flag_spec=''
13 kx fi
13 kx link_all_deplibs=yes
13 kx allow_undefined_flag=$_lt_dar_allow_undefined
13 kx case $cc_basename in
13 kx ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13 kx *) _lt_dar_can_shared=$GCC ;;
13 kx esac
13 kx if test yes = "$_lt_dar_can_shared"; then
13 kx output_verbose_link_cmd=func_echo_all
13 kx archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13 kx module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13 kx 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"
13 kx 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"
13 kx
13 kx else
13 kx ld_shlibs=no
13 kx fi
13 kx
13 kx ;;
13 kx
13 kx dgux*)
13 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13 kx hardcode_libdir_flag_spec='-L$libdir'
13 kx hardcode_shlibpath_var=no
13 kx ;;
13 kx
13 kx # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13 kx # support. Future versions do this automatically, but an explicit c++rt0.o
13 kx # does not break anything, and helps significantly (at the cost of a little
13 kx # extra space).
13 kx freebsd2.2*)
13 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13 kx hardcode_libdir_flag_spec='-R$libdir'
13 kx hardcode_direct=yes
13 kx hardcode_shlibpath_var=no
13 kx ;;
13 kx
13 kx # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13 kx freebsd2.*)
13 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13 kx hardcode_direct=yes
13 kx hardcode_minus_L=yes
13 kx hardcode_shlibpath_var=no
13 kx ;;
13 kx
13 kx # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13 kx freebsd* | dragonfly*)
13 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13 kx hardcode_libdir_flag_spec='-R$libdir'
13 kx hardcode_direct=yes
13 kx hardcode_shlibpath_var=no
13 kx ;;
13 kx
13 kx hpux9*)
13 kx if test yes = "$GCC"; then
13 kx 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'
13 kx else
13 kx 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'
13 kx fi
13 kx hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13 kx hardcode_libdir_separator=:
13 kx hardcode_direct=yes
13 kx
13 kx # hardcode_minus_L: Not really in the search PATH,
13 kx # but as the default location of the library.
13 kx hardcode_minus_L=yes
13 kx export_dynamic_flag_spec='$wl-E'
13 kx ;;
13 kx
13 kx hpux10*)
13 kx if test yes,no = "$GCC,$with_gnu_ld"; then
13 kx archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13 kx else
13 kx archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13 kx fi
13 kx if test no = "$with_gnu_ld"; then
13 kx hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13 kx hardcode_libdir_separator=:
13 kx hardcode_direct=yes
13 kx hardcode_direct_absolute=yes
13 kx export_dynamic_flag_spec='$wl-E'
13 kx # hardcode_minus_L: Not really in the search PATH,
13 kx # but as the default location of the library.
13 kx hardcode_minus_L=yes
13 kx fi
13 kx ;;
13 kx
13 kx hpux11*)
13 kx if test yes,no = "$GCC,$with_gnu_ld"; then
13 kx case $host_cpu in
13 kx hppa*64*)
13 kx archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13 kx ;;
13 kx ia64*)
13 kx archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13 kx ;;
13 kx *)
13 kx archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13 kx ;;
13 kx esac
13 kx else
13 kx case $host_cpu in
13 kx hppa*64*)
13 kx archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13 kx ;;
13 kx ia64*)
13 kx archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13 kx ;;
13 kx *)
13 kx
13 kx # Older versions of the 11.00 compiler do not understand -b yet
13 kx # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13 kx $as_echo_n "checking if $CC understands -b... " >&6; }
13 kx if ${lt_cv_prog_compiler__b+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_prog_compiler__b=no
13 kx save_LDFLAGS=$LDFLAGS
13 kx LDFLAGS="$LDFLAGS -b"
13 kx echo "$lt_simple_link_test_code" > conftest.$ac_ext
13 kx if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13 kx # The linker can only warn and ignore the option if not recognized
13 kx # So say no if there are warnings
13 kx if test -s conftest.err; then
13 kx # Append any errors to the config.log.
13 kx cat conftest.err 1>&5
13 kx $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13 kx if diff conftest.exp conftest.er2 >/dev/null; then
13 kx lt_cv_prog_compiler__b=yes
13 kx fi
13 kx else
13 kx lt_cv_prog_compiler__b=yes
13 kx fi
13 kx fi
13 kx $RM -r conftest*
13 kx LDFLAGS=$save_LDFLAGS
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13 kx $as_echo "$lt_cv_prog_compiler__b" >&6; }
13 kx
13 kx if test yes = "$lt_cv_prog_compiler__b"; then
13 kx archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13 kx else
13 kx archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx fi
13 kx if test no = "$with_gnu_ld"; then
13 kx hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13 kx hardcode_libdir_separator=:
13 kx
13 kx case $host_cpu in
13 kx hppa*64*|ia64*)
13 kx hardcode_direct=no
13 kx hardcode_shlibpath_var=no
13 kx ;;
13 kx *)
13 kx hardcode_direct=yes
13 kx hardcode_direct_absolute=yes
13 kx export_dynamic_flag_spec='$wl-E'
13 kx
13 kx # hardcode_minus_L: Not really in the search PATH,
13 kx # but as the default location of the library.
13 kx hardcode_minus_L=yes
13 kx ;;
13 kx esac
13 kx fi
13 kx ;;
13 kx
13 kx irix5* | irix6* | nonstopux*)
13 kx if test yes = "$GCC"; then
13 kx 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'
13 kx # Try to use the -exported_symbol ld option, if it does not
13 kx # work, assume that -exports_file does not work either and
13 kx # implicitly export all symbols.
13 kx # This should be the same for all languages, so no per-tag cache variable.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13 kx $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13 kx if ${lt_cv_irix_exported_symbol+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx save_LDFLAGS=$LDFLAGS
13 kx LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx int foo (void) { return 0; }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx lt_cv_irix_exported_symbol=yes
13 kx else
13 kx lt_cv_irix_exported_symbol=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LDFLAGS=$save_LDFLAGS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13 kx $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13 kx if test yes = "$lt_cv_irix_exported_symbol"; then
13 kx 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'
13 kx fi
13 kx else
13 kx 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'
13 kx 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'
13 kx fi
13 kx archive_cmds_need_lc='no'
13 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13 kx hardcode_libdir_separator=:
13 kx inherit_rpath=yes
13 kx link_all_deplibs=yes
13 kx ;;
13 kx
13 kx linux*)
13 kx case $cc_basename in
13 kx tcc*)
13 kx # Fabrice Bellard et al's Tiny C Compiler
13 kx ld_shlibs=yes
13 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx netbsd*)
13 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13 kx else
13 kx archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13 kx fi
13 kx hardcode_libdir_flag_spec='-R$libdir'
13 kx hardcode_direct=yes
13 kx hardcode_shlibpath_var=no
13 kx ;;
13 kx
13 kx newsos6)
13 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13 kx hardcode_direct=yes
13 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13 kx hardcode_libdir_separator=:
13 kx hardcode_shlibpath_var=no
13 kx ;;
13 kx
13 kx *nto* | *qnx*)
13 kx ;;
13 kx
13 kx openbsd* | bitrig*)
13 kx if test -f /usr/libexec/ld.so; then
13 kx hardcode_direct=yes
13 kx hardcode_shlibpath_var=no
13 kx hardcode_direct_absolute=yes
13 kx if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13 kx archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13 kx hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13 kx export_dynamic_flag_spec='$wl-E'
13 kx else
13 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13 kx hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13 kx fi
13 kx else
13 kx ld_shlibs=no
13 kx fi
13 kx ;;
13 kx
13 kx os2*)
13 kx hardcode_libdir_flag_spec='-L$libdir'
13 kx hardcode_minus_L=yes
13 kx allow_undefined_flag=unsupported
13 kx shrext_cmds=.dll
13 kx archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
13 kx emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13 kx emximp -o $lib $output_objdir/$libname.def'
13 kx archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
13 kx prefix_cmds="$SED"~
13 kx if test EXPORTS = "`$SED 1q $export_symbols`"; then
13 kx prefix_cmds="$prefix_cmds -e 1d";
13 kx fi~
13 kx prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13 kx cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13 kx emximp -o $lib $output_objdir/$libname.def'
13 kx old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13 kx enable_shared_with_static_runtimes=yes
13 kx ;;
13 kx
13 kx osf3*)
13 kx if test yes = "$GCC"; then
13 kx allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13 kx 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'
13 kx else
13 kx allow_undefined_flag=' -expect_unresolved \*'
13 kx 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'
13 kx fi
13 kx archive_cmds_need_lc='no'
13 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13 kx hardcode_libdir_separator=:
13 kx ;;
13 kx
13 kx osf4* | osf5*) # as osf3* with the addition of -msym flag
13 kx if test yes = "$GCC"; then
13 kx allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13 kx 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'
13 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13 kx else
13 kx allow_undefined_flag=' -expect_unresolved \*'
13 kx 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'
13 kx 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~
13 kx $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'
13 kx
13 kx # Both c and cxx compiler support -rpath directly
13 kx hardcode_libdir_flag_spec='-rpath $libdir'
13 kx fi
13 kx archive_cmds_need_lc='no'
13 kx hardcode_libdir_separator=:
13 kx ;;
13 kx
13 kx solaris*)
13 kx no_undefined_flag=' -z defs'
13 kx if test yes = "$GCC"; then
13 kx wlarc='$wl'
13 kx archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13 kx archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13 kx $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'
13 kx else
13 kx case `$CC -V 2>&1` in
13 kx *"Compilers 5.0"*)
13 kx wlarc=''
13 kx archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13 kx archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13 kx $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13 kx ;;
13 kx *)
13 kx wlarc='$wl'
13 kx archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13 kx archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13 kx $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13 kx ;;
13 kx esac
13 kx fi
13 kx hardcode_libdir_flag_spec='-R$libdir'
13 kx hardcode_shlibpath_var=no
13 kx case $host_os in
13 kx solaris2.[0-5] | solaris2.[0-5].*) ;;
13 kx *)
13 kx # The compiler driver will combine and reorder linker options,
13 kx # but understands '-z linker_flag'. GCC discards it without '$wl',
13 kx # but is careful enough not to reorder.
13 kx # Supported since Solaris 2.6 (maybe 2.5.1?)
13 kx if test yes = "$GCC"; then
13 kx whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13 kx else
13 kx whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13 kx fi
13 kx ;;
13 kx esac
13 kx link_all_deplibs=yes
13 kx ;;
13 kx
13 kx sunos4*)
13 kx if test sequent = "$host_vendor"; then
13 kx # Use $CC to link under sequent, because it throws in some extra .o
13 kx # files that make .init and .fini sections work.
13 kx archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13 kx else
13 kx archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13 kx fi
13 kx hardcode_libdir_flag_spec='-L$libdir'
13 kx hardcode_direct=yes
13 kx hardcode_minus_L=yes
13 kx hardcode_shlibpath_var=no
13 kx ;;
13 kx
13 kx sysv4)
13 kx case $host_vendor in
13 kx sni)
13 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13 kx hardcode_direct=yes # is this really true???
13 kx ;;
13 kx siemens)
13 kx ## LD is ld it makes a PLAMLIB
13 kx ## CC just makes a GrossModule.
13 kx archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13 kx reload_cmds='$CC -r -o $output$reload_objs'
13 kx hardcode_direct=no
13 kx ;;
13 kx motorola)
13 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13 kx hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13 kx ;;
13 kx esac
13 kx runpath_var='LD_RUN_PATH'
13 kx hardcode_shlibpath_var=no
13 kx ;;
13 kx
13 kx sysv4.3*)
13 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13 kx hardcode_shlibpath_var=no
13 kx export_dynamic_flag_spec='-Bexport'
13 kx ;;
13 kx
13 kx sysv4*MP*)
13 kx if test -d /usr/nec; then
13 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13 kx hardcode_shlibpath_var=no
13 kx runpath_var=LD_RUN_PATH
13 kx hardcode_runpath_var=yes
13 kx ld_shlibs=yes
13 kx fi
13 kx ;;
13 kx
13 kx sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13 kx no_undefined_flag='$wl-z,text'
13 kx archive_cmds_need_lc=no
13 kx hardcode_shlibpath_var=no
13 kx runpath_var='LD_RUN_PATH'
13 kx
13 kx if test yes = "$GCC"; then
13 kx archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13 kx archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13 kx else
13 kx archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13 kx archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13 kx fi
13 kx ;;
13 kx
13 kx sysv5* | sco3.2v5* | sco5v6*)
13 kx # Note: We CANNOT use -z defs as we might desire, because we do not
13 kx # link with -lc, and that would cause any symbols used from libc to
13 kx # always be unresolved, which means just about no library would
13 kx # ever link correctly. If we're not using GNU ld we use -z text
13 kx # though, which does catch some bad symbols but isn't as heavy-handed
13 kx # as -z defs.
13 kx no_undefined_flag='$wl-z,text'
13 kx allow_undefined_flag='$wl-z,nodefs'
13 kx archive_cmds_need_lc=no
13 kx hardcode_shlibpath_var=no
13 kx hardcode_libdir_flag_spec='$wl-R,$libdir'
13 kx hardcode_libdir_separator=':'
13 kx link_all_deplibs=yes
13 kx export_dynamic_flag_spec='$wl-Bexport'
13 kx runpath_var='LD_RUN_PATH'
13 kx
13 kx if test yes = "$GCC"; then
13 kx archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13 kx archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13 kx else
13 kx archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13 kx archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13 kx fi
13 kx ;;
13 kx
13 kx uts4*)
13 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13 kx hardcode_libdir_flag_spec='-L$libdir'
13 kx hardcode_shlibpath_var=no
13 kx ;;
13 kx
13 kx *)
13 kx ld_shlibs=no
13 kx ;;
13 kx esac
13 kx
13 kx if test sni = "$host_vendor"; then
13 kx case $host in
13 kx sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13 kx export_dynamic_flag_spec='$wl-Blargedynsym'
13 kx ;;
13 kx esac
13 kx fi
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13 kx $as_echo "$ld_shlibs" >&6; }
13 kx test no = "$ld_shlibs" && can_build_shared=no
13 kx
13 kx with_gnu_ld=$with_gnu_ld
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx #
13 kx # Do we need to explicitly link libc?
13 kx #
13 kx case "x$archive_cmds_need_lc" in
13 kx x|xyes)
13 kx # Assume -lc should be added
13 kx archive_cmds_need_lc=yes
13 kx
13 kx if test yes,yes = "$GCC,$enable_shared"; then
13 kx case $archive_cmds in
13 kx *'~'*)
13 kx # FIXME: we may have to deal with multi-command sequences.
13 kx ;;
13 kx '$CC '*)
13 kx # Test whether the compiler implicitly links with -lc since on some
13 kx # systems, -lgcc has to come before -lc. If gcc already passes -lc
13 kx # to ld, don't add -lc before -lgcc.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13 kx $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13 kx if ${lt_cv_archive_cmds_need_lc+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx $RM conftest*
13 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13 kx
13 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13 kx (eval $ac_compile) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; } 2>conftest.err; then
13 kx soname=conftest
13 kx lib=conftest
13 kx libobjs=conftest.$ac_objext
13 kx deplibs=
13 kx wl=$lt_prog_compiler_wl
13 kx pic_flag=$lt_prog_compiler_pic
13 kx compiler_flags=-v
13 kx linker_flags=-v
13 kx verstring=
13 kx output_objdir=.
13 kx libname=conftest
13 kx lt_save_allow_undefined_flag=$allow_undefined_flag
13 kx allow_undefined_flag=
13 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13 kx (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; }
13 kx then
13 kx lt_cv_archive_cmds_need_lc=no
13 kx else
13 kx lt_cv_archive_cmds_need_lc=yes
13 kx fi
13 kx allow_undefined_flag=$lt_save_allow_undefined_flag
13 kx else
13 kx cat conftest.err 1>&5
13 kx fi
13 kx $RM conftest*
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13 kx $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13 kx archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13 kx ;;
13 kx esac
13 kx fi
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13 kx $as_echo_n "checking dynamic linker characteristics... " >&6; }
13 kx
13 kx if test yes = "$GCC"; then
13 kx case $host_os in
13 kx darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13 kx *) lt_awk_arg='/^libraries:/' ;;
13 kx esac
13 kx case $host_os in
13 kx mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13 kx *) lt_sed_strip_eq='s|=/|/|g' ;;
13 kx esac
13 kx lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13 kx case $lt_search_path_spec in
13 kx *\;*)
13 kx # if the path contains ";" then we assume it to be the separator
13 kx # otherwise default to the standard path separator (i.e. ":") - it is
13 kx # assumed that no part of a normal pathname contains ";" but that should
13 kx # okay in the real world where ";" in dirpaths is itself problematic.
13 kx lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13 kx ;;
13 kx *)
13 kx lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13 kx ;;
13 kx esac
13 kx # Ok, now we have the path, separated by spaces, we can step through it
13 kx # and add multilib dir if necessary...
13 kx lt_tmp_lt_search_path_spec=
13 kx lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13 kx # ...but if some path component already ends with the multilib dir we assume
13 kx # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13 kx case "$lt_multi_os_dir; $lt_search_path_spec " in
13 kx "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13 kx lt_multi_os_dir=
13 kx ;;
13 kx esac
13 kx for lt_sys_path in $lt_search_path_spec; do
13 kx if test -d "$lt_sys_path$lt_multi_os_dir"; then
13 kx lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13 kx elif test -n "$lt_multi_os_dir"; then
13 kx test -d "$lt_sys_path" && \
13 kx lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13 kx fi
13 kx done
13 kx lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13 kx BEGIN {RS = " "; FS = "/|\n";} {
13 kx lt_foo = "";
13 kx lt_count = 0;
13 kx for (lt_i = NF; lt_i > 0; lt_i--) {
13 kx if ($lt_i != "" && $lt_i != ".") {
13 kx if ($lt_i == "..") {
13 kx lt_count++;
13 kx } else {
13 kx if (lt_count == 0) {
13 kx lt_foo = "/" $lt_i lt_foo;
13 kx } else {
13 kx lt_count--;
13 kx }
13 kx }
13 kx }
13 kx }
13 kx if (lt_foo != "") { lt_freq[lt_foo]++; }
13 kx if (lt_freq[lt_foo] == 1) { print lt_foo; }
13 kx }'`
13 kx # AWK program above erroneously prepends '/' to C:/dos/paths
13 kx # for these hosts.
13 kx case $host_os in
13 kx mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13 kx $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13 kx esac
13 kx sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13 kx else
13 kx sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13 kx fi
13 kx library_names_spec=
13 kx libname_spec='lib$name'
13 kx soname_spec=
13 kx shrext_cmds=.so
13 kx postinstall_cmds=
13 kx postuninstall_cmds=
13 kx finish_cmds=
13 kx finish_eval=
13 kx shlibpath_var=
13 kx shlibpath_overrides_runpath=unknown
13 kx version_type=none
13 kx dynamic_linker="$host_os ld.so"
13 kx sys_lib_dlsearch_path_spec="/lib /usr/lib"
13 kx need_lib_prefix=unknown
13 kx hardcode_into_libs=no
13 kx
13 kx # when you set need_version to no, make sure it does not cause -set_version
13 kx # flags to be left without arguments
13 kx need_version=unknown
13 kx
13 kx
13 kx
13 kx case $host_os in
13 kx aix3*)
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13 kx shlibpath_var=LIBPATH
13 kx
13 kx # AIX 3 has no versioning support, so we append a major version to the name.
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx ;;
13 kx
13 kx aix[4-9]*)
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx hardcode_into_libs=yes
13 kx if test ia64 = "$host_cpu"; then
13 kx # AIX 5 supports IA64
13 kx library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx else
13 kx # With GCC up to 2.95.x, collect2 would create an import file
13 kx # for dependence libraries. The import file would start with
13 kx # the line '#! .'. This would cause the generated library to
13 kx # depend on '.', always an invalid library. This was fixed in
13 kx # development snapshots of GCC prior to 3.0.
13 kx case $host_os in
13 kx aix4 | aix4.[01] | aix4.[01].*)
13 kx if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13 kx echo ' yes '
13 kx echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13 kx :
13 kx else
13 kx can_build_shared=no
13 kx fi
13 kx ;;
13 kx esac
13 kx # Using Import Files as archive members, it is possible to support
13 kx # filename-based versioning of shared library archives on AIX. While
13 kx # this would work for both with and without runtime linking, it will
13 kx # prevent static linking of such archives. So we do filename-based
13 kx # shared library versioning with .so extension only, which is used
13 kx # when both runtime linking and shared linking is enabled.
13 kx # Unfortunately, runtime linking may impact performance, so we do
13 kx # not want this to be the default eventually. Also, we use the
13 kx # versioned .so libs for executables only if there is the -brtl
13 kx # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13 kx # To allow for filename-based versioning support, we need to create
13 kx # libNAME.so.V as an archive file, containing:
13 kx # *) an Import File, referring to the versioned filename of the
13 kx # archive as well as the shared archive member, telling the
13 kx # bitwidth (32 or 64) of that shared object, and providing the
13 kx # list of exported symbols of that shared object, eventually
13 kx # decorated with the 'weak' keyword
13 kx # *) the shared object with the F_LOADONLY flag set, to really avoid
13 kx # it being seen by the linker.
13 kx # At run time we better use the real file rather than another symlink,
13 kx # but for link time we create the symlink libNAME.so -> libNAME.so.V
13 kx
13 kx case $with_aix_soname,$aix_use_runtimelinking in
13 kx # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13 kx # soname into executable. Probably we can add versioning support to
13 kx # collect2, so additional links can be useful in future.
13 kx aix,yes) # traditional libtool
13 kx dynamic_linker='AIX unversionable lib.so'
13 kx # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13 kx # instead of lib<name>.a to let people know that these are not
13 kx # typical AIX shared libraries.
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx ;;
13 kx aix,no) # traditional AIX only
13 kx dynamic_linker='AIX lib.a(lib.so.V)'
13 kx # We preserve .a as extension for shared libraries through AIX4.2
13 kx # and later when we are not doing run time linking.
13 kx library_names_spec='$libname$release.a $libname.a'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx ;;
13 kx svr4,*) # full svr4 only
13 kx dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13 kx library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13 kx # We do not specify a path in Import Files, so LIBPATH fires.
13 kx shlibpath_overrides_runpath=yes
13 kx ;;
13 kx *,yes) # both, prefer svr4
13 kx dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13 kx library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13 kx # unpreferred sharedlib libNAME.a needs extra handling
13 kx 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"'
13 kx 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"'
13 kx # We do not specify a path in Import Files, so LIBPATH fires.
13 kx shlibpath_overrides_runpath=yes
13 kx ;;
13 kx *,no) # both, prefer aix
13 kx dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13 kx library_names_spec='$libname$release.a $libname.a'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13 kx 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)'
13 kx 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"'
13 kx ;;
13 kx esac
13 kx shlibpath_var=LIBPATH
13 kx fi
13 kx ;;
13 kx
13 kx amigaos*)
13 kx case $host_cpu in
13 kx powerpc)
13 kx # Since July 2007 AmigaOS4 officially supports .so libraries.
13 kx # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx ;;
13 kx m68k)
13 kx library_names_spec='$libname.ixlibrary $libname.a'
13 kx # Create ${libname}_ixlibrary.a entries in /sys/libs.
13 kx 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'
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx beos*)
13 kx library_names_spec='$libname$shared_ext'
13 kx dynamic_linker="$host_os ld.so"
13 kx shlibpath_var=LIBRARY_PATH
13 kx ;;
13 kx
13 kx bsdi[45]*)
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx need_version=no
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13 kx sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13 kx # the default ld.so.conf also contains /usr/contrib/lib and
13 kx # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13 kx # libtool to hard-code these into programs
13 kx ;;
13 kx
13 kx cygwin* | mingw* | pw32* | cegcc*)
13 kx version_type=windows
13 kx shrext_cmds=.dll
13 kx need_version=no
13 kx need_lib_prefix=no
13 kx
13 kx case $GCC,$cc_basename in
13 kx yes,*)
13 kx # gcc
13 kx library_names_spec='$libname.dll.a'
13 kx # DLL is installed to $(libdir)/../bin by postinstall_cmds
13 kx postinstall_cmds='base_file=`basename \$file`~
13 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13 kx dldir=$destdir/`dirname \$dlpath`~
13 kx test -d \$dldir || mkdir -p \$dldir~
13 kx $install_prog $dir/$dlname \$dldir/$dlname~
13 kx chmod a+x \$dldir/$dlname~
13 kx if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13 kx eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13 kx fi'
13 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13 kx dlpath=$dir/\$dldll~
13 kx $RM \$dlpath'
13 kx shlibpath_overrides_runpath=yes
13 kx
13 kx case $host_os in
13 kx cygwin*)
13 kx # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13 kx soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13 kx
13 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13 kx ;;
13 kx mingw* | cegcc*)
13 kx # MinGW DLLs use traditional 'lib' prefix
13 kx soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13 kx ;;
13 kx pw32*)
13 kx # pw32 DLLs use 'pw' prefix rather than 'lib'
13 kx library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13 kx ;;
13 kx esac
13 kx dynamic_linker='Win32 ld.exe'
13 kx ;;
13 kx
13 kx *,cl*)
13 kx # Native MSVC
13 kx libname_spec='$name'
13 kx soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13 kx library_names_spec='$libname.dll.lib'
13 kx
13 kx case $build_os in
13 kx mingw*)
13 kx sys_lib_search_path_spec=
13 kx lt_save_ifs=$IFS
13 kx IFS=';'
13 kx for lt_path in $LIB
13 kx do
13 kx IFS=$lt_save_ifs
13 kx # Let DOS variable expansion print the short 8.3 style file name.
13 kx lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13 kx sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13 kx done
13 kx IFS=$lt_save_ifs
13 kx # Convert to MSYS style.
13 kx sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13 kx ;;
13 kx cygwin*)
13 kx # Convert to unix form, then to dos form, then back to unix form
13 kx # but this time dos style (no spaces!) so that the unix form looks
13 kx # like /cygdrive/c/PROGRA~1:/cygdr...
13 kx sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13 kx sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13 kx sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13 kx ;;
13 kx *)
13 kx sys_lib_search_path_spec=$LIB
13 kx if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13 kx # It is most probably a Windows format PATH.
13 kx sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13 kx else
13 kx sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13 kx fi
13 kx # FIXME: find the short name or the path components, as spaces are
13 kx # common. (e.g. "Program Files" -> "PROGRA~1")
13 kx ;;
13 kx esac
13 kx
13 kx # DLL is installed to $(libdir)/../bin by postinstall_cmds
13 kx postinstall_cmds='base_file=`basename \$file`~
13 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13 kx dldir=$destdir/`dirname \$dlpath`~
13 kx test -d \$dldir || mkdir -p \$dldir~
13 kx $install_prog $dir/$dlname \$dldir/$dlname'
13 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13 kx dlpath=$dir/\$dldll~
13 kx $RM \$dlpath'
13 kx shlibpath_overrides_runpath=yes
13 kx dynamic_linker='Win32 link.exe'
13 kx ;;
13 kx
13 kx *)
13 kx # Assume MSVC wrapper
13 kx library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13 kx dynamic_linker='Win32 ld.exe'
13 kx ;;
13 kx esac
13 kx # FIXME: first we should search . and the directory the executable is in
13 kx shlibpath_var=PATH
13 kx ;;
13 kx
13 kx darwin* | rhapsody*)
13 kx dynamic_linker="$host_os dyld"
13 kx version_type=darwin
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13 kx soname_spec='$libname$release$major$shared_ext'
13 kx shlibpath_overrides_runpath=yes
13 kx shlibpath_var=DYLD_LIBRARY_PATH
13 kx shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13 kx
13 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13 kx sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13 kx ;;
13 kx
13 kx dgux*)
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx ;;
13 kx
13 kx freebsd* | dragonfly*)
13 kx # DragonFly does not have aout. When/if they implement a new
13 kx # versioning mechanism, adjust this.
13 kx if test -x /usr/bin/objformat; then
13 kx objformat=`/usr/bin/objformat`
13 kx else
13 kx case $host_os in
13 kx freebsd[23].*) objformat=aout ;;
13 kx *) objformat=elf ;;
13 kx esac
13 kx fi
13 kx version_type=freebsd-$objformat
13 kx case $version_type in
13 kx freebsd-elf*)
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx need_version=no
13 kx need_lib_prefix=no
13 kx ;;
13 kx freebsd-*)
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13 kx need_version=yes
13 kx ;;
13 kx esac
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx case $host_os in
13 kx freebsd2.*)
13 kx shlibpath_overrides_runpath=yes
13 kx ;;
13 kx freebsd3.[01]* | freebsdelf3.[01]*)
13 kx shlibpath_overrides_runpath=yes
13 kx hardcode_into_libs=yes
13 kx ;;
13 kx freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13 kx freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13 kx shlibpath_overrides_runpath=no
13 kx hardcode_into_libs=yes
13 kx ;;
13 kx *) # from 4.6 on, and DragonFly
13 kx shlibpath_overrides_runpath=yes
13 kx hardcode_into_libs=yes
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx haiku*)
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx dynamic_linker="$host_os runtime_loader"
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx shlibpath_var=LIBRARY_PATH
13 kx shlibpath_overrides_runpath=no
13 kx sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13 kx hardcode_into_libs=yes
13 kx ;;
13 kx
13 kx hpux9* | hpux10* | hpux11*)
13 kx # Give a soname corresponding to the major version so that dld.sl refuses to
13 kx # link against other versions.
13 kx version_type=sunos
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx case $host_cpu in
13 kx ia64*)
13 kx shrext_cmds='.so'
13 kx hardcode_into_libs=yes
13 kx dynamic_linker="$host_os dld.so"
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx if test 32 = "$HPUX_IA64_MODE"; then
13 kx sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13 kx sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13 kx else
13 kx sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13 kx sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13 kx fi
13 kx ;;
13 kx hppa*64*)
13 kx shrext_cmds='.sl'
13 kx hardcode_into_libs=yes
13 kx dynamic_linker="$host_os dld.sl"
13 kx shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13 kx ;;
13 kx *)
13 kx shrext_cmds='.sl'
13 kx dynamic_linker="$host_os dld.sl"
13 kx shlibpath_var=SHLIB_PATH
13 kx shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx ;;
13 kx esac
13 kx # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13 kx postinstall_cmds='chmod 555 $lib'
13 kx # or fails outright, so override atomically:
13 kx install_override_mode=555
13 kx ;;
13 kx
13 kx interix[3-9]*)
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx shlibpath_overrides_runpath=no
13 kx hardcode_into_libs=yes
13 kx ;;
13 kx
13 kx irix5* | irix6* | nonstopux*)
13 kx case $host_os in
13 kx nonstopux*) version_type=nonstopux ;;
13 kx *)
13 kx if test yes = "$lt_cv_prog_gnu_ld"; then
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx else
13 kx version_type=irix
13 kx fi ;;
13 kx esac
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13 kx case $host_os in
13 kx irix5* | nonstopux*)
13 kx libsuff= shlibsuff=
13 kx ;;
13 kx *)
13 kx case $LD in # libtool.m4 will add one of these switches to LD
13 kx *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13 kx libsuff= shlibsuff= libmagic=32-bit;;
13 kx *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13 kx libsuff=32 shlibsuff=N32 libmagic=N32;;
13 kx *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13 kx libsuff=64 shlibsuff=64 libmagic=64-bit;;
13 kx *) libsuff= shlibsuff= libmagic=never-match;;
13 kx esac
13 kx ;;
13 kx esac
13 kx shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13 kx shlibpath_overrides_runpath=no
13 kx sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13 kx sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13 kx hardcode_into_libs=yes
13 kx ;;
13 kx
13 kx # No shared lib support for Linux oldld, aout, or coff.
13 kx linux*oldld* | linux*aout* | linux*coff*)
13 kx dynamic_linker=no
13 kx ;;
13 kx
13 kx linux*android*)
13 kx version_type=none # Android doesn't support versioned libraries.
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx library_names_spec='$libname$release$shared_ext'
13 kx soname_spec='$libname$release$shared_ext'
13 kx finish_cmds=
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx shlibpath_overrides_runpath=yes
13 kx
13 kx # This implies no fast_install, which is unacceptable.
13 kx # Some rework will be needed to allow for fast_install
13 kx # before this can be enabled.
13 kx hardcode_into_libs=yes
13 kx
13 kx dynamic_linker='Android linker'
13 kx # Don't embed -rpath directories since the linker doesn't support them.
13 kx hardcode_libdir_flag_spec='-L$libdir'
13 kx ;;
13 kx
13 kx # This must be glibc/ELF.
13 kx linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx shlibpath_overrides_runpath=no
13 kx
13 kx # Some binutils ld are patched to set DT_RUNPATH
13 kx if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx lt_cv_shlibpath_overrides_runpath=no
13 kx save_LDFLAGS=$LDFLAGS
13 kx save_libdir=$libdir
13 kx eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13 kx LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13 kx lt_cv_shlibpath_overrides_runpath=yes
13 kx fi
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LDFLAGS=$save_LDFLAGS
13 kx libdir=$save_libdir
13 kx
13 kx fi
13 kx
13 kx shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13 kx
13 kx # This implies no fast_install, which is unacceptable.
13 kx # Some rework will be needed to allow for fast_install
13 kx # before this can be enabled.
13 kx hardcode_into_libs=yes
13 kx
13 kx # Add ABI-specific directories to the system library path.
13 kx sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13 kx
13 kx # Ideally, we could use ldconfig to report *all* directores which are
13 kx # searched for libraries, however this is still not possible. Aside from not
13 kx # being certain /sbin/ldconfig is available, command
13 kx # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13 kx # even though it is searched at run-time. Try to do the best guess by
13 kx # appending ld.so.conf contents (and includes) to the search path.
13 kx if test -f /etc/ld.so.conf; then
13 kx 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' ' '`
13 kx sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13 kx fi
13 kx
13 kx # We used to test for /lib/ld.so.1 and disable shared libraries on
13 kx # powerpc, because MkLinux only supported shared libraries with the
13 kx # GNU dynamic linker. Since this was broken with cross compilers,
13 kx # most powerpc-linux boxes support dynamic linking these days and
13 kx # people can always --disable-shared, the test was removed, and we
13 kx # assume the GNU/Linux dynamic linker is in use.
13 kx dynamic_linker='GNU/Linux ld.so'
13 kx ;;
13 kx
13 kx netbsd*)
13 kx version_type=sunos
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13 kx dynamic_linker='NetBSD (a.out) ld.so'
13 kx else
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx dynamic_linker='NetBSD ld.elf_so'
13 kx fi
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx shlibpath_overrides_runpath=yes
13 kx hardcode_into_libs=yes
13 kx ;;
13 kx
13 kx newsos6)
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx shlibpath_overrides_runpath=yes
13 kx ;;
13 kx
13 kx *nto* | *qnx*)
13 kx version_type=qnx
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx shlibpath_overrides_runpath=no
13 kx hardcode_into_libs=yes
13 kx dynamic_linker='ldqnx.so'
13 kx ;;
13 kx
13 kx openbsd* | bitrig*)
13 kx version_type=sunos
13 kx sys_lib_dlsearch_path_spec=/usr/lib
13 kx need_lib_prefix=no
13 kx if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13 kx need_version=no
13 kx else
13 kx need_version=yes
13 kx fi
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx shlibpath_overrides_runpath=yes
13 kx ;;
13 kx
13 kx os2*)
13 kx libname_spec='$name'
13 kx version_type=windows
13 kx shrext_cmds=.dll
13 kx need_version=no
13 kx need_lib_prefix=no
13 kx # OS/2 can only load a DLL with a base name of 8 characters or less.
13 kx soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13 kx v=$($ECHO $release$versuffix | tr -d .-);
13 kx n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13 kx $ECHO $n$v`$shared_ext'
13 kx library_names_spec='${libname}_dll.$libext'
13 kx dynamic_linker='OS/2 ld.exe'
13 kx shlibpath_var=BEGINLIBPATH
13 kx sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13 kx postinstall_cmds='base_file=`basename \$file`~
13 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13 kx dldir=$destdir/`dirname \$dlpath`~
13 kx test -d \$dldir || mkdir -p \$dldir~
13 kx $install_prog $dir/$dlname \$dldir/$dlname~
13 kx chmod a+x \$dldir/$dlname~
13 kx if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13 kx eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13 kx fi'
13 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13 kx dlpath=$dir/\$dldll~
13 kx $RM \$dlpath'
13 kx ;;
13 kx
13 kx osf3* | osf4* | osf5*)
13 kx version_type=osf
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13 kx ;;
13 kx
13 kx rdos*)
13 kx dynamic_linker=no
13 kx ;;
13 kx
13 kx solaris*)
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx shlibpath_overrides_runpath=yes
13 kx hardcode_into_libs=yes
13 kx # ldd complains unless libraries are executable
13 kx postinstall_cmds='chmod +x $lib'
13 kx ;;
13 kx
13 kx sunos4*)
13 kx version_type=sunos
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13 kx finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx shlibpath_overrides_runpath=yes
13 kx if test yes = "$with_gnu_ld"; then
13 kx need_lib_prefix=no
13 kx fi
13 kx need_version=yes
13 kx ;;
13 kx
13 kx sysv4 | sysv4.3*)
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx case $host_vendor in
13 kx sni)
13 kx shlibpath_overrides_runpath=no
13 kx need_lib_prefix=no
13 kx runpath_var=LD_RUN_PATH
13 kx ;;
13 kx siemens)
13 kx need_lib_prefix=no
13 kx ;;
13 kx motorola)
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx shlibpath_overrides_runpath=no
13 kx sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13 kx ;;
13 kx esac
13 kx ;;
13 kx
13 kx sysv4*MP*)
13 kx if test -d /usr/nec; then
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13 kx soname_spec='$libname$shared_ext.$major'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx fi
13 kx ;;
13 kx
13 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13 kx version_type=sco
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx shlibpath_overrides_runpath=yes
13 kx hardcode_into_libs=yes
13 kx if test yes = "$with_gnu_ld"; then
13 kx sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13 kx else
13 kx sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13 kx case $host_os in
13 kx sco3.2v5*)
13 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13 kx ;;
13 kx esac
13 kx fi
13 kx sys_lib_dlsearch_path_spec='/usr/lib'
13 kx ;;
13 kx
13 kx tpf*)
13 kx # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx need_lib_prefix=no
13 kx need_version=no
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx shlibpath_overrides_runpath=no
13 kx hardcode_into_libs=yes
13 kx ;;
13 kx
13 kx uts4*)
13 kx version_type=linux # correct to gnu/linux during the next big refactor
13 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13 kx soname_spec='$libname$release$shared_ext$major'
13 kx shlibpath_var=LD_LIBRARY_PATH
13 kx ;;
13 kx
13 kx *)
13 kx dynamic_linker=no
13 kx ;;
13 kx esac
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13 kx $as_echo "$dynamic_linker" >&6; }
13 kx test no = "$dynamic_linker" && can_build_shared=no
13 kx
13 kx variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13 kx if test yes = "$GCC"; then
13 kx variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13 kx fi
13 kx
13 kx if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13 kx sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13 kx fi
13 kx
13 kx if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13 kx sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13 kx fi
13 kx
13 kx # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13 kx configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13 kx
13 kx # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13 kx func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13 kx
13 kx # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13 kx configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13 kx $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13 kx hardcode_action=
13 kx if test -n "$hardcode_libdir_flag_spec" ||
13 kx test -n "$runpath_var" ||
13 kx test yes = "$hardcode_automatic"; then
13 kx
13 kx # We can hardcode non-existent directories.
13 kx if test no != "$hardcode_direct" &&
13 kx # If the only mechanism to avoid hardcoding is shlibpath_var, we
13 kx # have to relink, otherwise we might link with an installed library
13 kx # when we should be linking with a yet-to-be-installed one
13 kx ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13 kx test no != "$hardcode_minus_L"; then
13 kx # Linking always hardcodes the temporary library directory.
13 kx hardcode_action=relink
13 kx else
13 kx # We can link without hardcoding, and we can hardcode nonexisting dirs.
13 kx hardcode_action=immediate
13 kx fi
13 kx else
13 kx # We cannot hardcode anything, or else we can only hardcode existing
13 kx # directories.
13 kx hardcode_action=unsupported
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13 kx $as_echo "$hardcode_action" >&6; }
13 kx
13 kx if test relink = "$hardcode_action" ||
13 kx test yes = "$inherit_rpath"; then
13 kx # Fast installation is not supported
13 kx enable_fast_install=no
13 kx elif test yes = "$shlibpath_overrides_runpath" ||
13 kx test no = "$enable_shared"; then
13 kx # Fast installation is not necessary
13 kx enable_fast_install=needless
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx if test yes != "$enable_dlopen"; then
13 kx enable_dlopen=unknown
13 kx enable_dlopen_self=unknown
13 kx enable_dlopen_self_static=unknown
13 kx else
13 kx lt_cv_dlopen=no
13 kx lt_cv_dlopen_libs=
13 kx
13 kx case $host_os in
13 kx beos*)
13 kx lt_cv_dlopen=load_add_on
13 kx lt_cv_dlopen_libs=
13 kx lt_cv_dlopen_self=yes
13 kx ;;
13 kx
13 kx mingw* | pw32* | cegcc*)
13 kx lt_cv_dlopen=LoadLibrary
13 kx lt_cv_dlopen_libs=
13 kx ;;
13 kx
13 kx cygwin*)
13 kx lt_cv_dlopen=dlopen
13 kx lt_cv_dlopen_libs=
13 kx ;;
13 kx
13 kx darwin*)
13 kx # if libdl is installed we need to link against it
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13 kx $as_echo_n "checking for dlopen in -ldl... " >&6; }
13 kx if ${ac_cv_lib_dl_dlopen+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-ldl $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char dlopen ();
13 kx int
13 kx main ()
13 kx {
13 kx return dlopen ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_dl_dlopen=yes
13 kx else
13 kx ac_cv_lib_dl_dlopen=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13 kx $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13 kx if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13 kx lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13 kx else
13 kx
13 kx lt_cv_dlopen=dyld
13 kx lt_cv_dlopen_libs=
13 kx lt_cv_dlopen_self=yes
13 kx
13 kx fi
13 kx
13 kx ;;
13 kx
13 kx tpf*)
13 kx # Don't try to run any link tests for TPF. We know it's impossible
13 kx # because TPF is a cross-compiler, and we know how we open DSOs.
13 kx lt_cv_dlopen=dlopen
13 kx lt_cv_dlopen_libs=
13 kx lt_cv_dlopen_self=no
13 kx ;;
13 kx
13 kx *)
13 kx ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13 kx if test "x$ac_cv_func_shl_load" = xyes; then :
13 kx lt_cv_dlopen=shl_load
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13 kx $as_echo_n "checking for shl_load in -ldld... " >&6; }
13 kx if ${ac_cv_lib_dld_shl_load+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-ldld $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char shl_load ();
13 kx int
13 kx main ()
13 kx {
13 kx return shl_load ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_dld_shl_load=yes
13 kx else
13 kx ac_cv_lib_dld_shl_load=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13 kx $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13 kx if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13 kx lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13 kx else
13 kx ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13 kx if test "x$ac_cv_func_dlopen" = xyes; then :
13 kx lt_cv_dlopen=dlopen
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13 kx $as_echo_n "checking for dlopen in -ldl... " >&6; }
13 kx if ${ac_cv_lib_dl_dlopen+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-ldl $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char dlopen ();
13 kx int
13 kx main ()
13 kx {
13 kx return dlopen ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_dl_dlopen=yes
13 kx else
13 kx ac_cv_lib_dl_dlopen=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13 kx $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13 kx if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13 kx lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13 kx $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13 kx if ${ac_cv_lib_svld_dlopen+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-lsvld $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char dlopen ();
13 kx int
13 kx main ()
13 kx {
13 kx return dlopen ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_svld_dlopen=yes
13 kx else
13 kx ac_cv_lib_svld_dlopen=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13 kx $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13 kx if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13 kx lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13 kx $as_echo_n "checking for dld_link in -ldld... " >&6; }
13 kx if ${ac_cv_lib_dld_dld_link+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-ldld $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char dld_link ();
13 kx int
13 kx main ()
13 kx {
13 kx return dld_link ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_dld_dld_link=yes
13 kx else
13 kx ac_cv_lib_dld_dld_link=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13 kx $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13 kx if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13 kx lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13 kx fi
13 kx
13 kx
13 kx fi
13 kx
13 kx
13 kx fi
13 kx
13 kx
13 kx fi
13 kx
13 kx
13 kx fi
13 kx
13 kx
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx
13 kx if test no = "$lt_cv_dlopen"; then
13 kx enable_dlopen=no
13 kx else
13 kx enable_dlopen=yes
13 kx fi
13 kx
13 kx case $lt_cv_dlopen in
13 kx dlopen)
13 kx save_CPPFLAGS=$CPPFLAGS
13 kx test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13 kx
13 kx save_LDFLAGS=$LDFLAGS
13 kx wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13 kx
13 kx save_LIBS=$LIBS
13 kx LIBS="$lt_cv_dlopen_libs $LIBS"
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13 kx $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13 kx if ${lt_cv_dlopen_self+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test yes = "$cross_compiling"; then :
13 kx lt_cv_dlopen_self=cross
13 kx else
13 kx lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13 kx lt_status=$lt_dlunknown
13 kx cat > conftest.$ac_ext <<_LT_EOF
13 kx #line $LINENO "configure"
13 kx #include "confdefs.h"
13 kx
13 kx #if HAVE_DLFCN_H
13 kx #include <dlfcn.h>
13 kx #endif
13 kx
13 kx #include <stdio.h>
13 kx
13 kx #ifdef RTLD_GLOBAL
13 kx # define LT_DLGLOBAL RTLD_GLOBAL
13 kx #else
13 kx # ifdef DL_GLOBAL
13 kx # define LT_DLGLOBAL DL_GLOBAL
13 kx # else
13 kx # define LT_DLGLOBAL 0
13 kx # endif
13 kx #endif
13 kx
13 kx /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13 kx find out it does not work in some platform. */
13 kx #ifndef LT_DLLAZY_OR_NOW
13 kx # ifdef RTLD_LAZY
13 kx # define LT_DLLAZY_OR_NOW RTLD_LAZY
13 kx # else
13 kx # ifdef DL_LAZY
13 kx # define LT_DLLAZY_OR_NOW DL_LAZY
13 kx # else
13 kx # ifdef RTLD_NOW
13 kx # define LT_DLLAZY_OR_NOW RTLD_NOW
13 kx # else
13 kx # ifdef DL_NOW
13 kx # define LT_DLLAZY_OR_NOW DL_NOW
13 kx # else
13 kx # define LT_DLLAZY_OR_NOW 0
13 kx # endif
13 kx # endif
13 kx # endif
13 kx # endif
13 kx #endif
13 kx
13 kx /* When -fvisibility=hidden is used, assume the code has been annotated
13 kx correspondingly for the symbols needed. */
13 kx #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13 kx int fnord () __attribute__((visibility("default")));
13 kx #endif
13 kx
13 kx int fnord () { return 42; }
13 kx int main ()
13 kx {
13 kx void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13 kx int status = $lt_dlunknown;
13 kx
13 kx if (self)
13 kx {
13 kx if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13 kx else
13 kx {
13 kx if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13 kx else puts (dlerror ());
13 kx }
13 kx /* dlclose (self); */
13 kx }
13 kx else
13 kx puts (dlerror ());
13 kx
13 kx return status;
13 kx }
13 kx _LT_EOF
13 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13 kx (eval $ac_link) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13 kx (./conftest; exit; ) >&5 2>/dev/null
13 kx lt_status=$?
13 kx case x$lt_status in
13 kx x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13 kx x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13 kx x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13 kx esac
13 kx else :
13 kx # compilation failed
13 kx lt_cv_dlopen_self=no
13 kx fi
13 kx fi
13 kx rm -fr conftest*
13 kx
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13 kx $as_echo "$lt_cv_dlopen_self" >&6; }
13 kx
13 kx if test yes = "$lt_cv_dlopen_self"; then
13 kx wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13 kx $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13 kx if ${lt_cv_dlopen_self_static+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test yes = "$cross_compiling"; then :
13 kx lt_cv_dlopen_self_static=cross
13 kx else
13 kx lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13 kx lt_status=$lt_dlunknown
13 kx cat > conftest.$ac_ext <<_LT_EOF
13 kx #line $LINENO "configure"
13 kx #include "confdefs.h"
13 kx
13 kx #if HAVE_DLFCN_H
13 kx #include <dlfcn.h>
13 kx #endif
13 kx
13 kx #include <stdio.h>
13 kx
13 kx #ifdef RTLD_GLOBAL
13 kx # define LT_DLGLOBAL RTLD_GLOBAL
13 kx #else
13 kx # ifdef DL_GLOBAL
13 kx # define LT_DLGLOBAL DL_GLOBAL
13 kx # else
13 kx # define LT_DLGLOBAL 0
13 kx # endif
13 kx #endif
13 kx
13 kx /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13 kx find out it does not work in some platform. */
13 kx #ifndef LT_DLLAZY_OR_NOW
13 kx # ifdef RTLD_LAZY
13 kx # define LT_DLLAZY_OR_NOW RTLD_LAZY
13 kx # else
13 kx # ifdef DL_LAZY
13 kx # define LT_DLLAZY_OR_NOW DL_LAZY
13 kx # else
13 kx # ifdef RTLD_NOW
13 kx # define LT_DLLAZY_OR_NOW RTLD_NOW
13 kx # else
13 kx # ifdef DL_NOW
13 kx # define LT_DLLAZY_OR_NOW DL_NOW
13 kx # else
13 kx # define LT_DLLAZY_OR_NOW 0
13 kx # endif
13 kx # endif
13 kx # endif
13 kx # endif
13 kx #endif
13 kx
13 kx /* When -fvisibility=hidden is used, assume the code has been annotated
13 kx correspondingly for the symbols needed. */
13 kx #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13 kx int fnord () __attribute__((visibility("default")));
13 kx #endif
13 kx
13 kx int fnord () { return 42; }
13 kx int main ()
13 kx {
13 kx void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13 kx int status = $lt_dlunknown;
13 kx
13 kx if (self)
13 kx {
13 kx if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13 kx else
13 kx {
13 kx if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13 kx else puts (dlerror ());
13 kx }
13 kx /* dlclose (self); */
13 kx }
13 kx else
13 kx puts (dlerror ());
13 kx
13 kx return status;
13 kx }
13 kx _LT_EOF
13 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13 kx (eval $ac_link) 2>&5
13 kx ac_status=$?
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13 kx test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13 kx (./conftest; exit; ) >&5 2>/dev/null
13 kx lt_status=$?
13 kx case x$lt_status in
13 kx x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13 kx x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13 kx x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13 kx esac
13 kx else :
13 kx # compilation failed
13 kx lt_cv_dlopen_self_static=no
13 kx fi
13 kx fi
13 kx rm -fr conftest*
13 kx
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13 kx $as_echo "$lt_cv_dlopen_self_static" >&6; }
13 kx fi
13 kx
13 kx CPPFLAGS=$save_CPPFLAGS
13 kx LDFLAGS=$save_LDFLAGS
13 kx LIBS=$save_LIBS
13 kx ;;
13 kx esac
13 kx
13 kx case $lt_cv_dlopen_self in
13 kx yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13 kx *) enable_dlopen_self=unknown ;;
13 kx esac
13 kx
13 kx case $lt_cv_dlopen_self_static in
13 kx yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13 kx *) enable_dlopen_self_static=unknown ;;
13 kx esac
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx striplib=
13 kx old_striplib=
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13 kx $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13 kx if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13 kx test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13 kx test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13 kx $as_echo "yes" >&6; }
13 kx else
13 kx # FIXME - insert some real tests, host_os isn't really good enough
13 kx case $host_os in
13 kx darwin*)
13 kx if test -n "$STRIP"; then
13 kx striplib="$STRIP -x"
13 kx old_striplib="$STRIP -S"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13 kx $as_echo "yes" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx ;;
13 kx *)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx ;;
13 kx esac
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # Report what library types will actually be built
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13 kx $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13 kx $as_echo "$can_build_shared" >&6; }
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13 kx $as_echo_n "checking whether to build shared libraries... " >&6; }
13 kx test no = "$can_build_shared" && enable_shared=no
13 kx
13 kx # On AIX, shared libraries and static libraries use the same namespace, and
13 kx # are all built from PIC.
13 kx case $host_os in
13 kx aix3*)
13 kx test yes = "$enable_shared" && enable_static=no
13 kx if test -n "$RANLIB"; then
13 kx archive_cmds="$archive_cmds~\$RANLIB \$lib"
13 kx postinstall_cmds='$RANLIB $lib'
13 kx fi
13 kx ;;
13 kx
13 kx aix[4-9]*)
13 kx if test ia64 != "$host_cpu"; then
13 kx case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13 kx yes,aix,yes) ;; # shared object as lib.so file only
13 kx yes,svr4,*) ;; # shared object as lib.so archive member only
13 kx yes,*) enable_static=no ;; # shared object in lib.a archive as well
13 kx esac
13 kx fi
13 kx ;;
13 kx esac
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13 kx $as_echo "$enable_shared" >&6; }
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13 kx $as_echo_n "checking whether to build static libraries... " >&6; }
13 kx # Make sure either enable_shared or enable_static is yes.
13 kx test yes = "$enable_shared" || enable_static=yes
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13 kx $as_echo "$enable_static" >&6; }
13 kx
13 kx
13 kx
13 kx
13 kx fi
13 kx ac_ext=c
13 kx ac_cpp='$CPP $CPPFLAGS'
13 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
13 kx
13 kx CC=$lt_save_CC
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx ac_config_commands="$ac_config_commands libtool"
13 kx
13 kx
13 kx
13 kx
13 kx # Only expand once:
13 kx
13 kx
13 kx # get libtool's setting of shlibpath_var
13 kx if test "x$shlibpath_var" = "x"; then
13 kx eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
13 kx fi
13 kx if test "x$shlibpath_var" = "x"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: SHLIBPATH variable could not be determined" >&5
13 kx $as_echo "$as_me: SHLIBPATH variable could not be determined" >&6;}
13 kx shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
13 kx fi
13 kx fi
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx # Check whether --with-installbuilddir was given.
13 kx if test "${with_installbuilddir+set}" = set; then :
13 kx withval=$with_installbuilddir; installbuilddir=$withval
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx # Check whether --with-libtool was given.
13 kx if test "${with_libtool+set}" = set; then :
13 kx withval=$with_libtool; use_libtool=$withval
13 kx else
13 kx use_libtool="yes"
13 kx fi
13 kx
13 kx
13 kx if test "x$use_libtool" = "xyes"; then
13 kx lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile --tag=CC $(COMPILE) -o $@ -c $< && touch $@'
13 kx LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
13 kx link="\$(LIBTOOL) \$(LTFLAGS) --mode=link --tag=CC \$(COMPILE) \$(LT_LDFLAGS) \$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@"
13 kx so_ext='lo'
13 kx lib_target='-rpath $(libdir) $(OBJECTS)'
13 kx export_lib_target='-rpath \$(libdir) \$(OBJECTS)'
13 kx else
13 kx lt_compile='$(COMPILE) -o $@ -c $<'
13 kx link='$(AR) cr $(TARGET_LIB) $(OBJECTS); $(RANLIB) $(TARGET_LIB)'
13 kx so_ext='o'
13 kx lib_target=''
13 kx export_lib_target=''
13 kx fi
13 kx
13 kx case $host in
13 kx *-solaris2*)
13 kx apr_platform_runtime_link_flag="-R"
13 kx ;;
13 kx *-mingw* | *-cygwin*)
13 kx LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
13 kx ;;
13 kx *)
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx nl='
13 kx '
13 kx echo "${nl}Check for compiler flags..."
13 kx
13 kx
13 kx case $host in
13 kx *os390)
13 kx if test "$ac_test_CFLAGS" != set; then
13 kx
13 kx if test "x$CFLAGS" = "x-g"; then
13 kx test "x$silent" != "xyes" && echo " nulling CFLAGS"
13 kx CFLAGS=""
13 kx else
13 kx apr_new_bugger=""
13 kx apr_removed=0
13 kx for i in $CFLAGS; do
13 kx if test "x$i" != "x-g"; then
13 kx apr_new_bugger="$apr_new_bugger $i"
13 kx else
13 kx apr_removed=1
13 kx fi
13 kx done
13 kx if test $apr_removed = "1"; then
13 kx test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS"
13 kx CFLAGS=$apr_new_bugger
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx ;;
13 kx esac
13 kx
13 kx # Check whether --enable-debug was given.
13 kx if test "${enable_debug+set}" = set; then :
13 kx enableval=$enable_debug;
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\""
13 kx CFLAGS="-g"
13 kx else
13 kx apr_addto_bugger="-g"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx if test "$GCC" = "yes"; then
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall\""
13 kx CFLAGS="-Wall"
13 kx else
13 kx apr_addto_bugger="-Wall"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx elif test "$AIX_XLC" = "yes"; then
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath\""
13 kx CFLAGS="-qfullpath"
13 kx else
13 kx apr_addto_bugger="-qfullpath"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx # Check whether --enable-maintainer-mode was given.
13 kx if test "${enable_maintainer_mode+set}" = set; then :
13 kx enableval=$enable_maintainer_mode;
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\""
13 kx CFLAGS="-g"
13 kx else
13 kx apr_addto_bugger="-g"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx if test "$GCC" = "yes"; then
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\""
13 kx CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
13 kx else
13 kx apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx case `($CC --version) 2>/dev/null` in
13 kx *clang-900* | *"clang version 5.0.0"*)
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wno-error=strict-prototypes\""
13 kx CFLAGS="-Wno-error=strict-prototypes"
13 kx else
13 kx apr_addto_bugger="-Wno-error=strict-prototypes"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx elif test "$AIX_XLC" = "yes"; then
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
13 kx CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
13 kx else
13 kx apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx # Check whether --enable-profile was given.
13 kx if test "${enable_profile+set}" = set; then :
13 kx enableval=$enable_profile; if test "$GCC" = "yes"; then
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-pg\""
13 kx CFLAGS="-pg"
13 kx else
13 kx apr_addto_bugger="-pg"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x-g"; then
13 kx test "x$silent" != "xyes" && echo " nulling CFLAGS"
13 kx CFLAGS=""
13 kx else
13 kx apr_new_bugger=""
13 kx apr_removed=0
13 kx for i in $CFLAGS; do
13 kx if test "x$i" != "x-g"; then
13 kx apr_new_bugger="$apr_new_bugger $i"
13 kx else
13 kx apr_removed=1
13 kx fi
13 kx done
13 kx if test $apr_removed = "1"; then
13 kx test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS"
13 kx CFLAGS=$apr_new_bugger
13 kx fi
13 kx fi
13 kx
13 kx if test "$host" = "i586-pc-beos"; then
13 kx
13 kx if test "x$CFLAGS" = "x-O2"; then
13 kx test "x$silent" != "xyes" && echo " nulling CFLAGS"
13 kx CFLAGS=""
13 kx else
13 kx apr_new_bugger=""
13 kx apr_removed=0
13 kx for i in $CFLAGS; do
13 kx if test "x$i" != "x-O2"; then
13 kx apr_new_bugger="$apr_new_bugger $i"
13 kx else
13 kx apr_removed=1
13 kx fi
13 kx done
13 kx if test $apr_removed = "1"; then
13 kx test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS"
13 kx CFLAGS=$apr_new_bugger
13 kx fi
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\""
13 kx CFLAGS="-O1"
13 kx else
13 kx apr_addto_bugger="-O1"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$LDFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-p\""
13 kx LDFLAGS="-p"
13 kx else
13 kx apr_addto_bugger="-p"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LDFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
13 kx LDFLAGS="$LDFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx
13 kx # Check whether --enable-pool-debug was given.
13 kx if test "${enable_pool_debug+set}" = set; then :
13 kx enableval=$enable_pool_debug; if test -z "$enableval"; then
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\""
13 kx CPPFLAGS="-DAPR_POOL_DEBUG=1"
13 kx else
13 kx apr_addto_bugger="-DAPR_POOL_DEBUG=1"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx elif test ! "$enableval" = "no"; then
13 kx apr_pool_debug=1
13 kx
13 kx for i in $enableval
13 kx do
13 kx flag=0
13 kx
13 kx case $i in
13 kx yes)
13 kx flag=1
13 kx ;;
13 kx verbose)
13 kx flag=2
13 kx ;;
13 kx lifetime)
13 kx flag=4
13 kx ;;
13 kx owner)
13 kx flag=8
13 kx ;;
13 kx verbose-alloc)
13 kx flag=16
13 kx ;;
13 kx all)
13 kx apr_pool_debug=31
13 kx ;;
13 kx *)
13 kx ;;
13 kx esac
13 kx
13 kx if test $flag -gt 0; then
13 kx apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \
13 kx '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag`
13 kx fi
13 kx done
13 kx
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\""
13 kx CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug"
13 kx else
13 kx apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx
13 kx if test "$host" = "i586-pc-beos"; then
13 kx # Check whether --enable-malloc-debug was given.
13 kx if test "${enable_malloc_debug+set}" = set; then :
13 kx enableval=$enable_malloc_debug;
13 kx if test "x$CFLAGS" = "x-O2"; then
13 kx test "x$silent" != "xyes" && echo " nulling CFLAGS"
13 kx CFLAGS=""
13 kx else
13 kx apr_new_bugger=""
13 kx apr_removed=0
13 kx for i in $CFLAGS; do
13 kx if test "x$i" != "x-O2"; then
13 kx apr_new_bugger="$apr_new_bugger $i"
13 kx else
13 kx apr_removed=1
13 kx fi
13 kx done
13 kx if test $apr_removed = "1"; then
13 kx test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS"
13 kx CFLAGS=$apr_new_bugger
13 kx fi
13 kx fi
13 kx
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\""
13 kx CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE"
13 kx else
13 kx apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx fi
13 kx fi
13 kx
13 kx # this is the place to put specific options for platform/compiler
13 kx # combinations
13 kx case "$host:$CC" in
13 kx *-hp-hpux*:cc )
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Ae +Z\""
13 kx CFLAGS="-Ae +Z"
13 kx else
13 kx apr_addto_bugger="-Ae +Z"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx case $host in
13 kx ia64-* )
13 kx ;;
13 kx * )
13 kx if echo "$CFLAGS " | grep '+DA' >/dev/null; then :
13 kx else
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"+DAportable\""
13 kx CFLAGS="+DAportable"
13 kx else
13 kx apr_addto_bugger="+DAportable"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx ;;
13 kx esac
13 kx ;;
13 kx powerpc-*-beos:mwcc* )
13 kx
13 kx test "x$silent" != "xyes" && echo " forcing CPP to \"mwcc -E\""
13 kx CPP="mwcc -E"
13 kx
13 kx
13 kx test "x$silent" != "xyes" && echo " forcing CC to \"mwcc\""
13 kx CC="mwcc"
13 kx
13 kx
13 kx test "x$silent" != "xyes" && echo " forcing AR to \"ar\""
13 kx AR="ar"
13 kx
13 kx ;;
13 kx *-mingw* | *-cygwin*)
13 kx if test "$enable_shared" = "yes"; then
13 kx
13 kx if test "x$INTERNAL_CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting INTERNAL_CPPFLAGS to \"-DAPR_DECLARE_EXPORT\""
13 kx INTERNAL_CPPFLAGS="-DAPR_DECLARE_EXPORT"
13 kx else
13 kx apr_addto_bugger="-DAPR_DECLARE_EXPORT"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $INTERNAL_CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to INTERNAL_CPPFLAGS"
13 kx INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx else
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_DECLARE_STATIC\""
13 kx CPPFLAGS="-DAPR_DECLARE_STATIC"
13 kx else
13 kx apr_addto_bugger="-DAPR_DECLARE_STATIC"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx ;;
13 kx esac
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides 32bit atomic builtins" >&5
13 kx $as_echo_n "checking whether the compiler provides 32bit atomic builtins... " >&6; }
13 kx if ${ap_cv_atomic_builtins+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx ap_cv_atomic_builtins=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #if HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx #endif
13 kx int main(int argc, const char *const *argv)
13 kx {
13 kx #if HAVE_STDINT_H
13 kx uint32_t val = 1010, tmp, *mem = &val;
13 kx #else
13 kx unsigned int val = 1010, tmp, *mem = &val;
13 kx #endif
13 kx
13 kx if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
13 kx return 1;
13 kx
13 kx tmp = val;
13 kx if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
13 kx return 1;
13 kx
13 kx if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
13 kx return 1;
13 kx
13 kx tmp = 3030;
13 kx if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
13 kx return 1;
13 kx
13 kx __sync_synchronize();
13 kx if (__sync_lock_test_and_set(&val, 4040) != 3030)
13 kx return 1;
13 kx
13 kx if (__sync_val_compare_and_swap(&mem, &val, &tmp) != &val || mem != &tmp)
13 kx return 1;
13 kx
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx ap_cv_atomic_builtins=yes
13 kx else
13 kx ap_cv_atomic_builtins=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
13 kx $as_echo "$ap_cv_atomic_builtins" >&6; }
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides 32bit __atomic builtins" >&5
13 kx $as_echo_n "checking whether the compiler provides 32bit __atomic builtins... " >&6; }
13 kx if ${ap_cv__atomic_builtins+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx ap_cv__atomic_builtins=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #if HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx #endif
13 kx int main(int argc, const char *const *argv)
13 kx {
13 kx #if HAVE_STDINT_H
13 kx uint32_t val = 1010, tmp, *mem = &val, *ptmp;
13 kx #else
13 kx unsigned int val = 1010, tmp, *mem = &val, *ptmp;
13 kx #endif
13 kx
13 kx if (__atomic_fetch_add(&val, 1010, __ATOMIC_SEQ_CST) != 1010 || val != 2020)
13 kx return 1;
13 kx
13 kx tmp = val;
13 kx if (__atomic_fetch_sub(mem, 1010, __ATOMIC_SEQ_CST) != tmp || val != 1010)
13 kx return 1;
13 kx
13 kx if (__atomic_sub_fetch(&val, 1010, __ATOMIC_SEQ_CST) != 0 || val != 0)
13 kx return 1;
13 kx
13 kx tmp = val;
13 kx if (!__atomic_compare_exchange_n(mem, &tmp, 3030, 0, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)
13 kx || tmp != 0)
13 kx return 1;
13 kx
13 kx if (__atomic_exchange_n(&val, 4040, __ATOMIC_SEQ_CST) != 3030)
13 kx return 1;
13 kx
13 kx ptmp = &val;
13 kx if (!__atomic_compare_exchange_n(&mem, &ptmp, &tmp, 0, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)
13 kx || ptmp != &val || mem != &tmp)
13 kx return 1;
13 kx
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx ap_cv__atomic_builtins=yes
13 kx else
13 kx ap_cv__atomic_builtins=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv__atomic_builtins" >&5
13 kx $as_echo "$ap_cv__atomic_builtins" >&6; }
13 kx
13 kx if test "$ap_cv_atomic_builtins" = "yes" -o "$ap_cv__atomic_builtins" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
13 kx
13 kx if test "$ap_cv__atomic_builtins" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE__ATOMIC_BUILTINS 1" >>confdefs.h
13 kx
13 kx fi
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides 64bit atomic builtins" >&5
13 kx $as_echo_n "checking whether the compiler provides 64bit atomic builtins... " >&6; }
13 kx if ${ap_cv_atomic_builtins64+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx ap_cv_atomic_builtins64=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #if HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx typedef uint64_t u64_t;
13 kx #else
13 kx typedef unsigned long long u64_t;
13 kx #endif
13 kx int main(int argc, const char *const *argv)
13 kx {
13 kx struct {
13 kx char pad0;
13 kx u64_t val;
13 kx } s;
13 kx u64_t *mem = &s.val, tmp;
13 kx
13 kx s.val = 1010;
13 kx if (__sync_fetch_and_add(&s.val, 1010) != 1010 || s.val != 2020)
13 kx return 1;
13 kx
13 kx tmp = s.val;
13 kx if (__sync_fetch_and_sub(mem, 1010) != tmp || s.val != 1010)
13 kx return 1;
13 kx
13 kx if (__sync_sub_and_fetch(&s.val, 1010) != 0 || s.val != 0)
13 kx return 1;
13 kx
13 kx tmp = 3030;
13 kx if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || s.val != tmp)
13 kx return 1;
13 kx
13 kx __sync_synchronize();
13 kx if (__sync_lock_test_and_set(&s.val, 4040) != 3030)
13 kx return 1;
13 kx
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx ap_cv_atomic_builtins64=yes
13 kx else
13 kx ap_cv_atomic_builtins64=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins64" >&5
13 kx $as_echo "$ap_cv_atomic_builtins64" >&6; }
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides 64bit __atomic builtins" >&5
13 kx $as_echo_n "checking whether the compiler provides 64bit __atomic builtins... " >&6; }
13 kx if ${ap_cv__atomic_builtins64+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx ap_cv__atomic_builtins64=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #if HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx typedef uint64_t u64_t;
13 kx #else
13 kx typedef unsigned long long u64_t;
13 kx #endif
13 kx static int test_always_lock_free(volatile u64_t *val)
13 kx {
13 kx return __atomic_always_lock_free(sizeof(*val), val);
13 kx }
13 kx int main(int argc, const char *const *argv)
13 kx {
13 kx struct {
13 kx char pad0;
13 kx u64_t val;
13 kx char pad1;
13 kx u64_t tmp;
13 kx } s;
13 kx u64_t *mem = &s.val;
13 kx
13 kx /* check if alignment matters (no fallback to libatomic) */
13 kx if (!test_always_lock_free(&s.val))
13 kx return 1;
13 kx
13 kx s.val = 1010;
13 kx if (__atomic_fetch_add(&s.val, 1010, __ATOMIC_SEQ_CST) != 1010 || s.val != 2020)
13 kx return 1;
13 kx
13 kx s.tmp = s.val;
13 kx if (__atomic_fetch_sub(mem, 1010, __ATOMIC_SEQ_CST) != s.tmp || s.val != 1010)
13 kx return 1;
13 kx
13 kx if (__atomic_sub_fetch(&s.val, 1010, __ATOMIC_SEQ_CST) != 0 || s.val != 0)
13 kx return 1;
13 kx
13 kx s.tmp = s.val;
13 kx if (!__atomic_compare_exchange_n(mem, &s.tmp, 3030, 0, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)
13 kx || s.tmp != 0)
13 kx return 1;
13 kx
13 kx if (__atomic_exchange_n(&s.val, 4040, __ATOMIC_SEQ_CST) != 3030)
13 kx return 1;
13 kx
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx ap_cv__atomic_builtins64=yes
13 kx else
13 kx ap_cv__atomic_builtins64=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv__atomic_builtins64" >&5
13 kx $as_echo "$ap_cv__atomic_builtins64" >&6; }
13 kx
13 kx if test "$ap_cv_atomic_builtins64" = "yes" -o "$ap_cv__atomic_builtins64" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_ATOMIC_BUILTINS64 1" >>confdefs.h
13 kx
13 kx if test "$ap_cv__atomic_builtins64" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE__ATOMIC_BUILTINS64 1" >>confdefs.h
13 kx
13 kx fi
13 kx fi
13 kx
13 kx case $host in
13 kx powerpc-405-*)
13 kx # The IBM ppc405cr processor has a bugged stwcx instruction.
13 kx
13 kx $as_echo "#define PPC405_ERRATA 1" >>confdefs.h
13 kx
13 kx ;;
13 kx *)
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx if test "$GCC" = "yes"; then
13 kx MKDEP='$(CC) -MM'
13 kx else
13 kx rm -f conftest.c
13 kx cat > conftest.c <<EOF
13 kx #include <sys/types.h>
13 kx int main() { return 0; }
13 kx EOF
13 kx MKDEP="true"
13 kx for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
13 kx $as_echo_n "checking if $i can create proper make dependencies... " >&6; }
13 kx if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
13 kx MKDEP=$i
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13 kx $as_echo "yes" >&6; }
13 kx break;
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx done
13 kx rm -f conftest.c
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx proc_mutex_is_global=0
13 kx
13 kx config_subdirs="none"
13 kx INSTALL_SUBDIRS="none"
13 kx OBJECTS_PLATFORM='$(OBJECTS_unix)'
13 kx
13 kx case $host in
13 kx i386-ibm-aix* | *-ibm-aix[1-2].* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*)
13 kx OSDIR="aix"
13 kx
13 kx if test "x$LDFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-lld\""
13 kx LDFLAGS="-lld"
13 kx else
13 kx apr_addto_bugger="-lld"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LDFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
13 kx LDFLAGS="$LDFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx eolstr="\\n"
13 kx OBJECTS_PLATFORM='$(OBJECTS_aix)'
13 kx ;;
13 kx *-os2*)
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOS2\""
13 kx CPPFLAGS="-DOS2"
13 kx else
13 kx apr_addto_bugger="-DOS2"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Zmt\""
13 kx CFLAGS="-Zmt"
13 kx else
13 kx apr_addto_bugger="-Zmt"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random in -lbsd" >&5
13 kx $as_echo_n "checking for random in -lbsd... " >&6; }
13 kx if ${ac_cv_lib_bsd_random+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-lbsd $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char random ();
13 kx int
13 kx main ()
13 kx {
13 kx return random ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_bsd_random=yes
13 kx else
13 kx ac_cv_lib_bsd_random=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_random" >&5
13 kx $as_echo "$ac_cv_lib_bsd_random" >&6; }
13 kx if test "x$ac_cv_lib_bsd_random" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_LIBBSD 1
13 kx _ACEOF
13 kx
13 kx LIBS="-lbsd $LIBS"
13 kx
13 kx fi
13 kx
13 kx OSDIR="os2"
13 kx enable_threads="system_threads"
13 kx eolstr="\\r\\n"
13 kx file_as_socket="0"
13 kx proc_mutex_is_global=1
13 kx OBJECTS_PLATFORM='$(OBJECTS_os2)'
13 kx ;;
13 kx *beos*)
13 kx OSDIR="beos"
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\""
13 kx CPPFLAGS="-DBEOS"
13 kx else
13 kx apr_addto_bugger="-DBEOS"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx enable_threads="system_threads"
13 kx native_mmap_emul="1"
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONE_VERSION in sys/socket.h" >&5
13 kx $as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; }
13 kx if ${ac_cv_define_BONE_VERSION+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/socket.h>
13 kx #ifdef BONE_VERSION
13 kx YES_IS_DEFINED
13 kx #endif
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13 kx ac_cv_define_BONE_VERSION=yes
13 kx else
13 kx ac_cv_define_BONE_VERSION=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_BONE_VERSION" >&5
13 kx $as_echo "$ac_cv_define_BONE_VERSION" >&6; }
13 kx if test "$ac_cv_define_BONE_VERSION" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_BONE_VERSION 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx eolstr="\\n"
13 kx osver=`uname -r`
13 kx proc_mutex_is_global=1
13 kx OBJECTS_PLATFORM='$(OBJECTS_beos)'
13 kx case $osver in
13 kx 5.0.4)
13 kx file_as_socket="1"
13 kx ;;
13 kx *)
13 kx file_as_socket="0"
13 kx ;;
13 kx esac
13 kx ;;
13 kx *apple-darwin*)
13 kx ac_cv_func_fdatasync="no" # Mac OS X wrongly reports it has fdatasync()
13 kx OSDIR="unix"
13 kx eolstr="\\n"
13 kx ;;
13 kx *os390)
13 kx OSDIR="os390"
13 kx OBJECTS_PLATFORM='$(OBJECTS_os390)'
13 kx eolstr="\\n"
13 kx ;;
13 kx *os400)
13 kx OSDIR="as400"
13 kx eolstr="\\n"
13 kx ;;
13 kx *mingw*)
13 kx OSDIR="win32"
13 kx enable_threads="system_threads"
13 kx eolstr="\\r\\n"
13 kx file_as_socket=0
13 kx proc_mutex_is_global=1
13 kx OBJECTS_PLATFORM='$(OBJECTS_win32)'
13 kx ;;
13 kx *cygwin*)
13 kx OSDIR="unix"
13 kx enable_threads="no"
13 kx eolstr="\\n"
13 kx ;;
13 kx *hpux10* )
13 kx enable_threads="no"
13 kx OSDIR="unix"
13 kx eolstr="\\n"
13 kx ;;
13 kx *darwin* )
13 kx ac_cv_func_fdatasync="no" # Mac OS X wrongly reports it has fdatasync()
13 kx OSDIR="unix"
13 kx eolstr="\\n"
13 kx ;;
13 kx *)
13 kx OSDIR="unix"
13 kx eolstr="\\n"
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx # Check whether LFS has explicitly been disabled
13 kx # Check whether --enable-lfs was given.
13 kx if test "${enable_lfs+set}" = set; then :
13 kx enableval=$enable_lfs; apr_lfs_choice=$enableval
13 kx else
13 kx apr_lfs_choice=yes
13 kx fi
13 kx
13 kx
13 kx if test "$apr_lfs_choice" = "yes"; then
13 kx # Check whether the transitional LFS API is sufficient
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
13 kx $as_echo_n "checking whether to enable -D_LARGEFILE64_SOURCE... " >&6; }
13 kx if ${apr_cv_use_lfs64+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_save_CPPFLAGS=$CPPFLAGS
13 kx CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_use_lfs64=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/types.h>
13 kx #include <sys/stat.h>
13 kx #include <fcntl.h>
13 kx #include <stdlib.h>
13 kx #include <stdio.h>
13 kx #include <unistd.h>
13 kx
13 kx void main(void)
13 kx {
13 kx int fd, ret = 0;
13 kx struct stat64 st;
13 kx off64_t off = 4242;
13 kx
13 kx if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
13 kx exit(1);
13 kx if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY, 0644)) < 0)
13 kx exit(2);
13 kx if (ftruncate64(fd, off) != 0)
13 kx ret = 3;
13 kx else if (fstat64(fd, &st) != 0 || st.st_size != off)
13 kx ret = 4;
13 kx else if (lseek64(fd, off, SEEK_SET) != off)
13 kx ret = 5;
13 kx else if (close(fd) != 0)
13 kx ret = 6;
13 kx else if (lstat64("conftest.lfs", &st) != 0 || st.st_size != off)
13 kx ret = 7;
13 kx else if (stat64("conftest.lfs", &st) != 0 || st.st_size != off)
13 kx ret = 8;
13 kx unlink("conftest.lfs");
13 kx
13 kx exit(ret);
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_use_lfs64=yes
13 kx else
13 kx apr_cv_use_lfs64=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx CPPFLAGS=$apr_save_CPPFLAGS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_use_lfs64" >&5
13 kx $as_echo "$apr_cv_use_lfs64" >&6; }
13 kx if test "$apr_cv_use_lfs64" = "yes"; then
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_LARGEFILE64_SOURCE\""
13 kx CPPFLAGS="-D_LARGEFILE64_SOURCE"
13 kx else
13 kx apr_addto_bugger="-D_LARGEFILE64_SOURCE"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx fi
13 kx
13 kx # Check whether --enable-nonportable-atomics was given.
13 kx if test "${enable_nonportable_atomics+set}" = set; then :
13 kx enableval=$enable_nonportable_atomics; if test $enableval = yes; then
13 kx force_generic_atomics=no
13 kx else
13 kx force_generic_atomics=yes
13 kx fi
13 kx
13 kx else
13 kx case $host_cpu in
13 kx i[456]86) force_generic_atomics=yes ;;
13 kx *) force_generic_atomics=no
13 kx case $host in
13 kx *solaris2.10*)
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <atomic.h>
13 kx int
13 kx main ()
13 kx {
13 kx void *ptr = NULL; atomic_cas_ptr(&ptr, NULL, NULL);
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx else
13 kx force_generic_atomics=yes
13 kx
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx if test $force_generic_atomics = yes; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: nonportable atomic support disabled, system needs Patch-ID 118884 or 118885" >&5
13 kx $as_echo "$as_me: nonportable atomic support disabled, system needs Patch-ID 118884 or 118885" >&6;}
13 kx fi
13 kx ;;
13 kx esac
13 kx ;;
13 kx esac
13 kx
13 kx fi
13 kx
13 kx
13 kx if test $force_generic_atomics = yes; then
13 kx
13 kx $as_echo "#define USE_ATOMICS_GENERIC 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # For some platforms we need a version string which allows easy numeric
13 kx # comparisons.
13 kx case $host in
13 kx *freebsd*)
13 kx if test -x /sbin/sysctl; then
13 kx os_version=`/sbin/sysctl -n kern.osreldate`
13 kx else
13 kx os_version=000000
13 kx fi
13 kx ;;
13 kx *linux*)
13 kx os_major=`uname -r | sed -e 's/\([1-9][0-9]*\)\..*/\1/'`
13 kx os_minor=`uname -r | sed -e 's/[1-9][0-9]*\.\([0-9]\+\)\..*/\1/'`
13 kx if test $os_major -lt 2 -o \( $os_major -eq 2 -a $os_minor -lt 4 \); then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&5
13 kx $as_echo "$as_me: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&2;}
13 kx os_pre24linux=1
13 kx else
13 kx os_pre24linux=0
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: Configured for Linux $os_major.$os_minor" >&5
13 kx $as_echo "$as_me: Configured for Linux $os_major.$os_minor" >&6;}
13 kx fi
13 kx ;;
13 kx *os390)
13 kx os_version=`uname -r | sed -e 's/\.//g'`
13 kx ;;
13 kx *)
13 kx os_version=OS_VERSION_IS_NOT_SET
13 kx ;;
13 kx esac
13 kx
13 kx echo "${nl}Checking for libraries..."
13 kx
13 kx case $host in
13 kx *mingw*)
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock\""
13 kx LIBS="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
13 kx else
13 kx apr_addto_bugger="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx ac_cv_func_CreateFileMapping=yes
13 kx ;;
13 kx *)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13 kx $as_echo_n "checking for library containing gethostbyname... " >&6; }
13 kx if ${ac_cv_search_gethostbyname+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char gethostbyname ();
13 kx int
13 kx main ()
13 kx {
13 kx return gethostbyname ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' nsl; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_gethostbyname=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_gethostbyname+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_gethostbyname+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_gethostbyname=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13 kx $as_echo "$ac_cv_search_gethostbyname" >&6; }
13 kx ac_res=$ac_cv_search_gethostbyname
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
13 kx $as_echo_n "checking for library containing gethostname... " >&6; }
13 kx if ${ac_cv_search_gethostname+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char gethostname ();
13 kx int
13 kx main ()
13 kx {
13 kx return gethostname ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' nsl; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_gethostname=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_gethostname+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_gethostname+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_gethostname=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
13 kx $as_echo "$ac_cv_search_gethostname" >&6; }
13 kx ac_res=$ac_cv_search_gethostname
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13 kx $as_echo_n "checking for library containing socket... " >&6; }
13 kx if ${ac_cv_search_socket+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char socket ();
13 kx int
13 kx main ()
13 kx {
13 kx return socket ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' socket; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_socket=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_socket+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_socket+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_socket=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13 kx $as_echo "$ac_cv_search_socket" >&6; }
13 kx ac_res=$ac_cv_search_socket
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13 kx $as_echo_n "checking for library containing crypt... " >&6; }
13 kx if ${ac_cv_search_crypt+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char crypt ();
13 kx int
13 kx main ()
13 kx {
13 kx return crypt ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' crypt ufc; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_crypt=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_crypt+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_crypt+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_crypt=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13 kx $as_echo "$ac_cv_search_crypt" >&6; }
13 kx ac_res=$ac_cv_search_crypt
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltruerand" >&5
13 kx $as_echo_n "checking for main in -ltruerand... " >&6; }
13 kx if ${ac_cv_lib_truerand_main+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-ltruerand $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx return main ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_truerand_main=yes
13 kx else
13 kx ac_cv_lib_truerand_main=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_truerand_main" >&5
13 kx $as_echo "$ac_cv_lib_truerand_main" >&6; }
13 kx if test "x$ac_cv_lib_truerand_main" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_LIBTRUERAND 1
13 kx _ACEOF
13 kx
13 kx LIBS="-ltruerand $LIBS"
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing modf" >&5
13 kx $as_echo_n "checking for library containing modf... " >&6; }
13 kx if ${ac_cv_search_modf+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char modf ();
13 kx int
13 kx main ()
13 kx {
13 kx return modf ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' m; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_modf=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_modf+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_modf+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_modf=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_modf" >&5
13 kx $as_echo "$ac_cv_search_modf" >&6; }
13 kx ac_res=$ac_cv_search_modf
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx fi
13 kx
13 kx ;;
13 kx esac
13 kx
13 kx echo "${nl}Checking for Threads..."
13 kx
13 kx if test -z "$enable_threads"; then
13 kx # Check whether --enable-threads was given.
13 kx if test "${enable_threads+set}" = set; then :
13 kx enableval=$enable_threads; enable_threads=$enableval
13 kx else
13 kx
13 kx if test "$GCC" = "yes"; then
13 kx SAVE_FL="$CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS -w"
13 kx for ac_header in pthread.h
13 kx do :
13 kx ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_pthread_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_PTHREAD_H 1
13 kx _ACEOF
13 kx enable_threads="pthread"
13 kx else
13 kx enable_threads="no"
13 kx fi
13 kx
13 kx done
13 kx
13 kx CPPFLAGS="$SAVE_FL"
13 kx else
13 kx for ac_header in pthread.h
13 kx do :
13 kx ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_pthread_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_PTHREAD_H 1
13 kx _ACEOF
13 kx enable_threads="pthread"
13 kx else
13 kx enable_threads="no"
13 kx fi
13 kx
13 kx done
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx if test "$enable_threads" = "no"; then
13 kx threads="0"
13 kx pthreadh="0"
13 kx pthreadser="0"
13 kx else
13 kx if test "$enable_threads" = "pthread"; then
13 kx # We have specified pthreads for our threading library, just make sure
13 kx # that we have everything we need
13 kx
13 kx apr_pthsv_CFLAGS="$CFLAGS"
13 kx apr_pthsv_LIBS="$LIBS"
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
13 kx $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
13 kx if ${apr_cv_pthreads_cflags+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx apr_ptc_cflags=$CFLAGS
13 kx for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
13 kx CFLAGS=$apr_ptc_cflags
13 kx test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_p_t_r=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <pthread.h>
13 kx #include <stddef.h>
13 kx
13 kx void *thread_routine(void *data) {
13 kx return data;
13 kx }
13 kx
13 kx int main() {
13 kx pthread_t thd;
13 kx pthread_mutexattr_t mattr;
13 kx pthread_once_t once_init = PTHREAD_ONCE_INIT;
13 kx int data = 1;
13 kx pthread_mutexattr_init(&mattr);
13 kx return pthread_create(&thd, NULL, thread_routine, &data);
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_p_t_r=yes
13 kx else
13 kx apr_p_t_r=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx
13 kx if test $apr_p_t_r = yes; then
13 kx
13 kx apr_cv_pthreads_cflags="$flag"
13 kx break
13 kx
13 kx fi
13 kx
13 kx
13 kx done
13 kx CFLAGS=$apr_ptc_cflags
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
13 kx $as_echo "$apr_cv_pthreads_cflags" >&6; }
13 kx
13 kx if test -n "$apr_cv_pthreads_cflags"; then
13 kx pthreads_working=yes
13 kx if test "x$apr_cv_pthreads_cflags" != "xnone"; then
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
13 kx CFLAGS="$apr_cv_pthreads_cflags"
13 kx else
13 kx apr_addto_bugger="$apr_cv_pthreads_cflags"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx fi
13 kx
13 kx # The CFLAGS may or may not be sufficient to ensure that libapr
13 kx # depends on the pthreads library: some versions of libtool
13 kx # drop -pthread when passed on the link line; some versions of
13 kx # gcc ignore -pthread when linking a shared object. So always
13 kx # try and add the relevant library to LIBS too.
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
13 kx $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
13 kx if ${apr_cv_pthreads_lib+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_ptc_libs=$LIBS
13 kx for lib in -lpthread -lpthreads -lc_r; do
13 kx LIBS="$apr_ptc_libs $lib"
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_p_t_r=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <pthread.h>
13 kx #include <stddef.h>
13 kx
13 kx void *thread_routine(void *data) {
13 kx return data;
13 kx }
13 kx
13 kx int main() {
13 kx pthread_t thd;
13 kx pthread_mutexattr_t mattr;
13 kx pthread_once_t once_init = PTHREAD_ONCE_INIT;
13 kx int data = 1;
13 kx pthread_mutexattr_init(&mattr);
13 kx return pthread_create(&thd, NULL, thread_routine, &data);
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_p_t_r=yes
13 kx else
13 kx apr_p_t_r=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx
13 kx if test $apr_p_t_r = yes; then
13 kx
13 kx apr_cv_pthreads_lib=$lib
13 kx break
13 kx
13 kx fi
13 kx
13 kx
13 kx done
13 kx LIBS=$apr_ptc_libs
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
13 kx $as_echo "$apr_cv_pthreads_lib" >&6; }
13 kx
13 kx if test -n "$apr_cv_pthreads_lib"; then
13 kx pthreads_working=yes
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\""
13 kx LIBS="$apr_cv_pthreads_lib"
13 kx else
13 kx apr_addto_bugger="$apr_cv_pthreads_lib"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx
13 kx if test "$pthreads_working" = "yes"; then
13 kx threads_result="POSIX Threads found"
13 kx else
13 kx threads_result="POSIX Threads not found"
13 kx fi
13 kx
13 kx
13 kx if test "$GCC" = "yes"; then
13 kx SAVE_FL="$CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS -w"
13 kx for ac_header in pthread.h
13 kx do :
13 kx ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_pthread_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_PTHREAD_H 1
13 kx _ACEOF
13 kx
13 kx threads="1"
13 kx pthreadh="1"
13 kx pthreadser="1"
13 kx else
13 kx
13 kx threads="0"
13 kx pthreadh="0"
13 kx pthreadser="0"
13 kx
13 kx CFLAGS="$apr_pthsv_CFLAGS"
13 kx LIBS="$apr_pthsv_LIBS"
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx CPPFLAGS="$SAVE_FL"
13 kx else
13 kx for ac_header in pthread.h
13 kx do :
13 kx ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_pthread_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_PTHREAD_H 1
13 kx _ACEOF
13 kx
13 kx threads="1"
13 kx pthreadh="1"
13 kx pthreadser="1"
13 kx else
13 kx
13 kx threads="0"
13 kx pthreadh="0"
13 kx pthreadser="0"
13 kx
13 kx CFLAGS="$apr_pthsv_CFLAGS"
13 kx LIBS="$apr_pthsv_LIBS"
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx fi
13 kx
13 kx elif test "$enable_threads" = "system_threads"; then
13 kx threads="1"
13 kx pthreadh="0"
13 kx pthreadser="0"
13 kx else
13 kx # We basically specified that we wanted threads, but not how to implement
13 kx # them. In this case, just look for pthreads. In the future, we can check
13 kx # for other threading libraries as well.
13 kx
13 kx apr_pthsv_CFLAGS="$CFLAGS"
13 kx apr_pthsv_LIBS="$LIBS"
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
13 kx $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
13 kx if ${apr_cv_pthreads_cflags+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx apr_ptc_cflags=$CFLAGS
13 kx for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
13 kx CFLAGS=$apr_ptc_cflags
13 kx test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_p_t_r=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <pthread.h>
13 kx #include <stddef.h>
13 kx
13 kx void *thread_routine(void *data) {
13 kx return data;
13 kx }
13 kx
13 kx int main() {
13 kx pthread_t thd;
13 kx pthread_mutexattr_t mattr;
13 kx pthread_once_t once_init = PTHREAD_ONCE_INIT;
13 kx int data = 1;
13 kx pthread_mutexattr_init(&mattr);
13 kx return pthread_create(&thd, NULL, thread_routine, &data);
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_p_t_r=yes
13 kx else
13 kx apr_p_t_r=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx
13 kx if test $apr_p_t_r = yes; then
13 kx
13 kx apr_cv_pthreads_cflags="$flag"
13 kx break
13 kx
13 kx fi
13 kx
13 kx
13 kx done
13 kx CFLAGS=$apr_ptc_cflags
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
13 kx $as_echo "$apr_cv_pthreads_cflags" >&6; }
13 kx
13 kx if test -n "$apr_cv_pthreads_cflags"; then
13 kx pthreads_working=yes
13 kx if test "x$apr_cv_pthreads_cflags" != "xnone"; then
13 kx
13 kx if test "x$CFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
13 kx CFLAGS="$apr_cv_pthreads_cflags"
13 kx else
13 kx apr_addto_bugger="$apr_cv_pthreads_cflags"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
13 kx CFLAGS="$CFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx fi
13 kx
13 kx # The CFLAGS may or may not be sufficient to ensure that libapr
13 kx # depends on the pthreads library: some versions of libtool
13 kx # drop -pthread when passed on the link line; some versions of
13 kx # gcc ignore -pthread when linking a shared object. So always
13 kx # try and add the relevant library to LIBS too.
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
13 kx $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
13 kx if ${apr_cv_pthreads_lib+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_ptc_libs=$LIBS
13 kx for lib in -lpthread -lpthreads -lc_r; do
13 kx LIBS="$apr_ptc_libs $lib"
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_p_t_r=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <pthread.h>
13 kx #include <stddef.h>
13 kx
13 kx void *thread_routine(void *data) {
13 kx return data;
13 kx }
13 kx
13 kx int main() {
13 kx pthread_t thd;
13 kx pthread_mutexattr_t mattr;
13 kx pthread_once_t once_init = PTHREAD_ONCE_INIT;
13 kx int data = 1;
13 kx pthread_mutexattr_init(&mattr);
13 kx return pthread_create(&thd, NULL, thread_routine, &data);
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_p_t_r=yes
13 kx else
13 kx apr_p_t_r=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx
13 kx if test $apr_p_t_r = yes; then
13 kx
13 kx apr_cv_pthreads_lib=$lib
13 kx break
13 kx
13 kx fi
13 kx
13 kx
13 kx done
13 kx LIBS=$apr_ptc_libs
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
13 kx $as_echo "$apr_cv_pthreads_lib" >&6; }
13 kx
13 kx if test -n "$apr_cv_pthreads_lib"; then
13 kx pthreads_working=yes
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\""
13 kx LIBS="$apr_cv_pthreads_lib"
13 kx else
13 kx apr_addto_bugger="$apr_cv_pthreads_lib"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx
13 kx if test "$pthreads_working" = "yes"; then
13 kx threads_result="POSIX Threads found"
13 kx else
13 kx threads_result="POSIX Threads not found"
13 kx fi
13 kx
13 kx
13 kx if test "$GCC" = "yes"; then
13 kx SAVE_FL="$CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS -w"
13 kx for ac_header in pthread.h
13 kx do :
13 kx ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_pthread_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_PTHREAD_H 1
13 kx _ACEOF
13 kx
13 kx threads="1"
13 kx pthreadh="1"
13 kx pthreadser="1"
13 kx else
13 kx
13 kx threads="0"
13 kx pthreadser="0"
13 kx pthreadh="0"
13 kx
13 kx CFLAGS="$apr_pthsv_CFLAGS"
13 kx LIBS="$apr_pthsv_LIBS"
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx CPPFLAGS="$SAVE_FL"
13 kx else
13 kx for ac_header in pthread.h
13 kx do :
13 kx ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_pthread_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_PTHREAD_H 1
13 kx _ACEOF
13 kx
13 kx threads="1"
13 kx pthreadh="1"
13 kx pthreadser="1"
13 kx else
13 kx
13 kx threads="0"
13 kx pthreadser="0"
13 kx pthreadh="0"
13 kx
13 kx CFLAGS="$apr_pthsv_CFLAGS"
13 kx LIBS="$apr_pthsv_LIBS"
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx fi
13 kx
13 kx fi
13 kx if test "$pthreadh" = "1"; then
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific takes two arguments" >&5
13 kx $as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; }
13 kx if ${ac_cv_pthread_getspecific_two_args+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <pthread.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx pthread_key_t key;
13 kx void *tmp;
13 kx pthread_getspecific(key,&tmp);
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx ac_cv_pthread_getspecific_two_args=yes
13 kx
13 kx else
13 kx
13 kx ac_cv_pthread_getspecific_two_args=no
13 kx
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_getspecific_two_args" >&5
13 kx $as_echo "$ac_cv_pthread_getspecific_two_args" >&6; }
13 kx
13 kx if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
13 kx
13 kx $as_echo "#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getdetachstate takes one argument" >&5
13 kx $as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; }
13 kx if ${ac_cv_pthread_attr_getdetachstate_one_arg+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <pthread.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx pthread_attr_t *attr;
13 kx pthread_attr_getdetachstate(attr);
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx ac_cv_pthread_attr_getdetachstate_one_arg=yes
13 kx
13 kx else
13 kx
13 kx ac_cv_pthread_attr_getdetachstate_one_arg=no
13 kx
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
13 kx $as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; }
13 kx
13 kx if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
13 kx
13 kx $as_echo "#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex support" >&5
13 kx $as_echo_n "checking for recursive mutex support... " >&6; }
13 kx if ${apr_cv_mutex_recursive+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_mutex_recursive=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <sys/types.h>
13 kx #include <pthread.h>
13 kx #include <stdlib.h>
13 kx
13 kx int main() {
13 kx pthread_mutexattr_t attr;
13 kx pthread_mutex_t m;
13 kx
13 kx exit (pthread_mutexattr_init(&attr)
13 kx || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
13 kx || pthread_mutex_init(&m, &attr));
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_mutex_recursive=yes
13 kx else
13 kx apr_cv_mutex_recursive=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_recursive" >&5
13 kx $as_echo "$apr_cv_mutex_recursive" >&6; }
13 kx
13 kx if test "$apr_cv_mutex_recursive" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx for ac_func in pthread_key_delete pthread_rwlock_init \
13 kx pthread_attr_setguardsize pthread_yield
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx
13 kx if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
13 kx $as_echo_n "checking for pthread_rwlock_t... " >&6; }
13 kx if ${apr_cv_type_rwlock_t+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <sys/types.h>
13 kx #include <pthread.h>
13 kx int
13 kx main ()
13 kx {
13 kx pthread_rwlock_t *rwlock;
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx apr_cv_type_rwlock_t=yes
13 kx else
13 kx apr_cv_type_rwlock_t=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_type_rwlock_t" >&5
13 kx $as_echo "$apr_cv_type_rwlock_t" >&6; }
13 kx if test "$apr_cv_type_rwlock_t" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_PTHREAD_RWLOCKS 1" >>confdefs.h
13 kx
13 kx fi
13 kx fi
13 kx
13 kx if test "$ac_cv_func_pthread_yield" = "no"; then
13 kx for ac_header in sched.h
13 kx do :
13 kx ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_sched_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_SCHED_H 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx for ac_func in sched_yield
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
13 kx if test "x$ac_cv_func_sched_yield" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_SCHED_YIELD 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx fi
13 kx fi
13 kx fi
13 kx
13 kx ac_cv_define_READDIR_IS_THREAD_SAFE=yes
13 kx ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no
13 kx ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no
13 kx ac_cv_define_GETSERVBYNAME_IS_THREAD_SAFE=no
13 kx if test "$threads" = "1"; then
13 kx echo "APR will use threads"
13 kx
13 kx $as_echo "#define READDIR_IS_THREAD_SAFE 1" >>confdefs.h
13 kx
13 kx if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc_r" >&5
13 kx $as_echo_n "checking for gethostbyname in -lc_r... " >&6; }
13 kx if ${ac_cv_lib_c_r_gethostbyname+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-lc_r $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char gethostbyname ();
13 kx int
13 kx main ()
13 kx {
13 kx return gethostbyname ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_c_r_gethostbyname=yes
13 kx else
13 kx ac_cv_lib_c_r_gethostbyname=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyname" >&5
13 kx $as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; }
13 kx if test "x$ac_cv_lib_c_r_gethostbyname" = xyes; then :
13 kx apr_gethostbyname_is_thread_safe=yes
13 kx fi
13 kx
13 kx fi
13 kx if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
13 kx
13 kx $as_echo "#define GETHOSTBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
13 kx
13 kx fi
13 kx if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lc_r" >&5
13 kx $as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; }
13 kx if ${ac_cv_lib_c_r_gethostbyaddr+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-lc_r $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char gethostbyaddr ();
13 kx int
13 kx main ()
13 kx {
13 kx return gethostbyaddr ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_c_r_gethostbyaddr=yes
13 kx else
13 kx ac_cv_lib_c_r_gethostbyaddr=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
13 kx $as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; }
13 kx if test "x$ac_cv_lib_c_r_gethostbyaddr" = xyes; then :
13 kx apr_gethostbyaddr_is_thread_safe=yes
13 kx fi
13 kx
13 kx fi
13 kx if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
13 kx
13 kx $as_echo "#define GETHOSTBYADDR_IS_THREAD_SAFE 1" >>confdefs.h
13 kx
13 kx fi
13 kx if test "x$apr_getservbyname_is_thread_safe" = "x"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in -lc_r" >&5
13 kx $as_echo_n "checking for getservbyname in -lc_r... " >&6; }
13 kx if ${ac_cv_lib_c_r_getservbyname+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-lc_r $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char getservbyname ();
13 kx int
13 kx main ()
13 kx {
13 kx return getservbyname ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_c_r_getservbyname=yes
13 kx else
13 kx ac_cv_lib_c_r_getservbyname=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_getservbyname" >&5
13 kx $as_echo "$ac_cv_lib_c_r_getservbyname" >&6; }
13 kx if test "x$ac_cv_lib_c_r_getservbyname" = xyes; then :
13 kx apr_getservbyname_is_thread_safe=yes
13 kx fi
13 kx
13 kx fi
13 kx if test "$apr_getservbyname_is_thread_safe" = "yes"; then
13 kx
13 kx $as_echo "#define GETSERVBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
13 kx
13 kx fi
13 kx for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx else
13 kx echo "APR will be non-threaded"
13 kx fi
13 kx
13 kx
13 kx # Check whether --with-efence was given.
13 kx if test "${with_efence+set}" = set; then :
13 kx withval=$with_efence; apr_efence_dir="$withval"
13 kx if test "$apr_efence_dir" != "yes"; then
13 kx
13 kx if test "x$LDFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$apr_efence_dir/lib\""
13 kx LDFLAGS="-L$apr_efence_dir/lib"
13 kx else
13 kx apr_addto_bugger="-L$apr_efence_dir/lib"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LDFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
13 kx LDFLAGS="$LDFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx if test "x$apr_platform_runtime_link_flag" != "x"; then
13 kx
13 kx if test "x$LDFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\""
13 kx LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
13 kx else
13 kx apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LDFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
13 kx LDFLAGS="$LDFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
13 kx $as_echo_n "checking for malloc in -lefence... " >&6; }
13 kx if ${ac_cv_lib_efence_malloc+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-lefence $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char malloc ();
13 kx int
13 kx main ()
13 kx {
13 kx return malloc ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_efence_malloc=yes
13 kx else
13 kx ac_cv_lib_efence_malloc=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
13 kx $as_echo "$ac_cv_lib_efence_malloc" >&6; }
13 kx if test "x$ac_cv_lib_efence_malloc" = xyes; then :
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-lefence\""
13 kx LIBS="-lefence"
13 kx else
13 kx apr_addto_bugger="-lefence"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx else
13 kx as_fn_error $? "Electric Fence requested but not detected" "$LINENO" 5
13 kx fi
13 kx
13 kx
13 kx fi
13 kx
13 kx
13 kx
13 kx # Check whether --with-valgrind was given.
13 kx if test "${with_valgrind+set}" = set; then :
13 kx withval=$with_valgrind; if test "$withval" != no; then
13 kx if test "$withval" = yes; then
13 kx withval=/usr/include/valgrind
13 kx fi
13 kx
13 kx if test "x$CPPFLAGS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I$withval\""
13 kx CPPFLAGS="-I$withval"
13 kx else
13 kx apr_addto_bugger="-I$withval"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $CPPFLAGS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
13 kx CPPFLAGS="$CPPFLAGS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx for ac_header in valgrind.h memcheck.h
13 kx do :
13 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13 kx ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:valgrind.h header:memcheck.h; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx
13 kx $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
13 kx
13 kx else
13 kx :
13 kx as_fn_error $? "valgrind headers not found" "$LINENO" 5
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx
13 kx for ac_func in sigsuspend
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
13 kx if test "x$ac_cv_func_sigsuspend" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_SIGSUSPEND 1
13 kx _ACEOF
13 kx have_sigsuspend="1"
13 kx else
13 kx have_sigsuspend="0"
13 kx fi
13 kx done
13 kx
13 kx for ac_func in sigwait
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
13 kx if test "x$ac_cv_func_sigwait" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_SIGWAIT 1
13 kx _ACEOF
13 kx have_sigwait="1"
13 kx else
13 kx have_sigwait="0"
13 kx fi
13 kx done
13 kx
13 kx case $host in
13 kx *alpha*-dec-osf* )
13 kx have_sigwait="1"
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx for ac_func in poll kqueue port_create
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx
13 kx # Check for the Linux epoll interface; epoll* may be available in libc
13 kx # but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support" >&5
13 kx $as_echo_n "checking for epoll support... " >&6; }
13 kx if ${apr_cv_epoll+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_epoll=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/epoll.h>
13 kx #include <unistd.h>
13 kx
13 kx int main()
13 kx {
13 kx return epoll_create(5) == -1;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_epoll=yes
13 kx else
13 kx apr_cv_epoll=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll" >&5
13 kx $as_echo "$apr_cv_epoll" >&6; }
13 kx
13 kx if test "$apr_cv_epoll" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx # test for epoll_create1
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
13 kx $as_echo_n "checking for epoll_create1 support... " >&6; }
13 kx if ${apr_cv_epoll_create1+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_epoll_create1=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/epoll.h>
13 kx #include <unistd.h>
13 kx
13 kx int main()
13 kx {
13 kx return epoll_create1(0) == -1;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_epoll_create1=yes
13 kx else
13 kx apr_cv_epoll_create1=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
13 kx $as_echo "$apr_cv_epoll_create1" >&6; }
13 kx
13 kx if test "$apr_cv_epoll_create1" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx # test for dup3
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
13 kx $as_echo_n "checking for dup3 support... " >&6; }
13 kx if ${apr_cv_dup3+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_dup3=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <unistd.h>
13 kx
13 kx int main()
13 kx {
13 kx return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_dup3=yes
13 kx else
13 kx apr_cv_dup3=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
13 kx $as_echo "$apr_cv_dup3" >&6; }
13 kx
13 kx if test "$apr_cv_dup3" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_DUP3 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx # Test for accept4(). Create a non-blocking socket, bind it to
13 kx # an unspecified port & address (kernel picks), and attempt to
13 kx # call accept4() on it. If the syscall is wired up (i.e. the
13 kx # kernel is new enough), it should return EAGAIN.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
13 kx $as_echo_n "checking for accept4 support... " >&6; }
13 kx if ${apr_cv_accept4+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_accept4=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/types.h>
13 kx #include <sys/socket.h>
13 kx #include <sys/wait.h>
13 kx #include <netinet/in.h>
13 kx #include <netinet/tcp.h>
13 kx #include <errno.h>
13 kx #include <string.h>
13 kx #include <unistd.h>
13 kx #include <fcntl.h>
13 kx
13 kx int main(int argc, char **argv)
13 kx {
13 kx int fd, flags;
13 kx struct sockaddr_in sin;
13 kx
13 kx if ((fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
13 kx return 1;
13 kx flags = fcntl(fd, F_GETFL);
13 kx if (flags == -1 || fcntl(fd, F_SETFL, flags|O_NONBLOCK) == -1)
13 kx return 5;
13 kx
13 kx memset(&sin, 0, sizeof sin);
13 kx sin.sin_family = AF_INET;
13 kx
13 kx if (bind(fd, (struct sockaddr *) &sin, sizeof sin) == -1)
13 kx return 2;
13 kx
13 kx if (listen(fd, 5) == -1)
13 kx return 3;
13 kx
13 kx if (accept4(fd, NULL, 0, SOCK_NONBLOCK) == 0
13 kx || errno == EAGAIN || errno == EWOULDBLOCK)
13 kx return 0;
13 kx
13 kx return 4;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_accept4=yes
13 kx else
13 kx apr_cv_accept4=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
13 kx $as_echo "$apr_cv_accept4" >&6; }
13 kx
13 kx if test "$apr_cv_accept4" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
13 kx $as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
13 kx if ${apr_cv_sock_cloexec+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_sock_cloexec=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/types.h>
13 kx #include <sys/socket.h>
13 kx
13 kx int main()
13 kx {
13 kx return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_sock_cloexec=yes
13 kx else
13 kx apr_cv_sock_cloexec=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
13 kx $as_echo "$apr_cv_sock_cloexec" >&6; }
13 kx
13 kx if test "$apr_cv_sock_cloexec" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx for ac_func in fdatasync
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13 kx if test "x$ac_cv_func_fdatasync" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_FDATASYNC 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx
13 kx # test for epoll_create1
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
13 kx $as_echo_n "checking for epoll_create1 support... " >&6; }
13 kx if ${apr_cv_epoll_create1+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_epoll_create1=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/epoll.h>
13 kx #include <unistd.h>
13 kx
13 kx int main()
13 kx {
13 kx return epoll_create1(0) == -1;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_epoll_create1=yes
13 kx else
13 kx apr_cv_epoll_create1=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
13 kx $as_echo "$apr_cv_epoll_create1" >&6; }
13 kx
13 kx if test "$apr_cv_epoll_create1" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx # Check for z/OS async i/o support.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asio -> message queue support" >&5
13 kx $as_echo_n "checking for asio -> message queue support... " >&6; }
13 kx if ${apr_cv_aio_msgq+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_aio_msgq=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #define _AIO_OS390
13 kx #include <aio.h>
13 kx
13 kx int main()
13 kx {
13 kx struct aiocb a;
13 kx
13 kx a.aio_notifytype = AIO_MSGQ; /* use IPC message queue for notification */
13 kx
13 kx return aio_cancel(2, NULL) == -1;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_aio_msgq=yes
13 kx else
13 kx apr_cv_aio_msgq=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_aio_msgq" >&5
13 kx $as_echo "$apr_cv_aio_msgq" >&6; }
13 kx
13 kx if test "$apr_cv_aio_msgq" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_AIO_MSGQ 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx # test for dup3
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
13 kx $as_echo_n "checking for dup3 support... " >&6; }
13 kx if ${apr_cv_dup3+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_dup3=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <unistd.h>
13 kx
13 kx int main()
13 kx {
13 kx return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_dup3=yes
13 kx else
13 kx apr_cv_dup3=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
13 kx $as_echo "$apr_cv_dup3" >&6; }
13 kx
13 kx if test "$apr_cv_dup3" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_DUP3 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx # test for accept4
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
13 kx $as_echo_n "checking for accept4 support... " >&6; }
13 kx if ${apr_cv_accept4+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_accept4=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <unistd.h>
13 kx #include <sys/types.h>
13 kx #include <sys/socket.h>
13 kx #include <sys/un.h>
13 kx #include <sys/wait.h>
13 kx #include <signal.h>
13 kx #include <errno.h>
13 kx
13 kx #define A4_SOCK "./apr_accept4_test_socket"
13 kx
13 kx int main()
13 kx {
13 kx pid_t pid;
13 kx int fd;
13 kx struct sockaddr_un loc, rem;
13 kx socklen_t rem_sz;
13 kx
13 kx if ((pid = fork())) {
13 kx int status;
13 kx
13 kx unlink(A4_SOCK);
13 kx
13 kx if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
13 kx goto cleanup_failure2;
13 kx
13 kx loc.sun_family = AF_UNIX;
13 kx strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
13 kx
13 kx if (bind(fd, (struct sockaddr *) &loc,
13 kx sizeof(struct sockaddr_un)) == -1)
13 kx goto cleanup_failure;
13 kx
13 kx if (listen(fd, 5) == -1)
13 kx goto cleanup_failure;
13 kx
13 kx rem_sz = sizeof(struct sockaddr_un);
13 kx if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
13 kx goto cleanup_failure;
13 kx }
13 kx else {
13 kx close(fd);
13 kx waitpid(pid, &status, 0);
13 kx unlink(A4_SOCK);
13 kx return 0;
13 kx }
13 kx
13 kx cleanup_failure:
13 kx close(fd);
13 kx cleanup_failure2:
13 kx kill(pid, SIGKILL);
13 kx waitpid(pid, &status, 0);
13 kx unlink(A4_SOCK);
13 kx return 1;
13 kx }
13 kx else {
13 kx if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
13 kx return 1; /* this will be bad: we'll hang */
13 kx
13 kx loc.sun_family = AF_UNIX;
13 kx strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
13 kx
13 kx while(connect(fd, (struct sockaddr *) &loc,
13 kx sizeof(struct sockaddr_un)) == -1 &&
13 kx (errno==ENOENT || errno==ECONNREFUSED))
13 kx ;
13 kx
13 kx close(fd);
13 kx return 0;
13 kx }
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_accept4=yes
13 kx else
13 kx apr_cv_accept4=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
13 kx $as_echo "$apr_cv_accept4" >&6; }
13 kx
13 kx if test "$apr_cv_accept4" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
13 kx $as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
13 kx if ${apr_cv_sock_cloexec+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_sock_cloexec=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/types.h>
13 kx #include <sys/socket.h>
13 kx
13 kx int main()
13 kx {
13 kx return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_sock_cloexec=yes
13 kx else
13 kx apr_cv_sock_cloexec=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
13 kx $as_echo "$apr_cv_sock_cloexec" >&6; }
13 kx
13 kx if test "$apr_cv_sock_cloexec" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx
13 kx echo "${nl}Checking for Shared Memory Support..."
13 kx
13 kx # The real-time POSIX extensions (e.g. shm_*, sem_*) may only
13 kx # be available if linking against librt.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
13 kx $as_echo_n "checking for library containing shm_open... " >&6; }
13 kx if ${ac_cv_search_shm_open+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char shm_open ();
13 kx int
13 kx main ()
13 kx {
13 kx return shm_open ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' rt; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_shm_open=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_shm_open+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_shm_open+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_shm_open=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
13 kx $as_echo "$ac_cv_search_shm_open" >&6; }
13 kx ac_res=$ac_cv_search_shm_open
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx fi
13 kx
13 kx
13 kx case $host in
13 kx *-sysv*)
13 kx ac_includes_default="$ac_includes_default
13 kx #if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
13 kx # include <sys/mutex.h>
13 kx #endif";;
13 kx esac
13 kx
13 kx for ac_header in sys/types.h sys/mman.h sys/ipc.h sys/mutex.h \
13 kx sys/shm.h sys/file.h sys/socket.h kernel/OS.h os2.h windows.h
13 kx do :
13 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13 kx ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx for ac_header in net/if.h
13 kx do :
13 kx ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
13 kx #ifdef HAVE_SYS_SOCKET_H
13 kx #include <sys/socket.h>
13 kx #endif
13 kx #include <net/if.h>
13 kx
13 kx "
13 kx if test "x$ac_cv_header_net_if_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_NET_IF_H 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
13 kx create_area mprotect
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON in sys/mman.h" >&5
13 kx $as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; }
13 kx if ${ac_cv_define_MAP_ANON+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/mman.h>
13 kx #ifdef MAP_ANON
13 kx YES_IS_DEFINED
13 kx #endif
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13 kx ac_cv_define_MAP_ANON=yes
13 kx else
13 kx ac_cv_define_MAP_ANON=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_MAP_ANON" >&5
13 kx $as_echo "$ac_cv_define_MAP_ANON" >&6; }
13 kx if test "$ac_cv_define_MAP_ANON" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_MAP_ANON 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
13 kx $as_echo_n "checking for /dev/zero... " >&6; }
13 kx if ${ac_cv_file__dev_zero+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx test "$cross_compiling" = yes &&
13 kx as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13 kx if test -r "/dev/zero"; then
13 kx ac_cv_file__dev_zero=yes
13 kx else
13 kx ac_cv_file__dev_zero=no
13 kx fi
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
13 kx $as_echo "$ac_cv_file__dev_zero" >&6; }
13 kx if test "x$ac_cv_file__dev_zero" = xyes; then :
13 kx
13 kx fi
13 kx
13 kx
13 kx # Not all systems can mmap /dev/zero (such as HP-UX). Check for that.
13 kx if test "$ac_cv_func_mmap" = "yes" &&
13 kx test "$ac_cv_file__dev_zero" = "yes"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap that can map /dev/zero" >&5
13 kx $as_echo_n "checking for mmap that can map /dev/zero... " >&6; }
13 kx if ${ac_cv_mmap__dev_zero+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx ac_cv_file__dev_zero=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <sys/types.h>
13 kx #include <sys/stat.h>
13 kx #include <fcntl.h>
13 kx #ifdef HAVE_SYS_MMAN_H
13 kx #include <sys/mman.h>
13 kx #endif
13 kx int main()
13 kx {
13 kx int fd;
13 kx void *m;
13 kx fd = open("/dev/zero", O_RDWR);
13 kx if (fd < 0) {
13 kx return 1;
13 kx }
13 kx m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
13 kx if (m == (void *)-1) { /* aka MAP_FAILED */
13 kx return 2;
13 kx }
13 kx if (munmap(m, sizeof(void*)) < 0) {
13 kx return 3;
13 kx }
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx
13 kx else
13 kx ac_cv_file__dev_zero=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mmap__dev_zero" >&5
13 kx $as_echo "$ac_cv_mmap__dev_zero" >&6; }
13 kx fi
13 kx
13 kx # Now we determine which one is our anonymous shmem preference.
13 kx haveshmgetanon="0"
13 kx havemmapzero="0"
13 kx havemmapanon="0"
13 kx ac_decision_item='anonymous shared memory allocation method'
13 kx ac_decision_msg='FAILED'
13 kx ac_decision=''
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h func:shmget func:shmat func:shmdt func:shmctl; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx haveshmgetanon="1"
13 kx
13 kx ac_decision='USE_SHMEM_SHMGET_ANON'
13 kx ac_decision_msg='SysV IPC shmget()'
13 kx ac_decision_USE_SHMEM_SHMGET_ANON=yes
13 kx ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx havemmapzero="1"
13 kx
13 kx ac_decision='USE_SHMEM_MMAP_ZERO'
13 kx ac_decision_msg='SVR4-style mmap() on /dev/zero'
13 kx ac_decision_USE_SHMEM_MMAP_ZERO=yes
13 kx ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx havemmapanon="1"
13 kx
13 kx ac_decision='USE_SHMEM_MMAP_ANON'
13 kx ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
13 kx ac_decision_USE_SHMEM_MMAP_ANON=yes
13 kx ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:os2.h; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx haveos2shm="1"
13 kx
13 kx ac_decision='USE_SHMEM_OS2_ANON'
13 kx ac_decision_msg='OS/2 DosAllocSharedMem()'
13 kx ac_decision_USE_SHMEM_OS2_ANON=yes
13 kx ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:kernel/OS.h func:create_area; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx havebeosshm="1"
13 kx
13 kx ac_decision='USE_SHMEM_BEOS_ANON'
13 kx ac_decision_msg='BeOS areas'
13 kx ac_decision_USE_SHMEM_BEOS_ANON=yes
13 kx ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:windows.h func:CreateFileMapping; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx havewin32shm="1"
13 kx
13 kx ac_decision='USE_SHMEM_WIN32_ANON'
13 kx ac_decision_msg='Windows CreateFileMapping()'
13 kx ac_decision_USE_SHMEM_WIN32_ANON=yes
13 kx ac_decision_USE_SHMEM_WIN32_ANON_msg='Windows CreateFileMapping()'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx case $host in
13 kx *linux* )
13 kx # Linux has problems with MM_SHMT_MMANON even though it reports
13 kx # that it has it.
13 kx # FIXME - find exact 2.3 version that MMANON was fixed in. It is
13 kx # confirmed fixed in 2.4 series.
13 kx if test $os_pre24linux -eq 1; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&5
13 kx $as_echo "$as_me: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&2;}
13 kx ac_decision=''
13 kx for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do
13 kx eval "ac_decision_this=\$ac_decision_${ac_item}"
13 kx if test ".$ac_decision_this" = .yes; then
13 kx ac_decision=$ac_item
13 kx eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
13 kx fi
13 kx done
13 kx
13 kx fi
13 kx ;;
13 kx *hpux11* )
13 kx ac_decision=''
13 kx for ac_item in USE_SHMEM_SHMGET_ANON; do
13 kx eval "ac_decision_this=\$ac_decision_${ac_item}"
13 kx if test ".$ac_decision_this" = .yes; then
13 kx ac_decision=$ac_item
13 kx eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
13 kx fi
13 kx done
13 kx
13 kx ;;
13 kx esac
13 kx if test ".$ac_decision" = .; then
13 kx echo "$0:Error: decision on $ac_decision_item failed" 1>&2
13 kx exit 1
13 kx else
13 kx if test ".$ac_decision_msg" = .; then
13 kx ac_decision_msg="$ac_decision"
13 kx fi
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define ${ac_decision_item} 1
13 kx _ACEOF
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
13 kx $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
13 kx fi
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define $ac_decision 1
13 kx _ACEOF
13 kx
13 kx
13 kx useshmgetanon="0"
13 kx usemmapzero="0"
13 kx usemmapanon="0"
13 kx
13 kx case $ac_decision in
13 kx USE_SHMEM_SHMGET_ANON )
13 kx useshmgetanon="1"
13 kx ;;
13 kx USE_SHMEM_MMAP_ZERO )
13 kx usemmapzero="1"
13 kx ;;
13 kx USE_SHMEM_MMAP_ANON )
13 kx usemmapanon="1"
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # Now we determine which one is our name-based shmem preference.
13 kx havemmaptmp="0"
13 kx havemmapshm="0"
13 kx haveshmget="0"
13 kx havebeosarea="0"
13 kx haveos2shm="0"
13 kx havewin32shm="0"
13 kx ac_decision_item='namebased memory allocation method'
13 kx ac_decision_msg='FAILED'
13 kx ac_decision=''
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h func:shmget func:shmat func:shmdt func:shmctl; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx haveshmget="1"
13 kx
13 kx ac_decision='USE_SHMEM_SHMGET'
13 kx ac_decision_msg='SysV IPC shmget()'
13 kx ac_decision_USE_SHMEM_SHMGET=yes
13 kx ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:sys/mman.h func:mmap func:munmap; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx havemmaptmp="1"
13 kx
13 kx ac_decision='USE_SHMEM_MMAP_TMP'
13 kx ac_decision_msg='Classical mmap() on temporary file'
13 kx ac_decision_USE_SHMEM_MMAP_TMP=yes
13 kx ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open func:shm_unlink; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx havemmapshm="1"
13 kx
13 kx ac_decision='USE_SHMEM_MMAP_SHM'
13 kx ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
13 kx ac_decision_USE_SHMEM_MMAP_SHM=yes
13 kx ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:kernel/OS.h func:create_area; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx havebeosshm="1"
13 kx
13 kx ac_decision='USE_SHMEM_BEOS'
13 kx ac_decision_msg='BeOS areas'
13 kx ac_decision_USE_SHMEM_BEOS=yes
13 kx ac_decision_USE_SHMEM_BEOS_msg='BeOS areas'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:os2.h; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx haveos2shm="1"
13 kx
13 kx ac_decision='USE_SHMEM_OS2'
13 kx ac_decision_msg='OS/2 DosAllocSharedMem()'
13 kx ac_decision_USE_SHMEM_OS2=yes
13 kx ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:windows.h; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx havewin32shm="1"
13 kx
13 kx ac_decision='USE_SHMEM_WIN32'
13 kx ac_decision_msg='Windows shared memory'
13 kx ac_decision_USE_SHMEM_WIN32=yes
13 kx ac_decision_USE_SHMEM_WIN32_msg='Windows shared memory'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx # Check whether --enable-posix-shm was given.
13 kx if test "${enable_posix_shm+set}" = set; then :
13 kx enableval=$enable_posix_shm;
13 kx if test "$havemmapshm" = "1"; then
13 kx ac_decision=''
13 kx for ac_item in USE_SHMEM_MMAP_SHM; do
13 kx eval "ac_decision_this=\$ac_decision_${ac_item}"
13 kx if test ".$ac_decision_this" = .yes; then
13 kx ac_decision=$ac_item
13 kx eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
13 kx fi
13 kx done
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx # Check whether --enable-sysv-shm was given.
13 kx if test "${enable_sysv_shm+set}" = set; then :
13 kx enableval=$enable_sysv_shm;
13 kx if test "$haveshmget" = "1"; then
13 kx ac_decision=''
13 kx for ac_item in USE_SHMEM_SHMGET; do
13 kx eval "ac_decision_this=\$ac_decision_${ac_item}"
13 kx if test ".$ac_decision_this" = .yes; then
13 kx ac_decision=$ac_item
13 kx eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
13 kx fi
13 kx done
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx case $host in
13 kx *linux* )
13 kx # Linux pre-2.4 had problems with MM_SHMT_MMANON even though
13 kx # it reports that it has it.
13 kx if test $os_pre24linux -eq 1; then
13 kx ac_decision=''
13 kx for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM USE_SHMEM_SHMGET; do
13 kx eval "ac_decision_this=\$ac_decision_${ac_item}"
13 kx if test ".$ac_decision_this" = .yes; then
13 kx ac_decision=$ac_item
13 kx eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
13 kx fi
13 kx done
13 kx
13 kx fi
13 kx ;;
13 kx *aix* )
13 kx # AIX cannot lseek() shared memory, and we always truncate/lseek together
13 kx ac_decision=''
13 kx for ac_item in USE_SHMEM_SHMGET; do
13 kx eval "ac_decision_this=\$ac_decision_${ac_item}"
13 kx if test ".$ac_decision_this" = .yes; then
13 kx ac_decision=$ac_item
13 kx eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
13 kx fi
13 kx done
13 kx
13 kx ;;
13 kx esac
13 kx if test ".$ac_decision" = .; then
13 kx echo "$0:Error: decision on $ac_decision_item failed" 1>&2
13 kx exit 1
13 kx else
13 kx if test ".$ac_decision_msg" = .; then
13 kx ac_decision_msg="$ac_decision"
13 kx fi
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define ${ac_decision_item} 1
13 kx _ACEOF
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
13 kx $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
13 kx fi
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define $ac_decision 1
13 kx _ACEOF
13 kx
13 kx
13 kx usemmaptmp="0"
13 kx usemmapshm="0"
13 kx useshmget="0"
13 kx usebeosarea="0"
13 kx useos2shm="0"
13 kx usewin32shm="0"
13 kx
13 kx case $ac_decision in
13 kx USE_SHMEM_MMAP_TMP )
13 kx usemmaptmp="1"
13 kx ;;
13 kx USE_SHMEM_MMAP_SHM )
13 kx usemmapshm="1"
13 kx ;;
13 kx USE_SHMEM_SHMGET )
13 kx useshmget="1"
13 kx ;;
13 kx USE_SHMEM_BEOS )
13 kx usebeosarea="1"
13 kx ;;
13 kx USE_SHMEM_OS2 )
13 kx useos2shm="1"
13 kx ;;
13 kx USE_SHMEM_WIN32 )
13 kx usewin32shm="1"
13 kx ;;
13 kx esac
13 kx
13 kx # Do we have any shared memory support?
13 kx if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm$usewin32shm" = "00000000"; then
13 kx sharedmem="0"
13 kx else
13 kx sharedmem="1"
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13 kx if test "x$ac_cv_type_size_t" = xyes; then :
13 kx
13 kx else
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define size_t unsigned int
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13 kx # for constant arguments. Useless!
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13 kx $as_echo_n "checking for working alloca.h... " >&6; }
13 kx if ${ac_cv_working_alloca_h+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <alloca.h>
13 kx int
13 kx main ()
13 kx {
13 kx char *p = (char *) alloca (2 * sizeof (int));
13 kx if (p) return 0;
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_working_alloca_h=yes
13 kx else
13 kx ac_cv_working_alloca_h=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13 kx $as_echo "$ac_cv_working_alloca_h" >&6; }
13 kx if test $ac_cv_working_alloca_h = yes; then
13 kx
13 kx $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13 kx $as_echo_n "checking for alloca... " >&6; }
13 kx if ${ac_cv_func_alloca_works+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #ifdef __GNUC__
13 kx # define alloca __builtin_alloca
13 kx #else
13 kx # ifdef _MSC_VER
13 kx # include <malloc.h>
13 kx # define alloca _alloca
13 kx # else
13 kx # ifdef HAVE_ALLOCA_H
13 kx # include <alloca.h>
13 kx # else
13 kx # ifdef _AIX
13 kx #pragma alloca
13 kx # else
13 kx # ifndef alloca /* predefined by HP cc +Olibcalls */
13 kx void *alloca (size_t);
13 kx # endif
13 kx # endif
13 kx # endif
13 kx # endif
13 kx #endif
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx char *p = (char *) alloca (1);
13 kx if (p) return 0;
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_func_alloca_works=yes
13 kx else
13 kx ac_cv_func_alloca_works=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13 kx $as_echo "$ac_cv_func_alloca_works" >&6; }
13 kx
13 kx if test $ac_cv_func_alloca_works = yes; then
13 kx
13 kx $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13 kx
13 kx else
13 kx # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13 kx # that cause trouble. Some versions do not even contain alloca or
13 kx # contain a buggy version. If you still want to use their alloca,
13 kx # use ar to extract alloca.o from them instead of compiling alloca.c.
13 kx
13 kx ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13 kx
13 kx $as_echo "#define C_ALLOCA 1" >>confdefs.h
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13 kx $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13 kx if ${ac_cv_os_cray+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #if defined CRAY && ! defined CRAY2
13 kx webecray
13 kx #else
13 kx wenotbecray
13 kx #endif
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "webecray" >/dev/null 2>&1; then :
13 kx ac_cv_os_cray=yes
13 kx else
13 kx ac_cv_os_cray=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13 kx $as_echo "$ac_cv_os_cray" >&6; }
13 kx if test $ac_cv_os_cray = yes; then
13 kx for ac_func in _getb67 GETB67 getb67; do
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define CRAY_STACKSEG_END $ac_func
13 kx _ACEOF
13 kx
13 kx break
13 kx fi
13 kx
13 kx done
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13 kx $as_echo_n "checking stack direction for C alloca... " >&6; }
13 kx if ${ac_cv_c_stack_direction+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx ac_cv_c_stack_direction=0
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $ac_includes_default
13 kx int
13 kx find_stack_direction (int *addr, int depth)
13 kx {
13 kx int dir, dummy = 0;
13 kx if (! addr)
13 kx addr = &dummy;
13 kx *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13 kx dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13 kx return dir + dummy;
13 kx }
13 kx
13 kx int
13 kx main (int argc, char **argv)
13 kx {
13 kx return find_stack_direction (0, argc + !argv + 20) < 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx ac_cv_c_stack_direction=1
13 kx else
13 kx ac_cv_c_stack_direction=-1
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13 kx $as_echo "$ac_cv_c_stack_direction" >&6; }
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define STACK_DIRECTION $ac_cv_c_stack_direction
13 kx _ACEOF
13 kx
13 kx
13 kx fi
13 kx
13 kx
13 kx for ac_func in calloc setsid isinf isnan \
13 kx getenv putenv setenv unsetenv \
13 kx writev getifaddrs utime utimes
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx for ac_func in setrlimit
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
13 kx if test "x$ac_cv_func_setrlimit" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_SETRLIMIT 1
13 kx _ACEOF
13 kx have_setrlimit="1"
13 kx else
13 kx have_setrlimit="0"
13 kx fi
13 kx done
13 kx
13 kx for ac_func in getrlimit
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13 kx if test "x$ac_cv_func_getrlimit" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_GETRLIMIT 1
13 kx _ACEOF
13 kx have_getrlimit="1"
13 kx else
13 kx have_getrlimit="0"
13 kx fi
13 kx done
13 kx
13 kx sendfile="0"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5
13 kx $as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
13 kx if ${ac_cv_lib_sendfile_sendfilev+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-lsendfile $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char sendfilev ();
13 kx int
13 kx main ()
13 kx {
13 kx return sendfilev ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_sendfile_sendfilev=yes
13 kx else
13 kx ac_cv_lib_sendfile_sendfilev=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5
13 kx $as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
13 kx if test "x$ac_cv_lib_sendfile_sendfilev" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_LIBSENDFILE 1
13 kx _ACEOF
13 kx
13 kx LIBS="-lsendfile $LIBS"
13 kx
13 kx fi
13 kx
13 kx for ac_func in sendfile send_file sendfilev
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx sendfile="1"
13 kx fi
13 kx done
13 kx
13 kx
13 kx
13 kx
13 kx # Check whether --with-sendfile was given.
13 kx if test "${with_sendfile+set}" = set; then :
13 kx withval=$with_sendfile; if test "$withval" = "yes"; then
13 kx sendfile="1"
13 kx else
13 kx sendfile="0"
13 kx fi
13 kx else
13 kx
13 kx orig_sendfile=$sendfile
13 kx case $host in
13 kx *freebsd*)
13 kx # FreeBSD < 4.2 has issues with threads+sendfile
13 kx if test $os_version -le "401999"; then
13 kx if test "$threads" = "1"; then
13 kx sendfile="0"
13 kx fi
13 kx fi
13 kx ;;
13 kx *alpha*-dec-osf* )
13 kx sendfile="0"
13 kx ;;
13 kx s390-*-linux-gnu)
13 kx # disable sendfile support for 2.2 on S/390
13 kx if test $os_pre24linux -eq 1; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&5
13 kx $as_echo "$as_me: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&2;}
13 kx sendfile="0"
13 kx fi
13 kx ;;
13 kx *aix*)
13 kx # compiler-independent check for 64-bit build
13 kx # The cast to long int works around a bug in the HP C Compiler
13 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13 kx # This bug is HP SR number 8606223364.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
13 kx $as_echo_n "checking size of void*... " >&6; }
13 kx if ${ac_cv_sizeof_voidp+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
13 kx
13 kx else
13 kx if test "$ac_cv_type_voidp" = yes; then
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "cannot compute sizeof (void*)
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx ac_cv_sizeof_voidp=0
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
13 kx $as_echo "$ac_cv_sizeof_voidp" >&6; }
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
13 kx _ACEOF
13 kx
13 kx
13 kx if test "x$ac_cv_sizeof_voidp" = "x8"; then
13 kx # sendfile not working for 64-bit build
13 kx sendfile="0"
13 kx fi
13 kx ;;
13 kx esac
13 kx if test "$orig_sendfile" != "$sendfile"; then
13 kx echo "sendfile support disabled to avoid system problem"
13 kx fi
13 kx fi
13 kx
13 kx
13 kx
13 kx for ac_func in sigaction
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
13 kx if test "x$ac_cv_func_sigaction" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_SIGACTION 1
13 kx _ACEOF
13 kx have_sigaction="1"
13 kx else
13 kx have_sigaction="0"
13 kx fi
13 kx done
13 kx
13 kx ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13 kx /* NetBSD declares sys_siglist in unistd.h. */
13 kx #ifdef HAVE_UNISTD_H
13 kx # include <unistd.h>
13 kx #endif
13 kx
13 kx "
13 kx if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13 kx ac_have_decl=1
13 kx else
13 kx ac_have_decl=0
13 kx fi
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13 kx _ACEOF
13 kx
13 kx
13 kx
13 kx for ac_func in fork
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
13 kx if test "x$ac_cv_func_fork" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_FORK 1
13 kx _ACEOF
13 kx fork="1"
13 kx else
13 kx fork="0"
13 kx fi
13 kx done
13 kx
13 kx
13 kx ac_fn_c_check_func "$LINENO" "_getch" "ac_cv_func__getch"
13 kx if test "x$ac_cv_func__getch" = xyes; then :
13 kx
13 kx fi
13 kx
13 kx for ac_func in strerror_r
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
13 kx if test "x$ac_cv_func_strerror_r" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRERROR_R 1
13 kx _ACEOF
13 kx strerror_r="1"
13 kx else
13 kx strerror_r="0"
13 kx fi
13 kx done
13 kx
13 kx if test "$strerror_r" = "1"; then
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether return code from strerror_r has type int" >&5
13 kx $as_echo_n "checking whether return code from strerror_r has type int... " >&6; }
13 kx if ${ac_cv_strerror_r_rc_int+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx
13 kx ac_cv_strerror_r_rc_int=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <errno.h>
13 kx #include <string.h>
13 kx #include <stdio.h>
13 kx #include <stdlib.h>
13 kx int main(void)
13 kx {
13 kx char buf[1024];
13 kx if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
13 kx exit(0);
13 kx }
13 kx else {
13 kx exit(1);
13 kx }
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx
13 kx ac_cv_strerror_r_rc_int=yes
13 kx else
13 kx
13 kx ac_cv_strerror_r_rc_int=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_strerror_r_rc_int" >&5
13 kx $as_echo "$ac_cv_strerror_r_rc_int" >&6; }
13 kx if test "x$ac_cv_strerror_r_rc_int" = xyes; then
13 kx
13 kx $as_echo "#define STRERROR_R_RC_INT 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx fi
13 kx for ac_func in mmap
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13 kx if test "x$ac_cv_func_mmap" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_MMAP 1
13 kx _ACEOF
13 kx mmap="1"
13 kx else
13 kx mmap="0"
13 kx fi
13 kx done
13 kx
13 kx if test "$native_mmap_emul" = "1"; then
13 kx mmap="1"
13 kx fi
13 kx for ac_func in memmove
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
13 kx if test "x$ac_cv_func_memmove" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_MEMMOVE 1
13 kx _ACEOF
13 kx have_memmove="1"
13 kx else
13 kx have_memmove="0"
13 kx fi
13 kx done
13 kx
13 kx for ac_func in getpass getpassphrase gmtime_r localtime_r
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx case $host in
13 kx *-hp-hpux*)
13 kx ;;
13 kx *)
13 kx for ac_func in mkstemp
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
13 kx if test "x$ac_cv_func_mkstemp" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_MKSTEMP 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait takes one argument" >&5
13 kx $as_echo_n "checking whether sigwait takes one argument... " >&6; }
13 kx if ${ac_cv_sigwait_one_arg+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #if defined(__NETBSD__) || defined(DARWIN)
13 kx /* When using the unproven-pthreads package, we need to pull in this
13 kx * header to get a prototype for sigwait(). Else things will fail later
13 kx * on. XXX Should probably be fixed in the unproven-pthreads package.
13 kx * Darwin is declaring sigwait() in the wrong place as well.
13 kx */
13 kx #include <pthread.h>
13 kx #endif
13 kx #include <signal.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx sigset_t set;
13 kx
13 kx sigwait(&set);
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx ac_cv_sigwait_one_arg=yes
13 kx
13 kx else
13 kx
13 kx ac_cv_sigwait_one_arg=no
13 kx
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigwait_one_arg" >&5
13 kx $as_echo "$ac_cv_sigwait_one_arg" >&6; }
13 kx if test "$ac_cv_sigwait_one_arg" = "yes"; then
13 kx
13 kx $as_echo "#define SIGWAIT_TAKES_ONE_ARG 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13 kx $as_echo_n "checking for ANSI C header files... " >&6; }
13 kx if ${ac_cv_header_stdc+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <stdlib.h>
13 kx #include <stdarg.h>
13 kx #include <string.h>
13 kx #include <float.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_header_stdc=yes
13 kx else
13 kx ac_cv_header_stdc=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx if test $ac_cv_header_stdc = yes; then
13 kx # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <string.h>
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "memchr" >/dev/null 2>&1; then :
13 kx
13 kx else
13 kx ac_cv_header_stdc=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx fi
13 kx
13 kx if test $ac_cv_header_stdc = yes; then
13 kx # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <stdlib.h>
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "free" >/dev/null 2>&1; then :
13 kx
13 kx else
13 kx ac_cv_header_stdc=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx fi
13 kx
13 kx if test $ac_cv_header_stdc = yes; then
13 kx # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13 kx if test "$cross_compiling" = yes; then :
13 kx :
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <ctype.h>
13 kx #include <stdlib.h>
13 kx #if ((' ' & 0x0FF) == 0x020)
13 kx # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13 kx # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13 kx #else
13 kx # define ISLOWER(c) \
13 kx (('a' <= (c) && (c) <= 'i') \
13 kx || ('j' <= (c) && (c) <= 'r') \
13 kx || ('s' <= (c) && (c) <= 'z'))
13 kx # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13 kx #endif
13 kx
13 kx #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13 kx int
13 kx main ()
13 kx {
13 kx int i;
13 kx for (i = 0; i < 256; i++)
13 kx if (XOR (islower (i), ISLOWER (i))
13 kx || toupper (i) != TOUPPER (i))
13 kx return 2;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx
13 kx else
13 kx ac_cv_header_stdc=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13 kx $as_echo "$ac_cv_header_stdc" >&6; }
13 kx if test $ac_cv_header_stdc = yes; then
13 kx
13 kx $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx
13 kx for ac_header in ByteOrder.h \
13 kx conio.h \
13 kx crypt.h \
13 kx ctype.h \
13 kx dir.h \
13 kx dirent.h \
13 kx dl.h \
13 kx dlfcn.h \
13 kx errno.h \
13 kx fcntl.h \
13 kx grp.h \
13 kx inttypes.h \
13 kx io.h \
13 kx limits.h \
13 kx mach-o/dyld.h \
13 kx malloc.h \
13 kx memory.h \
13 kx netdb.h \
13 kx osreldate.h \
13 kx poll.h \
13 kx process.h \
13 kx pwd.h \
13 kx semaphore.h \
13 kx signal.h \
13 kx stdarg.h \
13 kx stddef.h \
13 kx stdio.h \
13 kx stdlib.h \
13 kx string.h \
13 kx strings.h \
13 kx sysapi.h \
13 kx sysgtime.h \
13 kx termios.h \
13 kx time.h \
13 kx tpfeq.h \
13 kx tpfio.h \
13 kx unistd.h \
13 kx unix.h \
13 kx windows.h \
13 kx winsock2.h \
13 kx arpa/inet.h \
13 kx kernel/OS.h \
13 kx net/errno.h \
13 kx netinet/in.h \
13 kx netinet/sctp.h \
13 kx netinet/sctp_uio.h \
13 kx sys/file.h \
13 kx sys/ioctl.h \
13 kx sys/mman.h \
13 kx sys/param.h \
13 kx sys/poll.h \
13 kx sys/resource.h \
13 kx sys/select.h \
13 kx sys/sem.h \
13 kx sys/sendfile.h \
13 kx sys/signal.h \
13 kx sys/socket.h \
13 kx sys/sockio.h \
13 kx sys/stat.h \
13 kx sys/sysctl.h \
13 kx sys/syslimits.h \
13 kx sys/time.h \
13 kx sys/types.h \
13 kx sys/uio.h \
13 kx sys/un.h \
13 kx sys/wait.h
13 kx do :
13 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13 kx ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx for aprt_i in ByteOrder.h \
13 kx conio.h \
13 kx crypt.h \
13 kx ctype.h \
13 kx dir.h \
13 kx dirent.h \
13 kx dl.h \
13 kx dlfcn.h \
13 kx errno.h \
13 kx fcntl.h \
13 kx grp.h \
13 kx inttypes.h \
13 kx io.h \
13 kx limits.h \
13 kx mach-o/dyld.h \
13 kx malloc.h \
13 kx memory.h \
13 kx netdb.h \
13 kx osreldate.h \
13 kx poll.h \
13 kx process.h \
13 kx pwd.h \
13 kx semaphore.h \
13 kx signal.h \
13 kx stdarg.h \
13 kx stddef.h \
13 kx stdio.h \
13 kx stdlib.h \
13 kx string.h \
13 kx strings.h \
13 kx sysapi.h \
13 kx sysgtime.h \
13 kx termios.h \
13 kx time.h \
13 kx tpfeq.h \
13 kx tpfio.h \
13 kx unistd.h \
13 kx unix.h \
13 kx windows.h \
13 kx winsock2.h \
13 kx arpa/inet.h \
13 kx kernel/OS.h \
13 kx net/errno.h \
13 kx netinet/in.h \
13 kx netinet/sctp.h \
13 kx netinet/sctp_uio.h \
13 kx sys/file.h \
13 kx sys/ioctl.h \
13 kx sys/mman.h \
13 kx sys/param.h \
13 kx sys/poll.h \
13 kx sys/resource.h \
13 kx sys/select.h \
13 kx sys/sem.h \
13 kx sys/sendfile.h \
13 kx sys/signal.h \
13 kx sys/socket.h \
13 kx sys/sockio.h \
13 kx sys/stat.h \
13 kx sys/sysctl.h \
13 kx sys/syslimits.h \
13 kx sys/time.h \
13 kx sys/types.h \
13 kx sys/uio.h \
13 kx sys/un.h \
13 kx sys/wait.h
13 kx do
13 kx ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
13 kx aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
13 kx if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13 kx eval "$aprt_2=1"
13 kx else
13 kx eval "$aprt_2=0"
13 kx fi
13 kx done
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr" >&5
13 kx $as_echo_n "checking for inet_addr... " >&6; }
13 kx if ${ac_cv_func_inet_addr+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_ARPA_INET_H
13 kx #include <arpa/inet.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_SOCKET_H
13 kx #include <sys/socket.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx inet_addr("127.0.0.1");
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx ac_cv_func_inet_addr=yes
13 kx
13 kx else
13 kx
13 kx ac_cv_func_inet_addr=no
13 kx
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_addr" >&5
13 kx $as_echo "$ac_cv_func_inet_addr" >&6; }
13 kx
13 kx if test "$ac_cv_func_inet_addr" = "yes"; then
13 kx have_inet_addr=1
13 kx else
13 kx have_inet_addr=0
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_network" >&5
13 kx $as_echo_n "checking for inet_network... " >&6; }
13 kx if ${ac_cv_func_inet_network+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/socket.h>
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_ARPA_INET_H
13 kx #include <arpa/inet.h>
13 kx #endif
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx inet_network("127.0.0.1");
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx ac_cv_func_inet_network=yes
13 kx
13 kx else
13 kx
13 kx ac_cv_func_inet_network=no
13 kx
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_network" >&5
13 kx $as_echo "$ac_cv_func_inet_network" >&6; }
13 kx
13 kx if test "$ac_cv_func_inet_network" = "yes"; then
13 kx have_inet_network=1
13 kx else
13 kx have_inet_network=0
13 kx fi
13 kx
13 kx
13 kx # IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
13 kx # being included by itself. Check for <netinet/tcp.h> manually,
13 kx # including another header file first.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/tcp.h" >&5
13 kx $as_echo_n "checking for netinet/tcp.h... " >&6; }
13 kx if ${apr_cv_hdr_netinet_tcp_h+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #include <netinet/tcp.h>
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_cpp "$LINENO"; then :
13 kx apr_cv_hdr_netinet_tcp_h=yes
13 kx else
13 kx apr_cv_hdr_netinet_tcp_h=no
13 kx fi
13 kx rm -f conftest.err conftest.i conftest.$ac_ext
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_netinet_tcp_h" >&5
13 kx $as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; }
13 kx if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
13 kx netinet_tcph=1
13 kx
13 kx $as_echo "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
13 kx
13 kx else
13 kx netinet_tcph=0
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # Checking for h_errno in <netdb.h>
13 kx if test "$netdbh" = "1"; then
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
13 kx $as_echo_n "checking for h_errno in netdb.h... " >&6; }
13 kx if ${ac_cv_h_errno_cppflags+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx
13 kx if test x != x; then
13 kx CPPFLAGS="-D $CPPFLAGS"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_NETDB_H
13 kx #include <netdb.h>
13 kx #endif
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx int h_e = h_errno;
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx if test x != x; then
13 kx ac_cv_h_errno_cppflags=""
13 kx else
13 kx ac_cv_h_errno_cppflags=yes
13 kx fi
13 kx
13 kx else
13 kx
13 kx ac_cv_h_errno_cppflags=no
13 kx
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx if test "$ac_cv_h_errno_cppflags" = "no"; then
13 kx ac_save="$CPPFLAGS"
13 kx for flag in _XOPEN_SOURCE_EXTENDED; do
13 kx
13 kx if test x$flag != x; then
13 kx CPPFLAGS="-D$flag $CPPFLAGS"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_NETDB_H
13 kx #include <netdb.h>
13 kx #endif
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx int h_e = h_errno;
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx if test x$flag != x; then
13 kx ac_cv_h_errno_cppflags="$flag"
13 kx else
13 kx ac_cv_h_errno_cppflags=yes
13 kx fi
13 kx
13 kx else
13 kx
13 kx ac_cv_h_errno_cppflags=no
13 kx
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx if test "$ac_cv_h_errno_cppflags" != "no"; then
13 kx break
13 kx fi
13 kx done
13 kx CPPFLAGS="$ac_save"
13 kx fi
13 kx
13 kx fi
13 kx
13 kx if test "$ac_cv_h_errno_cppflags" != "no"; then
13 kx if test "$ac_cv_h_errno_cppflags" != "yes"; then
13 kx CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
13 kx $as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
13 kx $as_echo "$ac_cv_h_errno_cppflags" >&6; }
13 kx fi
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
13 kx $as_echo "$ac_cv_h_errno_cppflags" >&6; }
13 kx fi
13 kx
13 kx if test "$ac_cv_h_errno_cflags" = "no"; then
13 kx as_fn_error $? "can not find h_errno in netdb.h" "$LINENO" 5
13 kx fi
13 kx fi
13 kx
13 kx # Check whether --enable-allocator-uses-mmap was given.
13 kx if test "${enable_allocator_uses_mmap+set}" = set; then :
13 kx enableval=$enable_allocator_uses_mmap; if test "$enableval" = "yes"; then
13 kx ac_rc=yes
13 kx for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx
13 kx $as_echo "#define APR_ALLOCATOR_USES_MMAP 1" >>confdefs.h
13 kx
13 kx else
13 kx :
13 kx as_fn_error $? "mmap()/MAP_ANON not supported" "$LINENO" 5
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx
13 kx # Check whether --enable-allocator-guard-pages was given.
13 kx if test "${enable_allocator_guard_pages+set}" = set; then :
13 kx enableval=$enable_allocator_guard_pages; if test "$enableval" = "yes"; then
13 kx ac_rc=yes
13 kx for ac_spec in header:sys/mman.h func:mmap func:munmap func:mprotect define:MAP_ANON; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx
13 kx $as_echo "#define APR_ALLOCATOR_GUARD_PAGES 1" >>confdefs.h
13 kx
13 kx else
13 kx :
13 kx as_fn_error $? "mmap()/MAP_ANON/mprotect() not supported" "$LINENO" 5
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx
13 kx
13 kx # Check whether --enable-pool-concurrency-check was given.
13 kx if test "${enable_pool_concurrency_check+set}" = set; then :
13 kx enableval=$enable_pool_concurrency_check; if test "$enableval" = "yes"; then
13 kx
13 kx $as_echo "#define APR_POOL_CONCURRENCY_CHECK 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx
13 kx ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13 kx if test "x$ac_cv_type_off_t" = xyes; then :
13 kx
13 kx else
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define off_t long int
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13 kx if test "x$ac_cv_type_pid_t" = xyes; then :
13 kx
13 kx else
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define pid_t int
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13 kx if test "x$ac_cv_type_size_t" = xyes; then :
13 kx
13 kx else
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define size_t unsigned int
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13 kx $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13 kx if ${ac_cv_type_uid_t+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <sys/types.h>
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "uid_t" >/dev/null 2>&1; then :
13 kx ac_cv_type_uid_t=yes
13 kx else
13 kx ac_cv_type_uid_t=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13 kx $as_echo "$ac_cv_type_uid_t" >&6; }
13 kx if test $ac_cv_type_uid_t = no; then
13 kx
13 kx $as_echo "#define uid_t int" >>confdefs.h
13 kx
13 kx
13 kx $as_echo "#define gid_t int" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13 kx if test "x$ac_cv_type_ssize_t" = xyes; then :
13 kx
13 kx else
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define ssize_t int
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13 kx $as_echo_n "checking for inline... " >&6; }
13 kx if ${ac_cv_c_inline+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_cv_c_inline=no
13 kx for ac_kw in inline __inline__ __inline; do
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #ifndef __cplusplus
13 kx typedef int foo_t;
13 kx static $ac_kw foo_t static_foo () {return 0; }
13 kx $ac_kw foo_t foo () {return 0; }
13 kx #endif
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_c_inline=$ac_kw
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx test "$ac_cv_c_inline" != no && break
13 kx done
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13 kx $as_echo "$ac_cv_c_inline" >&6; }
13 kx
13 kx case $ac_cv_c_inline in
13 kx inline | yes) ;;
13 kx *)
13 kx case $ac_cv_c_inline in
13 kx no) ac_val=;;
13 kx *) ac_val=$ac_cv_c_inline;;
13 kx esac
13 kx cat >>confdefs.h <<_ACEOF
13 kx #ifndef __cplusplus
13 kx #define inline $ac_val
13 kx #endif
13 kx _ACEOF
13 kx ;;
13 kx esac
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13 kx $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13 kx if ${ac_cv_c_const+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx #ifndef __cplusplus
13 kx /* Ultrix mips cc rejects this sort of thing. */
13 kx typedef int charset[2];
13 kx const charset cs = { 0, 0 };
13 kx /* SunOS 4.1.1 cc rejects this. */
13 kx char const *const *pcpcc;
13 kx char **ppc;
13 kx /* NEC SVR4.0.2 mips cc rejects this. */
13 kx struct point {int x, y;};
13 kx static struct point const zero = {0,0};
13 kx /* AIX XL C 1.02.0.0 rejects this.
13 kx It does not let you subtract one const X* pointer from another in
13 kx an arm of an if-expression whose if-part is not a constant
13 kx expression */
13 kx const char *g = "string";
13 kx pcpcc = &g + (g ? g-g : 0);
13 kx /* HPUX 7.0 cc rejects these. */
13 kx ++pcpcc;
13 kx ppc = (char**) pcpcc;
13 kx pcpcc = (char const *const *) ppc;
13 kx { /* SCO 3.2v4 cc rejects this sort of thing. */
13 kx char tx;
13 kx char *t = &tx;
13 kx char const *s = 0 ? (char *) 0 : (char const *) 0;
13 kx
13 kx *t++ = 0;
13 kx if (s) return 0;
13 kx }
13 kx { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13 kx int x[] = {25, 17};
13 kx const int *foo = &x[0];
13 kx ++foo;
13 kx }
13 kx { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13 kx typedef const int *iptr;
13 kx iptr p = 0;
13 kx ++p;
13 kx }
13 kx { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13 kx "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13 kx struct s { int j; const int *ap[3]; } bx;
13 kx struct s *b = &bx; b->j = 5;
13 kx }
13 kx { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13 kx const int foo = 10;
13 kx if (!foo) return 0;
13 kx }
13 kx return !cs[0] && !zero.x;
13 kx #endif
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_c_const=yes
13 kx else
13 kx ac_cv_c_const=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13 kx $as_echo "$ac_cv_c_const" >&6; }
13 kx if test $ac_cv_c_const = no; then
13 kx
13 kx $as_echo "#define const /**/" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13 kx $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13 kx if ${ac_cv_func_setpgrp_void+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $ac_includes_default
13 kx int
13 kx main ()
13 kx {
13 kx /* If this system has a BSD-style setpgrp which takes arguments,
13 kx setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13 kx exit successfully. */
13 kx return setpgrp (1,1) != -1;
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx ac_cv_func_setpgrp_void=no
13 kx else
13 kx ac_cv_func_setpgrp_void=yes
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13 kx $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13 kx if test $ac_cv_func_setpgrp_void = yes; then
13 kx
13 kx $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
13 kx $as_echo_n "checking for socklen_t... " >&6; }
13 kx if ${ac_cv_socklen_t+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_SOCKET_H
13 kx #include <sys/socket.h>
13 kx #endif
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx socklen_t foo = (socklen_t) 0;
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx ac_cv_socklen_t=yes
13 kx
13 kx else
13 kx
13 kx ac_cv_socklen_t=no
13 kx
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
13 kx $as_echo "$ac_cv_socklen_t" >&6; }
13 kx
13 kx if test "$ac_cv_socklen_t" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx # The cast to long int works around a bug in the HP C Compiler
13 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13 kx # This bug is HP SR number 8606223364.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
13 kx $as_echo_n "checking size of void*... " >&6; }
13 kx if ${ac_cv_sizeof_voidp+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
13 kx
13 kx else
13 kx if test "$ac_cv_type_voidp" = yes; then
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "cannot compute sizeof (void*)
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx ac_cv_sizeof_voidp=0
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
13 kx $as_echo "$ac_cv_sizeof_voidp" >&6; }
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
13 kx _ACEOF
13 kx
13 kx
13 kx
13 kx if test "x$ac_cv_sizeof_voidp" != "x"; then
13 kx voidp_size=$ac_cv_sizeof_voidp
13 kx else
13 kx as_fn_error $? "Cannot determine size of void*" "$LINENO" 5
13 kx fi
13 kx
13 kx # The cast to long int works around a bug in the HP C Compiler
13 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13 kx # This bug is HP SR number 8606223364.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13 kx $as_echo_n "checking size of char... " >&6; }
13 kx if ${ac_cv_sizeof_char+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13 kx
13 kx else
13 kx if test "$ac_cv_type_char" = yes; then
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "cannot compute sizeof (char)
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx ac_cv_sizeof_char=0
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13 kx $as_echo "$ac_cv_sizeof_char" >&6; }
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SIZEOF_CHAR $ac_cv_sizeof_char
13 kx _ACEOF
13 kx
13 kx
13 kx # The cast to long int works around a bug in the HP C Compiler
13 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13 kx # This bug is HP SR number 8606223364.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13 kx $as_echo_n "checking size of short... " >&6; }
13 kx if ${ac_cv_sizeof_short+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13 kx
13 kx else
13 kx if test "$ac_cv_type_short" = yes; then
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "cannot compute sizeof (short)
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx ac_cv_sizeof_short=0
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13 kx $as_echo "$ac_cv_sizeof_short" >&6; }
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SIZEOF_SHORT $ac_cv_sizeof_short
13 kx _ACEOF
13 kx
13 kx
13 kx # The cast to long int works around a bug in the HP C Compiler
13 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13 kx # This bug is HP SR number 8606223364.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13 kx $as_echo_n "checking size of int... " >&6; }
13 kx if ${ac_cv_sizeof_int+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13 kx
13 kx else
13 kx if test "$ac_cv_type_int" = yes; then
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "cannot compute sizeof (int)
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx ac_cv_sizeof_int=0
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13 kx $as_echo "$ac_cv_sizeof_int" >&6; }
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SIZEOF_INT $ac_cv_sizeof_int
13 kx _ACEOF
13 kx
13 kx
13 kx # The cast to long int works around a bug in the HP C Compiler
13 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13 kx # This bug is HP SR number 8606223364.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13 kx $as_echo_n "checking size of long... " >&6; }
13 kx if ${ac_cv_sizeof_long+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13 kx
13 kx else
13 kx if test "$ac_cv_type_long" = yes; then
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "cannot compute sizeof (long)
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx ac_cv_sizeof_long=0
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13 kx $as_echo "$ac_cv_sizeof_long" >&6; }
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SIZEOF_LONG $ac_cv_sizeof_long
13 kx _ACEOF
13 kx
13 kx
13 kx # The cast to long int works around a bug in the HP C Compiler
13 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13 kx # This bug is HP SR number 8606223364.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13 kx $as_echo_n "checking size of long long... " >&6; }
13 kx if ${ac_cv_sizeof_long_long+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13 kx
13 kx else
13 kx if test "$ac_cv_type_long_long" = yes; then
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "cannot compute sizeof (long long)
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx ac_cv_sizeof_long_long=0
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13 kx $as_echo "$ac_cv_sizeof_long_long" >&6; }
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13 kx _ACEOF
13 kx
13 kx
13 kx
13 kx if test "$ac_cv_sizeof_short" = "2"; then
13 kx short_value=short
13 kx fi
13 kx if test "$ac_cv_sizeof_int" = "4"; then
13 kx int_value=int
13 kx fi
13 kx
13 kx # Now we need to find what apr_int64_t (sizeof == 8) will be.
13 kx # The first match is our preference (use inttypes if available).
13 kx ac_rc=yes
13 kx for ac_spec in header:stdint.h header:inttypes.h; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx hasinttypes="1"
13 kx else
13 kx :
13 kx hasinttypes="0"
13 kx fi
13 kx
13 kx if test "$hasinttypes" = "1"; then
13 kx int64_literal='#define APR_INT64_C(val) INT64_C(val)'
13 kx uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
13 kx int64_t_fmt='#define APR_INT64_T_FMT PRId64'
13 kx uint64_t_fmt='#define APR_UINT64_T_FMT PRIu64'
13 kx uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT PRIx64'
13 kx int64_value="int64_t"
13 kx uint64_value="uint64_t"
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether int64_t and int use fmt %d" >&5
13 kx $as_echo_n "checking whether int64_t and int use fmt %d... " >&6; }
13 kx if ${apr_cv_typematch_int64_t_int_d+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx #include <sys/types.h>
13 kx #include <stdio.h>
13 kx #ifdef HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx int64_t chk1, *ptr1;
13 kx int chk2, *ptr2 = &chk1;
13 kx ptr1 = &chk2;
13 kx *ptr1 = *ptr2 = 0;
13 kx printf("%d %d", chk1, chk2);
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_int64_t_int_d=yes
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_int64_t_int_d=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_int64_t_int_d" >&5
13 kx $as_echo "$apr_cv_typematch_int64_t_int_d" >&6; }
13 kx if test "$apr_cv_typematch_int64_t_int_d" = "yes"; then
13 kx :
13 kx
13 kx int64_strfn="strtoi"
13 kx
13 kx else
13 kx :
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether int64_t and long use fmt %ld" >&5
13 kx $as_echo_n "checking whether int64_t and long use fmt %ld... " >&6; }
13 kx if ${apr_cv_typematch_int64_t_long_ld+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx #include <sys/types.h>
13 kx #include <stdio.h>
13 kx #ifdef HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx int64_t chk1, *ptr1;
13 kx long chk2, *ptr2 = &chk1;
13 kx ptr1 = &chk2;
13 kx *ptr1 = *ptr2 = 0;
13 kx printf("%ld %ld", chk1, chk2);
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_int64_t_long_ld=yes
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_int64_t_long_ld=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_int64_t_long_ld" >&5
13 kx $as_echo "$apr_cv_typematch_int64_t_long_ld" >&6; }
13 kx if test "$apr_cv_typematch_int64_t_long_ld" = "yes"; then
13 kx :
13 kx
13 kx int64_strfn="strtol"
13 kx
13 kx else
13 kx :
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether int64_t and long long use fmt %lld" >&5
13 kx $as_echo_n "checking whether int64_t and long long use fmt %lld... " >&6; }
13 kx if ${apr_cv_typematch_int64_t_long_long_lld+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx #include <sys/types.h>
13 kx #include <stdio.h>
13 kx #ifdef HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx int64_t chk1, *ptr1;
13 kx long long chk2, *ptr2 = &chk1;
13 kx ptr1 = &chk2;
13 kx *ptr1 = *ptr2 = 0;
13 kx printf("%lld %lld", chk1, chk2);
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_int64_t_long_long_lld=yes
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_int64_t_long_long_lld=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_int64_t_long_long_lld" >&5
13 kx $as_echo "$apr_cv_typematch_int64_t_long_long_lld" >&6; }
13 kx if test "$apr_cv_typematch_int64_t_long_long_lld" = "yes"; then
13 kx :
13 kx
13 kx int64_strfn="strtoll"
13 kx
13 kx else
13 kx :
13 kx
13 kx as_fn_error $? "could not determine the string function for int64_t" "$LINENO" 5
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx elif test "$ac_cv_sizeof_int" = "8"; then
13 kx int64_literal='#define APR_INT64_C(val) (val)'
13 kx uint64_literal='#define APR_UINT64_C(val) (val##U)'
13 kx int64_t_fmt='#define APR_INT64_T_FMT "d"'
13 kx uint64_t_fmt='#define APR_UINT64_T_FMT "u"'
13 kx uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"'
13 kx int64_value="int"
13 kx uint64_value="unsigned int"
13 kx int64_strfn="strtoi"
13 kx elif test "$ac_cv_sizeof_long" = "8"; then
13 kx int64_literal='#define APR_INT64_C(val) (val##L)'
13 kx uint64_literal='#define APR_UINT64_C(val) (val##UL)'
13 kx int64_t_fmt='#define APR_INT64_T_FMT "ld"'
13 kx uint64_t_fmt='#define APR_UINT64_T_FMT "lu"'
13 kx uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"'
13 kx int64_value="long"
13 kx uint64_value="unsigned long"
13 kx int64_strfn="strtol"
13 kx elif test "$ac_cv_sizeof_long_long" = "8"; then
13 kx int64_literal='#define APR_INT64_C(val) (val##LL)'
13 kx uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
13 kx # Linux, Solaris, FreeBSD all support ll with printf.
13 kx # BSD 4.4 originated 'q'. Solaris is more popular and
13 kx # doesn't support 'q'. Solaris wins. Exceptions can
13 kx # go to the OS-dependent section.
13 kx int64_t_fmt='#define APR_INT64_T_FMT "lld"'
13 kx uint64_t_fmt='#define APR_UINT64_T_FMT "llu"'
13 kx uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"'
13 kx int64_value="long long"
13 kx uint64_value="unsigned long long"
13 kx int64_strfn="strtoll"
13 kx elif test "$ac_cv_sizeof_longlong" = "8"; then
13 kx int64_literal='#define APR_INT64_C(val) (val##LL)'
13 kx uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
13 kx int64_t_fmt='#define APR_INT64_T_FMT "qd"'
13 kx uint64_t_fmt='#define APR_UINT64_T_FMT "qu"'
13 kx uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"'
13 kx int64_value="__int64"
13 kx uint64_value="unsigned __int64"
13 kx int64_strfn="strtoll"
13 kx else
13 kx # int64_literal may be overriden if your compiler thinks you have
13 kx # a 64-bit value but APR does not agree.
13 kx as_fn_error $? "could not detect a 64-bit integer type" "$LINENO" 5
13 kx fi
13 kx
13 kx # If present, allow the C99 macro INT64_C to override our conversion.
13 kx #
13 kx # HP-UX's ANSI C compiler provides this without any includes, so we
13 kx # will first look for INT64_C without adding stdint.h
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT64_C" >&5
13 kx $as_echo_n "checking for INT64_C... " >&6; }
13 kx if ${apr_cv_define_INT64_C+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #ifdef INT64_C
13 kx YES_IS_DEFINED
13 kx #endif
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13 kx apr_cv_define_INT64_C=yes
13 kx else
13 kx
13 kx # Now check for INT64_C in stdint.h
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <stdint.h>
13 kx #ifdef INT64_C
13 kx YES_IS_DEFINED
13 kx #endif
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13 kx apr_cv_define_INT64_C=yes
13 kx else
13 kx apr_cv_define_INT64_C=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_INT64_C" >&5
13 kx $as_echo "$apr_cv_define_INT64_C" >&6; }
13 kx
13 kx if test "$apr_cv_define_INT64_C" = "yes"; then
13 kx int64_literal='#define APR_INT64_C(val) INT64_C(val)'
13 kx uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
13 kx stdint=1
13 kx else
13 kx stdint=0
13 kx fi
13 kx
13 kx if test "$ac_cv_type_size_t" = "yes"; then
13 kx size_t_value="size_t"
13 kx else
13 kx size_t_value="apr_int32_t"
13 kx fi
13 kx if test "$ac_cv_type_ssize_t" = "yes"; then
13 kx ssize_t_value="ssize_t"
13 kx else
13 kx ssize_t_value="apr_int32_t"
13 kx fi
13 kx if test "$ac_cv_socklen_t" = "yes"; then
13 kx socklen_t_value="socklen_t"
13 kx case $host in
13 kx *-hp-hpux*)
13 kx if test "$ac_cv_sizeof_long" = "8"; then
13 kx # 64-bit HP-UX requires 32-bit socklens in
13 kx # kernel, but user-space declarations say
13 kx # 64-bit (socklen_t == size_t == long).
13 kx # This will result in many compile warnings,
13 kx # but we're functionally busted otherwise.
13 kx socklen_t_value="int"
13 kx fi
13 kx ;;
13 kx esac
13 kx else
13 kx socklen_t_value="int"
13 kx fi
13 kx
13 kx # The cast to long int works around a bug in the HP C Compiler
13 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13 kx # This bug is HP SR number 8606223364.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
13 kx $as_echo_n "checking size of pid_t... " >&6; }
13 kx if ${ac_cv_sizeof_pid_t+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then :
13 kx
13 kx else
13 kx if test "$ac_cv_type_pid_t" = yes; then
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "cannot compute sizeof (pid_t)
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx ac_cv_sizeof_pid_t=0
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
13 kx $as_echo "$ac_cv_sizeof_pid_t" >&6; }
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
13 kx _ACEOF
13 kx
13 kx
13 kx
13 kx if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
13 kx pid_t_fmt='#define APR_PID_T_FMT "hd"'
13 kx elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
13 kx pid_t_fmt='#define APR_PID_T_FMT "d"'
13 kx elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
13 kx pid_t_fmt='#define APR_PID_T_FMT "ld"'
13 kx elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
13 kx pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT'
13 kx else
13 kx pid_t_fmt='#error Can not determine the proper size for pid_t'
13 kx fi
13 kx
13 kx # Basically, we have tried to figure out the correct format strings
13 kx # for APR types which vary between platforms, but we don't always get
13 kx # it right.
13 kx case $host in
13 kx s390*linux*)
13 kx # uniquely, the 31-bit Linux/s390 uses "unsigned long int"
13 kx # for size_t rather than "unsigned int":
13 kx size_t_fmt="lu"
13 kx ssize_t_fmt="ld"
13 kx ;;
13 kx *-os2*)
13 kx size_t_fmt="lu"
13 kx ;;
13 kx *-solaris*)
13 kx if test "$ac_cv_sizeof_long" = "8"; then
13 kx pid_t_fmt='#define APR_PID_T_FMT "d"'
13 kx else
13 kx pid_t_fmt='#define APR_PID_T_FMT "ld"'
13 kx fi
13 kx ;;
13 kx *aix4*|*aix5*)
13 kx ssize_t_fmt="ld"
13 kx size_t_fmt="lu"
13 kx ;;
13 kx *beos*)
13 kx ssize_t_fmt="ld"
13 kx size_t_fmt="ld"
13 kx ;;
13 kx *apple-darwin*)
13 kx osver=`uname -r`
13 kx case $osver in
13 kx [0-7].*)
13 kx ssize_t_fmt="d"
13 kx ;;
13 kx *)
13 kx ssize_t_fmt="ld"
13 kx ;;
13 kx esac
13 kx size_t_fmt="lu"
13 kx ;;
13 kx *-mingw*)
13 kx int64_t_fmt='#define APR_INT64_T_FMT "I64d"'
13 kx uint64_t_fmt='#define APR_UINT64_T_FMT "I64u"'
13 kx uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "I64x"'
13 kx int64_value="__int64"
13 kx uint64_value="unsigned __int64"
13 kx int64_strfn="_strtoi64"
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and long use fmt %ld" >&5
13 kx $as_echo_n "checking whether ssize_t and long use fmt %ld... " >&6; }
13 kx if ${apr_cv_typematch_ssize_t_long_ld+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx #include <sys/types.h>
13 kx #include <stdio.h>
13 kx #ifdef HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx ssize_t chk1, *ptr1;
13 kx long chk2, *ptr2 = &chk1;
13 kx ptr1 = &chk2;
13 kx *ptr1 = *ptr2 = 0;
13 kx printf("%ld %ld", chk1, chk2);
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_ssize_t_long_ld=yes
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_ssize_t_long_ld=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_long_ld" >&5
13 kx $as_echo "$apr_cv_typematch_ssize_t_long_ld" >&6; }
13 kx if test "$apr_cv_typematch_ssize_t_long_ld" = "yes"; then
13 kx :
13 kx ssize_t_fmt="ld"
13 kx else
13 kx :
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and int use fmt %d" >&5
13 kx $as_echo_n "checking whether ssize_t and int use fmt %d... " >&6; }
13 kx if ${apr_cv_typematch_ssize_t_int_d+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx #include <sys/types.h>
13 kx #include <stdio.h>
13 kx #ifdef HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx ssize_t chk1, *ptr1;
13 kx int chk2, *ptr2 = &chk1;
13 kx ptr1 = &chk2;
13 kx *ptr1 = *ptr2 = 0;
13 kx printf("%d %d", chk1, chk2);
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_ssize_t_int_d=yes
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_ssize_t_int_d=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_int_d" >&5
13 kx $as_echo "$apr_cv_typematch_ssize_t_int_d" >&6; }
13 kx if test "$apr_cv_typematch_ssize_t_int_d" = "yes"; then
13 kx :
13 kx ssize_t_fmt="d"
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx
13 kx fi
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long use fmt %lu" >&5
13 kx $as_echo_n "checking whether size_t and unsigned long use fmt %lu... " >&6; }
13 kx if ${apr_cv_typematch_size_t_unsigned_long_lu+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx #include <sys/types.h>
13 kx #include <stdio.h>
13 kx #ifdef HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx size_t chk1, *ptr1;
13 kx unsigned long chk2, *ptr2 = &chk1;
13 kx ptr1 = &chk2;
13 kx *ptr1 = *ptr2 = 0;
13 kx printf("%lu %lu", chk1, chk2);
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_size_t_unsigned_long_lu=yes
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_size_t_unsigned_long_lu=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_long_lu" >&5
13 kx $as_echo "$apr_cv_typematch_size_t_unsigned_long_lu" >&6; }
13 kx if test "$apr_cv_typematch_size_t_unsigned_long_lu" = "yes"; then
13 kx :
13 kx size_t_fmt="lu"
13 kx else
13 kx :
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned int use fmt %u" >&5
13 kx $as_echo_n "checking whether size_t and unsigned int use fmt %u... " >&6; }
13 kx if ${apr_cv_typematch_size_t_unsigned_int_u+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx #include <sys/types.h>
13 kx #include <stdio.h>
13 kx #ifdef HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx size_t chk1, *ptr1;
13 kx unsigned int chk2, *ptr2 = &chk1;
13 kx ptr1 = &chk2;
13 kx *ptr1 = *ptr2 = 0;
13 kx printf("%u %u", chk1, chk2);
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_size_t_unsigned_int_u=yes
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_size_t_unsigned_int_u=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_int_u" >&5
13 kx $as_echo "$apr_cv_typematch_size_t_unsigned_int_u" >&6; }
13 kx if test "$apr_cv_typematch_size_t_unsigned_int_u" = "yes"; then
13 kx :
13 kx size_t_fmt="u"
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx
13 kx fi
13 kx
13 kx
13 kx # The cast to long int works around a bug in the HP C Compiler
13 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13 kx # This bug is HP SR number 8606223364.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
13 kx $as_echo_n "checking size of ssize_t... " >&6; }
13 kx if ${ac_cv_sizeof_ssize_t+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
13 kx
13 kx else
13 kx if test "$ac_cv_type_ssize_t" = yes; then
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "cannot compute sizeof (ssize_t)
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx ac_cv_sizeof_ssize_t=0
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
13 kx $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
13 kx _ACEOF
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_ssize_t" >&5
13 kx $as_echo_n "checking which format to use for apr_ssize_t... " >&6; }
13 kx if test -n "$ssize_t_fmt"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$ssize_t_fmt" >&5
13 kx $as_echo "%$ssize_t_fmt" >&6; }
13 kx elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
13 kx ssize_t_fmt="d"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
13 kx $as_echo "%d" >&6; }
13 kx elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
13 kx ssize_t_fmt="ld"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
13 kx $as_echo "%ld" >&6; }
13 kx else
13 kx as_fn_error $? "could not determine the proper format for apr_ssize_t" "$LINENO" 5
13 kx fi
13 kx
13 kx ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\""
13 kx
13 kx # The cast to long int works around a bug in the HP C Compiler
13 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13 kx # This bug is HP SR number 8606223364.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13 kx $as_echo_n "checking size of size_t... " >&6; }
13 kx if ${ac_cv_sizeof_size_t+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13 kx
13 kx else
13 kx if test "$ac_cv_type_size_t" = yes; then
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "cannot compute sizeof (size_t)
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx ac_cv_sizeof_size_t=0
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13 kx $as_echo "$ac_cv_sizeof_size_t" >&6; }
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13 kx _ACEOF
13 kx
13 kx
13 kx
13 kx # else cases below should no longer occur;
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_size_t" >&5
13 kx $as_echo_n "checking which format to use for apr_size_t... " >&6; }
13 kx if test -n "$size_t_fmt"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$size_t_fmt" >&5
13 kx $as_echo "%$size_t_fmt" >&6; }
13 kx elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
13 kx size_t_fmt="d"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
13 kx $as_echo "%d" >&6; }
13 kx elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
13 kx size_t_fmt="ld"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
13 kx $as_echo "%ld" >&6; }
13 kx else
13 kx as_fn_error $? "could not determine the proper format for apr_size_t" "$LINENO" 5
13 kx fi
13 kx
13 kx size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\""
13 kx
13 kx # The cast to long int works around a bug in the HP C Compiler
13 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13 kx # This bug is HP SR number 8606223364.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
13 kx $as_echo_n "checking size of off_t... " >&6; }
13 kx if ${ac_cv_sizeof_off_t+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
13 kx
13 kx else
13 kx if test "$ac_cv_type_off_t" = yes; then
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "cannot compute sizeof (off_t)
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx ac_cv_sizeof_off_t=0
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
13 kx $as_echo "$ac_cv_sizeof_off_t" >&6; }
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13 kx _ACEOF
13 kx
13 kx
13 kx
13 kx if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
13 kx # Enable LFS
13 kx aprlfs=1
13 kx for ac_func in mmap64 sendfile64 sendfilev64 readdir64_r
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx case $host in
13 kx *-hp-hpux*)
13 kx ;;
13 kx *)
13 kx for ac_func in mkstemp64
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "mkstemp64" "ac_cv_func_mkstemp64"
13 kx if test "x$ac_cv_func_mkstemp64" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_MKSTEMP64 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx ;;
13 kx esac
13 kx elif test "${ac_cv_sizeof_off_t}" != "${ac_cv_sizeof_size_t}"; then
13 kx # unsure of using -gt above is as portable, can can't forsee where
13 kx # off_t can legitimately be smaller than size_t
13 kx aprlfs=1
13 kx else
13 kx aprlfs=0
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type to use for apr_off_t" >&5
13 kx $as_echo_n "checking which type to use for apr_off_t... " >&6; }
13 kx if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
13 kx # LFS is go!
13 kx off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
13 kx off_t_value='off64_t'
13 kx off_t_strfn='apr_strtoi64'
13 kx elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
13 kx # Special case: off_t may change size with _FILE_OFFSET_BITS
13 kx # on 32-bit systems with LFS support. To avoid compatibility
13 kx # issues when other packages do define _FILE_OFFSET_BITS,
13 kx # hard-code apr_off_t to long.
13 kx off_t_value=long
13 kx off_t_fmt='#define APR_OFF_T_FMT "ld"'
13 kx off_t_strfn='strtol'
13 kx elif test "$ac_cv_type_off_t" = "yes"; then
13 kx # off_t is more commonly a long than an int; prefer that case
13 kx # where int and long are the same size and interchangable.
13 kx off_t_value=off_t
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and long use fmt %ld" >&5
13 kx $as_echo_n "checking whether off_t and long use fmt %ld... " >&6; }
13 kx if ${apr_cv_typematch_off_t_long_ld+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx #include <sys/types.h>
13 kx #include <stdio.h>
13 kx #ifdef HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx off_t chk1, *ptr1;
13 kx long chk2, *ptr2 = &chk1;
13 kx ptr1 = &chk2;
13 kx *ptr1 = *ptr2 = 0;
13 kx printf("%ld %ld", chk1, chk2);
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_off_t_long_ld=yes
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_off_t_long_ld=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_off_t_long_ld" >&5
13 kx $as_echo "$apr_cv_typematch_off_t_long_ld" >&6; }
13 kx if test "$apr_cv_typematch_off_t_long_ld" = "yes"; then
13 kx :
13 kx
13 kx off_t_fmt="#define APR_OFF_T_FMT \"ld\""
13 kx off_t_strfn='strtol'
13 kx
13 kx else
13 kx :
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and int use fmt %d" >&5
13 kx $as_echo_n "checking whether off_t and int use fmt %d... " >&6; }
13 kx if ${apr_cv_typematch_off_t_int_d+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx #include <sys/types.h>
13 kx #include <stdio.h>
13 kx #ifdef HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx off_t chk1, *ptr1;
13 kx int chk2, *ptr2 = &chk1;
13 kx ptr1 = &chk2;
13 kx *ptr1 = *ptr2 = 0;
13 kx printf("%d %d", chk1, chk2);
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_off_t_int_d=yes
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_off_t_int_d=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_off_t_int_d" >&5
13 kx $as_echo "$apr_cv_typematch_off_t_int_d" >&6; }
13 kx if test "$apr_cv_typematch_off_t_int_d" = "yes"; then
13 kx :
13 kx
13 kx off_t_fmt="#define APR_OFF_T_FMT \"d\""
13 kx off_t_strfn='strtoi'
13 kx
13 kx else
13 kx :
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and long long use fmt %lld" >&5
13 kx $as_echo_n "checking whether off_t and long long use fmt %lld... " >&6; }
13 kx if ${apr_cv_typematch_off_t_long_long_lld+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx #include <sys/types.h>
13 kx #include <stdio.h>
13 kx #ifdef HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx off_t chk1, *ptr1;
13 kx long long chk2, *ptr2 = &chk1;
13 kx ptr1 = &chk2;
13 kx *ptr1 = *ptr2 = 0;
13 kx printf("%lld %lld", chk1, chk2);
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_off_t_long_long_lld=yes
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_off_t_long_long_lld=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_off_t_long_long_lld" >&5
13 kx $as_echo "$apr_cv_typematch_off_t_long_long_lld" >&6; }
13 kx if test "$apr_cv_typematch_off_t_long_long_lld" = "yes"; then
13 kx :
13 kx
13 kx off_t_fmt="#define APR_OFF_T_FMT \"lld\""
13 kx off_t_strfn='strtoll'
13 kx
13 kx else
13 kx :
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and $int64_value use fmt %I64d" >&5
13 kx $as_echo_n "checking whether off_t and $int64_value use fmt %I64d... " >&6; }
13 kx if eval \${apr_cv_typematch_off_t_$int64_value_I64d+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx #include <sys/types.h>
13 kx #include <stdio.h>
13 kx #ifdef HAVE_STDINT_H
13 kx #include <stdint.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx off_t chk1, *ptr1;
13 kx $int64_value chk2, *ptr2 = &chk1;
13 kx ptr1 = &chk2;
13 kx *ptr1 = *ptr2 = 0;
13 kx printf("%I64d %I64d", chk1, chk2);
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_off_t_$int64_value_I64d=yes
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx apr_cv_typematch_off_t_$int64_value_I64d=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx eval ac_res=\$apr_cv_typematch_off_t_$int64_value_I64d
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13 kx $as_echo "$ac_res" >&6; }
13 kx if test "$apr_cv_typematch_off_t_$int64_value_I64d" = "yes"; then
13 kx :
13 kx
13 kx off_t_fmt="#define APR_OFF_T_FMT APR_INT64_T_FMT"
13 kx off_t_strfn='apr_strtoi64'
13 kx else
13 kx :
13 kx
13 kx # Per OS tuning...
13 kx case $host in
13 kx *-mingw*)
13 kx off_t_value=apr_int64_t
13 kx off_t_fmt='#define APR_OFF_T_FMT "I64d"'
13 kx off_t_strfn='_strtoi64'
13 kx ;;
13 kx *)
13 kx as_fn_error $? "could not determine the size of off_t" "$LINENO" 5
13 kx ;;
13 kx esac
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx else
13 kx # Fallback on int
13 kx off_t_value=apr_int32_t
13 kx off_t_fmt=d
13 kx off_t_strfn='strtoi'
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $off_t_value" >&5
13 kx $as_echo "$off_t_value" >&6; }
13 kx
13 kx # Regardless of whether _LARGEFILE64_SOURCE is used, on some
13 kx # platforms _FILE_OFFSET_BITS will affect the size of ino_t and hence
13 kx # the build-time ABI may be different from the apparent ABI when using
13 kx # APR with another package which *does* define _FILE_OFFSET_BITS.
13 kx # (Exactly as per the case above with off_t where LFS is *not* used)
13 kx #
13 kx # To be safe, hard-code apr_ino_t as 'unsigned long' or 'unsigned int'
13 kx # iff that is exactly the size of ino_t here; otherwise use ino_t as existing
13 kx # releases did. To be correct, apr_ino_t should have been made an
13 kx # ino64_t as apr_off_t is off64_t, but this can't be done now without
13 kx # breaking ABI.
13 kx
13 kx # Per OS tuning...
13 kx case $host in
13 kx *mingw*)
13 kx ino_t_value=apr_int64_t
13 kx ;;
13 kx *)
13 kx ino_t_value=ino_t
13 kx # The cast to long int works around a bug in the HP C Compiler
13 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13 kx # This bug is HP SR number 8606223364.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
13 kx $as_echo_n "checking size of ino_t... " >&6; }
13 kx if ${ac_cv_sizeof_ino_t+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
13 kx
13 kx else
13 kx if test "$ac_cv_type_ino_t" = yes; then
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "cannot compute sizeof (ino_t)
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx ac_cv_sizeof_ino_t=0
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
13 kx $as_echo "$ac_cv_sizeof_ino_t" >&6; }
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
13 kx _ACEOF
13 kx
13 kx
13 kx if test $ac_cv_sizeof_ino_t = 4; then
13 kx if test $ac_cv_sizeof_long = 4; then
13 kx ino_t_value="unsigned long"
13 kx else
13 kx ino_t_value="unsigned int"
13 kx fi
13 kx fi
13 kx ;;
13 kx esac
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: using $ino_t_value for ino_t" >&5
13 kx $as_echo "$as_me: using $ino_t_value for ino_t" >&6;}
13 kx
13 kx # Checks for endianness
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13 kx $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13 kx if ${ac_cv_c_bigendian+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_cv_c_bigendian=unknown
13 kx # See if we're dealing with a universal compiler.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #ifndef __APPLE_CC__
13 kx not a universal capable compiler
13 kx #endif
13 kx typedef int dummy;
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx # Check for potential -arch flags. It is not universal unless
13 kx # there are at least two -arch flags with different values.
13 kx ac_arch=
13 kx ac_prev=
13 kx for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13 kx if test -n "$ac_prev"; then
13 kx case $ac_word in
13 kx i?86 | x86_64 | ppc | ppc64)
13 kx if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13 kx ac_arch=$ac_word
13 kx else
13 kx ac_cv_c_bigendian=universal
13 kx break
13 kx fi
13 kx ;;
13 kx esac
13 kx ac_prev=
13 kx elif test "x$ac_word" = "x-arch"; then
13 kx ac_prev=arch
13 kx fi
13 kx done
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx if test $ac_cv_c_bigendian = unknown; then
13 kx # See if sys/param.h defines the BYTE_ORDER macro.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <sys/types.h>
13 kx #include <sys/param.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13 kx && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13 kx && LITTLE_ENDIAN)
13 kx bogus endian macros
13 kx #endif
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx # It does; now see whether it defined to BIG_ENDIAN or not.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <sys/types.h>
13 kx #include <sys/param.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx #if BYTE_ORDER != BIG_ENDIAN
13 kx not big endian
13 kx #endif
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_c_bigendian=yes
13 kx else
13 kx ac_cv_c_bigendian=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx if test $ac_cv_c_bigendian = unknown; then
13 kx # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <limits.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13 kx bogus endian macros
13 kx #endif
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx # It does; now see whether it defined to _BIG_ENDIAN or not.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx #include <limits.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx #ifndef _BIG_ENDIAN
13 kx not big endian
13 kx #endif
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_c_bigendian=yes
13 kx else
13 kx ac_cv_c_bigendian=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx if test $ac_cv_c_bigendian = unknown; then
13 kx # Compile a test program.
13 kx if test "$cross_compiling" = yes; then :
13 kx # Try to guess by grepping values from an object file.
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx short int ascii_mm[] =
13 kx { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13 kx short int ascii_ii[] =
13 kx { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13 kx int use_ascii (int i) {
13 kx return ascii_mm[i] + ascii_ii[i];
13 kx }
13 kx short int ebcdic_ii[] =
13 kx { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13 kx short int ebcdic_mm[] =
13 kx { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13 kx int use_ebcdic (int i) {
13 kx return ebcdic_mm[i] + ebcdic_ii[i];
13 kx }
13 kx extern int foo;
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx return use_ascii (foo) == use_ebcdic (foo);
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13 kx ac_cv_c_bigendian=yes
13 kx fi
13 kx if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13 kx if test "$ac_cv_c_bigendian" = unknown; then
13 kx ac_cv_c_bigendian=no
13 kx else
13 kx # finding both strings is unlikely to happen, but who knows?
13 kx ac_cv_c_bigendian=unknown
13 kx fi
13 kx fi
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $ac_includes_default
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx /* Are we little or big endian? From Harbison&Steele. */
13 kx union
13 kx {
13 kx long int l;
13 kx char c[sizeof (long int)];
13 kx } u;
13 kx u.l = 1;
13 kx return u.c[sizeof (long int) - 1] == 1;
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx ac_cv_c_bigendian=no
13 kx else
13 kx ac_cv_c_bigendian=yes
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13 kx $as_echo "$ac_cv_c_bigendian" >&6; }
13 kx case $ac_cv_c_bigendian in #(
13 kx yes)
13 kx $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13 kx ;; #(
13 kx no)
13 kx ;; #(
13 kx universal)
13 kx
13 kx $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13 kx
13 kx ;; #(
13 kx *)
13 kx as_fn_error $? "unknown endianness
13 kx presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13 kx esac
13 kx
13 kx if test $ac_cv_c_bigendian = yes; then
13 kx bigendian=1
13 kx else
13 kx bigendian=0
13 kx fi
13 kx
13 kx # The cast to long int works around a bug in the HP C Compiler
13 kx # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13 kx # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13 kx # This bug is HP SR number 8606223364.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iovec" >&5
13 kx $as_echo_n "checking size of struct iovec... " >&6; }
13 kx if ${ac_cv_sizeof_struct_iovec+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct iovec))" "ac_cv_sizeof_struct_iovec" "$ac_includes_default
13 kx #include <sys/uio.h>
13 kx "; then :
13 kx
13 kx else
13 kx if test "$ac_cv_type_struct_iovec" = yes; then
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error 77 "cannot compute sizeof (struct iovec)
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx ac_cv_sizeof_struct_iovec=0
13 kx fi
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iovec" >&5
13 kx $as_echo "$ac_cv_sizeof_struct_iovec" >&6; }
13 kx
13 kx
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SIZEOF_STRUCT_IOVEC $ac_cv_sizeof_struct_iovec
13 kx _ACEOF
13 kx
13 kx
13 kx if test "$ac_cv_sizeof_struct_iovec" = "0"; then
13 kx have_iovec=0
13 kx else
13 kx have_iovec=1
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx for ac_func in strnicmp
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
13 kx if test "x$ac_cv_func_strnicmp" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRNICMP 1
13 kx _ACEOF
13 kx have_strnicmp="1"
13 kx else
13 kx have_strnicmp="0"
13 kx fi
13 kx done
13 kx
13 kx for ac_func in strncasecmp
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
13 kx if test "x$ac_cv_func_strncasecmp" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRNCASECMP 1
13 kx _ACEOF
13 kx have_strncasecmp="1"
13 kx else
13 kx have_strncasecmp="0"
13 kx fi
13 kx done
13 kx
13 kx for ac_func in stricmp
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
13 kx if test "x$ac_cv_func_stricmp" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRICMP 1
13 kx _ACEOF
13 kx have_stricmp="1"
13 kx else
13 kx have_stricmp="0"
13 kx fi
13 kx done
13 kx
13 kx for ac_func in strcasecmp
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13 kx if test "x$ac_cv_func_strcasecmp" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRCASECMP 1
13 kx _ACEOF
13 kx have_strcasecmp="1"
13 kx else
13 kx have_strcasecmp="0"
13 kx fi
13 kx done
13 kx
13 kx for ac_func in strdup
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13 kx if test "x$ac_cv_func_strdup" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRDUP 1
13 kx _ACEOF
13 kx have_strdup="1"
13 kx else
13 kx have_strdup="0"
13 kx fi
13 kx done
13 kx
13 kx for ac_func in strstr
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
13 kx if test "x$ac_cv_func_strstr" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRSTR 1
13 kx _ACEOF
13 kx have_strstr="1"
13 kx else
13 kx have_strstr="0"
13 kx fi
13 kx done
13 kx
13 kx for ac_func in memchr
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
13 kx if test "x$ac_cv_func_memchr" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_MEMCHR 1
13 kx _ACEOF
13 kx have_memchr="1"
13 kx else
13 kx have_memchr="0"
13 kx fi
13 kx done
13 kx
13 kx as_ac_var=`$as_echo "ac_cv_func_$int64_strfn" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$int64_strfn" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx have_int64_strfn="1"
13 kx else
13 kx have_int64_strfn="0"
13 kx fi
13 kx
13 kx
13 kx if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
13 kx int64_strfn="strtoq"
13 kx ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
13 kx if test "x$ac_cv_func_strtoq" = xyes; then :
13 kx have_int64_strfn=1
13 kx else
13 kx have_int64_strfn=0
13 kx fi
13 kx
13 kx fi
13 kx
13 kx if test "$have_int64_strfn" = "1"; then
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define APR_INT64_STRFN $int64_strfn
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx if test "$off_t_strfn" = "apr_strtoi64" && test "$have_int64_strfn" = "1"; then
13 kx off_t_strfn=$int64_strfn
13 kx fi
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define APR_OFF_T_STRFN $off_t_strfn
13 kx _ACEOF
13 kx
13 kx
13 kx echo "${nl}Checking for DSO..."
13 kx # Check whether --enable-dso was given.
13 kx if test "${enable_dso+set}" = set; then :
13 kx enableval=$enable_dso; if test "x$enableval" = "xyes"; then
13 kx dsotype=any
13 kx else
13 kx dsotype=$enableval
13 kx fi
13 kx
13 kx else
13 kx dsotype=any
13 kx fi
13 kx
13 kx
13 kx if test "$dsotype" = "any"; then
13 kx if test "$dsotype" = "any"; then
13 kx case $host in
13 kx *darwin[0-8]\.*)
13 kx # Original Darwin, not for 9.0!:
13 kx ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
13 kx if test "x$ac_cv_func_NSLinkModule" = xyes; then :
13 kx dsotype=dyld
13 kx fi
13 kx ;;
13 kx hppa*-hpux[1-9]\.*|hppa*-hpux1[01]*)
13 kx # shl is specific to parisc hpux SOM binaries, not used for 64 bit
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13 kx $as_echo_n "checking for shl_load in -ldld... " >&6; }
13 kx if ${ac_cv_lib_dld_shl_load+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-ldld $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char shl_load ();
13 kx int
13 kx main ()
13 kx {
13 kx return shl_load ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_dld_shl_load=yes
13 kx else
13 kx ac_cv_lib_dld_shl_load=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13 kx $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13 kx if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13 kx have_shl=1
13 kx fi
13 kx
13 kx if test "$ac_cv_sizeof_voidp$have_shl" = "41"; then
13 kx dsotype=shl;
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\""
13 kx LIBS="-ldld"
13 kx else
13 kx apr_addto_bugger="-ldld"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi;;
13 kx *mingw*|*-os2*)
13 kx # several 'other's below probably belong up here. If they always
13 kx # use a platform implementation and shouldn't test the dlopen/dlfcn
13 kx # features, then bring them up here.
13 kx # But if they -should- optionally use dlfcn, and/or need the config
13 kx # detection of dlopen/dlsym, do not move them up.
13 kx dsotype=other ;;
13 kx esac
13 kx fi
13 kx # Normal POSIX:
13 kx if test "$dsotype" = "any"; then
13 kx ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13 kx if test "x$ac_cv_func_dlopen" = xyes; then :
13 kx dsotype=dlfcn
13 kx fi
13 kx
13 kx fi
13 kx if test "$dsotype" = "any"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13 kx $as_echo_n "checking for dlopen in -ldl... " >&6; }
13 kx if ${ac_cv_lib_dl_dlopen+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-ldl $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char dlopen ();
13 kx int
13 kx main ()
13 kx {
13 kx return dlopen ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_dl_dlopen=yes
13 kx else
13 kx ac_cv_lib_dl_dlopen=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13 kx $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13 kx if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13 kx dsotype=dlfcn;
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\""
13 kx LIBS="-ldl"
13 kx else
13 kx apr_addto_bugger="-ldl"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi
13 kx
13 kx fi
13 kx if test "$dsotype" = "dlfcn"; then
13 kx # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
13 kx ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
13 kx if test "x$ac_cv_func_dlsym" = xyes; then :
13 kx
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
13 kx $as_echo_n "checking for dlsym in -ldl... " >&6; }
13 kx if ${ac_cv_lib_dl_dlsym+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-ldl $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char dlsym ();
13 kx int
13 kx main ()
13 kx {
13 kx return dlsym ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_dl_dlsym=yes
13 kx else
13 kx ac_cv_lib_dl_dlsym=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
13 kx $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
13 kx if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
13 kx
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\""
13 kx LIBS="-ldl"
13 kx else
13 kx apr_addto_bugger="-ldl"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx else
13 kx dsotype=any
13 kx echo "Weird: dlopen() was found but dlsym() was not found!"
13 kx fi
13 kx
13 kx fi
13 kx
13 kx fi
13 kx if test "$dsotype" = "any"; then
13 kx # BeOS:
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
13 kx $as_echo_n "checking for load_image in -lroot... " >&6; }
13 kx if ${ac_cv_lib_root_load_image+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_check_lib_save_LIBS=$LIBS
13 kx LIBS="-lroot $LIBS"
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char load_image ();
13 kx int
13 kx main ()
13 kx {
13 kx return load_image ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_lib_root_load_image=yes
13 kx else
13 kx ac_cv_lib_root_load_image=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx LIBS=$ac_check_lib_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
13 kx $as_echo "$ac_cv_lib_root_load_image" >&6; }
13 kx if test "x$ac_cv_lib_root_load_image" = xyes; then :
13 kx dsotype=other
13 kx fi
13 kx
13 kx fi
13 kx # Everything else:
13 kx if test "$dsotype" = "any"; then
13 kx case $host in
13 kx *os390|*os400|*-aix*)
13 kx # Some -aix5 will use dl, no hassles. Keep that pattern here.
13 kx dsotype=other ;;
13 kx *-hpux*)
13 kx if test "$have_shl" = "1"; then
13 kx dsotype=shl;
13 kx if test "x$LIBS" = "x"; then
13 kx test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\""
13 kx LIBS="-ldld"
13 kx else
13 kx apr_addto_bugger="-ldld"
13 kx for i in $apr_addto_bugger; do
13 kx apr_addto_duplicate="0"
13 kx for j in $LIBS; do
13 kx if test "x$i" = "x$j"; then
13 kx apr_addto_duplicate="1"
13 kx break
13 kx fi
13 kx done
13 kx if test $apr_addto_duplicate = "0"; then
13 kx test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
13 kx LIBS="$LIBS $i"
13 kx fi
13 kx done
13 kx fi
13 kx
13 kx fi;;
13 kx esac
13 kx fi
13 kx fi
13 kx
13 kx if test "$dsotype" = "any"; then
13 kx as_fn_error $? "Could not detect suitable DSO implementation" "$LINENO" 5
13 kx elif test "$dsotype" = "no"; then
13 kx aprdso="0"
13 kx else
13 kx case "$dsotype" in
13 kx dlfcn)
13 kx $as_echo "#define DSO_USE_DLFCN 1" >>confdefs.h
13 kx ;;
13 kx shl)
13 kx $as_echo "#define DSO_USE_SHL 1" >>confdefs.h
13 kx ;;
13 kx dyld)
13 kx $as_echo "#define DSO_USE_DYLD 1" >>confdefs.h
13 kx ;;
13 kx other) ;; # Use whatever is in dso/OSDIR
13 kx *) as_fn_error $? "Unknown DSO implementation \"$dsotype\"" "$LINENO" 5;;
13 kx esac
13 kx aprdso="1"
13 kx apr_modules="$apr_modules dso"
13 kx fi
13 kx
13 kx
13 kx
13 kx echo "${nl}Checking for Processes..."
13 kx
13 kx for ac_func in waitpid
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
13 kx if test "x$ac_cv_func_waitpid" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_WAITPID 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx
13 kx # Check whether --enable-other-child was given.
13 kx if test "${enable_other_child+set}" = set; then :
13 kx enableval=$enable_other_child; if test "$enableval" = "yes"; then
13 kx oc="1"
13 kx else
13 kx oc="0"
13 kx fi
13 kx else
13 kx oc=1
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx if test -z "$have_proc_invoked"; then
13 kx have_proc_invoked="0"
13 kx fi
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Variable Length Arrays" >&5
13 kx $as_echo_n "checking for Variable Length Arrays... " >&6; }
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx int foo[argc];
13 kx foo[0] = 0;
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx vla_msg=yes
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx vla_msg=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vla_msg" >&5
13 kx $as_echo "$vla_msg" >&6; }
13 kx if test "$vla_msg" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_VLA 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rlimit" >&5
13 kx $as_echo_n "checking struct rlimit... " >&6; }
13 kx if ${ac_cv_struct_rlimit+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx
13 kx ac_cv_struct_rlimit=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/types.h>
13 kx #include <sys/time.h>
13 kx #include <sys/resource.h>
13 kx #include <stdlib.h>
13 kx int main(void)
13 kx {
13 kx struct rlimit limit;
13 kx limit.rlim_cur = 0;
13 kx limit.rlim_max = 0;
13 kx exit(0);
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx
13 kx ac_cv_struct_rlimit=yes
13 kx else
13 kx
13 kx ac_cv_struct_rlimit=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rlimit" >&5
13 kx $as_echo "$ac_cv_struct_rlimit" >&6; }
13 kx struct_rlimit=0
13 kx test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
13 kx
13 kx
13 kx echo "${nl}Checking for Locking..."
13 kx
13 kx for ac_func in semget semctl semop semtimedop flock
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in func:semtimedop; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx have_semtimedop="1"
13 kx else
13 kx :
13 kx have_semtimedop="0"
13 kx fi
13 kx
13 kx
13 kx for ac_header in semaphore.h
13 kx do :
13 kx ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_semaphore_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_SEMAPHORE_H 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
13 kx $as_echo_n "checking for library containing sem_open... " >&6; }
13 kx if ${ac_cv_search_sem_open+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char sem_open ();
13 kx int
13 kx main ()
13 kx {
13 kx return sem_open ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' rt; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_sem_open=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_sem_open+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_sem_open+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_sem_open=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
13 kx $as_echo "$ac_cv_search_sem_open" >&6; }
13 kx ac_res=$ac_cv_search_sem_open
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx fi
13 kx
13 kx for ac_func in sem_close sem_unlink sem_post sem_wait sem_timedwait
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in func:sem_timedwait; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx have_sem_timedwait="1"
13 kx else
13 kx :
13 kx have_sem_timedwait="0"
13 kx fi
13 kx
13 kx
13 kx for ac_header in OS.h
13 kx do :
13 kx ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_OS_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_OS_H 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx for ac_func in create_sem acquire_sem acquire_sem_etc
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:OS.h func:acquire_sem_etc; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx have_acquire_sem_etc="1"
13 kx else
13 kx :
13 kx have_acquire_sem_etc="0"
13 kx fi
13 kx
13 kx
13 kx # Some systems return ENOSYS from sem_open.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sem_open" >&5
13 kx $as_echo_n "checking for working sem_open... " >&6; }
13 kx if ${ac_cv_func_sem_open+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx ac_cv_func_sem_open=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <errno.h>
13 kx #include <stdlib.h>
13 kx #include <fcntl.h>
13 kx #include <semaphore.h>
13 kx #include <stdlib.h>
13 kx #ifndef SEM_FAILED
13 kx #define SEM_FAILED (-1)
13 kx #endif
13 kx int main()
13 kx {
13 kx sem_t *psem;
13 kx const char *sem_name = "/apr_autoconf";
13 kx
13 kx psem = sem_open(sem_name, O_CREAT, 0644, 1);
13 kx if (psem == (sem_t *)SEM_FAILED) {
13 kx exit(1);
13 kx }
13 kx sem_close(psem);
13 kx psem = sem_open(sem_name, O_CREAT | O_EXCL, 0644, 1);
13 kx if (psem != (sem_t *)SEM_FAILED) {
13 kx sem_close(psem);
13 kx exit(1);
13 kx }
13 kx sem_unlink(sem_name);
13 kx exit(0);
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx ac_cv_func_sem_open=yes
13 kx else
13 kx ac_cv_func_sem_open=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sem_open" >&5
13 kx $as_echo "$ac_cv_func_sem_open" >&6; }
13 kx
13 kx # It's stupid, but not all platforms have union semun, even those that need it.
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5
13 kx $as_echo_n "checking for union semun in sys/sem.h... " >&6; }
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/types.h>
13 kx #include <sys/ipc.h>
13 kx #include <sys/sem.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx union semun arg;
13 kx semctl(0, 0, 0, arg);
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx have_union_semun="1" union_semun=yes
13 kx msg=yes
13 kx else
13 kx
13 kx have_union_semun="0"
13 kx msg=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13 kx $as_echo "$msg" >&6; }
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCK_EX in sys/file.h" >&5
13 kx $as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; }
13 kx if ${ac_cv_define_LOCK_EX+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/file.h>
13 kx #ifdef LOCK_EX
13 kx YES_IS_DEFINED
13 kx #endif
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13 kx ac_cv_define_LOCK_EX=yes
13 kx else
13 kx ac_cv_define_LOCK_EX=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_LOCK_EX" >&5
13 kx $as_echo "$ac_cv_define_LOCK_EX" >&6; }
13 kx if test "$ac_cv_define_LOCK_EX" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_LOCK_EX 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLK in fcntl.h" >&5
13 kx $as_echo_n "checking for F_SETLK in fcntl.h... " >&6; }
13 kx if ${ac_cv_define_F_SETLK+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <fcntl.h>
13 kx #ifdef F_SETLK
13 kx YES_IS_DEFINED
13 kx #endif
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13 kx ac_cv_define_F_SETLK=yes
13 kx else
13 kx ac_cv_define_F_SETLK=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_F_SETLK" >&5
13 kx $as_echo "$ac_cv_define_F_SETLK" >&6; }
13 kx if test "$ac_cv_define_F_SETLK" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_F_SETLK 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEM_UNDO in sys/sem.h" >&5
13 kx $as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; }
13 kx if ${ac_cv_define_SEM_UNDO+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/sem.h>
13 kx #ifdef SEM_UNDO
13 kx YES_IS_DEFINED
13 kx #endif
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13 kx ac_cv_define_SEM_UNDO=yes
13 kx else
13 kx ac_cv_define_SEM_UNDO=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SEM_UNDO" >&5
13 kx $as_echo "$ac_cv_define_SEM_UNDO" >&6; }
13 kx if test "$ac_cv_define_SEM_UNDO" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_SEM_UNDO 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx # We are assuming that if the platform doesn't have POLLIN, it doesn't have
13 kx # any POLL definitions.
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLLIN in poll.h sys/poll.h" >&5
13 kx $as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; }
13 kx if ${ac_cv_define_POLLIN+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx ac_cv_define_POLLIN=no
13 kx for curhdr in poll.h sys/poll.h
13 kx do
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <$curhdr>
13 kx #ifdef POLLIN
13 kx YES_IS_DEFINED
13 kx #endif
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13 kx ac_cv_define_POLLIN=yes
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx done
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_POLLIN" >&5
13 kx $as_echo "$ac_cv_define_POLLIN" >&6; }
13 kx if test "$ac_cv_define_POLLIN" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_POLLIN 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx if test "$threads" = "1"; then
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
13 kx $as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; }
13 kx if ${ac_cv_define_PTHREAD_PROCESS_SHARED+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <pthread.h>
13 kx #ifdef PTHREAD_PROCESS_SHARED
13 kx YES_IS_DEFINED
13 kx #endif
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13 kx ac_cv_define_PTHREAD_PROCESS_SHARED=yes
13 kx else
13 kx ac_cv_define_PTHREAD_PROCESS_SHARED=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
13 kx $as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; }
13 kx if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_PTHREAD_PROCESS_SHARED 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx for ac_func in pthread_mutex_timedlock pthread_mutexattr_setpshared
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:pthread.h func:pthread_mutex_timedlock; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx have_pthread_mutex_timedlock="1"
13 kx else
13 kx :
13 kx have_pthread_mutex_timedlock="0"
13 kx fi
13 kx
13 kx
13 kx # Some systems have setpshared and define PROCESS_SHARED, but don't
13 kx # really support PROCESS_SHARED locks. So, we must validate that we
13 kx # can go through the steps without receiving some sort of system error.
13 kx # Linux and older versions of AIX have this problem.
13 kx ac_rc=yes
13 kx for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PROCESS_SHARED locks" >&5
13 kx $as_echo_n "checking for working PROCESS_SHARED locks... " >&6; }
13 kx if ${apr_cv_process_shared_works+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error $? "cannot run test program while cross compiling
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/types.h>
13 kx #include <pthread.h>
13 kx #include <stdlib.h>
13 kx int main()
13 kx {
13 kx pthread_mutex_t mutex;
13 kx pthread_mutexattr_t attr;
13 kx if (pthread_mutexattr_init(&attr))
13 kx exit(1);
13 kx if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
13 kx exit(2);
13 kx if (pthread_mutex_init(&mutex, &attr))
13 kx exit(3);
13 kx if (pthread_mutexattr_destroy(&attr))
13 kx exit(4);
13 kx if (pthread_mutex_destroy(&mutex))
13 kx exit(5);
13 kx exit(0);
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_process_shared_works=yes
13 kx else
13 kx apr_cv_process_shared_works=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_process_shared_works" >&5
13 kx $as_echo "$apr_cv_process_shared_works" >&6; }
13 kx # Override detection of pthread_mutexattr_setpshared
13 kx ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx
13 kx if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for robust cross-process mutex support" >&5
13 kx $as_echo_n "checking for robust cross-process mutex support... " >&6; }
13 kx if ${apr_cv_mutex_robust_shared+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error $? "cannot run test program while cross compiling
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/types.h>
13 kx #include <pthread.h>
13 kx #include <stdlib.h>
13 kx
13 kx int main(int argc, char **argv)
13 kx {
13 kx pthread_mutex_t mutex;
13 kx pthread_mutexattr_t attr;
13 kx
13 kx if (pthread_mutexattr_init(&attr))
13 kx exit(1);
13 kx if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
13 kx exit(2);
13 kx if (pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST))
13 kx exit(3);
13 kx if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
13 kx exit(4);
13 kx if (pthread_mutex_init(&mutex, &attr))
13 kx exit(5);
13 kx if (pthread_mutexattr_destroy(&attr))
13 kx exit(6);
13 kx if (pthread_mutex_destroy(&mutex))
13 kx exit(7);
13 kx
13 kx exit(0);
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_mutex_robust_shared=yes
13 kx else
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error $? "cannot run test program while cross compiling
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/types.h>
13 kx #include <pthread.h>
13 kx #include <stdlib.h>
13 kx
13 kx int main(int argc, char **argv)
13 kx {
13 kx pthread_mutex_t mutex;
13 kx pthread_mutexattr_t attr;
13 kx
13 kx if (pthread_mutexattr_init(&attr))
13 kx exit(1);
13 kx if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
13 kx exit(2);
13 kx if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP))
13 kx exit(3);
13 kx if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
13 kx exit(4);
13 kx if (pthread_mutex_init(&mutex, &attr))
13 kx exit(5);
13 kx if (pthread_mutexattr_destroy(&attr))
13 kx exit(6);
13 kx if (pthread_mutex_destroy(&mutex))
13 kx exit(7);
13 kx
13 kx exit(0);
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_mutex_robust_shared=np
13 kx else
13 kx apr_cv_mutex_robust_shared=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_robust_shared" >&5
13 kx $as_echo "$apr_cv_mutex_robust_shared" >&6; }
13 kx
13 kx if test "$apr_cv_mutex_robust_shared" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST 1" >>confdefs.h
13 kx
13 kx elif test "$apr_cv_mutex_robust_shared" = "np"; then
13 kx
13 kx $as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST_NP 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx fi
13 kx fi
13 kx
13 kx # See which lock mechanisms we can support on this system.
13 kx ac_rc=yes
13 kx for ac_spec in header:semaphore.h func:sem_open func:sem_close func:sem_unlink func:sem_post func:sem_wait; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx hasposixser="1"
13 kx else
13 kx :
13 kx hasposixser="0"
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in func:semget func:semctl func:semop define:SEM_UNDO; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx hassysvser="1"
13 kx else
13 kx :
13 kx hassysvser="0"
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in func:flock define:LOCK_EX; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx hasflockser="1"
13 kx else
13 kx :
13 kx hasflockser="0"
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:fcntl.h define:F_SETLK; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx hasfcntlser="1"
13 kx else
13 kx :
13 kx hasfcntlser="0"
13 kx fi
13 kx
13 kx # note: the current APR use of shared mutex requires /dev/zero
13 kx ac_cv_header_pthread_h=yes
13 kx ac_cv_define_PTHREAD_PROCESS_SHARED=yes
13 kx ac_cv_func_pthread_mutexattr_setpshared=yes
13 kx ac_cv_file__dev_zero=yes
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared file:/dev/zero; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx hasprocpthreadser="1"
13 kx else
13 kx :
13 kx hasprocpthreadser="0"
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:OS.h func:create_sem; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx hasbeossem="1"
13 kx else
13 kx :
13 kx hasbeossem="0"
13 kx fi
13 kx
13 kx
13 kx for ac_func in pthread_condattr_setpshared
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "pthread_condattr_setpshared" "ac_cv_func_pthread_condattr_setpshared"
13 kx if test "x$ac_cv_func_pthread_condattr_setpshared" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_PTHREAD_CONDATTR_SETPSHARED 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:pthread.h func:pthread_condattr_setpshared; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx have_pthread_condattr_setpshared="1"
13 kx else
13 kx :
13 kx have_pthread_condattr_setpshared="0"
13 kx fi
13 kx
13 kx
13 kx
13 kx # See which lock mechanism we'll select by default on this system.
13 kx # The last APR_DECIDE to execute sets the default.
13 kx # At this stage, we match the ordering in Apache 1.3
13 kx # which is (highest to lowest): sysvsem -> fcntl -> flock.
13 kx # POSIX semaphores and cross-process pthread mutexes are not
13 kx # used by default since they have less desirable behaviour when
13 kx # e.g. a process holding the mutex segfaults.
13 kx # The BEOSSEM decision doesn't require any substitutions but is
13 kx # included here to prevent the fcntl() branch being selected
13 kx # from the decision making.
13 kx ac_decision_item='apr_lock implementation method'
13 kx ac_decision_msg='FAILED'
13 kx ac_decision=''
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in func:flock define:LOCK_EX; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx
13 kx ac_decision='USE_FLOCK_SERIALIZE'
13 kx ac_decision_msg='4.2BSD-style flock()'
13 kx ac_decision_USE_FLOCK_SERIALIZE=yes
13 kx ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:fcntl.h define:F_SETLK; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx
13 kx ac_decision='USE_FCNTL_SERIALIZE'
13 kx ac_decision_msg='SVR4-style fcntl()'
13 kx ac_decision_USE_FCNTL_SERIALIZE=yes
13 kx ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in func:semget func:semctl func:semop define:SEM_UNDO; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx
13 kx ac_decision='USE_SYSVSEM_SERIALIZE'
13 kx ac_decision_msg='SysV IPC semget()'
13 kx ac_decision_USE_SYSVSEM_SERIALIZE=yes
13 kx ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx ac_rc=yes
13 kx for ac_spec in header:OS.h func:create_sem func:acquire_sem func:acquire_sem_etc; do
13 kx ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
13 kx ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
13 kx case $ac_type in
13 kx header )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_header_$ac_item"
13 kx ;;
13 kx file )
13 kx ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
13 kx ac_var="ac_cv_file_$ac_item"
13 kx ;;
13 kx func ) ac_var="ac_cv_func_$ac_item" ;;
13 kx struct ) ac_var="ac_cv_struct_$ac_item" ;;
13 kx define ) ac_var="ac_cv_define_$ac_item" ;;
13 kx custom ) ac_var="$ac_item" ;;
13 kx esac
13 kx eval "ac_val=\$$ac_var"
13 kx if test ".$ac_val" != .yes; then
13 kx ac_rc=no
13 kx break
13 kx fi
13 kx done
13 kx if test ".$ac_rc" = .yes; then
13 kx :
13 kx
13 kx ac_decision='USE_BEOSSEM'
13 kx ac_decision_msg='BeOS Semaphores'
13 kx ac_decision_USE_BEOSSEM=yes
13 kx ac_decision_USE_BEOSSEM_msg='BeOS Semaphores'
13 kx
13 kx else
13 kx :
13 kx
13 kx fi
13 kx
13 kx # pthread mutex both pshared and robust[_np] is the best default
13 kx case "$hasprocpthreadser:$apr_cv_mutex_robust_shared" in
13 kx "1:yes" | "1:np")
13 kx
13 kx ac_decision='USE_PROC_PTHREAD_SERIALIZE'
13 kx ac_decision_msg='pthread pshared mutex'
13 kx ac_decision_USE_PROC_PTHREAD_SERIALIZE=yes
13 kx ac_decision_USE_PROC_PTHREAD_SERIALIZE_msg='pthread pshared mutex'
13 kx
13 kx ;;
13 kx *)
13 kx ;;
13 kx esac
13 kx if test "x$apr_lock_method" != "x"; then
13 kx ac_decision="$apr_lock_method"
13 kx eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
13 kx
13 kx fi
13 kx if test ".$ac_decision" = .; then
13 kx echo "$0:Error: decision on $ac_decision_item failed" 1>&2
13 kx exit 1
13 kx else
13 kx if test ".$ac_decision_msg" = .; then
13 kx ac_decision_msg="$ac_decision"
13 kx fi
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define ${ac_decision_item} 1
13 kx _ACEOF
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
13 kx $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
13 kx fi
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define $ac_decision 1
13 kx _ACEOF
13 kx
13 kx
13 kx flockser="0"
13 kx sysvser="0"
13 kx posixser="0"
13 kx procpthreadser="0"
13 kx fcntlser="0"
13 kx case $ac_decision in
13 kx USE_FLOCK_SERIALIZE )
13 kx hasflockser="1"
13 kx flockser="1"
13 kx ;;
13 kx USE_FCNTL_SERIALIZE )
13 kx hasfcntlser="1"
13 kx fcntlser="1"
13 kx ;;
13 kx USE_SYSVSEM_SERIALIZE )
13 kx hassysvser="1"
13 kx sysvser="1"
13 kx ;;
13 kx USE_POSIXSEM_SERIALIZE )
13 kx hasposixser="1"
13 kx posixser="1"
13 kx ;;
13 kx USE_PROC_PTHREAD_SERIALIZE )
13 kx hasprocpthreadser="1"
13 kx procpthreadser="1"
13 kx ;;
13 kx USE_BEOSSEM )
13 kx hasbeossem="1"
13 kx beossem="1"
13 kx ;;
13 kx esac
13 kx
13 kx if test $hasfcntlser = "1"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl returns EACCES when F_SETLK is already held" >&5
13 kx $as_echo_n "checking if fcntl returns EACCES when F_SETLK is already held... " >&6; }
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_fcntl_tryacquire_eacces=0
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_STDLIB_H
13 kx #include <stdlib.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_STAT_H
13 kx #include <sys/stat.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_WAIT_H
13 kx #include <sys/wait.h>
13 kx #endif
13 kx #if defined(HAVE_UNISTD_H)
13 kx #include <unistd.h>
13 kx #endif
13 kx #include <fcntl.h>
13 kx #include <errno.h>
13 kx #ifdef HAVE_STDLIB_H
13 kx #include <stdlib.h>
13 kx #endif
13 kx int fd;
13 kx struct flock proc_mutex_lock_it = {0};
13 kx const char *fname = "conftest.fcntl";
13 kx
13 kx int lockit();
13 kx
13 kx int main()
13 kx {
13 kx int rc, status;;
13 kx proc_mutex_lock_it.l_whence = SEEK_SET; /* from current point */
13 kx proc_mutex_lock_it.l_type = F_WRLCK; /* set exclusive/write lock */
13 kx
13 kx fd = creat(fname, S_IRWXU);
13 kx unlink(fname);
13 kx
13 kx if (rc = lockit()) {
13 kx exit(-1);
13 kx }
13 kx
13 kx if (fork()) {
13 kx wait(&status);
13 kx }
13 kx else {
13 kx return(lockit());
13 kx }
13 kx
13 kx close(fd);
13 kx exit(WEXITSTATUS(status) != EACCES);
13 kx }
13 kx
13 kx int lockit() {
13 kx int rc;
13 kx do {
13 kx rc = fcntl(fd, F_SETLK, &proc_mutex_lock_it);
13 kx } while ( rc < 0 && errno == EINTR);
13 kx
13 kx return (rc < 0) ? errno : 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_fcntl_tryacquire_eacces=1
13 kx else
13 kx apr_fcntl_tryacquire_eacces=0
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx
13 kx if test "$apr_fcntl_tryacquire_eacces" = "1"; then
13 kx
13 kx $as_echo "#define FCNTL_TRYACQUIRE_EACCES 1" >>confdefs.h
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13 kx $as_echo "yes" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if all interprocess locks affect threads" >&5
13 kx $as_echo_n "checking if all interprocess locks affect threads... " >&6; }
13 kx if test "x$apr_process_lock_is_global" = "xyes"; then
13 kx proclockglobal="1"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13 kx $as_echo "yes" >&6; }
13 kx else
13 kx proclockglobal="0"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sems affect threads in the same process" >&5
13 kx $as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; }
13 kx if test "x$apr_posixsem_is_global" = "xyes"; then
13 kx
13 kx $as_echo "#define POSIXSEM_IS_GLOBAL 1" >>confdefs.h
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13 kx $as_echo "yes" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SysV sems affect threads in the same process" >&5
13 kx $as_echo_n "checking if SysV sems affect threads in the same process... " >&6; }
13 kx if test "x$apr_sysvsem_is_global" = "xyes"; then
13 kx
13 kx $as_echo "#define SYSVSEM_IS_GLOBAL 1" >>confdefs.h
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13 kx $as_echo "yes" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl locks affect threads in the same process" >&5
13 kx $as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; }
13 kx if test "x$apr_fcntl_is_global" = "xyes"; then
13 kx
13 kx $as_echo "#define FCNTL_IS_GLOBAL 1" >>confdefs.h
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13 kx $as_echo "yes" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5
13 kx $as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
13 kx if test "x$apr_flock_is_global" = "xyes"; then
13 kx
13 kx $as_echo "#define FLOCK_IS_GLOBAL 1" >>confdefs.h
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13 kx $as_echo "yes" >&6; }
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13 kx $as_echo "no" >&6; }
13 kx fi
13 kx
13 kx for ac_header in sys/random.h
13 kx do :
13 kx ac_fn_c_check_header_mongrel "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_sys_random_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_SYS_RANDOM_H 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx for ac_func in getrandom
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13 kx if test "x$ac_cv_func_getrandom" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_GETRANDOM 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx
13 kx for ac_header in sys/syscall.h
13 kx do :
13 kx ac_fn_c_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_SYS_SYSCALL_H 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx for ac_header in linux/random.h
13 kx do :
13 kx ac_fn_c_check_header_mongrel "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_linux_random_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_LINUX_RANDOM_H 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx ac_fn_c_check_decl "$LINENO" "SYS_getrandom" "ac_cv_have_decl_SYS_getrandom" "#include <sys/syscall.h>
13 kx "
13 kx if test "x$ac_cv_have_decl_SYS_getrandom" = xyes; then :
13 kx ac_have_decl=1
13 kx else
13 kx ac_have_decl=0
13 kx fi
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_DECL_SYS_GETRANDOM $ac_have_decl
13 kx _ACEOF
13 kx
13 kx
13 kx for ac_func in arc4random_buf
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
13 kx if test "x$ac_cv_func_arc4random_buf" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_ARC4RANDOM_BUF 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for entropy source" >&5
13 kx $as_echo_n "checking for entropy source... " >&6; }
13 kx
13 kx why_no_rand=""
13 kx
13 kx
13 kx # Check whether --with-egd was given.
13 kx if test "${with_egd+set}" = set; then :
13 kx withval=$with_egd;
13 kx $as_echo "#define HAVE_EGD 1" >>confdefs.h
13 kx
13 kx if test "$withval" = "yes"; then
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
13 kx _ACEOF
13 kx
13 kx else
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define EGD_DEFAULT_SOCKET "$withval"
13 kx _ACEOF
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: EGD-compatible daemon" >&5
13 kx $as_echo "EGD-compatible daemon" >&6; }
13 kx rand="1"
13 kx
13 kx fi
13 kx
13 kx
13 kx if test "$rand" != "1"; then
13 kx if test "$ac_cv_func_getrandom" = yes; then
13 kx rand="getrandom"
13 kx elif test "$ac_cv_have_decl_SYS_getrandom" = yes; then
13 kx rand="SYS_getrandom"
13 kx elif test "$ac_cv_func_arc4random_buf" = yes; then
13 kx rand="arc4random"
13 kx fi
13 kx fi
13 kx
13 kx if test "$rand" != "1"; then
13 kx
13 kx # Check whether --with-devrandom was given.
13 kx if test "${with_devrandom+set}" = set; then :
13 kx withval=$with_devrandom; apr_devrandom="$withval"
13 kx else
13 kx apr_devrandom="no"
13 kx fi
13 kx
13 kx if test "$apr_devrandom" = "no"; then
13 kx if test -z "$rand"; then
13 kx apr_devrandom="yes"
13 kx else
13 kx apr_devrandom="no"
13 kx fi
13 kx fi
13 kx
13 kx if test "$apr_devrandom" = "yes"; then
13 kx # /dev/random on OpenBSD doesn't provide random data, so
13 kx # prefer /dev/arandom, which does; see random(4).
13 kx for f in /dev/arandom /dev/urandom /dev/random; do
13 kx if test -r $f; then
13 kx apr_devrandom=$f
13 kx rand="1"
13 kx break
13 kx fi
13 kx done
13 kx elif test "$apr_devrandom" != "no"; then
13 kx if test -r "$apr_devrandom"; then
13 kx rand="1"
13 kx else
13 kx as_fn_error $? "$apr_devrandom not found or unreadable." "$LINENO" 5
13 kx fi
13 kx fi
13 kx
13 kx if test "$rand" = "1"; then
13 kx case $host in
13 kx *os390)
13 kx if test $os_version -lt 1700; then
13 kx rand="0"
13 kx why_no_rand=" ($apr_devrandom unusable on z/OS before V1R7)"
13 kx fi
13 kx ;;
13 kx esac
13 kx fi
13 kx
13 kx if test "$rand" = "1"; then
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define DEV_RANDOM "$apr_devrandom"
13 kx _ACEOF
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_devrandom" >&5
13 kx $as_echo "$apr_devrandom" >&6; }
13 kx elif test -n "$rand"; then
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define SYS_RANDOM "$rand"
13 kx _ACEOF
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rand" >&5
13 kx $as_echo "$rand" >&6; }
13 kx rand="1"
13 kx fi
13 kx fi
13 kx
13 kx if test "$rand" != "1"; then
13 kx case $host in
13 kx # we have built in support for OS/2
13 kx *-os2*)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS/2 builtin random" >&5
13 kx $as_echo "Using OS/2 builtin random" >&6; }
13 kx rand="1"
13 kx ;;
13 kx *)
13 kx if test "$rand" != "1"; then
13 kx if test "$ac_cv_lib_truerand_main" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_TRUERAND 1" >>confdefs.h
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: truerand" >&5
13 kx $as_echo "truerand" >&6; }
13 kx rand="1"
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found$why_no_rand" >&5
13 kx $as_echo "not found$why_no_rand" >&6; }
13 kx rand="0"
13 kx fi
13 kx fi
13 kx ;;
13 kx esac
13 kx fi
13 kx
13 kx
13 kx
13 kx echo "${nl}Checking for File Info Support..."
13 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_STAT_H
13 kx #include <sys/stat.h>
13 kx #endif
13 kx #ifdef HAVE_UNISTD_H
13 kx #include <unistd.h>
13 kx #endif
13 kx "
13 kx if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13 kx _ACEOF
13 kx
13 kx
13 kx fi
13 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_STAT_H
13 kx #include <sys/stat.h>
13 kx #endif
13 kx #ifdef HAVE_UNISTD_H
13 kx #include <unistd.h>
13 kx #endif
13 kx "
13 kx if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
13 kx _ACEOF
13 kx
13 kx
13 kx fi
13 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_STAT_H
13 kx #include <sys/stat.h>
13 kx #endif
13 kx #ifdef HAVE_UNISTD_H
13 kx #include <unistd.h>
13 kx #endif
13 kx "
13 kx if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
13 kx _ACEOF
13 kx
13 kx
13 kx fi
13 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_STAT_H
13 kx #include <sys/stat.h>
13 kx #endif
13 kx #ifdef HAVE_UNISTD_H
13 kx #include <unistd.h>
13 kx #endif
13 kx "
13 kx if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
13 kx _ACEOF
13 kx
13 kx
13 kx fi
13 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_STAT_H
13 kx #include <sys/stat.h>
13 kx #endif
13 kx #ifdef HAVE_UNISTD_H
13 kx #include <unistd.h>
13 kx #endif
13 kx "
13 kx if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
13 kx _ACEOF
13 kx
13 kx
13 kx fi
13 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_STAT_H
13 kx #include <sys/stat.h>
13 kx #endif
13 kx #ifdef HAVE_UNISTD_H
13 kx #include <unistd.h>
13 kx #endif
13 kx "
13 kx if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
13 kx _ACEOF
13 kx
13 kx
13 kx fi
13 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_STAT_H
13 kx #include <sys/stat.h>
13 kx #endif
13 kx #ifdef HAVE_UNISTD_H
13 kx #include <unistd.h>
13 kx #endif
13 kx "
13 kx if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
13 kx _ACEOF
13 kx
13 kx
13 kx fi
13 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_STAT_H
13 kx #include <sys/stat.h>
13 kx #endif
13 kx #ifdef HAVE_UNISTD_H
13 kx #include <unistd.h>
13 kx #endif
13 kx "
13 kx if test "x$ac_cv_member_struct_stat_st_atime_n" = xyes; then :
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRUCT_STAT_ST_ATIME_N 1
13 kx _ACEOF
13 kx
13 kx
13 kx fi
13 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime_n" "ac_cv_member_struct_stat_st_ctime_n" "
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_STAT_H
13 kx #include <sys/stat.h>
13 kx #endif
13 kx #ifdef HAVE_UNISTD_H
13 kx #include <unistd.h>
13 kx #endif
13 kx "
13 kx if test "x$ac_cv_member_struct_stat_st_ctime_n" = xyes; then :
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRUCT_STAT_ST_CTIME_N 1
13 kx _ACEOF
13 kx
13 kx
13 kx fi
13 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_STAT_H
13 kx #include <sys/stat.h>
13 kx #endif
13 kx #ifdef HAVE_UNISTD_H
13 kx #include <unistd.h>
13 kx #endif
13 kx "
13 kx if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then :
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRUCT_STAT_ST_MTIME_N 1
13 kx _ACEOF
13 kx
13 kx
13 kx fi
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inode member of struct dirent" >&5
13 kx $as_echo_n "checking for inode member of struct dirent... " >&6; }
13 kx if ${apr_cv_dirent_inode+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_cv_dirent_inode=no
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/types.h>
13 kx #include <dirent.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx #ifdef d_ino
13 kx #undef d_ino
13 kx #endif
13 kx struct dirent de; de.d_fileno;
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx apr_cv_dirent_inode=d_fileno
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx if test "$apr_cv_dirent_inode" = "no"; then
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/types.h>
13 kx #include <dirent.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx #ifdef d_fileno
13 kx #undef d_fileno
13 kx #endif
13 kx struct dirent de; de.d_ino;
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx apr_cv_dirent_inode=d_ino
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_inode" >&5
13 kx $as_echo "$apr_cv_dirent_inode" >&6; }
13 kx if test "$apr_cv_dirent_inode" != "no"; then
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define DIRENT_INODE $apr_cv_dirent_inode
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file type member of struct dirent" >&5
13 kx $as_echo_n "checking for file type member of struct dirent... " >&6; }
13 kx if ${apr_cv_dirent_type+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_cv_dirent_type=no
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/types.h>
13 kx #include <dirent.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx struct dirent de; de.d_type = DT_REG;
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx apr_cv_dirent_type=d_type
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_type" >&5
13 kx $as_echo "$apr_cv_dirent_type" >&6; }
13 kx if test "$apr_cv_dirent_type" != "no"; then
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define DIRENT_TYPE $apr_cv_dirent_type
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx
13 kx echo "${nl}Checking for OS UUID Support..."
13 kx
13 kx for ac_header in uuid.h uuid/uuid.h sys/uuid.h
13 kx do :
13 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13 kx ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx break
13 kx fi
13 kx
13 kx done
13 kx
13 kx
13 kx apr_revert_save_LIBS=$LIBS
13 kx
13 kx # Prefer the flavor(s) that live in libc;
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
13 kx $as_echo_n "checking for library containing uuid_create... " >&6; }
13 kx if ${ac_cv_search_uuid_create+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char uuid_create ();
13 kx int
13 kx main ()
13 kx {
13 kx return uuid_create ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' uuid; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_uuid_create=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_uuid_create+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_uuid_create+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_uuid_create=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
13 kx $as_echo "$ac_cv_search_uuid_create" >&6; }
13 kx ac_res=$ac_cv_search_uuid_create
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
13 kx $as_echo_n "checking for library containing uuid_generate... " >&6; }
13 kx if ${ac_cv_search_uuid_generate+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char uuid_generate ();
13 kx int
13 kx main ()
13 kx {
13 kx return uuid_generate ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' uuid; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_uuid_generate=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_uuid_generate+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_uuid_generate+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_uuid_generate=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
13 kx $as_echo "$ac_cv_search_uuid_generate" >&6; }
13 kx ac_res=$ac_cv_search_uuid_generate
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx fi
13 kx
13 kx if test "$ac_cv_search_uuid_create" = "none required" -o \
13 kx "$ac_cv_search_uuid_generate" = "none required"; then
13 kx LIBS=$apr_revert_save_LIBS
13 kx fi
13 kx
13 kx for ac_func in uuid_create uuid_generate
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5
13 kx $as_echo_n "checking for os uuid usability... " >&6; }
13 kx if ${apr_cv_osuuid+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx # Ensure this test closely mirrors misc/unix/rand.c!
13 kx uuid_includes="
13 kx #if defined(HAVE_SYS_TYPES_H)
13 kx #include <sys/types.h>
13 kx #endif
13 kx #if defined(HAVE_UNISTD_H)
13 kx #include <unistd.h>
13 kx #endif
13 kx #if defined(HAVE_UUID_H)
13 kx #include <uuid.h>
13 kx #elif defined(HAVE_UUID_UUID_H)
13 kx #include <uuid/uuid.h>
13 kx #elif defined(HAVE_SYS_UUID_H)
13 kx #include <sys/uuid.h>
13 kx #endif
13 kx "
13 kx apr_cv_osuuid=no
13 kx if test $ac_cv_func_uuid_create = yes; then
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $uuid_includes
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx uuid_t g;
13 kx uint32_t s;
13 kx uuid_create(&g, &s);
13 kx if (s == uuid_s_ok) s = 0;
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx apr_cv_osuuid=yes
13 kx else
13 kx apr_cv_func_uuid_create=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx fi
13 kx if test $ac_cv_func_uuid_generate = yes; then
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx $uuid_includes
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx uuid_t g;
13 kx uuid_generate(g);
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx apr_cv_osuuid=yes
13 kx else
13 kx apr_cv_func_uuid_generate=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5
13 kx $as_echo "$apr_cv_osuuid" >&6; }
13 kx
13 kx if test $apr_cv_osuuid = yes; then
13 kx osuuid="1"
13 kx else
13 kx osuuid="0"
13 kx LIBS=$apr_revert_save_LIBS
13 kx fi
13 kx
13 kx
13 kx
13 kx echo "${nl}Checking for Time Support..."
13 kx
13 kx ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
13 kx #include <sys/types.h>
13 kx #include <time.h>
13 kx "
13 kx if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRUCT_TM_TM_GMTOFF 1
13 kx _ACEOF
13 kx
13 kx
13 kx fi
13 kx ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
13 kx #include <sys/types.h>
13 kx #include <time.h>
13 kx "
13 kx if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
13 kx
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_STRUCT_TM___TM_GMTOFF 1
13 kx _ACEOF
13 kx
13 kx
13 kx fi
13 kx
13 kx
13 kx echo "${nl}Checking for Networking support..."
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_addr" >&5
13 kx $as_echo_n "checking for type in_addr... " >&6; }
13 kx if ${ac_cv_type_in_addr+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_WINSOCK2_H
13 kx #include <winsock2.h>
13 kx #endif
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx struct in_addr arg;
13 kx arg.s_addr = htonl(INADDR_ANY);
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx ac_cv_type_in_addr="yes"
13 kx else
13 kx
13 kx ac_cv_type_in_addr="no"
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr" >&5
13 kx $as_echo "$ac_cv_type_in_addr" >&6; }
13 kx
13 kx if test "$ac_cv_type_in_addr" = "yes"; then
13 kx have_in_addr="1"
13 kx else
13 kx have_in_addr="0"
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fd == socket on this platform" >&5
13 kx $as_echo_n "checking if fd == socket on this platform... " >&6; }
13 kx if test "x$file_as_socket" != "x0" ; then
13 kx file_as_socket="1";
13 kx echo "yes"
13 kx else
13 kx echo "no"
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then
13 kx
13 kx $as_echo "#define WAITIO_USES_POLL 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx # Check the types only if we have gethostbyname_r
13 kx if test "$ac_cv_func_gethostbyname_r" = "yes"; then
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of gethostbyname_r routine" >&5
13 kx $as_echo_n "checking style of gethostbyname_r routine... " >&6; }
13 kx if ${ac_cv_gethostbyname_r_style+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_ARPA_INET_H
13 kx #include <arpa/inet.h>
13 kx #endif
13 kx #ifdef HAVE_NETDB_H
13 kx #include <netdb.h>
13 kx #endif
13 kx #ifdef HAVE_STDLIB_H
13 kx #include <stdlib.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
13 kx (char *) 0, 0, (struct hostent **) 0, &tmp);
13 kx /* use tmp to suppress the warning */
13 kx tmp=0;
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx ac_cv_gethostbyname_r_style=glibc2
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx ac_cv_gethostbyname_r_style=none
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_style" >&5
13 kx $as_echo "$ac_cv_gethostbyname_r_style" >&6; }
13 kx
13 kx if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
13 kx
13 kx $as_echo "#define GETHOSTBYNAME_R_GLIBC2 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking 3rd argument to the gethostbyname_r routines" >&5
13 kx $as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; }
13 kx if ${ac_cv_gethostbyname_r_arg+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_ARPA_INET_H
13 kx #include <arpa/inet.h>
13 kx #endif
13 kx #ifdef HAVE_NETDB_H
13 kx #include <netdb.h>
13 kx #endif
13 kx #ifdef HAVE_STDLIB_H
13 kx #include <stdlib.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
13 kx (struct hostent_data *) 0);
13 kx /* use tmp to suppress the warning */
13 kx tmp=0;
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx ac_cv_gethostbyname_r_arg=hostent_data
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx ac_cv_gethostbyname_r_arg=char
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_arg" >&5
13 kx $as_echo "$ac_cv_gethostbyname_r_arg" >&6; }
13 kx
13 kx if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
13 kx
13 kx $as_echo "#define GETHOSTBYNAME_R_HOSTENT_DATA 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx # Check the types only if we have getservbyname_r
13 kx if test "$ac_cv_func_getservbyname_r" = "yes"; then
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of getservbyname_r routine" >&5
13 kx $as_echo_n "checking style of getservbyname_r routine... " >&6; }
13 kx if ${ac_cv_getservbyname_r_style+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_ARPA_INET_H
13 kx #include <arpa/inet.h>
13 kx #endif
13 kx #ifdef HAVE_NETDB_H
13 kx #include <netdb.h>
13 kx #endif
13 kx #ifdef HAVE_STDLIB_H
13 kx #include <stdlib.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx int tmp = getservbyname_r((const char *) 0, (const char *) 0,
13 kx (struct servent *) 0, (char *) 0, 0,
13 kx (struct servent **) 0);
13 kx /* use tmp to suppress the warning */
13 kx tmp=0;
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx ac_cv_getservbyname_r_style=glibc2
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx ac_cv_getservbyname_r_style=none
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx
13 kx if test "$ac_cv_getservbyname_r_style" = "none"; then
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_ARPA_INET_H
13 kx #include <arpa/inet.h>
13 kx #endif
13 kx #ifdef HAVE_NETDB_H
13 kx #include <netdb.h>
13 kx #endif
13 kx #ifdef HAVE_STDLIB_H
13 kx #include <stdlib.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx struct servent *tmp = getservbyname_r((const char *) 0, (const char *) 0,
13 kx (struct servent *) 0, (char *) 0, 0);
13 kx /* use tmp to suppress the warning */
13 kx tmp=NULL;
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx ac_cv_getservbyname_r_style=solaris
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx ac_cv_getservbyname_r_style=none
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx
13 kx if test "$ac_cv_getservbyname_r_style" = "none"; then
13 kx apr_save_CFLAGS=$CFLAGS
13 kx CFLAGS="$CFLAGS $CFLAGS_WARN"
13 kx if test "$ac_cv_c_compiler_gnu" = "yes"; then
13 kx CFLAGS="$CFLAGS -Werror"
13 kx fi
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifndef PACKAGE_NAME
13 kx #include "confdefs.h"
13 kx #endif
13 kx
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_ARPA_INET_H
13 kx #include <arpa/inet.h>
13 kx #endif
13 kx #ifdef HAVE_NETDB_H
13 kx #include <netdb.h>
13 kx #endif
13 kx #ifdef HAVE_STDLIB_H
13 kx #include <stdlib.h>
13 kx #endif
13 kx
13 kx int main(int argc, const char *const *argv) {
13 kx
13 kx int tmp = getservbyname_r((const char *) 0, (const char *) 0,
13 kx (struct servent *) 0, (struct servent_data *) 0);
13 kx /* use tmp to suppress the warning */
13 kx tmp=0;
13 kx
13 kx return 0; }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx CFLAGS=$apr_save_CFLAGS
13 kx ac_cv_getservbyname_r_style=osf1
13 kx else
13 kx CFLAGS=$apr_save_CFLAGS
13 kx ac_cv_getservbyname_r_style=none
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getservbyname_r_style" >&5
13 kx $as_echo "$ac_cv_getservbyname_r_style" >&6; }
13 kx
13 kx if test "$ac_cv_getservbyname_r_style" = "glibc2"; then
13 kx
13 kx $as_echo "#define GETSERVBYNAME_R_GLIBC2 1" >>confdefs.h
13 kx
13 kx elif test "$ac_cv_getservbyname_r_style" = "solaris"; then
13 kx
13 kx $as_echo "#define GETSERVBYNAME_R_SOLARIS 1" >>confdefs.h
13 kx
13 kx elif test "$ac_cv_getservbyname_r_style" = "osf1"; then
13 kx
13 kx $as_echo "#define GETSERVBYNAME_R_OSF1 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
13 kx $as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; }
13 kx if ${ac_cv_tcp_nodelay_inherited+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx
13 kx ac_cv_tcp_nodelay_inherited="yes"
13 kx
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <stdio.h>
13 kx #include <stdlib.h>
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #include <string.h>
13 kx #ifdef HAVE_SYS_SOCKET_H
13 kx #include <sys/socket.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_TCP_H
13 kx #include <netinet/tcp.h>
13 kx #endif
13 kx #ifndef HAVE_SOCKLEN_T
13 kx typedef int socklen_t;
13 kx #endif
13 kx #ifdef HAVE_STDLIB_H
13 kx #include <stdlib.h>
13 kx #endif
13 kx int main(void) {
13 kx int listen_s, connected_s, client_s;
13 kx int listen_port, rc;
13 kx struct sockaddr_in sa;
13 kx socklen_t sa_len;
13 kx socklen_t option_len;
13 kx int option;
13 kx
13 kx listen_s = socket(AF_INET, SOCK_STREAM, 0);
13 kx if (listen_s < 0) {
13 kx perror("socket");
13 kx exit(1);
13 kx }
13 kx option = 1;
13 kx rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option);
13 kx if (rc < 0) {
13 kx perror("setsockopt TCP_NODELAY");
13 kx exit(1);
13 kx }
13 kx memset(&sa, 0, sizeof sa);
13 kx sa.sin_family = AF_INET;
13 kx #ifdef BEOS
13 kx sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
13 kx #endif
13 kx /* leave port 0 to get ephemeral */
13 kx rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
13 kx if (rc < 0) {
13 kx perror("bind for ephemeral port");
13 kx exit(1);
13 kx }
13 kx /* find ephemeral port */
13 kx sa_len = sizeof(sa);
13 kx rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
13 kx if (rc < 0) {
13 kx perror("getsockname");
13 kx exit(1);
13 kx }
13 kx listen_port = sa.sin_port;
13 kx rc = listen(listen_s, 5);
13 kx if (rc < 0) {
13 kx perror("listen");
13 kx exit(1);
13 kx }
13 kx client_s = socket(AF_INET, SOCK_STREAM, 0);
13 kx if (client_s < 0) {
13 kx perror("socket");
13 kx exit(1);
13 kx }
13 kx memset(&sa, 0, sizeof sa);
13 kx sa.sin_family = AF_INET;
13 kx sa.sin_port = listen_port;
13 kx #ifdef BEOS
13 kx sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
13 kx #endif
13 kx /* leave sin_addr all zeros to use loopback */
13 kx rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
13 kx if (rc < 0) {
13 kx perror("connect");
13 kx exit(1);
13 kx }
13 kx sa_len = sizeof sa;
13 kx connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
13 kx if (connected_s < 0) {
13 kx perror("accept");
13 kx exit(1);
13 kx }
13 kx option_len = sizeof option;
13 kx rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len);
13 kx if (rc < 0) {
13 kx perror("getsockopt");
13 kx exit(1);
13 kx }
13 kx if (!option) {
13 kx fprintf(stderr, "TCP_NODELAY is not set in the child.\n");
13 kx exit(1);
13 kx }
13 kx return 0;
13 kx }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx
13 kx ac_cv_tcp_nodelay_inherited="yes"
13 kx
13 kx else
13 kx
13 kx ac_cv_tcp_nodelay_inherited="no"
13 kx
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tcp_nodelay_inherited" >&5
13 kx $as_echo "$ac_cv_tcp_nodelay_inherited" >&6; }
13 kx if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
13 kx tcp_nodelay_inherited=1
13 kx else
13 kx tcp_nodelay_inherited=0
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
13 kx $as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; }
13 kx if ${ac_cv_o_nonblock_inherited+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx
13 kx ac_cv_o_nonblock_inherited="yes"
13 kx
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_STDLIB_H
13 kx #include <stdlib.h>
13 kx #endif
13 kx #ifdef HAVE_STRING_H
13 kx #include <string.h>
13 kx #endif
13 kx #ifdef HAVE_STDIO_H
13 kx #include <stdio.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_SOCKET_H
13 kx #include <sys/socket.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_TIME_H
13 kx #include <sys/time.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_SELECT_H
13 kx #include <sys/select.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_TCP_H
13 kx #include <netinet/tcp.h>
13 kx #endif
13 kx #ifndef HAVE_SOCKLEN_T
13 kx typedef int socklen_t;
13 kx #endif
13 kx #ifdef HAVE_FCNTL_H
13 kx #include <fcntl.h>
13 kx #endif
13 kx #ifdef HAVE_STDLIB_H
13 kx #include <stdlib.h>
13 kx #endif
13 kx int main(void) {
13 kx int listen_s, connected_s, client_s;
13 kx int listen_port, rc;
13 kx struct sockaddr_in sa;
13 kx socklen_t sa_len;
13 kx fd_set fds;
13 kx struct timeval tv;
13 kx
13 kx listen_s = socket(AF_INET, SOCK_STREAM, 0);
13 kx if (listen_s < 0) {
13 kx perror("socket");
13 kx exit(1);
13 kx }
13 kx memset(&sa, 0, sizeof sa);
13 kx sa.sin_family = AF_INET;
13 kx #ifdef BEOS
13 kx sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
13 kx #endif
13 kx /* leave port 0 to get ephemeral */
13 kx rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
13 kx if (rc < 0) {
13 kx perror("bind for ephemeral port");
13 kx exit(1);
13 kx }
13 kx /* find ephemeral port */
13 kx sa_len = sizeof(sa);
13 kx rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
13 kx if (rc < 0) {
13 kx perror("getsockname");
13 kx exit(1);
13 kx }
13 kx listen_port = sa.sin_port;
13 kx rc = listen(listen_s, 5);
13 kx if (rc < 0) {
13 kx perror("listen");
13 kx exit(1);
13 kx }
13 kx rc = fcntl(listen_s, F_SETFL, O_NONBLOCK);
13 kx if (rc < 0) {
13 kx perror("fcntl(F_SETFL)");
13 kx exit(1);
13 kx }
13 kx client_s = socket(AF_INET, SOCK_STREAM, 0);
13 kx if (client_s < 0) {
13 kx perror("socket");
13 kx exit(1);
13 kx }
13 kx memset(&sa, 0, sizeof sa);
13 kx sa.sin_family = AF_INET;
13 kx sa.sin_port = listen_port;
13 kx #ifdef BEOS
13 kx sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
13 kx #endif
13 kx /* leave sin_addr all zeros to use loopback */
13 kx rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
13 kx if (rc < 0) {
13 kx perror("connect");
13 kx exit(1);
13 kx }
13 kx sa_len = sizeof sa;
13 kx /* 1 second select timeout */
13 kx tv.tv_sec = 1;
13 kx tv.tv_usec = 0;
13 kx /* Set up fd set */
13 kx FD_ZERO(&fds);
13 kx FD_SET(listen_s, &fds);
13 kx /* Wait for socket to become readable */
13 kx rc = select(listen_s + 1, &fds, NULL, NULL, &tv);
13 kx if (rc < 0) {
13 kx perror("select");
13 kx exit(1);
13 kx }
13 kx if (rc == 0) {
13 kx fprintf(stderr, "Socket failed to become readable (timeout)\n");
13 kx exit(1);
13 kx }
13 kx if (!FD_ISSET(listen_s, &fds)) {
13 kx fprintf(stderr, "Socket failed to become readable (selected another fd)\n");
13 kx exit(1);
13 kx }
13 kx connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
13 kx if (connected_s < 0) {
13 kx perror("accept");
13 kx exit(1);
13 kx }
13 kx rc = fcntl(connected_s, F_GETFL, 0);
13 kx if (rc < 0) {
13 kx perror("fcntl(F_GETFL)");
13 kx exit(1);
13 kx }
13 kx if (!(rc & O_NONBLOCK)) {
13 kx fprintf(stderr, "O_NONBLOCK is not set in the child.\n");
13 kx exit(1);
13 kx }
13 kx return 0;
13 kx }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx
13 kx ac_cv_o_nonblock_inherited="yes"
13 kx
13 kx else
13 kx
13 kx ac_cv_o_nonblock_inherited="no"
13 kx
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_nonblock_inherited" >&5
13 kx $as_echo "$ac_cv_o_nonblock_inherited" >&6; }
13 kx if test "$ac_cv_o_nonblock_inherited" = "yes"; then
13 kx o_nonblock_inherited=1
13 kx else
13 kx o_nonblock_inherited=0
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
13 kx $as_echo_n "checking whether TCP_NODELAY and TCP_CORK can both be enabled... " >&6; }
13 kx if ${apr_cv_tcp_nodelay_with_cork+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx if test "$cross_compiling" = yes; then :
13 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13 kx as_fn_error $? "cannot run test program while cross compiling
13 kx See \`config.log' for more details" "$LINENO" 5; }
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_SOCKET_H
13 kx #include <sys/socket.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_TCP_H
13 kx #include <netinet/tcp.h>
13 kx #endif
13 kx #include <stdio.h>
13 kx #include <stdlib.h>
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx int fd, flag, rc;
13 kx
13 kx fd = socket(AF_INET, SOCK_STREAM, 0);
13 kx if (fd < 0) {
13 kx exit(1);
13 kx }
13 kx
13 kx flag = 1;
13 kx rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof flag);
13 kx if (rc < 0) {
13 kx perror("setsockopt TCP_NODELAY");
13 kx exit(2);
13 kx }
13 kx
13 kx flag = 1;
13 kx rc = setsockopt(fd, IPPROTO_TCP, TCP_CORK, &flag, sizeof flag);
13 kx if (rc < 0) {
13 kx perror("setsockopt TCP_CORK");
13 kx exit(3);
13 kx }
13 kx
13 kx exit(0);
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_tcp_nodelay_with_cork=yes
13 kx else
13 kx apr_cv_tcp_nodelay_with_cork=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_tcp_nodelay_with_cork" >&5
13 kx $as_echo "$apr_cv_tcp_nodelay_with_cork" >&6; }
13 kx
13 kx if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_TCP_NODELAY_WITH_CORK 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx # Look for a way of corking TCP...
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CORK in netinet/tcp.h" >&5
13 kx $as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; }
13 kx if ${ac_cv_define_TCP_CORK+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <netinet/tcp.h>
13 kx #ifdef TCP_CORK
13 kx YES_IS_DEFINED
13 kx #endif
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13 kx ac_cv_define_TCP_CORK=yes
13 kx else
13 kx ac_cv_define_TCP_CORK=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_CORK" >&5
13 kx $as_echo "$ac_cv_define_TCP_CORK" >&6; }
13 kx if test "$ac_cv_define_TCP_CORK" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_TCP_CORK 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_NOPUSH in netinet/tcp.h" >&5
13 kx $as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; }
13 kx if ${ac_cv_define_TCP_NOPUSH+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <netinet/tcp.h>
13 kx #ifdef TCP_NOPUSH
13 kx YES_IS_DEFINED
13 kx #endif
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13 kx ac_cv_define_TCP_NOPUSH=yes
13 kx else
13 kx ac_cv_define_TCP_NOPUSH=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_NOPUSH" >&5
13 kx $as_echo "$ac_cv_define_TCP_NOPUSH" >&6; }
13 kx if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_TCP_NOPUSH 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx apr_tcp_nopush_flag="0"
13 kx have_corkable_tcp="0"
13 kx if test "x$ac_cv_define_TCP_CORK" = "xyes"; then
13 kx apr_tcp_nopush_flag="TCP_CORK"
13 kx have_corkable_tcp="1"
13 kx else
13 kx case $host in
13 kx *linux*)
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <linux/socket.h>
13 kx #ifdef TCP_CORK
13 kx yes
13 kx #endif
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "yes" >/dev/null 2>&1; then :
13 kx
13 kx apr_tcp_nopush_flag="3"
13 kx have_corkable_tcp="1"
13 kx
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx ;;
13 kx *)
13 kx ;;
13 kx esac
13 kx fi
13 kx if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then
13 kx apr_tcp_nopush_flag="TCP_NOPUSH"
13 kx have_corkable_tcp="1"
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
13 kx $as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; }
13 kx if ${ac_cv_define_SO_ACCEPTFILTER+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/socket.h>
13 kx #ifdef SO_ACCEPTFILTER
13 kx YES_IS_DEFINED
13 kx #endif
13 kx
13 kx _ACEOF
13 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13 kx $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13 kx ac_cv_define_SO_ACCEPTFILTER=yes
13 kx else
13 kx ac_cv_define_SO_ACCEPTFILTER=no
13 kx fi
13 kx rm -f conftest*
13 kx
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
13 kx $as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; }
13 kx if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_SO_ACCEPTFILTER 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then
13 kx acceptfilter="1"
13 kx else
13 kx acceptfilter="0"
13 kx fi
13 kx
13 kx
13 kx # Check whether --enable-sctp was given.
13 kx if test "${enable_sctp+set}" = set; then :
13 kx enableval=$enable_sctp; apr_wants_sctp=$enableval
13 kx else
13 kx apr_wants_sctp=any
13 kx fi
13 kx
13 kx
13 kx if test "$apr_wants_sctp" = no; then
13 kx apr_cv_sctp=no
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP is supported" >&5
13 kx $as_echo_n "checking whether SCTP is supported... " >&6; }
13 kx if ${apr_cv_sctp+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_sctp=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_SOCKET_H
13 kx #include <sys/socket.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_SCTP_H
13 kx #include <netinet/sctp.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_SCTP_UIO_H
13 kx #include <netinet/sctp_uio.h>
13 kx #endif
13 kx #include <stdlib.h>
13 kx int main(void) {
13 kx int s, opt = 1;
13 kx if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0)
13 kx exit(1);
13 kx if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0)
13 kx exit(2);
13 kx exit(0);
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_sctp=yes
13 kx else
13 kx apr_cv_sctp=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sctp" >&5
13 kx $as_echo "$apr_cv_sctp" >&6; }
13 kx fi
13 kx
13 kx if test "${apr_wants_sctp}X${apr_cv_sctp}" = yesXno; then
13 kx as_fn_error $? "SCTP support requested but not available" "$LINENO" 5
13 kx fi
13 kx
13 kx if test "$apr_cv_sctp" = "yes"; then
13 kx have_sctp=1
13 kx else
13 kx have_sctp=0
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
13 kx $as_echo_n "checking for struct ip_mreq... " >&6; }
13 kx if ${apr_cv_struct_ipmreq+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #include <sys/types.h>
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx struct ip_mreq mip;
13 kx mip.imr_interface.s_addr = INADDR_ANY;
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx apr_cv_struct_ipmreq=yes
13 kx else
13 kx apr_cv_struct_ipmreq=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_struct_ipmreq" >&5
13 kx $as_echo "$apr_cv_struct_ipmreq" >&6; }
13 kx
13 kx if test $apr_cv_struct_ipmreq = yes; then
13 kx
13 kx $as_echo "#define HAVE_STRUCT_IPMREQ 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx for ac_func in set_h_errno
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "set_h_errno" "ac_cv_func_set_h_errno"
13 kx if test "x$ac_cv_func_set_h_errno" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_SET_H_ERRNO 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx
13 kx echo "${nl}Checking for IPv6 Networking support..."
13 kx
13 kx # Check whether --enable-ipv6 was given.
13 kx if test "${enable_ipv6+set}" = set; then :
13 kx enableval=$enable_ipv6; if test "$enableval" = "no"; then
13 kx user_disabled_ipv6=1
13 kx fi
13 kx else
13 kx user_disabled_ipv6=0
13 kx fi
13 kx
13 kx
13 kx case $host in
13 kx *)
13 kx broken_ipv6=0
13 kx esac
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13 kx $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13 kx if ${ac_cv_search_getaddrinfo+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char getaddrinfo ();
13 kx int
13 kx main ()
13 kx {
13 kx return getaddrinfo ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' socket inet6; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_getaddrinfo=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_getaddrinfo+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_getaddrinfo+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_getaddrinfo=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13 kx $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13 kx ac_res=$ac_cv_search_getaddrinfo
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gai_strerror" >&5
13 kx $as_echo_n "checking for library containing gai_strerror... " >&6; }
13 kx if ${ac_cv_search_gai_strerror+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char gai_strerror ();
13 kx int
13 kx main ()
13 kx {
13 kx return gai_strerror ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' socket inet6; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_gai_strerror=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_gai_strerror+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_gai_strerror+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_gai_strerror=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gai_strerror" >&5
13 kx $as_echo "$ac_cv_search_gai_strerror" >&6; }
13 kx ac_res=$ac_cv_search_gai_strerror
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13 kx $as_echo_n "checking for library containing getnameinfo... " >&6; }
13 kx if ${ac_cv_search_getnameinfo+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char getnameinfo ();
13 kx int
13 kx main ()
13 kx {
13 kx return getnameinfo ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' socket inet6; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_getnameinfo=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_getnameinfo+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_getnameinfo+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_getnameinfo=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13 kx $as_echo "$ac_cv_search_getnameinfo" >&6; }
13 kx ac_res=$ac_cv_search_getnameinfo
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx fi
13 kx
13 kx for ac_func in gai_strerror if_nametoindex if_indextoname
13 kx do :
13 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
13 kx $as_echo_n "checking for working getaddrinfo... " >&6; }
13 kx if ${ac_cv_working_getaddrinfo+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx
13 kx ac_cv_working_getaddrinfo="yes"
13 kx
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_NETDB_H
13 kx #include <netdb.h>
13 kx #endif
13 kx #ifdef HAVE_STRING_H
13 kx #include <string.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_SOCKET_H
13 kx #include <sys/socket.h>
13 kx #endif
13 kx #ifdef HAVE_STDLIB_H
13 kx #include <stdlib.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_ARPA_INET_H
13 kx #include <arpa/inet.h>
13 kx #endif
13 kx
13 kx int main(void) {
13 kx struct addrinfo hints, *ai;
13 kx int error;
13 kx
13 kx memset(&hints, 0, sizeof(hints));
13 kx hints.ai_family = AF_UNSPEC;
13 kx hints.ai_socktype = SOCK_STREAM;
13 kx error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
13 kx if (error) {
13 kx exit(1);
13 kx }
13 kx if (ai->ai_addr->sa_family != AF_INET) {
13 kx exit(1);
13 kx }
13 kx exit(0);
13 kx }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx
13 kx ac_cv_working_getaddrinfo="yes"
13 kx
13 kx else
13 kx
13 kx ac_cv_working_getaddrinfo="no"
13 kx
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
13 kx $as_echo "$ac_cv_working_getaddrinfo" >&6; }
13 kx if test "$ac_cv_working_getaddrinfo" = "yes"; then
13 kx if test "$ac_cv_func_gai_strerror" != "yes"; then
13 kx ac_cv_working_getaddrinfo="no"
13 kx else
13 kx
13 kx $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13 kx
13 kx fi
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative error codes for getaddrinfo" >&5
13 kx $as_echo_n "checking for negative error codes for getaddrinfo... " >&6; }
13 kx if ${ac_cv_negative_eai+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx
13 kx ac_cv_negative_eai="no"
13 kx
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_NETDB_H
13 kx #include <netdb.h>
13 kx #endif
13 kx #ifdef HAVE_STDLIB_H
13 kx #include <stdlib.h>
13 kx #endif
13 kx
13 kx int main(void) {
13 kx if (EAI_ADDRFAMILY < 0) {
13 kx exit(0);
13 kx }
13 kx exit(1);
13 kx }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx
13 kx ac_cv_negative_eai="yes"
13 kx
13 kx else
13 kx
13 kx ac_cv_negative_eai="no"
13 kx
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_negative_eai" >&5
13 kx $as_echo "$ac_cv_negative_eai" >&6; }
13 kx if test "$ac_cv_negative_eai" = "yes"; then
13 kx
13 kx $as_echo "#define NEGATIVE_EAI 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getnameinfo" >&5
13 kx $as_echo_n "checking for working getnameinfo... " >&6; }
13 kx if ${ac_cv_working_getnameinfo+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx
13 kx ac_cv_working_getnameinfo="yes"
13 kx
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_NETDB_H
13 kx #include <netdb.h>
13 kx #endif
13 kx #ifdef HAVE_STRING_H
13 kx #include <string.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_SOCKET_H
13 kx #include <sys/socket.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_ARPA_INET_H
13 kx #include <arpa/inet.h>
13 kx #endif
13 kx #ifdef HAVE_STDLIB_H
13 kx #include <stdlib.h>
13 kx #endif
13 kx
13 kx int main(void) {
13 kx struct sockaddr_in sa;
13 kx char hbuf[256];
13 kx int error;
13 kx
13 kx sa.sin_family = AF_INET;
13 kx sa.sin_port = 0;
13 kx sa.sin_addr.s_addr = inet_addr("127.0.0.1");
13 kx #ifdef SIN6_LEN
13 kx sa.sin_len = sizeof(sa);
13 kx #endif
13 kx
13 kx error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa),
13 kx hbuf, 256, NULL, 0,
13 kx NI_NUMERICHOST);
13 kx if (error) {
13 kx exit(1);
13 kx } else {
13 kx exit(0);
13 kx }
13 kx }
13 kx
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx
13 kx ac_cv_working_getnameinfo="yes"
13 kx
13 kx else
13 kx
13 kx ac_cv_working_getnameinfo="no"
13 kx
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getnameinfo" >&5
13 kx $as_echo "$ac_cv_working_getnameinfo" >&6; }
13 kx if test "$ac_cv_working_getnameinfo" = "yes"; then
13 kx
13 kx $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5
13 kx $as_echo_n "checking for sockaddr_in6... " >&6; }
13 kx if ${ac_cv_define_sockaddr_in6+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx struct sockaddr_in6 sa;
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx ac_cv_define_sockaddr_in6=yes
13 kx
13 kx else
13 kx
13 kx ac_cv_define_sockaddr_in6=no
13 kx
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_in6" >&5
13 kx $as_echo "$ac_cv_define_sockaddr_in6" >&6; }
13 kx
13 kx if test "$ac_cv_define_sockaddr_in6" = "yes"; then
13 kx have_sockaddr_in6=1
13 kx else
13 kx have_sockaddr_in6=0
13 kx fi
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
13 kx $as_echo_n "checking for sockaddr_storage... " >&6; }
13 kx if ${apr_cv_define_sockaddr_storage+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx struct sockaddr_storage sa;
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx apr_cv_define_sockaddr_storage=yes
13 kx else
13 kx apr_cv_define_sockaddr_storage=no
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_sockaddr_storage" >&5
13 kx $as_echo "$apr_cv_define_sockaddr_storage" >&6; }
13 kx
13 kx if test "$apr_cv_define_sockaddr_storage" = "yes"; then
13 kx have_sa_storage=1
13 kx else
13 kx have_sa_storage=0
13 kx fi
13 kx
13 kx
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_un" >&5
13 kx $as_echo_n "checking for sockaddr_un... " >&6; }
13 kx if ${ac_cv_define_sockaddr_un+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_NETINET_IN_H
13 kx #include <netinet/in.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_UN_H
13 kx #include <sys/un.h>
13 kx #endif
13 kx
13 kx int
13 kx main ()
13 kx {
13 kx
13 kx struct sockaddr_un sa;
13 kx
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_compile "$LINENO"; then :
13 kx
13 kx ac_cv_define_sockaddr_un=yes
13 kx
13 kx else
13 kx
13 kx ac_cv_define_sockaddr_un=no
13 kx
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_un" >&5
13 kx $as_echo "$ac_cv_define_sockaddr_un" >&6; }
13 kx
13 kx if test "$ac_cv_define_sockaddr_un" = "yes"; then
13 kx have_sockaddr_un=1
13 kx else
13 kx have_sockaddr_un=0
13 kx fi
13 kx
13 kx
13 kx
13 kx have_ipv6="0"
13 kx if test "$user_disabled_ipv6" = 1; then
13 kx ipv6_result="no -- disabled by user"
13 kx else
13 kx if test "x$broken_ipv6" = "x0"; then
13 kx if test "x$have_sockaddr_in6" = "x1"; then
13 kx if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
13 kx if test "x$ac_cv_working_getnameinfo" = "xyes"; then
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
13 kx $as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
13 kx if ${apr_cv_gai_addrconfig+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx
13 kx if test "$cross_compiling" = yes; then :
13 kx apr_cv_gai_addrconfig=no
13 kx else
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx #ifdef HAVE_NETDB_H
13 kx #include <netdb.h>
13 kx #endif
13 kx #ifdef HAVE_STRING_H
13 kx #include <string.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_TYPES_H
13 kx #include <sys/types.h>
13 kx #endif
13 kx #ifdef HAVE_SYS_SOCKET_H
13 kx #include <sys/socket.h>
13 kx #endif
13 kx
13 kx int main(int argc, char **argv) {
13 kx struct addrinfo hints, *ai;
13 kx
13 kx memset(&hints, 0, sizeof(hints));
13 kx hints.ai_family = AF_UNSPEC;
13 kx hints.ai_socktype = SOCK_STREAM;
13 kx hints.ai_flags = AI_ADDRCONFIG;
13 kx return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
13 kx }
13 kx _ACEOF
13 kx if ac_fn_c_try_run "$LINENO"; then :
13 kx apr_cv_gai_addrconfig=yes
13 kx else
13 kx apr_cv_gai_addrconfig=no
13 kx fi
13 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
13 kx fi
13 kx
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
13 kx $as_echo "$apr_cv_gai_addrconfig" >&6; }
13 kx
13 kx if test $apr_cv_gai_addrconfig = yes; then
13 kx
13 kx $as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx have_ipv6="1"
13 kx ipv6_result="yes"
13 kx else
13 kx ipv6_result="no -- no getnameinfo"
13 kx fi
13 kx else
13 kx ipv6_result="no -- no working getaddrinfo"
13 kx fi
13 kx else
13 kx ipv6_result="no -- no sockaddr_in6"
13 kx fi
13 kx else
13 kx ipv6_result="no -- the platform has known problems supporting IPv6"
13 kx fi
13 kx fi
13 kx
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if APR supports IPv6" >&5
13 kx $as_echo_n "checking if APR supports IPv6... " >&6; }
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_result" >&5
13 kx $as_echo "$ipv6_result" >&6; }
13 kx
13 kx
13 kx
13 kx # Check whether --enable-timedlocks was given.
13 kx if test "${enable_timedlocks+set}" = set; then :
13 kx enableval=$enable_timedlocks; apr_has_timedlocks="0"
13 kx else
13 kx apr_has_timedlocks="1"
13 kx
13 kx fi
13 kx
13 kx
13 kx
13 kx # hstrerror is only needed if IPv6 is not enabled,
13 kx # so getaddrinfo/gai_strerror are not used.
13 kx if test $have_ipv6 = 0; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
13 kx $as_echo_n "checking for library containing hstrerror... " >&6; }
13 kx if ${ac_cv_search_hstrerror+:} false; then :
13 kx $as_echo_n "(cached) " >&6
13 kx else
13 kx ac_func_search_save_LIBS=$LIBS
13 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 kx /* end confdefs.h. */
13 kx
13 kx /* Override any GCC internal prototype to avoid an error.
13 kx Use char because int might match the return type of a GCC
13 kx builtin and then its argument prototype would still apply. */
13 kx #ifdef __cplusplus
13 kx extern "C"
13 kx #endif
13 kx char hstrerror ();
13 kx int
13 kx main ()
13 kx {
13 kx return hstrerror ();
13 kx ;
13 kx return 0;
13 kx }
13 kx _ACEOF
13 kx for ac_lib in '' resolv; do
13 kx if test -z "$ac_lib"; then
13 kx ac_res="none required"
13 kx else
13 kx ac_res=-l$ac_lib
13 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13 kx fi
13 kx if ac_fn_c_try_link "$LINENO"; then :
13 kx ac_cv_search_hstrerror=$ac_res
13 kx fi
13 kx rm -f core conftest.err conftest.$ac_objext \
13 kx conftest$ac_exeext
13 kx if ${ac_cv_search_hstrerror+:} false; then :
13 kx break
13 kx fi
13 kx done
13 kx if ${ac_cv_search_hstrerror+:} false; then :
13 kx
13 kx else
13 kx ac_cv_search_hstrerror=no
13 kx fi
13 kx rm conftest.$ac_ext
13 kx LIBS=$ac_func_search_save_LIBS
13 kx fi
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
13 kx $as_echo "$ac_cv_search_hstrerror" >&6; }
13 kx ac_res=$ac_cv_search_hstrerror
13 kx if test "$ac_res" != no; then :
13 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13 kx
13 kx $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
13 kx
13 kx fi
13 kx
13 kx fi
13 kx
13 kx
13 kx for ac_header in langinfo.h
13 kx do :
13 kx ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
13 kx if test "x$ac_cv_header_langinfo_h" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_LANGINFO_H 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx
13 kx done
13 kx
13 kx for ac_func in nl_langinfo
13 kx do :
13 kx ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
13 kx if test "x$ac_cv_func_nl_langinfo" = xyes; then :
13 kx cat >>confdefs.h <<_ACEOF
13 kx #define HAVE_NL_LANGINFO 1
13 kx _ACEOF
13 kx
13 kx fi
13 kx done
13 kx
13 kx
13 kx
13 kx
13 kx if test -z "$have_unicode_fs"; then
13 kx test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"0\""
13 kx have_unicode_fs="0"
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx if test -z "$apr_has_xthread_files"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\""
13 kx apr_has_xthread_files="0"
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx if test -z "$apr_procattr_user_set_requires_password"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\""
13 kx apr_procattr_user_set_requires_password="0"
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx if test -z "$apr_thread_func"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_thread_func to \"\""
13 kx apr_thread_func=""
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx if test -z "$apr_has_user"; then
13 kx test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\""
13 kx apr_has_user="1"
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx echo "${nl}Restore user-defined environment settings..."
13 kx
13 kx
13 kx set X $apr_ste_save_CPPFLAGS
13 kx if test ${#} -eq 1; then
13 kx EXTRA_CPPFLAGS="$CPPFLAGS"
13 kx CPPFLAGS=
13 kx else
13 kx if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
13 kx EXTRA_CPPFLAGS=
13 kx else
13 kx EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
13 kx CPPFLAGS="$apr_ste_save_CPPFLAGS"
13 kx fi
13 kx fi
13 kx if test "x$silent" != "xyes"; then
13 kx echo " restoring CPPFLAGS to \"$CPPFLAGS\""
13 kx echo " setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
13 kx fi
13 kx
13 kx
13 kx
13 kx set X $apr_ste_save_CFLAGS
13 kx if test ${#} -eq 1; then
13 kx EXTRA_CFLAGS="$CFLAGS"
13 kx CFLAGS=
13 kx else
13 kx if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
13 kx EXTRA_CFLAGS=
13 kx else
13 kx EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
13 kx CFLAGS="$apr_ste_save_CFLAGS"
13 kx fi
13 kx fi
13 kx if test "x$silent" != "xyes"; then
13 kx echo " restoring CFLAGS to \"$CFLAGS\""
13 kx echo " setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
13 kx fi
13 kx
13 kx
13 kx
13 kx set X $apr_ste_save_LDFLAGS
13 kx if test ${#} -eq 1; then
13 kx EXTRA_LDFLAGS="$LDFLAGS"
13 kx LDFLAGS=
13 kx else
13 kx if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
13 kx EXTRA_LDFLAGS=
13 kx else
13 kx EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
13 kx LDFLAGS="$apr_ste_save_LDFLAGS"
13 kx fi
13 kx fi
13 kx if test "x$silent" != "xyes"; then
13 kx echo " restoring LDFLAGS to \"$LDFLAGS\""
13 kx echo " setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
13 kx fi
13 kx
13 kx
13 kx
13 kx set X $apr_ste_save_LIBS
13 kx if test ${#} -eq 1; then
13 kx EXTRA_LIBS="$LIBS"
13 kx LIBS=
13 kx else
13 kx if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
13 kx EXTRA_LIBS=
13 kx else
13 kx EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
13 kx LIBS="$apr_ste_save_LIBS"
13 kx fi
13 kx fi
13 kx if test "x$silent" != "xyes"; then
13 kx echo " restoring LIBS to \"$LIBS\""
13 kx echo " setting EXTRA_LIBS to \"$EXTRA_LIBS\""
13 kx fi
13 kx
13 kx
13 kx
13 kx set X $apr_ste_save_INCLUDES
13 kx if test ${#} -eq 1; then
13 kx EXTRA_INCLUDES="$INCLUDES"
13 kx INCLUDES=
13 kx else
13 kx if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
13 kx EXTRA_INCLUDES=
13 kx else
13 kx EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
13 kx INCLUDES="$apr_ste_save_INCLUDES"
13 kx fi
13 kx fi
13 kx if test "x$silent" != "xyes"; then
13 kx echo " restoring INCLUDES to \"$INCLUDES\""
13 kx echo " setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
13 kx fi
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # Use -no-install or -no-fast-install to link the test
13 kx # programs on all platforms but Darwin, where it would cause
13 kx # the programs to be linked against installed versions of
13 kx # libapr instead of those just built.
13 kx case $host in
13 kx *-apple-darwin*)
13 kx LT_NO_INSTALL=""
13 kx ;;
13 kx *-mingw*)
13 kx LT_NO_INSTALL="-no-fast-install"
13 kx ;;
13 kx *)
13 kx LT_NO_INSTALL="-no-install"
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx #
13 kx # BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
13 kx #
13 kx case $host in
13 kx *bsdi*)
13 kx # Check whether they've installed GNU make
13 kx if make --version > /dev/null 2>&1; then
13 kx INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
13 kx INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
13 kx else
13 kx # BSDi make
13 kx INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\""
13 kx INCLUDE_OUTPUTS=".include \"$apr_srcdir/build-outputs.mk\""
13 kx fi
13 kx ;;
13 kx *)
13 kx INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
13 kx INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx
13 kx ac_config_files="$ac_config_files Makefile include/apr.h build/apr_rules.mk build/pkg/pkginfo apr-$APR_MAJOR_VERSION-config:apr-config.in apr.pc"
13 kx
13 kx
13 kx if test -d $srcdir/test; then
13 kx ac_config_files="$ac_config_files test/Makefile test/internal/Makefile"
13 kx
13 kx fi
13 kx
13 kx dir=include/arch/unix
13 kx test -d $dir || $MKDIR $dir
13 kx
13 kx ac_config_commands="$ac_config_commands default"
13 kx
13 kx
13 kx cat >confcache <<\_ACEOF
13 kx # This file is a shell script that caches the results of configure
13 kx # tests run on this system so they can be shared between configure
13 kx # scripts and configure runs, see configure's option --config-cache.
13 kx # It is not useful on other systems. If it contains results you don't
13 kx # want to keep, you may remove or edit it.
13 kx #
13 kx # config.status only pays attention to the cache file if you give it
13 kx # the --recheck option to rerun configure.
13 kx #
13 kx # `ac_cv_env_foo' variables (set or unset) will be overridden when
13 kx # loading this file, other *unset* `ac_cv_foo' will be assigned the
13 kx # following values.
13 kx
13 kx _ACEOF
13 kx
13 kx # The following way of writing the cache mishandles newlines in values,
13 kx # but we know of no workaround that is simple, portable, and efficient.
13 kx # So, we kill variables containing newlines.
13 kx # Ultrix sh set writes to stderr and can't be redirected directly,
13 kx # and sets the high bit in the cache file unless we assign to the vars.
13 kx (
13 kx for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13 kx eval ac_val=\$$ac_var
13 kx case $ac_val in #(
13 kx *${as_nl}*)
13 kx case $ac_var in #(
13 kx *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13 kx $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13 kx esac
13 kx case $ac_var in #(
13 kx _ | IFS | as_nl) ;; #(
13 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13 kx *) { eval $ac_var=; unset $ac_var;} ;;
13 kx esac ;;
13 kx esac
13 kx done
13 kx
13 kx (set) 2>&1 |
13 kx case $as_nl`(ac_space=' '; set) 2>&1` in #(
13 kx *${as_nl}ac_space=\ *)
13 kx # `set' does not quote correctly, so add quotes: double-quote
13 kx # substitution turns \\\\ into \\, and sed turns \\ into \.
13 kx sed -n \
13 kx "s/'/'\\\\''/g;
13 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13 kx ;; #(
13 kx *)
13 kx # `set' quotes correctly as required by POSIX, so do not add quotes.
13 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13 kx ;;
13 kx esac |
13 kx sort
13 kx ) |
13 kx sed '
13 kx /^ac_cv_env_/b end
13 kx t clear
13 kx :clear
13 kx s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13 kx t end
13 kx s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13 kx :end' >>confcache
13 kx if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13 kx if test -w "$cache_file"; then
13 kx if test "x$cache_file" != "x/dev/null"; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13 kx $as_echo "$as_me: updating cache $cache_file" >&6;}
13 kx if test ! -f "$cache_file" || test -h "$cache_file"; then
13 kx cat confcache >"$cache_file"
13 kx else
13 kx case $cache_file in #(
13 kx */* | ?:*)
13 kx mv -f confcache "$cache_file"$$ &&
13 kx mv -f "$cache_file"$$ "$cache_file" ;; #(
13 kx *)
13 kx mv -f confcache "$cache_file" ;;
13 kx esac
13 kx fi
13 kx fi
13 kx else
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13 kx $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13 kx fi
13 kx fi
13 kx rm -f confcache
13 kx
13 kx test "x$prefix" = xNONE && prefix=$ac_default_prefix
13 kx # Let make expand exec_prefix.
13 kx test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13 kx
13 kx DEFS=-DHAVE_CONFIG_H
13 kx
13 kx ac_libobjs=
13 kx ac_ltlibobjs=
13 kx U=
13 kx for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13 kx # 1. Remove the extension, and $U if already installed.
13 kx ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13 kx ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13 kx # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13 kx # will be set to the directory where LIBOBJS objects are built.
13 kx as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13 kx as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13 kx done
13 kx LIBOBJS=$ac_libobjs
13 kx
13 kx LTLIBOBJS=$ac_ltlibobjs
13 kx
13 kx
13 kx
13 kx
13 kx : "${CONFIG_STATUS=./config.status}"
13 kx ac_write_fail=0
13 kx ac_clean_files_save=$ac_clean_files
13 kx ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13 kx $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13 kx as_write_fail=0
13 kx cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13 kx #! $SHELL
13 kx # Generated by $as_me.
13 kx # Run this file to recreate the current configuration.
13 kx # Compiler output produced by configure, useful for debugging
13 kx # configure, is in config.log if it exists.
13 kx
13 kx debug=false
13 kx ac_cs_recheck=false
13 kx ac_cs_silent=false
13 kx
13 kx SHELL=\${CONFIG_SHELL-$SHELL}
13 kx export SHELL
13 kx _ASEOF
13 kx cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13 kx ## -------------------- ##
13 kx ## M4sh Initialization. ##
13 kx ## -------------------- ##
13 kx
13 kx # Be more Bourne compatible
13 kx DUALCASE=1; export DUALCASE # for MKS sh
13 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13 kx emulate sh
13 kx NULLCMD=:
13 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13 kx # is contrary to our usage. Disable this feature.
13 kx alias -g '${1+"$@"}'='"$@"'
13 kx setopt NO_GLOB_SUBST
13 kx else
13 kx case `(set -o) 2>/dev/null` in #(
13 kx *posix*) :
13 kx set -o posix ;; #(
13 kx *) :
13 kx ;;
13 kx esac
13 kx fi
13 kx
13 kx
13 kx as_nl='
13 kx '
13 kx export as_nl
13 kx # Printing a long string crashes Solaris 7 /usr/bin/printf.
13 kx as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13 kx # Prefer a ksh shell builtin over an external printf program on Solaris,
13 kx # but without wasting forks for bash or zsh.
13 kx if test -z "$BASH_VERSION$ZSH_VERSION" \
13 kx && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13 kx as_echo='print -r --'
13 kx as_echo_n='print -rn --'
13 kx elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13 kx as_echo='printf %s\n'
13 kx as_echo_n='printf %s'
13 kx else
13 kx if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13 kx as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13 kx as_echo_n='/usr/ucb/echo -n'
13 kx else
13 kx as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13 kx as_echo_n_body='eval
13 kx arg=$1;
13 kx case $arg in #(
13 kx *"$as_nl"*)
13 kx expr "X$arg" : "X\\(.*\\)$as_nl";
13 kx arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13 kx esac;
13 kx expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13 kx '
13 kx export as_echo_n_body
13 kx as_echo_n='sh -c $as_echo_n_body as_echo'
13 kx fi
13 kx export as_echo_body
13 kx as_echo='sh -c $as_echo_body as_echo'
13 kx fi
13 kx
13 kx # The user is always right.
13 kx if test "${PATH_SEPARATOR+set}" != set; then
13 kx PATH_SEPARATOR=:
13 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13 kx PATH_SEPARATOR=';'
13 kx }
13 kx fi
13 kx
13 kx
13 kx # IFS
13 kx # We need space, tab and new line, in precisely that order. Quoting is
13 kx # there to prevent editors from complaining about space-tab.
13 kx # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13 kx # splitting by setting IFS to empty value.)
13 kx IFS=" "" $as_nl"
13 kx
13 kx # Find who we are. Look in the path if we contain no directory separator.
13 kx as_myself=
13 kx case $0 in #((
13 kx *[\\/]* ) as_myself=$0 ;;
13 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13 kx for as_dir in $PATH
13 kx do
13 kx IFS=$as_save_IFS
13 kx test -z "$as_dir" && as_dir=.
13 kx test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13 kx done
13 kx IFS=$as_save_IFS
13 kx
13 kx ;;
13 kx esac
13 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
13 kx # in which case we are not to be found in the path.
13 kx if test "x$as_myself" = x; then
13 kx as_myself=$0
13 kx fi
13 kx if test ! -f "$as_myself"; then
13 kx $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13 kx exit 1
13 kx fi
13 kx
13 kx # Unset variables that we do not need and which cause bugs (e.g. in
13 kx # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13 kx # suppresses any "Segmentation fault" message there. '((' could
13 kx # trigger a bug in pdksh 5.2.14.
13 kx for as_var in BASH_ENV ENV MAIL MAILPATH
13 kx do eval test x\${$as_var+set} = xset \
13 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13 kx done
13 kx PS1='$ '
13 kx PS2='> '
13 kx PS4='+ '
13 kx
13 kx # NLS nuisances.
13 kx LC_ALL=C
13 kx export LC_ALL
13 kx LANGUAGE=C
13 kx export LANGUAGE
13 kx
13 kx # CDPATH.
13 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13 kx
13 kx
13 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
13 kx # ----------------------------------------
13 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13 kx # script with STATUS, using 1 if that was 0.
13 kx as_fn_error ()
13 kx {
13 kx as_status=$1; test $as_status -eq 0 && as_status=1
13 kx if test "$4"; then
13 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13 kx $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13 kx fi
13 kx $as_echo "$as_me: error: $2" >&2
13 kx as_fn_exit $as_status
13 kx } # as_fn_error
13 kx
13 kx
13 kx # as_fn_set_status STATUS
13 kx # -----------------------
13 kx # Set $? to STATUS, without forking.
13 kx as_fn_set_status ()
13 kx {
13 kx return $1
13 kx } # as_fn_set_status
13 kx
13 kx # as_fn_exit STATUS
13 kx # -----------------
13 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13 kx as_fn_exit ()
13 kx {
13 kx set +e
13 kx as_fn_set_status $1
13 kx exit $1
13 kx } # as_fn_exit
13 kx
13 kx # as_fn_unset VAR
13 kx # ---------------
13 kx # Portably unset VAR.
13 kx as_fn_unset ()
13 kx {
13 kx { eval $1=; unset $1;}
13 kx }
13 kx as_unset=as_fn_unset
13 kx # as_fn_append VAR VALUE
13 kx # ----------------------
13 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
13 kx # advantage of any shell optimizations that allow amortized linear growth over
13 kx # repeated appends, instead of the typical quadratic growth present in naive
13 kx # implementations.
13 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13 kx eval 'as_fn_append ()
13 kx {
13 kx eval $1+=\$2
13 kx }'
13 kx else
13 kx as_fn_append ()
13 kx {
13 kx eval $1=\$$1\$2
13 kx }
13 kx fi # as_fn_append
13 kx
13 kx # as_fn_arith ARG...
13 kx # ------------------
13 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
13 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
13 kx # must be portable across $(()) and expr.
13 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13 kx eval 'as_fn_arith ()
13 kx {
13 kx as_val=$(( $* ))
13 kx }'
13 kx else
13 kx as_fn_arith ()
13 kx {
13 kx as_val=`expr "$@" || test $? -eq 1`
13 kx }
13 kx fi # as_fn_arith
13 kx
13 kx
13 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
13 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
13 kx as_expr=expr
13 kx else
13 kx as_expr=false
13 kx fi
13 kx
13 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13 kx as_basename=basename
13 kx else
13 kx as_basename=false
13 kx fi
13 kx
13 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13 kx as_dirname=dirname
13 kx else
13 kx as_dirname=false
13 kx fi
13 kx
13 kx as_me=`$as_basename -- "$0" ||
13 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13 kx X"$0" : 'X\(//\)$' \| \
13 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13 kx $as_echo X/"$0" |
13 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\/\(\/\/\)$/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\/\(\/\).*/{
13 kx s//\1/
13 kx q
13 kx }
13 kx s/.*/./; q'`
13 kx
13 kx # Avoid depending upon Character Ranges.
13 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13 kx as_cr_digits='0123456789'
13 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
13 kx
13 kx ECHO_C= ECHO_N= ECHO_T=
13 kx case `echo -n x` in #(((((
13 kx -n*)
13 kx case `echo 'xy\c'` in
13 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13 kx xy) ECHO_C='\c';;
13 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13 kx ECHO_T=' ';;
13 kx esac;;
13 kx *)
13 kx ECHO_N='-n';;
13 kx esac
13 kx
13 kx rm -f conf$$ conf$$.exe conf$$.file
13 kx if test -d conf$$.dir; then
13 kx rm -f conf$$.dir/conf$$.file
13 kx else
13 kx rm -f conf$$.dir
13 kx mkdir conf$$.dir 2>/dev/null
13 kx fi
13 kx if (echo >conf$$.file) 2>/dev/null; then
13 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
13 kx as_ln_s='ln -s'
13 kx # ... but there are two gotchas:
13 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13 kx # In both cases, we have to default to `cp -pR'.
13 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13 kx as_ln_s='cp -pR'
13 kx elif ln conf$$.file conf$$ 2>/dev/null; then
13 kx as_ln_s=ln
13 kx else
13 kx as_ln_s='cp -pR'
13 kx fi
13 kx else
13 kx as_ln_s='cp -pR'
13 kx fi
13 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13 kx rmdir conf$$.dir 2>/dev/null
13 kx
13 kx
13 kx # as_fn_mkdir_p
13 kx # -------------
13 kx # Create "$as_dir" as a directory, including parents if necessary.
13 kx as_fn_mkdir_p ()
13 kx {
13 kx
13 kx case $as_dir in #(
13 kx -*) as_dir=./$as_dir;;
13 kx esac
13 kx test -d "$as_dir" || eval $as_mkdir_p || {
13 kx as_dirs=
13 kx while :; do
13 kx case $as_dir in #(
13 kx *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13 kx *) as_qdir=$as_dir;;
13 kx esac
13 kx as_dirs="'$as_qdir' $as_dirs"
13 kx as_dir=`$as_dirname -- "$as_dir" ||
13 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13 kx X"$as_dir" : 'X\(//\)[^/]' \| \
13 kx X"$as_dir" : 'X\(//\)$' \| \
13 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13 kx $as_echo X"$as_dir" |
13 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\(\/\/\)[^/].*/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\(\/\/\)$/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\(\/\).*/{
13 kx s//\1/
13 kx q
13 kx }
13 kx s/.*/./; q'`
13 kx test -d "$as_dir" && break
13 kx done
13 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
13 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13 kx
13 kx
13 kx } # as_fn_mkdir_p
13 kx if mkdir -p . 2>/dev/null; then
13 kx as_mkdir_p='mkdir -p "$as_dir"'
13 kx else
13 kx test -d ./-p && rmdir ./-p
13 kx as_mkdir_p=false
13 kx fi
13 kx
13 kx
13 kx # as_fn_executable_p FILE
13 kx # -----------------------
13 kx # Test if FILE is an executable regular file.
13 kx as_fn_executable_p ()
13 kx {
13 kx test -f "$1" && test -x "$1"
13 kx } # as_fn_executable_p
13 kx as_test_x='test -x'
13 kx as_executable_p=as_fn_executable_p
13 kx
13 kx # Sed expression to map a string onto a valid CPP name.
13 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13 kx
13 kx # Sed expression to map a string onto a valid variable name.
13 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13 kx
13 kx
13 kx exec 6>&1
13 kx ## ----------------------------------- ##
13 kx ## Main body of $CONFIG_STATUS script. ##
13 kx ## ----------------------------------- ##
13 kx _ASEOF
13 kx test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13 kx
13 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13 kx # Save the log message, to keep $0 and so on meaningful, and to
13 kx # report actual input values of CONFIG_FILES etc. instead of their
13 kx # values after options handling.
13 kx ac_log="
13 kx This file was extended by $as_me, which was
13 kx generated by GNU Autoconf 2.69. Invocation command line was
13 kx
13 kx CONFIG_FILES = $CONFIG_FILES
13 kx CONFIG_HEADERS = $CONFIG_HEADERS
13 kx CONFIG_LINKS = $CONFIG_LINKS
13 kx CONFIG_COMMANDS = $CONFIG_COMMANDS
13 kx $ $0 $@
13 kx
13 kx on `(hostname || uname -n) 2>/dev/null | sed 1q`
13 kx "
13 kx
13 kx _ACEOF
13 kx
13 kx case $ac_config_files in *"
13 kx "*) set x $ac_config_files; shift; ac_config_files=$*;;
13 kx esac
13 kx
13 kx case $ac_config_headers in *"
13 kx "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13 kx esac
13 kx
13 kx
13 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13 kx # Files that config.status was made for.
13 kx config_files="$ac_config_files"
13 kx config_headers="$ac_config_headers"
13 kx config_commands="$ac_config_commands"
13 kx
13 kx _ACEOF
13 kx
13 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13 kx ac_cs_usage="\
13 kx \`$as_me' instantiates files and other configuration actions
13 kx from templates according to the current configuration. Unless the files
13 kx and actions are specified as TAGs, all are instantiated by default.
13 kx
13 kx Usage: $0 [OPTION]... [TAG]...
13 kx
13 kx -h, --help print this help, then exit
13 kx -V, --version print version number and configuration settings, then exit
13 kx --config print configuration, then exit
13 kx -q, --quiet, --silent
13 kx do not print progress messages
13 kx -d, --debug don't remove temporary files
13 kx --recheck update $as_me by reconfiguring in the same conditions
13 kx --file=FILE[:TEMPLATE]
13 kx instantiate the configuration file FILE
13 kx --header=FILE[:TEMPLATE]
13 kx instantiate the configuration header FILE
13 kx
13 kx Configuration files:
13 kx $config_files
13 kx
13 kx Configuration headers:
13 kx $config_headers
13 kx
13 kx Configuration commands:
13 kx $config_commands
13 kx
13 kx Report bugs to the package provider."
13 kx
13 kx _ACEOF
13 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13 kx ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13 kx ac_cs_version="\\
13 kx config.status
13 kx configured by $0, generated by GNU Autoconf 2.69,
13 kx with options \\"\$ac_cs_config\\"
13 kx
13 kx Copyright (C) 2012 Free Software Foundation, Inc.
13 kx This config.status script is free software; the Free Software Foundation
13 kx gives unlimited permission to copy, distribute and modify it."
13 kx
13 kx ac_pwd='$ac_pwd'
13 kx srcdir='$srcdir'
13 kx INSTALL='$INSTALL'
13 kx AWK='$AWK'
13 kx test -n "\$AWK" || AWK=awk
13 kx _ACEOF
13 kx
13 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13 kx # The default lists apply if the user does not specify any file.
13 kx ac_need_defaults=:
13 kx while test $# != 0
13 kx do
13 kx case $1 in
13 kx --*=?*)
13 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
13 kx ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13 kx ac_shift=:
13 kx ;;
13 kx --*=)
13 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
13 kx ac_optarg=
13 kx ac_shift=:
13 kx ;;
13 kx *)
13 kx ac_option=$1
13 kx ac_optarg=$2
13 kx ac_shift=shift
13 kx ;;
13 kx esac
13 kx
13 kx case $ac_option in
13 kx # Handling of the options.
13 kx -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13 kx ac_cs_recheck=: ;;
13 kx --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13 kx $as_echo "$ac_cs_version"; exit ;;
13 kx --config | --confi | --conf | --con | --co | --c )
13 kx $as_echo "$ac_cs_config"; exit ;;
13 kx --debug | --debu | --deb | --de | --d | -d )
13 kx debug=: ;;
13 kx --file | --fil | --fi | --f )
13 kx $ac_shift
13 kx case $ac_optarg in
13 kx *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13 kx '') as_fn_error $? "missing file argument" ;;
13 kx esac
13 kx as_fn_append CONFIG_FILES " '$ac_optarg'"
13 kx ac_need_defaults=false;;
13 kx --header | --heade | --head | --hea )
13 kx $ac_shift
13 kx case $ac_optarg in
13 kx *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13 kx esac
13 kx as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13 kx ac_need_defaults=false;;
13 kx --he | --h)
13 kx # Conflict between --help and --header
13 kx as_fn_error $? "ambiguous option: \`$1'
13 kx Try \`$0 --help' for more information.";;
13 kx --help | --hel | -h )
13 kx $as_echo "$ac_cs_usage"; exit ;;
13 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13 kx | -silent | --silent | --silen | --sile | --sil | --si | --s)
13 kx ac_cs_silent=: ;;
13 kx
13 kx # This is an error.
13 kx -*) as_fn_error $? "unrecognized option: \`$1'
13 kx Try \`$0 --help' for more information." ;;
13 kx
13 kx *) as_fn_append ac_config_targets " $1"
13 kx ac_need_defaults=false ;;
13 kx
13 kx esac
13 kx shift
13 kx done
13 kx
13 kx ac_configure_extra_args=
13 kx
13 kx if $ac_cs_silent; then
13 kx exec 6>/dev/null
13 kx ac_configure_extra_args="$ac_configure_extra_args --silent"
13 kx fi
13 kx
13 kx _ACEOF
13 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13 kx if \$ac_cs_recheck; then
13 kx set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13 kx shift
13 kx \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13 kx CONFIG_SHELL='$SHELL'
13 kx export CONFIG_SHELL
13 kx exec "\$@"
13 kx fi
13 kx
13 kx _ACEOF
13 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13 kx exec 5>>config.log
13 kx {
13 kx echo
13 kx sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13 kx ## Running $as_me. ##
13 kx _ASBOX
13 kx $as_echo "$ac_log"
13 kx } >&5
13 kx
13 kx _ACEOF
13 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13 kx #
13 kx # INIT-COMMANDS
13 kx #
13 kx
13 kx
13 kx # The HP-UX ksh and POSIX shell print the target directory to stdout
13 kx # if CDPATH is set.
13 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13 kx
13 kx sed_quote_subst='$sed_quote_subst'
13 kx double_quote_subst='$double_quote_subst'
13 kx delay_variable_subst='$delay_variable_subst'
13 kx AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13 kx DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13 kx OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13 kx macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13 kx macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13 kx enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13 kx enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13 kx pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13 kx enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13 kx shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13 kx SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13 kx ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13 kx PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13 kx host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13 kx host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13 kx host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13 kx build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13 kx build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13 kx build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13 kx SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13 kx Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13 kx GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13 kx EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13 kx FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13 kx LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13 kx NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13 kx LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13 kx max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13 kx ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13 kx exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13 kx lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13 kx lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13 kx lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13 kx lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13 kx lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13 kx reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13 kx reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13 kx deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13 kx file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13 kx file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13 kx want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13 kx sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13 kx AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13 kx AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13 kx archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13 kx STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13 kx RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13 kx old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13 kx old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13 kx old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13 kx lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13 kx CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13 kx CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13 kx compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13 kx GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13 kx lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13 kx lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13 kx lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13 kx lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13 kx 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"`'
13 kx lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13 kx nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13 kx lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13 kx lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13 kx objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13 kx MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13 kx lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13 kx lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13 kx lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13 kx lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13 kx lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13 kx need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13 kx MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13 kx DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13 kx NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13 kx LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13 kx OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13 kx OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13 kx libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13 kx shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13 kx extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13 kx archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13 kx enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13 kx export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13 kx whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13 kx compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13 kx old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13 kx old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13 kx archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13 kx archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13 kx module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13 kx module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13 kx with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13 kx allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13 kx no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13 kx hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13 kx hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13 kx hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13 kx hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13 kx hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13 kx hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13 kx hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13 kx inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13 kx link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13 kx always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13 kx export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13 kx exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13 kx include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13 kx prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13 kx postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13 kx file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13 kx variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13 kx need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13 kx need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13 kx version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13 kx runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13 kx shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13 kx shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13 kx libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13 kx library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13 kx soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13 kx install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13 kx postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13 kx postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13 kx finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13 kx finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13 kx hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13 kx sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13 kx configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13 kx configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13 kx hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13 kx enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13 kx enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13 kx enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13 kx old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13 kx striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13 kx
13 kx LTCC='$LTCC'
13 kx LTCFLAGS='$LTCFLAGS'
13 kx compiler='$compiler_DEFAULT'
13 kx
13 kx # A function that is used when there is no print builtin or printf.
13 kx func_fallback_echo ()
13 kx {
13 kx eval 'cat <<_LTECHO_EOF
13 kx \$1
13 kx _LTECHO_EOF'
13 kx }
13 kx
13 kx # Quote evaled strings.
13 kx for var in AS \
13 kx DLLTOOL \
13 kx OBJDUMP \
13 kx SHELL \
13 kx ECHO \
13 kx PATH_SEPARATOR \
13 kx SED \
13 kx GREP \
13 kx EGREP \
13 kx FGREP \
13 kx LD \
13 kx NM \
13 kx LN_S \
13 kx lt_SP2NL \
13 kx lt_NL2SP \
13 kx reload_flag \
13 kx deplibs_check_method \
13 kx file_magic_cmd \
13 kx file_magic_glob \
13 kx want_nocaseglob \
13 kx sharedlib_from_linklib_cmd \
13 kx AR \
13 kx AR_FLAGS \
13 kx archiver_list_spec \
13 kx STRIP \
13 kx RANLIB \
13 kx CC \
13 kx CFLAGS \
13 kx compiler \
13 kx lt_cv_sys_global_symbol_pipe \
13 kx lt_cv_sys_global_symbol_to_cdecl \
13 kx lt_cv_sys_global_symbol_to_import \
13 kx lt_cv_sys_global_symbol_to_c_name_address \
13 kx lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13 kx lt_cv_nm_interface \
13 kx nm_file_list_spec \
13 kx lt_cv_truncate_bin \
13 kx lt_prog_compiler_no_builtin_flag \
13 kx lt_prog_compiler_pic \
13 kx lt_prog_compiler_wl \
13 kx lt_prog_compiler_static \
13 kx lt_cv_prog_compiler_c_o \
13 kx need_locks \
13 kx MANIFEST_TOOL \
13 kx DSYMUTIL \
13 kx NMEDIT \
13 kx LIPO \
13 kx OTOOL \
13 kx OTOOL64 \
13 kx shrext_cmds \
13 kx export_dynamic_flag_spec \
13 kx whole_archive_flag_spec \
13 kx compiler_needs_object \
13 kx with_gnu_ld \
13 kx allow_undefined_flag \
13 kx no_undefined_flag \
13 kx hardcode_libdir_flag_spec \
13 kx hardcode_libdir_separator \
13 kx exclude_expsyms \
13 kx include_expsyms \
13 kx file_list_spec \
13 kx variables_saved_for_relink \
13 kx libname_spec \
13 kx library_names_spec \
13 kx soname_spec \
13 kx install_override_mode \
13 kx finish_eval \
13 kx old_striplib \
13 kx striplib; do
13 kx case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13 kx *[\\\\\\\`\\"\\\$]*)
13 kx eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13 kx ;;
13 kx *)
13 kx eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13 kx ;;
13 kx esac
13 kx done
13 kx
13 kx # Double-quote double-evaled strings.
13 kx for var in reload_cmds \
13 kx old_postinstall_cmds \
13 kx old_postuninstall_cmds \
13 kx old_archive_cmds \
13 kx extract_expsyms_cmds \
13 kx old_archive_from_new_cmds \
13 kx old_archive_from_expsyms_cmds \
13 kx archive_cmds \
13 kx archive_expsym_cmds \
13 kx module_cmds \
13 kx module_expsym_cmds \
13 kx export_symbols_cmds \
13 kx prelink_cmds \
13 kx postlink_cmds \
13 kx postinstall_cmds \
13 kx postuninstall_cmds \
13 kx finish_cmds \
13 kx sys_lib_search_path_spec \
13 kx configure_time_dlsearch_path \
13 kx configure_time_lt_sys_library_path; do
13 kx case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13 kx *[\\\\\\\`\\"\\\$]*)
13 kx eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13 kx ;;
13 kx *)
13 kx eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13 kx ;;
13 kx esac
13 kx done
13 kx
13 kx ac_aux_dir='$ac_aux_dir'
13 kx
13 kx # See if we are running on zsh, and set the options that allow our
13 kx # commands through without removal of \ escapes INIT.
13 kx if test -n "\${ZSH_VERSION+set}"; then
13 kx setopt NO_GLOB_SUBST
13 kx fi
13 kx
13 kx
13 kx PACKAGE='$PACKAGE'
13 kx VERSION='$VERSION'
13 kx RM='$RM'
13 kx ofile='$ofile'
13 kx
13 kx
13 kx
13 kx
13 kx
13 kx # Commands run at the beginning of config.status:
13 kx APR_SAVE_HEADERS="include/apr.h include/arch/unix/apr_private.h"
13 kx APR_MAJOR_VERSION=$APR_MAJOR_VERSION
13 kx APR_PLATFORM=$host
13 kx
13 kx for apri in \${APR_SAVE_HEADERS}; do
13 kx test -r \${apri} && mv \${apri} \${apri}.save
13 kx done
13 kx
13 kx
13 kx _ACEOF
13 kx
13 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13 kx
13 kx # Handling of arguments.
13 kx for ac_config_target in $ac_config_targets
13 kx do
13 kx case $ac_config_target in
13 kx "include/arch/unix/apr_private.h") CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;;
13 kx "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13 kx "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13 kx "include/apr.h") CONFIG_FILES="$CONFIG_FILES include/apr.h" ;;
13 kx "build/apr_rules.mk") CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;;
13 kx "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
13 kx "apr-$APR_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apr-$APR_MAJOR_VERSION-config:apr-config.in" ;;
13 kx "apr.pc") CONFIG_FILES="$CONFIG_FILES apr.pc" ;;
13 kx "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13 kx "test/internal/Makefile") CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;;
13 kx "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13 kx
13 kx *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13 kx esac
13 kx done
13 kx
13 kx
13 kx # If the user did not use the arguments to specify the items to instantiate,
13 kx # then the envvar interface is used. Set only those that are not.
13 kx # We use the long form for the default assignment because of an extremely
13 kx # bizarre bug on SunOS 4.1.3.
13 kx if $ac_need_defaults; then
13 kx test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13 kx test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13 kx test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13 kx fi
13 kx
13 kx # Have a temporary directory for convenience. Make it in the build tree
13 kx # simply because there is no reason against having it here, and in addition,
13 kx # creating and moving files from /tmp can sometimes cause problems.
13 kx # Hook for its removal unless debugging.
13 kx # Note that there is a small window in which the directory will not be cleaned:
13 kx # after its creation but before its name has been assigned to `$tmp'.
13 kx $debug ||
13 kx {
13 kx tmp= ac_tmp=
13 kx trap 'exit_status=$?
13 kx : "${ac_tmp:=$tmp}"
13 kx { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13 kx ' 0
13 kx trap 'as_fn_exit 1' 1 2 13 15
13 kx }
13 kx # Create a (secure) tmp directory for tmp files.
13 kx
13 kx {
13 kx tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13 kx test -d "$tmp"
13 kx } ||
13 kx {
13 kx tmp=./conf$$-$RANDOM
13 kx (umask 077 && mkdir "$tmp")
13 kx } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13 kx ac_tmp=$tmp
13 kx
13 kx # Set up the scripts for CONFIG_FILES section.
13 kx # No need to generate them if there are no CONFIG_FILES.
13 kx # This happens for instance with `./config.status config.h'.
13 kx if test -n "$CONFIG_FILES"; then
13 kx
13 kx
13 kx ac_cr=`echo X | tr X '\015'`
13 kx # On cygwin, bash can eat \r inside `` if the user requested igncr.
13 kx # But we know of no other shell where ac_cr would be empty at this
13 kx # point, so we can use a bashism as a fallback.
13 kx if test "x$ac_cr" = x; then
13 kx eval ac_cr=\$\'\\r\'
13 kx fi
13 kx ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13 kx if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13 kx ac_cs_awk_cr='\\r'
13 kx else
13 kx ac_cs_awk_cr=$ac_cr
13 kx fi
13 kx
13 kx echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13 kx _ACEOF
13 kx
13 kx
13 kx {
13 kx echo "cat >conf$$subs.awk <<_ACEOF" &&
13 kx echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13 kx echo "_ACEOF"
13 kx } >conf$$subs.sh ||
13 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13 kx ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13 kx ac_delim='%!_!# '
13 kx for ac_last_try in false false false false false :; do
13 kx . ./conf$$subs.sh ||
13 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13 kx
13 kx ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13 kx if test $ac_delim_n = $ac_delim_num; then
13 kx break
13 kx elif $ac_last_try; then
13 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13 kx else
13 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13 kx fi
13 kx done
13 kx rm -f conf$$subs.sh
13 kx
13 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13 kx cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13 kx _ACEOF
13 kx sed -n '
13 kx h
13 kx s/^/S["/; s/!.*/"]=/
13 kx p
13 kx g
13 kx s/^[^!]*!//
13 kx :repl
13 kx t repl
13 kx s/'"$ac_delim"'$//
13 kx t delim
13 kx :nl
13 kx h
13 kx s/\(.\{148\}\)..*/\1/
13 kx t more1
13 kx s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13 kx p
13 kx n
13 kx b repl
13 kx :more1
13 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13 kx p
13 kx g
13 kx s/.\{148\}//
13 kx t nl
13 kx :delim
13 kx h
13 kx s/\(.\{148\}\)..*/\1/
13 kx t more2
13 kx s/["\\]/\\&/g; s/^/"/; s/$/"/
13 kx p
13 kx b
13 kx :more2
13 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13 kx p
13 kx g
13 kx s/.\{148\}//
13 kx t delim
13 kx ' <conf$$subs.awk | sed '
13 kx /^[^""]/{
13 kx N
13 kx s/\n//
13 kx }
13 kx ' >>$CONFIG_STATUS || ac_write_fail=1
13 kx rm -f conf$$subs.awk
13 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13 kx _ACAWK
13 kx cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13 kx for (key in S) S_is_set[key] = 1
13 kx FS = ""
13 kx
13 kx }
13 kx {
13 kx line = $ 0
13 kx nfields = split(line, field, "@")
13 kx substed = 0
13 kx len = length(field[1])
13 kx for (i = 2; i < nfields; i++) {
13 kx key = field[i]
13 kx keylen = length(key)
13 kx if (S_is_set[key]) {
13 kx value = S[key]
13 kx line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13 kx len += length(value) + length(field[++i])
13 kx substed = 1
13 kx } else
13 kx len += 1 + keylen
13 kx }
13 kx
13 kx print line
13 kx }
13 kx
13 kx _ACAWK
13 kx _ACEOF
13 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13 kx if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13 kx sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13 kx else
13 kx cat
13 kx fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13 kx || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13 kx _ACEOF
13 kx
13 kx # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13 kx # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13 kx # trailing colons and then remove the whole line if VPATH becomes empty
13 kx # (actually we leave an empty line to preserve line numbers).
13 kx if test "x$srcdir" = x.; then
13 kx ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13 kx h
13 kx s///
13 kx s/^/:/
13 kx s/[ ]*$/:/
13 kx s/:\$(srcdir):/:/g
13 kx s/:\${srcdir}:/:/g
13 kx s/:@srcdir@:/:/g
13 kx s/^:*//
13 kx s/:*$//
13 kx x
13 kx s/\(=[ ]*\).*/\1/
13 kx G
13 kx s/\n//
13 kx s/^[^=]*=[ ]*$//
13 kx }'
13 kx fi
13 kx
13 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13 kx fi # test -n "$CONFIG_FILES"
13 kx
13 kx # Set up the scripts for CONFIG_HEADERS section.
13 kx # No need to generate them if there are no CONFIG_HEADERS.
13 kx # This happens for instance with `./config.status Makefile'.
13 kx if test -n "$CONFIG_HEADERS"; then
13 kx cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13 kx BEGIN {
13 kx _ACEOF
13 kx
13 kx # Transform confdefs.h into an awk script `defines.awk', embedded as
13 kx # here-document in config.status, that substitutes the proper values into
13 kx # config.h.in to produce config.h.
13 kx
13 kx # Create a delimiter string that does not exist in confdefs.h, to ease
13 kx # handling of long lines.
13 kx ac_delim='%!_!# '
13 kx for ac_last_try in false false :; do
13 kx ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13 kx if test -z "$ac_tt"; then
13 kx break
13 kx elif $ac_last_try; then
13 kx as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13 kx else
13 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13 kx fi
13 kx done
13 kx
13 kx # For the awk script, D is an array of macro values keyed by name,
13 kx # likewise P contains macro parameters if any. Preserve backslash
13 kx # newline sequences.
13 kx
13 kx ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13 kx sed -n '
13 kx s/.\{148\}/&'"$ac_delim"'/g
13 kx t rset
13 kx :rset
13 kx s/^[ ]*#[ ]*define[ ][ ]*/ /
13 kx t def
13 kx d
13 kx :def
13 kx s/\\$//
13 kx t bsnl
13 kx s/["\\]/\\&/g
13 kx s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13 kx D["\1"]=" \3"/p
13 kx s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13 kx d
13 kx :bsnl
13 kx s/["\\]/\\&/g
13 kx s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13 kx D["\1"]=" \3\\\\\\n"\\/p
13 kx t cont
13 kx s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13 kx t cont
13 kx d
13 kx :cont
13 kx n
13 kx s/.\{148\}/&'"$ac_delim"'/g
13 kx t clear
13 kx :clear
13 kx s/\\$//
13 kx t bsnlc
13 kx s/["\\]/\\&/g; s/^/"/; s/$/"/p
13 kx d
13 kx :bsnlc
13 kx s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13 kx b cont
13 kx ' <confdefs.h | sed '
13 kx s/'"$ac_delim"'/"\\\
13 kx "/g' >>$CONFIG_STATUS || ac_write_fail=1
13 kx
13 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13 kx for (key in D) D_is_set[key] = 1
13 kx FS = ""
13 kx }
13 kx /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13 kx line = \$ 0
13 kx split(line, arg, " ")
13 kx if (arg[1] == "#") {
13 kx defundef = arg[2]
13 kx mac1 = arg[3]
13 kx } else {
13 kx defundef = substr(arg[1], 2)
13 kx mac1 = arg[2]
13 kx }
13 kx split(mac1, mac2, "(") #)
13 kx macro = mac2[1]
13 kx prefix = substr(line, 1, index(line, defundef) - 1)
13 kx if (D_is_set[macro]) {
13 kx # Preserve the white space surrounding the "#".
13 kx print prefix "define", macro P[macro] D[macro]
13 kx next
13 kx } else {
13 kx # Replace #undef with comments. This is necessary, for example,
13 kx # in the case of _POSIX_SOURCE, which is predefined and required
13 kx # on some systems where configure will not decide to define it.
13 kx if (defundef == "undef") {
13 kx print "/*", prefix defundef, macro, "*/"
13 kx next
13 kx }
13 kx }
13 kx }
13 kx { print }
13 kx _ACAWK
13 kx _ACEOF
13 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13 kx as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13 kx fi # test -n "$CONFIG_HEADERS"
13 kx
13 kx
13 kx eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13 kx shift
13 kx for ac_tag
13 kx do
13 kx case $ac_tag in
13 kx :[FHLC]) ac_mode=$ac_tag; continue;;
13 kx esac
13 kx case $ac_mode$ac_tag in
13 kx :[FHL]*:*);;
13 kx :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13 kx :[FH]-) ac_tag=-:-;;
13 kx :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13 kx esac
13 kx ac_save_IFS=$IFS
13 kx IFS=:
13 kx set x $ac_tag
13 kx IFS=$ac_save_IFS
13 kx shift
13 kx ac_file=$1
13 kx shift
13 kx
13 kx case $ac_mode in
13 kx :L) ac_source=$1;;
13 kx :[FH])
13 kx ac_file_inputs=
13 kx for ac_f
13 kx do
13 kx case $ac_f in
13 kx -) ac_f="$ac_tmp/stdin";;
13 kx *) # Look for the file first in the build tree, then in the source tree
13 kx # (if the path is not absolute). The absolute path cannot be DOS-style,
13 kx # because $ac_f cannot contain `:'.
13 kx test -f "$ac_f" ||
13 kx case $ac_f in
13 kx [\\/$]*) false;;
13 kx *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13 kx esac ||
13 kx as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13 kx esac
13 kx case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13 kx as_fn_append ac_file_inputs " '$ac_f'"
13 kx done
13 kx
13 kx # Let's still pretend it is `configure' which instantiates (i.e., don't
13 kx # use $as_me), people would be surprised to read:
13 kx # /* config.h. Generated by config.status. */
13 kx configure_input='Generated from '`
13 kx $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13 kx `' by configure.'
13 kx if test x"$ac_file" != x-; then
13 kx configure_input="$ac_file. $configure_input"
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13 kx $as_echo "$as_me: creating $ac_file" >&6;}
13 kx fi
13 kx # Neutralize special characters interpreted by sed in replacement strings.
13 kx case $configure_input in #(
13 kx *\&* | *\|* | *\\* )
13 kx ac_sed_conf_input=`$as_echo "$configure_input" |
13 kx sed 's/[\\\\&|]/\\\\&/g'`;; #(
13 kx *) ac_sed_conf_input=$configure_input;;
13 kx esac
13 kx
13 kx case $ac_tag in
13 kx *:-:* | *:-) cat >"$ac_tmp/stdin" \
13 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13 kx esac
13 kx ;;
13 kx esac
13 kx
13 kx ac_dir=`$as_dirname -- "$ac_file" ||
13 kx $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13 kx X"$ac_file" : 'X\(//\)[^/]' \| \
13 kx X"$ac_file" : 'X\(//\)$' \| \
13 kx X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13 kx $as_echo X"$ac_file" |
13 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\(\/\/\)[^/].*/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\(\/\/\)$/{
13 kx s//\1/
13 kx q
13 kx }
13 kx /^X\(\/\).*/{
13 kx s//\1/
13 kx q
13 kx }
13 kx s/.*/./; q'`
13 kx as_dir="$ac_dir"; as_fn_mkdir_p
13 kx ac_builddir=.
13 kx
13 kx case "$ac_dir" in
13 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13 kx *)
13 kx ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13 kx # A ".." for each directory in $ac_dir_suffix.
13 kx ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13 kx case $ac_top_builddir_sub in
13 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13 kx esac ;;
13 kx esac
13 kx ac_abs_top_builddir=$ac_pwd
13 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
13 kx # for backward compatibility:
13 kx ac_top_builddir=$ac_top_build_prefix
13 kx
13 kx case $srcdir in
13 kx .) # We are building in place.
13 kx ac_srcdir=.
13 kx ac_top_srcdir=$ac_top_builddir_sub
13 kx ac_abs_top_srcdir=$ac_pwd ;;
13 kx [\\/]* | ?:[\\/]* ) # Absolute name.
13 kx ac_srcdir=$srcdir$ac_dir_suffix;
13 kx ac_top_srcdir=$srcdir
13 kx ac_abs_top_srcdir=$srcdir ;;
13 kx *) # Relative name.
13 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
13 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13 kx esac
13 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13 kx
13 kx
13 kx case $ac_mode in
13 kx :F)
13 kx #
13 kx # CONFIG_FILE
13 kx #
13 kx
13 kx case $INSTALL in
13 kx [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13 kx *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13 kx esac
13 kx _ACEOF
13 kx
13 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13 kx # If the template does not know about datarootdir, expand it.
13 kx # FIXME: This hack should be removed a few years after 2.60.
13 kx ac_datarootdir_hack=; ac_datarootdir_seen=
13 kx ac_sed_dataroot='
13 kx /datarootdir/ {
13 kx p
13 kx q
13 kx }
13 kx /@datadir@/p
13 kx /@docdir@/p
13 kx /@infodir@/p
13 kx /@localedir@/p
13 kx /@mandir@/p'
13 kx case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13 kx *datarootdir*) ac_datarootdir_seen=yes;;
13 kx *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13 kx $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13 kx _ACEOF
13 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13 kx ac_datarootdir_hack='
13 kx s&@datadir@&$datadir&g
13 kx s&@docdir@&$docdir&g
13 kx s&@infodir@&$infodir&g
13 kx s&@localedir@&$localedir&g
13 kx s&@mandir@&$mandir&g
13 kx s&\\\${datarootdir}&$datarootdir&g' ;;
13 kx esac
13 kx _ACEOF
13 kx
13 kx # Neutralize VPATH when `$srcdir' = `.'.
13 kx # Shell code in configure.ac might set extrasub.
13 kx # FIXME: do we really want to maintain this feature?
13 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13 kx ac_sed_extra="$ac_vpsub
13 kx $extrasub
13 kx _ACEOF
13 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13 kx :t
13 kx /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13 kx s|@configure_input@|$ac_sed_conf_input|;t t
13 kx s&@top_builddir@&$ac_top_builddir_sub&;t t
13 kx s&@top_build_prefix@&$ac_top_build_prefix&;t t
13 kx s&@srcdir@&$ac_srcdir&;t t
13 kx s&@abs_srcdir@&$ac_abs_srcdir&;t t
13 kx s&@top_srcdir@&$ac_top_srcdir&;t t
13 kx s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13 kx s&@builddir@&$ac_builddir&;t t
13 kx s&@abs_builddir@&$ac_abs_builddir&;t t
13 kx s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13 kx s&@INSTALL@&$ac_INSTALL&;t t
13 kx $ac_datarootdir_hack
13 kx "
13 kx eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13 kx >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13 kx
13 kx test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13 kx { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13 kx { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13 kx "$ac_tmp/out"`; test -z "$ac_out"; } &&
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13 kx which seems to be undefined. Please make sure it is defined" >&5
13 kx $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13 kx which seems to be undefined. Please make sure it is defined" >&2;}
13 kx
13 kx rm -f "$ac_tmp/stdin"
13 kx case $ac_file in
13 kx -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13 kx *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13 kx esac \
13 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13 kx ;;
13 kx :H)
13 kx #
13 kx # CONFIG_HEADER
13 kx #
13 kx if test x"$ac_file" != x-; then
13 kx {
13 kx $as_echo "/* $configure_input */" \
13 kx && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13 kx } >"$ac_tmp/config.h" \
13 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13 kx if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13 kx $as_echo "$as_me: $ac_file is unchanged" >&6;}
13 kx else
13 kx rm -f "$ac_file"
13 kx mv "$ac_tmp/config.h" "$ac_file" \
13 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13 kx fi
13 kx else
13 kx $as_echo "/* $configure_input */" \
13 kx && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13 kx || as_fn_error $? "could not create -" "$LINENO" 5
13 kx fi
13 kx ;;
13 kx
13 kx :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13 kx $as_echo "$as_me: executing $ac_file commands" >&6;}
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx case $ac_file$ac_mode in
13 kx "libtool":C)
13 kx
13 kx # See if we are running on zsh, and set the options that allow our
13 kx # commands through without removal of \ escapes.
13 kx if test -n "${ZSH_VERSION+set}"; then
13 kx setopt NO_GLOB_SUBST
13 kx fi
13 kx
13 kx cfgfile=${ofile}T
13 kx trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13 kx $RM "$cfgfile"
13 kx
13 kx cat <<_LT_EOF >> "$cfgfile"
13 kx #! $SHELL
13 kx # Generated automatically by $as_me ($PACKAGE) $VERSION
13 kx # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13 kx # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13 kx
13 kx # Provide generalized library-building support services.
13 kx # Written by Gordon Matzigkeit, 1996
13 kx
13 kx # Copyright (C) 2014 Free Software Foundation, Inc.
13 kx # This is free software; see the source for copying conditions. There is NO
13 kx # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 kx
13 kx # GNU Libtool is free software; you can redistribute it and/or modify
13 kx # it under the terms of the GNU General Public License as published by
13 kx # the Free Software Foundation; either version 2 of of the License, or
13 kx # (at your option) any later version.
13 kx #
13 kx # As a special exception to the GNU General Public License, if you
13 kx # distribute this file as part of a program or library that is built
13 kx # using GNU Libtool, you may include this file under the same
13 kx # distribution terms that you use for the rest of that program.
13 kx #
13 kx # GNU Libtool is distributed in the hope that it will be useful, but
13 kx # WITHOUT ANY WARRANTY; without even the implied warranty of
13 kx # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 kx # GNU General Public License for more details.
13 kx #
13 kx # You should have received a copy of the GNU General Public License
13 kx # along with this program. If not, see <http://www.gnu.org/licenses/>.
13 kx
13 kx
13 kx # The names of the tagged configurations supported by this script.
13 kx available_tags=''
13 kx
13 kx # Configured defaults for sys_lib_dlsearch_path munging.
13 kx : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
13 kx
13 kx # ### BEGIN LIBTOOL CONFIG
13 kx
13 kx # Assembler program.
13 kx AS=$lt_AS
13 kx
13 kx # DLL creation program.
13 kx DLLTOOL=$lt_DLLTOOL
13 kx
13 kx # Object dumper program.
13 kx OBJDUMP=$lt_OBJDUMP
13 kx
13 kx # Which release of libtool.m4 was used?
13 kx macro_version=$macro_version
13 kx macro_revision=$macro_revision
13 kx
13 kx # Whether or not to build shared libraries.
13 kx build_libtool_libs=$enable_shared
13 kx
13 kx # Whether or not to build static libraries.
13 kx build_old_libs=$enable_static
13 kx
13 kx # What type of objects to build.
13 kx pic_mode=$pic_mode
13 kx
13 kx # Whether or not to optimize for fast installation.
13 kx fast_install=$enable_fast_install
13 kx
13 kx # Shared archive member basename,for filename based shared library versioning on AIX.
13 kx shared_archive_member_spec=$shared_archive_member_spec
13 kx
13 kx # Shell to use when invoking shell scripts.
13 kx SHELL=$lt_SHELL
13 kx
13 kx # An echo program that protects backslashes.
13 kx ECHO=$lt_ECHO
13 kx
13 kx # The PATH separator for the build system.
13 kx PATH_SEPARATOR=$lt_PATH_SEPARATOR
13 kx
13 kx # The host system.
13 kx host_alias=$host_alias
13 kx host=$host
13 kx host_os=$host_os
13 kx
13 kx # The build system.
13 kx build_alias=$build_alias
13 kx build=$build
13 kx build_os=$build_os
13 kx
13 kx # A sed program that does not truncate output.
13 kx SED=$lt_SED
13 kx
13 kx # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13 kx Xsed="\$SED -e 1s/^X//"
13 kx
13 kx # A grep program that handles long lines.
13 kx GREP=$lt_GREP
13 kx
13 kx # An ERE matcher.
13 kx EGREP=$lt_EGREP
13 kx
13 kx # A literal string matcher.
13 kx FGREP=$lt_FGREP
13 kx
13 kx # A BSD- or MS-compatible name lister.
13 kx NM=$lt_NM
13 kx
13 kx # Whether we need soft or hard links.
13 kx LN_S=$lt_LN_S
13 kx
13 kx # What is the maximum length of a command?
13 kx max_cmd_len=$max_cmd_len
13 kx
13 kx # Object file suffix (normally "o").
13 kx objext=$ac_objext
13 kx
13 kx # Executable file suffix (normally "").
13 kx exeext=$exeext
13 kx
13 kx # whether the shell understands "unset".
13 kx lt_unset=$lt_unset
13 kx
13 kx # turn spaces into newlines.
13 kx SP2NL=$lt_lt_SP2NL
13 kx
13 kx # turn newlines into spaces.
13 kx NL2SP=$lt_lt_NL2SP
13 kx
13 kx # convert \$build file names to \$host format.
13 kx to_host_file_cmd=$lt_cv_to_host_file_cmd
13 kx
13 kx # convert \$build files to toolchain format.
13 kx to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13 kx
13 kx # Method to check whether dependent libraries are shared objects.
13 kx deplibs_check_method=$lt_deplibs_check_method
13 kx
13 kx # Command to use when deplibs_check_method = "file_magic".
13 kx file_magic_cmd=$lt_file_magic_cmd
13 kx
13 kx # How to find potential files when deplibs_check_method = "file_magic".
13 kx file_magic_glob=$lt_file_magic_glob
13 kx
13 kx # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13 kx want_nocaseglob=$lt_want_nocaseglob
13 kx
13 kx # Command to associate shared and link libraries.
13 kx sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13 kx
13 kx # The archiver.
13 kx AR=$lt_AR
13 kx
13 kx # Flags to create an archive.
13 kx AR_FLAGS=$lt_AR_FLAGS
13 kx
13 kx # How to feed a file listing to the archiver.
13 kx archiver_list_spec=$lt_archiver_list_spec
13 kx
13 kx # A symbol stripping program.
13 kx STRIP=$lt_STRIP
13 kx
13 kx # Commands used to install an old-style archive.
13 kx RANLIB=$lt_RANLIB
13 kx old_postinstall_cmds=$lt_old_postinstall_cmds
13 kx old_postuninstall_cmds=$lt_old_postuninstall_cmds
13 kx
13 kx # Whether to use a lock for old archive extraction.
13 kx lock_old_archive_extraction=$lock_old_archive_extraction
13 kx
13 kx # A C compiler.
13 kx LTCC=$lt_CC
13 kx
13 kx # LTCC compiler flags.
13 kx LTCFLAGS=$lt_CFLAGS
13 kx
13 kx # Take the output of nm and produce a listing of raw symbols and C names.
13 kx global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13 kx
13 kx # Transform the output of nm in a proper C declaration.
13 kx global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13 kx
13 kx # Transform the output of nm into a list of symbols to manually relocate.
13 kx global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
13 kx
13 kx # Transform the output of nm in a C name address pair.
13 kx global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13 kx
13 kx # Transform the output of nm in a C name address pair when lib prefix is needed.
13 kx global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13 kx
13 kx # The name lister interface.
13 kx nm_interface=$lt_lt_cv_nm_interface
13 kx
13 kx # Specify filename containing input files for \$NM.
13 kx nm_file_list_spec=$lt_nm_file_list_spec
13 kx
13 kx # The root where to search for dependent libraries,and where our libraries should be installed.
13 kx lt_sysroot=$lt_sysroot
13 kx
13 kx # Command to truncate a binary pipe.
13 kx lt_truncate_bin=$lt_lt_cv_truncate_bin
13 kx
13 kx # The name of the directory that contains temporary libtool files.
13 kx objdir=$objdir
13 kx
13 kx # Used to examine libraries when file_magic_cmd begins with "file".
13 kx MAGIC_CMD=$MAGIC_CMD
13 kx
13 kx # Must we lock files when doing compilation?
13 kx need_locks=$lt_need_locks
13 kx
13 kx # Manifest tool.
13 kx MANIFEST_TOOL=$lt_MANIFEST_TOOL
13 kx
13 kx # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13 kx DSYMUTIL=$lt_DSYMUTIL
13 kx
13 kx # Tool to change global to local symbols on Mac OS X.
13 kx NMEDIT=$lt_NMEDIT
13 kx
13 kx # Tool to manipulate fat objects and archives on Mac OS X.
13 kx LIPO=$lt_LIPO
13 kx
13 kx # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13 kx OTOOL=$lt_OTOOL
13 kx
13 kx # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13 kx OTOOL64=$lt_OTOOL64
13 kx
13 kx # Old archive suffix (normally "a").
13 kx libext=$libext
13 kx
13 kx # Shared library suffix (normally ".so").
13 kx shrext_cmds=$lt_shrext_cmds
13 kx
13 kx # The commands to extract the exported symbol list from a shared archive.
13 kx extract_expsyms_cmds=$lt_extract_expsyms_cmds
13 kx
13 kx # Variables whose values should be saved in libtool wrapper scripts and
13 kx # restored at link time.
13 kx variables_saved_for_relink=$lt_variables_saved_for_relink
13 kx
13 kx # Do we need the "lib" prefix for modules?
13 kx need_lib_prefix=$need_lib_prefix
13 kx
13 kx # Do we need a version for libraries?
13 kx need_version=$need_version
13 kx
13 kx # Library versioning type.
13 kx version_type=$version_type
13 kx
13 kx # Shared library runtime path variable.
13 kx runpath_var=$runpath_var
13 kx
13 kx # Shared library path variable.
13 kx shlibpath_var=$shlibpath_var
13 kx
13 kx # Is shlibpath searched before the hard-coded library search path?
13 kx shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13 kx
13 kx # Format of library name prefix.
13 kx libname_spec=$lt_libname_spec
13 kx
13 kx # List of archive names. First name is the real one, the rest are links.
13 kx # The last name is the one that the linker finds with -lNAME
13 kx library_names_spec=$lt_library_names_spec
13 kx
13 kx # The coded name of the library, if different from the real name.
13 kx soname_spec=$lt_soname_spec
13 kx
13 kx # Permission mode override for installation of shared libraries.
13 kx install_override_mode=$lt_install_override_mode
13 kx
13 kx # Command to use after installation of a shared archive.
13 kx postinstall_cmds=$lt_postinstall_cmds
13 kx
13 kx # Command to use after uninstallation of a shared archive.
13 kx postuninstall_cmds=$lt_postuninstall_cmds
13 kx
13 kx # Commands used to finish a libtool library installation in a directory.
13 kx finish_cmds=$lt_finish_cmds
13 kx
13 kx # As "finish_cmds", except a single script fragment to be evaled but
13 kx # not shown.
13 kx finish_eval=$lt_finish_eval
13 kx
13 kx # Whether we should hardcode library paths into libraries.
13 kx hardcode_into_libs=$hardcode_into_libs
13 kx
13 kx # Compile-time system search path for libraries.
13 kx sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13 kx
13 kx # Detected run-time system search path for libraries.
13 kx sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
13 kx
13 kx # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
13 kx configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
13 kx
13 kx # Whether dlopen is supported.
13 kx dlopen_support=$enable_dlopen
13 kx
13 kx # Whether dlopen of programs is supported.
13 kx dlopen_self=$enable_dlopen_self
13 kx
13 kx # Whether dlopen of statically linked programs is supported.
13 kx dlopen_self_static=$enable_dlopen_self_static
13 kx
13 kx # Commands to strip libraries.
13 kx old_striplib=$lt_old_striplib
13 kx striplib=$lt_striplib
13 kx
13 kx
13 kx # The linker used to build libraries.
13 kx LD=$lt_LD
13 kx
13 kx # How to create reloadable object files.
13 kx reload_flag=$lt_reload_flag
13 kx reload_cmds=$lt_reload_cmds
13 kx
13 kx # Commands used to build an old-style archive.
13 kx old_archive_cmds=$lt_old_archive_cmds
13 kx
13 kx # A language specific compiler.
13 kx CC=$lt_compiler
13 kx
13 kx # Is the compiler the GNU compiler?
13 kx with_gcc=$GCC
13 kx
13 kx # Compiler flag to turn off builtin functions.
13 kx no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13 kx
13 kx # Additional compiler flags for building library objects.
13 kx pic_flag=$lt_lt_prog_compiler_pic
13 kx
13 kx # How to pass a linker flag through the compiler.
13 kx wl=$lt_lt_prog_compiler_wl
13 kx
13 kx # Compiler flag to prevent dynamic linking.
13 kx link_static_flag=$lt_lt_prog_compiler_static
13 kx
13 kx # Does compiler simultaneously support -c and -o options?
13 kx compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13 kx
13 kx # Whether or not to add -lc for building shared libraries.
13 kx build_libtool_need_lc=$archive_cmds_need_lc
13 kx
13 kx # Whether or not to disallow shared libs when runtime libs are static.
13 kx allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13 kx
13 kx # Compiler flag to allow reflexive dlopens.
13 kx export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13 kx
13 kx # Compiler flag to generate shared objects directly from archives.
13 kx whole_archive_flag_spec=$lt_whole_archive_flag_spec
13 kx
13 kx # Whether the compiler copes with passing no objects directly.
13 kx compiler_needs_object=$lt_compiler_needs_object
13 kx
13 kx # Create an old-style archive from a shared archive.
13 kx old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13 kx
13 kx # Create a temporary old-style archive to link instead of a shared archive.
13 kx old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13 kx
13 kx # Commands used to build a shared archive.
13 kx archive_cmds=$lt_archive_cmds
13 kx archive_expsym_cmds=$lt_archive_expsym_cmds
13 kx
13 kx # Commands used to build a loadable module if different from building
13 kx # a shared archive.
13 kx module_cmds=$lt_module_cmds
13 kx module_expsym_cmds=$lt_module_expsym_cmds
13 kx
13 kx # Whether we are building with GNU ld or not.
13 kx with_gnu_ld=$lt_with_gnu_ld
13 kx
13 kx # Flag that allows shared libraries with undefined symbols to be built.
13 kx allow_undefined_flag=$lt_allow_undefined_flag
13 kx
13 kx # Flag that enforces no undefined symbols.
13 kx no_undefined_flag=$lt_no_undefined_flag
13 kx
13 kx # Flag to hardcode \$libdir into a binary during linking.
13 kx # This must work even if \$libdir does not exist
13 kx hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13 kx
13 kx # Whether we need a single "-rpath" flag with a separated argument.
13 kx hardcode_libdir_separator=$lt_hardcode_libdir_separator
13 kx
13 kx # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
13 kx # DIR into the resulting binary.
13 kx hardcode_direct=$hardcode_direct
13 kx
13 kx # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
13 kx # DIR into the resulting binary and the resulting library dependency is
13 kx # "absolute",i.e impossible to change by setting \$shlibpath_var if the
13 kx # library is relocated.
13 kx hardcode_direct_absolute=$hardcode_direct_absolute
13 kx
13 kx # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13 kx # into the resulting binary.
13 kx hardcode_minus_L=$hardcode_minus_L
13 kx
13 kx # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13 kx # into the resulting binary.
13 kx hardcode_shlibpath_var=$hardcode_shlibpath_var
13 kx
13 kx # Set to "yes" if building a shared library automatically hardcodes DIR
13 kx # into the library and all subsequent libraries and executables linked
13 kx # against it.
13 kx hardcode_automatic=$hardcode_automatic
13 kx
13 kx # Set to yes if linker adds runtime paths of dependent libraries
13 kx # to runtime path list.
13 kx inherit_rpath=$inherit_rpath
13 kx
13 kx # Whether libtool must link a program against all its dependency libraries.
13 kx link_all_deplibs=$link_all_deplibs
13 kx
13 kx # Set to "yes" if exported symbols are required.
13 kx always_export_symbols=$always_export_symbols
13 kx
13 kx # The commands to list exported symbols.
13 kx export_symbols_cmds=$lt_export_symbols_cmds
13 kx
13 kx # Symbols that should not be listed in the preloaded symbols.
13 kx exclude_expsyms=$lt_exclude_expsyms
13 kx
13 kx # Symbols that must always be exported.
13 kx include_expsyms=$lt_include_expsyms
13 kx
13 kx # Commands necessary for linking programs (against libraries) with templates.
13 kx prelink_cmds=$lt_prelink_cmds
13 kx
13 kx # Commands necessary for finishing linking programs.
13 kx postlink_cmds=$lt_postlink_cmds
13 kx
13 kx # Specify filename containing input files.
13 kx file_list_spec=$lt_file_list_spec
13 kx
13 kx # How to hardcode a shared library path into an executable.
13 kx hardcode_action=$hardcode_action
13 kx
13 kx # ### END LIBTOOL CONFIG
13 kx
13 kx _LT_EOF
13 kx
13 kx cat <<'_LT_EOF' >> "$cfgfile"
13 kx
13 kx # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
13 kx
13 kx # func_munge_path_list VARIABLE PATH
13 kx # -----------------------------------
13 kx # VARIABLE is name of variable containing _space_ separated list of
13 kx # directories to be munged by the contents of PATH, which is string
13 kx # having a format:
13 kx # "DIR[:DIR]:"
13 kx # string "DIR[ DIR]" will be prepended to VARIABLE
13 kx # ":DIR[:DIR]"
13 kx # string "DIR[ DIR]" will be appended to VARIABLE
13 kx # "DIRP[:DIRP]::[DIRA:]DIRA"
13 kx # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
13 kx # "DIRA[ DIRA]" will be appended to VARIABLE
13 kx # "DIR[:DIR]"
13 kx # VARIABLE will be replaced by "DIR[ DIR]"
13 kx func_munge_path_list ()
13 kx {
13 kx case x$2 in
13 kx x)
13 kx ;;
13 kx *:)
13 kx eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
13 kx ;;
13 kx x:*)
13 kx eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
13 kx ;;
13 kx *::*)
13 kx eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
13 kx eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
13 kx ;;
13 kx *)
13 kx eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
13 kx ;;
13 kx esac
13 kx }
13 kx
13 kx
13 kx # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13 kx func_cc_basename ()
13 kx {
13 kx for cc_temp in $*""; do
13 kx case $cc_temp in
13 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13 kx \-*) ;;
13 kx *) break;;
13 kx esac
13 kx done
13 kx func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13 kx }
13 kx
13 kx
13 kx # ### END FUNCTIONS SHARED WITH CONFIGURE
13 kx
13 kx _LT_EOF
13 kx
13 kx case $host_os in
13 kx aix3*)
13 kx cat <<\_LT_EOF >> "$cfgfile"
13 kx # AIX sometimes has problems with the GCC collect2 program. For some
13 kx # reason, if we set the COLLECT_NAMES environment variable, the problems
13 kx # vanish in a puff of smoke.
13 kx if test set != "${COLLECT_NAMES+set}"; then
13 kx COLLECT_NAMES=
13 kx export COLLECT_NAMES
13 kx fi
13 kx _LT_EOF
13 kx ;;
13 kx esac
13 kx
13 kx
13 kx ltmain=$ac_aux_dir/ltmain.sh
13 kx
13 kx
13 kx # We use sed instead of cat because bash on DJGPP gets confused if
13 kx # if finds mixed CR/LF and LF-only lines. Since sed operates in
13 kx # text mode, it properly converts lines to CR/LF. This bash problem
13 kx # is reportedly fixed, but why not run on old versions too?
13 kx sed '$q' "$ltmain" >> "$cfgfile" \
13 kx || (rm -f "$cfgfile"; exit 1)
13 kx
13 kx mv -f "$cfgfile" "$ofile" ||
13 kx (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13 kx chmod +x "$ofile"
13 kx
13 kx ;;
13 kx "default":C)
13 kx # Commands run at the end of config.status:
13 kx for i in $APR_SAVE_HEADERS; do
13 kx if cmp -s $i $i.save 2>/dev/null; then
13 kx mv $i.save $i
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: $i is unchanged" >&5
13 kx $as_echo "$as_me: $i is unchanged" >&6;}
13 kx fi
13 kx rm -f $i.save
13 kx done
13 kx chmod +x apr-$APR_MAJOR_VERSION-config
13 kx ;;
13 kx
13 kx esac
13 kx done # for ac_tag
13 kx
13 kx
13 kx as_fn_exit 0
13 kx _ACEOF
13 kx ac_clean_files=$ac_clean_files_save
13 kx
13 kx test $ac_write_fail = 0 ||
13 kx as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13 kx
13 kx
13 kx # configure is writing to config.log, and then calls config.status.
13 kx # config.status does its own redirection, appending to config.log.
13 kx # Unfortunately, on DOS this fails, as config.log is still kept open
13 kx # by configure, so config.status won't be able to write to it; its
13 kx # output is simply discarded. So we exec the FD to /dev/null,
13 kx # effectively closing config.log, so it can be properly (re)opened and
13 kx # appended to by config.status. When coming back to configure, we
13 kx # need to make the FD available again.
13 kx if test "$no_create" != yes; then
13 kx ac_cs_success=:
13 kx ac_config_status_args=
13 kx test "$silent" = yes &&
13 kx ac_config_status_args="$ac_config_status_args --quiet"
13 kx exec 5>/dev/null
13 kx $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13 kx exec 5>>config.log
13 kx # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13 kx # would make configure fail if this is the last instruction.
13 kx $ac_cs_success || as_fn_exit 1
13 kx fi
13 kx if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13 kx $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13 kx fi
13 kx