9 kx #! /bin/sh
9 kx # Guess values for system-dependent variables and create Makefiles.
9 kx # Generated by GNU Autoconf 2.69 for gas 2.40.
9 kx #
9 kx #
9 kx # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 kx #
9 kx #
9 kx # This configure script is free software; the Free Software Foundation
9 kx # gives unlimited permission to copy, distribute and modify it.
9 kx ## -------------------- ##
9 kx ## M4sh Initialization. ##
9 kx ## -------------------- ##
9 kx
9 kx # Be more Bourne compatible
9 kx DUALCASE=1; export DUALCASE # for MKS sh
9 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9 kx emulate sh
9 kx NULLCMD=:
9 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9 kx # is contrary to our usage. Disable this feature.
9 kx alias -g '${1+"$@"}'='"$@"'
9 kx setopt NO_GLOB_SUBST
9 kx else
9 kx case `(set -o) 2>/dev/null` in #(
9 kx *posix*) :
9 kx set -o posix ;; #(
9 kx *) :
9 kx ;;
9 kx esac
9 kx fi
9 kx
9 kx
9 kx as_nl='
9 kx '
9 kx export as_nl
9 kx # Printing a long string crashes Solaris 7 /usr/bin/printf.
9 kx as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9 kx # Prefer a ksh shell builtin over an external printf program on Solaris,
9 kx # but without wasting forks for bash or zsh.
9 kx if test -z "$BASH_VERSION$ZSH_VERSION" \
9 kx && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9 kx as_echo='print -r --'
9 kx as_echo_n='print -rn --'
9 kx elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9 kx as_echo='printf %s\n'
9 kx as_echo_n='printf %s'
9 kx else
9 kx if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9 kx as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9 kx as_echo_n='/usr/ucb/echo -n'
9 kx else
9 kx as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9 kx as_echo_n_body='eval
9 kx arg=$1;
9 kx case $arg in #(
9 kx *"$as_nl"*)
9 kx expr "X$arg" : "X\\(.*\\)$as_nl";
9 kx arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9 kx esac;
9 kx expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9 kx '
9 kx export as_echo_n_body
9 kx as_echo_n='sh -c $as_echo_n_body as_echo'
9 kx fi
9 kx export as_echo_body
9 kx as_echo='sh -c $as_echo_body as_echo'
9 kx fi
9 kx
9 kx # The user is always right.
9 kx if test "${PATH_SEPARATOR+set}" != set; then
9 kx PATH_SEPARATOR=:
9 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9 kx PATH_SEPARATOR=';'
9 kx }
9 kx fi
9 kx
9 kx
9 kx # IFS
9 kx # We need space, tab and new line, in precisely that order. Quoting is
9 kx # there to prevent editors from complaining about space-tab.
9 kx # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9 kx # splitting by setting IFS to empty value.)
9 kx IFS=" "" $as_nl"
9 kx
9 kx # Find who we are. Look in the path if we contain no directory separator.
9 kx as_myself=
9 kx case $0 in #((
9 kx *[\\/]* ) as_myself=$0 ;;
9 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx ;;
9 kx esac
9 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
9 kx # in which case we are not to be found in the path.
9 kx if test "x$as_myself" = x; then
9 kx as_myself=$0
9 kx fi
9 kx if test ! -f "$as_myself"; then
9 kx $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9 kx exit 1
9 kx fi
9 kx
9 kx # Unset variables that we do not need and which cause bugs (e.g. in
9 kx # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9 kx # suppresses any "Segmentation fault" message there. '((' could
9 kx # trigger a bug in pdksh 5.2.14.
9 kx for as_var in BASH_ENV ENV MAIL MAILPATH
9 kx do eval test x\${$as_var+set} = xset \
9 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9 kx done
9 kx PS1='$ '
9 kx PS2='> '
9 kx PS4='+ '
9 kx
9 kx # NLS nuisances.
9 kx LC_ALL=C
9 kx export LC_ALL
9 kx LANGUAGE=C
9 kx export LANGUAGE
9 kx
9 kx # CDPATH.
9 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9 kx
9 kx # Use a proper internal environment variable to ensure we don't fall
9 kx # into an infinite loop, continuously re-executing ourselves.
9 kx if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
9 kx _as_can_reexec=no; export _as_can_reexec;
9 kx # We cannot yet assume a decent shell, so we have to provide a
9 kx # neutralization value for shells without unset; and this also
9 kx # works around shells that cannot unset nonexistent variables.
9 kx # Preserve -v and -x to the replacement shell.
9 kx BASH_ENV=/dev/null
9 kx ENV=/dev/null
9 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
9 kx case $- in # ((((
9 kx *v*x* | *x*v* ) as_opts=-vx ;;
9 kx *v* ) as_opts=-v ;;
9 kx *x* ) as_opts=-x ;;
9 kx * ) as_opts= ;;
9 kx esac
9 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
9 kx # Admittedly, this is quite paranoid, since all the known shells bail
9 kx # out after a failed `exec'.
9 kx $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
9 kx as_fn_exit 255
9 kx fi
9 kx # We don't want this to propagate to other subprocesses.
9 kx { _as_can_reexec=; unset _as_can_reexec;}
9 kx if test "x$CONFIG_SHELL" = x; then
9 kx as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
9 kx emulate sh
9 kx NULLCMD=:
9 kx # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
9 kx # is contrary to our usage. Disable this feature.
9 kx alias -g '\${1+\"\$@\"}'='\"\$@\"'
9 kx setopt NO_GLOB_SUBST
9 kx else
9 kx case \`(set -o) 2>/dev/null\` in #(
9 kx *posix*) :
9 kx set -o posix ;; #(
9 kx *) :
9 kx ;;
9 kx esac
9 kx fi
9 kx "
9 kx as_required="as_fn_return () { (exit \$1); }
9 kx as_fn_success () { as_fn_return 0; }
9 kx as_fn_failure () { as_fn_return 1; }
9 kx as_fn_ret_success () { return 0; }
9 kx as_fn_ret_failure () { return 1; }
9 kx
9 kx exitcode=0
9 kx as_fn_success || { exitcode=1; echo as_fn_success failed.; }
9 kx as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
9 kx as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
9 kx as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
9 kx if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
9 kx
9 kx else
9 kx exitcode=1; echo positional parameters were not saved.
9 kx fi
9 kx test x\$exitcode = x0 || exit 1
9 kx test -x / || exit 1"
9 kx as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
9 kx as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
9 kx eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
9 kx test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
9 kx test \$(( 1 + 1 )) = 2 || exit 1
9 kx
9 kx test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
9 kx ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9 kx ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
9 kx ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
9 kx PATH=/empty FPATH=/empty; export PATH FPATH
9 kx test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
9 kx || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
9 kx if (eval "$as_required") 2>/dev/null; then :
9 kx as_have_required=yes
9 kx else
9 kx as_have_required=no
9 kx fi
9 kx if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
9 kx
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx as_found=false
9 kx for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx as_found=:
9 kx case $as_dir in #(
9 kx /*)
9 kx for as_base in sh bash ksh sh5; do
9 kx # Try only shells that exist, to save several forks.
9 kx as_shell=$as_dir/$as_base
9 kx if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
9 kx { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
9 kx CONFIG_SHELL=$as_shell as_have_required=yes
9 kx if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
9 kx break 2
9 kx fi
9 kx fi
9 kx done;;
9 kx esac
9 kx as_found=false
9 kx done
9 kx $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
9 kx { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
9 kx CONFIG_SHELL=$SHELL as_have_required=yes
9 kx fi; }
9 kx IFS=$as_save_IFS
9 kx
9 kx
9 kx if test "x$CONFIG_SHELL" != x; then :
9 kx export CONFIG_SHELL
9 kx # We cannot yet assume a decent shell, so we have to provide a
9 kx # neutralization value for shells without unset; and this also
9 kx # works around shells that cannot unset nonexistent variables.
9 kx # Preserve -v and -x to the replacement shell.
9 kx BASH_ENV=/dev/null
9 kx ENV=/dev/null
9 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
9 kx case $- in # ((((
9 kx *v*x* | *x*v* ) as_opts=-vx ;;
9 kx *v* ) as_opts=-v ;;
9 kx *x* ) as_opts=-x ;;
9 kx * ) as_opts= ;;
9 kx esac
9 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
9 kx # Admittedly, this is quite paranoid, since all the known shells bail
9 kx # out after a failed `exec'.
9 kx $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
9 kx exit 255
9 kx fi
9 kx
9 kx if test x$as_have_required = xno; then :
9 kx $as_echo "$0: This script requires a shell more modern than all"
9 kx $as_echo "$0: the shells that I found on your system."
9 kx if test x${ZSH_VERSION+set} = xset ; then
9 kx $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
9 kx $as_echo "$0: be upgraded to zsh 4.3.4 or later."
9 kx else
9 kx $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
9 kx $0: including any error possibly output before this
9 kx $0: message. Then install a modern shell, or manually run
9 kx $0: the script under such a shell if you do have one."
9 kx fi
9 kx exit 1
9 kx fi
9 kx fi
9 kx fi
9 kx SHELL=${CONFIG_SHELL-/bin/sh}
9 kx export SHELL
9 kx # Unset more variables known to interfere with behavior of common tools.
9 kx CLICOLOR_FORCE= GREP_OPTIONS=
9 kx unset CLICOLOR_FORCE GREP_OPTIONS
9 kx
9 kx ## --------------------- ##
9 kx ## M4sh Shell Functions. ##
9 kx ## --------------------- ##
9 kx # as_fn_unset VAR
9 kx # ---------------
9 kx # Portably unset VAR.
9 kx as_fn_unset ()
9 kx {
9 kx { eval $1=; unset $1;}
9 kx }
9 kx as_unset=as_fn_unset
9 kx
9 kx # as_fn_set_status STATUS
9 kx # -----------------------
9 kx # Set $? to STATUS, without forking.
9 kx as_fn_set_status ()
9 kx {
9 kx return $1
9 kx } # as_fn_set_status
9 kx
9 kx # as_fn_exit STATUS
9 kx # -----------------
9 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9 kx as_fn_exit ()
9 kx {
9 kx set +e
9 kx as_fn_set_status $1
9 kx exit $1
9 kx } # as_fn_exit
9 kx
9 kx # as_fn_mkdir_p
9 kx # -------------
9 kx # Create "$as_dir" as a directory, including parents if necessary.
9 kx as_fn_mkdir_p ()
9 kx {
9 kx
9 kx case $as_dir in #(
9 kx -*) as_dir=./$as_dir;;
9 kx esac
9 kx test -d "$as_dir" || eval $as_mkdir_p || {
9 kx as_dirs=
9 kx while :; do
9 kx case $as_dir in #(
9 kx *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9 kx *) as_qdir=$as_dir;;
9 kx esac
9 kx as_dirs="'$as_qdir' $as_dirs"
9 kx as_dir=`$as_dirname -- "$as_dir" ||
9 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9 kx X"$as_dir" : 'X\(//\)[^/]' \| \
9 kx X"$as_dir" : 'X\(//\)$' \| \
9 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9 kx $as_echo X"$as_dir" |
9 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)[^/].*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\).*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx s/.*/./; q'`
9 kx test -d "$as_dir" && break
9 kx done
9 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
9 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9 kx
9 kx
9 kx } # as_fn_mkdir_p
9 kx
9 kx # as_fn_executable_p FILE
9 kx # -----------------------
9 kx # Test if FILE is an executable regular file.
9 kx as_fn_executable_p ()
9 kx {
9 kx test -f "$1" && test -x "$1"
9 kx } # as_fn_executable_p
9 kx # as_fn_append VAR VALUE
9 kx # ----------------------
9 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
9 kx # advantage of any shell optimizations that allow amortized linear growth over
9 kx # repeated appends, instead of the typical quadratic growth present in naive
9 kx # implementations.
9 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9 kx eval 'as_fn_append ()
9 kx {
9 kx eval $1+=\$2
9 kx }'
9 kx else
9 kx as_fn_append ()
9 kx {
9 kx eval $1=\$$1\$2
9 kx }
9 kx fi # as_fn_append
9 kx
9 kx # as_fn_arith ARG...
9 kx # ------------------
9 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
9 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
9 kx # must be portable across $(()) and expr.
9 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9 kx eval 'as_fn_arith ()
9 kx {
9 kx as_val=$(( $* ))
9 kx }'
9 kx else
9 kx as_fn_arith ()
9 kx {
9 kx as_val=`expr "$@" || test $? -eq 1`
9 kx }
9 kx fi # as_fn_arith
9 kx
9 kx
9 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
9 kx # ----------------------------------------
9 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9 kx # script with STATUS, using 1 if that was 0.
9 kx as_fn_error ()
9 kx {
9 kx as_status=$1; test $as_status -eq 0 && as_status=1
9 kx if test "$4"; then
9 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9 kx fi
9 kx $as_echo "$as_me: error: $2" >&2
9 kx as_fn_exit $as_status
9 kx } # as_fn_error
9 kx
9 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
9 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
9 kx as_expr=expr
9 kx else
9 kx as_expr=false
9 kx fi
9 kx
9 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9 kx as_basename=basename
9 kx else
9 kx as_basename=false
9 kx fi
9 kx
9 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9 kx as_dirname=dirname
9 kx else
9 kx as_dirname=false
9 kx fi
9 kx
9 kx as_me=`$as_basename -- "$0" ||
9 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9 kx X"$0" : 'X\(//\)$' \| \
9 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9 kx $as_echo X/"$0" |
9 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\/\(\/\/\)$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\/\(\/\).*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx s/.*/./; q'`
9 kx
9 kx # Avoid depending upon Character Ranges.
9 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9 kx as_cr_digits='0123456789'
9 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
9 kx
9 kx
9 kx as_lineno_1=$LINENO as_lineno_1a=$LINENO
9 kx as_lineno_2=$LINENO as_lineno_2a=$LINENO
9 kx eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
9 kx test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
9 kx # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
9 kx sed -n '
9 kx p
9 kx /[$]LINENO/=
9 kx ' <$as_myself |
9 kx sed '
9 kx s/[$]LINENO.*/&-/
9 kx t lineno
9 kx b
9 kx :lineno
9 kx N
9 kx :loop
9 kx s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9 kx t loop
9 kx s/-\n.*//
9 kx ' >$as_me.lineno &&
9 kx chmod +x "$as_me.lineno" ||
9 kx { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
9 kx
9 kx # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
9 kx # already done that, so ensure we don't try to do so again and fall
9 kx # in an infinite loop. This has already happened in practice.
9 kx _as_can_reexec=no; export _as_can_reexec
9 kx # Don't try to exec as it changes $[0], causing all sort of problems
9 kx # (the dirname of $[0] is not the place where we might find the
9 kx # original and so on. Autoconf is especially sensitive to this).
9 kx . "./$as_me.lineno"
9 kx # Exit status is that of the last command.
9 kx exit
9 kx }
9 kx
9 kx ECHO_C= ECHO_N= ECHO_T=
9 kx case `echo -n x` in #(((((
9 kx -n*)
9 kx case `echo 'xy\c'` in
9 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9 kx xy) ECHO_C='\c';;
9 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9 kx ECHO_T=' ';;
9 kx esac;;
9 kx *)
9 kx ECHO_N='-n';;
9 kx esac
9 kx
9 kx rm -f conf$$ conf$$.exe conf$$.file
9 kx if test -d conf$$.dir; then
9 kx rm -f conf$$.dir/conf$$.file
9 kx else
9 kx rm -f conf$$.dir
9 kx mkdir conf$$.dir 2>/dev/null
9 kx fi
9 kx if (echo >conf$$.file) 2>/dev/null; then
9 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
9 kx as_ln_s='ln -s'
9 kx # ... but there are two gotchas:
9 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9 kx # In both cases, we have to default to `cp -pR'.
9 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9 kx as_ln_s='cp -pR'
9 kx elif ln conf$$.file conf$$ 2>/dev/null; then
9 kx as_ln_s=ln
9 kx else
9 kx as_ln_s='cp -pR'
9 kx fi
9 kx else
9 kx as_ln_s='cp -pR'
9 kx fi
9 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9 kx rmdir conf$$.dir 2>/dev/null
9 kx
9 kx if mkdir -p . 2>/dev/null; then
9 kx as_mkdir_p='mkdir -p "$as_dir"'
9 kx else
9 kx test -d ./-p && rmdir ./-p
9 kx as_mkdir_p=false
9 kx fi
9 kx
9 kx as_test_x='test -x'
9 kx as_executable_p=as_fn_executable_p
9 kx
9 kx # Sed expression to map a string onto a valid CPP name.
9 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9 kx
9 kx # Sed expression to map a string onto a valid variable name.
9 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9 kx
9 kx SHELL=${CONFIG_SHELL-/bin/sh}
9 kx
9 kx
9 kx test -n "$DJDIR" || exec 7<&0 </dev/null
9 kx exec 6>&1
9 kx
9 kx # Name of the host.
9 kx # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
9 kx # so uname gets run too.
9 kx ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
9 kx
9 kx #
9 kx # Initializations.
9 kx #
9 kx ac_default_prefix=/usr/local
9 kx ac_clean_files=
9 kx ac_config_libobj_dir=.
9 kx LIBOBJS=
9 kx cross_compiling=no
9 kx subdirs=
9 kx MFLAGS=
9 kx MAKEFLAGS=
9 kx
9 kx # Identity of this package.
9 kx PACKAGE_NAME='gas'
9 kx PACKAGE_TARNAME='gas'
9 kx PACKAGE_VERSION='2.40'
9 kx PACKAGE_STRING='gas 2.40'
9 kx PACKAGE_BUGREPORT=''
9 kx PACKAGE_URL=''
9 kx
9 kx ac_unique_file="as.h"
9 kx # Factoring default headers for most tests.
9 kx ac_includes_default="\
9 kx #include <stdio.h>
9 kx #ifdef HAVE_SYS_TYPES_H
9 kx # include <sys/types.h>
9 kx #endif
9 kx #ifdef HAVE_SYS_STAT_H
9 kx # include <sys/stat.h>
9 kx #endif
9 kx #ifdef STDC_HEADERS
9 kx # include <stdlib.h>
9 kx # include <stddef.h>
9 kx #else
9 kx # ifdef HAVE_STDLIB_H
9 kx # include <stdlib.h>
9 kx # endif
9 kx #endif
9 kx #ifdef HAVE_STRING_H
9 kx # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
9 kx # include <memory.h>
9 kx # endif
9 kx # include <string.h>
9 kx #endif
9 kx #ifdef HAVE_STRINGS_H
9 kx # include <strings.h>
9 kx #endif
9 kx #ifdef HAVE_INTTYPES_H
9 kx # include <inttypes.h>
9 kx #endif
9 kx #ifdef HAVE_STDINT_H
9 kx # include <stdint.h>
9 kx #endif
9 kx #ifdef HAVE_UNISTD_H
9 kx # include <unistd.h>
9 kx #endif"
9 kx
9 kx ac_subst_vars='am__EXEEXT_FALSE
9 kx am__EXEEXT_TRUE
9 kx LTLIBOBJS
9 kx LIBOBJS
9 kx ZSTD_LIBS
9 kx ZSTD_CFLAGS
9 kx PKG_CONFIG_LIBDIR
9 kx PKG_CONFIG_PATH
9 kx PKG_CONFIG
9 kx zlibinc
9 kx zlibdir
9 kx LIBM
9 kx GENINSRC_NEVER_FALSE
9 kx GENINSRC_NEVER_TRUE
9 kx MAINT
9 kx MAINTAINER_MODE_FALSE
9 kx MAINTAINER_MODE_TRUE
9 kx MSGMERGE
9 kx MSGFMT
9 kx MKINSTALLDIRS
9 kx CATOBJEXT
9 kx GENCAT
9 kx INSTOBJEXT
9 kx DATADIRNAME
9 kx CATALOGS
9 kx POSUB
9 kx GMSGFMT
9 kx XGETTEXT
9 kx INCINTL
9 kx LIBINTL_DEP
9 kx LIBINTL
9 kx USE_NLS
9 kx LEXLIB
9 kx LEX_OUTPUT_ROOT
9 kx LEX
9 kx YFLAGS
9 kx YACC
9 kx OPCODES_LIB
9 kx atof
9 kx install_tooldir
9 kx te_file
9 kx obj_format
9 kx target_cpu_type
9 kx extra_objects
9 kx cgen_cpu_prefix
9 kx GDBINIT
9 kx WARN_WRITE_STRINGS
9 kx NO_WERROR
9 kx WARN_CFLAGS_FOR_BUILD
9 kx WARN_CFLAGS
9 kx do_compare
9 kx LARGEFILE_CPPFLAGS
9 kx OTOOL64
9 kx OTOOL
9 kx LIPO
9 kx NMEDIT
9 kx DSYMUTIL
9 kx RANLIB
9 kx AR
9 kx OBJDUMP
9 kx LN_S
9 kx NM
9 kx ac_ct_DUMPBIN
9 kx DUMPBIN
9 kx LD
9 kx FGREP
9 kx SED
9 kx LIBTOOL
9 kx EGREP
9 kx GREP
9 kx CPP
9 kx am__fastdepCC_FALSE
9 kx am__fastdepCC_TRUE
9 kx CCDEPMODE
9 kx am__nodep
9 kx AMDEPBACKSLASH
9 kx AMDEP_FALSE
9 kx AMDEP_TRUE
9 kx am__quote
9 kx am__include
9 kx DEPDIR
9 kx OBJEXT
9 kx EXEEXT
9 kx ac_ct_CC
9 kx CPPFLAGS
9 kx LDFLAGS
9 kx CFLAGS
9 kx CC
9 kx AM_BACKSLASH
9 kx AM_DEFAULT_VERBOSITY
9 kx AM_DEFAULT_V
9 kx AM_V
9 kx am__untar
9 kx am__tar
9 kx AMTAR
9 kx am__leading_dot
9 kx SET_MAKE
9 kx AWK
9 kx mkdir_p
9 kx MKDIR_P
9 kx INSTALL_STRIP_PROGRAM
9 kx STRIP
9 kx install_sh
9 kx MAKEINFO
9 kx AUTOHEADER
9 kx AUTOMAKE
9 kx AUTOCONF
9 kx ACLOCAL
9 kx VERSION
9 kx PACKAGE
9 kx CYGPATH_W
9 kx am__isrc
9 kx INSTALL_DATA
9 kx INSTALL_SCRIPT
9 kx INSTALL_PROGRAM
9 kx target_os
9 kx target_vendor
9 kx target_cpu
9 kx target
9 kx host_os
9 kx host_vendor
9 kx host_cpu
9 kx host
9 kx build_os
9 kx build_vendor
9 kx build_cpu
9 kx build
9 kx target_alias
9 kx host_alias
9 kx build_alias
9 kx LIBS
9 kx ECHO_T
9 kx ECHO_N
9 kx ECHO_C
9 kx DEFS
9 kx mandir
9 kx localedir
9 kx libdir
9 kx psdir
9 kx pdfdir
9 kx dvidir
9 kx htmldir
9 kx infodir
9 kx docdir
9 kx oldincludedir
9 kx includedir
9 kx localstatedir
9 kx sharedstatedir
9 kx sysconfdir
9 kx datadir
9 kx datarootdir
9 kx libexecdir
9 kx sbindir
9 kx bindir
9 kx program_transform_name
9 kx prefix
9 kx exec_prefix
9 kx PACKAGE_URL
9 kx PACKAGE_BUGREPORT
9 kx PACKAGE_STRING
9 kx PACKAGE_VERSION
9 kx PACKAGE_TARNAME
9 kx PACKAGE_NAME
9 kx PATH_SEPARATOR
9 kx SHELL'
9 kx ac_subst_files=''
9 kx ac_user_opts='
9 kx enable_option_checking
9 kx enable_silent_rules
9 kx enable_dependency_tracking
9 kx enable_shared
9 kx enable_static
9 kx with_pic
9 kx enable_fast_install
9 kx with_gnu_ld
9 kx enable_libtool_lock
9 kx enable_plugins
9 kx enable_largefile
9 kx enable_targets
9 kx enable_checking
9 kx enable_compressed_debug_sections
9 kx enable_default_compressed_debug_sections_algorithm
9 kx enable_x86_relax_relocations
9 kx enable_elf_stt_common
9 kx enable_generate_build_notes
9 kx enable_mips_fix_loongson3_llsc
9 kx enable_x86_used_note
9 kx enable_default_riscv_attribute
9 kx enable_werror
9 kx enable_build_warnings
9 kx with_cpu
9 kx enable_nls
9 kx enable_maintainer_mode
9 kx with_system_zlib
9 kx with_zstd
9 kx '
9 kx ac_precious_vars='build_alias
9 kx host_alias
9 kx target_alias
9 kx CC
9 kx CFLAGS
9 kx LDFLAGS
9 kx LIBS
9 kx CPPFLAGS
9 kx CPP
9 kx YACC
9 kx YFLAGS
9 kx PKG_CONFIG
9 kx PKG_CONFIG_PATH
9 kx PKG_CONFIG_LIBDIR
9 kx ZSTD_CFLAGS
9 kx ZSTD_LIBS'
9 kx
9 kx
9 kx # Initialize some variables set by options.
9 kx ac_init_help=
9 kx ac_init_version=false
9 kx ac_unrecognized_opts=
9 kx ac_unrecognized_sep=
9 kx # The variables have the same names as the options, with
9 kx # dashes changed to underlines.
9 kx cache_file=/dev/null
9 kx exec_prefix=NONE
9 kx no_create=
9 kx no_recursion=
9 kx prefix=NONE
9 kx program_prefix=NONE
9 kx program_suffix=NONE
9 kx program_transform_name=s,x,x,
9 kx silent=
9 kx site=
9 kx srcdir=
9 kx verbose=
9 kx x_includes=NONE
9 kx x_libraries=NONE
9 kx
9 kx # Installation directory options.
9 kx # These are left unexpanded so users can "make install exec_prefix=/foo"
9 kx # and all the variables that are supposed to be based on exec_prefix
9 kx # by default will actually change.
9 kx # Use braces instead of parens because sh, perl, etc. also accept them.
9 kx # (The list follows the same order as the GNU Coding Standards.)
9 kx bindir='${exec_prefix}/bin'
9 kx sbindir='${exec_prefix}/sbin'
9 kx libexecdir='${exec_prefix}/libexec'
9 kx datarootdir='${prefix}/share'
9 kx datadir='${datarootdir}'
9 kx sysconfdir='${prefix}/etc'
9 kx sharedstatedir='${prefix}/com'
9 kx localstatedir='${prefix}/var'
9 kx includedir='${prefix}/include'
9 kx oldincludedir='/usr/include'
9 kx docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
9 kx infodir='${datarootdir}/info'
9 kx htmldir='${docdir}'
9 kx dvidir='${docdir}'
9 kx pdfdir='${docdir}'
9 kx psdir='${docdir}'
9 kx libdir='${exec_prefix}/lib'
9 kx localedir='${datarootdir}/locale'
9 kx mandir='${datarootdir}/man'
9 kx
9 kx ac_prev=
9 kx ac_dashdash=
9 kx for ac_option
9 kx do
9 kx # If the previous option needs an argument, assign it.
9 kx if test -n "$ac_prev"; then
9 kx eval $ac_prev=\$ac_option
9 kx ac_prev=
9 kx continue
9 kx fi
9 kx
9 kx case $ac_option in
9 kx *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
9 kx *=) ac_optarg= ;;
9 kx *) ac_optarg=yes ;;
9 kx esac
9 kx
9 kx # Accept the important Cygnus configure options, so we can diagnose typos.
9 kx
9 kx case $ac_dashdash$ac_option in
9 kx --)
9 kx ac_dashdash=yes ;;
9 kx
9 kx -bindir | --bindir | --bindi | --bind | --bin | --bi)
9 kx ac_prev=bindir ;;
9 kx -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
9 kx bindir=$ac_optarg ;;
9 kx
9 kx -build | --build | --buil | --bui | --bu)
9 kx ac_prev=build_alias ;;
9 kx -build=* | --build=* | --buil=* | --bui=* | --bu=*)
9 kx build_alias=$ac_optarg ;;
9 kx
9 kx -cache-file | --cache-file | --cache-fil | --cache-fi \
9 kx | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9 kx ac_prev=cache_file ;;
9 kx -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9 kx | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9 kx cache_file=$ac_optarg ;;
9 kx
9 kx --config-cache | -C)
9 kx cache_file=config.cache ;;
9 kx
9 kx -datadir | --datadir | --datadi | --datad)
9 kx ac_prev=datadir ;;
9 kx -datadir=* | --datadir=* | --datadi=* | --datad=*)
9 kx datadir=$ac_optarg ;;
9 kx
9 kx -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
9 kx | --dataroo | --dataro | --datar)
9 kx ac_prev=datarootdir ;;
9 kx -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
9 kx | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
9 kx datarootdir=$ac_optarg ;;
9 kx
9 kx -disable-* | --disable-*)
9 kx ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9 kx # Reject names that are not valid shell variable names.
9 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9 kx as_fn_error $? "invalid feature name: $ac_useropt"
9 kx ac_useropt_orig=$ac_useropt
9 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9 kx case $ac_user_opts in
9 kx *"
9 kx "enable_$ac_useropt"
9 kx "*) ;;
9 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
9 kx ac_unrecognized_sep=', ';;
9 kx esac
9 kx eval enable_$ac_useropt=no ;;
9 kx
9 kx -docdir | --docdir | --docdi | --doc | --do)
9 kx ac_prev=docdir ;;
9 kx -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
9 kx docdir=$ac_optarg ;;
9 kx
9 kx -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
9 kx ac_prev=dvidir ;;
9 kx -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
9 kx dvidir=$ac_optarg ;;
9 kx
9 kx -enable-* | --enable-*)
9 kx ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9 kx # Reject names that are not valid shell variable names.
9 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9 kx as_fn_error $? "invalid feature name: $ac_useropt"
9 kx ac_useropt_orig=$ac_useropt
9 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9 kx case $ac_user_opts in
9 kx *"
9 kx "enable_$ac_useropt"
9 kx "*) ;;
9 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9 kx ac_unrecognized_sep=', ';;
9 kx esac
9 kx eval enable_$ac_useropt=\$ac_optarg ;;
9 kx
9 kx -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9 kx | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9 kx | --exec | --exe | --ex)
9 kx ac_prev=exec_prefix ;;
9 kx -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9 kx | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9 kx | --exec=* | --exe=* | --ex=*)
9 kx exec_prefix=$ac_optarg ;;
9 kx
9 kx -gas | --gas | --ga | --g)
9 kx # Obsolete; use --with-gas.
9 kx with_gas=yes ;;
9 kx
9 kx -help | --help | --hel | --he | -h)
9 kx ac_init_help=long ;;
9 kx -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9 kx ac_init_help=recursive ;;
9 kx -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9 kx ac_init_help=short ;;
9 kx
9 kx -host | --host | --hos | --ho)
9 kx ac_prev=host_alias ;;
9 kx -host=* | --host=* | --hos=* | --ho=*)
9 kx host_alias=$ac_optarg ;;
9 kx
9 kx -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9 kx ac_prev=htmldir ;;
9 kx -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9 kx | --ht=*)
9 kx htmldir=$ac_optarg ;;
9 kx
9 kx -includedir | --includedir | --includedi | --included | --include \
9 kx | --includ | --inclu | --incl | --inc)
9 kx ac_prev=includedir ;;
9 kx -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9 kx | --includ=* | --inclu=* | --incl=* | --inc=*)
9 kx includedir=$ac_optarg ;;
9 kx
9 kx -infodir | --infodir | --infodi | --infod | --info | --inf)
9 kx ac_prev=infodir ;;
9 kx -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9 kx infodir=$ac_optarg ;;
9 kx
9 kx -libdir | --libdir | --libdi | --libd)
9 kx ac_prev=libdir ;;
9 kx -libdir=* | --libdir=* | --libdi=* | --libd=*)
9 kx libdir=$ac_optarg ;;
9 kx
9 kx -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9 kx | --libexe | --libex | --libe)
9 kx ac_prev=libexecdir ;;
9 kx -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9 kx | --libexe=* | --libex=* | --libe=*)
9 kx libexecdir=$ac_optarg ;;
9 kx
9 kx -localedir | --localedir | --localedi | --localed | --locale)
9 kx ac_prev=localedir ;;
9 kx -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9 kx localedir=$ac_optarg ;;
9 kx
9 kx -localstatedir | --localstatedir | --localstatedi | --localstated \
9 kx | --localstate | --localstat | --localsta | --localst | --locals)
9 kx ac_prev=localstatedir ;;
9 kx -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9 kx | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9 kx localstatedir=$ac_optarg ;;
9 kx
9 kx -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9 kx ac_prev=mandir ;;
9 kx -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9 kx mandir=$ac_optarg ;;
9 kx
9 kx -nfp | --nfp | --nf)
9 kx # Obsolete; use --without-fp.
9 kx with_fp=no ;;
9 kx
9 kx -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9 kx | --no-cr | --no-c | -n)
9 kx no_create=yes ;;
9 kx
9 kx -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9 kx | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
9 kx no_recursion=yes ;;
9 kx
9 kx -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
9 kx | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
9 kx | --oldin | --oldi | --old | --ol | --o)
9 kx ac_prev=oldincludedir ;;
9 kx -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9 kx | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9 kx | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9 kx oldincludedir=$ac_optarg ;;
9 kx
9 kx -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9 kx ac_prev=prefix ;;
9 kx -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9 kx prefix=$ac_optarg ;;
9 kx
9 kx -program-prefix | --program-prefix | --program-prefi | --program-pref \
9 kx | --program-pre | --program-pr | --program-p)
9 kx ac_prev=program_prefix ;;
9 kx -program-prefix=* | --program-prefix=* | --program-prefi=* \
9 kx | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9 kx program_prefix=$ac_optarg ;;
9 kx
9 kx -program-suffix | --program-suffix | --program-suffi | --program-suff \
9 kx | --program-suf | --program-su | --program-s)
9 kx ac_prev=program_suffix ;;
9 kx -program-suffix=* | --program-suffix=* | --program-suffi=* \
9 kx | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
9 kx program_suffix=$ac_optarg ;;
9 kx
9 kx -program-transform-name | --program-transform-name \
9 kx | --program-transform-nam | --program-transform-na \
9 kx | --program-transform-n | --program-transform- \
9 kx | --program-transform | --program-transfor \
9 kx | --program-transfo | --program-transf \
9 kx | --program-trans | --program-tran \
9 kx | --progr-tra | --program-tr | --program-t)
9 kx ac_prev=program_transform_name ;;
9 kx -program-transform-name=* | --program-transform-name=* \
9 kx | --program-transform-nam=* | --program-transform-na=* \
9 kx | --program-transform-n=* | --program-transform-=* \
9 kx | --program-transform=* | --program-transfor=* \
9 kx | --program-transfo=* | --program-transf=* \
9 kx | --program-trans=* | --program-tran=* \
9 kx | --progr-tra=* | --program-tr=* | --program-t=*)
9 kx program_transform_name=$ac_optarg ;;
9 kx
9 kx -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
9 kx ac_prev=pdfdir ;;
9 kx -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
9 kx pdfdir=$ac_optarg ;;
9 kx
9 kx -psdir | --psdir | --psdi | --psd | --ps)
9 kx ac_prev=psdir ;;
9 kx -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
9 kx psdir=$ac_optarg ;;
9 kx
9 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9 kx | -silent | --silent | --silen | --sile | --sil)
9 kx silent=yes ;;
9 kx
9 kx -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
9 kx ac_prev=sbindir ;;
9 kx -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
9 kx | --sbi=* | --sb=*)
9 kx sbindir=$ac_optarg ;;
9 kx
9 kx -sharedstatedir | --sharedstatedir | --sharedstatedi \
9 kx | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
9 kx | --sharedst | --shareds | --shared | --share | --shar \
9 kx | --sha | --sh)
9 kx ac_prev=sharedstatedir ;;
9 kx -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
9 kx | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
9 kx | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
9 kx | --sha=* | --sh=*)
9 kx sharedstatedir=$ac_optarg ;;
9 kx
9 kx -site | --site | --sit)
9 kx ac_prev=site ;;
9 kx -site=* | --site=* | --sit=*)
9 kx site=$ac_optarg ;;
9 kx
9 kx -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9 kx ac_prev=srcdir ;;
9 kx -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9 kx srcdir=$ac_optarg ;;
9 kx
9 kx -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
9 kx | --syscon | --sysco | --sysc | --sys | --sy)
9 kx ac_prev=sysconfdir ;;
9 kx -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
9 kx | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
9 kx sysconfdir=$ac_optarg ;;
9 kx
9 kx -target | --target | --targe | --targ | --tar | --ta | --t)
9 kx ac_prev=target_alias ;;
9 kx -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
9 kx target_alias=$ac_optarg ;;
9 kx
9 kx -v | -verbose | --verbose | --verbos | --verbo | --verb)
9 kx verbose=yes ;;
9 kx
9 kx -version | --version | --versio | --versi | --vers | -V)
9 kx ac_init_version=: ;;
9 kx
9 kx -with-* | --with-*)
9 kx ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
9 kx # Reject names that are not valid shell variable names.
9 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9 kx as_fn_error $? "invalid package name: $ac_useropt"
9 kx ac_useropt_orig=$ac_useropt
9 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9 kx case $ac_user_opts in
9 kx *"
9 kx "with_$ac_useropt"
9 kx "*) ;;
9 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
9 kx ac_unrecognized_sep=', ';;
9 kx esac
9 kx eval with_$ac_useropt=\$ac_optarg ;;
9 kx
9 kx -without-* | --without-*)
9 kx ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
9 kx # Reject names that are not valid shell variable names.
9 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9 kx as_fn_error $? "invalid package name: $ac_useropt"
9 kx ac_useropt_orig=$ac_useropt
9 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9 kx case $ac_user_opts in
9 kx *"
9 kx "with_$ac_useropt"
9 kx "*) ;;
9 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
9 kx ac_unrecognized_sep=', ';;
9 kx esac
9 kx eval with_$ac_useropt=no ;;
9 kx
9 kx --x)
9 kx # Obsolete; use --with-x.
9 kx with_x=yes ;;
9 kx
9 kx -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
9 kx | --x-incl | --x-inc | --x-in | --x-i)
9 kx ac_prev=x_includes ;;
9 kx -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
9 kx | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
9 kx x_includes=$ac_optarg ;;
9 kx
9 kx -x-libraries | --x-libraries | --x-librarie | --x-librari \
9 kx | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
9 kx ac_prev=x_libraries ;;
9 kx -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
9 kx | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
9 kx x_libraries=$ac_optarg ;;
9 kx
9 kx -*) as_fn_error $? "unrecognized option: \`$ac_option'
9 kx Try \`$0 --help' for more information"
9 kx ;;
9 kx
9 kx *=*)
9 kx ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
9 kx # Reject names that are not valid shell variable names.
9 kx case $ac_envvar in #(
9 kx '' | [0-9]* | *[!_$as_cr_alnum]* )
9 kx as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
9 kx esac
9 kx eval $ac_envvar=\$ac_optarg
9 kx export $ac_envvar ;;
9 kx
9 kx *)
9 kx # FIXME: should be removed in autoconf 3.0.
9 kx $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
9 kx expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
9 kx $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
9 kx : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
9 kx ;;
9 kx
9 kx esac
9 kx done
9 kx
9 kx if test -n "$ac_prev"; then
9 kx ac_option=--`echo $ac_prev | sed 's/_/-/g'`
9 kx as_fn_error $? "missing argument to $ac_option"
9 kx fi
9 kx
9 kx if test -n "$ac_unrecognized_opts"; then
9 kx case $enable_option_checking in
9 kx no) ;;
9 kx fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
9 kx *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
9 kx esac
9 kx fi
9 kx
9 kx # Check all directory arguments for consistency.
9 kx for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
9 kx datadir sysconfdir sharedstatedir localstatedir includedir \
9 kx oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
9 kx libdir localedir mandir
9 kx do
9 kx eval ac_val=\$$ac_var
9 kx # Remove trailing slashes.
9 kx case $ac_val in
9 kx */ )
9 kx ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
9 kx eval $ac_var=\$ac_val;;
9 kx esac
9 kx # Be sure to have absolute directory names.
9 kx case $ac_val in
9 kx [\\/$]* | ?:[\\/]* ) continue;;
9 kx NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
9 kx esac
9 kx as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
9 kx done
9 kx
9 kx # There might be people who depend on the old broken behavior: `$host'
9 kx # used to hold the argument of --host etc.
9 kx # FIXME: To remove some day.
9 kx build=$build_alias
9 kx host=$host_alias
9 kx target=$target_alias
9 kx
9 kx # FIXME: To remove some day.
9 kx if test "x$host_alias" != x; then
9 kx if test "x$build_alias" = x; then
9 kx cross_compiling=maybe
9 kx elif test "x$build_alias" != "x$host_alias"; then
9 kx cross_compiling=yes
9 kx fi
9 kx fi
9 kx
9 kx ac_tool_prefix=
9 kx test -n "$host_alias" && ac_tool_prefix=$host_alias-
9 kx
9 kx test "$silent" = yes && exec 6>/dev/null
9 kx
9 kx
9 kx ac_pwd=`pwd` && test -n "$ac_pwd" &&
9 kx ac_ls_di=`ls -di .` &&
9 kx ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
9 kx as_fn_error $? "working directory cannot be determined"
9 kx test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
9 kx as_fn_error $? "pwd does not report name of working directory"
9 kx
9 kx
9 kx # Find the source files, if location was not specified.
9 kx if test -z "$srcdir"; then
9 kx ac_srcdir_defaulted=yes
9 kx # Try the directory containing this script, then the parent directory.
9 kx ac_confdir=`$as_dirname -- "$as_myself" ||
9 kx $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9 kx X"$as_myself" : 'X\(//\)[^/]' \| \
9 kx X"$as_myself" : 'X\(//\)$' \| \
9 kx X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
9 kx $as_echo X"$as_myself" |
9 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)[^/].*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\).*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx s/.*/./; q'`
9 kx srcdir=$ac_confdir
9 kx if test ! -r "$srcdir/$ac_unique_file"; then
9 kx srcdir=..
9 kx fi
9 kx else
9 kx ac_srcdir_defaulted=no
9 kx fi
9 kx if test ! -r "$srcdir/$ac_unique_file"; then
9 kx test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
9 kx as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
9 kx fi
9 kx ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
9 kx ac_abs_confdir=`(
9 kx cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
9 kx pwd)`
9 kx # When building in place, set srcdir=.
9 kx if test "$ac_abs_confdir" = "$ac_pwd"; then
9 kx srcdir=.
9 kx fi
9 kx # Remove unnecessary trailing slashes from srcdir.
9 kx # Double slashes in file names in object file debugging info
9 kx # mess up M-x gdb in Emacs.
9 kx case $srcdir in
9 kx */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
9 kx esac
9 kx for ac_var in $ac_precious_vars; do
9 kx eval ac_env_${ac_var}_set=\${${ac_var}+set}
9 kx eval ac_env_${ac_var}_value=\$${ac_var}
9 kx eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
9 kx eval ac_cv_env_${ac_var}_value=\$${ac_var}
9 kx done
9 kx
9 kx #
9 kx # Report the --help message.
9 kx #
9 kx if test "$ac_init_help" = "long"; then
9 kx # Omit some internal or obsolete options to make the list less imposing.
9 kx # This message is too long to be a string in the A/UX 3.1 sh.
9 kx cat <<_ACEOF
9 kx \`configure' configures gas 2.40 to adapt to many kinds of systems.
9 kx
9 kx Usage: $0 [OPTION]... [VAR=VALUE]...
9 kx
9 kx To assign environment variables (e.g., CC, CFLAGS...), specify them as
9 kx VAR=VALUE. See below for descriptions of some of the useful variables.
9 kx
9 kx Defaults for the options are specified in brackets.
9 kx
9 kx Configuration:
9 kx -h, --help display this help and exit
9 kx --help=short display options specific to this package
9 kx --help=recursive display the short help of all the included packages
9 kx -V, --version display version information and exit
9 kx -q, --quiet, --silent do not print \`checking ...' messages
9 kx --cache-file=FILE cache test results in FILE [disabled]
9 kx -C, --config-cache alias for \`--cache-file=config.cache'
9 kx -n, --no-create do not create output files
9 kx --srcdir=DIR find the sources in DIR [configure dir or \`..']
9 kx
9 kx Installation directories:
9 kx --prefix=PREFIX install architecture-independent files in PREFIX
9 kx [$ac_default_prefix]
9 kx --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
9 kx [PREFIX]
9 kx
9 kx By default, \`make install' will install all the files in
9 kx \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
9 kx an installation prefix other than \`$ac_default_prefix' using \`--prefix',
9 kx for instance \`--prefix=\$HOME'.
9 kx
9 kx For better control, use the options below.
9 kx
9 kx Fine tuning of the installation directories:
9 kx --bindir=DIR user executables [EPREFIX/bin]
9 kx --sbindir=DIR system admin executables [EPREFIX/sbin]
9 kx --libexecdir=DIR program executables [EPREFIX/libexec]
9 kx --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
9 kx --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
9 kx --localstatedir=DIR modifiable single-machine data [PREFIX/var]
9 kx --libdir=DIR object code libraries [EPREFIX/lib]
9 kx --includedir=DIR C header files [PREFIX/include]
9 kx --oldincludedir=DIR C header files for non-gcc [/usr/include]
9 kx --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
9 kx --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
9 kx --infodir=DIR info documentation [DATAROOTDIR/info]
9 kx --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
9 kx --mandir=DIR man documentation [DATAROOTDIR/man]
9 kx --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
9 kx --htmldir=DIR html documentation [DOCDIR]
9 kx --dvidir=DIR dvi documentation [DOCDIR]
9 kx --pdfdir=DIR pdf documentation [DOCDIR]
9 kx --psdir=DIR ps documentation [DOCDIR]
9 kx _ACEOF
9 kx
9 kx cat <<\_ACEOF
9 kx
9 kx Program names:
9 kx --program-prefix=PREFIX prepend PREFIX to installed program names
9 kx --program-suffix=SUFFIX append SUFFIX to installed program names
9 kx --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9 kx
9 kx System types:
9 kx --build=BUILD configure for building on BUILD [guessed]
9 kx --host=HOST cross-compile to build programs to run on HOST [BUILD]
9 kx --target=TARGET configure for building compilers for TARGET [HOST]
9 kx _ACEOF
9 kx fi
9 kx
9 kx if test -n "$ac_init_help"; then
9 kx case $ac_init_help in
9 kx short | recursive ) echo "Configuration of gas 2.40:";;
9 kx esac
9 kx cat <<\_ACEOF
9 kx
9 kx Optional Features:
9 kx --disable-option-checking ignore unrecognized --enable/--with options
9 kx --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
9 kx --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9 kx --enable-silent-rules less verbose build output (undo: "make V=1")
9 kx --disable-silent-rules verbose build output (undo: "make V=0")
9 kx --enable-dependency-tracking
9 kx do not reject slow dependency extractors
9 kx --disable-dependency-tracking
9 kx speeds up one-time build
9 kx --enable-shared[=PKGS] build shared libraries [default=yes]
9 kx --enable-static[=PKGS] build static libraries [default=yes]
9 kx --enable-fast-install[=PKGS]
9 kx optimize for fast installation [default=yes]
9 kx --disable-libtool-lock avoid locking (might break parallel builds)
9 kx --enable-plugins Enable support for plugins
9 kx --disable-largefile omit support for large files
9 kx --enable-targets alternative target configurations besides the primary
9 kx --enable-checking enable run-time checks
9 kx --enable-compressed-debug-sections={all,gas,none}
9 kx compress debug sections by default
9 kx --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
9 kx Default compression algorithm for
9 kx --enable-compressed-debug-sections.
9 kx --enable-x86-relax-relocations
9 kx generate x86 relax relocations by default
9 kx --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
9 kx default
9 kx --enable-generate-build-notes
9 kx generate GNU Build notes if none are provided by the
9 kx input
9 kx --enable-mips-fix-loongson3-llsc
9 kx enable MIPS fix Loongson3 LLSC errata
9 kx --enable-x86-used-note generate GNU x86 used ISA and feature properties
9 kx --enable-default-riscv-attribute
9 kx generate RISC-V arch attribute by default
9 kx --enable-werror treat compile warnings as errors
9 kx --enable-build-warnings enable build-time compiler warnings
9 kx --disable-nls do not use Native Language Support
9 kx --enable-maintainer-mode
9 kx enable make rules and dependencies not useful (and
9 kx sometimes confusing) to the casual installer
9 kx
9 kx Optional Packages:
9 kx --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
9 kx --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
9 kx --with-pic try to use only PIC/non-PIC objects [default=use
9 kx both]
9 kx --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9 kx --with-cpu=CPU default cpu variant is CPU (currently only supported
9 kx on ARC)
9 kx --with-system-zlib use installed libz
9 kx --with-zstd support zstd compressed debug sections
9 kx (default=auto)
9 kx
9 kx Some influential environment variables:
9 kx CC C compiler command
9 kx CFLAGS C compiler flags
9 kx LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
9 kx nonstandard directory <lib dir>
9 kx LIBS libraries to pass to the linker, e.g. -l<library>
9 kx CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
9 kx you have headers in a nonstandard directory <include dir>
9 kx CPP C preprocessor
9 kx YACC The `Yet Another Compiler Compiler' implementation to use.
9 kx Defaults to the first program found out of: `bison -y', `byacc',
9 kx `yacc'.
9 kx YFLAGS The list of arguments that will be passed by default to $YACC.
9 kx This script will default YFLAGS to the empty string to avoid a
9 kx default value of `-d' given by some make applications.
9 kx PKG_CONFIG path to pkg-config utility
9 kx PKG_CONFIG_PATH
9 kx directories to add to pkg-config's search path
9 kx PKG_CONFIG_LIBDIR
9 kx path overriding pkg-config's built-in search path
9 kx ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
9 kx ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
9 kx
9 kx Use these variables to override the choices made by `configure' or to help
9 kx it to find libraries and programs with nonstandard names/locations.
9 kx
9 kx Report bugs to the package provider.
9 kx _ACEOF
9 kx ac_status=$?
9 kx fi
9 kx
9 kx if test "$ac_init_help" = "recursive"; then
9 kx # If there are subdirs, report their specific --help.
9 kx for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
9 kx test -d "$ac_dir" ||
9 kx { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
9 kx continue
9 kx ac_builddir=.
9 kx
9 kx case "$ac_dir" in
9 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9 kx *)
9 kx ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9 kx # A ".." for each directory in $ac_dir_suffix.
9 kx ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9 kx case $ac_top_builddir_sub in
9 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9 kx esac ;;
9 kx esac
9 kx ac_abs_top_builddir=$ac_pwd
9 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
9 kx # for backward compatibility:
9 kx ac_top_builddir=$ac_top_build_prefix
9 kx
9 kx case $srcdir in
9 kx .) # We are building in place.
9 kx ac_srcdir=.
9 kx ac_top_srcdir=$ac_top_builddir_sub
9 kx ac_abs_top_srcdir=$ac_pwd ;;
9 kx [\\/]* | ?:[\\/]* ) # Absolute name.
9 kx ac_srcdir=$srcdir$ac_dir_suffix;
9 kx ac_top_srcdir=$srcdir
9 kx ac_abs_top_srcdir=$srcdir ;;
9 kx *) # Relative name.
9 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
9 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9 kx esac
9 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9 kx
9 kx cd "$ac_dir" || { ac_status=$?; continue; }
9 kx # Check for guested configure.
9 kx if test -f "$ac_srcdir/configure.gnu"; then
9 kx echo &&
9 kx $SHELL "$ac_srcdir/configure.gnu" --help=recursive
9 kx elif test -f "$ac_srcdir/configure"; then
9 kx echo &&
9 kx $SHELL "$ac_srcdir/configure" --help=recursive
9 kx else
9 kx $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
9 kx fi || ac_status=$?
9 kx cd "$ac_pwd" || { ac_status=$?; break; }
9 kx done
9 kx fi
9 kx
9 kx test -n "$ac_init_help" && exit $ac_status
9 kx if $ac_init_version; then
9 kx cat <<\_ACEOF
9 kx gas configure 2.40
9 kx generated by GNU Autoconf 2.69
9 kx
9 kx Copyright (C) 2012 Free Software Foundation, Inc.
9 kx This configure script is free software; the Free Software Foundation
9 kx gives unlimited permission to copy, distribute and modify it.
9 kx _ACEOF
9 kx exit
9 kx fi
9 kx
9 kx ## ------------------------ ##
9 kx ## Autoconf initialization. ##
9 kx ## ------------------------ ##
9 kx
9 kx # ac_fn_c_try_compile LINENO
9 kx # --------------------------
9 kx # Try to compile conftest.$ac_ext, and return whether this succeeded.
9 kx ac_fn_c_try_compile ()
9 kx {
9 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9 kx rm -f conftest.$ac_objext
9 kx if { { ac_try="$ac_compile"
9 kx case "(($ac_try" in
9 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9 kx *) ac_try_echo=$ac_try;;
9 kx esac
9 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9 kx $as_echo "$ac_try_echo"; } >&5
9 kx (eval "$ac_compile") 2>conftest.err
9 kx ac_status=$?
9 kx if test -s conftest.err; then
9 kx grep -v '^ *+' conftest.err >conftest.er1
9 kx cat conftest.er1 >&5
9 kx mv -f conftest.er1 conftest.err
9 kx fi
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; } && {
9 kx test -z "$ac_c_werror_flag" ||
9 kx test ! -s conftest.err
9 kx } && test -s conftest.$ac_objext; then :
9 kx ac_retval=0
9 kx else
9 kx $as_echo "$as_me: failed program was:" >&5
9 kx sed 's/^/| /' conftest.$ac_ext >&5
9 kx
9 kx ac_retval=1
9 kx fi
9 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9 kx as_fn_set_status $ac_retval
9 kx
9 kx } # ac_fn_c_try_compile
9 kx
9 kx # ac_fn_c_try_cpp LINENO
9 kx # ----------------------
9 kx # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
9 kx ac_fn_c_try_cpp ()
9 kx {
9 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9 kx if { { ac_try="$ac_cpp conftest.$ac_ext"
9 kx case "(($ac_try" in
9 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9 kx *) ac_try_echo=$ac_try;;
9 kx esac
9 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9 kx $as_echo "$ac_try_echo"; } >&5
9 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
9 kx ac_status=$?
9 kx if test -s conftest.err; then
9 kx grep -v '^ *+' conftest.err >conftest.er1
9 kx cat conftest.er1 >&5
9 kx mv -f conftest.er1 conftest.err
9 kx fi
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; } > conftest.i && {
9 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9 kx test ! -s conftest.err
9 kx }; then :
9 kx ac_retval=0
9 kx else
9 kx $as_echo "$as_me: failed program was:" >&5
9 kx sed 's/^/| /' conftest.$ac_ext >&5
9 kx
9 kx ac_retval=1
9 kx fi
9 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9 kx as_fn_set_status $ac_retval
9 kx
9 kx } # ac_fn_c_try_cpp
9 kx
9 kx # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
9 kx # -------------------------------------------------------
9 kx # Tests whether HEADER exists, giving a warning if it cannot be compiled using
9 kx # the include files in INCLUDES and setting the cache variable VAR
9 kx # accordingly.
9 kx ac_fn_c_check_header_mongrel ()
9 kx {
9 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9 kx if eval \${$3+:} false; then :
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
9 kx $as_echo_n "checking for $2... " >&6; }
9 kx if eval \${$3+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx fi
9 kx eval ac_res=\$$3
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9 kx $as_echo "$ac_res" >&6; }
9 kx else
9 kx # Is the header compilable?
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
9 kx $as_echo_n "checking $2 usability... " >&6; }
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx $4
9 kx #include <$2>
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_header_compiler=yes
9 kx else
9 kx ac_header_compiler=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
9 kx $as_echo "$ac_header_compiler" >&6; }
9 kx
9 kx # Is the header present?
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
9 kx $as_echo_n "checking $2 presence... " >&6; }
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <$2>
9 kx _ACEOF
9 kx if ac_fn_c_try_cpp "$LINENO"; then :
9 kx ac_header_preproc=yes
9 kx else
9 kx ac_header_preproc=no
9 kx fi
9 kx rm -f conftest.err conftest.i conftest.$ac_ext
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
9 kx $as_echo "$ac_header_preproc" >&6; }
9 kx
9 kx # So? What about this header?
9 kx case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
9 kx yes:no: )
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
9 kx $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
9 kx $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
9 kx ;;
9 kx no:yes:* )
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
9 kx $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
9 kx $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
9 kx $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
9 kx $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
9 kx $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
9 kx ;;
9 kx esac
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
9 kx $as_echo_n "checking for $2... " >&6; }
9 kx if eval \${$3+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx eval "$3=\$ac_header_compiler"
9 kx fi
9 kx eval ac_res=\$$3
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9 kx $as_echo "$ac_res" >&6; }
9 kx fi
9 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9 kx
9 kx } # ac_fn_c_check_header_mongrel
9 kx
9 kx # ac_fn_c_try_run LINENO
9 kx # ----------------------
9 kx # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
9 kx # that executables *can* be run.
9 kx ac_fn_c_try_run ()
9 kx {
9 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9 kx if { { ac_try="$ac_link"
9 kx case "(($ac_try" in
9 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9 kx *) ac_try_echo=$ac_try;;
9 kx esac
9 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9 kx $as_echo "$ac_try_echo"; } >&5
9 kx (eval "$ac_link") 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
9 kx { { case "(($ac_try" in
9 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9 kx *) ac_try_echo=$ac_try;;
9 kx esac
9 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9 kx $as_echo "$ac_try_echo"; } >&5
9 kx (eval "$ac_try") 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }; }; then :
9 kx ac_retval=0
9 kx else
9 kx $as_echo "$as_me: program exited with status $ac_status" >&5
9 kx $as_echo "$as_me: failed program was:" >&5
9 kx sed 's/^/| /' conftest.$ac_ext >&5
9 kx
9 kx ac_retval=$ac_status
9 kx fi
9 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
9 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9 kx as_fn_set_status $ac_retval
9 kx
9 kx } # ac_fn_c_try_run
9 kx
9 kx # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
9 kx # -------------------------------------------------------
9 kx # Tests whether HEADER exists and can be compiled using the include files in
9 kx # INCLUDES, setting the cache variable VAR accordingly.
9 kx ac_fn_c_check_header_compile ()
9 kx {
9 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
9 kx $as_echo_n "checking for $2... " >&6; }
9 kx if eval \${$3+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx $4
9 kx #include <$2>
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx eval "$3=yes"
9 kx else
9 kx eval "$3=no"
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx fi
9 kx eval ac_res=\$$3
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9 kx $as_echo "$ac_res" >&6; }
9 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9 kx
9 kx } # ac_fn_c_check_header_compile
9 kx
9 kx # ac_fn_c_try_link LINENO
9 kx # -----------------------
9 kx # Try to link conftest.$ac_ext, and return whether this succeeded.
9 kx ac_fn_c_try_link ()
9 kx {
9 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9 kx rm -f conftest.$ac_objext conftest$ac_exeext
9 kx if { { ac_try="$ac_link"
9 kx case "(($ac_try" in
9 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9 kx *) ac_try_echo=$ac_try;;
9 kx esac
9 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9 kx $as_echo "$ac_try_echo"; } >&5
9 kx (eval "$ac_link") 2>conftest.err
9 kx ac_status=$?
9 kx if test -s conftest.err; then
9 kx grep -v '^ *+' conftest.err >conftest.er1
9 kx cat conftest.er1 >&5
9 kx mv -f conftest.er1 conftest.err
9 kx fi
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; } && {
9 kx test -z "$ac_c_werror_flag" ||
9 kx test ! -s conftest.err
9 kx } && test -s conftest$ac_exeext && {
9 kx test "$cross_compiling" = yes ||
9 kx test -x conftest$ac_exeext
9 kx }; then :
9 kx ac_retval=0
9 kx else
9 kx $as_echo "$as_me: failed program was:" >&5
9 kx sed 's/^/| /' conftest.$ac_ext >&5
9 kx
9 kx ac_retval=1
9 kx fi
9 kx # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
9 kx # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
9 kx # interfere with the next link command; also delete a directory that is
9 kx # left behind by Apple's compiler. We do this before executing the actions.
9 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
9 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9 kx as_fn_set_status $ac_retval
9 kx
9 kx } # ac_fn_c_try_link
9 kx
9 kx # ac_fn_c_check_func LINENO FUNC VAR
9 kx # ----------------------------------
9 kx # Tests whether FUNC exists, setting the cache variable VAR accordingly
9 kx ac_fn_c_check_func ()
9 kx {
9 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
9 kx $as_echo_n "checking for $2... " >&6; }
9 kx if eval \${$3+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
9 kx For example, HP-UX 11i <limits.h> declares gettimeofday. */
9 kx #define $2 innocuous_$2
9 kx
9 kx /* System header to define __stub macros and hopefully few prototypes,
9 kx which can conflict with char $2 (); below.
9 kx Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9 kx <limits.h> exists even on freestanding compilers. */
9 kx
9 kx #ifdef __STDC__
9 kx # include <limits.h>
9 kx #else
9 kx # include <assert.h>
9 kx #endif
9 kx
9 kx #undef $2
9 kx
9 kx /* Override any GCC internal prototype to avoid an error.
9 kx Use char because int might match the return type of a GCC
9 kx builtin and then its argument prototype would still apply. */
9 kx #ifdef __cplusplus
9 kx extern "C"
9 kx #endif
9 kx char $2 ();
9 kx /* The GNU C library defines this for functions which it implements
9 kx to always fail with ENOSYS. Some functions are actually named
9 kx something starting with __ and the normal name is an alias. */
9 kx #if defined __stub_$2 || defined __stub___$2
9 kx choke me
9 kx #endif
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx return $2 ();
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx eval "$3=yes"
9 kx else
9 kx eval "$3=no"
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx fi
9 kx eval ac_res=\$$3
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9 kx $as_echo "$ac_res" >&6; }
9 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9 kx
9 kx } # ac_fn_c_check_func
9 kx
9 kx # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
9 kx # ---------------------------------------------
9 kx # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
9 kx # accordingly.
9 kx ac_fn_c_check_decl ()
9 kx {
9 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9 kx as_decl_name=`echo $2|sed 's/ *(.*//'`
9 kx as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
9 kx $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
9 kx if eval \${$3+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx $4
9 kx int
9 kx main ()
9 kx {
9 kx #ifndef $as_decl_name
9 kx #ifdef __cplusplus
9 kx (void) $as_decl_use;
9 kx #else
9 kx (void) $as_decl_name;
9 kx #endif
9 kx #endif
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx eval "$3=yes"
9 kx else
9 kx eval "$3=no"
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx fi
9 kx eval ac_res=\$$3
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9 kx $as_echo "$ac_res" >&6; }
9 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9 kx
9 kx } # ac_fn_c_check_decl
9 kx cat >config.log <<_ACEOF
9 kx This file contains any messages produced by compilers while
9 kx running configure, to aid debugging if configure makes a mistake.
9 kx
9 kx It was created by gas $as_me 2.40, which was
9 kx generated by GNU Autoconf 2.69. Invocation command line was
9 kx
9 kx $ $0 $@
9 kx
9 kx _ACEOF
9 kx exec 5>>config.log
9 kx {
9 kx cat <<_ASUNAME
9 kx ## --------- ##
9 kx ## Platform. ##
9 kx ## --------- ##
9 kx
9 kx hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
9 kx uname -m = `(uname -m) 2>/dev/null || echo unknown`
9 kx uname -r = `(uname -r) 2>/dev/null || echo unknown`
9 kx uname -s = `(uname -s) 2>/dev/null || echo unknown`
9 kx uname -v = `(uname -v) 2>/dev/null || echo unknown`
9 kx
9 kx /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
9 kx /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
9 kx
9 kx /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
9 kx /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
9 kx /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
9 kx /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
9 kx /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
9 kx /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
9 kx /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
9 kx
9 kx _ASUNAME
9 kx
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx $as_echo "PATH: $as_dir"
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx } >&5
9 kx
9 kx cat >&5 <<_ACEOF
9 kx
9 kx
9 kx ## ----------- ##
9 kx ## Core tests. ##
9 kx ## ----------- ##
9 kx
9 kx _ACEOF
9 kx
9 kx
9 kx # Keep a trace of the command line.
9 kx # Strip out --no-create and --no-recursion so they do not pile up.
9 kx # Strip out --silent because we don't want to record it for future runs.
9 kx # Also quote any args containing shell meta-characters.
9 kx # Make two passes to allow for proper duplicate-argument suppression.
9 kx ac_configure_args=
9 kx ac_configure_args0=
9 kx ac_configure_args1=
9 kx ac_must_keep_next=false
9 kx for ac_pass in 1 2
9 kx do
9 kx for ac_arg
9 kx do
9 kx case $ac_arg in
9 kx -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
9 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9 kx | -silent | --silent | --silen | --sile | --sil)
9 kx continue ;;
9 kx *\'*)
9 kx ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9 kx esac
9 kx case $ac_pass in
9 kx 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
9 kx 2)
9 kx as_fn_append ac_configure_args1 " '$ac_arg'"
9 kx if test $ac_must_keep_next = true; then
9 kx ac_must_keep_next=false # Got value, back to normal.
9 kx else
9 kx case $ac_arg in
9 kx *=* | --config-cache | -C | -disable-* | --disable-* \
9 kx | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9 kx | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9 kx | -with-* | --with-* | -without-* | --without-* | --x)
9 kx case "$ac_configure_args0 " in
9 kx "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
9 kx esac
9 kx ;;
9 kx -* ) ac_must_keep_next=true ;;
9 kx esac
9 kx fi
9 kx as_fn_append ac_configure_args " '$ac_arg'"
9 kx ;;
9 kx esac
9 kx done
9 kx done
9 kx { ac_configure_args0=; unset ac_configure_args0;}
9 kx { ac_configure_args1=; unset ac_configure_args1;}
9 kx
9 kx # When interrupted or exit'd, cleanup temporary files, and complete
9 kx # config.log. We remove comments because anyway the quotes in there
9 kx # would cause problems or look ugly.
9 kx # WARNING: Use '\'' to represent an apostrophe within the trap.
9 kx # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
9 kx trap 'exit_status=$?
9 kx # Save into config.log some information that might help in debugging.
9 kx {
9 kx echo
9 kx
9 kx $as_echo "## ---------------- ##
9 kx ## Cache variables. ##
9 kx ## ---------------- ##"
9 kx echo
9 kx # The following way of writing the cache mishandles newlines in values,
9 kx (
9 kx for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
9 kx eval ac_val=\$$ac_var
9 kx case $ac_val in #(
9 kx *${as_nl}*)
9 kx case $ac_var in #(
9 kx *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9 kx $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9 kx esac
9 kx case $ac_var in #(
9 kx _ | IFS | as_nl) ;; #(
9 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9 kx *) { eval $ac_var=; unset $ac_var;} ;;
9 kx esac ;;
9 kx esac
9 kx done
9 kx (set) 2>&1 |
9 kx case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
9 kx *${as_nl}ac_space=\ *)
9 kx sed -n \
9 kx "s/'\''/'\''\\\\'\'''\''/g;
9 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
9 kx ;; #(
9 kx *)
9 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9 kx ;;
9 kx esac |
9 kx sort
9 kx )
9 kx echo
9 kx
9 kx $as_echo "## ----------------- ##
9 kx ## Output variables. ##
9 kx ## ----------------- ##"
9 kx echo
9 kx for ac_var in $ac_subst_vars
9 kx do
9 kx eval ac_val=\$$ac_var
9 kx case $ac_val in
9 kx *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
9 kx esac
9 kx $as_echo "$ac_var='\''$ac_val'\''"
9 kx done | sort
9 kx echo
9 kx
9 kx if test -n "$ac_subst_files"; then
9 kx $as_echo "## ------------------- ##
9 kx ## File substitutions. ##
9 kx ## ------------------- ##"
9 kx echo
9 kx for ac_var in $ac_subst_files
9 kx do
9 kx eval ac_val=\$$ac_var
9 kx case $ac_val in
9 kx *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
9 kx esac
9 kx $as_echo "$ac_var='\''$ac_val'\''"
9 kx done | sort
9 kx echo
9 kx fi
9 kx
9 kx if test -s confdefs.h; then
9 kx $as_echo "## ----------- ##
9 kx ## confdefs.h. ##
9 kx ## ----------- ##"
9 kx echo
9 kx cat confdefs.h
9 kx echo
9 kx fi
9 kx test "$ac_signal" != 0 &&
9 kx $as_echo "$as_me: caught signal $ac_signal"
9 kx $as_echo "$as_me: exit $exit_status"
9 kx } >&5
9 kx rm -f core *.core core.conftest.* &&
9 kx rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
9 kx exit $exit_status
9 kx ' 0
9 kx for ac_signal in 1 2 13 15; do
9 kx trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
9 kx done
9 kx ac_signal=0
9 kx
9 kx # confdefs.h avoids OS command line length limits that DEFS can exceed.
9 kx rm -f -r conftest* confdefs.h
9 kx
9 kx $as_echo "/* confdefs.h */" > confdefs.h
9 kx
9 kx # Predefined preprocessor variables.
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define PACKAGE_NAME "$PACKAGE_NAME"
9 kx _ACEOF
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
9 kx _ACEOF
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define PACKAGE_VERSION "$PACKAGE_VERSION"
9 kx _ACEOF
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define PACKAGE_STRING "$PACKAGE_STRING"
9 kx _ACEOF
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
9 kx _ACEOF
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define PACKAGE_URL "$PACKAGE_URL"
9 kx _ACEOF
9 kx
9 kx
9 kx # Let the site file select an alternate cache file if it wants to.
9 kx # Prefer an explicitly selected file to automatically selected ones.
9 kx ac_site_file1=NONE
9 kx ac_site_file2=NONE
9 kx if test -n "$CONFIG_SITE"; then
9 kx # We do not want a PATH search for config.site.
9 kx case $CONFIG_SITE in #((
9 kx -*) ac_site_file1=./$CONFIG_SITE;;
9 kx */*) ac_site_file1=$CONFIG_SITE;;
9 kx *) ac_site_file1=./$CONFIG_SITE;;
9 kx esac
9 kx elif test "x$prefix" != xNONE; then
9 kx ac_site_file1=$prefix/share/config.site
9 kx ac_site_file2=$prefix/etc/config.site
9 kx else
9 kx ac_site_file1=$ac_default_prefix/share/config.site
9 kx ac_site_file2=$ac_default_prefix/etc/config.site
9 kx fi
9 kx for ac_site_file in "$ac_site_file1" "$ac_site_file2"
9 kx do
9 kx test "x$ac_site_file" = xNONE && continue
9 kx if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
9 kx $as_echo "$as_me: loading site script $ac_site_file" >&6;}
9 kx sed 's/^/| /' "$ac_site_file" >&5
9 kx . "$ac_site_file" \
9 kx || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9 kx as_fn_error $? "failed to load site script $ac_site_file
9 kx See \`config.log' for more details" "$LINENO" 5; }
9 kx fi
9 kx done
9 kx
9 kx if test -r "$cache_file"; then
9 kx # Some versions of bash will fail to source /dev/null (special files
9 kx # actually), so we avoid doing that. DJGPP emulates it as a regular file.
9 kx if test /dev/null != "$cache_file" && test -f "$cache_file"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
9 kx $as_echo "$as_me: loading cache $cache_file" >&6;}
9 kx case $cache_file in
9 kx [\\/]* | ?:[\\/]* ) . "$cache_file";;
9 kx *) . "./$cache_file";;
9 kx esac
9 kx fi
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
9 kx $as_echo "$as_me: creating cache $cache_file" >&6;}
9 kx >$cache_file
9 kx fi
9 kx
9 kx # Check that the precious variables saved in the cache have kept the same
9 kx # value.
9 kx ac_cache_corrupted=false
9 kx for ac_var in $ac_precious_vars; do
9 kx eval ac_old_set=\$ac_cv_env_${ac_var}_set
9 kx eval ac_new_set=\$ac_env_${ac_var}_set
9 kx eval ac_old_val=\$ac_cv_env_${ac_var}_value
9 kx eval ac_new_val=\$ac_env_${ac_var}_value
9 kx case $ac_old_set,$ac_new_set in
9 kx set,)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
9 kx $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
9 kx ac_cache_corrupted=: ;;
9 kx ,set)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
9 kx $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
9 kx ac_cache_corrupted=: ;;
9 kx ,);;
9 kx *)
9 kx if test "x$ac_old_val" != "x$ac_new_val"; then
9 kx # differences in whitespace do not lead to failure.
9 kx ac_old_val_w=`echo x $ac_old_val`
9 kx ac_new_val_w=`echo x $ac_new_val`
9 kx if test "$ac_old_val_w" != "$ac_new_val_w"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
9 kx $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
9 kx ac_cache_corrupted=:
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
9 kx $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
9 kx eval $ac_var=\$ac_old_val
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
9 kx $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
9 kx $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
9 kx fi;;
9 kx esac
9 kx # Pass precious variables to config.status.
9 kx if test "$ac_new_set" = set; then
9 kx case $ac_new_val in
9 kx *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
9 kx *) ac_arg=$ac_var=$ac_new_val ;;
9 kx esac
9 kx case " $ac_configure_args " in
9 kx *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
9 kx *) as_fn_append ac_configure_args " '$ac_arg'" ;;
9 kx esac
9 kx fi
9 kx done
9 kx if $ac_cache_corrupted; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
9 kx $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
9 kx as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
9 kx fi
9 kx ## -------------------- ##
9 kx ## Main body of script. ##
9 kx ## -------------------- ##
9 kx
9 kx ac_ext=c
9 kx ac_cpp='$CPP $CPPFLAGS'
9 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx ac_aux_dir=
9 kx for ac_dir in .. "$srcdir"/..; do
9 kx if test -f "$ac_dir/install-sh"; then
9 kx ac_aux_dir=$ac_dir
9 kx ac_install_sh="$ac_aux_dir/install-sh -c"
9 kx break
9 kx elif test -f "$ac_dir/install.sh"; then
9 kx ac_aux_dir=$ac_dir
9 kx ac_install_sh="$ac_aux_dir/install.sh -c"
9 kx break
9 kx elif test -f "$ac_dir/shtool"; then
9 kx ac_aux_dir=$ac_dir
9 kx ac_install_sh="$ac_aux_dir/shtool install -c"
9 kx break
9 kx fi
9 kx done
9 kx if test -z "$ac_aux_dir"; then
9 kx as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
9 kx fi
9 kx
9 kx # These three variables are undocumented and unsupported,
9 kx # and are intended to be withdrawn in a future Autoconf release.
9 kx # They can cause serious problems if a builder's source tree is in a directory
9 kx # whose full name contains unusual characters.
9 kx ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
9 kx ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
9 kx ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
9 kx
9 kx
9 kx # Make sure we can run config.sub.
9 kx $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
9 kx as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
9 kx $as_echo_n "checking build system type... " >&6; }
9 kx if ${ac_cv_build+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_build_alias=$build_alias
9 kx test "x$ac_build_alias" = x &&
9 kx ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
9 kx test "x$ac_build_alias" = x &&
9 kx as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
9 kx ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
9 kx as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
9 kx $as_echo "$ac_cv_build" >&6; }
9 kx case $ac_cv_build in
9 kx *-*-*) ;;
9 kx *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
9 kx esac
9 kx build=$ac_cv_build
9 kx ac_save_IFS=$IFS; IFS='-'
9 kx set x $ac_cv_build
9 kx shift
9 kx build_cpu=$1
9 kx build_vendor=$2
9 kx shift; shift
9 kx # Remember, the first character of IFS is used to create $*,
9 kx # except with old shells:
9 kx build_os=$*
9 kx IFS=$ac_save_IFS
9 kx case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
9 kx $as_echo_n "checking host system type... " >&6; }
9 kx if ${ac_cv_host+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test "x$host_alias" = x; then
9 kx ac_cv_host=$ac_cv_build
9 kx else
9 kx ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
9 kx as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
9 kx fi
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
9 kx $as_echo "$ac_cv_host" >&6; }
9 kx case $ac_cv_host in
9 kx *-*-*) ;;
9 kx *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
9 kx esac
9 kx host=$ac_cv_host
9 kx ac_save_IFS=$IFS; IFS='-'
9 kx set x $ac_cv_host
9 kx shift
9 kx host_cpu=$1
9 kx host_vendor=$2
9 kx shift; shift
9 kx # Remember, the first character of IFS is used to create $*,
9 kx # except with old shells:
9 kx host_os=$*
9 kx IFS=$ac_save_IFS
9 kx case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
9 kx $as_echo_n "checking target system type... " >&6; }
9 kx if ${ac_cv_target+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test "x$target_alias" = x; then
9 kx ac_cv_target=$ac_cv_host
9 kx else
9 kx ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
9 kx as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
9 kx fi
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
9 kx $as_echo "$ac_cv_target" >&6; }
9 kx case $ac_cv_target in
9 kx *-*-*) ;;
9 kx *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
9 kx esac
9 kx target=$ac_cv_target
9 kx ac_save_IFS=$IFS; IFS='-'
9 kx set x $ac_cv_target
9 kx shift
9 kx target_cpu=$1
9 kx target_vendor=$2
9 kx shift; shift
9 kx # Remember, the first character of IFS is used to create $*,
9 kx # except with old shells:
9 kx target_os=$*
9 kx IFS=$ac_save_IFS
9 kx case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
9 kx
9 kx
9 kx # The aliases save the names the user supplied, while $host etc.
9 kx # will get canonicalized.
9 kx test -n "$target_alias" &&
9 kx test "$program_prefix$program_suffix$program_transform_name" = \
9 kx NONENONEs,x,x, &&
9 kx program_prefix=${target_alias}-
9 kx
9 kx am__api_version='1.15'
9 kx
9 kx # Find a good install program. We prefer a C program (faster),
9 kx # so one script is as good as another. But avoid the broken or
9 kx # incompatible versions:
9 kx # SysV /etc/install, /usr/sbin/install
9 kx # SunOS /usr/etc/install
9 kx # IRIX /sbin/install
9 kx # AIX /bin/install
9 kx # AmigaOS /C/install, which installs bootblocks on floppy discs
9 kx # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9 kx # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9 kx # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9 kx # OS/2's system install, which has a completely different semantic
9 kx # ./install, which can be erroneously created by make from ./install.sh.
9 kx # Reject install programs that cannot install multiple files.
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9 kx $as_echo_n "checking for a BSD-compatible install... " >&6; }
9 kx if test -z "$INSTALL"; then
9 kx if ${ac_cv_path_install+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx # Account for people who put trailing slashes in PATH elements.
9 kx case $as_dir/ in #((
9 kx ./ | .// | /[cC]/* | \
9 kx /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9 kx ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9 kx /usr/ucb/* ) ;;
9 kx *)
9 kx # OSF1 and SCO ODT 3.0 have their own names for install.
9 kx # Don't use installbsd from OSF since it installs stuff as root
9 kx # by default.
9 kx for ac_prog in ginstall scoinst install; do
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9 kx if test $ac_prog = install &&
9 kx grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9 kx # AIX install. It has an incompatible calling convention.
9 kx :
9 kx elif test $ac_prog = install &&
9 kx grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9 kx # program-specific install script used by HP pwplus--don't use.
9 kx :
9 kx else
9 kx rm -rf conftest.one conftest.two conftest.dir
9 kx echo one > conftest.one
9 kx echo two > conftest.two
9 kx mkdir conftest.dir
9 kx if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9 kx test -s conftest.one && test -s conftest.two &&
9 kx test -s conftest.dir/conftest.one &&
9 kx test -s conftest.dir/conftest.two
9 kx then
9 kx ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9 kx break 3
9 kx fi
9 kx fi
9 kx fi
9 kx done
9 kx done
9 kx ;;
9 kx esac
9 kx
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx rm -rf conftest.one conftest.two conftest.dir
9 kx
9 kx fi
9 kx if test "${ac_cv_path_install+set}" = set; then
9 kx INSTALL=$ac_cv_path_install
9 kx else
9 kx # As a last resort, use the slow shell script. Don't cache a
9 kx # value for INSTALL within a source directory, because that will
9 kx # break other packages using the cache if that directory is
9 kx # removed, or if the value is a relative name.
9 kx INSTALL=$ac_install_sh
9 kx fi
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9 kx $as_echo "$INSTALL" >&6; }
9 kx
9 kx # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9 kx # It thinks the first close brace ends the variable substitution.
9 kx test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9 kx
9 kx test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9 kx
9 kx test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
9 kx $as_echo_n "checking whether build environment is sane... " >&6; }
9 kx # Reject unsafe characters in $srcdir or the absolute working directory
9 kx # name. Accept space and tab only in the latter.
9 kx am_lf='
9 kx '
9 kx case `pwd` in
9 kx *[\\\"\#\$\&\'\`$am_lf]*)
9 kx as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
9 kx esac
9 kx case $srcdir in
9 kx *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
9 kx as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
9 kx esac
9 kx
9 kx # Do 'set' in a subshell so we don't clobber the current shell's
9 kx # arguments. Must try -L first in case configure is actually a
9 kx # symlink; some systems play weird games with the mod time of symlinks
9 kx # (eg FreeBSD returns the mod time of the symlink's containing
9 kx # directory).
9 kx if (
9 kx am_has_slept=no
9 kx for am_try in 1 2; do
9 kx echo "timestamp, slept: $am_has_slept" > conftest.file
9 kx set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9 kx if test "$*" = "X"; then
9 kx # -L didn't work.
9 kx set X `ls -t "$srcdir/configure" conftest.file`
9 kx fi
9 kx if test "$*" != "X $srcdir/configure conftest.file" \
9 kx && test "$*" != "X conftest.file $srcdir/configure"; then
9 kx
9 kx # If neither matched, then we have a broken ls. This can happen
9 kx # if, for instance, CONFIG_SHELL is bash and it inherits a
9 kx # broken ls alias from the environment. This has actually
9 kx # happened. Such a system could not be considered "sane".
9 kx as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
9 kx alias in your environment" "$LINENO" 5
9 kx fi
9 kx if test "$2" = conftest.file || test $am_try -eq 2; then
9 kx break
9 kx fi
9 kx # Just in case.
9 kx sleep 1
9 kx am_has_slept=yes
9 kx done
9 kx test "$2" = conftest.file
9 kx )
9 kx then
9 kx # Ok.
9 kx :
9 kx else
9 kx as_fn_error $? "newly created file is older than distributed files!
9 kx Check your system clock" "$LINENO" 5
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9 kx $as_echo "yes" >&6; }
9 kx # If we didn't sleep, we still need to ensure time stamps of config.status and
9 kx # generated files are strictly newer.
9 kx am_sleep_pid=
9 kx if grep 'slept: no' conftest.file >/dev/null 2>&1; then
9 kx ( sleep 1 ) &
9 kx am_sleep_pid=$!
9 kx fi
9 kx
9 kx rm -f conftest.file
9 kx
9 kx test "$program_prefix" != NONE &&
9 kx program_transform_name="s&^&$program_prefix&;$program_transform_name"
9 kx # Use a double $ so make ignores it.
9 kx test "$program_suffix" != NONE &&
9 kx program_transform_name="s&\$&$program_suffix&;$program_transform_name"
9 kx # Double any \ or $.
9 kx # By default was `s,x,x', remove it if useless.
9 kx ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
9 kx program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
9 kx
9 kx # Expand $ac_aux_dir to an absolute path.
9 kx am_aux_dir=`cd "$ac_aux_dir" && pwd`
9 kx
9 kx if test x"${MISSING+set}" != xset; then
9 kx case $am_aux_dir in
9 kx *\ * | *\ *)
9 kx MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9 kx *)
9 kx MISSING="\${SHELL} $am_aux_dir/missing" ;;
9 kx esac
9 kx fi
9 kx # Use eval to expand $SHELL
9 kx if eval "$MISSING --is-lightweight"; then
9 kx am_missing_run="$MISSING "
9 kx else
9 kx am_missing_run=
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
9 kx $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
9 kx fi
9 kx
9 kx if test x"${install_sh+set}" != xset; then
9 kx case $am_aux_dir in
9 kx *\ * | *\ *)
9 kx install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9 kx *)
9 kx install_sh="\${SHELL} $am_aux_dir/install-sh"
9 kx esac
9 kx fi
9 kx
9 kx # Installed binaries are usually stripped using 'strip' when the user
9 kx # run "make install-strip". However 'strip' might not be the right
9 kx # tool to use in cross-compilation environments, therefore Automake
9 kx # will honor the 'STRIP' environment variable to overrule this program.
9 kx if test "$cross_compiling" != no; then
9 kx if test -n "$ac_tool_prefix"; then
9 kx # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9 kx set dummy ${ac_tool_prefix}strip; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_STRIP+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$STRIP"; then
9 kx ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx STRIP=$ac_cv_prog_STRIP
9 kx if test -n "$STRIP"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9 kx $as_echo "$STRIP" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx if test -z "$ac_cv_prog_STRIP"; then
9 kx ac_ct_STRIP=$STRIP
9 kx # Extract the first word of "strip", so it can be a program name with args.
9 kx set dummy strip; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$ac_ct_STRIP"; then
9 kx ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_ac_ct_STRIP="strip"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9 kx if test -n "$ac_ct_STRIP"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9 kx $as_echo "$ac_ct_STRIP" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx if test "x$ac_ct_STRIP" = x; then
9 kx STRIP=":"
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx STRIP=$ac_ct_STRIP
9 kx fi
9 kx else
9 kx STRIP="$ac_cv_prog_STRIP"
9 kx fi
9 kx
9 kx fi
9 kx INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9 kx $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9 kx if test -z "$MKDIR_P"; then
9 kx if ${ac_cv_path_mkdir+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_prog in mkdir gmkdir; do
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
9 kx case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9 kx 'mkdir (GNU coreutils) '* | \
9 kx 'mkdir (coreutils) '* | \
9 kx 'mkdir (fileutils) '4.1*)
9 kx ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9 kx break 3;;
9 kx esac
9 kx done
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx
9 kx test -d ./--version && rmdir ./--version
9 kx if test "${ac_cv_path_mkdir+set}" = set; then
9 kx MKDIR_P="$ac_cv_path_mkdir -p"
9 kx else
9 kx # As a last resort, use the slow shell script. Don't cache a
9 kx # value for MKDIR_P within a source directory, because that will
9 kx # break other packages using the cache if that directory is
9 kx # removed, or if the value is a relative name.
9 kx MKDIR_P="$ac_install_sh -d"
9 kx fi
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9 kx $as_echo "$MKDIR_P" >&6; }
9 kx
9 kx for ac_prog in gawk mawk nawk awk
9 kx do
9 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
9 kx set dummy $ac_prog; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_AWK+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$AWK"; then
9 kx ac_cv_prog_AWK="$AWK" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_AWK="$ac_prog"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx AWK=$ac_cv_prog_AWK
9 kx if test -n "$AWK"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9 kx $as_echo "$AWK" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx test -n "$AWK" && break
9 kx done
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9 kx $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9 kx set x ${MAKE-make}
9 kx ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9 kx if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat >conftest.make <<\_ACEOF
9 kx SHELL = /bin/sh
9 kx all:
9 kx @echo '@@@%%%=$(MAKE)=@@@%%%'
9 kx _ACEOF
9 kx # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9 kx case `${MAKE-make} -f conftest.make 2>/dev/null` in
9 kx *@@@%%%=?*=@@@%%%*)
9 kx eval ac_cv_prog_make_${ac_make}_set=yes;;
9 kx *)
9 kx eval ac_cv_prog_make_${ac_make}_set=no;;
9 kx esac
9 kx rm -f conftest.make
9 kx fi
9 kx if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9 kx $as_echo "yes" >&6; }
9 kx SET_MAKE=
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx SET_MAKE="MAKE=${MAKE-make}"
9 kx fi
9 kx
9 kx rm -rf .tst 2>/dev/null
9 kx mkdir .tst 2>/dev/null
9 kx if test -d .tst; then
9 kx am__leading_dot=.
9 kx else
9 kx am__leading_dot=_
9 kx fi
9 kx rmdir .tst 2>/dev/null
9 kx
9 kx # Check whether --enable-silent-rules was given.
9 kx if test "${enable_silent_rules+set}" = set; then :
9 kx enableval=$enable_silent_rules;
9 kx fi
9 kx
9 kx case $enable_silent_rules in # (((
9 kx yes) AM_DEFAULT_VERBOSITY=0;;
9 kx no) AM_DEFAULT_VERBOSITY=1;;
9 kx *) AM_DEFAULT_VERBOSITY=1;;
9 kx esac
9 kx am_make=${MAKE-make}
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
9 kx $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
9 kx if ${am_cv_make_support_nested_variables+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if $as_echo 'TRUE=$(BAR$(V))
9 kx BAR0=false
9 kx BAR1=true
9 kx V=1
9 kx am__doit:
9 kx @$(TRUE)
9 kx .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
9 kx am_cv_make_support_nested_variables=yes
9 kx else
9 kx am_cv_make_support_nested_variables=no
9 kx fi
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
9 kx $as_echo "$am_cv_make_support_nested_variables" >&6; }
9 kx if test $am_cv_make_support_nested_variables = yes; then
9 kx AM_V='$(V)'
9 kx AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9 kx else
9 kx AM_V=$AM_DEFAULT_VERBOSITY
9 kx AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9 kx fi
9 kx AM_BACKSLASH='\'
9 kx
9 kx if test "`cd $srcdir && pwd`" != "`pwd`"; then
9 kx # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9 kx # is not polluted with repeated "-I."
9 kx am__isrc=' -I$(srcdir)'
9 kx # test to see if srcdir already configured
9 kx if test -f $srcdir/config.status; then
9 kx as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9 kx fi
9 kx fi
9 kx
9 kx # test whether we have cygpath
9 kx if test -z "$CYGPATH_W"; then
9 kx if (cygpath --version) >/dev/null 2>/dev/null; then
9 kx CYGPATH_W='cygpath -w'
9 kx else
9 kx CYGPATH_W=echo
9 kx fi
9 kx fi
9 kx
9 kx
9 kx # Define the identity of the package.
9 kx PACKAGE='gas'
9 kx VERSION='2.40'
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define PACKAGE "$PACKAGE"
9 kx _ACEOF
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define VERSION "$VERSION"
9 kx _ACEOF
9 kx
9 kx # Some tools Automake needs.
9 kx
9 kx ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9 kx
9 kx
9 kx AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9 kx
9 kx
9 kx AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9 kx
9 kx
9 kx AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9 kx
9 kx
9 kx MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9 kx
9 kx # For better backward compatibility. To be removed once Automake 1.9.x
9 kx # dies out for good. For more background, see:
9 kx # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9 kx # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9 kx mkdir_p='$(MKDIR_P)'
9 kx
9 kx # We need awk for the "check" target (and possibly the TAP driver). The
9 kx # system "awk" is bad on some platforms.
9 kx # Always define AMTAR for backward compatibility. Yes, it's still used
9 kx # in the wild :-( We should find a proper way to deprecate it ...
9 kx AMTAR='$${TAR-tar}'
9 kx
9 kx
9 kx # We'll loop over all known methods to create a tar archive until one works.
9 kx _am_tools='gnutar pax cpio none'
9 kx
9 kx am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # POSIX will say in a future version that running "rm -f" with no argument
9 kx # is OK; and we want to be able to make that assumption in our Makefile
9 kx # recipes. So use an aggressive probe to check that the usage we want is
9 kx # actually supported "in the wild" to an acceptable degree.
9 kx # See automake bug#10828.
9 kx # To make any issue more visible, cause the running configure to be aborted
9 kx # by default if the 'rm' program in use doesn't match our expectations; the
9 kx # user can still override this though.
9 kx if rm -f && rm -fr && rm -rf; then : OK; else
9 kx cat >&2 <<'END'
9 kx Oops!
9 kx
9 kx Your 'rm' program seems unable to run without file operands specified
9 kx on the command line, even when the '-f' option is present. This is contrary
9 kx to the behaviour of most rm programs out there, and not conforming with
9 kx the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9 kx
9 kx Please tell bug-automake@gnu.org about your system, including the value
9 kx of your $PATH and any error possibly output before this message. This
9 kx can help us improve future automake versions.
9 kx
9 kx END
9 kx if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
9 kx echo 'Configuration will proceed anyway, since you have set the' >&2
9 kx echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
9 kx echo >&2
9 kx else
9 kx cat >&2 <<'END'
9 kx Aborting the configuration process, to ensure you take notice of the issue.
9 kx
9 kx You can download and install GNU coreutils to get an 'rm' implementation
9 kx that behaves properly: <http://www.gnu.org/software/coreutils/>.
9 kx
9 kx If you want to complete the configuration process using your problematic
9 kx 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9 kx to "yes", and re-run configure.
9 kx
9 kx END
9 kx as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
9 kx fi
9 kx fi
9 kx
9 kx # Check whether --enable-silent-rules was given.
9 kx if test "${enable_silent_rules+set}" = set; then :
9 kx enableval=$enable_silent_rules;
9 kx fi
9 kx
9 kx case $enable_silent_rules in # (((
9 kx yes) AM_DEFAULT_VERBOSITY=0;;
9 kx no) AM_DEFAULT_VERBOSITY=1;;
9 kx *) AM_DEFAULT_VERBOSITY=0;;
9 kx esac
9 kx am_make=${MAKE-make}
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
9 kx $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
9 kx if ${am_cv_make_support_nested_variables+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if $as_echo 'TRUE=$(BAR$(V))
9 kx BAR0=false
9 kx BAR1=true
9 kx V=1
9 kx am__doit:
9 kx @$(TRUE)
9 kx .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
9 kx am_cv_make_support_nested_variables=yes
9 kx else
9 kx am_cv_make_support_nested_variables=no
9 kx fi
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
9 kx $as_echo "$am_cv_make_support_nested_variables" >&6; }
9 kx if test $am_cv_make_support_nested_variables = yes; then
9 kx AM_V='$(V)'
9 kx AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9 kx else
9 kx AM_V=$AM_DEFAULT_VERBOSITY
9 kx AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9 kx fi
9 kx AM_BACKSLASH='\'
9 kx
9 kx
9 kx ac_ext=c
9 kx ac_cpp='$CPP $CPPFLAGS'
9 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
9 kx if test -n "$ac_tool_prefix"; then
9 kx # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9 kx set dummy ${ac_tool_prefix}gcc; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_CC+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$CC"; then
9 kx ac_cv_prog_CC="$CC" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_CC="${ac_tool_prefix}gcc"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx CC=$ac_cv_prog_CC
9 kx if test -n "$CC"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9 kx $as_echo "$CC" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx if test -z "$ac_cv_prog_CC"; then
9 kx ac_ct_CC=$CC
9 kx # Extract the first word of "gcc", so it can be a program name with args.
9 kx set dummy gcc; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_ac_ct_CC+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$ac_ct_CC"; then
9 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_ac_ct_CC="gcc"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
9 kx if test -n "$ac_ct_CC"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9 kx $as_echo "$ac_ct_CC" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx if test "x$ac_ct_CC" = x; then
9 kx CC=""
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx CC=$ac_ct_CC
9 kx fi
9 kx else
9 kx CC="$ac_cv_prog_CC"
9 kx fi
9 kx
9 kx if test -z "$CC"; then
9 kx if test -n "$ac_tool_prefix"; then
9 kx # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9 kx set dummy ${ac_tool_prefix}cc; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_CC+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$CC"; then
9 kx ac_cv_prog_CC="$CC" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_CC="${ac_tool_prefix}cc"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx CC=$ac_cv_prog_CC
9 kx if test -n "$CC"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9 kx $as_echo "$CC" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx fi
9 kx if test -z "$CC"; then
9 kx # Extract the first word of "cc", so it can be a program name with args.
9 kx set dummy cc; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_CC+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$CC"; then
9 kx ac_cv_prog_CC="$CC" # Let the user override the test.
9 kx else
9 kx ac_prog_rejected=no
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9 kx ac_prog_rejected=yes
9 kx continue
9 kx fi
9 kx ac_cv_prog_CC="cc"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx if test $ac_prog_rejected = yes; then
9 kx # We found a bogon in the path, so make sure we never use it.
9 kx set dummy $ac_cv_prog_CC
9 kx shift
9 kx if test $# != 0; then
9 kx # We chose a different compiler from the bogus one.
9 kx # However, it has the same basename, so the bogon will be chosen
9 kx # first if we set CC to just the basename; use the full file name.
9 kx shift
9 kx ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9 kx fi
9 kx fi
9 kx fi
9 kx fi
9 kx CC=$ac_cv_prog_CC
9 kx if test -n "$CC"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9 kx $as_echo "$CC" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx if test -z "$CC"; then
9 kx if test -n "$ac_tool_prefix"; then
9 kx for ac_prog in cl.exe
9 kx do
9 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_CC+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$CC"; then
9 kx ac_cv_prog_CC="$CC" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx CC=$ac_cv_prog_CC
9 kx if test -n "$CC"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9 kx $as_echo "$CC" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx test -n "$CC" && break
9 kx done
9 kx fi
9 kx if test -z "$CC"; then
9 kx ac_ct_CC=$CC
9 kx for ac_prog in cl.exe
9 kx do
9 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
9 kx set dummy $ac_prog; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_ac_ct_CC+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$ac_ct_CC"; then
9 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_ac_ct_CC="$ac_prog"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
9 kx if test -n "$ac_ct_CC"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9 kx $as_echo "$ac_ct_CC" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx test -n "$ac_ct_CC" && break
9 kx done
9 kx
9 kx if test "x$ac_ct_CC" = x; then
9 kx CC=""
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx CC=$ac_ct_CC
9 kx fi
9 kx fi
9 kx
9 kx fi
9 kx
9 kx
9 kx test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9 kx as_fn_error $? "no acceptable C compiler found in \$PATH
9 kx See \`config.log' for more details" "$LINENO" 5; }
9 kx
9 kx # Provide some information about the compiler.
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
9 kx set X $ac_compile
9 kx ac_compiler=$2
9 kx for ac_option in --version -v -V -qversion; do
9 kx { { ac_try="$ac_compiler $ac_option >&5"
9 kx case "(($ac_try" in
9 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9 kx *) ac_try_echo=$ac_try;;
9 kx esac
9 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9 kx $as_echo "$ac_try_echo"; } >&5
9 kx (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9 kx ac_status=$?
9 kx if test -s conftest.err; then
9 kx sed '10a\
9 kx ... rest of stderr output deleted ...
9 kx 10q' conftest.err >conftest.er1
9 kx cat conftest.er1 >&5
9 kx fi
9 kx rm -f conftest.er1 conftest.err
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }
9 kx done
9 kx
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx ac_clean_files_save=$ac_clean_files
9 kx ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
9 kx # Try to create an executable without -o first, disregard a.out.
9 kx # It will help us diagnose broken compilers, and finding out an intuition
9 kx # of exeext.
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
9 kx $as_echo_n "checking whether the C compiler works... " >&6; }
9 kx ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
9 kx
9 kx # The possible output files:
9 kx ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
9 kx
9 kx ac_rmfiles=
9 kx for ac_file in $ac_files
9 kx do
9 kx case $ac_file in
9 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
9 kx * ) ac_rmfiles="$ac_rmfiles $ac_file";;
9 kx esac
9 kx done
9 kx rm -f $ac_rmfiles
9 kx
9 kx if { { ac_try="$ac_link_default"
9 kx case "(($ac_try" in
9 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9 kx *) ac_try_echo=$ac_try;;
9 kx esac
9 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9 kx $as_echo "$ac_try_echo"; } >&5
9 kx (eval "$ac_link_default") 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }; then :
9 kx # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
9 kx # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
9 kx # in a Makefile. We should not override ac_cv_exeext if it was cached,
9 kx # so that the user can short-circuit this test for compilers unknown to
9 kx # Autoconf.
9 kx for ac_file in $ac_files ''
9 kx do
9 kx test -f "$ac_file" || continue
9 kx case $ac_file in
9 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
9 kx ;;
9 kx [ab].out )
9 kx # We found the default executable, but exeext='' is most
9 kx # certainly right.
9 kx break;;
9 kx *.* )
9 kx if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
9 kx then :; else
9 kx ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9 kx fi
9 kx # We set ac_cv_exeext here because the later test for it is not
9 kx # safe: cross compilers may not add the suffix if given an `-o'
9 kx # argument, so we may need to know it at that point already.
9 kx # Even if this section looks crufty: it has the advantage of
9 kx # actually working.
9 kx break;;
9 kx * )
9 kx break;;
9 kx esac
9 kx done
9 kx test "$ac_cv_exeext" = no && ac_cv_exeext=
9 kx
9 kx else
9 kx ac_file=''
9 kx fi
9 kx if test -z "$ac_file"; then :
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx $as_echo "$as_me: failed program was:" >&5
9 kx sed 's/^/| /' conftest.$ac_ext >&5
9 kx
9 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9 kx as_fn_error 77 "C compiler cannot create executables
9 kx See \`config.log' for more details" "$LINENO" 5; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9 kx $as_echo "yes" >&6; }
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
9 kx $as_echo_n "checking for C compiler default output file name... " >&6; }
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
9 kx $as_echo "$ac_file" >&6; }
9 kx ac_exeext=$ac_cv_exeext
9 kx
9 kx rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
9 kx ac_clean_files=$ac_clean_files_save
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
9 kx $as_echo_n "checking for suffix of executables... " >&6; }
9 kx if { { ac_try="$ac_link"
9 kx case "(($ac_try" in
9 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9 kx *) ac_try_echo=$ac_try;;
9 kx esac
9 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9 kx $as_echo "$ac_try_echo"; } >&5
9 kx (eval "$ac_link") 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }; then :
9 kx # If both `conftest.exe' and `conftest' are `present' (well, observable)
9 kx # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
9 kx # work properly (i.e., refer to `conftest.exe'), while it won't with
9 kx # `rm'.
9 kx for ac_file in conftest.exe conftest conftest.*; do
9 kx test -f "$ac_file" || continue
9 kx case $ac_file in
9 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
9 kx *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9 kx break;;
9 kx * ) break;;
9 kx esac
9 kx done
9 kx else
9 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9 kx as_fn_error $? "cannot compute suffix of executables: cannot compile and link
9 kx See \`config.log' for more details" "$LINENO" 5; }
9 kx fi
9 kx rm -f conftest conftest$ac_cv_exeext
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
9 kx $as_echo "$ac_cv_exeext" >&6; }
9 kx
9 kx rm -f conftest.$ac_ext
9 kx EXEEXT=$ac_cv_exeext
9 kx ac_exeext=$EXEEXT
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <stdio.h>
9 kx int
9 kx main ()
9 kx {
9 kx FILE *f = fopen ("conftest.out", "w");
9 kx return ferror (f) || fclose (f) != 0;
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx ac_clean_files="$ac_clean_files conftest.out"
9 kx # Check that the compiler produces executables we can run. If not, either
9 kx # the compiler is broken, or we cross compile.
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
9 kx $as_echo_n "checking whether we are cross compiling... " >&6; }
9 kx if test "$cross_compiling" != yes; then
9 kx { { ac_try="$ac_link"
9 kx case "(($ac_try" in
9 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9 kx *) ac_try_echo=$ac_try;;
9 kx esac
9 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9 kx $as_echo "$ac_try_echo"; } >&5
9 kx (eval "$ac_link") 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }
9 kx if { ac_try='./conftest$ac_cv_exeext'
9 kx { { case "(($ac_try" in
9 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9 kx *) ac_try_echo=$ac_try;;
9 kx esac
9 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9 kx $as_echo "$ac_try_echo"; } >&5
9 kx (eval "$ac_try") 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }; }; then
9 kx cross_compiling=no
9 kx else
9 kx if test "$cross_compiling" = maybe; then
9 kx cross_compiling=yes
9 kx else
9 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9 kx as_fn_error $? "cannot run C compiled programs.
9 kx If you meant to cross compile, use \`--host'.
9 kx See \`config.log' for more details" "$LINENO" 5; }
9 kx fi
9 kx fi
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
9 kx $as_echo "$cross_compiling" >&6; }
9 kx
9 kx rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
9 kx ac_clean_files=$ac_clean_files_save
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
9 kx $as_echo_n "checking for suffix of object files... " >&6; }
9 kx if ${ac_cv_objext+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx rm -f conftest.o conftest.obj
9 kx if { { ac_try="$ac_compile"
9 kx case "(($ac_try" in
9 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9 kx *) ac_try_echo=$ac_try;;
9 kx esac
9 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9 kx $as_echo "$ac_try_echo"; } >&5
9 kx (eval "$ac_compile") 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }; then :
9 kx for ac_file in conftest.o conftest.obj conftest.*; do
9 kx test -f "$ac_file" || continue;
9 kx case $ac_file in
9 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
9 kx *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
9 kx break;;
9 kx esac
9 kx done
9 kx else
9 kx $as_echo "$as_me: failed program was:" >&5
9 kx sed 's/^/| /' conftest.$ac_ext >&5
9 kx
9 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9 kx as_fn_error $? "cannot compute suffix of object files: cannot compile
9 kx See \`config.log' for more details" "$LINENO" 5; }
9 kx fi
9 kx rm -f conftest.$ac_cv_objext conftest.$ac_ext
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
9 kx $as_echo "$ac_cv_objext" >&6; }
9 kx OBJEXT=$ac_cv_objext
9 kx ac_objext=$OBJEXT
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
9 kx $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
9 kx if ${ac_cv_c_compiler_gnu+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx #ifndef __GNUC__
9 kx choke me
9 kx #endif
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_compiler_gnu=yes
9 kx else
9 kx ac_compiler_gnu=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx ac_cv_c_compiler_gnu=$ac_compiler_gnu
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
9 kx $as_echo "$ac_cv_c_compiler_gnu" >&6; }
9 kx if test $ac_compiler_gnu = yes; then
9 kx GCC=yes
9 kx else
9 kx GCC=
9 kx fi
9 kx ac_test_CFLAGS=${CFLAGS+set}
9 kx ac_save_CFLAGS=$CFLAGS
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
9 kx $as_echo_n "checking whether $CC accepts -g... " >&6; }
9 kx if ${ac_cv_prog_cc_g+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_save_c_werror_flag=$ac_c_werror_flag
9 kx ac_c_werror_flag=yes
9 kx ac_cv_prog_cc_g=no
9 kx CFLAGS="-g"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_cv_prog_cc_g=yes
9 kx else
9 kx CFLAGS=""
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx
9 kx else
9 kx ac_c_werror_flag=$ac_save_c_werror_flag
9 kx CFLAGS="-g"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_cv_prog_cc_g=yes
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx ac_c_werror_flag=$ac_save_c_werror_flag
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
9 kx $as_echo "$ac_cv_prog_cc_g" >&6; }
9 kx if test "$ac_test_CFLAGS" = set; then
9 kx CFLAGS=$ac_save_CFLAGS
9 kx elif test $ac_cv_prog_cc_g = yes; then
9 kx if test "$GCC" = yes; then
9 kx CFLAGS="-g -O2"
9 kx else
9 kx CFLAGS="-g"
9 kx fi
9 kx else
9 kx if test "$GCC" = yes; then
9 kx CFLAGS="-O2"
9 kx else
9 kx CFLAGS=
9 kx fi
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
9 kx $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9 kx if ${ac_cv_prog_cc_c89+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_cv_prog_cc_c89=no
9 kx ac_save_CC=$CC
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <stdarg.h>
9 kx #include <stdio.h>
9 kx struct stat;
9 kx /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9 kx struct buf { int x; };
9 kx FILE * (*rcsopen) (struct buf *, struct stat *, int);
9 kx static char *e (p, i)
9 kx char **p;
9 kx int i;
9 kx {
9 kx return p[i];
9 kx }
9 kx static char *f (char * (*g) (char **, int), char **p, ...)
9 kx {
9 kx char *s;
9 kx va_list v;
9 kx va_start (v,p);
9 kx s = g (p, va_arg (v,int));
9 kx va_end (v);
9 kx return s;
9 kx }
9 kx
9 kx /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
9 kx function prototypes and stuff, but not '\xHH' hex character constants.
9 kx These don't provoke an error unfortunately, instead are silently treated
9 kx as 'x'. The following induces an error, until -std is added to get
9 kx proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
9 kx array size at least. It's necessary to write '\x00'==0 to get something
9 kx that's true only with -std. */
9 kx int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9 kx
9 kx /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9 kx inside strings and character constants. */
9 kx #define FOO(x) 'x'
9 kx int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9 kx
9 kx int test (int i, double x);
9 kx struct s1 {int (*f) (int a);};
9 kx struct s2 {int (*f) (double a);};
9 kx int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9 kx int argc;
9 kx char **argv;
9 kx int
9 kx main ()
9 kx {
9 kx return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9 kx -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9 kx do
9 kx CC="$ac_save_CC $ac_arg"
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_cv_prog_cc_c89=$ac_arg
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext
9 kx test "x$ac_cv_prog_cc_c89" != "xno" && break
9 kx done
9 kx rm -f conftest.$ac_ext
9 kx CC=$ac_save_CC
9 kx
9 kx fi
9 kx # AC_CACHE_VAL
9 kx case "x$ac_cv_prog_cc_c89" in
9 kx x)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9 kx $as_echo "none needed" >&6; } ;;
9 kx xno)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9 kx $as_echo "unsupported" >&6; } ;;
9 kx *)
9 kx CC="$CC $ac_cv_prog_cc_c89"
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9 kx $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9 kx esac
9 kx if test "x$ac_cv_prog_cc_c89" != xno; then :
9 kx
9 kx fi
9 kx
9 kx ac_ext=c
9 kx ac_cpp='$CPP $CPPFLAGS'
9 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
9 kx
9 kx ac_ext=c
9 kx ac_cpp='$CPP $CPPFLAGS'
9 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
9 kx $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
9 kx if ${am_cv_prog_cc_c_o+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx # Make sure it works both with $CC and with simple cc.
9 kx # Following AC_PROG_CC_C_O, we do the test twice because some
9 kx # compilers refuse to overwrite an existing .o file with -o,
9 kx # though they will create one.
9 kx am_cv_prog_cc_c_o=yes
9 kx for am_i in 1 2; do
9 kx if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
9 kx ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
9 kx ac_status=$?
9 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
9 kx (exit $ac_status); } \
9 kx && test -f conftest2.$ac_objext; then
9 kx : OK
9 kx else
9 kx am_cv_prog_cc_c_o=no
9 kx break
9 kx fi
9 kx done
9 kx rm -f core conftest*
9 kx unset am_i
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
9 kx $as_echo "$am_cv_prog_cc_c_o" >&6; }
9 kx if test "$am_cv_prog_cc_c_o" != yes; then
9 kx # Losing compiler, so override with the script.
9 kx # FIXME: It is wrong to rewrite CC.
9 kx # But if we don't then we get into trouble of one sort or another.
9 kx # A longer-term fix would be to have automake use am__CC in this case,
9 kx # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9 kx CC="$am_aux_dir/compile $CC"
9 kx fi
9 kx ac_ext=c
9 kx ac_cpp='$CPP $CPPFLAGS'
9 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
9 kx
9 kx DEPDIR="${am__leading_dot}deps"
9 kx
9 kx ac_config_commands="$ac_config_commands depfiles"
9 kx
9 kx
9 kx am_make=${MAKE-make}
9 kx cat > confinc << 'END'
9 kx am__doit:
9 kx @echo this is the am__doit target
9 kx .PHONY: am__doit
9 kx END
9 kx # If we don't find an include directive, just comment out the code.
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
9 kx $as_echo_n "checking for style of include used by $am_make... " >&6; }
9 kx am__include="#"
9 kx am__quote=
9 kx _am_result=none
9 kx # First try GNU make style include.
9 kx echo "include confinc" > confmf
9 kx # Ignore all kinds of additional output from 'make'.
9 kx case `$am_make -s -f confmf 2> /dev/null` in #(
9 kx *the\ am__doit\ target*)
9 kx am__include=include
9 kx am__quote=
9 kx _am_result=GNU
9 kx ;;
9 kx esac
9 kx # Now try BSD make style include.
9 kx if test "$am__include" = "#"; then
9 kx echo '.include "confinc"' > confmf
9 kx case `$am_make -s -f confmf 2> /dev/null` in #(
9 kx *the\ am__doit\ target*)
9 kx am__include=.include
9 kx am__quote="\""
9 kx _am_result=BSD
9 kx ;;
9 kx esac
9 kx fi
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
9 kx $as_echo "$_am_result" >&6; }
9 kx rm -f confinc confmf
9 kx
9 kx # Check whether --enable-dependency-tracking was given.
9 kx if test "${enable_dependency_tracking+set}" = set; then :
9 kx enableval=$enable_dependency_tracking;
9 kx fi
9 kx
9 kx if test "x$enable_dependency_tracking" != xno; then
9 kx am_depcomp="$ac_aux_dir/depcomp"
9 kx AMDEPBACKSLASH='\'
9 kx am__nodep='_no'
9 kx fi
9 kx if test "x$enable_dependency_tracking" != xno; then
9 kx AMDEP_TRUE=
9 kx AMDEP_FALSE='#'
9 kx else
9 kx AMDEP_TRUE='#'
9 kx AMDEP_FALSE=
9 kx fi
9 kx
9 kx
9 kx
9 kx depcc="$CC" am_compiler_list=
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9 kx $as_echo_n "checking dependency style of $depcc... " >&6; }
9 kx if ${am_cv_CC_dependencies_compiler_type+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9 kx # We make a subdir and do the tests there. Otherwise we can end up
9 kx # making bogus files that we don't know about and never remove. For
9 kx # instance it was reported that on HP-UX the gcc test will end up
9 kx # making a dummy file named 'D' -- because '-MD' means "put the output
9 kx # in D".
9 kx rm -rf conftest.dir
9 kx mkdir conftest.dir
9 kx # Copy depcomp to subdir because otherwise we won't find it if we're
9 kx # using a relative directory.
9 kx cp "$am_depcomp" conftest.dir
9 kx cd conftest.dir
9 kx # We will build objects and dependencies in a subdirectory because
9 kx # it helps to detect inapplicable dependency modes. For instance
9 kx # both Tru64's cc and ICC support -MD to output dependencies as a
9 kx # side effect of compilation, but ICC will put the dependencies in
9 kx # the current directory while Tru64 will put them in the object
9 kx # directory.
9 kx mkdir sub
9 kx
9 kx am_cv_CC_dependencies_compiler_type=none
9 kx if test "$am_compiler_list" = ""; then
9 kx am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9 kx fi
9 kx am__universal=false
9 kx case " $depcc " in #(
9 kx *\ -arch\ *\ -arch\ *) am__universal=true ;;
9 kx esac
9 kx
9 kx for depmode in $am_compiler_list; do
9 kx # Setup a source with many dependencies, because some compilers
9 kx # like to wrap large dependency lists on column 80 (with \), and
9 kx # we should not choose a depcomp mode which is confused by this.
9 kx #
9 kx # We need to recreate these files for each test, as the compiler may
9 kx # overwrite some of them when testing with obscure command lines.
9 kx # This happens at least with the AIX C compiler.
9 kx : > sub/conftest.c
9 kx for i in 1 2 3 4 5 6; do
9 kx echo '#include "conftst'$i'.h"' >> sub/conftest.c
9 kx # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9 kx # Solaris 10 /bin/sh.
9 kx echo '/* dummy */' > sub/conftst$i.h
9 kx done
9 kx echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9 kx
9 kx # We check with '-c' and '-o' for the sake of the "dashmstdout"
9 kx # mode. It turns out that the SunPro C++ compiler does not properly
9 kx # handle '-M -o', and we need to detect this. Also, some Intel
9 kx # versions had trouble with output in subdirs.
9 kx am__obj=sub/conftest.${OBJEXT-o}
9 kx am__minus_obj="-o $am__obj"
9 kx case $depmode in
9 kx gcc)
9 kx # This depmode causes a compiler race in universal mode.
9 kx test "$am__universal" = false || continue
9 kx ;;
9 kx nosideeffect)
9 kx # After this tag, mechanisms are not by side-effect, so they'll
9 kx # only be used when explicitly requested.
9 kx if test "x$enable_dependency_tracking" = xyes; then
9 kx continue
9 kx else
9 kx break
9 kx fi
9 kx ;;
9 kx msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9 kx # This compiler won't grok '-c -o', but also, the minuso test has
9 kx # not run yet. These depmodes are late enough in the game, and
9 kx # so weak that their functioning should not be impacted.
9 kx am__obj=conftest.${OBJEXT-o}
9 kx am__minus_obj=
9 kx ;;
9 kx none) break ;;
9 kx esac
9 kx if depmode=$depmode \
9 kx source=sub/conftest.c object=$am__obj \
9 kx depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9 kx $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9 kx >/dev/null 2>conftest.err &&
9 kx grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9 kx grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9 kx grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9 kx ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9 kx # icc doesn't choke on unknown options, it will just issue warnings
9 kx # or remarks (even with -Werror). So we grep stderr for any message
9 kx # that says an option was ignored or not supported.
9 kx # When given -MP, icc 7.0 and 7.1 complain thusly:
9 kx # icc: Command line warning: ignoring option '-M'; no argument required
9 kx # The diagnosis changed in icc 8.0:
9 kx # icc: Command line remark: option '-MP' not supported
9 kx if (grep 'ignoring option' conftest.err ||
9 kx grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9 kx am_cv_CC_dependencies_compiler_type=$depmode
9 kx break
9 kx fi
9 kx fi
9 kx done
9 kx
9 kx cd ..
9 kx rm -rf conftest.dir
9 kx else
9 kx am_cv_CC_dependencies_compiler_type=none
9 kx fi
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9 kx $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9 kx CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9 kx
9 kx if
9 kx test "x$enable_dependency_tracking" != xno \
9 kx && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9 kx am__fastdepCC_TRUE=
9 kx am__fastdepCC_FALSE='#'
9 kx else
9 kx am__fastdepCC_TRUE='#'
9 kx am__fastdepCC_FALSE=
9 kx fi
9 kx
9 kx
9 kx
9 kx ac_ext=c
9 kx ac_cpp='$CPP $CPPFLAGS'
9 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9 kx $as_echo_n "checking how to run the C preprocessor... " >&6; }
9 kx # On Suns, sometimes $CPP names a directory.
9 kx if test -n "$CPP" && test -d "$CPP"; then
9 kx CPP=
9 kx fi
9 kx if test -z "$CPP"; then
9 kx if ${ac_cv_prog_CPP+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx # Double quotes because CPP needs to be expanded
9 kx for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9 kx do
9 kx ac_preproc_ok=false
9 kx for ac_c_preproc_warn_flag in '' yes
9 kx do
9 kx # Use a header file that comes with gcc, so configuring glibc
9 kx # with a fresh cross-compiler works.
9 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9 kx # <limits.h> exists even on freestanding compilers.
9 kx # On the NeXT, cc -E runs the code through the compiler's parser,
9 kx # not just through cpp. "Syntax error" is here to catch this case.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #ifdef __STDC__
9 kx # include <limits.h>
9 kx #else
9 kx # include <assert.h>
9 kx #endif
9 kx Syntax error
9 kx _ACEOF
9 kx if ac_fn_c_try_cpp "$LINENO"; then :
9 kx
9 kx else
9 kx # Broken: fails on valid input.
9 kx continue
9 kx fi
9 kx rm -f conftest.err conftest.i conftest.$ac_ext
9 kx
9 kx # OK, works on sane cases. Now check whether nonexistent headers
9 kx # can be detected and how.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <ac_nonexistent.h>
9 kx _ACEOF
9 kx if ac_fn_c_try_cpp "$LINENO"; then :
9 kx # Broken: success on invalid input.
9 kx continue
9 kx else
9 kx # Passes both tests.
9 kx ac_preproc_ok=:
9 kx break
9 kx fi
9 kx rm -f conftest.err conftest.i conftest.$ac_ext
9 kx
9 kx done
9 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9 kx rm -f conftest.i conftest.err conftest.$ac_ext
9 kx if $ac_preproc_ok; then :
9 kx break
9 kx fi
9 kx
9 kx done
9 kx ac_cv_prog_CPP=$CPP
9 kx
9 kx fi
9 kx CPP=$ac_cv_prog_CPP
9 kx else
9 kx ac_cv_prog_CPP=$CPP
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9 kx $as_echo "$CPP" >&6; }
9 kx ac_preproc_ok=false
9 kx for ac_c_preproc_warn_flag in '' yes
9 kx do
9 kx # Use a header file that comes with gcc, so configuring glibc
9 kx # with a fresh cross-compiler works.
9 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9 kx # <limits.h> exists even on freestanding compilers.
9 kx # On the NeXT, cc -E runs the code through the compiler's parser,
9 kx # not just through cpp. "Syntax error" is here to catch this case.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #ifdef __STDC__
9 kx # include <limits.h>
9 kx #else
9 kx # include <assert.h>
9 kx #endif
9 kx Syntax error
9 kx _ACEOF
9 kx if ac_fn_c_try_cpp "$LINENO"; then :
9 kx
9 kx else
9 kx # Broken: fails on valid input.
9 kx continue
9 kx fi
9 kx rm -f conftest.err conftest.i conftest.$ac_ext
9 kx
9 kx # OK, works on sane cases. Now check whether nonexistent headers
9 kx # can be detected and how.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <ac_nonexistent.h>
9 kx _ACEOF
9 kx if ac_fn_c_try_cpp "$LINENO"; then :
9 kx # Broken: success on invalid input.
9 kx continue
9 kx else
9 kx # Passes both tests.
9 kx ac_preproc_ok=:
9 kx break
9 kx fi
9 kx rm -f conftest.err conftest.i conftest.$ac_ext
9 kx
9 kx done
9 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9 kx rm -f conftest.i conftest.err conftest.$ac_ext
9 kx if $ac_preproc_ok; then :
9 kx
9 kx else
9 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9 kx as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9 kx See \`config.log' for more details" "$LINENO" 5; }
9 kx fi
9 kx
9 kx ac_ext=c
9 kx ac_cpp='$CPP $CPPFLAGS'
9 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9 kx $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
9 kx if ${ac_cv_path_GREP+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -z "$GREP"; then
9 kx ac_path_GREP_found=false
9 kx # Loop through the user's path and test for each of PROGNAME-LIST
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_prog in grep ggrep; do
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9 kx as_fn_executable_p "$ac_path_GREP" || continue
9 kx # Check for GNU ac_path_GREP and select it if it is found.
9 kx # Check for GNU $ac_path_GREP
9 kx case `"$ac_path_GREP" --version 2>&1` in
9 kx *GNU*)
9 kx ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9 kx *)
9 kx ac_count=0
9 kx $as_echo_n 0123456789 >"conftest.in"
9 kx while :
9 kx do
9 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
9 kx mv "conftest.tmp" "conftest.in"
9 kx cp "conftest.in" "conftest.nl"
9 kx $as_echo 'GREP' >> "conftest.nl"
9 kx "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
9 kx if test $ac_count -gt ${ac_path_GREP_max-0}; then
9 kx # Best one so far, save it but keep looking for a better one
9 kx ac_cv_path_GREP="$ac_path_GREP"
9 kx ac_path_GREP_max=$ac_count
9 kx fi
9 kx # 10*(2^10) chars as input seems more than enough
9 kx test $ac_count -gt 10 && break
9 kx done
9 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9 kx esac
9 kx
9 kx $ac_path_GREP_found && break 3
9 kx done
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx if test -z "$ac_cv_path_GREP"; then
9 kx as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9 kx fi
9 kx else
9 kx ac_cv_path_GREP=$GREP
9 kx fi
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9 kx $as_echo "$ac_cv_path_GREP" >&6; }
9 kx GREP="$ac_cv_path_GREP"
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9 kx $as_echo_n "checking for egrep... " >&6; }
9 kx if ${ac_cv_path_EGREP+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9 kx then ac_cv_path_EGREP="$GREP -E"
9 kx else
9 kx if test -z "$EGREP"; then
9 kx ac_path_EGREP_found=false
9 kx # Loop through the user's path and test for each of PROGNAME-LIST
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_prog in egrep; do
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9 kx as_fn_executable_p "$ac_path_EGREP" || continue
9 kx # Check for GNU ac_path_EGREP and select it if it is found.
9 kx # Check for GNU $ac_path_EGREP
9 kx case `"$ac_path_EGREP" --version 2>&1` in
9 kx *GNU*)
9 kx ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9 kx *)
9 kx ac_count=0
9 kx $as_echo_n 0123456789 >"conftest.in"
9 kx while :
9 kx do
9 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
9 kx mv "conftest.tmp" "conftest.in"
9 kx cp "conftest.in" "conftest.nl"
9 kx $as_echo 'EGREP' >> "conftest.nl"
9 kx "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
9 kx if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9 kx # Best one so far, save it but keep looking for a better one
9 kx ac_cv_path_EGREP="$ac_path_EGREP"
9 kx ac_path_EGREP_max=$ac_count
9 kx fi
9 kx # 10*(2^10) chars as input seems more than enough
9 kx test $ac_count -gt 10 && break
9 kx done
9 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9 kx esac
9 kx
9 kx $ac_path_EGREP_found && break 3
9 kx done
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx if test -z "$ac_cv_path_EGREP"; then
9 kx as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9 kx fi
9 kx else
9 kx ac_cv_path_EGREP=$EGREP
9 kx fi
9 kx
9 kx fi
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9 kx $as_echo "$ac_cv_path_EGREP" >&6; }
9 kx EGREP="$ac_cv_path_EGREP"
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9 kx $as_echo_n "checking for ANSI C header files... " >&6; }
9 kx if ${ac_cv_header_stdc+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <stdlib.h>
9 kx #include <stdarg.h>
9 kx #include <string.h>
9 kx #include <float.h>
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_cv_header_stdc=yes
9 kx else
9 kx ac_cv_header_stdc=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx
9 kx if test $ac_cv_header_stdc = yes; then
9 kx # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <string.h>
9 kx
9 kx _ACEOF
9 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9 kx $EGREP "memchr" >/dev/null 2>&1; then :
9 kx
9 kx else
9 kx ac_cv_header_stdc=no
9 kx fi
9 kx rm -f conftest*
9 kx
9 kx fi
9 kx
9 kx if test $ac_cv_header_stdc = yes; then
9 kx # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <stdlib.h>
9 kx
9 kx _ACEOF
9 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9 kx $EGREP "free" >/dev/null 2>&1; then :
9 kx
9 kx else
9 kx ac_cv_header_stdc=no
9 kx fi
9 kx rm -f conftest*
9 kx
9 kx fi
9 kx
9 kx if test $ac_cv_header_stdc = yes; then
9 kx # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9 kx if test "$cross_compiling" = yes; then :
9 kx :
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <ctype.h>
9 kx #include <stdlib.h>
9 kx #if ((' ' & 0x0FF) == 0x020)
9 kx # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9 kx # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9 kx #else
9 kx # define ISLOWER(c) \
9 kx (('a' <= (c) && (c) <= 'i') \
9 kx || ('j' <= (c) && (c) <= 'r') \
9 kx || ('s' <= (c) && (c) <= 'z'))
9 kx # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9 kx #endif
9 kx
9 kx #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9 kx int
9 kx main ()
9 kx {
9 kx int i;
9 kx for (i = 0; i < 256; i++)
9 kx if (XOR (islower (i), ISLOWER (i))
9 kx || toupper (i) != TOUPPER (i))
9 kx return 2;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_run "$LINENO"; then :
9 kx
9 kx else
9 kx ac_cv_header_stdc=no
9 kx fi
9 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
9 kx fi
9 kx
9 kx fi
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9 kx $as_echo "$ac_cv_header_stdc" >&6; }
9 kx if test $ac_cv_header_stdc = yes; then
9 kx
9 kx $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9 kx
9 kx fi
9 kx
9 kx # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9 kx for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9 kx inttypes.h stdint.h unistd.h
9 kx do :
9 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9 kx ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9 kx "
9 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9 kx _ACEOF
9 kx
9 kx fi
9 kx
9 kx done
9 kx
9 kx
9 kx
9 kx ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
9 kx if test "x$ac_cv_header_minix_config_h" = xyes; then :
9 kx MINIX=yes
9 kx else
9 kx MINIX=
9 kx fi
9 kx
9 kx
9 kx if test "$MINIX" = yes; then
9 kx
9 kx $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
9 kx
9 kx
9 kx $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
9 kx
9 kx
9 kx $as_echo "#define _MINIX 1" >>confdefs.h
9 kx
9 kx fi
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
9 kx $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
9 kx if ${ac_cv_safe_to_define___extensions__+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx # define __EXTENSIONS__ 1
9 kx $ac_includes_default
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_cv_safe_to_define___extensions__=yes
9 kx else
9 kx ac_cv_safe_to_define___extensions__=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
9 kx $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
9 kx test $ac_cv_safe_to_define___extensions__ = yes &&
9 kx $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
9 kx
9 kx $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
9 kx
9 kx $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
9 kx
9 kx $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
9 kx
9 kx $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx case `pwd` in
9 kx *\ * | *\ *)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9 kx $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9 kx esac
9 kx
9 kx
9 kx
9 kx macro_version='2.2.7a'
9 kx macro_revision='1.3134'
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx ltmain="$ac_aux_dir/ltmain.sh"
9 kx
9 kx # Backslashify metacharacters that are still active within
9 kx # double-quoted strings.
9 kx sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9 kx
9 kx # Same as above, but do not quote variable references.
9 kx double_quote_subst='s/\(["`\\]\)/\\\1/g'
9 kx
9 kx # Sed substitution to delay expansion of an escaped shell variable in a
9 kx # double_quote_subst'ed string.
9 kx delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9 kx
9 kx # Sed substitution to delay expansion of an escaped single quote.
9 kx delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9 kx
9 kx # Sed substitution to avoid accidental globbing in evaled expressions
9 kx no_glob_subst='s/\*/\\\*/g'
9 kx
9 kx ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9 kx ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9 kx ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9 kx $as_echo_n "checking how to print strings... " >&6; }
9 kx # Test print first, because it will be a builtin if present.
9 kx if test "X`print -r -- -n 2>/dev/null`" = X-n && \
9 kx test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9 kx ECHO='print -r --'
9 kx elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9 kx ECHO='printf %s\n'
9 kx else
9 kx # Use this function as a fallback that always works.
9 kx func_fallback_echo ()
9 kx {
9 kx eval 'cat <<_LTECHO_EOF
9 kx $1
9 kx _LTECHO_EOF'
9 kx }
9 kx ECHO='func_fallback_echo'
9 kx fi
9 kx
9 kx # func_echo_all arg...
9 kx # Invoke $ECHO with all args, space-separated.
9 kx func_echo_all ()
9 kx {
9 kx $ECHO ""
9 kx }
9 kx
9 kx case "$ECHO" in
9 kx printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9 kx $as_echo "printf" >&6; } ;;
9 kx print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9 kx $as_echo "print -r" >&6; } ;;
9 kx *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9 kx $as_echo "cat" >&6; } ;;
9 kx esac
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9 kx $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9 kx if ${ac_cv_path_SED+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9 kx for ac_i in 1 2 3 4 5 6 7; do
9 kx ac_script="$ac_script$as_nl$ac_script"
9 kx done
9 kx echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9 kx { ac_script=; unset ac_script;}
9 kx if test -z "$SED"; then
9 kx ac_path_SED_found=false
9 kx # Loop through the user's path and test for each of PROGNAME-LIST
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_prog in sed gsed; do
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9 kx as_fn_executable_p "$ac_path_SED" || continue
9 kx # Check for GNU ac_path_SED and select it if it is found.
9 kx # Check for GNU $ac_path_SED
9 kx case `"$ac_path_SED" --version 2>&1` in
9 kx *GNU*)
9 kx ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9 kx *)
9 kx ac_count=0
9 kx $as_echo_n 0123456789 >"conftest.in"
9 kx while :
9 kx do
9 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
9 kx mv "conftest.tmp" "conftest.in"
9 kx cp "conftest.in" "conftest.nl"
9 kx $as_echo '' >> "conftest.nl"
9 kx "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
9 kx if test $ac_count -gt ${ac_path_SED_max-0}; then
9 kx # Best one so far, save it but keep looking for a better one
9 kx ac_cv_path_SED="$ac_path_SED"
9 kx ac_path_SED_max=$ac_count
9 kx fi
9 kx # 10*(2^10) chars as input seems more than enough
9 kx test $ac_count -gt 10 && break
9 kx done
9 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9 kx esac
9 kx
9 kx $ac_path_SED_found && break 3
9 kx done
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx if test -z "$ac_cv_path_SED"; then
9 kx as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9 kx fi
9 kx else
9 kx ac_cv_path_SED=$SED
9 kx fi
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9 kx $as_echo "$ac_cv_path_SED" >&6; }
9 kx SED="$ac_cv_path_SED"
9 kx rm -f conftest.sed
9 kx
9 kx test -z "$SED" && SED=sed
9 kx Xsed="$SED -e 1s/^X//"
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9 kx $as_echo_n "checking for fgrep... " >&6; }
9 kx if ${ac_cv_path_FGREP+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9 kx then ac_cv_path_FGREP="$GREP -F"
9 kx else
9 kx if test -z "$FGREP"; then
9 kx ac_path_FGREP_found=false
9 kx # Loop through the user's path and test for each of PROGNAME-LIST
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_prog in fgrep; do
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9 kx as_fn_executable_p "$ac_path_FGREP" || continue
9 kx # Check for GNU ac_path_FGREP and select it if it is found.
9 kx # Check for GNU $ac_path_FGREP
9 kx case `"$ac_path_FGREP" --version 2>&1` in
9 kx *GNU*)
9 kx ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9 kx *)
9 kx ac_count=0
9 kx $as_echo_n 0123456789 >"conftest.in"
9 kx while :
9 kx do
9 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
9 kx mv "conftest.tmp" "conftest.in"
9 kx cp "conftest.in" "conftest.nl"
9 kx $as_echo 'FGREP' >> "conftest.nl"
9 kx "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
9 kx if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9 kx # Best one so far, save it but keep looking for a better one
9 kx ac_cv_path_FGREP="$ac_path_FGREP"
9 kx ac_path_FGREP_max=$ac_count
9 kx fi
9 kx # 10*(2^10) chars as input seems more than enough
9 kx test $ac_count -gt 10 && break
9 kx done
9 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9 kx esac
9 kx
9 kx $ac_path_FGREP_found && break 3
9 kx done
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx if test -z "$ac_cv_path_FGREP"; then
9 kx as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9 kx fi
9 kx else
9 kx ac_cv_path_FGREP=$FGREP
9 kx fi
9 kx
9 kx fi
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9 kx $as_echo "$ac_cv_path_FGREP" >&6; }
9 kx FGREP="$ac_cv_path_FGREP"
9 kx
9 kx
9 kx test -z "$GREP" && GREP=grep
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # Check whether --with-gnu-ld was given.
9 kx if test "${with_gnu_ld+set}" = set; then :
9 kx withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9 kx else
9 kx with_gnu_ld=no
9 kx fi
9 kx
9 kx ac_prog=ld
9 kx if test "$GCC" = yes; then
9 kx # Check if gcc -print-prog-name=ld gives a path.
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9 kx $as_echo_n "checking for ld used by $CC... " >&6; }
9 kx case $host in
9 kx *-*-mingw*)
9 kx # gcc leaves a trailing carriage return which upsets mingw
9 kx ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9 kx *)
9 kx ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9 kx esac
9 kx case $ac_prog in
9 kx # Accept absolute paths.
9 kx [\\/]* | ?:[\\/]*)
9 kx re_direlt='/[^/][^/]*/\.\./'
9 kx # Canonicalize the pathname of ld
9 kx ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9 kx while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9 kx ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9 kx done
9 kx test -z "$LD" && LD="$ac_prog"
9 kx ;;
9 kx "")
9 kx # If it fails, then pretend we aren't using GCC.
9 kx ac_prog=ld
9 kx ;;
9 kx *)
9 kx # If it is relative, then search for the first ld in PATH.
9 kx with_gnu_ld=unknown
9 kx ;;
9 kx esac
9 kx elif test "$with_gnu_ld" = yes; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9 kx $as_echo_n "checking for GNU ld... " >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9 kx $as_echo_n "checking for non-GNU ld... " >&6; }
9 kx fi
9 kx if ${lt_cv_path_LD+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -z "$LD"; then
9 kx lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9 kx for ac_dir in $PATH; do
9 kx IFS="$lt_save_ifs"
9 kx test -z "$ac_dir" && ac_dir=.
9 kx if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9 kx lt_cv_path_LD="$ac_dir/$ac_prog"
9 kx # Check to see if the program is GNU ld. I'd rather use --version,
9 kx # but apparently some variants of GNU ld only accept -v.
9 kx # Break only if it was the GNU/non-GNU ld that we prefer.
9 kx case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9 kx *GNU* | *'with BFD'*)
9 kx test "$with_gnu_ld" != no && break
9 kx ;;
9 kx *)
9 kx test "$with_gnu_ld" != yes && break
9 kx ;;
9 kx esac
9 kx fi
9 kx done
9 kx IFS="$lt_save_ifs"
9 kx else
9 kx lt_cv_path_LD="$LD" # Let the user override the test with a path.
9 kx fi
9 kx fi
9 kx
9 kx LD="$lt_cv_path_LD"
9 kx if test -n "$LD"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9 kx $as_echo "$LD" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9 kx $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9 kx if ${lt_cv_prog_gnu_ld+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx # I'd rather use --version here, but apparently some GNU lds only accept -v.
9 kx case `$LD -v 2>&1 </dev/null` in
9 kx *GNU* | *'with BFD'*)
9 kx lt_cv_prog_gnu_ld=yes
9 kx ;;
9 kx *)
9 kx lt_cv_prog_gnu_ld=no
9 kx ;;
9 kx esac
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9 kx $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9 kx with_gnu_ld=$lt_cv_prog_gnu_ld
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9 kx $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9 kx if ${lt_cv_path_NM+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$NM"; then
9 kx # Let the user override the nm to test.
9 kx lt_nm_to_check="$NM"
9 kx else
9 kx lt_nm_to_check="${ac_tool_prefix}nm"
9 kx if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9 kx lt_nm_to_check="$lt_nm_to_check nm"
9 kx fi
9 kx fi
9 kx for lt_tmp_nm in "$lt_nm_to_check"; do
9 kx lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9 kx for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9 kx IFS="$lt_save_ifs"
9 kx test -z "$ac_dir" && ac_dir=.
9 kx # Strip out any user-provided options from the nm to test twice,
9 kx # the first time to test to see if nm (rather than its options) has
9 kx # an explicit path, the second time to yield a file which can be
9 kx # nm'ed itself.
9 kx tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
9 kx case "$tmp_nm_path" in
9 kx */*|*\\*) tmp_nm="$lt_tmp_nm";;
9 kx *) tmp_nm="$ac_dir/$lt_tmp_nm";;
9 kx esac
9 kx tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
9 kx if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
9 kx # Check to see if the nm accepts a BSD-compat flag.
9 kx # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9 kx # nm: unknown option "B" ignored
9 kx case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
9 kx *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
9 kx break
9 kx ;;
9 kx *)
9 kx case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
9 kx *$tmp_nm*)
9 kx lt_cv_path_NM="$tmp_nm -p"
9 kx break
9 kx ;;
9 kx *)
9 kx lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9 kx continue # so that we can try to find one that supports BSD flags
9 kx ;;
9 kx esac
9 kx ;;
9 kx esac
9 kx fi
9 kx done
9 kx IFS="$lt_save_ifs"
9 kx done
9 kx : ${lt_cv_path_NM=no}
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9 kx $as_echo "$lt_cv_path_NM" >&6; }
9 kx if test "$lt_cv_path_NM" != "no"; then
9 kx NM="$lt_cv_path_NM"
9 kx else
9 kx # Didn't find any BSD compatible name lister, look for dumpbin.
9 kx if test -n "$DUMPBIN"; then :
9 kx # Let the user override the test.
9 kx else
9 kx if test -n "$ac_tool_prefix"; then
9 kx for ac_prog in dumpbin "link -dump"
9 kx do
9 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_DUMPBIN+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$DUMPBIN"; then
9 kx ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx DUMPBIN=$ac_cv_prog_DUMPBIN
9 kx if test -n "$DUMPBIN"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9 kx $as_echo "$DUMPBIN" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx test -n "$DUMPBIN" && break
9 kx done
9 kx fi
9 kx if test -z "$DUMPBIN"; then
9 kx ac_ct_DUMPBIN=$DUMPBIN
9 kx for ac_prog in dumpbin "link -dump"
9 kx do
9 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
9 kx set dummy $ac_prog; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$ac_ct_DUMPBIN"; then
9 kx ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9 kx if test -n "$ac_ct_DUMPBIN"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9 kx $as_echo "$ac_ct_DUMPBIN" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx test -n "$ac_ct_DUMPBIN" && break
9 kx done
9 kx
9 kx if test "x$ac_ct_DUMPBIN" = x; then
9 kx DUMPBIN=":"
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx DUMPBIN=$ac_ct_DUMPBIN
9 kx fi
9 kx fi
9 kx
9 kx case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9 kx *COFF*)
9 kx DUMPBIN="$DUMPBIN -symbols"
9 kx ;;
9 kx *)
9 kx DUMPBIN=:
9 kx ;;
9 kx esac
9 kx fi
9 kx
9 kx if test "$DUMPBIN" != ":"; then
9 kx NM="$DUMPBIN"
9 kx fi
9 kx fi
9 kx test -z "$NM" && NM=nm
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9 kx $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9 kx if ${lt_cv_nm_interface+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx lt_cv_nm_interface="BSD nm"
9 kx echo "int some_variable = 0;" > conftest.$ac_ext
9 kx (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9 kx (eval "$ac_compile" 2>conftest.err)
9 kx cat conftest.err >&5
9 kx (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9 kx (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9 kx cat conftest.err >&5
9 kx (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9 kx cat conftest.out >&5
9 kx if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9 kx lt_cv_nm_interface="MS dumpbin"
9 kx fi
9 kx rm -f conftest*
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9 kx $as_echo "$lt_cv_nm_interface" >&6; }
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9 kx $as_echo_n "checking whether ln -s works... " >&6; }
9 kx LN_S=$as_ln_s
9 kx if test "$LN_S" = "ln -s"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9 kx $as_echo "yes" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9 kx $as_echo "no, using $LN_S" >&6; }
9 kx fi
9 kx
9 kx # find the maximum length of command line arguments
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9 kx $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9 kx if ${lt_cv_sys_max_cmd_len+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx i=0
9 kx teststring="ABCD"
9 kx
9 kx case $build_os in
9 kx msdosdjgpp*)
9 kx # On DJGPP, this test can blow up pretty badly due to problems in libc
9 kx # (any single argument exceeding 2000 bytes causes a buffer overrun
9 kx # during glob expansion). Even if it were fixed, the result of this
9 kx # check would be larger than it should be.
9 kx lt_cv_sys_max_cmd_len=12288; # 12K is about right
9 kx ;;
9 kx
9 kx gnu*)
9 kx # Under GNU Hurd, this test is not required because there is
9 kx # no limit to the length of command line arguments.
9 kx # Libtool will interpret -1 as no limit whatsoever
9 kx lt_cv_sys_max_cmd_len=-1;
9 kx ;;
9 kx
9 kx cygwin* | mingw* | cegcc*)
9 kx # On Win9x/ME, this test blows up -- it succeeds, but takes
9 kx # about 5 minutes as the teststring grows exponentially.
9 kx # Worse, since 9x/ME are not pre-emptively multitasking,
9 kx # you end up with a "frozen" computer, even though with patience
9 kx # the test eventually succeeds (with a max line length of 256k).
9 kx # Instead, let's just punt: use the minimum linelength reported by
9 kx # all of the supported platforms: 8192 (on NT/2K/XP).
9 kx lt_cv_sys_max_cmd_len=8192;
9 kx ;;
9 kx
9 kx mint*)
9 kx # On MiNT this can take a long time and run out of memory.
9 kx lt_cv_sys_max_cmd_len=8192;
9 kx ;;
9 kx
9 kx amigaos*)
9 kx # On AmigaOS with pdksh, this test takes hours, literally.
9 kx # So we just punt and use a minimum line length of 8192.
9 kx lt_cv_sys_max_cmd_len=8192;
9 kx ;;
9 kx
9 kx netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9 kx # This has been around since 386BSD, at least. Likely further.
9 kx if test -x /sbin/sysctl; then
9 kx lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9 kx elif test -x /usr/sbin/sysctl; then
9 kx lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9 kx else
9 kx lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9 kx fi
9 kx # And add a safety zone
9 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9 kx ;;
9 kx
9 kx interix*)
9 kx # We know the value 262144 and hardcode it with a safety zone (like BSD)
9 kx lt_cv_sys_max_cmd_len=196608
9 kx ;;
9 kx
9 kx osf*)
9 kx # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9 kx # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9 kx # nice to cause kernel panics so lets avoid the loop below.
9 kx # First set a reasonable default.
9 kx lt_cv_sys_max_cmd_len=16384
9 kx #
9 kx if test -x /sbin/sysconfig; then
9 kx case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9 kx *1*) lt_cv_sys_max_cmd_len=-1 ;;
9 kx esac
9 kx fi
9 kx ;;
9 kx sco3.2v5*)
9 kx lt_cv_sys_max_cmd_len=102400
9 kx ;;
9 kx sysv5* | sco5v6* | sysv4.2uw2*)
9 kx kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9 kx if test -n "$kargmax"; then
9 kx lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9 kx else
9 kx lt_cv_sys_max_cmd_len=32768
9 kx fi
9 kx ;;
9 kx *)
9 kx lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9 kx if test -n "$lt_cv_sys_max_cmd_len"; then
9 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9 kx else
9 kx # Make teststring a little bigger before we do anything with it.
9 kx # a 1K string should be a reasonable start.
9 kx for i in 1 2 3 4 5 6 7 8 ; do
9 kx teststring=$teststring$teststring
9 kx done
9 kx SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9 kx # If test is not a shell built-in, we'll probably end up computing a
9 kx # maximum length that is only half of the actual maximum length, but
9 kx # we can't tell.
9 kx while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9 kx = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9 kx test $i != 17 # 1/2 MB should be enough
9 kx do
9 kx i=`expr $i + 1`
9 kx teststring=$teststring$teststring
9 kx done
9 kx # Only check the string length outside the loop.
9 kx lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9 kx teststring=
9 kx # Add a significant safety factor because C++ compilers can tack on
9 kx # massive amounts of additional arguments before passing them to the
9 kx # linker. It appears as though 1/2 is a usable value.
9 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9 kx fi
9 kx ;;
9 kx esac
9 kx
9 kx fi
9 kx
9 kx if test -n $lt_cv_sys_max_cmd_len ; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9 kx $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9 kx $as_echo "none" >&6; }
9 kx fi
9 kx max_cmd_len=$lt_cv_sys_max_cmd_len
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx : ${CP="cp -f"}
9 kx : ${MV="mv -f"}
9 kx : ${RM="rm -f"}
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9 kx $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9 kx # Try some XSI features
9 kx xsi_shell=no
9 kx ( _lt_dummy="a/b/c"
9 kx test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9 kx = c,a/b,, \
9 kx && eval 'test $(( 1 + 1 )) -eq 2 \
9 kx && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9 kx && xsi_shell=yes
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9 kx $as_echo "$xsi_shell" >&6; }
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9 kx $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9 kx lt_shell_append=no
9 kx ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9 kx >/dev/null 2>&1 \
9 kx && lt_shell_append=yes
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9 kx $as_echo "$lt_shell_append" >&6; }
9 kx
9 kx
9 kx if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9 kx lt_unset=unset
9 kx else
9 kx lt_unset=false
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # test EBCDIC or ASCII
9 kx case `echo X|tr X '\101'` in
9 kx A) # ASCII based system
9 kx # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9 kx lt_SP2NL='tr \040 \012'
9 kx lt_NL2SP='tr \015\012 \040\040'
9 kx ;;
9 kx *) # EBCDIC based system
9 kx lt_SP2NL='tr \100 \n'
9 kx lt_NL2SP='tr \r\n \100\100'
9 kx ;;
9 kx esac
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9 kx $as_echo_n "checking for $LD option to reload object files... " >&6; }
9 kx if ${lt_cv_ld_reload_flag+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx lt_cv_ld_reload_flag='-r'
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9 kx $as_echo "$lt_cv_ld_reload_flag" >&6; }
9 kx reload_flag=$lt_cv_ld_reload_flag
9 kx case $reload_flag in
9 kx "" | " "*) ;;
9 kx *) reload_flag=" $reload_flag" ;;
9 kx esac
9 kx reload_cmds='$LD$reload_flag -o $output$reload_objs'
9 kx case $host_os in
9 kx darwin*)
9 kx if test "$GCC" = yes; then
9 kx reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9 kx else
9 kx reload_cmds='$LD$reload_flag -o $output$reload_objs'
9 kx fi
9 kx ;;
9 kx esac
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx if test -n "$ac_tool_prefix"; then
9 kx # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9 kx set dummy ${ac_tool_prefix}objdump; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_OBJDUMP+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$OBJDUMP"; then
9 kx ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx OBJDUMP=$ac_cv_prog_OBJDUMP
9 kx if test -n "$OBJDUMP"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9 kx $as_echo "$OBJDUMP" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx if test -z "$ac_cv_prog_OBJDUMP"; then
9 kx ac_ct_OBJDUMP=$OBJDUMP
9 kx # Extract the first word of "objdump", so it can be a program name with args.
9 kx set dummy objdump; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$ac_ct_OBJDUMP"; then
9 kx ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_ac_ct_OBJDUMP="objdump"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9 kx if test -n "$ac_ct_OBJDUMP"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9 kx $as_echo "$ac_ct_OBJDUMP" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx if test "x$ac_ct_OBJDUMP" = x; then
9 kx OBJDUMP="false"
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx OBJDUMP=$ac_ct_OBJDUMP
9 kx fi
9 kx else
9 kx OBJDUMP="$ac_cv_prog_OBJDUMP"
9 kx fi
9 kx
9 kx test -z "$OBJDUMP" && OBJDUMP=objdump
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9 kx $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9 kx if ${lt_cv_deplibs_check_method+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx lt_cv_file_magic_cmd='$MAGIC_CMD'
9 kx lt_cv_file_magic_test_file=
9 kx lt_cv_deplibs_check_method='unknown'
9 kx # Need to set the preceding variable on all platforms that support
9 kx # interlibrary dependencies.
9 kx # 'none' -- dependencies not supported.
9 kx # `unknown' -- same as none, but documents that we really don't know.
9 kx # 'pass_all' -- all dependencies passed with no checks.
9 kx # 'test_compile' -- check by making test program.
9 kx # 'file_magic [[regex]]' -- check by looking for files in library path
9 kx # which responds to the $file_magic_cmd with a given extended regex.
9 kx # If you have `file' or equivalent on your system and you're not sure
9 kx # whether `pass_all' will *always* work, you probably want this one.
9 kx
9 kx case $host_os in
9 kx aix[4-9]*)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx
9 kx beos*)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx
9 kx bsdi[45]*)
9 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9 kx lt_cv_file_magic_cmd='/usr/bin/file -L'
9 kx lt_cv_file_magic_test_file=/shlib/libc.so
9 kx ;;
9 kx
9 kx cygwin*)
9 kx # func_win32_libid is a shell function defined in ltmain.sh
9 kx lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9 kx lt_cv_file_magic_cmd='func_win32_libid'
9 kx ;;
9 kx
9 kx mingw* | pw32*)
9 kx # Base MSYS/MinGW do not provide the 'file' command needed by
9 kx # func_win32_libid shell function, so use a weaker test based on 'objdump',
9 kx # unless we find 'file', for example because we are cross-compiling.
9 kx # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9 kx if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9 kx lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9 kx lt_cv_file_magic_cmd='func_win32_libid'
9 kx else
9 kx lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9 kx lt_cv_file_magic_cmd='$OBJDUMP -f'
9 kx fi
9 kx ;;
9 kx
9 kx cegcc*)
9 kx # use the weaker test based on 'objdump'. See mingw*.
9 kx lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9 kx lt_cv_file_magic_cmd='$OBJDUMP -f'
9 kx ;;
9 kx
9 kx darwin* | rhapsody*)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx
9 kx freebsd* | dragonfly*)
9 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9 kx case $host_cpu in
9 kx i*86 )
9 kx # Not sure whether the presence of OpenBSD here was a mistake.
9 kx # Let's accept both of them until this is cleared up.
9 kx lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9 kx lt_cv_file_magic_cmd=/usr/bin/file
9 kx lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9 kx ;;
9 kx esac
9 kx else
9 kx lt_cv_deplibs_check_method=pass_all
9 kx fi
9 kx ;;
9 kx
9 kx gnu*)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx
9 kx haiku*)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx
9 kx hpux10.20* | hpux11*)
9 kx lt_cv_file_magic_cmd=/usr/bin/file
9 kx case $host_cpu in
9 kx ia64*)
9 kx lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9 kx lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9 kx ;;
9 kx hppa*64*)
9 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]'
9 kx lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9 kx ;;
9 kx *)
9 kx lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9 kx lt_cv_file_magic_test_file=/usr/lib/libc.sl
9 kx ;;
9 kx esac
9 kx ;;
9 kx
9 kx interix[3-9]*)
9 kx # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9 kx ;;
9 kx
9 kx irix5* | irix6* | nonstopux*)
9 kx case $LD in
9 kx *-32|*"-32 ") libmagic=32-bit;;
9 kx *-n32|*"-n32 ") libmagic=N32;;
9 kx *-64|*"-64 ") libmagic=64-bit;;
9 kx *) libmagic=never-match;;
9 kx esac
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx
9 kx # This must be Linux ELF.
9 kx linux* | k*bsd*-gnu | kopensolaris*-gnu)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx
9 kx netbsd*)
9 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9 kx else
9 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9 kx fi
9 kx ;;
9 kx
9 kx newos6*)
9 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9 kx lt_cv_file_magic_cmd=/usr/bin/file
9 kx lt_cv_file_magic_test_file=/usr/lib/libnls.so
9 kx ;;
9 kx
9 kx *nto* | *qnx*)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx
9 kx openbsd*)
9 kx if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9 kx else
9 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9 kx fi
9 kx ;;
9 kx
9 kx osf3* | osf4* | osf5*)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx
9 kx rdos*)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx
9 kx solaris*)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx
9 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx
9 kx sysv4 | sysv4.3*)
9 kx case $host_vendor in
9 kx motorola)
9 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]'
9 kx lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9 kx ;;
9 kx ncr)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx sequent)
9 kx lt_cv_file_magic_cmd='/bin/file'
9 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9 kx ;;
9 kx sni)
9 kx lt_cv_file_magic_cmd='/bin/file'
9 kx lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9 kx lt_cv_file_magic_test_file=/lib/libc.so
9 kx ;;
9 kx siemens)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx pc)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx esac
9 kx ;;
9 kx
9 kx tpf*)
9 kx lt_cv_deplibs_check_method=pass_all
9 kx ;;
9 kx esac
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9 kx $as_echo "$lt_cv_deplibs_check_method" >&6; }
9 kx file_magic_cmd=$lt_cv_file_magic_cmd
9 kx deplibs_check_method=$lt_cv_deplibs_check_method
9 kx test -z "$deplibs_check_method" && deplibs_check_method=unknown
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx plugin_option=
9 kx plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
9 kx for plugin in $plugin_names; do
9 kx plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
9 kx if test x$plugin_so = x$plugin; then
9 kx plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
9 kx fi
9 kx if test x$plugin_so != x$plugin; then
9 kx plugin_option="--plugin $plugin_so"
9 kx break
9 kx fi
9 kx done
9 kx
9 kx if test -n "$ac_tool_prefix"; then
9 kx # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9 kx set dummy ${ac_tool_prefix}ar; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_AR+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$AR"; then
9 kx ac_cv_prog_AR="$AR" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_AR="${ac_tool_prefix}ar"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx AR=$ac_cv_prog_AR
9 kx if test -n "$AR"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9 kx $as_echo "$AR" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx if test -z "$ac_cv_prog_AR"; then
9 kx ac_ct_AR=$AR
9 kx # Extract the first word of "ar", so it can be a program name with args.
9 kx set dummy ar; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_ac_ct_AR+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$ac_ct_AR"; then
9 kx ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_ac_ct_AR="ar"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx ac_ct_AR=$ac_cv_prog_ac_ct_AR
9 kx if test -n "$ac_ct_AR"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9 kx $as_echo "$ac_ct_AR" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx if test "x$ac_ct_AR" = x; then
9 kx AR="false"
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx AR=$ac_ct_AR
9 kx fi
9 kx else
9 kx AR="$ac_cv_prog_AR"
9 kx fi
9 kx
9 kx test -z "$AR" && AR=ar
9 kx if test -n "$plugin_option"; then
9 kx if $AR --help 2>&1 | grep -q "\--plugin"; then
9 kx touch conftest.c
9 kx $AR $plugin_option rc conftest.a conftest.c
9 kx if test "$?" != 0; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
9 kx $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
9 kx else
9 kx AR="$AR $plugin_option"
9 kx fi
9 kx rm -f conftest.*
9 kx fi
9 kx fi
9 kx test -z "$AR_FLAGS" && AR_FLAGS=cru
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx if test -n "$ac_tool_prefix"; then
9 kx # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9 kx set dummy ${ac_tool_prefix}strip; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_STRIP+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$STRIP"; then
9 kx ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx STRIP=$ac_cv_prog_STRIP
9 kx if test -n "$STRIP"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9 kx $as_echo "$STRIP" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx if test -z "$ac_cv_prog_STRIP"; then
9 kx ac_ct_STRIP=$STRIP
9 kx # Extract the first word of "strip", so it can be a program name with args.
9 kx set dummy strip; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$ac_ct_STRIP"; then
9 kx ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_ac_ct_STRIP="strip"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9 kx if test -n "$ac_ct_STRIP"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9 kx $as_echo "$ac_ct_STRIP" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx if test "x$ac_ct_STRIP" = x; then
9 kx STRIP=":"
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx STRIP=$ac_ct_STRIP
9 kx fi
9 kx else
9 kx STRIP="$ac_cv_prog_STRIP"
9 kx fi
9 kx
9 kx test -z "$STRIP" && STRIP=:
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx if test -n "$ac_tool_prefix"; then
9 kx # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9 kx set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_RANLIB+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$RANLIB"; then
9 kx ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx RANLIB=$ac_cv_prog_RANLIB
9 kx if test -n "$RANLIB"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9 kx $as_echo "$RANLIB" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx if test -z "$ac_cv_prog_RANLIB"; then
9 kx ac_ct_RANLIB=$RANLIB
9 kx # Extract the first word of "ranlib", so it can be a program name with args.
9 kx set dummy ranlib; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$ac_ct_RANLIB"; then
9 kx ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_ac_ct_RANLIB="ranlib"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9 kx if test -n "$ac_ct_RANLIB"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9 kx $as_echo "$ac_ct_RANLIB" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx if test "x$ac_ct_RANLIB" = x; then
9 kx RANLIB=":"
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx RANLIB=$ac_ct_RANLIB
9 kx fi
9 kx else
9 kx RANLIB="$ac_cv_prog_RANLIB"
9 kx fi
9 kx
9 kx test -z "$RANLIB" && RANLIB=:
9 kx if test -n "$plugin_option" && test "$RANLIB" != ":"; then
9 kx if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
9 kx RANLIB="$RANLIB $plugin_option"
9 kx fi
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # Determine commands to create old-style static archives.
9 kx old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9 kx old_postinstall_cmds='chmod 644 $oldlib'
9 kx old_postuninstall_cmds=
9 kx
9 kx if test -n "$RANLIB"; then
9 kx case $host_os in
9 kx openbsd*)
9 kx old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9 kx ;;
9 kx *)
9 kx old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9 kx ;;
9 kx esac
9 kx old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9 kx fi
9 kx
9 kx case $host_os in
9 kx darwin*)
9 kx lock_old_archive_extraction=yes ;;
9 kx *)
9 kx lock_old_archive_extraction=no ;;
9 kx esac
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # If no C compiler was specified, use CC.
9 kx LTCC=${LTCC-"$CC"}
9 kx
9 kx # If no C compiler flags were specified, use CFLAGS.
9 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9 kx
9 kx # Allow CC to be a program name with arguments.
9 kx compiler=$CC
9 kx
9 kx
9 kx # Check for command to grab the raw symbol name followed by C symbol from nm.
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9 kx $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9 kx if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx
9 kx # These are sane defaults that work on at least a few old systems.
9 kx # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9 kx
9 kx # Character class describing NM global symbol codes.
9 kx symcode='[BCDEGRST]'
9 kx
9 kx # Regexp to match symbols that can be accessed directly from C.
9 kx sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9 kx
9 kx # Define system-specific variables.
9 kx case $host_os in
9 kx aix*)
9 kx symcode='[BCDT]'
9 kx ;;
9 kx cygwin* | mingw* | pw32* | cegcc*)
9 kx symcode='[ABCDGISTW]'
9 kx ;;
9 kx hpux*)
9 kx if test "$host_cpu" = ia64; then
9 kx symcode='[ABCDEGRST]'
9 kx fi
9 kx ;;
9 kx irix* | nonstopux*)
9 kx symcode='[BCDEGRST]'
9 kx ;;
9 kx osf*)
9 kx symcode='[BCDEGQRST]'
9 kx ;;
9 kx solaris*)
9 kx symcode='[BCDRT]'
9 kx ;;
9 kx sco3.2v5*)
9 kx symcode='[DT]'
9 kx ;;
9 kx sysv4.2uw2*)
9 kx symcode='[DT]'
9 kx ;;
9 kx sysv5* | sco5v6* | unixware* | OpenUNIX*)
9 kx symcode='[ABDT]'
9 kx ;;
9 kx sysv4)
9 kx symcode='[DFNSTU]'
9 kx ;;
9 kx esac
9 kx
9 kx # If we're using GNU nm, then use its standard symbol codes.
9 kx case `$NM -V 2>&1` in
9 kx *GNU* | *'with BFD'*)
9 kx symcode='[ABCDGIRSTW]' ;;
9 kx esac
9 kx
9 kx # Transform an extracted symbol line into a proper C declaration.
9 kx # Some systems (esp. on ia64) link data and code symbols differently,
9 kx # so use this general approach.
9 kx lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9 kx
9 kx # Transform an extracted symbol line into symbol name and symbol address
9 kx lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9 kx lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9 kx
9 kx # Handle CRLF in mingw tool chain
9 kx opt_cr=
9 kx case $build_os in
9 kx mingw*)
9 kx opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9 kx ;;
9 kx esac
9 kx
9 kx # Try without a prefix underscore, then with it.
9 kx for ac_symprfx in "" "_"; do
9 kx
9 kx # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9 kx symxfrm="\\1 $ac_symprfx\\2 \\2"
9 kx
9 kx # Write the raw and C identifiers.
9 kx if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9 kx # Fake it for dumpbin and say T for any non-static function
9 kx # and D for any global variable.
9 kx # Also find C++ and __fastcall symbols from MSVC++,
9 kx # which start with @ or ?.
9 kx lt_cv_sys_global_symbol_pipe="$AWK '"\
9 kx " {last_section=section; section=\$ 3};"\
9 kx " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9 kx " \$ 0!~/External *\|/{next};"\
9 kx " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9 kx " {if(hide[section]) next};"\
9 kx " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9 kx " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9 kx " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9 kx " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9 kx " ' prfx=^$ac_symprfx"
9 kx else
9 kx lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9 kx fi
9 kx
9 kx # Check to see that the pipe works correctly.
9 kx pipe_works=no
9 kx
9 kx rm -f conftest*
9 kx cat > conftest.$ac_ext <<_LT_EOF
9 kx #ifdef __cplusplus
9 kx extern "C" {
9 kx #endif
9 kx char nm_test_var;
9 kx void nm_test_func(void);
9 kx void nm_test_func(void){}
9 kx #ifdef __cplusplus
9 kx }
9 kx #endif
9 kx int main(){nm_test_var='a';nm_test_func();return(0);}
9 kx _LT_EOF
9 kx
9 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9 kx (eval $ac_compile) 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }; then
9 kx # Now try to grab the symbols.
9 kx nlist=conftest.nm
9 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9 kx (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; } && test -s "$nlist"; then
9 kx # Try sorting and uniquifying the output.
9 kx if sort "$nlist" | uniq > "$nlist"T; then
9 kx mv -f "$nlist"T "$nlist"
9 kx else
9 kx rm -f "$nlist"T
9 kx fi
9 kx
9 kx # Make sure that we snagged all the symbols we need.
9 kx if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9 kx if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9 kx cat <<_LT_EOF > conftest.$ac_ext
9 kx #ifdef __cplusplus
9 kx extern "C" {
9 kx #endif
9 kx
9 kx _LT_EOF
9 kx # Now generate the symbol file.
9 kx eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9 kx
9 kx cat <<_LT_EOF >> conftest.$ac_ext
9 kx
9 kx /* The mapping between symbol names and symbols. */
9 kx const struct {
9 kx const char *name;
9 kx void *address;
9 kx }
9 kx lt__PROGRAM__LTX_preloaded_symbols[] =
9 kx {
9 kx { "@PROGRAM@", (void *) 0 },
9 kx _LT_EOF
9 kx $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9 kx cat <<\_LT_EOF >> conftest.$ac_ext
9 kx {0, (void *) 0}
9 kx };
9 kx
9 kx /* This works around a problem in FreeBSD linker */
9 kx #ifdef FREEBSD_WORKAROUND
9 kx static const void *lt_preloaded_setup() {
9 kx return lt__PROGRAM__LTX_preloaded_symbols;
9 kx }
9 kx #endif
9 kx
9 kx #ifdef __cplusplus
9 kx }
9 kx #endif
9 kx _LT_EOF
9 kx # Now try linking the two files.
9 kx mv conftest.$ac_objext conftstm.$ac_objext
9 kx lt_save_LIBS="$LIBS"
9 kx lt_save_CFLAGS="$CFLAGS"
9 kx LIBS="conftstm.$ac_objext"
9 kx CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9 kx (eval $ac_link) 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9 kx pipe_works=yes
9 kx fi
9 kx LIBS="$lt_save_LIBS"
9 kx CFLAGS="$lt_save_CFLAGS"
9 kx else
9 kx echo "cannot find nm_test_func in $nlist" >&5
9 kx fi
9 kx else
9 kx echo "cannot find nm_test_var in $nlist" >&5
9 kx fi
9 kx else
9 kx echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9 kx fi
9 kx else
9 kx echo "$progname: failed program was:" >&5
9 kx cat conftest.$ac_ext >&5
9 kx fi
9 kx rm -rf conftest* conftst*
9 kx
9 kx # Do not use the global_symbol_pipe unless it works.
9 kx if test "$pipe_works" = yes; then
9 kx break
9 kx else
9 kx lt_cv_sys_global_symbol_pipe=
9 kx fi
9 kx done
9 kx
9 kx fi
9 kx
9 kx if test -z "$lt_cv_sys_global_symbol_pipe"; then
9 kx lt_cv_sys_global_symbol_to_cdecl=
9 kx fi
9 kx if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9 kx $as_echo "failed" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9 kx $as_echo "ok" >&6; }
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # Check whether --enable-libtool-lock was given.
9 kx if test "${enable_libtool_lock+set}" = set; then :
9 kx enableval=$enable_libtool_lock;
9 kx fi
9 kx
9 kx test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9 kx
9 kx # Some flags need to be propagated to the compiler or linker for good
9 kx # libtool support.
9 kx case $host in
9 kx ia64-*-hpux*)
9 kx # Find out which ABI we are using.
9 kx echo 'int i;' > conftest.$ac_ext
9 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9 kx (eval $ac_compile) 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }; then
9 kx case `/usr/bin/file conftest.$ac_objext` in
9 kx *ELF-32*)
9 kx HPUX_IA64_MODE="32"
9 kx ;;
9 kx *ELF-64*)
9 kx HPUX_IA64_MODE="64"
9 kx ;;
9 kx esac
9 kx fi
9 kx rm -rf conftest*
9 kx ;;
9 kx *-*-irix6*)
9 kx # Find out which ABI we are using.
9 kx echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9 kx (eval $ac_compile) 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }; then
9 kx if test "$lt_cv_prog_gnu_ld" = yes; then
9 kx case `/usr/bin/file conftest.$ac_objext` in
9 kx *32-bit*)
9 kx LD="${LD-ld} -melf32bsmip"
9 kx ;;
9 kx *N32*)
9 kx LD="${LD-ld} -melf32bmipn32"
9 kx ;;
9 kx *64-bit*)
9 kx LD="${LD-ld} -melf64bmip"
9 kx ;;
9 kx esac
9 kx else
9 kx case `/usr/bin/file conftest.$ac_objext` in
9 kx *32-bit*)
9 kx LD="${LD-ld} -32"
9 kx ;;
9 kx *N32*)
9 kx LD="${LD-ld} -n32"
9 kx ;;
9 kx *64-bit*)
9 kx LD="${LD-ld} -64"
9 kx ;;
9 kx esac
9 kx fi
9 kx fi
9 kx rm -rf conftest*
9 kx ;;
9 kx
9 kx x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9 kx s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9 kx # Find out which ABI we are using.
9 kx echo 'int i;' > conftest.$ac_ext
9 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9 kx (eval $ac_compile) 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }; then
9 kx case `/usr/bin/file conftest.o` in
9 kx *32-bit*)
9 kx case $host in
9 kx x86_64-*kfreebsd*-gnu)
9 kx LD="${LD-ld} -m elf_i386_fbsd"
9 kx ;;
9 kx x86_64-*linux*)
9 kx case `/usr/bin/file conftest.o` in
9 kx *x86-64*)
9 kx LD="${LD-ld} -m elf32_x86_64"
9 kx ;;
9 kx *)
9 kx LD="${LD-ld} -m elf_i386"
9 kx ;;
9 kx esac
9 kx ;;
9 kx powerpc64le-*linux*)
9 kx LD="${LD-ld} -m elf32lppclinux"
9 kx ;;
9 kx powerpc64-*linux*)
9 kx LD="${LD-ld} -m elf32ppclinux"
9 kx ;;
9 kx s390x-*linux*)
9 kx LD="${LD-ld} -m elf_s390"
9 kx ;;
9 kx sparc64-*linux*)
9 kx LD="${LD-ld} -m elf32_sparc"
9 kx ;;
9 kx esac
9 kx ;;
9 kx *64-bit*)
9 kx case $host in
9 kx x86_64-*kfreebsd*-gnu)
9 kx LD="${LD-ld} -m elf_x86_64_fbsd"
9 kx ;;
9 kx x86_64-*linux*)
9 kx LD="${LD-ld} -m elf_x86_64"
9 kx ;;
9 kx powerpcle-*linux*)
9 kx LD="${LD-ld} -m elf64lppc"
9 kx ;;
9 kx powerpc-*linux*)
9 kx LD="${LD-ld} -m elf64ppc"
9 kx ;;
9 kx s390*-*linux*|s390*-*tpf*)
9 kx LD="${LD-ld} -m elf64_s390"
9 kx ;;
9 kx sparc*-*linux*)
9 kx LD="${LD-ld} -m elf64_sparc"
9 kx ;;
9 kx esac
9 kx ;;
9 kx esac
9 kx fi
9 kx rm -rf conftest*
9 kx ;;
9 kx
9 kx *-*-sco3.2v5*)
9 kx # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9 kx SAVE_CFLAGS="$CFLAGS"
9 kx CFLAGS="$CFLAGS -belf"
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9 kx $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9 kx if ${lt_cv_cc_needs_belf+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_ext=c
9 kx ac_cpp='$CPP $CPPFLAGS'
9 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
9 kx
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx lt_cv_cc_needs_belf=yes
9 kx else
9 kx lt_cv_cc_needs_belf=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx ac_ext=c
9 kx ac_cpp='$CPP $CPPFLAGS'
9 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9 kx $as_echo "$lt_cv_cc_needs_belf" >&6; }
9 kx if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9 kx # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9 kx CFLAGS="$SAVE_CFLAGS"
9 kx fi
9 kx ;;
9 kx sparc*-*solaris*)
9 kx # Find out which ABI we are using.
9 kx echo 'int i;' > conftest.$ac_ext
9 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9 kx (eval $ac_compile) 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }; then
9 kx case `/usr/bin/file conftest.o` in
9 kx *64-bit*)
9 kx case $lt_cv_prog_gnu_ld in
9 kx yes*) LD="${LD-ld} -m elf64_sparc" ;;
9 kx *)
9 kx if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9 kx LD="${LD-ld} -64"
9 kx fi
9 kx ;;
9 kx esac
9 kx ;;
9 kx esac
9 kx fi
9 kx rm -rf conftest*
9 kx ;;
9 kx esac
9 kx
9 kx need_locks="$enable_libtool_lock"
9 kx
9 kx
9 kx case $host_os in
9 kx rhapsody* | darwin*)
9 kx if test -n "$ac_tool_prefix"; then
9 kx # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9 kx set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_DSYMUTIL+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$DSYMUTIL"; then
9 kx ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx DSYMUTIL=$ac_cv_prog_DSYMUTIL
9 kx if test -n "$DSYMUTIL"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9 kx $as_echo "$DSYMUTIL" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx if test -z "$ac_cv_prog_DSYMUTIL"; then
9 kx ac_ct_DSYMUTIL=$DSYMUTIL
9 kx # Extract the first word of "dsymutil", so it can be a program name with args.
9 kx set dummy dsymutil; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$ac_ct_DSYMUTIL"; then
9 kx ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9 kx if test -n "$ac_ct_DSYMUTIL"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9 kx $as_echo "$ac_ct_DSYMUTIL" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx if test "x$ac_ct_DSYMUTIL" = x; then
9 kx DSYMUTIL=":"
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx DSYMUTIL=$ac_ct_DSYMUTIL
9 kx fi
9 kx else
9 kx DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9 kx fi
9 kx
9 kx if test -n "$ac_tool_prefix"; then
9 kx # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9 kx set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_NMEDIT+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$NMEDIT"; then
9 kx ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx NMEDIT=$ac_cv_prog_NMEDIT
9 kx if test -n "$NMEDIT"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9 kx $as_echo "$NMEDIT" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx if test -z "$ac_cv_prog_NMEDIT"; then
9 kx ac_ct_NMEDIT=$NMEDIT
9 kx # Extract the first word of "nmedit", so it can be a program name with args.
9 kx set dummy nmedit; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$ac_ct_NMEDIT"; then
9 kx ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_ac_ct_NMEDIT="nmedit"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9 kx if test -n "$ac_ct_NMEDIT"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9 kx $as_echo "$ac_ct_NMEDIT" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx if test "x$ac_ct_NMEDIT" = x; then
9 kx NMEDIT=":"
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx NMEDIT=$ac_ct_NMEDIT
9 kx fi
9 kx else
9 kx NMEDIT="$ac_cv_prog_NMEDIT"
9 kx fi
9 kx
9 kx if test -n "$ac_tool_prefix"; then
9 kx # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9 kx set dummy ${ac_tool_prefix}lipo; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_LIPO+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$LIPO"; then
9 kx ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx LIPO=$ac_cv_prog_LIPO
9 kx if test -n "$LIPO"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9 kx $as_echo "$LIPO" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx if test -z "$ac_cv_prog_LIPO"; then
9 kx ac_ct_LIPO=$LIPO
9 kx # Extract the first word of "lipo", so it can be a program name with args.
9 kx set dummy lipo; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$ac_ct_LIPO"; then
9 kx ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_ac_ct_LIPO="lipo"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9 kx if test -n "$ac_ct_LIPO"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9 kx $as_echo "$ac_ct_LIPO" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx if test "x$ac_ct_LIPO" = x; then
9 kx LIPO=":"
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx LIPO=$ac_ct_LIPO
9 kx fi
9 kx else
9 kx LIPO="$ac_cv_prog_LIPO"
9 kx fi
9 kx
9 kx if test -n "$ac_tool_prefix"; then
9 kx # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9 kx set dummy ${ac_tool_prefix}otool; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_OTOOL+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$OTOOL"; then
9 kx ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx OTOOL=$ac_cv_prog_OTOOL
9 kx if test -n "$OTOOL"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9 kx $as_echo "$OTOOL" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx if test -z "$ac_cv_prog_OTOOL"; then
9 kx ac_ct_OTOOL=$OTOOL
9 kx # Extract the first word of "otool", so it can be a program name with args.
9 kx set dummy otool; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$ac_ct_OTOOL"; then
9 kx ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_ac_ct_OTOOL="otool"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9 kx if test -n "$ac_ct_OTOOL"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9 kx $as_echo "$ac_ct_OTOOL" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx if test "x$ac_ct_OTOOL" = x; then
9 kx OTOOL=":"
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx OTOOL=$ac_ct_OTOOL
9 kx fi
9 kx else
9 kx OTOOL="$ac_cv_prog_OTOOL"
9 kx fi
9 kx
9 kx if test -n "$ac_tool_prefix"; then
9 kx # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9 kx set dummy ${ac_tool_prefix}otool64; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_OTOOL64+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$OTOOL64"; then
9 kx ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx OTOOL64=$ac_cv_prog_OTOOL64
9 kx if test -n "$OTOOL64"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9 kx $as_echo "$OTOOL64" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx if test -z "$ac_cv_prog_OTOOL64"; then
9 kx ac_ct_OTOOL64=$OTOOL64
9 kx # Extract the first word of "otool64", so it can be a program name with args.
9 kx set dummy otool64; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$ac_ct_OTOOL64"; then
9 kx ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_ac_ct_OTOOL64="otool64"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9 kx if test -n "$ac_ct_OTOOL64"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9 kx $as_echo "$ac_ct_OTOOL64" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx if test "x$ac_ct_OTOOL64" = x; then
9 kx OTOOL64=":"
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx OTOOL64=$ac_ct_OTOOL64
9 kx fi
9 kx else
9 kx OTOOL64="$ac_cv_prog_OTOOL64"
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9 kx $as_echo_n "checking for -single_module linker flag... " >&6; }
9 kx if ${lt_cv_apple_cc_single_mod+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx lt_cv_apple_cc_single_mod=no
9 kx if test -z "${LT_MULTI_MODULE}"; then
9 kx # By default we will add the -single_module flag. You can override
9 kx # by either setting the environment variable LT_MULTI_MODULE
9 kx # non-empty at configure time, or by adding -multi_module to the
9 kx # link flags.
9 kx rm -rf libconftest.dylib*
9 kx echo "int foo(void){return 1;}" > conftest.c
9 kx echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9 kx -dynamiclib -Wl,-single_module conftest.c" >&5
9 kx $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9 kx -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9 kx _lt_result=$?
9 kx if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9 kx lt_cv_apple_cc_single_mod=yes
9 kx else
9 kx cat conftest.err >&5
9 kx fi
9 kx rm -rf libconftest.dylib*
9 kx rm -f conftest.*
9 kx fi
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9 kx $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9 kx $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9 kx if ${lt_cv_ld_exported_symbols_list+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx lt_cv_ld_exported_symbols_list=no
9 kx save_LDFLAGS=$LDFLAGS
9 kx echo "_main" > conftest.sym
9 kx LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx lt_cv_ld_exported_symbols_list=yes
9 kx else
9 kx lt_cv_ld_exported_symbols_list=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx LDFLAGS="$save_LDFLAGS"
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9 kx $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9 kx $as_echo_n "checking for -force_load linker flag... " >&6; }
9 kx if ${lt_cv_ld_force_load+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx lt_cv_ld_force_load=no
9 kx cat > conftest.c << _LT_EOF
9 kx int forced_loaded() { return 2;}
9 kx _LT_EOF
9 kx echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9 kx $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9 kx echo "$AR cru libconftest.a conftest.o" >&5
9 kx $AR cru libconftest.a conftest.o 2>&5
9 kx cat > conftest.c << _LT_EOF
9 kx int main() { return 0;}
9 kx _LT_EOF
9 kx echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9 kx $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9 kx _lt_result=$?
9 kx if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9 kx lt_cv_ld_force_load=yes
9 kx else
9 kx cat conftest.err >&5
9 kx fi
9 kx rm -f conftest.err libconftest.a conftest conftest.c
9 kx rm -rf conftest.dSYM
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9 kx $as_echo "$lt_cv_ld_force_load" >&6; }
9 kx case $host_os in
9 kx rhapsody* | darwin1.[012])
9 kx _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9 kx darwin1.*)
9 kx _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9 kx darwin*) # darwin 5.x on
9 kx # if running on 10.5 or later, the deployment target defaults
9 kx # to the OS version, if on x86, and 10.4, the deployment
9 kx # target defaults to 10.4. Don't you love it?
9 kx case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9 kx 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9 kx _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9 kx 10.[012][,.]*)
9 kx _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9 kx 10.*)
9 kx _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9 kx esac
9 kx ;;
9 kx esac
9 kx if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9 kx _lt_dar_single_mod='$single_module'
9 kx fi
9 kx if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9 kx _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9 kx else
9 kx _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9 kx fi
9 kx if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9 kx _lt_dsymutil='~$DSYMUTIL $lib || :'
9 kx else
9 kx _lt_dsymutil=
9 kx fi
9 kx ;;
9 kx esac
9 kx
9 kx for ac_header in dlfcn.h
9 kx do :
9 kx ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9 kx "
9 kx if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define HAVE_DLFCN_H 1
9 kx _ACEOF
9 kx
9 kx fi
9 kx
9 kx done
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # Set options
9 kx
9 kx
9 kx
9 kx enable_dlopen=no
9 kx
9 kx
9 kx enable_win32_dll=no
9 kx
9 kx
9 kx # Check whether --enable-shared was given.
9 kx if test "${enable_shared+set}" = set; then :
9 kx enableval=$enable_shared; p=${PACKAGE-default}
9 kx case $enableval in
9 kx yes) enable_shared=yes ;;
9 kx no) enable_shared=no ;;
9 kx *)
9 kx enable_shared=no
9 kx # Look at the argument we got. We use all the common list separators.
9 kx lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9 kx for pkg in $enableval; do
9 kx IFS="$lt_save_ifs"
9 kx if test "X$pkg" = "X$p"; then
9 kx enable_shared=yes
9 kx fi
9 kx done
9 kx IFS="$lt_save_ifs"
9 kx ;;
9 kx esac
9 kx else
9 kx enable_shared=yes
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # Check whether --enable-static was given.
9 kx if test "${enable_static+set}" = set; then :
9 kx enableval=$enable_static; p=${PACKAGE-default}
9 kx case $enableval in
9 kx yes) enable_static=yes ;;
9 kx no) enable_static=no ;;
9 kx *)
9 kx enable_static=no
9 kx # Look at the argument we got. We use all the common list separators.
9 kx lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9 kx for pkg in $enableval; do
9 kx IFS="$lt_save_ifs"
9 kx if test "X$pkg" = "X$p"; then
9 kx enable_static=yes
9 kx fi
9 kx done
9 kx IFS="$lt_save_ifs"
9 kx ;;
9 kx esac
9 kx else
9 kx enable_static=yes
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # Check whether --with-pic was given.
9 kx if test "${with_pic+set}" = set; then :
9 kx withval=$with_pic; pic_mode="$withval"
9 kx else
9 kx pic_mode=default
9 kx fi
9 kx
9 kx
9 kx test -z "$pic_mode" && pic_mode=default
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # Check whether --enable-fast-install was given.
9 kx if test "${enable_fast_install+set}" = set; then :
9 kx enableval=$enable_fast_install; p=${PACKAGE-default}
9 kx case $enableval in
9 kx yes) enable_fast_install=yes ;;
9 kx no) enable_fast_install=no ;;
9 kx *)
9 kx enable_fast_install=no
9 kx # Look at the argument we got. We use all the common list separators.
9 kx lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9 kx for pkg in $enableval; do
9 kx IFS="$lt_save_ifs"
9 kx if test "X$pkg" = "X$p"; then
9 kx enable_fast_install=yes
9 kx fi
9 kx done
9 kx IFS="$lt_save_ifs"
9 kx ;;
9 kx esac
9 kx else
9 kx enable_fast_install=yes
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # This can be used to rebuild libtool when needed
9 kx LIBTOOL_DEPS="$ltmain"
9 kx
9 kx # Always use our own libtool.
9 kx LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx test -z "$LN_S" && LN_S="ln -s"
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx if test -n "${ZSH_VERSION+set}" ; then
9 kx setopt NO_GLOB_SUBST
9 kx fi
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9 kx $as_echo_n "checking for objdir... " >&6; }
9 kx if ${lt_cv_objdir+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx rm -f .libs 2>/dev/null
9 kx mkdir .libs 2>/dev/null
9 kx if test -d .libs; then
9 kx lt_cv_objdir=.libs
9 kx else
9 kx # MS-DOS does not allow filenames that begin with a dot.
9 kx lt_cv_objdir=_libs
9 kx fi
9 kx rmdir .libs 2>/dev/null
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9 kx $as_echo "$lt_cv_objdir" >&6; }
9 kx objdir=$lt_cv_objdir
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define LT_OBJDIR "$lt_cv_objdir/"
9 kx _ACEOF
9 kx
9 kx
9 kx
9 kx
9 kx case $host_os in
9 kx aix3*)
9 kx # AIX sometimes has problems with the GCC collect2 program. For some
9 kx # reason, if we set the COLLECT_NAMES environment variable, the problems
9 kx # vanish in a puff of smoke.
9 kx if test "X${COLLECT_NAMES+set}" != Xset; then
9 kx COLLECT_NAMES=
9 kx export COLLECT_NAMES
9 kx fi
9 kx ;;
9 kx esac
9 kx
9 kx # Global variables:
9 kx ofile=libtool
9 kx can_build_shared=yes
9 kx
9 kx # All known linkers require a `.a' archive for static linking (except MSVC,
9 kx # which needs '.lib').
9 kx libext=a
9 kx
9 kx with_gnu_ld="$lt_cv_prog_gnu_ld"
9 kx
9 kx old_CC="$CC"
9 kx old_CFLAGS="$CFLAGS"
9 kx
9 kx # Set sane defaults for various variables
9 kx test -z "$CC" && CC=cc
9 kx test -z "$LTCC" && LTCC=$CC
9 kx test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9 kx test -z "$LD" && LD=ld
9 kx test -z "$ac_objext" && ac_objext=o
9 kx
9 kx for cc_temp in $compiler""; do
9 kx case $cc_temp in
9 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9 kx \-*) ;;
9 kx *) break;;
9 kx esac
9 kx done
9 kx cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9 kx
9 kx
9 kx # Only perform the check for file, if the check method requires it
9 kx test -z "$MAGIC_CMD" && MAGIC_CMD=file
9 kx case $deplibs_check_method in
9 kx file_magic*)
9 kx if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9 kx $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9 kx if ${lt_cv_path_MAGIC_CMD+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx case $MAGIC_CMD in
9 kx [\\/*] | ?:[\\/]*)
9 kx lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9 kx ;;
9 kx *)
9 kx lt_save_MAGIC_CMD="$MAGIC_CMD"
9 kx lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9 kx ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9 kx for ac_dir in $ac_dummy; do
9 kx IFS="$lt_save_ifs"
9 kx test -z "$ac_dir" && ac_dir=.
9 kx if test -f $ac_dir/${ac_tool_prefix}file; then
9 kx lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9 kx if test -n "$file_magic_test_file"; then
9 kx case $deplibs_check_method in
9 kx "file_magic "*)
9 kx file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9 kx MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9 kx if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9 kx $EGREP "$file_magic_regex" > /dev/null; then
9 kx :
9 kx else
9 kx cat <<_LT_EOF 1>&2
9 kx
9 kx *** Warning: the command libtool uses to detect shared libraries,
9 kx *** $file_magic_cmd, produces output that libtool cannot recognize.
9 kx *** The result is that libtool may fail to recognize shared libraries
9 kx *** as such. This will affect the creation of libtool libraries that
9 kx *** depend on shared libraries, but programs linked with such libtool
9 kx *** libraries will work regardless of this problem. Nevertheless, you
9 kx *** may want to report the problem to your system manager and/or to
9 kx *** bug-libtool@gnu.org
9 kx
9 kx _LT_EOF
9 kx fi ;;
9 kx esac
9 kx fi
9 kx break
9 kx fi
9 kx done
9 kx IFS="$lt_save_ifs"
9 kx MAGIC_CMD="$lt_save_MAGIC_CMD"
9 kx ;;
9 kx esac
9 kx fi
9 kx
9 kx MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9 kx if test -n "$MAGIC_CMD"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9 kx $as_echo "$MAGIC_CMD" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx if test -z "$lt_cv_path_MAGIC_CMD"; then
9 kx if test -n "$ac_tool_prefix"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9 kx $as_echo_n "checking for file... " >&6; }
9 kx if ${lt_cv_path_MAGIC_CMD+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx case $MAGIC_CMD in
9 kx [\\/*] | ?:[\\/]*)
9 kx lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9 kx ;;
9 kx *)
9 kx lt_save_MAGIC_CMD="$MAGIC_CMD"
9 kx lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9 kx ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9 kx for ac_dir in $ac_dummy; do
9 kx IFS="$lt_save_ifs"
9 kx test -z "$ac_dir" && ac_dir=.
9 kx if test -f $ac_dir/file; then
9 kx lt_cv_path_MAGIC_CMD="$ac_dir/file"
9 kx if test -n "$file_magic_test_file"; then
9 kx case $deplibs_check_method in
9 kx "file_magic "*)
9 kx file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9 kx MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9 kx if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9 kx $EGREP "$file_magic_regex" > /dev/null; then
9 kx :
9 kx else
9 kx cat <<_LT_EOF 1>&2
9 kx
9 kx *** Warning: the command libtool uses to detect shared libraries,
9 kx *** $file_magic_cmd, produces output that libtool cannot recognize.
9 kx *** The result is that libtool may fail to recognize shared libraries
9 kx *** as such. This will affect the creation of libtool libraries that
9 kx *** depend on shared libraries, but programs linked with such libtool
9 kx *** libraries will work regardless of this problem. Nevertheless, you
9 kx *** may want to report the problem to your system manager and/or to
9 kx *** bug-libtool@gnu.org
9 kx
9 kx _LT_EOF
9 kx fi ;;
9 kx esac
9 kx fi
9 kx break
9 kx fi
9 kx done
9 kx IFS="$lt_save_ifs"
9 kx MAGIC_CMD="$lt_save_MAGIC_CMD"
9 kx ;;
9 kx esac
9 kx fi
9 kx
9 kx MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9 kx if test -n "$MAGIC_CMD"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9 kx $as_echo "$MAGIC_CMD" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx else
9 kx MAGIC_CMD=:
9 kx fi
9 kx fi
9 kx
9 kx fi
9 kx ;;
9 kx esac
9 kx
9 kx # Use C for the default configuration in the libtool script
9 kx
9 kx lt_save_CC="$CC"
9 kx ac_ext=c
9 kx ac_cpp='$CPP $CPPFLAGS'
9 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
9 kx
9 kx
9 kx # Source file extension for C test sources.
9 kx ac_ext=c
9 kx
9 kx # Object file extension for compiled C test sources.
9 kx objext=o
9 kx objext=$objext
9 kx
9 kx # Code to be used in simple compile tests
9 kx lt_simple_compile_test_code="int some_variable = 0;"
9 kx
9 kx # Code to be used in simple link tests
9 kx lt_simple_link_test_code='int main(){return(0);}'
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # If no C compiler was specified, use CC.
9 kx LTCC=${LTCC-"$CC"}
9 kx
9 kx # If no C compiler flags were specified, use CFLAGS.
9 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9 kx
9 kx # Allow CC to be a program name with arguments.
9 kx compiler=$CC
9 kx
9 kx # Save the default compiler, since it gets overwritten when the other
9 kx # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9 kx compiler_DEFAULT=$CC
9 kx
9 kx # save warnings/boilerplate of simple test code
9 kx ac_outfile=conftest.$ac_objext
9 kx echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9 kx eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9 kx _lt_compiler_boilerplate=`cat conftest.err`
9 kx $RM conftest*
9 kx
9 kx ac_outfile=conftest.$ac_objext
9 kx echo "$lt_simple_link_test_code" >conftest.$ac_ext
9 kx eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9 kx _lt_linker_boilerplate=`cat conftest.err`
9 kx $RM -r conftest*
9 kx
9 kx
9 kx ## CAVEAT EMPTOR:
9 kx ## There is no encapsulation within the following macros, do not change
9 kx ## the running order or otherwise move them around unless you know exactly
9 kx ## what you are doing...
9 kx if test -n "$compiler"; then
9 kx
9 kx lt_prog_compiler_no_builtin_flag=
9 kx
9 kx if test "$GCC" = yes; then
9 kx case $cc_basename in
9 kx nvcc*)
9 kx lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9 kx *)
9 kx lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9 kx esac
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9 kx $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9 kx if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx lt_cv_prog_compiler_rtti_exceptions=no
9 kx ac_outfile=conftest.$ac_objext
9 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9 kx lt_compiler_flag="-fno-rtti -fno-exceptions"
9 kx # Insert the option either (1) after the last *FLAGS variable, or
9 kx # (2) before a word containing "conftest.", or (3) at the end.
9 kx # Note that $ac_compile itself does not contain backslashes and begins
9 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
9 kx # The option is referenced via a variable to avoid confusing sed.
9 kx lt_compile=`echo "$ac_compile" | $SED \
9 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9 kx -e 's:$: $lt_compiler_flag:'`
9 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9 kx (eval "$lt_compile" 2>conftest.err)
9 kx ac_status=$?
9 kx cat conftest.err >&5
9 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
9 kx if (exit $ac_status) && test -s "$ac_outfile"; then
9 kx # The compiler can only warn and ignore the option if not recognized
9 kx # So say no if there are warnings other than the usual output.
9 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9 kx lt_cv_prog_compiler_rtti_exceptions=yes
9 kx fi
9 kx fi
9 kx $RM conftest*
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9 kx $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9 kx
9 kx if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9 kx lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9 kx else
9 kx :
9 kx fi
9 kx
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx lt_prog_compiler_wl=
9 kx lt_prog_compiler_pic=
9 kx lt_prog_compiler_static=
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9 kx $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9 kx
9 kx if test "$GCC" = yes; then
9 kx lt_prog_compiler_wl='-Wl,'
9 kx lt_prog_compiler_static='-static'
9 kx
9 kx case $host_os in
9 kx aix*)
9 kx # All AIX code is PIC.
9 kx if test "$host_cpu" = ia64; then
9 kx # AIX 5 now supports IA64 processor
9 kx lt_prog_compiler_static='-Bstatic'
9 kx fi
9 kx lt_prog_compiler_pic='-fPIC'
9 kx ;;
9 kx
9 kx amigaos*)
9 kx case $host_cpu in
9 kx powerpc)
9 kx # see comment about AmigaOS4 .so support
9 kx lt_prog_compiler_pic='-fPIC'
9 kx ;;
9 kx m68k)
9 kx # FIXME: we need at least 68020 code to build shared libraries, but
9 kx # adding the `-m68020' flag to GCC prevents building anything better,
9 kx # like `-m68040'.
9 kx lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9 kx ;;
9 kx esac
9 kx ;;
9 kx
9 kx beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9 kx # PIC is the default for these OSes.
9 kx ;;
9 kx
9 kx mingw* | cygwin* | pw32* | os2* | cegcc*)
9 kx # This hack is so that the source file can tell whether it is being
9 kx # built for inclusion in a dll (and should export symbols for example).
9 kx # Although the cygwin gcc ignores -fPIC, still need this for old-style
9 kx # (--disable-auto-import) libraries
9 kx lt_prog_compiler_pic='-DDLL_EXPORT'
9 kx ;;
9 kx
9 kx darwin* | rhapsody*)
9 kx # PIC is the default on this platform
9 kx # Common symbols not allowed in MH_DYLIB files
9 kx lt_prog_compiler_pic='-fno-common'
9 kx ;;
9 kx
9 kx haiku*)
9 kx # PIC is the default for Haiku.
9 kx # The "-static" flag exists, but is broken.
9 kx lt_prog_compiler_static=
9 kx ;;
9 kx
9 kx hpux*)
9 kx # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9 kx # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9 kx # sets the default TLS model and affects inlining.
9 kx case $host_cpu in
9 kx hppa*64*)
9 kx # +Z the default
9 kx ;;
9 kx *)
9 kx lt_prog_compiler_pic='-fPIC'
9 kx ;;
9 kx esac
9 kx ;;
9 kx
9 kx interix[3-9]*)
9 kx # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9 kx # Instead, we relocate shared libraries at runtime.
9 kx ;;
9 kx
9 kx msdosdjgpp*)
9 kx # Just because we use GCC doesn't mean we suddenly get shared libraries
9 kx # on systems that don't support them.
9 kx lt_prog_compiler_can_build_shared=no
9 kx enable_shared=no
9 kx ;;
9 kx
9 kx *nto* | *qnx*)
9 kx # QNX uses GNU C++, but need to define -shared option too, otherwise
9 kx # it will coredump.
9 kx lt_prog_compiler_pic='-fPIC -shared'
9 kx ;;
9 kx
9 kx sysv4*MP*)
9 kx if test -d /usr/nec; then
9 kx lt_prog_compiler_pic=-Kconform_pic
9 kx fi
9 kx ;;
9 kx
9 kx *)
9 kx lt_prog_compiler_pic='-fPIC'
9 kx ;;
9 kx esac
9 kx
9 kx case $cc_basename in
9 kx nvcc*) # Cuda Compiler Driver 2.2
9 kx lt_prog_compiler_wl='-Xlinker '
9 kx lt_prog_compiler_pic='-Xcompiler -fPIC'
9 kx ;;
9 kx esac
9 kx else
9 kx # PORTME Check for flag to pass linker flags through the system compiler.
9 kx case $host_os in
9 kx aix*)
9 kx lt_prog_compiler_wl='-Wl,'
9 kx if test "$host_cpu" = ia64; then
9 kx # AIX 5 now supports IA64 processor
9 kx lt_prog_compiler_static='-Bstatic'
9 kx else
9 kx lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9 kx fi
9 kx ;;
9 kx
9 kx mingw* | cygwin* | pw32* | os2* | cegcc*)
9 kx # This hack is so that the source file can tell whether it is being
9 kx # built for inclusion in a dll (and should export symbols for example).
9 kx lt_prog_compiler_pic='-DDLL_EXPORT'
9 kx ;;
9 kx
9 kx hpux9* | hpux10* | hpux11*)
9 kx lt_prog_compiler_wl='-Wl,'
9 kx # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9 kx # not for PA HP-UX.
9 kx case $host_cpu in
9 kx hppa*64*|ia64*)
9 kx # +Z the default
9 kx ;;
9 kx *)
9 kx lt_prog_compiler_pic='+Z'
9 kx ;;
9 kx esac
9 kx # Is there a better lt_prog_compiler_static that works with the bundled CC?
9 kx lt_prog_compiler_static='${wl}-a ${wl}archive'
9 kx ;;
9 kx
9 kx irix5* | irix6* | nonstopux*)
9 kx lt_prog_compiler_wl='-Wl,'
9 kx # PIC (with -KPIC) is the default.
9 kx lt_prog_compiler_static='-non_shared'
9 kx ;;
9 kx
9 kx linux* | k*bsd*-gnu | kopensolaris*-gnu)
9 kx case $cc_basename in
9 kx # old Intel for x86_64 which still supported -KPIC.
9 kx ecc*)
9 kx lt_prog_compiler_wl='-Wl,'
9 kx lt_prog_compiler_pic='-KPIC'
9 kx lt_prog_compiler_static='-static'
9 kx ;;
9 kx # icc used to be incompatible with GCC.
9 kx # ICC 10 doesn't accept -KPIC any more.
9 kx icc* | ifort*)
9 kx lt_prog_compiler_wl='-Wl,'
9 kx lt_prog_compiler_pic='-fPIC'
9 kx lt_prog_compiler_static='-static'
9 kx ;;
9 kx # Lahey Fortran 8.1.
9 kx lf95*)
9 kx lt_prog_compiler_wl='-Wl,'
9 kx lt_prog_compiler_pic='--shared'
9 kx lt_prog_compiler_static='--static'
9 kx ;;
9 kx pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9 kx # Portland Group compilers (*not* the Pentium gcc compiler,
9 kx # which looks to be a dead project)
9 kx lt_prog_compiler_wl='-Wl,'
9 kx lt_prog_compiler_pic='-fpic'
9 kx lt_prog_compiler_static='-Bstatic'
9 kx ;;
9 kx ccc*)
9 kx lt_prog_compiler_wl='-Wl,'
9 kx # All Alpha code is PIC.
9 kx lt_prog_compiler_static='-non_shared'
9 kx ;;
9 kx xl* | bgxl* | bgf* | mpixl*)
9 kx # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9 kx lt_prog_compiler_wl='-Wl,'
9 kx lt_prog_compiler_pic='-qpic'
9 kx lt_prog_compiler_static='-qstaticlink'
9 kx ;;
9 kx *)
9 kx case `$CC -V 2>&1 | sed 5q` in
9 kx *Sun\ F* | *Sun*Fortran*)
9 kx # Sun Fortran 8.3 passes all unrecognized flags to the linker
9 kx lt_prog_compiler_pic='-KPIC'
9 kx lt_prog_compiler_static='-Bstatic'
9 kx lt_prog_compiler_wl=''
9 kx ;;
9 kx *Sun\ C*)
9 kx # Sun C 5.9
9 kx lt_prog_compiler_pic='-KPIC'
9 kx lt_prog_compiler_static='-Bstatic'
9 kx lt_prog_compiler_wl='-Wl,'
9 kx ;;
9 kx esac
9 kx ;;
9 kx esac
9 kx ;;
9 kx
9 kx newsos6)
9 kx lt_prog_compiler_pic='-KPIC'
9 kx lt_prog_compiler_static='-Bstatic'
9 kx ;;
9 kx
9 kx *nto* | *qnx*)
9 kx # QNX uses GNU C++, but need to define -shared option too, otherwise
9 kx # it will coredump.
9 kx lt_prog_compiler_pic='-fPIC -shared'
9 kx ;;
9 kx
9 kx osf3* | osf4* | osf5*)
9 kx lt_prog_compiler_wl='-Wl,'
9 kx # All OSF/1 code is PIC.
9 kx lt_prog_compiler_static='-non_shared'
9 kx ;;
9 kx
9 kx rdos*)
9 kx lt_prog_compiler_static='-non_shared'
9 kx ;;
9 kx
9 kx solaris*)
9 kx lt_prog_compiler_pic='-KPIC'
9 kx lt_prog_compiler_static='-Bstatic'
9 kx case $cc_basename in
9 kx f77* | f90* | f95*)
9 kx lt_prog_compiler_wl='-Qoption ld ';;
9 kx *)
9 kx lt_prog_compiler_wl='-Wl,';;
9 kx esac
9 kx ;;
9 kx
9 kx sunos4*)
9 kx lt_prog_compiler_wl='-Qoption ld '
9 kx lt_prog_compiler_pic='-PIC'
9 kx lt_prog_compiler_static='-Bstatic'
9 kx ;;
9 kx
9 kx sysv4 | sysv4.2uw2* | sysv4.3*)
9 kx lt_prog_compiler_wl='-Wl,'
9 kx lt_prog_compiler_pic='-KPIC'
9 kx lt_prog_compiler_static='-Bstatic'
9 kx ;;
9 kx
9 kx sysv4*MP*)
9 kx if test -d /usr/nec ;then
9 kx lt_prog_compiler_pic='-Kconform_pic'
9 kx lt_prog_compiler_static='-Bstatic'
9 kx fi
9 kx ;;
9 kx
9 kx sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9 kx lt_prog_compiler_wl='-Wl,'
9 kx lt_prog_compiler_pic='-KPIC'
9 kx lt_prog_compiler_static='-Bstatic'
9 kx ;;
9 kx
9 kx unicos*)
9 kx lt_prog_compiler_wl='-Wl,'
9 kx lt_prog_compiler_can_build_shared=no
9 kx ;;
9 kx
9 kx uts4*)
9 kx lt_prog_compiler_pic='-pic'
9 kx lt_prog_compiler_static='-Bstatic'
9 kx ;;
9 kx
9 kx *)
9 kx lt_prog_compiler_can_build_shared=no
9 kx ;;
9 kx esac
9 kx fi
9 kx
9 kx case $host_os in
9 kx # For platforms which do not support PIC, -DPIC is meaningless:
9 kx *djgpp*)
9 kx lt_prog_compiler_pic=
9 kx ;;
9 kx *)
9 kx lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9 kx ;;
9 kx esac
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9 kx $as_echo "$lt_prog_compiler_pic" >&6; }
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx #
9 kx # Check to make sure the PIC flag actually works.
9 kx #
9 kx if test -n "$lt_prog_compiler_pic"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9 kx $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9 kx if ${lt_cv_prog_compiler_pic_works+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx lt_cv_prog_compiler_pic_works=no
9 kx ac_outfile=conftest.$ac_objext
9 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9 kx lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9 kx # Insert the option either (1) after the last *FLAGS variable, or
9 kx # (2) before a word containing "conftest.", or (3) at the end.
9 kx # Note that $ac_compile itself does not contain backslashes and begins
9 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
9 kx # The option is referenced via a variable to avoid confusing sed.
9 kx lt_compile=`echo "$ac_compile" | $SED \
9 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9 kx -e 's:$: $lt_compiler_flag:'`
9 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9 kx (eval "$lt_compile" 2>conftest.err)
9 kx ac_status=$?
9 kx cat conftest.err >&5
9 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
9 kx if (exit $ac_status) && test -s "$ac_outfile"; then
9 kx # The compiler can only warn and ignore the option if not recognized
9 kx # So say no if there are warnings other than the usual output.
9 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9 kx lt_cv_prog_compiler_pic_works=yes
9 kx fi
9 kx fi
9 kx $RM conftest*
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9 kx $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9 kx
9 kx if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9 kx case $lt_prog_compiler_pic in
9 kx "" | " "*) ;;
9 kx *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9 kx esac
9 kx else
9 kx lt_prog_compiler_pic=
9 kx lt_prog_compiler_can_build_shared=no
9 kx fi
9 kx
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx #
9 kx # Check to make sure the static flag actually works.
9 kx #
9 kx wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9 kx $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9 kx if ${lt_cv_prog_compiler_static_works+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx lt_cv_prog_compiler_static_works=no
9 kx save_LDFLAGS="$LDFLAGS"
9 kx LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9 kx echo "$lt_simple_link_test_code" > conftest.$ac_ext
9 kx if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9 kx # The linker can only warn and ignore the option if not recognized
9 kx # So say no if there are warnings
9 kx if test -s conftest.err; then
9 kx # Append any errors to the config.log.
9 kx cat conftest.err 1>&5
9 kx $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9 kx if diff conftest.exp conftest.er2 >/dev/null; then
9 kx lt_cv_prog_compiler_static_works=yes
9 kx fi
9 kx else
9 kx lt_cv_prog_compiler_static_works=yes
9 kx fi
9 kx fi
9 kx $RM -r conftest*
9 kx LDFLAGS="$save_LDFLAGS"
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9 kx $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9 kx
9 kx if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9 kx :
9 kx else
9 kx lt_prog_compiler_static=
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9 kx $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9 kx if ${lt_cv_prog_compiler_c_o+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx lt_cv_prog_compiler_c_o=no
9 kx $RM -r conftest 2>/dev/null
9 kx mkdir conftest
9 kx cd conftest
9 kx mkdir out
9 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9 kx
9 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
9 kx # Insert the option either (1) after the last *FLAGS variable, or
9 kx # (2) before a word containing "conftest.", or (3) at the end.
9 kx # Note that $ac_compile itself does not contain backslashes and begins
9 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
9 kx lt_compile=`echo "$ac_compile" | $SED \
9 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9 kx -e 's:$: $lt_compiler_flag:'`
9 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9 kx (eval "$lt_compile" 2>out/conftest.err)
9 kx ac_status=$?
9 kx cat out/conftest.err >&5
9 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
9 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
9 kx then
9 kx # The compiler can only warn and ignore the option if not recognized
9 kx # So say no if there are warnings
9 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9 kx lt_cv_prog_compiler_c_o=yes
9 kx fi
9 kx fi
9 kx chmod u+w . 2>&5
9 kx $RM conftest*
9 kx # SGI C++ compiler will create directory out/ii_files/ for
9 kx # template instantiation
9 kx test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9 kx $RM out/* && rmdir out
9 kx cd ..
9 kx $RM -r conftest
9 kx $RM conftest*
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9 kx $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9 kx $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9 kx if ${lt_cv_prog_compiler_c_o+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx lt_cv_prog_compiler_c_o=no
9 kx $RM -r conftest 2>/dev/null
9 kx mkdir conftest
9 kx cd conftest
9 kx mkdir out
9 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9 kx
9 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
9 kx # Insert the option either (1) after the last *FLAGS variable, or
9 kx # (2) before a word containing "conftest.", or (3) at the end.
9 kx # Note that $ac_compile itself does not contain backslashes and begins
9 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
9 kx lt_compile=`echo "$ac_compile" | $SED \
9 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9 kx -e 's:$: $lt_compiler_flag:'`
9 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9 kx (eval "$lt_compile" 2>out/conftest.err)
9 kx ac_status=$?
9 kx cat out/conftest.err >&5
9 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
9 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
9 kx then
9 kx # The compiler can only warn and ignore the option if not recognized
9 kx # So say no if there are warnings
9 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9 kx lt_cv_prog_compiler_c_o=yes
9 kx fi
9 kx fi
9 kx chmod u+w . 2>&5
9 kx $RM conftest*
9 kx # SGI C++ compiler will create directory out/ii_files/ for
9 kx # template instantiation
9 kx test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9 kx $RM out/* && rmdir out
9 kx cd ..
9 kx $RM -r conftest
9 kx $RM conftest*
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9 kx $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9 kx
9 kx
9 kx
9 kx
9 kx hard_links="nottested"
9 kx if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9 kx # do not overwrite the value of need_locks provided by the user
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9 kx $as_echo_n "checking if we can lock with hard links... " >&6; }
9 kx hard_links=yes
9 kx $RM conftest*
9 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
9 kx touch conftest.a
9 kx ln conftest.a conftest.b 2>&5 || hard_links=no
9 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9 kx $as_echo "$hard_links" >&6; }
9 kx if test "$hard_links" = no; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9 kx $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9 kx need_locks=warn
9 kx fi
9 kx else
9 kx need_locks=no
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9 kx $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9 kx
9 kx runpath_var=
9 kx allow_undefined_flag=
9 kx always_export_symbols=no
9 kx archive_cmds=
9 kx archive_expsym_cmds=
9 kx compiler_needs_object=no
9 kx enable_shared_with_static_runtimes=no
9 kx export_dynamic_flag_spec=
9 kx export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9 kx hardcode_automatic=no
9 kx hardcode_direct=no
9 kx hardcode_direct_absolute=no
9 kx hardcode_libdir_flag_spec=
9 kx hardcode_libdir_flag_spec_ld=
9 kx hardcode_libdir_separator=
9 kx hardcode_minus_L=no
9 kx hardcode_shlibpath_var=unsupported
9 kx inherit_rpath=no
9 kx link_all_deplibs=unknown
9 kx module_cmds=
9 kx module_expsym_cmds=
9 kx old_archive_from_new_cmds=
9 kx old_archive_from_expsyms_cmds=
9 kx thread_safe_flag_spec=
9 kx whole_archive_flag_spec=
9 kx # include_expsyms should be a list of space-separated symbols to be *always*
9 kx # included in the symbol list
9 kx include_expsyms=
9 kx # exclude_expsyms can be an extended regexp of symbols to exclude
9 kx # it will be wrapped by ` (' and `)$', so one must not match beginning or
9 kx # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9 kx # as well as any symbol that contains `d'.
9 kx exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9 kx # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9 kx # platforms (ab)use it in PIC code, but their linkers get confused if
9 kx # the symbol is explicitly referenced. Since portable code cannot
9 kx # rely on this symbol name, it's probably fine to never include it in
9 kx # preloaded symbol tables.
9 kx # Exclude shared library initialization/finalization symbols.
9 kx extract_expsyms_cmds=
9 kx
9 kx case $host_os in
9 kx cygwin* | mingw* | pw32* | cegcc*)
9 kx # FIXME: the MSVC++ port hasn't been tested in a loooong time
9 kx # When not using gcc, we currently assume that we are using
9 kx # Microsoft Visual C++.
9 kx if test "$GCC" != yes; then
9 kx with_gnu_ld=no
9 kx fi
9 kx ;;
9 kx interix*)
9 kx # we just hope/assume this is gcc and not c89 (= MSVC++)
9 kx with_gnu_ld=yes
9 kx ;;
9 kx openbsd*)
9 kx with_gnu_ld=no
9 kx ;;
9 kx esac
9 kx
9 kx ld_shlibs=yes
9 kx
9 kx # On some targets, GNU ld is compatible enough with the native linker
9 kx # that we're better off using the native interface for both.
9 kx lt_use_gnu_ld_interface=no
9 kx if test "$with_gnu_ld" = yes; then
9 kx case $host_os in
9 kx aix*)
9 kx # The AIX port of GNU ld has always aspired to compatibility
9 kx # with the native linker. However, as the warning in the GNU ld
9 kx # block says, versions before 2.19.5* couldn't really create working
9 kx # shared libraries, regardless of the interface used.
9 kx case `$LD -v 2>&1` in
9 kx *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9 kx *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9 kx *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9 kx *)
9 kx lt_use_gnu_ld_interface=yes
9 kx ;;
9 kx esac
9 kx ;;
9 kx *)
9 kx lt_use_gnu_ld_interface=yes
9 kx ;;
9 kx esac
9 kx fi
9 kx
9 kx if test "$lt_use_gnu_ld_interface" = yes; then
9 kx # If archive_cmds runs LD, not CC, wlarc should be empty
9 kx wlarc='${wl}'
9 kx
9 kx # Set some defaults for GNU ld with shared library support. These
9 kx # are reset later if shared libraries are not supported. Putting them
9 kx # here allows them to be overridden if necessary.
9 kx runpath_var=LD_RUN_PATH
9 kx hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9 kx export_dynamic_flag_spec='${wl}--export-dynamic'
9 kx # ancient GNU ld didn't support --whole-archive et. al.
9 kx if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9 kx whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9 kx else
9 kx whole_archive_flag_spec=
9 kx fi
9 kx supports_anon_versioning=no
9 kx case `$LD -v 2>&1` in
9 kx *GNU\ gold*) supports_anon_versioning=yes ;;
9 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9 kx *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9 kx *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9 kx *\ 2.11.*) ;; # other 2.11 versions
9 kx *) supports_anon_versioning=yes ;;
9 kx esac
9 kx
9 kx # See if GNU ld supports shared libraries.
9 kx case $host_os in
9 kx aix[3-9]*)
9 kx # On AIX/PPC, the GNU linker is very broken
9 kx if test "$host_cpu" != ia64; then
9 kx ld_shlibs=no
9 kx cat <<_LT_EOF 1>&2
9 kx
9 kx *** Warning: the GNU linker, at least up to release 2.19, is reported
9 kx *** to be unable to reliably create shared libraries on AIX.
9 kx *** Therefore, libtool is disabling shared libraries support. If you
9 kx *** really care for shared libraries, you may want to install binutils
9 kx *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9 kx *** You will then need to restart the configuration process.
9 kx
9 kx _LT_EOF
9 kx fi
9 kx ;;
9 kx
9 kx amigaos*)
9 kx case $host_cpu in
9 kx powerpc)
9 kx # see comment about AmigaOS4 .so support
9 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9 kx archive_expsym_cmds=''
9 kx ;;
9 kx m68k)
9 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)'
9 kx hardcode_libdir_flag_spec='-L$libdir'
9 kx hardcode_minus_L=yes
9 kx ;;
9 kx esac
9 kx ;;
9 kx
9 kx beos*)
9 kx if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9 kx allow_undefined_flag=unsupported
9 kx # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9 kx # support --undefined. This deserves some investigation. FIXME
9 kx archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9 kx else
9 kx ld_shlibs=no
9 kx fi
9 kx ;;
9 kx
9 kx cygwin* | mingw* | pw32* | cegcc*)
9 kx # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9 kx # as there is no search path for DLLs.
9 kx hardcode_libdir_flag_spec='-L$libdir'
9 kx export_dynamic_flag_spec='${wl}--export-all-symbols'
9 kx allow_undefined_flag=unsupported
9 kx always_export_symbols=no
9 kx enable_shared_with_static_runtimes=yes
9 kx export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9 kx
9 kx if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9 kx # If the export-symbols file already is a .def file (1st line
9 kx # is EXPORTS), use it as is; otherwise, prepend...
9 kx archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9 kx cp $export_symbols $output_objdir/$soname.def;
9 kx else
9 kx echo EXPORTS > $output_objdir/$soname.def;
9 kx cat $export_symbols >> $output_objdir/$soname.def;
9 kx fi~
9 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'
9 kx else
9 kx ld_shlibs=no
9 kx fi
9 kx ;;
9 kx
9 kx haiku*)
9 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9 kx link_all_deplibs=yes
9 kx ;;
9 kx
9 kx interix[3-9]*)
9 kx hardcode_direct=no
9 kx hardcode_shlibpath_var=no
9 kx hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9 kx export_dynamic_flag_spec='${wl}-E'
9 kx # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9 kx # Instead, shared libraries are loaded at an image base (0x10000000 by
9 kx # default) and relocated if they conflict, which is a slow very memory
9 kx # consuming and fragmenting process. To avoid this, we pick a random,
9 kx # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9 kx # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9 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'
9 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'
9 kx ;;
9 kx
9 kx gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9 kx tmp_diet=no
9 kx if test "$host_os" = linux-dietlibc; then
9 kx case $cc_basename in
9 kx diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9 kx esac
9 kx fi
9 kx if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9 kx && test "$tmp_diet" = no
9 kx then
9 kx tmp_addflag=' $pic_flag'
9 kx tmp_sharedflag='-shared'
9 kx case $cc_basename,$host_cpu in
9 kx pgcc*) # Portland Group C compiler
9 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'
9 kx tmp_addflag=' $pic_flag'
9 kx ;;
9 kx pgf77* | pgf90* | pgf95* | pgfortran*)
9 kx # Portland Group f77 and f90 compilers
9 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'
9 kx tmp_addflag=' $pic_flag -Mnomain' ;;
9 kx ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9 kx tmp_addflag=' -i_dynamic' ;;
9 kx efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9 kx tmp_addflag=' -i_dynamic -nofor_main' ;;
9 kx ifc* | ifort*) # Intel Fortran compiler
9 kx tmp_addflag=' -nofor_main' ;;
9 kx lf95*) # Lahey Fortran 8.1
9 kx whole_archive_flag_spec=
9 kx tmp_sharedflag='--shared' ;;
9 kx xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9 kx tmp_sharedflag='-qmkshrobj'
9 kx tmp_addflag= ;;
9 kx nvcc*) # Cuda Compiler Driver 2.2
9 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'
9 kx compiler_needs_object=yes
9 kx ;;
9 kx esac
9 kx case `$CC -V 2>&1 | sed 5q` in
9 kx *Sun\ C*) # Sun C 5.9
9 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'
9 kx compiler_needs_object=yes
9 kx tmp_sharedflag='-G' ;;
9 kx *Sun\ F*) # Sun Fortran 8.3
9 kx tmp_sharedflag='-G' ;;
9 kx esac
9 kx archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9 kx
9 kx if test "x$supports_anon_versioning" = xyes; then
9 kx archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9 kx cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9 kx echo "local: *; };" >> $output_objdir/$libname.ver~
9 kx $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9 kx fi
9 kx
9 kx case $cc_basename in
9 kx xlf* | bgf* | bgxlf* | mpixlf*)
9 kx # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9 kx whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9 kx hardcode_libdir_flag_spec=
9 kx hardcode_libdir_flag_spec_ld='-rpath $libdir'
9 kx archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9 kx if test "x$supports_anon_versioning" = xyes; then
9 kx archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9 kx cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9 kx echo "local: *; };" >> $output_objdir/$libname.ver~
9 kx $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9 kx fi
9 kx ;;
9 kx esac
9 kx else
9 kx ld_shlibs=no
9 kx fi
9 kx ;;
9 kx
9 kx netbsd*)
9 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9 kx archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9 kx wlarc=
9 kx else
9 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9 kx archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9 kx fi
9 kx ;;
9 kx
9 kx solaris*)
9 kx if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9 kx ld_shlibs=no
9 kx cat <<_LT_EOF 1>&2
9 kx
9 kx *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9 kx *** create shared libraries on Solaris systems. Therefore, libtool
9 kx *** is disabling shared libraries support. We urge you to upgrade GNU
9 kx *** binutils to release 2.9.1 or newer. Another option is to modify
9 kx *** your PATH or compiler configuration so that the native linker is
9 kx *** used, and then restart.
9 kx
9 kx _LT_EOF
9 kx elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9 kx archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9 kx else
9 kx ld_shlibs=no
9 kx fi
9 kx ;;
9 kx
9 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9 kx case `$LD -v 2>&1` in
9 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9 kx ld_shlibs=no
9 kx cat <<_LT_EOF 1>&2
9 kx
9 kx *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9 kx *** reliably create shared libraries on SCO systems. Therefore, libtool
9 kx *** is disabling shared libraries support. We urge you to upgrade GNU
9 kx *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9 kx *** your PATH or compiler configuration so that the native linker is
9 kx *** used, and then restart.
9 kx
9 kx _LT_EOF
9 kx ;;
9 kx *)
9 kx # For security reasons, it is highly recommended that you always
9 kx # use absolute paths for naming shared libraries, and exclude the
9 kx # DT_RUNPATH tag from executables and libraries. But doing so
9 kx # requires that you compile everything twice, which is a pain.
9 kx if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9 kx hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9 kx archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9 kx else
9 kx ld_shlibs=no
9 kx fi
9 kx ;;
9 kx esac
9 kx ;;
9 kx
9 kx sunos4*)
9 kx archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9 kx wlarc=
9 kx hardcode_direct=yes
9 kx hardcode_shlibpath_var=no
9 kx ;;
9 kx
9 kx *)
9 kx if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9 kx archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9 kx else
9 kx ld_shlibs=no
9 kx fi
9 kx ;;
9 kx esac
9 kx
9 kx if test "$ld_shlibs" = no; then
9 kx runpath_var=
9 kx hardcode_libdir_flag_spec=
9 kx export_dynamic_flag_spec=
9 kx whole_archive_flag_spec=
9 kx fi
9 kx else
9 kx # PORTME fill in a description of your system's linker (not GNU ld)
9 kx case $host_os in
9 kx aix3*)
9 kx allow_undefined_flag=unsupported
9 kx always_export_symbols=yes
9 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'
9 kx # Note: this linker hardcodes the directories in LIBPATH if there
9 kx # are no directories specified by -L.
9 kx hardcode_minus_L=yes
9 kx if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9 kx # Neither direct hardcoding nor static linking is supported with a
9 kx # broken collect2.
9 kx hardcode_direct=unsupported
9 kx fi
9 kx ;;
9 kx
9 kx aix[4-9]*)
9 kx if test "$host_cpu" = ia64; then
9 kx # On IA64, the linker does run time linking by default, so we don't
9 kx # have to do anything special.
9 kx aix_use_runtimelinking=no
9 kx exp_sym_flag='-Bexport'
9 kx no_entry_flag=""
9 kx else
9 kx # If we're using GNU nm, then we don't want the "-C" option.
9 kx # -C means demangle to AIX nm, but means don't demangle with GNU nm
9 kx # Also, AIX nm treats weak defined symbols like other global
9 kx # defined symbols, whereas GNU nm marks them as "W".
9 kx if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9 kx export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9 kx else
9 kx export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9 kx fi
9 kx aix_use_runtimelinking=no
9 kx
9 kx # Test if we are trying to use run time linking or normal
9 kx # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9 kx # need to do runtime linking.
9 kx case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9 kx for ld_flag in $LDFLAGS; do
9 kx if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9 kx aix_use_runtimelinking=yes
9 kx break
9 kx fi
9 kx done
9 kx ;;
9 kx esac
9 kx
9 kx exp_sym_flag='-bexport'
9 kx no_entry_flag='-bnoentry'
9 kx fi
9 kx
9 kx # When large executables or shared objects are built, AIX ld can
9 kx # have problems creating the table of contents. If linking a library
9 kx # or program results in "error TOC overflow" add -mminimal-toc to
9 kx # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9 kx # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9 kx
9 kx archive_cmds=''
9 kx hardcode_direct=yes
9 kx hardcode_direct_absolute=yes
9 kx hardcode_libdir_separator=':'
9 kx link_all_deplibs=yes
9 kx file_list_spec='${wl}-f,'
9 kx
9 kx if test "$GCC" = yes; then
9 kx case $host_os in aix4.[012]|aix4.[012].*)
9 kx # We only want to do this on AIX 4.2 and lower, the check
9 kx # below for broken collect2 doesn't work under 4.3+
9 kx collect2name=`${CC} -print-prog-name=collect2`
9 kx if test -f "$collect2name" &&
9 kx strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9 kx then
9 kx # We have reworked collect2
9 kx :
9 kx else
9 kx # We have old collect2
9 kx hardcode_direct=unsupported
9 kx # It fails to find uninstalled libraries when the uninstalled
9 kx # path is not listed in the libpath. Setting hardcode_minus_L
9 kx # to unsupported forces relinking
9 kx hardcode_minus_L=yes
9 kx hardcode_libdir_flag_spec='-L$libdir'
9 kx hardcode_libdir_separator=
9 kx fi
9 kx ;;
9 kx esac
9 kx shared_flag='-shared'
9 kx if test "$aix_use_runtimelinking" = yes; then
9 kx shared_flag="$shared_flag "'${wl}-G'
9 kx fi
9 kx else
9 kx # not using gcc
9 kx if test "$host_cpu" = ia64; then
9 kx # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9 kx # chokes on -Wl,-G. The following line is correct:
9 kx shared_flag='-G'
9 kx else
9 kx if test "$aix_use_runtimelinking" = yes; then
9 kx shared_flag='${wl}-G'
9 kx else
9 kx shared_flag='${wl}-bM:SRE'
9 kx fi
9 kx fi
9 kx fi
9 kx
9 kx export_dynamic_flag_spec='${wl}-bexpall'
9 kx # It seems that -bexpall does not export symbols beginning with
9 kx # underscore (_), so it is better to generate a list of symbols to export.
9 kx always_export_symbols=yes
9 kx if test "$aix_use_runtimelinking" = yes; then
9 kx # Warning - without using the other runtime loading flags (-brtl),
9 kx # -berok will link without error, but may produce a broken library.
9 kx allow_undefined_flag='-berok'
9 kx # Determine the default libpath from the value encoded in an
9 kx # empty executable.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx
9 kx lt_aix_libpath_sed='
9 kx /Import File Strings/,/^$/ {
9 kx /^0/ {
9 kx s/^0 *\(.*\)$/\1/
9 kx p
9 kx }
9 kx }'
9 kx aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9 kx # Check for a 64-bit object if we didn't find anything.
9 kx if test -z "$aix_libpath"; then
9 kx aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9 kx fi
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9 kx
9 kx hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9 kx archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9 kx else
9 kx if test "$host_cpu" = ia64; then
9 kx hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9 kx allow_undefined_flag="-z nodefs"
9 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"
9 kx else
9 kx # Determine the default libpath from the value encoded in an
9 kx # empty executable.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx
9 kx lt_aix_libpath_sed='
9 kx /Import File Strings/,/^$/ {
9 kx /^0/ {
9 kx s/^0 *\(.*\)$/\1/
9 kx p
9 kx }
9 kx }'
9 kx aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9 kx # Check for a 64-bit object if we didn't find anything.
9 kx if test -z "$aix_libpath"; then
9 kx aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9 kx fi
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9 kx
9 kx hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9 kx # Warning - without using the other run time loading flags,
9 kx # -berok will link without error, but may produce a broken library.
9 kx no_undefined_flag=' ${wl}-bernotok'
9 kx allow_undefined_flag=' ${wl}-berok'
9 kx if test "$with_gnu_ld" = yes; then
9 kx # We only use this code for GNU lds that support --whole-archive.
9 kx whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9 kx else
9 kx # Exported symbols can be pulled into shared objects from archives
9 kx whole_archive_flag_spec='$convenience'
9 kx fi
9 kx archive_cmds_need_lc=yes
9 kx # This is similar to how AIX traditionally builds its shared libraries.
9 kx archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9 kx fi
9 kx fi
9 kx ;;
9 kx
9 kx amigaos*)
9 kx case $host_cpu in
9 kx powerpc)
9 kx # see comment about AmigaOS4 .so support
9 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9 kx archive_expsym_cmds=''
9 kx ;;
9 kx m68k)
9 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)'
9 kx hardcode_libdir_flag_spec='-L$libdir'
9 kx hardcode_minus_L=yes
9 kx ;;
9 kx esac
9 kx ;;
9 kx
9 kx bsdi[45]*)
9 kx export_dynamic_flag_spec=-rdynamic
9 kx ;;
9 kx
9 kx cygwin* | mingw* | pw32* | cegcc*)
9 kx # When not using gcc, we currently assume that we are using
9 kx # Microsoft Visual C++.
9 kx # hardcode_libdir_flag_spec is actually meaningless, as there is
9 kx # no search path for DLLs.
9 kx hardcode_libdir_flag_spec=' '
9 kx allow_undefined_flag=unsupported
9 kx # Tell ltmain to make .lib files, not .a files.
9 kx libext=lib
9 kx # Tell ltmain to make .dll files, not .so files.
9 kx shrext_cmds=".dll"
9 kx # FIXME: Setting linknames here is a bad hack.
9 kx archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9 kx # The linker will automatically build a .lib file if we build a DLL.
9 kx old_archive_from_new_cmds='true'
9 kx # FIXME: Should let the user specify the lib program.
9 kx old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9 kx fix_srcfile_path='`cygpath -w "$srcfile"`'
9 kx enable_shared_with_static_runtimes=yes
9 kx ;;
9 kx
9 kx darwin* | rhapsody*)
9 kx
9 kx
9 kx archive_cmds_need_lc=no
9 kx hardcode_direct=no
9 kx hardcode_automatic=yes
9 kx hardcode_shlibpath_var=unsupported
9 kx if test "$lt_cv_ld_force_load" = "yes"; then
9 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\"`'
9 kx else
9 kx whole_archive_flag_spec=''
9 kx fi
9 kx link_all_deplibs=yes
9 kx allow_undefined_flag="$_lt_dar_allow_undefined"
9 kx case $cc_basename in
9 kx ifort*) _lt_dar_can_shared=yes ;;
9 kx *) _lt_dar_can_shared=$GCC ;;
9 kx esac
9 kx if test "$_lt_dar_can_shared" = "yes"; then
9 kx output_verbose_link_cmd=func_echo_all
9 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}"
9 kx module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9 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}"
9 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}"
9 kx
9 kx else
9 kx ld_shlibs=no
9 kx fi
9 kx
9 kx ;;
9 kx
9 kx dgux*)
9 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9 kx hardcode_libdir_flag_spec='-L$libdir'
9 kx hardcode_shlibpath_var=no
9 kx ;;
9 kx
9 kx # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9 kx # support. Future versions do this automatically, but an explicit c++rt0.o
9 kx # does not break anything, and helps significantly (at the cost of a little
9 kx # extra space).
9 kx freebsd2.2*)
9 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9 kx hardcode_libdir_flag_spec='-R$libdir'
9 kx hardcode_direct=yes
9 kx hardcode_shlibpath_var=no
9 kx ;;
9 kx
9 kx # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9 kx freebsd2.*)
9 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9 kx hardcode_direct=yes
9 kx hardcode_minus_L=yes
9 kx hardcode_shlibpath_var=no
9 kx ;;
9 kx
9 kx # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9 kx freebsd* | dragonfly*)
9 kx archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9 kx hardcode_libdir_flag_spec='-R$libdir'
9 kx hardcode_direct=yes
9 kx hardcode_shlibpath_var=no
9 kx ;;
9 kx
9 kx hpux9*)
9 kx if test "$GCC" = yes; then
9 kx archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9 kx else
9 kx archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9 kx fi
9 kx hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9 kx hardcode_libdir_separator=:
9 kx hardcode_direct=yes
9 kx
9 kx # hardcode_minus_L: Not really in the search PATH,
9 kx # but as the default location of the library.
9 kx hardcode_minus_L=yes
9 kx export_dynamic_flag_spec='${wl}-E'
9 kx ;;
9 kx
9 kx hpux10*)
9 kx if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9 kx archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9 kx else
9 kx archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9 kx fi
9 kx if test "$with_gnu_ld" = no; then
9 kx hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9 kx hardcode_libdir_flag_spec_ld='+b $libdir'
9 kx hardcode_libdir_separator=:
9 kx hardcode_direct=yes
9 kx hardcode_direct_absolute=yes
9 kx export_dynamic_flag_spec='${wl}-E'
9 kx # hardcode_minus_L: Not really in the search PATH,
9 kx # but as the default location of the library.
9 kx hardcode_minus_L=yes
9 kx fi
9 kx ;;
9 kx
9 kx hpux11*)
9 kx if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9 kx case $host_cpu in
9 kx hppa*64*)
9 kx archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9 kx ;;
9 kx ia64*)
9 kx archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9 kx ;;
9 kx *)
9 kx archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9 kx ;;
9 kx esac
9 kx else
9 kx case $host_cpu in
9 kx hppa*64*)
9 kx archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9 kx ;;
9 kx ia64*)
9 kx archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9 kx ;;
9 kx *)
9 kx
9 kx # Older versions of the 11.00 compiler do not understand -b yet
9 kx # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9 kx $as_echo_n "checking if $CC understands -b... " >&6; }
9 kx if ${lt_cv_prog_compiler__b+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx lt_cv_prog_compiler__b=no
9 kx save_LDFLAGS="$LDFLAGS"
9 kx LDFLAGS="$LDFLAGS -b"
9 kx echo "$lt_simple_link_test_code" > conftest.$ac_ext
9 kx if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9 kx # The linker can only warn and ignore the option if not recognized
9 kx # So say no if there are warnings
9 kx if test -s conftest.err; then
9 kx # Append any errors to the config.log.
9 kx cat conftest.err 1>&5
9 kx $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9 kx if diff conftest.exp conftest.er2 >/dev/null; then
9 kx lt_cv_prog_compiler__b=yes
9 kx fi
9 kx else
9 kx lt_cv_prog_compiler__b=yes
9 kx fi
9 kx fi
9 kx $RM -r conftest*
9 kx LDFLAGS="$save_LDFLAGS"
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9 kx $as_echo "$lt_cv_prog_compiler__b" >&6; }
9 kx
9 kx if test x"$lt_cv_prog_compiler__b" = xyes; then
9 kx archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9 kx else
9 kx archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9 kx fi
9 kx
9 kx ;;
9 kx esac
9 kx fi
9 kx if test "$with_gnu_ld" = no; then
9 kx hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9 kx hardcode_libdir_separator=:
9 kx
9 kx case $host_cpu in
9 kx hppa*64*|ia64*)
9 kx hardcode_direct=no
9 kx hardcode_shlibpath_var=no
9 kx ;;
9 kx *)
9 kx hardcode_direct=yes
9 kx hardcode_direct_absolute=yes
9 kx export_dynamic_flag_spec='${wl}-E'
9 kx
9 kx # hardcode_minus_L: Not really in the search PATH,
9 kx # but as the default location of the library.
9 kx hardcode_minus_L=yes
9 kx ;;
9 kx esac
9 kx fi
9 kx ;;
9 kx
9 kx irix5* | irix6* | nonstopux*)
9 kx if test "$GCC" = yes; then
9 kx archive_cmds='$CC -shared $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'
9 kx # Try to use the -exported_symbol ld option, if it does not
9 kx # work, assume that -exports_file does not work either and
9 kx # implicitly export all symbols.
9 kx save_LDFLAGS="$LDFLAGS"
9 kx LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx int foo(void) {}
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx archive_expsym_cmds='$CC -shared $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'
9 kx
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx LDFLAGS="$save_LDFLAGS"
9 kx else
9 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'
9 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'
9 kx fi
9 kx archive_cmds_need_lc='no'
9 kx hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9 kx hardcode_libdir_separator=:
9 kx inherit_rpath=yes
9 kx link_all_deplibs=yes
9 kx ;;
9 kx
9 kx netbsd*)
9 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9 kx else
9 kx archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9 kx fi
9 kx hardcode_libdir_flag_spec='-R$libdir'
9 kx hardcode_direct=yes
9 kx hardcode_shlibpath_var=no
9 kx ;;
9 kx
9 kx newsos6)
9 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9 kx hardcode_direct=yes
9 kx hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9 kx hardcode_libdir_separator=:
9 kx hardcode_shlibpath_var=no
9 kx ;;
9 kx
9 kx *nto* | *qnx*)
9 kx ;;
9 kx
9 kx openbsd*)
9 kx if test -f /usr/libexec/ld.so; then
9 kx hardcode_direct=yes
9 kx hardcode_shlibpath_var=no
9 kx hardcode_direct_absolute=yes
9 kx if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9 kx archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9 kx hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9 kx export_dynamic_flag_spec='${wl}-E'
9 kx else
9 kx case $host_os in
9 kx openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9 kx hardcode_libdir_flag_spec='-R$libdir'
9 kx ;;
9 kx *)
9 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9 kx hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9 kx ;;
9 kx esac
9 kx fi
9 kx else
9 kx ld_shlibs=no
9 kx fi
9 kx ;;
9 kx
9 kx os2*)
9 kx hardcode_libdir_flag_spec='-L$libdir'
9 kx hardcode_minus_L=yes
9 kx allow_undefined_flag=unsupported
9 kx archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9 kx old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9 kx ;;
9 kx
9 kx osf3*)
9 kx if test "$GCC" = yes; then
9 kx allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9 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'
9 kx else
9 kx allow_undefined_flag=' -expect_unresolved \*'
9 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'
9 kx fi
9 kx archive_cmds_need_lc='no'
9 kx hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9 kx hardcode_libdir_separator=:
9 kx ;;
9 kx
9 kx osf4* | osf5*) # as osf3* with the addition of -msym flag
9 kx if test "$GCC" = yes; then
9 kx allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9 kx archive_cmds='$CC -shared${allow_undefined_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'
9 kx hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9 kx else
9 kx allow_undefined_flag=' -expect_unresolved \*'
9 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'
9 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~
9 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'
9 kx
9 kx # Both c and cxx compiler support -rpath directly
9 kx hardcode_libdir_flag_spec='-rpath $libdir'
9 kx fi
9 kx archive_cmds_need_lc='no'
9 kx hardcode_libdir_separator=:
9 kx ;;
9 kx
9 kx solaris*)
9 kx no_undefined_flag=' -z defs'
9 kx if test "$GCC" = yes; then
9 kx wlarc='${wl}'
9 kx archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9 kx archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9 kx $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9 kx else
9 kx case `$CC -V 2>&1` in
9 kx *"Compilers 5.0"*)
9 kx wlarc=''
9 kx archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9 kx archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9 kx $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9 kx ;;
9 kx *)
9 kx wlarc='${wl}'
9 kx archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9 kx archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9 kx $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9 kx ;;
9 kx esac
9 kx fi
9 kx hardcode_libdir_flag_spec='-R$libdir'
9 kx hardcode_shlibpath_var=no
9 kx case $host_os in
9 kx solaris2.[0-5] | solaris2.[0-5].*) ;;
9 kx *)
9 kx # The compiler driver will combine and reorder linker options,
9 kx # but understands `-z linker_flag'. GCC discards it without `$wl',
9 kx # but is careful enough not to reorder.
9 kx # Supported since Solaris 2.6 (maybe 2.5.1?)
9 kx if test "$GCC" = yes; then
9 kx whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9 kx else
9 kx whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9 kx fi
9 kx ;;
9 kx esac
9 kx link_all_deplibs=yes
9 kx ;;
9 kx
9 kx sunos4*)
9 kx if test "x$host_vendor" = xsequent; then
9 kx # Use $CC to link under sequent, because it throws in some extra .o
9 kx # files that make .init and .fini sections work.
9 kx archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9 kx else
9 kx archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9 kx fi
9 kx hardcode_libdir_flag_spec='-L$libdir'
9 kx hardcode_direct=yes
9 kx hardcode_minus_L=yes
9 kx hardcode_shlibpath_var=no
9 kx ;;
9 kx
9 kx sysv4)
9 kx case $host_vendor in
9 kx sni)
9 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9 kx hardcode_direct=yes # is this really true???
9 kx ;;
9 kx siemens)
9 kx ## LD is ld it makes a PLAMLIB
9 kx ## CC just makes a GrossModule.
9 kx archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9 kx reload_cmds='$CC -r -o $output$reload_objs'
9 kx hardcode_direct=no
9 kx ;;
9 kx motorola)
9 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9 kx hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9 kx ;;
9 kx esac
9 kx runpath_var='LD_RUN_PATH'
9 kx hardcode_shlibpath_var=no
9 kx ;;
9 kx
9 kx sysv4.3*)
9 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9 kx hardcode_shlibpath_var=no
9 kx export_dynamic_flag_spec='-Bexport'
9 kx ;;
9 kx
9 kx sysv4*MP*)
9 kx if test -d /usr/nec; then
9 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9 kx hardcode_shlibpath_var=no
9 kx runpath_var=LD_RUN_PATH
9 kx hardcode_runpath_var=yes
9 kx ld_shlibs=yes
9 kx fi
9 kx ;;
9 kx
9 kx sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9 kx no_undefined_flag='${wl}-z,text'
9 kx archive_cmds_need_lc=no
9 kx hardcode_shlibpath_var=no
9 kx runpath_var='LD_RUN_PATH'
9 kx
9 kx if test "$GCC" = yes; then
9 kx archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9 kx archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9 kx else
9 kx archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9 kx archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9 kx fi
9 kx ;;
9 kx
9 kx sysv5* | sco3.2v5* | sco5v6*)
9 kx # Note: We can NOT use -z defs as we might desire, because we do not
9 kx # link with -lc, and that would cause any symbols used from libc to
9 kx # always be unresolved, which means just about no library would
9 kx # ever link correctly. If we're not using GNU ld we use -z text
9 kx # though, which does catch some bad symbols but isn't as heavy-handed
9 kx # as -z defs.
9 kx no_undefined_flag='${wl}-z,text'
9 kx allow_undefined_flag='${wl}-z,nodefs'
9 kx archive_cmds_need_lc=no
9 kx hardcode_shlibpath_var=no
9 kx hardcode_libdir_flag_spec='${wl}-R,$libdir'
9 kx hardcode_libdir_separator=':'
9 kx link_all_deplibs=yes
9 kx export_dynamic_flag_spec='${wl}-Bexport'
9 kx runpath_var='LD_RUN_PATH'
9 kx
9 kx if test "$GCC" = yes; then
9 kx archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9 kx archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9 kx else
9 kx archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9 kx archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9 kx fi
9 kx ;;
9 kx
9 kx uts4*)
9 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9 kx hardcode_libdir_flag_spec='-L$libdir'
9 kx hardcode_shlibpath_var=no
9 kx ;;
9 kx
9 kx *)
9 kx ld_shlibs=no
9 kx ;;
9 kx esac
9 kx
9 kx if test x$host_vendor = xsni; then
9 kx case $host in
9 kx sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9 kx export_dynamic_flag_spec='${wl}-Blargedynsym'
9 kx ;;
9 kx esac
9 kx fi
9 kx fi
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9 kx $as_echo "$ld_shlibs" >&6; }
9 kx test "$ld_shlibs" = no && can_build_shared=no
9 kx
9 kx with_gnu_ld=$with_gnu_ld
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx #
9 kx # Do we need to explicitly link libc?
9 kx #
9 kx case "x$archive_cmds_need_lc" in
9 kx x|xyes)
9 kx # Assume -lc should be added
9 kx archive_cmds_need_lc=yes
9 kx
9 kx if test "$enable_shared" = yes && test "$GCC" = yes; then
9 kx case $archive_cmds in
9 kx *'~'*)
9 kx # FIXME: we may have to deal with multi-command sequences.
9 kx ;;
9 kx '$CC '*)
9 kx # Test whether the compiler implicitly links with -lc since on some
9 kx # systems, -lgcc has to come before -lc. If gcc already passes -lc
9 kx # to ld, don't add -lc before -lgcc.
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9 kx $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9 kx if ${lt_cv_archive_cmds_need_lc+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx $RM conftest*
9 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9 kx
9 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9 kx (eval $ac_compile) 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; } 2>conftest.err; then
9 kx soname=conftest
9 kx lib=conftest
9 kx libobjs=conftest.$ac_objext
9 kx deplibs=
9 kx wl=$lt_prog_compiler_wl
9 kx pic_flag=$lt_prog_compiler_pic
9 kx compiler_flags=-v
9 kx linker_flags=-v
9 kx verstring=
9 kx output_objdir=.
9 kx libname=conftest
9 kx lt_save_allow_undefined_flag=$allow_undefined_flag
9 kx allow_undefined_flag=
9 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9 kx (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }
9 kx then
9 kx lt_cv_archive_cmds_need_lc=no
9 kx else
9 kx lt_cv_archive_cmds_need_lc=yes
9 kx fi
9 kx allow_undefined_flag=$lt_save_allow_undefined_flag
9 kx else
9 kx cat conftest.err 1>&5
9 kx fi
9 kx $RM conftest*
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9 kx $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9 kx archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9 kx ;;
9 kx esac
9 kx fi
9 kx ;;
9 kx esac
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9 kx $as_echo_n "checking dynamic linker characteristics... " >&6; }
9 kx
9 kx if test "$GCC" = yes; then
9 kx case $host_os in
9 kx darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9 kx *) lt_awk_arg="/^libraries:/" ;;
9 kx esac
9 kx case $host_os in
9 kx mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9 kx *) lt_sed_strip_eq="s,=/,/,g" ;;
9 kx esac
9 kx lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9 kx case $lt_search_path_spec in
9 kx *\;*)
9 kx # if the path contains ";" then we assume it to be the separator
9 kx # otherwise default to the standard path separator (i.e. ":") - it is
9 kx # assumed that no part of a normal pathname contains ";" but that should
9 kx # okay in the real world where ";" in dirpaths is itself problematic.
9 kx lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9 kx ;;
9 kx *)
9 kx lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9 kx ;;
9 kx esac
9 kx # Ok, now we have the path, separated by spaces, we can step through it
9 kx # and add multilib dir if necessary.
9 kx lt_tmp_lt_search_path_spec=
9 kx lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9 kx for lt_sys_path in $lt_search_path_spec; do
9 kx if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9 kx lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9 kx else
9 kx test -d "$lt_sys_path" && \
9 kx lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9 kx fi
9 kx done
9 kx lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9 kx BEGIN {RS=" "; FS="/|\n";} {
9 kx lt_foo="";
9 kx lt_count=0;
9 kx for (lt_i = NF; lt_i > 0; lt_i--) {
9 kx if ($lt_i != "" && $lt_i != ".") {
9 kx if ($lt_i == "..") {
9 kx lt_count++;
9 kx } else {
9 kx if (lt_count == 0) {
9 kx lt_foo="/" $lt_i lt_foo;
9 kx } else {
9 kx lt_count--;
9 kx }
9 kx }
9 kx }
9 kx }
9 kx if (lt_foo != "") { lt_freq[lt_foo]++; }
9 kx if (lt_freq[lt_foo] == 1) { print lt_foo; }
9 kx }'`
9 kx # AWK program above erroneously prepends '/' to C:/dos/paths
9 kx # for these hosts.
9 kx case $host_os in
9 kx mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9 kx $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9 kx esac
9 kx sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9 kx else
9 kx sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9 kx fi
9 kx library_names_spec=
9 kx libname_spec='lib$name'
9 kx soname_spec=
9 kx shrext_cmds=".so"
9 kx postinstall_cmds=
9 kx postuninstall_cmds=
9 kx finish_cmds=
9 kx finish_eval=
9 kx shlibpath_var=
9 kx shlibpath_overrides_runpath=unknown
9 kx version_type=none
9 kx dynamic_linker="$host_os ld.so"
9 kx sys_lib_dlsearch_path_spec="/lib /usr/lib"
9 kx need_lib_prefix=unknown
9 kx hardcode_into_libs=no
9 kx
9 kx # when you set need_version to no, make sure it does not cause -set_version
9 kx # flags to be left without arguments
9 kx need_version=unknown
9 kx
9 kx case $host_os in
9 kx aix3*)
9 kx version_type=linux
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9 kx shlibpath_var=LIBPATH
9 kx
9 kx # AIX 3 has no versioning support, so we append a major version to the name.
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx ;;
9 kx
9 kx aix[4-9]*)
9 kx version_type=linux
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx hardcode_into_libs=yes
9 kx if test "$host_cpu" = ia64; then
9 kx # AIX 5 supports IA64
9 kx library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx else
9 kx # With GCC up to 2.95.x, collect2 would create an import file
9 kx # for dependence libraries. The import file would start with
9 kx # the line `#! .'. This would cause the generated library to
9 kx # depend on `.', always an invalid library. This was fixed in
9 kx # development snapshots of GCC prior to 3.0.
9 kx case $host_os in
9 kx aix4 | aix4.[01] | aix4.[01].*)
9 kx if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9 kx echo ' yes '
9 kx echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9 kx :
9 kx else
9 kx can_build_shared=no
9 kx fi
9 kx ;;
9 kx esac
9 kx # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9 kx # soname into executable. Probably we can add versioning support to
9 kx # collect2, so additional links can be useful in future.
9 kx if test "$aix_use_runtimelinking" = yes; then
9 kx # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9 kx # instead of lib<name>.a to let people know that these are not
9 kx # typical AIX shared libraries.
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx else
9 kx # We preserve .a as extension for shared libraries through AIX4.2
9 kx # and later when we are not doing run time linking.
9 kx library_names_spec='${libname}${release}.a $libname.a'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx fi
9 kx shlibpath_var=LIBPATH
9 kx fi
9 kx ;;
9 kx
9 kx amigaos*)
9 kx case $host_cpu in
9 kx powerpc)
9 kx # Since July 2007 AmigaOS4 officially supports .so libraries.
9 kx # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx ;;
9 kx m68k)
9 kx library_names_spec='$libname.ixlibrary $libname.a'
9 kx # Create ${libname}_ixlibrary.a entries in /sys/libs.
9 kx finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
9 kx ;;
9 kx esac
9 kx ;;
9 kx
9 kx beos*)
9 kx library_names_spec='${libname}${shared_ext}'
9 kx dynamic_linker="$host_os ld.so"
9 kx shlibpath_var=LIBRARY_PATH
9 kx ;;
9 kx
9 kx bsdi[45]*)
9 kx version_type=linux
9 kx need_version=no
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9 kx sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9 kx # the default ld.so.conf also contains /usr/contrib/lib and
9 kx # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9 kx # libtool to hard-code these into programs
9 kx ;;
9 kx
9 kx cygwin* | mingw* | pw32* | cegcc*)
9 kx version_type=windows
9 kx shrext_cmds=".dll"
9 kx need_version=no
9 kx need_lib_prefix=no
9 kx
9 kx case $GCC,$host_os in
9 kx yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9 kx library_names_spec='$libname.dll.a'
9 kx # DLL is installed to $(libdir)/../bin by postinstall_cmds
9 kx postinstall_cmds='base_file=`basename \${file}`~
9 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9 kx dldir=$destdir/`dirname \$dlpath`~
9 kx test -d \$dldir || mkdir -p \$dldir~
9 kx $install_prog $dir/$dlname \$dldir/$dlname~
9 kx chmod a+x \$dldir/$dlname~
9 kx if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9 kx eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9 kx fi'
9 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9 kx dlpath=$dir/\$dldll~
9 kx $RM \$dlpath'
9 kx shlibpath_overrides_runpath=yes
9 kx
9 kx case $host_os in
9 kx cygwin*)
9 kx # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9 kx soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9 kx
9 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9 kx ;;
9 kx mingw* | cegcc*)
9 kx # MinGW DLLs use traditional 'lib' prefix
9 kx soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9 kx ;;
9 kx pw32*)
9 kx # pw32 DLLs use 'pw' prefix rather than 'lib'
9 kx library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9 kx ;;
9 kx esac
9 kx ;;
9 kx
9 kx *)
9 kx library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9 kx ;;
9 kx esac
9 kx dynamic_linker='Win32 ld.exe'
9 kx # FIXME: first we should search . and the directory the executable is in
9 kx shlibpath_var=PATH
9 kx ;;
9 kx
9 kx darwin* | rhapsody*)
9 kx dynamic_linker="$host_os dyld"
9 kx version_type=darwin
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9 kx soname_spec='${libname}${release}${major}$shared_ext'
9 kx shlibpath_overrides_runpath=yes
9 kx shlibpath_var=DYLD_LIBRARY_PATH
9 kx shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9 kx
9 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9 kx sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9 kx ;;
9 kx
9 kx dgux*)
9 kx version_type=linux
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx ;;
9 kx
9 kx freebsd* | dragonfly*)
9 kx # DragonFly does not have aout. When/if they implement a new
9 kx # versioning mechanism, adjust this.
9 kx if test -x /usr/bin/objformat; then
9 kx objformat=`/usr/bin/objformat`
9 kx else
9 kx case $host_os in
9 kx freebsd[23].*) objformat=aout ;;
9 kx *) objformat=elf ;;
9 kx esac
9 kx fi
9 kx version_type=freebsd-$objformat
9 kx case $version_type in
9 kx freebsd-elf*)
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9 kx need_version=no
9 kx need_lib_prefix=no
9 kx ;;
9 kx freebsd-*)
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9 kx need_version=yes
9 kx ;;
9 kx esac
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx case $host_os in
9 kx freebsd2.*)
9 kx shlibpath_overrides_runpath=yes
9 kx ;;
9 kx freebsd3.[01]* | freebsdelf3.[01]*)
9 kx shlibpath_overrides_runpath=yes
9 kx hardcode_into_libs=yes
9 kx ;;
9 kx freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9 kx freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9 kx shlibpath_overrides_runpath=no
9 kx hardcode_into_libs=yes
9 kx ;;
9 kx *) # from 4.6 on, and DragonFly
9 kx shlibpath_overrides_runpath=yes
9 kx hardcode_into_libs=yes
9 kx ;;
9 kx esac
9 kx ;;
9 kx
9 kx haiku*)
9 kx version_type=linux
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx dynamic_linker="$host_os runtime_loader"
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx shlibpath_var=LIBRARY_PATH
9 kx shlibpath_overrides_runpath=yes
9 kx sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9 kx hardcode_into_libs=yes
9 kx ;;
9 kx
9 kx hpux9* | hpux10* | hpux11*)
9 kx # Give a soname corresponding to the major version so that dld.sl refuses to
9 kx # link against other versions.
9 kx version_type=sunos
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx case $host_cpu in
9 kx ia64*)
9 kx shrext_cmds='.so'
9 kx hardcode_into_libs=yes
9 kx dynamic_linker="$host_os dld.so"
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx if test "X$HPUX_IA64_MODE" = X32; then
9 kx sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9 kx else
9 kx sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9 kx fi
9 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9 kx ;;
9 kx hppa*64*)
9 kx shrext_cmds='.sl'
9 kx hardcode_into_libs=yes
9 kx dynamic_linker="$host_os dld.sl"
9 kx shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9 kx ;;
9 kx *)
9 kx shrext_cmds='.sl'
9 kx dynamic_linker="$host_os dld.sl"
9 kx shlibpath_var=SHLIB_PATH
9 kx shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx ;;
9 kx esac
9 kx # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9 kx postinstall_cmds='chmod 555 $lib'
9 kx # or fails outright, so override atomically:
9 kx install_override_mode=555
9 kx ;;
9 kx
9 kx interix[3-9]*)
9 kx version_type=linux
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx shlibpath_overrides_runpath=no
9 kx hardcode_into_libs=yes
9 kx ;;
9 kx
9 kx irix5* | irix6* | nonstopux*)
9 kx case $host_os in
9 kx nonstopux*) version_type=nonstopux ;;
9 kx *)
9 kx if test "$lt_cv_prog_gnu_ld" = yes; then
9 kx version_type=linux
9 kx else
9 kx version_type=irix
9 kx fi ;;
9 kx esac
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9 kx case $host_os in
9 kx irix5* | nonstopux*)
9 kx libsuff= shlibsuff=
9 kx ;;
9 kx *)
9 kx case $LD in # libtool.m4 will add one of these switches to LD
9 kx *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9 kx libsuff= shlibsuff= libmagic=32-bit;;
9 kx *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9 kx libsuff=32 shlibsuff=N32 libmagic=N32;;
9 kx *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9 kx libsuff=64 shlibsuff=64 libmagic=64-bit;;
9 kx *) libsuff= shlibsuff= libmagic=never-match;;
9 kx esac
9 kx ;;
9 kx esac
9 kx shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9 kx shlibpath_overrides_runpath=no
9 kx sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9 kx sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9 kx hardcode_into_libs=yes
9 kx ;;
9 kx
9 kx # No shared lib support for Linux oldld, aout, or coff.
9 kx linux*oldld* | linux*aout* | linux*coff*)
9 kx dynamic_linker=no
9 kx ;;
9 kx
9 kx # This must be Linux ELF.
9 kx linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9 kx version_type=linux
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx shlibpath_overrides_runpath=no
9 kx
9 kx # Some binutils ld are patched to set DT_RUNPATH
9 kx if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx lt_cv_shlibpath_overrides_runpath=no
9 kx save_LDFLAGS=$LDFLAGS
9 kx save_libdir=$libdir
9 kx eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9 kx LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9 kx lt_cv_shlibpath_overrides_runpath=yes
9 kx fi
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx LDFLAGS=$save_LDFLAGS
9 kx libdir=$save_libdir
9 kx
9 kx fi
9 kx
9 kx shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9 kx
9 kx # This implies no fast_install, which is unacceptable.
9 kx # Some rework will be needed to allow for fast_install
9 kx # before this can be enabled.
9 kx hardcode_into_libs=yes
9 kx
9 kx # find out which ABI we are using
9 kx libsuff=
9 kx case "$host_cpu" in
9 kx x86_64*|s390*|powerpc*|ppc*|sparc*)
9 kx echo 'int i;' > conftest.$ac_ext
9 kx if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9 kx (eval $ac_compile) 2>&5
9 kx ac_status=$?
9 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
9 kx (exit $ac_status); }; then
9 kx case `/usr/bin/file conftest.$ac_objext` in
9 kx *64-bit*)
9 kx libsuff=
9 kx if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
9 kx sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9 kx fi
9 kx sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9 kx ;;
9 kx *32-bit*)
9 kx libsuff=32
9 kx if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
9 kx sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9 kx fi
9 kx sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9 kx ;;
9 kx esac
9 kx fi
9 kx rm -rf conftest*
9 kx ;;
9 kx esac
9 kx
9 kx # Append ld.so.conf contents to the search path
9 kx if test -f /etc/ld.so.conf; then
9 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' ' '`
9 kx sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9 kx fi
9 kx
9 kx # We used to test for /lib/ld.so.1 and disable shared libraries on
9 kx # powerpc, because MkLinux only supported shared libraries with the
9 kx # GNU dynamic linker. Since this was broken with cross compilers,
9 kx # most powerpc-linux boxes support dynamic linking these days and
9 kx # people can always --disable-shared, the test was removed, and we
9 kx # assume the GNU/Linux dynamic linker is in use.
9 kx dynamic_linker='GNU/Linux ld.so'
9 kx ;;
9 kx
9 kx netbsd*)
9 kx version_type=sunos
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9 kx dynamic_linker='NetBSD (a.out) ld.so'
9 kx else
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx dynamic_linker='NetBSD ld.elf_so'
9 kx fi
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx shlibpath_overrides_runpath=yes
9 kx hardcode_into_libs=yes
9 kx ;;
9 kx
9 kx newsos6)
9 kx version_type=linux
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx shlibpath_overrides_runpath=yes
9 kx ;;
9 kx
9 kx *nto* | *qnx*)
9 kx version_type=qnx
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx shlibpath_overrides_runpath=no
9 kx hardcode_into_libs=yes
9 kx dynamic_linker='ldqnx.so'
9 kx ;;
9 kx
9 kx openbsd*)
9 kx version_type=sunos
9 kx sys_lib_dlsearch_path_spec="/usr/lib"
9 kx need_lib_prefix=no
9 kx # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9 kx case $host_os in
9 kx openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9 kx *) need_version=no ;;
9 kx esac
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9 kx case $host_os in
9 kx openbsd2.[89] | openbsd2.[89].*)
9 kx shlibpath_overrides_runpath=no
9 kx ;;
9 kx *)
9 kx shlibpath_overrides_runpath=yes
9 kx ;;
9 kx esac
9 kx else
9 kx shlibpath_overrides_runpath=yes
9 kx fi
9 kx ;;
9 kx
9 kx os2*)
9 kx libname_spec='$name'
9 kx shrext_cmds=".dll"
9 kx need_lib_prefix=no
9 kx library_names_spec='$libname${shared_ext} $libname.a'
9 kx dynamic_linker='OS/2 ld.exe'
9 kx shlibpath_var=LIBPATH
9 kx ;;
9 kx
9 kx osf3* | osf4* | osf5*)
9 kx version_type=osf
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9 kx sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9 kx ;;
9 kx
9 kx rdos*)
9 kx dynamic_linker=no
9 kx ;;
9 kx
9 kx solaris*)
9 kx version_type=linux
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx shlibpath_overrides_runpath=yes
9 kx hardcode_into_libs=yes
9 kx # ldd complains unless libraries are executable
9 kx postinstall_cmds='chmod +x $lib'
9 kx ;;
9 kx
9 kx sunos4*)
9 kx version_type=sunos
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9 kx finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx shlibpath_overrides_runpath=yes
9 kx if test "$with_gnu_ld" = yes; then
9 kx need_lib_prefix=no
9 kx fi
9 kx need_version=yes
9 kx ;;
9 kx
9 kx sysv4 | sysv4.3*)
9 kx version_type=linux
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx case $host_vendor in
9 kx sni)
9 kx shlibpath_overrides_runpath=no
9 kx need_lib_prefix=no
9 kx runpath_var=LD_RUN_PATH
9 kx ;;
9 kx siemens)
9 kx need_lib_prefix=no
9 kx ;;
9 kx motorola)
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx shlibpath_overrides_runpath=no
9 kx sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9 kx ;;
9 kx esac
9 kx ;;
9 kx
9 kx sysv4*MP*)
9 kx if test -d /usr/nec ;then
9 kx version_type=linux
9 kx library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9 kx soname_spec='$libname${shared_ext}.$major'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx fi
9 kx ;;
9 kx
9 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9 kx version_type=freebsd-elf
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx shlibpath_overrides_runpath=yes
9 kx hardcode_into_libs=yes
9 kx if test "$with_gnu_ld" = yes; then
9 kx sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9 kx else
9 kx sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9 kx case $host_os in
9 kx sco3.2v5*)
9 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9 kx ;;
9 kx esac
9 kx fi
9 kx sys_lib_dlsearch_path_spec='/usr/lib'
9 kx ;;
9 kx
9 kx tpf*)
9 kx # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9 kx version_type=linux
9 kx need_lib_prefix=no
9 kx need_version=no
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx shlibpath_overrides_runpath=no
9 kx hardcode_into_libs=yes
9 kx ;;
9 kx
9 kx uts4*)
9 kx version_type=linux
9 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9 kx soname_spec='${libname}${release}${shared_ext}$major'
9 kx shlibpath_var=LD_LIBRARY_PATH
9 kx ;;
9 kx
9 kx *)
9 kx dynamic_linker=no
9 kx ;;
9 kx esac
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9 kx $as_echo "$dynamic_linker" >&6; }
9 kx test "$dynamic_linker" = no && can_build_shared=no
9 kx
9 kx variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9 kx if test "$GCC" = yes; then
9 kx variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9 kx fi
9 kx
9 kx if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9 kx sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9 kx fi
9 kx if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9 kx sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9 kx $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9 kx hardcode_action=
9 kx if test -n "$hardcode_libdir_flag_spec" ||
9 kx test -n "$runpath_var" ||
9 kx test "X$hardcode_automatic" = "Xyes" ; then
9 kx
9 kx # We can hardcode non-existent directories.
9 kx if test "$hardcode_direct" != no &&
9 kx # If the only mechanism to avoid hardcoding is shlibpath_var, we
9 kx # have to relink, otherwise we might link with an installed library
9 kx # when we should be linking with a yet-to-be-installed one
9 kx ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9 kx test "$hardcode_minus_L" != no; then
9 kx # Linking always hardcodes the temporary library directory.
9 kx hardcode_action=relink
9 kx else
9 kx # We can link without hardcoding, and we can hardcode nonexisting dirs.
9 kx hardcode_action=immediate
9 kx fi
9 kx else
9 kx # We cannot hardcode anything, or else we can only hardcode existing
9 kx # directories.
9 kx hardcode_action=unsupported
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9 kx $as_echo "$hardcode_action" >&6; }
9 kx
9 kx if test "$hardcode_action" = relink ||
9 kx test "$inherit_rpath" = yes; then
9 kx # Fast installation is not supported
9 kx enable_fast_install=no
9 kx elif test "$shlibpath_overrides_runpath" = yes ||
9 kx test "$enable_shared" = no; then
9 kx # Fast installation is not necessary
9 kx enable_fast_install=needless
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx if test "x$enable_dlopen" != xyes; then
9 kx enable_dlopen=unknown
9 kx enable_dlopen_self=unknown
9 kx enable_dlopen_self_static=unknown
9 kx else
9 kx lt_cv_dlopen=no
9 kx lt_cv_dlopen_libs=
9 kx
9 kx case $host_os in
9 kx beos*)
9 kx lt_cv_dlopen="load_add_on"
9 kx lt_cv_dlopen_libs=
9 kx lt_cv_dlopen_self=yes
9 kx ;;
9 kx
9 kx mingw* | pw32* | cegcc*)
9 kx lt_cv_dlopen="LoadLibrary"
9 kx lt_cv_dlopen_libs=
9 kx ;;
9 kx
9 kx cygwin*)
9 kx lt_cv_dlopen="dlopen"
9 kx lt_cv_dlopen_libs=
9 kx ;;
9 kx
9 kx darwin*)
9 kx # if libdl is installed we need to link against it
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9 kx $as_echo_n "checking for dlopen in -ldl... " >&6; }
9 kx if ${ac_cv_lib_dl_dlopen+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_check_lib_save_LIBS=$LIBS
9 kx LIBS="-ldl $LIBS"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx /* Override any GCC internal prototype to avoid an error.
9 kx Use char because int might match the return type of a GCC
9 kx builtin and then its argument prototype would still apply. */
9 kx #ifdef __cplusplus
9 kx extern "C"
9 kx #endif
9 kx char dlopen ();
9 kx int
9 kx main ()
9 kx {
9 kx return dlopen ();
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx ac_cv_lib_dl_dlopen=yes
9 kx else
9 kx ac_cv_lib_dl_dlopen=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx LIBS=$ac_check_lib_save_LIBS
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9 kx $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9 kx if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9 kx lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9 kx else
9 kx
9 kx lt_cv_dlopen="dyld"
9 kx lt_cv_dlopen_libs=
9 kx lt_cv_dlopen_self=yes
9 kx
9 kx fi
9 kx
9 kx ;;
9 kx
9 kx *)
9 kx ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9 kx if test "x$ac_cv_func_shl_load" = xyes; then :
9 kx lt_cv_dlopen="shl_load"
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9 kx $as_echo_n "checking for shl_load in -ldld... " >&6; }
9 kx if ${ac_cv_lib_dld_shl_load+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_check_lib_save_LIBS=$LIBS
9 kx LIBS="-ldld $LIBS"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx /* Override any GCC internal prototype to avoid an error.
9 kx Use char because int might match the return type of a GCC
9 kx builtin and then its argument prototype would still apply. */
9 kx #ifdef __cplusplus
9 kx extern "C"
9 kx #endif
9 kx char shl_load ();
9 kx int
9 kx main ()
9 kx {
9 kx return shl_load ();
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx ac_cv_lib_dld_shl_load=yes
9 kx else
9 kx ac_cv_lib_dld_shl_load=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx LIBS=$ac_check_lib_save_LIBS
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9 kx $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9 kx if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9 kx lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9 kx else
9 kx ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9 kx if test "x$ac_cv_func_dlopen" = xyes; then :
9 kx lt_cv_dlopen="dlopen"
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9 kx $as_echo_n "checking for dlopen in -ldl... " >&6; }
9 kx if ${ac_cv_lib_dl_dlopen+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_check_lib_save_LIBS=$LIBS
9 kx LIBS="-ldl $LIBS"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx /* Override any GCC internal prototype to avoid an error.
9 kx Use char because int might match the return type of a GCC
9 kx builtin and then its argument prototype would still apply. */
9 kx #ifdef __cplusplus
9 kx extern "C"
9 kx #endif
9 kx char dlopen ();
9 kx int
9 kx main ()
9 kx {
9 kx return dlopen ();
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx ac_cv_lib_dl_dlopen=yes
9 kx else
9 kx ac_cv_lib_dl_dlopen=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx LIBS=$ac_check_lib_save_LIBS
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9 kx $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9 kx if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9 kx lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9 kx $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9 kx if ${ac_cv_lib_svld_dlopen+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_check_lib_save_LIBS=$LIBS
9 kx LIBS="-lsvld $LIBS"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx /* Override any GCC internal prototype to avoid an error.
9 kx Use char because int might match the return type of a GCC
9 kx builtin and then its argument prototype would still apply. */
9 kx #ifdef __cplusplus
9 kx extern "C"
9 kx #endif
9 kx char dlopen ();
9 kx int
9 kx main ()
9 kx {
9 kx return dlopen ();
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx ac_cv_lib_svld_dlopen=yes
9 kx else
9 kx ac_cv_lib_svld_dlopen=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx LIBS=$ac_check_lib_save_LIBS
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9 kx $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9 kx if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9 kx lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9 kx $as_echo_n "checking for dld_link in -ldld... " >&6; }
9 kx if ${ac_cv_lib_dld_dld_link+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_check_lib_save_LIBS=$LIBS
9 kx LIBS="-ldld $LIBS"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx /* Override any GCC internal prototype to avoid an error.
9 kx Use char because int might match the return type of a GCC
9 kx builtin and then its argument prototype would still apply. */
9 kx #ifdef __cplusplus
9 kx extern "C"
9 kx #endif
9 kx char dld_link ();
9 kx int
9 kx main ()
9 kx {
9 kx return dld_link ();
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx ac_cv_lib_dld_dld_link=yes
9 kx else
9 kx ac_cv_lib_dld_dld_link=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx LIBS=$ac_check_lib_save_LIBS
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9 kx $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9 kx if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9 kx lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9 kx fi
9 kx
9 kx
9 kx fi
9 kx
9 kx
9 kx fi
9 kx
9 kx
9 kx fi
9 kx
9 kx
9 kx fi
9 kx
9 kx
9 kx fi
9 kx
9 kx ;;
9 kx esac
9 kx
9 kx if test "x$lt_cv_dlopen" != xno; then
9 kx enable_dlopen=yes
9 kx else
9 kx enable_dlopen=no
9 kx fi
9 kx
9 kx case $lt_cv_dlopen in
9 kx dlopen)
9 kx save_CPPFLAGS="$CPPFLAGS"
9 kx test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9 kx
9 kx save_LDFLAGS="$LDFLAGS"
9 kx wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9 kx
9 kx save_LIBS="$LIBS"
9 kx LIBS="$lt_cv_dlopen_libs $LIBS"
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9 kx $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9 kx if ${lt_cv_dlopen_self+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test "$cross_compiling" = yes; then :
9 kx lt_cv_dlopen_self=cross
9 kx else
9 kx lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9 kx lt_status=$lt_dlunknown
9 kx cat > conftest.$ac_ext <<_LT_EOF
9 kx #line 10729 "configure"
9 kx #include "confdefs.h"
9 kx
9 kx #if HAVE_DLFCN_H
9 kx #include <dlfcn.h>
9 kx #endif
9 kx
9 kx #include <stdio.h>
9 kx
9 kx #ifdef RTLD_GLOBAL
9 kx # define LT_DLGLOBAL RTLD_GLOBAL
9 kx #else
9 kx # ifdef DL_GLOBAL
9 kx # define LT_DLGLOBAL DL_GLOBAL
9 kx # else
9 kx # define LT_DLGLOBAL 0
9 kx # endif
9 kx #endif
9 kx
9 kx /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9 kx find out it does not work in some platform. */
9 kx #ifndef LT_DLLAZY_OR_NOW
9 kx # ifdef RTLD_LAZY
9 kx # define LT_DLLAZY_OR_NOW RTLD_LAZY
9 kx # else
9 kx # ifdef DL_LAZY
9 kx # define LT_DLLAZY_OR_NOW DL_LAZY
9 kx # else
9 kx # ifdef RTLD_NOW
9 kx # define LT_DLLAZY_OR_NOW RTLD_NOW
9 kx # else
9 kx # ifdef DL_NOW
9 kx # define LT_DLLAZY_OR_NOW DL_NOW
9 kx # else
9 kx # define LT_DLLAZY_OR_NOW 0
9 kx # endif
9 kx # endif
9 kx # endif
9 kx # endif
9 kx #endif
9 kx
9 kx /* When -fvisbility=hidden is used, assume the code has been annotated
9 kx correspondingly for the symbols needed. */
9 kx #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
9 kx void fnord () __attribute__((visibility("default")));
9 kx #endif
9 kx
9 kx void fnord () { int i=42; }
9 kx int main ()
9 kx {
9 kx void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9 kx int status = $lt_dlunknown;
9 kx
9 kx if (self)
9 kx {
9 kx if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9 kx else
9 kx {
9 kx if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9 kx else puts (dlerror ());
9 kx }
9 kx /* dlclose (self); */
9 kx }
9 kx else
9 kx puts (dlerror ());
9 kx
9 kx return status;
9 kx }
9 kx _LT_EOF
9 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9 kx (eval $ac_link) 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9 kx (./conftest; exit; ) >&5 2>/dev/null
9 kx lt_status=$?
9 kx case x$lt_status in
9 kx x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9 kx x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9 kx x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9 kx esac
9 kx else :
9 kx # compilation failed
9 kx lt_cv_dlopen_self=no
9 kx fi
9 kx fi
9 kx rm -fr conftest*
9 kx
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9 kx $as_echo "$lt_cv_dlopen_self" >&6; }
9 kx
9 kx if test "x$lt_cv_dlopen_self" = xyes; then
9 kx wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9 kx $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9 kx if ${lt_cv_dlopen_self_static+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test "$cross_compiling" = yes; then :
9 kx lt_cv_dlopen_self_static=cross
9 kx else
9 kx lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9 kx lt_status=$lt_dlunknown
9 kx cat > conftest.$ac_ext <<_LT_EOF
9 kx #line 10835 "configure"
9 kx #include "confdefs.h"
9 kx
9 kx #if HAVE_DLFCN_H
9 kx #include <dlfcn.h>
9 kx #endif
9 kx
9 kx #include <stdio.h>
9 kx
9 kx #ifdef RTLD_GLOBAL
9 kx # define LT_DLGLOBAL RTLD_GLOBAL
9 kx #else
9 kx # ifdef DL_GLOBAL
9 kx # define LT_DLGLOBAL DL_GLOBAL
9 kx # else
9 kx # define LT_DLGLOBAL 0
9 kx # endif
9 kx #endif
9 kx
9 kx /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9 kx find out it does not work in some platform. */
9 kx #ifndef LT_DLLAZY_OR_NOW
9 kx # ifdef RTLD_LAZY
9 kx # define LT_DLLAZY_OR_NOW RTLD_LAZY
9 kx # else
9 kx # ifdef DL_LAZY
9 kx # define LT_DLLAZY_OR_NOW DL_LAZY
9 kx # else
9 kx # ifdef RTLD_NOW
9 kx # define LT_DLLAZY_OR_NOW RTLD_NOW
9 kx # else
9 kx # ifdef DL_NOW
9 kx # define LT_DLLAZY_OR_NOW DL_NOW
9 kx # else
9 kx # define LT_DLLAZY_OR_NOW 0
9 kx # endif
9 kx # endif
9 kx # endif
9 kx # endif
9 kx #endif
9 kx
9 kx /* When -fvisbility=hidden is used, assume the code has been annotated
9 kx correspondingly for the symbols needed. */
9 kx #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
9 kx void fnord () __attribute__((visibility("default")));
9 kx #endif
9 kx
9 kx void fnord () { int i=42; }
9 kx int main ()
9 kx {
9 kx void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9 kx int status = $lt_dlunknown;
9 kx
9 kx if (self)
9 kx {
9 kx if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9 kx else
9 kx {
9 kx if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9 kx else puts (dlerror ());
9 kx }
9 kx /* dlclose (self); */
9 kx }
9 kx else
9 kx puts (dlerror ());
9 kx
9 kx return status;
9 kx }
9 kx _LT_EOF
9 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9 kx (eval $ac_link) 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9 kx (./conftest; exit; ) >&5 2>/dev/null
9 kx lt_status=$?
9 kx case x$lt_status in
9 kx x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9 kx x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9 kx x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9 kx esac
9 kx else :
9 kx # compilation failed
9 kx lt_cv_dlopen_self_static=no
9 kx fi
9 kx fi
9 kx rm -fr conftest*
9 kx
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9 kx $as_echo "$lt_cv_dlopen_self_static" >&6; }
9 kx fi
9 kx
9 kx CPPFLAGS="$save_CPPFLAGS"
9 kx LDFLAGS="$save_LDFLAGS"
9 kx LIBS="$save_LIBS"
9 kx ;;
9 kx esac
9 kx
9 kx case $lt_cv_dlopen_self in
9 kx yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9 kx *) enable_dlopen_self=unknown ;;
9 kx esac
9 kx
9 kx case $lt_cv_dlopen_self_static in
9 kx yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9 kx *) enable_dlopen_self_static=unknown ;;
9 kx esac
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx striplib=
9 kx old_striplib=
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9 kx $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9 kx if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9 kx test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9 kx test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9 kx $as_echo "yes" >&6; }
9 kx else
9 kx # FIXME - insert some real tests, host_os isn't really good enough
9 kx case $host_os in
9 kx darwin*)
9 kx if test -n "$STRIP" ; then
9 kx striplib="$STRIP -x"
9 kx old_striplib="$STRIP -S"
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9 kx $as_echo "yes" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx ;;
9 kx *)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx ;;
9 kx esac
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # Report which library types will actually be built
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9 kx $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9 kx $as_echo "$can_build_shared" >&6; }
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9 kx $as_echo_n "checking whether to build shared libraries... " >&6; }
9 kx test "$can_build_shared" = "no" && enable_shared=no
9 kx
9 kx # On AIX, shared libraries and static libraries use the same namespace, and
9 kx # are all built from PIC.
9 kx case $host_os in
9 kx aix3*)
9 kx test "$enable_shared" = yes && enable_static=no
9 kx if test -n "$RANLIB"; then
9 kx archive_cmds="$archive_cmds~\$RANLIB \$lib"
9 kx postinstall_cmds='$RANLIB $lib'
9 kx fi
9 kx ;;
9 kx
9 kx aix[4-9]*)
9 kx if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9 kx test "$enable_shared" = yes && enable_static=no
9 kx fi
9 kx ;;
9 kx esac
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9 kx $as_echo "$enable_shared" >&6; }
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9 kx $as_echo_n "checking whether to build static libraries... " >&6; }
9 kx # Make sure either enable_shared or enable_static is yes.
9 kx test "$enable_shared" = yes || enable_static=yes
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9 kx $as_echo "$enable_static" >&6; }
9 kx
9 kx
9 kx
9 kx
9 kx fi
9 kx ac_ext=c
9 kx ac_cpp='$CPP $CPPFLAGS'
9 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
9 kx
9 kx CC="$lt_save_CC"
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx ac_config_commands="$ac_config_commands libtool"
9 kx
9 kx
9 kx
9 kx
9 kx # Only expand once:
9 kx
9 kx
9 kx
9 kx # The tests for host and target for $enable_largefile require
9 kx # canonical names.
9 kx
9 kx
9 kx
9 kx # As the $enable_largefile decision depends on --enable-plugins we must set it
9 kx # even in directories otherwise not depending on the $plugins option.
9 kx
9 kx
9 kx maybe_plugins=no
9 kx for ac_header in dlfcn.h
9 kx do :
9 kx ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9 kx "
9 kx if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define HAVE_DLFCN_H 1
9 kx _ACEOF
9 kx maybe_plugins=yes
9 kx fi
9 kx
9 kx done
9 kx
9 kx for ac_header in windows.h
9 kx do :
9 kx ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9 kx "
9 kx if test "x$ac_cv_header_windows_h" = xyes; then :
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define HAVE_WINDOWS_H 1
9 kx _ACEOF
9 kx maybe_plugins=yes
9 kx fi
9 kx
9 kx done
9 kx
9 kx
9 kx # Check whether --enable-plugins was given.
9 kx if test "${enable_plugins+set}" = set; then :
9 kx enableval=$enable_plugins; case "${enableval}" in
9 kx no) plugins=no ;;
9 kx *) plugins=yes
9 kx if test "$maybe_plugins" != "yes" ; then
9 kx as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
9 kx fi ;;
9 kx esac
9 kx else
9 kx plugins=$maybe_plugins
9 kx
9 kx fi
9 kx
9 kx if test "$plugins" = "yes"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
9 kx $as_echo_n "checking for library containing dlsym... " >&6; }
9 kx if ${ac_cv_search_dlsym+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_func_search_save_LIBS=$LIBS
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx /* Override any GCC internal prototype to avoid an error.
9 kx Use char because int might match the return type of a GCC
9 kx builtin and then its argument prototype would still apply. */
9 kx #ifdef __cplusplus
9 kx extern "C"
9 kx #endif
9 kx char dlsym ();
9 kx int
9 kx main ()
9 kx {
9 kx return dlsym ();
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx for ac_lib in '' dl; do
9 kx if test -z "$ac_lib"; then
9 kx ac_res="none required"
9 kx else
9 kx ac_res=-l$ac_lib
9 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9 kx fi
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx ac_cv_search_dlsym=$ac_res
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext
9 kx if ${ac_cv_search_dlsym+:} false; then :
9 kx break
9 kx fi
9 kx done
9 kx if ${ac_cv_search_dlsym+:} false; then :
9 kx
9 kx else
9 kx ac_cv_search_dlsym=no
9 kx fi
9 kx rm conftest.$ac_ext
9 kx LIBS=$ac_func_search_save_LIBS
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
9 kx $as_echo "$ac_cv_search_dlsym" >&6; }
9 kx ac_res=$ac_cv_search_dlsym
9 kx if test "$ac_res" != no; then :
9 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9 kx
9 kx fi
9 kx
9 kx fi
9 kx
9 kx
9 kx case "${host}" in
9 kx sparc-*-solaris*|i?86-*-solaris*)
9 kx # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
9 kx # were mutually exclusive until Solaris 11.3. Without procfs support,
9 kx # the bfd/ elf module cannot provide certain routines such as
9 kx # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
9 kx # explicitly requested large-file support through the
9 kx # --enable-largefile switch, disable large-file support in favor of
9 kx # procfs support.
9 kx #
9 kx # Check if <sys/procfs.h> is incompatible with large-file support.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #define _FILE_OFFSET_BITS 64
9 kx #define _STRUCTURED_PROC 1
9 kx #include <sys/procfs.h>
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx acx_cv_procfs_lfs=yes
9 kx else
9 kx acx_cv_procfs_lfs=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx #
9 kx # Forcefully disable large-file support only if necessary, gdb is in
9 kx # tree and enabled.
9 kx if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
9 kx -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
9 kx : ${enable_largefile="no"}
9 kx if test "$plugins" = yes; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9 kx plugin support disabled; require large-file support which is incompatible with GDB." >&5
9 kx $as_echo "$as_me: WARNING:
9 kx plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
9 kx plugins=no
9 kx fi
9 kx fi
9 kx #
9 kx # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
9 kx # benefit of g++ 9+ which predefines it on Solaris.
9 kx if test "$enable_largefile" = no; then
9 kx LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
9 kx
9 kx fi
9 kx ;;
9 kx esac
9 kx
9 kx # Check whether --enable-largefile was given.
9 kx if test "${enable_largefile+set}" = set; then :
9 kx enableval=$enable_largefile;
9 kx fi
9 kx
9 kx if test "$enable_largefile" != no; then
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9 kx $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9 kx if ${ac_cv_sys_largefile_CC+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_cv_sys_largefile_CC=no
9 kx if test "$GCC" != yes; then
9 kx ac_save_CC=$CC
9 kx while :; do
9 kx # IRIX 6.2 and later do not support large files by default,
9 kx # so use the C compiler's -n32 option if that helps.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <sys/types.h>
9 kx /* Check that off_t can represent 2**63 - 1 correctly.
9 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
9 kx since some C++ compilers masquerading as C compilers
9 kx incorrectly reject 9223372036854775807. */
9 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9 kx && LARGE_OFF_T % 2147483647 == 1)
9 kx ? 1 : -1];
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx break
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext
9 kx CC="$CC -n32"
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_cv_sys_largefile_CC=' -n32'; break
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext
9 kx break
9 kx done
9 kx CC=$ac_save_CC
9 kx rm -f conftest.$ac_ext
9 kx fi
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9 kx $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9 kx if test "$ac_cv_sys_largefile_CC" != no; then
9 kx CC=$CC$ac_cv_sys_largefile_CC
9 kx fi
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9 kx $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9 kx if ${ac_cv_sys_file_offset_bits+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx while :; do
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <sys/types.h>
9 kx /* Check that off_t can represent 2**63 - 1 correctly.
9 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
9 kx since some C++ compilers masquerading as C compilers
9 kx incorrectly reject 9223372036854775807. */
9 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9 kx && LARGE_OFF_T % 2147483647 == 1)
9 kx ? 1 : -1];
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_cv_sys_file_offset_bits=no; break
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #define _FILE_OFFSET_BITS 64
9 kx #include <sys/types.h>
9 kx /* Check that off_t can represent 2**63 - 1 correctly.
9 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
9 kx since some C++ compilers masquerading as C compilers
9 kx incorrectly reject 9223372036854775807. */
9 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9 kx && LARGE_OFF_T % 2147483647 == 1)
9 kx ? 1 : -1];
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_cv_sys_file_offset_bits=64; break
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx ac_cv_sys_file_offset_bits=unknown
9 kx break
9 kx done
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9 kx $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9 kx case $ac_cv_sys_file_offset_bits in #(
9 kx no | unknown) ;;
9 kx *)
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9 kx _ACEOF
9 kx ;;
9 kx esac
9 kx rm -rf conftest*
9 kx if test $ac_cv_sys_file_offset_bits = unknown; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9 kx $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9 kx if ${ac_cv_sys_large_files+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx while :; do
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <sys/types.h>
9 kx /* Check that off_t can represent 2**63 - 1 correctly.
9 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
9 kx since some C++ compilers masquerading as C compilers
9 kx incorrectly reject 9223372036854775807. */
9 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9 kx && LARGE_OFF_T % 2147483647 == 1)
9 kx ? 1 : -1];
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_cv_sys_large_files=no; break
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #define _LARGE_FILES 1
9 kx #include <sys/types.h>
9 kx /* Check that off_t can represent 2**63 - 1 correctly.
9 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
9 kx since some C++ compilers masquerading as C compilers
9 kx incorrectly reject 9223372036854775807. */
9 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9 kx && LARGE_OFF_T % 2147483647 == 1)
9 kx ? 1 : -1];
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_cv_sys_large_files=1; break
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx ac_cv_sys_large_files=unknown
9 kx break
9 kx done
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9 kx $as_echo "$ac_cv_sys_large_files" >&6; }
9 kx case $ac_cv_sys_large_files in #(
9 kx no | unknown) ;;
9 kx *)
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define _LARGE_FILES $ac_cv_sys_large_files
9 kx _ACEOF
9 kx ;;
9 kx esac
9 kx rm -rf conftest*
9 kx fi
9 kx
9 kx
9 kx fi
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
9 kx $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
9 kx if ${gcc_cv_prog_cmp_skip+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx echo abfoo >t1
9 kx echo cdfoo >t2
9 kx gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
9 kx if cmp t1 t2 2 2 > /dev/null 2>&1; then
9 kx if cmp t1 t2 1 1 > /dev/null 2>&1; then
9 kx :
9 kx else
9 kx gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
9 kx fi
9 kx fi
9 kx if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
9 kx if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
9 kx :
9 kx else
9 kx gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
9 kx fi
9 kx fi
9 kx rm t1 t2
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
9 kx $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
9 kx do_compare="$gcc_cv_prog_cmp_skip"
9 kx
9 kx
9 kx
9 kx # Check whether --enable-targets was given.
9 kx if test "${enable_targets+set}" = set; then :
9 kx enableval=$enable_targets; case "${enableval}" in
9 kx yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
9 kx ;;
9 kx no) enable_targets= ;;
9 kx *) enable_targets=$enableval ;;
9 kx esac
9 kx fi
9 kx
9 kx ac_checking=
9 kx . ${srcdir}/../bfd/development.sh
9 kx test "$development" = true && ac_checking=yes
9 kx # Check whether --enable-checking was given.
9 kx if test "${enable_checking+set}" = set; then :
9 kx enableval=$enable_checking; case "${enableval}" in
9 kx no|none) ac_checking= ;;
9 kx *) ac_checking=yes ;;
9 kx esac
9 kx fi
9 kx if test x$ac_checking != x ; then
9 kx
9 kx $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
9 kx
9 kx fi
9 kx
9 kx # PR gas/19109
9 kx # Decide the default method for compressing debug sections.
9 kx ac_default_compressed_debug_sections=unset
9 kx # Provide a configure time option to override our default.
9 kx # Check whether --enable-compressed_debug_sections was given.
9 kx if test "${enable_compressed_debug_sections+set}" = set; then :
9 kx enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9 kx ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
9 kx ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
9 kx *) ac_default_compressed_debug_sections=unset ;;
9 kx esac
9 kx fi
9 kx
9 kx # Select default compression algorithm.
9 kx ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB
9 kx # Check whether --enable-default_compressed_debug_sections_algorithm was given.
9 kx if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
9 kx enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
9 kx zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;;
9 kx esac
9 kx fi
9 kx
9 kx # PR gas/19520
9 kx # Decide if x86 assembler should generate relax relocations.
9 kx ac_default_x86_relax_relocations=unset
9 kx # Provide a configure time option to override our default.
9 kx # Check whether --enable-x86_relax_relocations was given.
9 kx if test "${enable_x86_relax_relocations+set}" = set; then :
9 kx enableval=$enable_x86_relax_relocations; case "${enableval}" in
9 kx no) ac_default_x86_relax_relocations=0 ;;
9 kx esac
9 kx fi
9 kx
9 kx # Decide if ELF assembler should generate common symbols with the
9 kx # STT_COMMON type.
9 kx ac_default_elf_stt_common=unset
9 kx # Provide a configure time option to override our default.
9 kx # Check whether --enable-elf_stt_common was given.
9 kx if test "${enable_elf_stt_common+set}" = set; then :
9 kx enableval=$enable_elf_stt_common; case "${enableval}" in
9 kx yes) ac_default_elf_stt_common=1 ;;
9 kx esac
9 kx fi
9 kx
9 kx
9 kx # Decide if the ELF assembler should default to generating
9 kx # GNU Build notes if none are provided by the input.
9 kx ac_default_generate_build_notes=0
9 kx # Provide a configuration option to override the default.
9 kx # Check whether --enable-generate_build_notes was given.
9 kx if test "${enable_generate_build_notes+set}" = set; then :
9 kx enableval=$enable_generate_build_notes; case "${enableval}" in
9 kx yes) ac_default_generate_build_notes=1 ;;
9 kx no) ac_default_generate_build_notes=0 ;;
9 kx esac
9 kx fi
9 kx
9 kx # Decide if the MIPS assembler should default to enable MIPS fix Loongson3
9 kx # LLSC errata.
9 kx ac_default_mips_fix_loongson3_llsc=unset
9 kx # Provide a configuration option to override the default.
9 kx # Check whether --enable-mips-fix-loongson3-llsc was given.
9 kx if test "${enable_mips_fix_loongson3_llsc+set}" = set; then :
9 kx enableval=$enable_mips_fix_loongson3_llsc; case "${enableval}" in
9 kx yes) ac_default_mips_fix_loongson3_llsc=1 ;;
9 kx no) ac_default_mips_fix_loongson3_llsc=0 ;;
9 kx esac
9 kx fi
9 kx
9 kx # Decide if the x86 ELF assembler should default to generating GNU x86
9 kx # used ISA and feature properties.
9 kx ac_default_generate_x86_used_note=unset
9 kx # Provide a configuration option to override the default.
9 kx # Check whether --enable-x86-used-note was given.
9 kx if test "${enable_x86_used_note+set}" = set; then :
9 kx enableval=$enable_x86_used_note; case "${enableval}" in
9 kx yes) ac_default_generate_x86_used_note=1 ;;
9 kx no) ac_default_generate_x86_used_note=0 ;;
9 kx esac
9 kx fi
9 kx
9 kx # Decide if the RISC-V ELF assembler should default to generating attribute.
9 kx ac_default_generate_riscv_attr=unset
9 kx # Provide a configuration option to override the default.
9 kx # Check whether --enable-default-riscv-attribute was given.
9 kx if test "${enable_default_riscv_attribute+set}" = set; then :
9 kx enableval=$enable_default_riscv_attribute; case "${enableval}" in
9 kx yes) ac_default_generate_riscv_attr=1 ;;
9 kx no) ac_default_generate_riscv_attr=0 ;;
9 kx esac
9 kx fi
9 kx
9 kx using_cgen=no
9 kx
9 kx
9 kx # Set the 'development' global.
9 kx . $srcdir/../bfd/development.sh
9 kx
9 kx # Set acp_cpp_for_build variable
9 kx ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
9 kx
9 kx # Default set of GCC warnings to enable.
9 kx GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9 kx GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9 kx
9 kx # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx __GNUC__
9 kx _ACEOF
9 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9 kx $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9 kx
9 kx else
9 kx GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
9 kx fi
9 kx rm -f conftest*
9 kx
9 kx
9 kx # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx __GNUC__
9 kx _ACEOF
9 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9 kx $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9 kx
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx __clang__
9 kx _ACEOF
9 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9 kx $EGREP "^__clang__$" >/dev/null 2>&1; then :
9 kx GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
9 kx fi
9 kx rm -f conftest*
9 kx
9 kx fi
9 kx rm -f conftest*
9 kx
9 kx
9 kx # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
9 kx WARN_WRITE_STRINGS=""
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx __GNUC__
9 kx _ACEOF
9 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9 kx $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9 kx
9 kx else
9 kx WARN_WRITE_STRINGS="-Wwrite-strings"
9 kx fi
9 kx rm -f conftest*
9 kx
9 kx
9 kx # Verify CC_FOR_BUILD to be compatible with warning flags
9 kx
9 kx # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx __GNUC__
9 kx _ACEOF
9 kx if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9 kx $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9 kx
9 kx else
9 kx GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
9 kx fi
9 kx rm -f conftest*
9 kx
9 kx
9 kx # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx __GNUC__
9 kx _ACEOF
9 kx if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9 kx $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9 kx
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx __clang__
9 kx _ACEOF
9 kx if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9 kx $EGREP "^__clang__$" >/dev/null 2>&1; then :
9 kx GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
9 kx fi
9 kx rm -f conftest*
9 kx
9 kx fi
9 kx rm -f conftest*
9 kx
9 kx
9 kx # Check whether --enable-werror was given.
9 kx if test "${enable_werror+set}" = set; then :
9 kx enableval=$enable_werror; case "${enableval}" in
9 kx yes | y) ERROR_ON_WARNING="yes" ;;
9 kx no | n) ERROR_ON_WARNING="no" ;;
9 kx *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9 kx esac
9 kx fi
9 kx
9 kx
9 kx # Disable -Wformat by default when using gcc on mingw
9 kx case "${host}" in
9 kx *-*-mingw32*)
9 kx if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9 kx GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
9 kx GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
9 kx fi
9 kx ;;
9 kx *) ;;
9 kx esac
9 kx
9 kx # Enable -Werror by default when using gcc. Turn it off for releases.
9 kx if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
9 kx ERROR_ON_WARNING=yes
9 kx fi
9 kx
9 kx NO_WERROR=
9 kx if test "${ERROR_ON_WARNING}" = yes ; then
9 kx GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9 kx GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
9 kx NO_WERROR="-Wno-error"
9 kx fi
9 kx
9 kx if test "${GCC}" = yes ; then
9 kx WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9 kx WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
9 kx fi
9 kx
9 kx # Check whether --enable-build-warnings was given.
9 kx if test "${enable_build_warnings+set}" = set; then :
9 kx enableval=$enable_build_warnings; case "${enableval}" in
9 kx yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9 kx WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
9 kx no) if test "${GCC}" = yes ; then
9 kx WARN_CFLAGS="-w"
9 kx WARN_CFLAGS_FOR_BUILD="-w"
9 kx fi;;
9 kx ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9 kx WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
9 kx WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
9 kx *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9 kx WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
9 kx WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
9 kx *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
9 kx WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9 kx esac
9 kx fi
9 kx
9 kx
9 kx if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9 kx echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # Generate a header file
9 kx ac_config_headers="$ac_config_headers config.h:config.in"
9 kx
9 kx
9 kx
9 kx # Check whether --with-cpu was given.
9 kx if test "${with_cpu+set}" = set; then :
9 kx withval=$with_cpu;
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define TARGET_WITH_CPU "${with_cpu}"
9 kx _ACEOF
9 kx
9 kx fi
9 kx
9 kx
9 kx # PR 14072
9 kx
9 kx
9 kx # If we are on a DOS filesystem, we must use gdb.ini rather than
9 kx # .gdbinit.
9 kx case "${host}" in
9 kx *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
9 kx GDBINIT="gdb.ini"
9 kx ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
9 kx
9 kx ;;
9 kx *)
9 kx GDBINIT=".gdbinit"
9 kx ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
9 kx
9 kx ;;
9 kx esac
9 kx
9 kx
9 kx #We need this for the host.
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9 kx $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9 kx if ${ac_cv_c_bigendian+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_cv_c_bigendian=unknown
9 kx # See if we're dealing with a universal compiler.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #ifndef __APPLE_CC__
9 kx not a universal capable compiler
9 kx #endif
9 kx typedef int dummy;
9 kx
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx
9 kx # Check for potential -arch flags. It is not universal unless
9 kx # there are at least two -arch flags with different values.
9 kx ac_arch=
9 kx ac_prev=
9 kx for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9 kx if test -n "$ac_prev"; then
9 kx case $ac_word in
9 kx i?86 | x86_64 | ppc | ppc64)
9 kx if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9 kx ac_arch=$ac_word
9 kx else
9 kx ac_cv_c_bigendian=universal
9 kx break
9 kx fi
9 kx ;;
9 kx esac
9 kx ac_prev=
9 kx elif test "x$ac_word" = "x-arch"; then
9 kx ac_prev=arch
9 kx fi
9 kx done
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx if test $ac_cv_c_bigendian = unknown; then
9 kx # See if sys/param.h defines the BYTE_ORDER macro.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <sys/types.h>
9 kx #include <sys/param.h>
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9 kx && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9 kx && LITTLE_ENDIAN)
9 kx bogus endian macros
9 kx #endif
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx # It does; now see whether it defined to BIG_ENDIAN or not.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <sys/types.h>
9 kx #include <sys/param.h>
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx #if BYTE_ORDER != BIG_ENDIAN
9 kx not big endian
9 kx #endif
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_cv_c_bigendian=yes
9 kx else
9 kx ac_cv_c_bigendian=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx fi
9 kx if test $ac_cv_c_bigendian = unknown; then
9 kx # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <limits.h>
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9 kx bogus endian macros
9 kx #endif
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx # It does; now see whether it defined to _BIG_ENDIAN or not.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <limits.h>
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx #ifndef _BIG_ENDIAN
9 kx not big endian
9 kx #endif
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx ac_cv_c_bigendian=yes
9 kx else
9 kx ac_cv_c_bigendian=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx fi
9 kx if test $ac_cv_c_bigendian = unknown; then
9 kx # Compile a test program.
9 kx if test "$cross_compiling" = yes; then :
9 kx # Try to guess by grepping values from an object file.
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx short int ascii_mm[] =
9 kx { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9 kx short int ascii_ii[] =
9 kx { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9 kx int use_ascii (int i) {
9 kx return ascii_mm[i] + ascii_ii[i];
9 kx }
9 kx short int ebcdic_ii[] =
9 kx { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9 kx short int ebcdic_mm[] =
9 kx { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9 kx int use_ebcdic (int i) {
9 kx return ebcdic_mm[i] + ebcdic_ii[i];
9 kx }
9 kx extern int foo;
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx return use_ascii (foo) == use_ebcdic (foo);
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9 kx ac_cv_c_bigendian=yes
9 kx fi
9 kx if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9 kx if test "$ac_cv_c_bigendian" = unknown; then
9 kx ac_cv_c_bigendian=no
9 kx else
9 kx # finding both strings is unlikely to happen, but who knows?
9 kx ac_cv_c_bigendian=unknown
9 kx fi
9 kx fi
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx $ac_includes_default
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx /* Are we little or big endian? From Harbison&Steele. */
9 kx union
9 kx {
9 kx long int l;
9 kx char c[sizeof (long int)];
9 kx } u;
9 kx u.l = 1;
9 kx return u.c[sizeof (long int) - 1] == 1;
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_run "$LINENO"; then :
9 kx ac_cv_c_bigendian=no
9 kx else
9 kx ac_cv_c_bigendian=yes
9 kx fi
9 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
9 kx fi
9 kx
9 kx fi
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9 kx $as_echo "$ac_cv_c_bigendian" >&6; }
9 kx case $ac_cv_c_bigendian in #(
9 kx yes)
9 kx $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9 kx ;; #(
9 kx no)
9 kx ;; #(
9 kx universal)
9 kx
9 kx $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9 kx
9 kx ;; #(
9 kx *)
9 kx as_fn_error $? "unknown endianness
9 kx presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9 kx esac
9 kx
9 kx
9 kx te_file=generic
9 kx
9 kx # Makefile target for installing gas in $(tooldir)/bin.
9 kx install_tooldir=install-exec-tooldir
9 kx
9 kx canon_targets=""
9 kx all_targets=no
9 kx if test -n "$enable_targets" ; then
9 kx for t in `echo $enable_targets | sed 's/,/ /g'`; do
9 kx if test $t = "all"; then
9 kx all_targets=yes
9 kx continue
9 kx fi
9 kx result=`$ac_config_sub $t 2>/dev/null`
9 kx if test -n "$result" ; then
9 kx canon_targets="$canon_targets $result"
9 kx # else
9 kx # # Permit "all", etc. We don't support it yet though.
9 kx # canon_targets="$canon_targets $t"
9 kx fi
9 kx done
9 kx _gas_uniq_list="$canon_targets"
9 kx _gas_uniq_newlist=""
9 kx for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
9 kx case $_gas_uniq_i in
9 kx _gas_uniq_dummy) ;;
9 kx *) case " $_gas_uniq_newlist " in
9 kx *" $_gas_uniq_i "*) ;;
9 kx *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
9 kx esac ;;
9 kx esac
9 kx done
9 kx canon_targets=$_gas_uniq_newlist
9 kx
9 kx fi
9 kx
9 kx emulations=""
9 kx
9 kx for this_target in $target $canon_targets ; do
9 kx
9 kx targ=${this_target}
9 kx . ${srcdir}/configure.tgt
9 kx
9 kx case ${target_cpu} in
9 kx crisv32)
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_CRIS_ARCH $arch
9 kx _ACEOF
9 kx
9 kx ;;
9 kx esac
9 kx
9 kx if test ${this_target} = $target ; then
9 kx target_cpu_type=${cpu_type}
9 kx elif test ${target_cpu_type} != ${cpu_type} ; then
9 kx continue
9 kx fi
9 kx
9 kx generic_target=${cpu_type}-${target_vendor}-${target_os}
9 kx case ${generic_target} in
9 kx i386-*-msdosdjgpp* \
9 kx | i386-*-go32* \
9 kx | i386-go32-rtems*)
9 kx
9 kx $as_echo "#define STRICTCOFF 1" >>confdefs.h
9 kx
9 kx ;;
9 kx
9 kx i386-*-linux-* | x86_64-*-linux-*)
9 kx if test ${this_target} = $target \
9 kx && test ${ac_default_generate_x86_used_note} = unset; then
9 kx ac_default_generate_x86_used_note=1
9 kx fi
9 kx ;;
9 kx
9 kx i386-*-solaris2 \
9 kx | x86_64-*-solaris2 \
9 kx | i386-*-solaris2.[0-9] \
9 kx | i386-*-solaris2.1[01] \
9 kx | x86_64-*-solaris2.1[01])
9 kx if test ${this_target} = $target \
9 kx && test ${ac_default_x86_relax_relocations} = unset; then
9 kx ac_default_x86_relax_relocations=0
9 kx fi
9 kx ;;
9 kx
9 kx microblaze*)
9 kx ;;
9 kx
9 kx ppc-*-aix[5-9].*)
9 kx
9 kx $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
9 kx
9 kx ;;
9 kx ppc-*-solaris*)
9 kx if test ${this_target} = $target; then
9 kx
9 kx $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
9 kx
9 kx fi
9 kx if test x${endian} = xbig; then
9 kx as_fn_error $? "Solaris must be configured little endian" "$LINENO" 5
9 kx fi
9 kx ;;
9 kx esac
9 kx
9 kx if test ${this_target} = $target ; then
9 kx endian_def=
9 kx if test x${endian} = xbig; then
9 kx endian_def=1
9 kx elif test x${endian} = xlittle; then
9 kx endian_def=0
9 kx fi
9 kx if test x${endian_def} != x; then
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define TARGET_BYTES_BIG_ENDIAN $endian_def
9 kx _ACEOF
9 kx
9 kx fi
9 kx fi
9 kx
9 kx # Other random stuff.
9 kx
9 kx case ${cpu_type} in
9 kx mips)
9 kx # Set mips_cpu to the name of the default CPU.
9 kx case ${target_cpu} in
9 kx mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
9 kx mips_cpu=from-abi
9 kx ;;
9 kx mipsisa32 | mipsisa32el)
9 kx mips_cpu=mips32
9 kx ;;
9 kx mipsisa32r2 | mipsisa32r2el)
9 kx mips_cpu=mips32r2
9 kx ;;
9 kx mipsisa32r3 | mipsisa32r3el)
9 kx mips_cpu=mips32r3
9 kx ;;
9 kx mipsisa32r5 | mipsisa32r5el)
9 kx mips_cpu=mips32r5
9 kx ;;
9 kx mipsisa32r6 | mipsisa32r6el)
9 kx mips_cpu=mips32r6
9 kx ;;
9 kx mipsisa64 | mipsisa64el)
9 kx mips_cpu=mips64
9 kx ;;
9 kx mipsisa64r2 | mipsisa64r2el)
9 kx mips_cpu=mips64r2
9 kx ;;
9 kx mipsisa64r3 | mipsisa64r3el)
9 kx mips_cpu=mips64r3
9 kx ;;
9 kx mipsisa64r5 | mipsisa64r5el)
9 kx mips_cpu=mips64r5
9 kx ;;
9 kx mipsisa64r6 | mipsisa64r6el)
9 kx mips_cpu=mips64r6
9 kx ;;
9 kx mipstx39 | mipstx39el)
9 kx mips_cpu=r3900
9 kx ;;
9 kx mips64vr | mips64vrel)
9 kx mips_cpu=vr4100
9 kx ;;
9 kx mipsisa32r2* | mipsisa64r2*)
9 kx mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
9 kx ;;
9 kx mipsisa32r6* | mipsisa64r6*)
9 kx mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
9 kx ;;
9 kx mips64* | mipsisa64* | mipsisa32*)
9 kx mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
9 kx ;;
9 kx mips*)
9 kx mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
9 kx ;;
9 kx *)
9 kx as_fn_error $? "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
9 kx ;;
9 kx esac
9 kx # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
9 kx # binaries. It's a GNU extension that some OSes don't understand.
9 kx case ${target} in
9 kx *-*-irix*)
9 kx use_e_mips_abi_o32=0
9 kx ;;
9 kx *)
9 kx use_e_mips_abi_o32=1
9 kx ;;
9 kx esac
9 kx # Decide whether to generate 32-bit or 64-bit code by default.
9 kx # Used to resolve -march=from-abi when an embedded ABI is selected.
9 kx case ${target} in
9 kx mips64*-*-* | mipsisa64*-*-*)
9 kx mips_default_64bit=1
9 kx ;;
9 kx *)
9 kx mips_default_64bit=0
9 kx ;;
9 kx esac
9 kx # Decide which ABI to target by default.
9 kx case ${target} in
9 kx mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \
9 kx | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*)
9 kx mips_default_abi=N32_ABI
9 kx ;;
9 kx mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
9 kx mips_default_abi=O32_ABI
9 kx ;;
9 kx mips64*-openbsd*)
9 kx mips_default_abi=N64_ABI
9 kx ;;
9 kx *)
9 kx mips_default_abi=NO_ABI
9 kx ;;
9 kx esac
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
9 kx _ACEOF
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
9 kx _ACEOF
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define MIPS_DEFAULT_64BIT $mips_default_64bit
9 kx _ACEOF
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define MIPS_DEFAULT_ABI $mips_default_abi
9 kx _ACEOF
9 kx
9 kx ;;
9 kx esac
9 kx
9 kx # Do we need the opcodes library?
9 kx case ${cpu_type} in
9 kx vax | tic30 | i386 | arm)
9 kx ;;
9 kx
9 kx *)
9 kx need_opcodes=yes
9 kx
9 kx case "${enable_shared}" in
9 kx yes) shared_opcodes=true ;;
9 kx *opcodes*) shared_opcodes=true ;;
9 kx *) shared_opcodes=false ;;
9 kx esac
9 kx ;;
9 kx esac
9 kx
9 kx # Any other special object files needed ?
9 kx case ${cpu_type} in
9 kx
9 kx bfin)
9 kx for f in config/bfin-parse.o config/bfin-lex-wrapper.o; do
9 kx case " $extra_objects " in
9 kx *" $f "*) ;;
9 kx *) extra_objects="$extra_objects $f" ;;
9 kx esac
9 kx done
9 kx ;;
9 kx
9 kx bpf)
9 kx if test $this_target = $target ; then
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_ARCH "${arch}"
9 kx _ACEOF
9 kx
9 kx fi
9 kx using_cgen=yes
9 kx ;;
9 kx epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
9 kx using_cgen=yes
9 kx ;;
9 kx
9 kx loongarch)
9 kx for f in config/loongarch-parse.o config/loongarch-lex-wrapper.o; do
9 kx case " $extra_objects " in
9 kx *" $f "*) ;;
9 kx *) extra_objects="$extra_objects $f" ;;
9 kx esac
9 kx done
9 kx # --target=loongarch[32|64]-*-*. */
9 kx if test $this_target = $target ; then
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_ARCH "${arch}"
9 kx _ACEOF
9 kx
9 kx fi
9 kx ;;
9 kx
9 kx m32c)
9 kx using_cgen=yes
9 kx ;;
9 kx frv)
9 kx using_cgen=yes
9 kx ;;
9 kx m68k)
9 kx f=config/m68k-parse.o
9 kx case " $extra_objects " in
9 kx *" $f "*) ;;
9 kx *) extra_objects="$extra_objects $f" ;;
9 kx esac
9 kx ;;
9 kx
9 kx mep)
9 kx using_cgen=yes
9 kx ;;
9 kx
9 kx mips)
9 kx for f in itbl-parse.o itbl-lex-wrapper.o itbl-ops.o; do
9 kx case " $extra_objects " in
9 kx *" $f "*) ;;
9 kx *) extra_objects="$extra_objects $f" ;;
9 kx esac
9 kx done
9 kx ;;
9 kx
9 kx mt)
9 kx using_cgen=yes
9 kx ;;
9 kx
9 kx nds32)
9 kx # setup NDS32_LINUX_TOOLCHAIN definition
9 kx if test "linux" = $em; then
9 kx
9 kx $as_echo "#define NDS32_LINUX_TOOLCHAIN 1" >>confdefs.h
9 kx
9 kx else
9 kx
9 kx $as_echo "#define NDS32_LINUX_TOOLCHAIN 0" >>confdefs.h
9 kx
9 kx fi
9 kx
9 kx # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
9 kx # based on arch_name.
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
9 kx $as_echo_n "checking for default configuration of --with-arch... " >&6; }
9 kx if test "x${with_arch}" != x; then
9 kx case ${with_arch} in
9 kx v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
9 kx _ACEOF
9 kx
9 kx ;;
9 kx *)
9 kx as_fn_error $? "This kind of arch name does *NOT* exist!" "$LINENO" 5
9 kx ;;
9 kx esac
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
9 kx $as_echo "$with_arch" >&6; }
9 kx
9 kx # Decide features one by one.
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
9 kx $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
9 kx if test "x${enable_dx_regs}" = xyes; then
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
9 kx
9 kx else
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
9 kx $as_echo "$enable_dx_regs" >&6; }
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
9 kx $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
9 kx if test "x${enable_perf_ext}" = xno; then
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
9 kx
9 kx else
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
9 kx $as_echo "$enable_perf_ext" >&6; }
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
9 kx $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
9 kx if test "x${enable_perf_ext2}" = xno; then
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
9 kx
9 kx else
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
9 kx $as_echo "$enable_perf_ext2" >&6; }
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
9 kx $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
9 kx if test "x${enable_string_ext}" = xno; then
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
9 kx
9 kx else
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
9 kx $as_echo "$enable_string_ext" >&6; }
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
9 kx $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
9 kx if test "x${enable_audio_ext}" = xno; then
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
9 kx
9 kx else
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
9 kx $as_echo "$enable_audio_ext" >&6; }
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dsp-ext" >&5
9 kx $as_echo_n "checking for default configuration of --enable-dsp-ext... " >&6; }
9 kx if test "x${enable_dsp_ext}" = xno; then
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_DSP_EXT 0" >>confdefs.h
9 kx
9 kx else
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_DSP_EXT 1" >>confdefs.h
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dsp_ext" >&5
9 kx $as_echo "$enable_dsp_ext" >&6; }
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-zol-ext" >&5
9 kx $as_echo_n "checking for default configuration of --enable-zol-ext... " >&6; }
9 kx if test "x${enable_zol_ext}" = xno; then
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_ZOL_EXT 0" >>confdefs.h
9 kx
9 kx else
9 kx
9 kx $as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zol_ext" >&5
9 kx $as_echo "$enable_zol_ext" >&6; }
9 kx ;;
9 kx
9 kx aarch64 | i386 | s390 | sparc)
9 kx if test $this_target = $target ; then
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_ARCH "${arch}"
9 kx _ACEOF
9 kx
9 kx fi
9 kx ;;
9 kx
9 kx riscv)
9 kx # --target=riscv[32|64]-*-*. */
9 kx if test $this_target = $target ; then
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_ARCH "${arch}"
9 kx _ACEOF
9 kx
9 kx fi
9 kx
9 kx # --with-arch=<value>. The syntax of <value> is same as Gas option -march.
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
9 kx $as_echo_n "checking for default configuration of --with-arch... " >&6; }
9 kx if test "x${with_arch}" != x; then
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_RISCV_ARCH_WITH_EXT "$with_arch"
9 kx _ACEOF
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
9 kx $as_echo "$with_arch" >&6; }
9 kx
9 kx # --with-isa-spec=[2.2|20190608|20191213].
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-isa-spec" >&5
9 kx $as_echo_n "checking for default configuration of --with-isa-spec... " >&6; }
9 kx if test "x${with_isa_spec}" != x; then
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_RISCV_ISA_SPEC "$with_isa_spec"
9 kx _ACEOF
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_isa_spec" >&5
9 kx $as_echo "$with_isa_spec" >&6; }
9 kx
9 kx # --with-priv-spec=[1.9.1|1.10|1.11|1.12].
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-priv-spec" >&5
9 kx $as_echo_n "checking for default configuration of --with-priv-spec... " >&6; }
9 kx if test "x${with_priv_spec}" != x; then
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_RISCV_PRIV_SPEC "$with_priv_spec"
9 kx _ACEOF
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_priv_spec" >&5
9 kx $as_echo "$with_priv_spec" >&6; }
9 kx ;;
9 kx
9 kx rl78)
9 kx f=config/rl78-parse.o
9 kx case " $extra_objects " in
9 kx *" $f "*) ;;
9 kx *) extra_objects="$extra_objects $f" ;;
9 kx esac
9 kx ;;
9 kx
9 kx rx)
9 kx f=config/rx-parse.o
9 kx case " $extra_objects " in
9 kx *" $f "*) ;;
9 kx *) extra_objects="$extra_objects $f" ;;
9 kx esac
9 kx ;;
9 kx
9 kx xstormy16)
9 kx using_cgen=yes
9 kx ;;
9 kx
9 kx xtensa)
9 kx f=config/xtensa-relax.o
9 kx case " $extra_objects " in
9 kx *" $f "*) ;;
9 kx *) extra_objects="$extra_objects $f" ;;
9 kx esac
9 kx ;;
9 kx
9 kx *)
9 kx ;;
9 kx esac
9 kx
9 kx if test $using_cgen = yes ; then
9 kx f=cgen.o
9 kx case " $extra_objects " in
9 kx *" $f "*) ;;
9 kx *) extra_objects="$extra_objects $f" ;;
9 kx esac
9 kx fi
9 kx
9 kx # See if we really can support this configuration with the emulation code.
9 kx
9 kx if test $this_target = $target ; then
9 kx obj_format=$fmt
9 kx te_file=$em
9 kx fi
9 kx
9 kx case ${te_file} in
9 kx vms)
9 kx f=config/te-vms.o
9 kx case " $extra_objects " in
9 kx *" $f "*) ;;
9 kx *) extra_objects="$extra_objects $f" ;;
9 kx esac ;;
9 kx esac
9 kx
9 kx # From target name and format, produce a list of supported emulations.
9 kx
9 kx case ${generic_target}-${fmt} in
9 kx mips-*-*-*) case "$endian" in
9 kx big) emulation="mipsbelf mipslelf mipself" ;;
9 kx *) emulation="mipslelf mipsbelf mipself" ;;
9 kx esac ;;
9 kx # i386-pc-pe-coff != i386-pc-coff.
9 kx i386-*-pe-coff) ;;
9 kx # Uncommenting the next line will turn on support for i386 AOUT
9 kx # for the default linux configuration
9 kx # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
9 kx #
9 kx i386-*-aout) emulation="i386aout" ;;
9 kx i386-*-coff) emulation="i386coff" ;;
9 kx i386-*-elf) emulation="i386elf" ;;
9 kx
9 kx # Always all formats. The first stated emulation becomes the default.
9 kx cris-*-*aout*) emulation="crisaout criself" ;;
9 kx cris-*-*) emulation="criself crisaout" ;;
9 kx esac
9 kx
9 kx emulations="$emulations $emulation"
9 kx
9 kx done
9 kx
9 kx if test ${ac_default_x86_relax_relocations} = unset; then
9 kx ac_default_x86_relax_relocations=1
9 kx fi
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
9 kx _ACEOF
9 kx
9 kx
9 kx if test ${ac_default_elf_stt_common} = unset; then
9 kx ac_default_elf_stt_common=0
9 kx fi
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
9 kx _ACEOF
9 kx
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_GENERATE_BUILD_NOTES $ac_default_generate_build_notes
9 kx _ACEOF
9 kx
9 kx
9 kx if test ${ac_default_generate_x86_used_note} = unset; then
9 kx ac_default_generate_x86_used_note=0
9 kx fi
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_X86_USED_NOTE $ac_default_generate_x86_used_note
9 kx _ACEOF
9 kx
9 kx
9 kx if test ${ac_default_generate_riscv_attr} = unset; then
9 kx ac_default_generate_riscv_attr=1
9 kx fi
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr
9 kx _ACEOF
9 kx
9 kx
9 kx if test ${ac_default_mips_fix_loongson3_llsc} = unset; then
9 kx ac_default_mips_fix_loongson3_llsc=0
9 kx fi
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_MIPS_FIX_LOONGSON3_LLSC $ac_default_mips_fix_loongson3_llsc
9 kx _ACEOF
9 kx
9 kx
9 kx if test x$ac_default_compressed_debug_sections = xyes ; then
9 kx
9 kx $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
9 kx
9 kx fi
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
9 kx _ACEOF
9 kx
9 kx
9 kx # Turn on all targets if possible
9 kx if test ${all_targets} = "yes"; then
9 kx case ${target_cpu_type} in
9 kx i386)
9 kx case ${obj_format} in
9 kx aout)
9 kx emulations="$emulations i386coff i386elf"
9 kx ;;
9 kx coff)
9 kx emulations="$emulations i386aout i386elf"
9 kx ;;
9 kx elf)
9 kx emulations="$emulations i386aout i386coff"
9 kx ;;
9 kx esac
9 kx ;;
9 kx x86_64)
9 kx case ${obj_format} in
9 kx aout)
9 kx emulations="$emulations i386coff i386elf"
9 kx ;;
9 kx coff)
9 kx emulations="$emulations i386aout i386elf"
9 kx ;;
9 kx elf)
9 kx emulations="$emulations i386aout i386coff"
9 kx ;;
9 kx esac
9 kx ;;
9 kx esac
9 kx fi
9 kx
9 kx # PE code has way too many macros tweaking behaviour
9 kx case ${te_file} in
9 kx pe*) emulations="" ;;
9 kx esac
9 kx
9 kx # Assign floating point type. Most processors with FP support
9 kx # IEEE FP. On those that don't support FP at all, usually IEEE
9 kx # is emulated.
9 kx case ${target_cpu} in
9 kx vax | pdp11 ) atof=vax ;;
9 kx *) atof=ieee ;;
9 kx esac
9 kx
9 kx case "${obj_format}" in
9 kx "") as_fn_error $? "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
9 kx esac
9 kx
9 kx # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
9 kx cgen_cpu_prefix=""
9 kx if test $using_cgen = yes ; then
9 kx case ${target_cpu} in
9 kx or1knd)
9 kx cgen_cpu_prefix=or1k ;;
9 kx *) cgen_cpu_prefix=${target_cpu} ;;
9 kx esac
9 kx
9 kx
9 kx $as_echo "#define USING_CGEN 1" >>confdefs.h
9 kx
9 kx fi
9 kx
9 kx
9 kx if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
9 kx as_fn_error $? "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
9 kx fi
9 kx
9 kx if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
9 kx as_fn_error $? "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
9 kx fi
9 kx
9 kx # Some COFF configurations want these random other flags set.
9 kx case ${obj_format} in
9 kx coff)
9 kx case ${target_cpu_type} in
9 kx i386)
9 kx $as_echo "#define I386COFF 1" >>confdefs.h
9 kx ;;
9 kx x86_64)
9 kx $as_echo "#define I386COFF 1" >>confdefs.h
9 kx ;;
9 kx esac
9 kx ;;
9 kx esac
9 kx
9 kx # Getting this done right is going to be a bitch. Each configuration specified
9 kx # with --enable-targets=... should be checked for environment, format, cpu
9 kx # setting.
9 kx #
9 kx # For each configuration, the necessary object file support code must be linked
9 kx # in. This might be only one, it might be up to four. The necessary emulation
9 kx # code needs to be provided, too.
9 kx #
9 kx # And then there's "--enable-targets=all"....
9 kx #
9 kx # For now, just always do it for MIPS ELF configurations. Sigh.
9 kx
9 kx formats="${obj_format}"
9 kx emfiles=""
9 kx EMULATIONS=""
9 kx _gas_uniq_list="$emulations"
9 kx _gas_uniq_newlist=""
9 kx for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
9 kx case $_gas_uniq_i in
9 kx _gas_uniq_dummy) ;;
9 kx *) case " $_gas_uniq_newlist " in
9 kx *" $_gas_uniq_i "*) ;;
9 kx *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
9 kx esac ;;
9 kx esac
9 kx done
9 kx emulations=$_gas_uniq_newlist
9 kx
9 kx for em in . $emulations ; do
9 kx case $em in
9 kx .) continue ;;
9 kx mipsbelf | mipslelf | mipself)
9 kx fmt=elf file=mipself ;;
9 kx *coff)
9 kx fmt=coff file=$em ;;
9 kx *aout)
9 kx fmt=aout file=$em ;;
9 kx *elf)
9 kx fmt=elf file=$em ;;
9 kx esac
9 kx formats="$formats $fmt"
9 kx emfiles="$emfiles config/e-$file.o"
9 kx EMULATIONS="$EMULATIONS &$em,"
9 kx done
9 kx _gas_uniq_list="$formats"
9 kx _gas_uniq_newlist=""
9 kx for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
9 kx case $_gas_uniq_i in
9 kx _gas_uniq_dummy) ;;
9 kx *) case " $_gas_uniq_newlist " in
9 kx *" $_gas_uniq_i "*) ;;
9 kx *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
9 kx esac ;;
9 kx esac
9 kx done
9 kx formats=$_gas_uniq_newlist
9 kx
9 kx _gas_uniq_list="$emfiles"
9 kx _gas_uniq_newlist=""
9 kx for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
9 kx case $_gas_uniq_i in
9 kx _gas_uniq_dummy) ;;
9 kx *) case " $_gas_uniq_newlist " in
9 kx *" $_gas_uniq_i "*) ;;
9 kx *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
9 kx esac ;;
9 kx esac
9 kx done
9 kx emfiles=$_gas_uniq_newlist
9 kx
9 kx if test `set . $formats ; shift ; echo $#` -gt 1 ; then
9 kx for fmt in $formats ; do
9 kx case $fmt in
9 kx aout)
9 kx $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
9 kx ;;
9 kx coff)
9 kx $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
9 kx ;;
9 kx ecoff)
9 kx $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
9 kx ;;
9 kx elf)
9 kx $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
9 kx ;;
9 kx generic)
9 kx $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
9 kx ;;
9 kx som)
9 kx $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
9 kx ;;
9 kx esac
9 kx extra_objects="$extra_objects config/obj-$fmt.o"
9 kx done
9 kx obj_format=multi
9 kx fi
9 kx if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
9 kx DEFAULT_EMULATION=`set . $emulations ; echo $2`
9 kx # e-mipself has more than one emulation per file, e-i386* has just one at the
9 kx # moment. If only one emulation is specified, then don't define
9 kx # USE_EMULATIONS or include any of the e-files as they will only be bloat.
9 kx case "${obj_format}${emfiles}" in
9 kx multi* | *mipself*)
9 kx extra_objects="$extra_objects $emfiles"
9 kx
9 kx $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
9 kx ;;
9 kx esac
9 kx fi
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define EMULATIONS $EMULATIONS
9 kx _ACEOF
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
9 kx _ACEOF
9 kx
9 kx
9 kx reject_dev_configs=yes
9 kx
9 kx case ${reject_dev_configs}-${dev} in
9 kx yes-yes) # Oops.
9 kx as_fn_error $? "GAS does not support the ${generic_target} configuration." "$LINENO" 5
9 kx ;;
9 kx esac
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # do we need the opcodes library?
9 kx case "${need_opcodes}" in
9 kx yes)
9 kx OPCODES_LIB=../opcodes/libopcodes.la
9 kx ;;
9 kx esac
9 kx
9 kx
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define TARGET_ALIAS "${target_alias}"
9 kx _ACEOF
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define TARGET_CANONICAL "${target}"
9 kx _ACEOF
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define TARGET_CPU "${target_cpu}"
9 kx _ACEOF
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define TARGET_VENDOR "${target_vendor}"
9 kx _ACEOF
9 kx
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define TARGET_OS "${target_os}"
9 kx _ACEOF
9 kx
9 kx
9 kx for ac_prog in 'bison -y' byacc
9 kx do
9 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
9 kx set dummy $ac_prog; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_YACC+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$YACC"; then
9 kx ac_cv_prog_YACC="$YACC" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_YACC="$ac_prog"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx YACC=$ac_cv_prog_YACC
9 kx if test -n "$YACC"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
9 kx $as_echo "$YACC" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx test -n "$YACC" && break
9 kx done
9 kx test -n "$YACC" || YACC="yacc"
9 kx
9 kx for ac_prog in flex lex
9 kx do
9 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
9 kx set dummy $ac_prog; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_prog_LEX+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx if test -n "$LEX"; then
9 kx ac_cv_prog_LEX="$LEX" # Let the user override the test.
9 kx else
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_prog_LEX="$ac_prog"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx fi
9 kx fi
9 kx LEX=$ac_cv_prog_LEX
9 kx if test -n "$LEX"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
9 kx $as_echo "$LEX" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx test -n "$LEX" && break
9 kx done
9 kx test -n "$LEX" || LEX=":"
9 kx
9 kx case "$LEX" in
9 kx :|*"missing "*) ;;
9 kx *) cat >conftest.l <<_ACEOF
9 kx %%
9 kx a { ECHO; }
9 kx b { REJECT; }
9 kx c { yymore (); }
9 kx d { yyless (1); }
9 kx e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
9 kx yyless ((input () != 0)); }
9 kx f { unput (yytext[0]); }
9 kx . { BEGIN INITIAL; }
9 kx %%
9 kx #ifdef YYTEXT_POINTER
9 kx extern char *yytext;
9 kx #endif
9 kx int
9 kx main (void)
9 kx {
9 kx return ! yylex () + ! yywrap ();
9 kx }
9 kx _ACEOF
9 kx { { ac_try="$LEX conftest.l"
9 kx case "(($ac_try" in
9 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9 kx *) ac_try_echo=$ac_try;;
9 kx esac
9 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9 kx $as_echo "$ac_try_echo"; } >&5
9 kx (eval "$LEX conftest.l") 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
9 kx $as_echo_n "checking lex output file root... " >&6; }
9 kx if ${ac_cv_prog_lex_root+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx
9 kx if test -f lex.yy.c; then
9 kx ac_cv_prog_lex_root=lex.yy
9 kx elif test -f lexyy.c; then
9 kx ac_cv_prog_lex_root=lexyy
9 kx else
9 kx as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
9 kx fi
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
9 kx $as_echo "$ac_cv_prog_lex_root" >&6; }
9 kx LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9 kx
9 kx if test -z "${LEXLIB+set}"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
9 kx $as_echo_n "checking lex library... " >&6; }
9 kx if ${ac_cv_lib_lex+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx
9 kx ac_save_LIBS=$LIBS
9 kx ac_cv_lib_lex='none needed'
9 kx for ac_lib in '' -lfl -ll; do
9 kx LIBS="$ac_lib $ac_save_LIBS"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx `cat $LEX_OUTPUT_ROOT.c`
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx ac_cv_lib_lex=$ac_lib
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx test "$ac_cv_lib_lex" != 'none needed' && break
9 kx done
9 kx LIBS=$ac_save_LIBS
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
9 kx $as_echo "$ac_cv_lib_lex" >&6; }
9 kx test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
9 kx fi
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
9 kx $as_echo_n "checking whether yytext is a pointer... " >&6; }
9 kx if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx # POSIX says lex can declare yytext either as a pointer or an array; the
9 kx # default is implementation-dependent. Figure out which it is, since
9 kx # not all implementations provide the %pointer and %array declarations.
9 kx ac_cv_prog_lex_yytext_pointer=no
9 kx ac_save_LIBS=$LIBS
9 kx LIBS="$LEXLIB $ac_save_LIBS"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx #define YYTEXT_POINTER 1
9 kx `cat $LEX_OUTPUT_ROOT.c`
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx ac_cv_prog_lex_yytext_pointer=yes
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx LIBS=$ac_save_LIBS
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
9 kx $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
9 kx if test $ac_cv_prog_lex_yytext_pointer = yes; then
9 kx
9 kx $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9 kx
9 kx fi
9 kx rm -f conftest.l $LEX_OUTPUT_ROOT.c
9 kx ;;
9 kx esac
9 kx if test "$LEX" = :; then
9 kx LEX=${am_missing_run}flex
9 kx fi
9 kx
9 kx ALL_LINGUAS="es fi fr id ja ru rw sv tr uk zh_CN"
9 kx # If we haven't got the data from the intl directory,
9 kx # assume NLS is disabled.
9 kx USE_NLS=no
9 kx LIBINTL=
9 kx LIBINTL_DEP=
9 kx INCINTL=
9 kx XGETTEXT=
9 kx GMSGFMT=
9 kx POSUB=
9 kx
9 kx if test -f ../intl/config.intl; then
9 kx . ../intl/config.intl
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9 kx $as_echo_n "checking whether NLS is requested... " >&6; }
9 kx if test x"$USE_NLS" != xyes; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9 kx $as_echo "yes" >&6; }
9 kx
9 kx $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
9 kx $as_echo_n "checking for catalogs to be installed... " >&6; }
9 kx # Look for .po and .gmo files in the source directory.
9 kx CATALOGS=
9 kx XLINGUAS=
9 kx for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9 kx # If there aren't any .gmo files the shell will give us the
9 kx # literal string "../path/to/srcdir/po/*.gmo" which has to be
9 kx # weeded out.
9 kx case "$cat" in *\**)
9 kx continue;;
9 kx esac
9 kx # The quadruple backslash is collapsed to a double backslash
9 kx # by the backticks, then collapsed again by the double quotes,
9 kx # leaving us with one backslash in the sed expression (right
9 kx # before the dot that mustn't act as a wildcard).
9 kx cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
9 kx lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
9 kx # The user is allowed to set LINGUAS to a list of languages to
9 kx # install catalogs for. If it's empty that means "all of them."
9 kx if test "x$LINGUAS" = x; then
9 kx CATALOGS="$CATALOGS $cat"
9 kx XLINGUAS="$XLINGUAS $lang"
9 kx else
9 kx case "$LINGUAS" in *$lang*)
9 kx CATALOGS="$CATALOGS $cat"
9 kx XLINGUAS="$XLINGUAS $lang"
9 kx ;;
9 kx esac
9 kx fi
9 kx done
9 kx LINGUAS="$XLINGUAS"
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
9 kx $as_echo "$LINGUAS" >&6; }
9 kx
9 kx
9 kx DATADIRNAME=share
9 kx
9 kx INSTOBJEXT=.mo
9 kx
9 kx GENCAT=gencat
9 kx
9 kx CATOBJEXT=.gmo
9 kx
9 kx fi
9 kx
9 kx MKINSTALLDIRS=
9 kx if test -n "$ac_aux_dir"; then
9 kx case "$ac_aux_dir" in
9 kx /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
9 kx *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
9 kx esac
9 kx fi
9 kx if test -z "$MKINSTALLDIRS"; then
9 kx MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9 kx fi
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9 kx $as_echo_n "checking whether NLS is requested... " >&6; }
9 kx # Check whether --enable-nls was given.
9 kx if test "${enable_nls+set}" = set; then :
9 kx enableval=$enable_nls; USE_NLS=$enableval
9 kx else
9 kx USE_NLS=yes
9 kx fi
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9 kx $as_echo "$USE_NLS" >&6; }
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx # Prepare PATH_SEPARATOR.
9 kx # The user is always right.
9 kx if test "${PATH_SEPARATOR+set}" != set; then
9 kx echo "#! /bin/sh" >conf$$.sh
9 kx echo "exit 0" >>conf$$.sh
9 kx chmod +x conf$$.sh
9 kx if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9 kx PATH_SEPARATOR=';'
9 kx else
9 kx PATH_SEPARATOR=:
9 kx fi
9 kx rm -f conf$$.sh
9 kx fi
9 kx
9 kx # Find out how to test for executable files. Don't use a zero-byte file,
9 kx # as systems may use methods other than mode bits to determine executability.
9 kx cat >conf$$.file <<_ASEOF
9 kx #! /bin/sh
9 kx exit 0
9 kx _ASEOF
9 kx chmod +x conf$$.file
9 kx if test -x conf$$.file >/dev/null 2>&1; then
9 kx ac_executable_p="test -x"
9 kx else
9 kx ac_executable_p="test -f"
9 kx fi
9 kx rm -f conf$$.file
9 kx
9 kx # Extract the first word of "msgfmt", so it can be a program name with args.
9 kx set dummy msgfmt; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_path_MSGFMT+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx case "$MSGFMT" in
9 kx [\\/]* | ?:[\\/]*)
9 kx ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9 kx ;;
9 kx *)
9 kx ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9 kx for ac_dir in $PATH; do
9 kx IFS="$ac_save_IFS"
9 kx test -z "$ac_dir" && ac_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9 kx if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
9 kx (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9 kx ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
9 kx break 2
9 kx fi
9 kx fi
9 kx done
9 kx done
9 kx IFS="$ac_save_IFS"
9 kx test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
9 kx ;;
9 kx esac
9 kx fi
9 kx MSGFMT="$ac_cv_path_MSGFMT"
9 kx if test "$MSGFMT" != ":"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9 kx $as_echo "$MSGFMT" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx # Extract the first word of "gmsgfmt", so it can be a program name with args.
9 kx set dummy gmsgfmt; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_path_GMSGFMT+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx case $GMSGFMT in
9 kx [\\/]* | ?:[\\/]*)
9 kx ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9 kx ;;
9 kx *)
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9 kx ;;
9 kx esac
9 kx fi
9 kx GMSGFMT=$ac_cv_path_GMSGFMT
9 kx if test -n "$GMSGFMT"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
9 kx $as_echo "$GMSGFMT" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx # Prepare PATH_SEPARATOR.
9 kx # The user is always right.
9 kx if test "${PATH_SEPARATOR+set}" != set; then
9 kx echo "#! /bin/sh" >conf$$.sh
9 kx echo "exit 0" >>conf$$.sh
9 kx chmod +x conf$$.sh
9 kx if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9 kx PATH_SEPARATOR=';'
9 kx else
9 kx PATH_SEPARATOR=:
9 kx fi
9 kx rm -f conf$$.sh
9 kx fi
9 kx
9 kx # Find out how to test for executable files. Don't use a zero-byte file,
9 kx # as systems may use methods other than mode bits to determine executability.
9 kx cat >conf$$.file <<_ASEOF
9 kx #! /bin/sh
9 kx exit 0
9 kx _ASEOF
9 kx chmod +x conf$$.file
9 kx if test -x conf$$.file >/dev/null 2>&1; then
9 kx ac_executable_p="test -x"
9 kx else
9 kx ac_executable_p="test -f"
9 kx fi
9 kx rm -f conf$$.file
9 kx
9 kx # Extract the first word of "xgettext", so it can be a program name with args.
9 kx set dummy xgettext; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_path_XGETTEXT+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx case "$XGETTEXT" in
9 kx [\\/]* | ?:[\\/]*)
9 kx ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9 kx ;;
9 kx *)
9 kx ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9 kx for ac_dir in $PATH; do
9 kx IFS="$ac_save_IFS"
9 kx test -z "$ac_dir" && ac_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9 kx if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
9 kx (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9 kx ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
9 kx break 2
9 kx fi
9 kx fi
9 kx done
9 kx done
9 kx IFS="$ac_save_IFS"
9 kx test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9 kx ;;
9 kx esac
9 kx fi
9 kx XGETTEXT="$ac_cv_path_XGETTEXT"
9 kx if test "$XGETTEXT" != ":"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9 kx $as_echo "$XGETTEXT" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx rm -f messages.po
9 kx
9 kx
9 kx # Prepare PATH_SEPARATOR.
9 kx # The user is always right.
9 kx if test "${PATH_SEPARATOR+set}" != set; then
9 kx echo "#! /bin/sh" >conf$$.sh
9 kx echo "exit 0" >>conf$$.sh
9 kx chmod +x conf$$.sh
9 kx if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9 kx PATH_SEPARATOR=';'
9 kx else
9 kx PATH_SEPARATOR=:
9 kx fi
9 kx rm -f conf$$.sh
9 kx fi
9 kx
9 kx # Find out how to test for executable files. Don't use a zero-byte file,
9 kx # as systems may use methods other than mode bits to determine executability.
9 kx cat >conf$$.file <<_ASEOF
9 kx #! /bin/sh
9 kx exit 0
9 kx _ASEOF
9 kx chmod +x conf$$.file
9 kx if test -x conf$$.file >/dev/null 2>&1; then
9 kx ac_executable_p="test -x"
9 kx else
9 kx ac_executable_p="test -f"
9 kx fi
9 kx rm -f conf$$.file
9 kx
9 kx # Extract the first word of "msgmerge", so it can be a program name with args.
9 kx set dummy msgmerge; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_path_MSGMERGE+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx case "$MSGMERGE" in
9 kx [\\/]* | ?:[\\/]*)
9 kx ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9 kx ;;
9 kx *)
9 kx ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9 kx for ac_dir in $PATH; do
9 kx IFS="$ac_save_IFS"
9 kx test -z "$ac_dir" && ac_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9 kx if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
9 kx ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
9 kx break 2
9 kx fi
9 kx fi
9 kx done
9 kx done
9 kx IFS="$ac_save_IFS"
9 kx test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
9 kx ;;
9 kx esac
9 kx fi
9 kx MSGMERGE="$ac_cv_path_MSGMERGE"
9 kx if test "$MSGMERGE" != ":"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
9 kx $as_echo "$MSGMERGE" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx if test "$GMSGFMT" != ":"; then
9 kx if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
9 kx (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9 kx : ;
9 kx else
9 kx GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
9 kx $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
9 kx GMSGFMT=":"
9 kx fi
9 kx fi
9 kx
9 kx if test "$XGETTEXT" != ":"; then
9 kx if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
9 kx (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9 kx : ;
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
9 kx $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
9 kx XGETTEXT=":"
9 kx fi
9 kx rm -f messages.po
9 kx fi
9 kx
9 kx ac_config_commands="$ac_config_commands default-1"
9 kx
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9 kx $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9 kx # Check whether --enable-maintainer-mode was given.
9 kx if test "${enable_maintainer_mode+set}" = set; then :
9 kx enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9 kx else
9 kx USE_MAINTAINER_MODE=no
9 kx fi
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9 kx $as_echo "$USE_MAINTAINER_MODE" >&6; }
9 kx if test $USE_MAINTAINER_MODE = yes; then
9 kx MAINTAINER_MODE_TRUE=
9 kx MAINTAINER_MODE_FALSE='#'
9 kx else
9 kx MAINTAINER_MODE_TRUE='#'
9 kx MAINTAINER_MODE_FALSE=
9 kx fi
9 kx
9 kx MAINT=$MAINTAINER_MODE_TRUE
9 kx
9 kx
9 kx if false; then
9 kx GENINSRC_NEVER_TRUE=
9 kx GENINSRC_NEVER_FALSE='#'
9 kx else
9 kx GENINSRC_NEVER_TRUE='#'
9 kx GENINSRC_NEVER_FALSE=
9 kx fi
9 kx
9 kx
9 kx
9 kx for ac_header in memory.h sys/stat.h sys/types.h unistd.h
9 kx do :
9 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9 kx ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9 kx _ACEOF
9 kx
9 kx fi
9 kx
9 kx done
9 kx
9 kx
9 kx # Put this here so that autoconf's "cross-compiling" message doesn't confuse
9 kx # people who are not cross-compiling but are compiling cross-assemblers.
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
9 kx $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
9 kx if test "${host}" = "${target}"; then
9 kx cross_gas=no
9 kx else
9 kx cross_gas=yes
9 kx
9 kx $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
9 kx $as_echo "$cross_gas" >&6; }
9 kx
9 kx for ac_func in strsignal
9 kx do :
9 kx ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
9 kx if test "x$ac_cv_func_strsignal" = xyes; then :
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define HAVE_STRSIGNAL 1
9 kx _ACEOF
9 kx
9 kx fi
9 kx done
9 kx
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9 kx $as_echo_n "checking for LC_MESSAGES... " >&6; }
9 kx if ${am_cv_val_LC_MESSAGES+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <locale.h>
9 kx int
9 kx main ()
9 kx {
9 kx return LC_MESSAGES
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx am_cv_val_LC_MESSAGES=yes
9 kx else
9 kx am_cv_val_LC_MESSAGES=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9 kx $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9 kx if test $am_cv_val_LC_MESSAGES = yes; then
9 kx
9 kx $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9 kx
9 kx fi
9 kx
9 kx
9 kx # do we need the math library?
9 kx case "${need_libm}" in
9 kx yes)
9 kx LIBM=
9 kx case $host in
9 kx *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
9 kx # These system don't have libm, or don't need it
9 kx ;;
9 kx *-ncr-sysv4.3*)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
9 kx $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
9 kx if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_check_lib_save_LIBS=$LIBS
9 kx LIBS="-lmw $LIBS"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx /* Override any GCC internal prototype to avoid an error.
9 kx Use char because int might match the return type of a GCC
9 kx builtin and then its argument prototype would still apply. */
9 kx #ifdef __cplusplus
9 kx extern "C"
9 kx #endif
9 kx char _mwvalidcheckl ();
9 kx int
9 kx main ()
9 kx {
9 kx return _mwvalidcheckl ();
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx ac_cv_lib_mw__mwvalidcheckl=yes
9 kx else
9 kx ac_cv_lib_mw__mwvalidcheckl=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx LIBS=$ac_check_lib_save_LIBS
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
9 kx $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
9 kx if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
9 kx LIBM="-lmw"
9 kx fi
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
9 kx $as_echo_n "checking for cos in -lm... " >&6; }
9 kx if ${ac_cv_lib_m_cos+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_check_lib_save_LIBS=$LIBS
9 kx LIBS="-lm $LIBS"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx /* Override any GCC internal prototype to avoid an error.
9 kx Use char because int might match the return type of a GCC
9 kx builtin and then its argument prototype would still apply. */
9 kx #ifdef __cplusplus
9 kx extern "C"
9 kx #endif
9 kx char cos ();
9 kx int
9 kx main ()
9 kx {
9 kx return cos ();
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx ac_cv_lib_m_cos=yes
9 kx else
9 kx ac_cv_lib_m_cos=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx LIBS=$ac_check_lib_save_LIBS
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
9 kx $as_echo "$ac_cv_lib_m_cos" >&6; }
9 kx if test "x$ac_cv_lib_m_cos" = xyes; then :
9 kx LIBM="$LIBM -lm"
9 kx fi
9 kx
9 kx ;;
9 kx *)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
9 kx $as_echo_n "checking for cos in -lm... " >&6; }
9 kx if ${ac_cv_lib_m_cos+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx ac_check_lib_save_LIBS=$LIBS
9 kx LIBS="-lm $LIBS"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx /* Override any GCC internal prototype to avoid an error.
9 kx Use char because int might match the return type of a GCC
9 kx builtin and then its argument prototype would still apply. */
9 kx #ifdef __cplusplus
9 kx extern "C"
9 kx #endif
9 kx char cos ();
9 kx int
9 kx main ()
9 kx {
9 kx return cos ();
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx ac_cv_lib_m_cos=yes
9 kx else
9 kx ac_cv_lib_m_cos=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx LIBS=$ac_check_lib_save_LIBS
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
9 kx $as_echo "$ac_cv_lib_m_cos" >&6; }
9 kx if test "x$ac_cv_lib_m_cos" = xyes; then :
9 kx LIBM="-lm"
9 kx fi
9 kx
9 kx ;;
9 kx esac
9 kx
9 kx
9 kx
9 kx ;;
9 kx esac
9 kx
9 kx # Some non-ANSI preprocessors botch requoting inside strings. That's bad
9 kx # enough, but on some of those systems, the assert macro relies on requoting
9 kx # working properly!
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
9 kx $as_echo_n "checking for working assert macro... " >&6; }
9 kx if ${gas_cv_assert_ok+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <assert.h>
9 kx #include <string.h>
9 kx #include <stdio.h>
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx /* check for requoting problems */
9 kx static int a, b, c, d;
9 kx static char *s;
9 kx assert (!strcmp(s, "foo bar baz quux"));
9 kx /* check for newline handling */
9 kx assert (a == b
9 kx || c == d);
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx gas_cv_assert_ok=yes
9 kx else
9 kx gas_cv_assert_ok=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
9 kx $as_echo "$gas_cv_assert_ok" >&6; }
9 kx test $gas_cv_assert_ok = yes ||
9 kx $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
9 kx
9 kx
9 kx
9 kx # On some systems, the system header files may not declare malloc, realloc,
9 kx # and free. There are places where gas needs these functions to have been
9 kx # declared -- such as when taking their addresses.
9 kx gas_test_headers="
9 kx #ifdef HAVE_MEMORY_H
9 kx #include <memory.h>
9 kx #endif
9 kx #include <string.h>
9 kx #include <stdlib.h>
9 kx #ifdef HAVE_UNISTD_H
9 kx #include <unistd.h>
9 kx #endif
9 kx "
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
9 kx $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
9 kx if ${gas_cv_decl_getopt_unistd_h+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx #include <unistd.h>
9 kx int
9 kx main ()
9 kx {
9 kx extern int getopt (int, char *const*, const char *);
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx gas_cv_decl_getopt_unistd_h=yes
9 kx else
9 kx gas_cv_decl_getopt_unistd_h=no
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx fi
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
9 kx $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
9 kx if test $gas_cv_decl_getopt_unistd_h = yes; then
9 kx
9 kx $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
9 kx
9 kx fi
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
9 kx $as_echo_n "checking whether declaration is required for environ... " >&6; }
9 kx if ${gas_cv_decl_needed_environ+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx $gas_test_headers
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx typedef char **f;
9 kx f x;
9 kx x = (f) environ;
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx gas_cv_decl_needed_environ=no
9 kx else
9 kx gas_cv_decl_needed_environ=yes
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
9 kx $as_echo "$gas_cv_decl_needed_environ" >&6; }
9 kx if test $gas_cv_decl_needed_environ = yes; then
9 kx
9 kx $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
9 kx
9 kx fi
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
9 kx $as_echo_n "checking whether declaration is required for ffs... " >&6; }
9 kx if ${gas_cv_decl_needed_ffs+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx $gas_test_headers
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx typedef int (*f)(int);
9 kx f x;
9 kx x = (f) ffs;
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx gas_cv_decl_needed_ffs=no
9 kx else
9 kx gas_cv_decl_needed_ffs=yes
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
9 kx $as_echo "$gas_cv_decl_needed_ffs" >&6; }
9 kx if test $gas_cv_decl_needed_ffs = yes; then
9 kx
9 kx $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
9 kx
9 kx fi
9 kx
9 kx
9 kx ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9 kx if test "x$ac_cv_have_decl_asprintf" = xyes; then :
9 kx ac_have_decl=1
9 kx else
9 kx ac_have_decl=0
9 kx fi
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define HAVE_DECL_ASPRINTF $ac_have_decl
9 kx _ACEOF
9 kx ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
9 kx if test "x$ac_cv_have_decl_mempcpy" = xyes; then :
9 kx ac_have_decl=1
9 kx else
9 kx ac_have_decl=0
9 kx fi
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define HAVE_DECL_MEMPCPY $ac_have_decl
9 kx _ACEOF
9 kx ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
9 kx if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
9 kx ac_have_decl=1
9 kx else
9 kx ac_have_decl=0
9 kx fi
9 kx
9 kx cat >>confdefs.h <<_ACEOF
9 kx #define HAVE_DECL_STPCPY $ac_have_decl
9 kx _ACEOF
9 kx
9 kx
9 kx
9 kx case "${host}" in
9 kx *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9 kx
9 kx $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
9 kx ;;
9 kx esac
9 kx
9 kx # Link in zlib/zstd if we can. This allows us to write compressed debug sections.
9 kx
9 kx # Use the system's zlib library.
9 kx zlibdir="-L\$(top_builddir)/../zlib"
9 kx zlibinc="-I\$(top_srcdir)/../zlib"
9 kx
9 kx # Check whether --with-system-zlib was given.
9 kx if test "${with_system_zlib+set}" = set; then :
9 kx withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
9 kx zlibdir=
9 kx zlibinc=
9 kx fi
9 kx
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9 kx if test -n "$ac_tool_prefix"; then
9 kx # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9 kx set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_path_PKG_CONFIG+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx case $PKG_CONFIG in
9 kx [\\/]* | ?:[\\/]*)
9 kx ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9 kx ;;
9 kx *)
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx ;;
9 kx esac
9 kx fi
9 kx PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9 kx if test -n "$PKG_CONFIG"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9 kx $as_echo "$PKG_CONFIG" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx
9 kx fi
9 kx if test -z "$ac_cv_path_PKG_CONFIG"; then
9 kx ac_pt_PKG_CONFIG=$PKG_CONFIG
9 kx # Extract the first word of "pkg-config", so it can be a program name with args.
9 kx set dummy pkg-config; ac_word=$2
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 kx $as_echo_n "checking for $ac_word... " >&6; }
9 kx if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx case $ac_pt_PKG_CONFIG in
9 kx [\\/]* | ?:[\\/]*)
9 kx ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9 kx ;;
9 kx *)
9 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx for ac_exec_ext in '' $ac_executable_extensions; do
9 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9 kx ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9 kx break 2
9 kx fi
9 kx done
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx ;;
9 kx esac
9 kx fi
9 kx ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9 kx if test -n "$ac_pt_PKG_CONFIG"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9 kx $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx fi
9 kx
9 kx if test "x$ac_pt_PKG_CONFIG" = x; then
9 kx PKG_CONFIG=""
9 kx else
9 kx case $cross_compiling:$ac_tool_warned in
9 kx yes:)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9 kx ac_tool_warned=yes ;;
9 kx esac
9 kx PKG_CONFIG=$ac_pt_PKG_CONFIG
9 kx fi
9 kx else
9 kx PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9 kx fi
9 kx
9 kx fi
9 kx if test -n "$PKG_CONFIG"; then
9 kx _pkg_min_version=0.9.0
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9 kx $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9 kx if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9 kx $as_echo "yes" >&6; }
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx PKG_CONFIG=""
9 kx fi
9 kx fi
9 kx
9 kx
9 kx # Check whether --with-zstd was given.
9 kx if test "${with_zstd+set}" = set; then :
9 kx withval=$with_zstd;
9 kx else
9 kx with_zstd=auto
9 kx fi
9 kx
9 kx
9 kx if test "$with_zstd" != no; then :
9 kx
9 kx pkg_failed=no
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
9 kx $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
9 kx
9 kx if test -n "$ZSTD_CFLAGS"; then
9 kx pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
9 kx elif test -n "$PKG_CONFIG"; then
9 kx if test -n "$PKG_CONFIG" && \
9 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
9 kx ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }; then
9 kx pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
9 kx test "x$?" != "x0" && pkg_failed=yes
9 kx else
9 kx pkg_failed=yes
9 kx fi
9 kx else
9 kx pkg_failed=untried
9 kx fi
9 kx if test -n "$ZSTD_LIBS"; then
9 kx pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
9 kx elif test -n "$PKG_CONFIG"; then
9 kx if test -n "$PKG_CONFIG" && \
9 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
9 kx ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9 kx ac_status=$?
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9 kx test $ac_status = 0; }; then
9 kx pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
9 kx test "x$?" != "x0" && pkg_failed=yes
9 kx else
9 kx pkg_failed=yes
9 kx fi
9 kx else
9 kx pkg_failed=untried
9 kx fi
9 kx
9 kx if test $pkg_failed = no; then
9 kx pkg_save_LDFLAGS="$LDFLAGS"
9 kx LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx int
9 kx main ()
9 kx {
9 kx
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_link "$LINENO"; then :
9 kx
9 kx else
9 kx pkg_failed=yes
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext \
9 kx conftest$ac_exeext conftest.$ac_ext
9 kx LDFLAGS=$pkg_save_LDFLAGS
9 kx fi
9 kx
9 kx
9 kx
9 kx if test $pkg_failed = yes; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx
9 kx if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9 kx _pkg_short_errors_supported=yes
9 kx else
9 kx _pkg_short_errors_supported=no
9 kx fi
9 kx if test $_pkg_short_errors_supported = yes; then
9 kx ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9 kx else
9 kx ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9 kx fi
9 kx # Put the nasty error message in config.log where it belongs
9 kx echo "$ZSTD_PKG_ERRORS" >&5
9 kx
9 kx
9 kx if test "$with_zstd" = yes; then
9 kx as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
9 kx fi
9 kx
9 kx elif test $pkg_failed = untried; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9 kx $as_echo "no" >&6; }
9 kx
9 kx if test "$with_zstd" = yes; then
9 kx as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
9 kx fi
9 kx
9 kx else
9 kx ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
9 kx ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9 kx $as_echo "yes" >&6; }
9 kx
9 kx
9 kx $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
9 kx
9 kx
9 kx fi
9 kx
9 kx fi
9 kx
9 kx
9 kx # Support for VMS timestamps via cross compile
9 kx
9 kx if test "$ac_cv_header_time_h" = yes; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
9 kx $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
9 kx if ${gas_cv_have_time_type_member_tm_gmtoff+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx #define _BSD_SOURCE 1
9 kx #include <time.h>
9 kx int
9 kx main ()
9 kx {
9 kx struct tm avar; void* aref = (void*) &avar.tm_gmtoff
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx gas_cv_have_time_type_member_tm_gmtoff=yes
9 kx else
9 kx gas_cv_have_time_type_member_tm_gmtoff=no
9 kx
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx fi
9 kx
9 kx if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
9 kx
9 kx $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
9 kx $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
9 kx
9 kx fi
9 kx
9 kx if test "$ac_cv_header_sys_stat_h" = yes; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
9 kx $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
9 kx if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx #define _BSD_SOURCE 1
9 kx #include <sys/stat.h>
9 kx int
9 kx main ()
9 kx {
9 kx struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
9 kx else
9 kx gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
9 kx
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx fi
9 kx
9 kx if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
9 kx
9 kx $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
9 kx $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
9 kx $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
9 kx if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+:} false; then :
9 kx $as_echo_n "(cached) " >&6
9 kx else
9 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9 kx /* end confdefs.h. */
9 kx
9 kx #define _BSD_SOURCE 1
9 kx #include <sys/stat.h>
9 kx int
9 kx main ()
9 kx {
9 kx struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
9 kx ;
9 kx return 0;
9 kx }
9 kx _ACEOF
9 kx if ac_fn_c_try_compile "$LINENO"; then :
9 kx gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
9 kx else
9 kx gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
9 kx
9 kx fi
9 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9 kx fi
9 kx
9 kx if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
9 kx
9 kx $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
9 kx
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
9 kx $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
9 kx
9 kx fi
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx
9 kx ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
9 kx
9 kx ac_config_commands="$ac_config_commands default"
9 kx
9 kx
9 kx cat >confcache <<\_ACEOF
9 kx # This file is a shell script that caches the results of configure
9 kx # tests run on this system so they can be shared between configure
9 kx # scripts and configure runs, see configure's option --config-cache.
9 kx # It is not useful on other systems. If it contains results you don't
9 kx # want to keep, you may remove or edit it.
9 kx #
9 kx # config.status only pays attention to the cache file if you give it
9 kx # the --recheck option to rerun configure.
9 kx #
9 kx # `ac_cv_env_foo' variables (set or unset) will be overridden when
9 kx # loading this file, other *unset* `ac_cv_foo' will be assigned the
9 kx # following values.
9 kx
9 kx _ACEOF
9 kx
9 kx # The following way of writing the cache mishandles newlines in values,
9 kx # but we know of no workaround that is simple, portable, and efficient.
9 kx # So, we kill variables containing newlines.
9 kx # Ultrix sh set writes to stderr and can't be redirected directly,
9 kx # and sets the high bit in the cache file unless we assign to the vars.
9 kx (
9 kx for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9 kx eval ac_val=\$$ac_var
9 kx case $ac_val in #(
9 kx *${as_nl}*)
9 kx case $ac_var in #(
9 kx *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9 kx $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9 kx esac
9 kx case $ac_var in #(
9 kx _ | IFS | as_nl) ;; #(
9 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9 kx *) { eval $ac_var=; unset $ac_var;} ;;
9 kx esac ;;
9 kx esac
9 kx done
9 kx
9 kx (set) 2>&1 |
9 kx case $as_nl`(ac_space=' '; set) 2>&1` in #(
9 kx *${as_nl}ac_space=\ *)
9 kx # `set' does not quote correctly, so add quotes: double-quote
9 kx # substitution turns \\\\ into \\, and sed turns \\ into \.
9 kx sed -n \
9 kx "s/'/'\\\\''/g;
9 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9 kx ;; #(
9 kx *)
9 kx # `set' quotes correctly as required by POSIX, so do not add quotes.
9 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9 kx ;;
9 kx esac |
9 kx sort
9 kx ) |
9 kx sed '
9 kx /^ac_cv_env_/b end
9 kx t clear
9 kx :clear
9 kx s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9 kx t end
9 kx s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9 kx :end' >>confcache
9 kx if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9 kx if test -w "$cache_file"; then
9 kx if test "x$cache_file" != "x/dev/null"; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9 kx $as_echo "$as_me: updating cache $cache_file" >&6;}
9 kx if test ! -f "$cache_file" || test -h "$cache_file"; then
9 kx cat confcache >"$cache_file"
9 kx else
9 kx case $cache_file in #(
9 kx */* | ?:*)
9 kx mv -f confcache "$cache_file"$$ &&
9 kx mv -f "$cache_file"$$ "$cache_file" ;; #(
9 kx *)
9 kx mv -f confcache "$cache_file" ;;
9 kx esac
9 kx fi
9 kx fi
9 kx else
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9 kx $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9 kx fi
9 kx fi
9 kx rm -f confcache
9 kx
9 kx test "x$prefix" = xNONE && prefix=$ac_default_prefix
9 kx # Let make expand exec_prefix.
9 kx test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9 kx
9 kx DEFS=-DHAVE_CONFIG_H
9 kx
9 kx ac_libobjs=
9 kx ac_ltlibobjs=
9 kx U=
9 kx for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9 kx # 1. Remove the extension, and $U if already installed.
9 kx ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9 kx ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9 kx # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9 kx # will be set to the directory where LIBOBJS objects are built.
9 kx as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9 kx as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9 kx done
9 kx LIBOBJS=$ac_libobjs
9 kx
9 kx LTLIBOBJS=$ac_ltlibobjs
9 kx
9 kx
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9 kx $as_echo_n "checking that generated files are newer than configure... " >&6; }
9 kx if test -n "$am_sleep_pid"; then
9 kx # Hide warnings about reused PIDs.
9 kx wait $am_sleep_pid 2>/dev/null
9 kx fi
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9 kx $as_echo "done" >&6; }
9 kx if test -n "$EXEEXT"; then
9 kx am__EXEEXT_TRUE=
9 kx am__EXEEXT_FALSE='#'
9 kx else
9 kx am__EXEEXT_TRUE='#'
9 kx am__EXEEXT_FALSE=
9 kx fi
9 kx
9 kx if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9 kx as_fn_error $? "conditional \"AMDEP\" was never defined.
9 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
9 kx fi
9 kx if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9 kx as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
9 kx fi
9 kx
9 kx if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9 kx as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
9 kx fi
9 kx if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
9 kx as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
9 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
9 kx fi
9 kx
9 kx : "${CONFIG_STATUS=./config.status}"
9 kx ac_write_fail=0
9 kx ac_clean_files_save=$ac_clean_files
9 kx ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9 kx $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9 kx as_write_fail=0
9 kx cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9 kx #! $SHELL
9 kx # Generated by $as_me.
9 kx # Run this file to recreate the current configuration.
9 kx # Compiler output produced by configure, useful for debugging
9 kx # configure, is in config.log if it exists.
9 kx
9 kx debug=false
9 kx ac_cs_recheck=false
9 kx ac_cs_silent=false
9 kx
9 kx SHELL=\${CONFIG_SHELL-$SHELL}
9 kx export SHELL
9 kx _ASEOF
9 kx cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9 kx ## -------------------- ##
9 kx ## M4sh Initialization. ##
9 kx ## -------------------- ##
9 kx
9 kx # Be more Bourne compatible
9 kx DUALCASE=1; export DUALCASE # for MKS sh
9 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9 kx emulate sh
9 kx NULLCMD=:
9 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9 kx # is contrary to our usage. Disable this feature.
9 kx alias -g '${1+"$@"}'='"$@"'
9 kx setopt NO_GLOB_SUBST
9 kx else
9 kx case `(set -o) 2>/dev/null` in #(
9 kx *posix*) :
9 kx set -o posix ;; #(
9 kx *) :
9 kx ;;
9 kx esac
9 kx fi
9 kx
9 kx
9 kx as_nl='
9 kx '
9 kx export as_nl
9 kx # Printing a long string crashes Solaris 7 /usr/bin/printf.
9 kx as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9 kx # Prefer a ksh shell builtin over an external printf program on Solaris,
9 kx # but without wasting forks for bash or zsh.
9 kx if test -z "$BASH_VERSION$ZSH_VERSION" \
9 kx && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9 kx as_echo='print -r --'
9 kx as_echo_n='print -rn --'
9 kx elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9 kx as_echo='printf %s\n'
9 kx as_echo_n='printf %s'
9 kx else
9 kx if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9 kx as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9 kx as_echo_n='/usr/ucb/echo -n'
9 kx else
9 kx as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9 kx as_echo_n_body='eval
9 kx arg=$1;
9 kx case $arg in #(
9 kx *"$as_nl"*)
9 kx expr "X$arg" : "X\\(.*\\)$as_nl";
9 kx arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9 kx esac;
9 kx expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9 kx '
9 kx export as_echo_n_body
9 kx as_echo_n='sh -c $as_echo_n_body as_echo'
9 kx fi
9 kx export as_echo_body
9 kx as_echo='sh -c $as_echo_body as_echo'
9 kx fi
9 kx
9 kx # The user is always right.
9 kx if test "${PATH_SEPARATOR+set}" != set; then
9 kx PATH_SEPARATOR=:
9 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9 kx PATH_SEPARATOR=';'
9 kx }
9 kx fi
9 kx
9 kx
9 kx # IFS
9 kx # We need space, tab and new line, in precisely that order. Quoting is
9 kx # there to prevent editors from complaining about space-tab.
9 kx # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9 kx # splitting by setting IFS to empty value.)
9 kx IFS=" "" $as_nl"
9 kx
9 kx # Find who we are. Look in the path if we contain no directory separator.
9 kx as_myself=
9 kx case $0 in #((
9 kx *[\\/]* ) as_myself=$0 ;;
9 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9 kx for as_dir in $PATH
9 kx do
9 kx IFS=$as_save_IFS
9 kx test -z "$as_dir" && as_dir=.
9 kx test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9 kx done
9 kx IFS=$as_save_IFS
9 kx
9 kx ;;
9 kx esac
9 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
9 kx # in which case we are not to be found in the path.
9 kx if test "x$as_myself" = x; then
9 kx as_myself=$0
9 kx fi
9 kx if test ! -f "$as_myself"; then
9 kx $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9 kx exit 1
9 kx fi
9 kx
9 kx # Unset variables that we do not need and which cause bugs (e.g. in
9 kx # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9 kx # suppresses any "Segmentation fault" message there. '((' could
9 kx # trigger a bug in pdksh 5.2.14.
9 kx for as_var in BASH_ENV ENV MAIL MAILPATH
9 kx do eval test x\${$as_var+set} = xset \
9 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9 kx done
9 kx PS1='$ '
9 kx PS2='> '
9 kx PS4='+ '
9 kx
9 kx # NLS nuisances.
9 kx LC_ALL=C
9 kx export LC_ALL
9 kx LANGUAGE=C
9 kx export LANGUAGE
9 kx
9 kx # CDPATH.
9 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9 kx
9 kx
9 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
9 kx # ----------------------------------------
9 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9 kx # script with STATUS, using 1 if that was 0.
9 kx as_fn_error ()
9 kx {
9 kx as_status=$1; test $as_status -eq 0 && as_status=1
9 kx if test "$4"; then
9 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9 kx $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9 kx fi
9 kx $as_echo "$as_me: error: $2" >&2
9 kx as_fn_exit $as_status
9 kx } # as_fn_error
9 kx
9 kx
9 kx # as_fn_set_status STATUS
9 kx # -----------------------
9 kx # Set $? to STATUS, without forking.
9 kx as_fn_set_status ()
9 kx {
9 kx return $1
9 kx } # as_fn_set_status
9 kx
9 kx # as_fn_exit STATUS
9 kx # -----------------
9 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9 kx as_fn_exit ()
9 kx {
9 kx set +e
9 kx as_fn_set_status $1
9 kx exit $1
9 kx } # as_fn_exit
9 kx
9 kx # as_fn_unset VAR
9 kx # ---------------
9 kx # Portably unset VAR.
9 kx as_fn_unset ()
9 kx {
9 kx { eval $1=; unset $1;}
9 kx }
9 kx as_unset=as_fn_unset
9 kx # as_fn_append VAR VALUE
9 kx # ----------------------
9 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
9 kx # advantage of any shell optimizations that allow amortized linear growth over
9 kx # repeated appends, instead of the typical quadratic growth present in naive
9 kx # implementations.
9 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9 kx eval 'as_fn_append ()
9 kx {
9 kx eval $1+=\$2
9 kx }'
9 kx else
9 kx as_fn_append ()
9 kx {
9 kx eval $1=\$$1\$2
9 kx }
9 kx fi # as_fn_append
9 kx
9 kx # as_fn_arith ARG...
9 kx # ------------------
9 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
9 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
9 kx # must be portable across $(()) and expr.
9 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9 kx eval 'as_fn_arith ()
9 kx {
9 kx as_val=$(( $* ))
9 kx }'
9 kx else
9 kx as_fn_arith ()
9 kx {
9 kx as_val=`expr "$@" || test $? -eq 1`
9 kx }
9 kx fi # as_fn_arith
9 kx
9 kx
9 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
9 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
9 kx as_expr=expr
9 kx else
9 kx as_expr=false
9 kx fi
9 kx
9 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9 kx as_basename=basename
9 kx else
9 kx as_basename=false
9 kx fi
9 kx
9 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9 kx as_dirname=dirname
9 kx else
9 kx as_dirname=false
9 kx fi
9 kx
9 kx as_me=`$as_basename -- "$0" ||
9 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9 kx X"$0" : 'X\(//\)$' \| \
9 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9 kx $as_echo X/"$0" |
9 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\/\(\/\/\)$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\/\(\/\).*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx s/.*/./; q'`
9 kx
9 kx # Avoid depending upon Character Ranges.
9 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9 kx as_cr_digits='0123456789'
9 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
9 kx
9 kx ECHO_C= ECHO_N= ECHO_T=
9 kx case `echo -n x` in #(((((
9 kx -n*)
9 kx case `echo 'xy\c'` in
9 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9 kx xy) ECHO_C='\c';;
9 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9 kx ECHO_T=' ';;
9 kx esac;;
9 kx *)
9 kx ECHO_N='-n';;
9 kx esac
9 kx
9 kx rm -f conf$$ conf$$.exe conf$$.file
9 kx if test -d conf$$.dir; then
9 kx rm -f conf$$.dir/conf$$.file
9 kx else
9 kx rm -f conf$$.dir
9 kx mkdir conf$$.dir 2>/dev/null
9 kx fi
9 kx if (echo >conf$$.file) 2>/dev/null; then
9 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
9 kx as_ln_s='ln -s'
9 kx # ... but there are two gotchas:
9 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9 kx # In both cases, we have to default to `cp -pR'.
9 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9 kx as_ln_s='cp -pR'
9 kx elif ln conf$$.file conf$$ 2>/dev/null; then
9 kx as_ln_s=ln
9 kx else
9 kx as_ln_s='cp -pR'
9 kx fi
9 kx else
9 kx as_ln_s='cp -pR'
9 kx fi
9 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9 kx rmdir conf$$.dir 2>/dev/null
9 kx
9 kx
9 kx # as_fn_mkdir_p
9 kx # -------------
9 kx # Create "$as_dir" as a directory, including parents if necessary.
9 kx as_fn_mkdir_p ()
9 kx {
9 kx
9 kx case $as_dir in #(
9 kx -*) as_dir=./$as_dir;;
9 kx esac
9 kx test -d "$as_dir" || eval $as_mkdir_p || {
9 kx as_dirs=
9 kx while :; do
9 kx case $as_dir in #(
9 kx *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9 kx *) as_qdir=$as_dir;;
9 kx esac
9 kx as_dirs="'$as_qdir' $as_dirs"
9 kx as_dir=`$as_dirname -- "$as_dir" ||
9 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9 kx X"$as_dir" : 'X\(//\)[^/]' \| \
9 kx X"$as_dir" : 'X\(//\)$' \| \
9 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9 kx $as_echo X"$as_dir" |
9 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)[^/].*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\).*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx s/.*/./; q'`
9 kx test -d "$as_dir" && break
9 kx done
9 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
9 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9 kx
9 kx
9 kx } # as_fn_mkdir_p
9 kx if mkdir -p . 2>/dev/null; then
9 kx as_mkdir_p='mkdir -p "$as_dir"'
9 kx else
9 kx test -d ./-p && rmdir ./-p
9 kx as_mkdir_p=false
9 kx fi
9 kx
9 kx
9 kx # as_fn_executable_p FILE
9 kx # -----------------------
9 kx # Test if FILE is an executable regular file.
9 kx as_fn_executable_p ()
9 kx {
9 kx test -f "$1" && test -x "$1"
9 kx } # as_fn_executable_p
9 kx as_test_x='test -x'
9 kx as_executable_p=as_fn_executable_p
9 kx
9 kx # Sed expression to map a string onto a valid CPP name.
9 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9 kx
9 kx # Sed expression to map a string onto a valid variable name.
9 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9 kx
9 kx
9 kx exec 6>&1
9 kx ## ----------------------------------- ##
9 kx ## Main body of $CONFIG_STATUS script. ##
9 kx ## ----------------------------------- ##
9 kx _ASEOF
9 kx test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9 kx
9 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9 kx # Save the log message, to keep $0 and so on meaningful, and to
9 kx # report actual input values of CONFIG_FILES etc. instead of their
9 kx # values after options handling.
9 kx ac_log="
9 kx This file was extended by gas $as_me 2.40, which was
9 kx generated by GNU Autoconf 2.69. Invocation command line was
9 kx
9 kx CONFIG_FILES = $CONFIG_FILES
9 kx CONFIG_HEADERS = $CONFIG_HEADERS
9 kx CONFIG_LINKS = $CONFIG_LINKS
9 kx CONFIG_COMMANDS = $CONFIG_COMMANDS
9 kx $ $0 $@
9 kx
9 kx on `(hostname || uname -n) 2>/dev/null | sed 1q`
9 kx "
9 kx
9 kx _ACEOF
9 kx
9 kx case $ac_config_files in *"
9 kx "*) set x $ac_config_files; shift; ac_config_files=$*;;
9 kx esac
9 kx
9 kx case $ac_config_headers in *"
9 kx "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9 kx esac
9 kx
9 kx
9 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9 kx # Files that config.status was made for.
9 kx config_files="$ac_config_files"
9 kx config_headers="$ac_config_headers"
9 kx config_commands="$ac_config_commands"
9 kx
9 kx _ACEOF
9 kx
9 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9 kx ac_cs_usage="\
9 kx \`$as_me' instantiates files and other configuration actions
9 kx from templates according to the current configuration. Unless the files
9 kx and actions are specified as TAGs, all are instantiated by default.
9 kx
9 kx Usage: $0 [OPTION]... [TAG]...
9 kx
9 kx -h, --help print this help, then exit
9 kx -V, --version print version number and configuration settings, then exit
9 kx --config print configuration, then exit
9 kx -q, --quiet, --silent
9 kx do not print progress messages
9 kx -d, --debug don't remove temporary files
9 kx --recheck update $as_me by reconfiguring in the same conditions
9 kx --file=FILE[:TEMPLATE]
9 kx instantiate the configuration file FILE
9 kx --header=FILE[:TEMPLATE]
9 kx instantiate the configuration header FILE
9 kx
9 kx Configuration files:
9 kx $config_files
9 kx
9 kx Configuration headers:
9 kx $config_headers
9 kx
9 kx Configuration commands:
9 kx $config_commands
9 kx
9 kx Report bugs to the package provider."
9 kx
9 kx _ACEOF
9 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9 kx ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9 kx ac_cs_version="\\
9 kx gas config.status 2.40
9 kx configured by $0, generated by GNU Autoconf 2.69,
9 kx with options \\"\$ac_cs_config\\"
9 kx
9 kx Copyright (C) 2012 Free Software Foundation, Inc.
9 kx This config.status script is free software; the Free Software Foundation
9 kx gives unlimited permission to copy, distribute and modify it."
9 kx
9 kx ac_pwd='$ac_pwd'
9 kx srcdir='$srcdir'
9 kx INSTALL='$INSTALL'
9 kx MKDIR_P='$MKDIR_P'
9 kx AWK='$AWK'
9 kx test -n "\$AWK" || AWK=awk
9 kx _ACEOF
9 kx
9 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9 kx # The default lists apply if the user does not specify any file.
9 kx ac_need_defaults=:
9 kx while test $# != 0
9 kx do
9 kx case $1 in
9 kx --*=?*)
9 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
9 kx ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9 kx ac_shift=:
9 kx ;;
9 kx --*=)
9 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
9 kx ac_optarg=
9 kx ac_shift=:
9 kx ;;
9 kx *)
9 kx ac_option=$1
9 kx ac_optarg=$2
9 kx ac_shift=shift
9 kx ;;
9 kx esac
9 kx
9 kx case $ac_option in
9 kx # Handling of the options.
9 kx -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9 kx ac_cs_recheck=: ;;
9 kx --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9 kx $as_echo "$ac_cs_version"; exit ;;
9 kx --config | --confi | --conf | --con | --co | --c )
9 kx $as_echo "$ac_cs_config"; exit ;;
9 kx --debug | --debu | --deb | --de | --d | -d )
9 kx debug=: ;;
9 kx --file | --fil | --fi | --f )
9 kx $ac_shift
9 kx case $ac_optarg in
9 kx *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9 kx '') as_fn_error $? "missing file argument" ;;
9 kx esac
9 kx as_fn_append CONFIG_FILES " '$ac_optarg'"
9 kx ac_need_defaults=false;;
9 kx --header | --heade | --head | --hea )
9 kx $ac_shift
9 kx case $ac_optarg in
9 kx *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9 kx esac
9 kx as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9 kx ac_need_defaults=false;;
9 kx --he | --h)
9 kx # Conflict between --help and --header
9 kx as_fn_error $? "ambiguous option: \`$1'
9 kx Try \`$0 --help' for more information.";;
9 kx --help | --hel | -h )
9 kx $as_echo "$ac_cs_usage"; exit ;;
9 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9 kx | -silent | --silent | --silen | --sile | --sil | --si | --s)
9 kx ac_cs_silent=: ;;
9 kx
9 kx # This is an error.
9 kx -*) as_fn_error $? "unrecognized option: \`$1'
9 kx Try \`$0 --help' for more information." ;;
9 kx
9 kx *) as_fn_append ac_config_targets " $1"
9 kx ac_need_defaults=false ;;
9 kx
9 kx esac
9 kx shift
9 kx done
9 kx
9 kx ac_configure_extra_args=
9 kx
9 kx if $ac_cs_silent; then
9 kx exec 6>/dev/null
9 kx ac_configure_extra_args="$ac_configure_extra_args --silent"
9 kx fi
9 kx
9 kx _ACEOF
9 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9 kx if \$ac_cs_recheck; then
9 kx set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9 kx shift
9 kx \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9 kx CONFIG_SHELL='$SHELL'
9 kx export CONFIG_SHELL
9 kx exec "\$@"
9 kx fi
9 kx
9 kx _ACEOF
9 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9 kx exec 5>>config.log
9 kx {
9 kx echo
9 kx sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9 kx ## Running $as_me. ##
9 kx _ASBOX
9 kx $as_echo "$ac_log"
9 kx } >&5
9 kx
9 kx _ACEOF
9 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9 kx #
9 kx # INIT-COMMANDS
9 kx #
9 kx AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9 kx
9 kx
9 kx # The HP-UX ksh and POSIX shell print the target directory to stdout
9 kx # if CDPATH is set.
9 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9 kx
9 kx sed_quote_subst='$sed_quote_subst'
9 kx double_quote_subst='$double_quote_subst'
9 kx delay_variable_subst='$delay_variable_subst'
9 kx macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
9 kx macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
9 kx enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
9 kx enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
9 kx pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
9 kx enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
9 kx SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
9 kx ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
9 kx host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
9 kx host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
9 kx host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
9 kx build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
9 kx build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
9 kx build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
9 kx SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
9 kx Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
9 kx GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
9 kx EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
9 kx FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
9 kx LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
9 kx NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
9 kx LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
9 kx max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
9 kx ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
9 kx exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
9 kx lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
9 kx lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
9 kx lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
9 kx reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
9 kx reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
9 kx OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
9 kx deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
9 kx file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
9 kx AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
9 kx AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
9 kx STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
9 kx RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
9 kx old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
9 kx old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
9 kx old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
9 kx lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
9 kx CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
9 kx CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
9 kx compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
9 kx GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
9 kx lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
9 kx lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
9 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"`'
9 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"`'
9 kx objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
9 kx MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
9 kx lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
9 kx lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
9 kx lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
9 kx lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
9 kx lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
9 kx need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
9 kx DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
9 kx NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
9 kx LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
9 kx OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
9 kx OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
9 kx libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
9 kx shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
9 kx extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
9 kx archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
9 kx enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
9 kx export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
9 kx whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
9 kx compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
9 kx old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
9 kx old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
9 kx archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
9 kx archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
9 kx module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
9 kx module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
9 kx with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
9 kx allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
9 kx no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
9 kx hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
9 kx hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
9 kx hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
9 kx hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
9 kx hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
9 kx hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
9 kx hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
9 kx hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
9 kx inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
9 kx link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
9 kx fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
9 kx always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
9 kx export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
9 kx exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
9 kx include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
9 kx prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
9 kx file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
9 kx variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
9 kx need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
9 kx need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
9 kx version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
9 kx runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
9 kx shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
9 kx shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
9 kx libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
9 kx library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
9 kx soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
9 kx install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
9 kx postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
9 kx postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
9 kx finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
9 kx finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
9 kx hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
9 kx sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
9 kx sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
9 kx hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
9 kx enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
9 kx enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
9 kx enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
9 kx old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
9 kx striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
9 kx
9 kx LTCC='$LTCC'
9 kx LTCFLAGS='$LTCFLAGS'
9 kx compiler='$compiler_DEFAULT'
9 kx
9 kx # A function that is used when there is no print builtin or printf.
9 kx func_fallback_echo ()
9 kx {
9 kx eval 'cat <<_LTECHO_EOF
9 kx \$1
9 kx _LTECHO_EOF'
9 kx }
9 kx
9 kx # Quote evaled strings.
9 kx for var in SHELL \
9 kx ECHO \
9 kx SED \
9 kx GREP \
9 kx EGREP \
9 kx FGREP \
9 kx LD \
9 kx NM \
9 kx LN_S \
9 kx lt_SP2NL \
9 kx lt_NL2SP \
9 kx reload_flag \
9 kx OBJDUMP \
9 kx deplibs_check_method \
9 kx file_magic_cmd \
9 kx AR \
9 kx AR_FLAGS \
9 kx STRIP \
9 kx RANLIB \
9 kx CC \
9 kx CFLAGS \
9 kx compiler \
9 kx lt_cv_sys_global_symbol_pipe \
9 kx lt_cv_sys_global_symbol_to_cdecl \
9 kx lt_cv_sys_global_symbol_to_c_name_address \
9 kx lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
9 kx lt_prog_compiler_no_builtin_flag \
9 kx lt_prog_compiler_wl \
9 kx lt_prog_compiler_pic \
9 kx lt_prog_compiler_static \
9 kx lt_cv_prog_compiler_c_o \
9 kx need_locks \
9 kx DSYMUTIL \
9 kx NMEDIT \
9 kx LIPO \
9 kx OTOOL \
9 kx OTOOL64 \
9 kx shrext_cmds \
9 kx export_dynamic_flag_spec \
9 kx whole_archive_flag_spec \
9 kx compiler_needs_object \
9 kx with_gnu_ld \
9 kx allow_undefined_flag \
9 kx no_undefined_flag \
9 kx hardcode_libdir_flag_spec \
9 kx hardcode_libdir_flag_spec_ld \
9 kx hardcode_libdir_separator \
9 kx fix_srcfile_path \
9 kx exclude_expsyms \
9 kx include_expsyms \
9 kx file_list_spec \
9 kx variables_saved_for_relink \
9 kx libname_spec \
9 kx library_names_spec \
9 kx soname_spec \
9 kx install_override_mode \
9 kx finish_eval \
9 kx old_striplib \
9 kx striplib; do
9 kx case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9 kx *[\\\\\\\`\\"\\\$]*)
9 kx eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
9 kx ;;
9 kx *)
9 kx eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
9 kx ;;
9 kx esac
9 kx done
9 kx
9 kx # Double-quote double-evaled strings.
9 kx for var in reload_cmds \
9 kx old_postinstall_cmds \
9 kx old_postuninstall_cmds \
9 kx old_archive_cmds \
9 kx extract_expsyms_cmds \
9 kx old_archive_from_new_cmds \
9 kx old_archive_from_expsyms_cmds \
9 kx archive_cmds \
9 kx archive_expsym_cmds \
9 kx module_cmds \
9 kx module_expsym_cmds \
9 kx export_symbols_cmds \
9 kx prelink_cmds \
9 kx postinstall_cmds \
9 kx postuninstall_cmds \
9 kx finish_cmds \
9 kx sys_lib_search_path_spec \
9 kx sys_lib_dlsearch_path_spec; do
9 kx case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9 kx *[\\\\\\\`\\"\\\$]*)
9 kx eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
9 kx ;;
9 kx *)
9 kx eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
9 kx ;;
9 kx esac
9 kx done
9 kx
9 kx ac_aux_dir='$ac_aux_dir'
9 kx xsi_shell='$xsi_shell'
9 kx lt_shell_append='$lt_shell_append'
9 kx
9 kx # See if we are running on zsh, and set the options which allow our
9 kx # commands through without removal of \ escapes INIT.
9 kx if test -n "\${ZSH_VERSION+set}" ; then
9 kx setopt NO_GLOB_SUBST
9 kx fi
9 kx
9 kx
9 kx PACKAGE='$PACKAGE'
9 kx VERSION='$VERSION'
9 kx TIMESTAMP='$TIMESTAMP'
9 kx RM='$RM'
9 kx ofile='$ofile'
9 kx
9 kx
9 kx
9 kx # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9 kx # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9 kx # from automake.
9 kx eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9 kx # Capture the value of LINGUAS because we need it to compute CATALOGS.
9 kx LINGUAS="${LINGUAS-%UNSET%}"
9 kx
9 kx target_cpu_type=${target_cpu_type}
9 kx cgen_cpu_prefix=${cgen_cpu_prefix}
9 kx obj_format=${obj_format}
9 kx te_file=${te_file}
9 kx
9 kx _ACEOF
9 kx
9 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9 kx
9 kx # Handling of arguments.
9 kx for ac_config_target in $ac_config_targets
9 kx do
9 kx case $ac_config_target in
9 kx "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9 kx "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
9 kx "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9 kx "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
9 kx ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
9 kx "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9 kx "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9 kx "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9 kx "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9 kx
9 kx *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9 kx esac
9 kx done
9 kx
9 kx
9 kx # If the user did not use the arguments to specify the items to instantiate,
9 kx # then the envvar interface is used. Set only those that are not.
9 kx # We use the long form for the default assignment because of an extremely
9 kx # bizarre bug on SunOS 4.1.3.
9 kx if $ac_need_defaults; then
9 kx test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9 kx test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9 kx test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9 kx fi
9 kx
9 kx # Have a temporary directory for convenience. Make it in the build tree
9 kx # simply because there is no reason against having it here, and in addition,
9 kx # creating and moving files from /tmp can sometimes cause problems.
9 kx # Hook for its removal unless debugging.
9 kx # Note that there is a small window in which the directory will not be cleaned:
9 kx # after its creation but before its name has been assigned to `$tmp'.
9 kx $debug ||
9 kx {
9 kx tmp= ac_tmp=
9 kx trap 'exit_status=$?
9 kx : "${ac_tmp:=$tmp}"
9 kx { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9 kx ' 0
9 kx trap 'as_fn_exit 1' 1 2 13 15
9 kx }
9 kx # Create a (secure) tmp directory for tmp files.
9 kx
9 kx {
9 kx tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9 kx test -d "$tmp"
9 kx } ||
9 kx {
9 kx tmp=./conf$$-$RANDOM
9 kx (umask 077 && mkdir "$tmp")
9 kx } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9 kx ac_tmp=$tmp
9 kx
9 kx # Set up the scripts for CONFIG_FILES section.
9 kx # No need to generate them if there are no CONFIG_FILES.
9 kx # This happens for instance with `./config.status config.h'.
9 kx if test -n "$CONFIG_FILES"; then
9 kx
9 kx
9 kx ac_cr=`echo X | tr X '\015'`
9 kx # On cygwin, bash can eat \r inside `` if the user requested igncr.
9 kx # But we know of no other shell where ac_cr would be empty at this
9 kx # point, so we can use a bashism as a fallback.
9 kx if test "x$ac_cr" = x; then
9 kx eval ac_cr=\$\'\\r\'
9 kx fi
9 kx ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9 kx if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9 kx ac_cs_awk_cr='\\r'
9 kx else
9 kx ac_cs_awk_cr=$ac_cr
9 kx fi
9 kx
9 kx echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9 kx _ACEOF
9 kx
9 kx
9 kx {
9 kx echo "cat >conf$$subs.awk <<_ACEOF" &&
9 kx echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9 kx echo "_ACEOF"
9 kx } >conf$$subs.sh ||
9 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9 kx ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9 kx ac_delim='%!_!# '
9 kx for ac_last_try in false false false false false :; do
9 kx . ./conf$$subs.sh ||
9 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9 kx
9 kx ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9 kx if test $ac_delim_n = $ac_delim_num; then
9 kx break
9 kx elif $ac_last_try; then
9 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9 kx else
9 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9 kx fi
9 kx done
9 kx rm -f conf$$subs.sh
9 kx
9 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9 kx cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9 kx _ACEOF
9 kx sed -n '
9 kx h
9 kx s/^/S["/; s/!.*/"]=/
9 kx p
9 kx g
9 kx s/^[^!]*!//
9 kx :repl
9 kx t repl
9 kx s/'"$ac_delim"'$//
9 kx t delim
9 kx :nl
9 kx h
9 kx s/\(.\{148\}\)..*/\1/
9 kx t more1
9 kx s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9 kx p
9 kx n
9 kx b repl
9 kx :more1
9 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9 kx p
9 kx g
9 kx s/.\{148\}//
9 kx t nl
9 kx :delim
9 kx h
9 kx s/\(.\{148\}\)..*/\1/
9 kx t more2
9 kx s/["\\]/\\&/g; s/^/"/; s/$/"/
9 kx p
9 kx b
9 kx :more2
9 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9 kx p
9 kx g
9 kx s/.\{148\}//
9 kx t delim
9 kx ' <conf$$subs.awk | sed '
9 kx /^[^""]/{
9 kx N
9 kx s/\n//
9 kx }
9 kx ' >>$CONFIG_STATUS || ac_write_fail=1
9 kx rm -f conf$$subs.awk
9 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9 kx _ACAWK
9 kx cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9 kx for (key in S) S_is_set[key] = 1
9 kx FS = ""
9 kx
9 kx }
9 kx {
9 kx line = $ 0
9 kx nfields = split(line, field, "@")
9 kx substed = 0
9 kx len = length(field[1])
9 kx for (i = 2; i < nfields; i++) {
9 kx key = field[i]
9 kx keylen = length(key)
9 kx if (S_is_set[key]) {
9 kx value = S[key]
9 kx line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9 kx len += length(value) + length(field[++i])
9 kx substed = 1
9 kx } else
9 kx len += 1 + keylen
9 kx }
9 kx
9 kx print line
9 kx }
9 kx
9 kx _ACAWK
9 kx _ACEOF
9 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9 kx if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9 kx sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9 kx else
9 kx cat
9 kx fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9 kx || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9 kx _ACEOF
9 kx
9 kx # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9 kx # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9 kx # trailing colons and then remove the whole line if VPATH becomes empty
9 kx # (actually we leave an empty line to preserve line numbers).
9 kx if test "x$srcdir" = x.; then
9 kx ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9 kx h
9 kx s///
9 kx s/^/:/
9 kx s/[ ]*$/:/
9 kx s/:\$(srcdir):/:/g
9 kx s/:\${srcdir}:/:/g
9 kx s/:@srcdir@:/:/g
9 kx s/^:*//
9 kx s/:*$//
9 kx x
9 kx s/\(=[ ]*\).*/\1/
9 kx G
9 kx s/\n//
9 kx s/^[^=]*=[ ]*$//
9 kx }'
9 kx fi
9 kx
9 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9 kx fi # test -n "$CONFIG_FILES"
9 kx
9 kx # Set up the scripts for CONFIG_HEADERS section.
9 kx # No need to generate them if there are no CONFIG_HEADERS.
9 kx # This happens for instance with `./config.status Makefile'.
9 kx if test -n "$CONFIG_HEADERS"; then
9 kx cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9 kx BEGIN {
9 kx _ACEOF
9 kx
9 kx # Transform confdefs.h into an awk script `defines.awk', embedded as
9 kx # here-document in config.status, that substitutes the proper values into
9 kx # config.h.in to produce config.h.
9 kx
9 kx # Create a delimiter string that does not exist in confdefs.h, to ease
9 kx # handling of long lines.
9 kx ac_delim='%!_!# '
9 kx for ac_last_try in false false :; do
9 kx ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9 kx if test -z "$ac_tt"; then
9 kx break
9 kx elif $ac_last_try; then
9 kx as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9 kx else
9 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9 kx fi
9 kx done
9 kx
9 kx # For the awk script, D is an array of macro values keyed by name,
9 kx # likewise P contains macro parameters if any. Preserve backslash
9 kx # newline sequences.
9 kx
9 kx ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9 kx sed -n '
9 kx s/.\{148\}/&'"$ac_delim"'/g
9 kx t rset
9 kx :rset
9 kx s/^[ ]*#[ ]*define[ ][ ]*/ /
9 kx t def
9 kx d
9 kx :def
9 kx s/\\$//
9 kx t bsnl
9 kx s/["\\]/\\&/g
9 kx s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9 kx D["\1"]=" \3"/p
9 kx s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9 kx d
9 kx :bsnl
9 kx s/["\\]/\\&/g
9 kx s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9 kx D["\1"]=" \3\\\\\\n"\\/p
9 kx t cont
9 kx s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9 kx t cont
9 kx d
9 kx :cont
9 kx n
9 kx s/.\{148\}/&'"$ac_delim"'/g
9 kx t clear
9 kx :clear
9 kx s/\\$//
9 kx t bsnlc
9 kx s/["\\]/\\&/g; s/^/"/; s/$/"/p
9 kx d
9 kx :bsnlc
9 kx s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9 kx b cont
9 kx ' <confdefs.h | sed '
9 kx s/'"$ac_delim"'/"\\\
9 kx "/g' >>$CONFIG_STATUS || ac_write_fail=1
9 kx
9 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9 kx for (key in D) D_is_set[key] = 1
9 kx FS = ""
9 kx }
9 kx /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9 kx line = \$ 0
9 kx split(line, arg, " ")
9 kx if (arg[1] == "#") {
9 kx defundef = arg[2]
9 kx mac1 = arg[3]
9 kx } else {
9 kx defundef = substr(arg[1], 2)
9 kx mac1 = arg[2]
9 kx }
9 kx split(mac1, mac2, "(") #)
9 kx macro = mac2[1]
9 kx prefix = substr(line, 1, index(line, defundef) - 1)
9 kx if (D_is_set[macro]) {
9 kx # Preserve the white space surrounding the "#".
9 kx print prefix "define", macro P[macro] D[macro]
9 kx next
9 kx } else {
9 kx # Replace #undef with comments. This is necessary, for example,
9 kx # in the case of _POSIX_SOURCE, which is predefined and required
9 kx # on some systems where configure will not decide to define it.
9 kx if (defundef == "undef") {
9 kx print "/*", prefix defundef, macro, "*/"
9 kx next
9 kx }
9 kx }
9 kx }
9 kx { print }
9 kx _ACAWK
9 kx _ACEOF
9 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9 kx as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9 kx fi # test -n "$CONFIG_HEADERS"
9 kx
9 kx
9 kx eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9 kx shift
9 kx for ac_tag
9 kx do
9 kx case $ac_tag in
9 kx :[FHLC]) ac_mode=$ac_tag; continue;;
9 kx esac
9 kx case $ac_mode$ac_tag in
9 kx :[FHL]*:*);;
9 kx :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9 kx :[FH]-) ac_tag=-:-;;
9 kx :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9 kx esac
9 kx ac_save_IFS=$IFS
9 kx IFS=:
9 kx set x $ac_tag
9 kx IFS=$ac_save_IFS
9 kx shift
9 kx ac_file=$1
9 kx shift
9 kx
9 kx case $ac_mode in
9 kx :L) ac_source=$1;;
9 kx :[FH])
9 kx ac_file_inputs=
9 kx for ac_f
9 kx do
9 kx case $ac_f in
9 kx -) ac_f="$ac_tmp/stdin";;
9 kx *) # Look for the file first in the build tree, then in the source tree
9 kx # (if the path is not absolute). The absolute path cannot be DOS-style,
9 kx # because $ac_f cannot contain `:'.
9 kx test -f "$ac_f" ||
9 kx case $ac_f in
9 kx [\\/$]*) false;;
9 kx *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9 kx esac ||
9 kx as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9 kx esac
9 kx case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9 kx as_fn_append ac_file_inputs " '$ac_f'"
9 kx done
9 kx
9 kx # Let's still pretend it is `configure' which instantiates (i.e., don't
9 kx # use $as_me), people would be surprised to read:
9 kx # /* config.h. Generated by config.status. */
9 kx configure_input='Generated from '`
9 kx $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9 kx `' by configure.'
9 kx if test x"$ac_file" != x-; then
9 kx configure_input="$ac_file. $configure_input"
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9 kx $as_echo "$as_me: creating $ac_file" >&6;}
9 kx fi
9 kx # Neutralize special characters interpreted by sed in replacement strings.
9 kx case $configure_input in #(
9 kx *\&* | *\|* | *\\* )
9 kx ac_sed_conf_input=`$as_echo "$configure_input" |
9 kx sed 's/[\\\\&|]/\\\\&/g'`;; #(
9 kx *) ac_sed_conf_input=$configure_input;;
9 kx esac
9 kx
9 kx case $ac_tag in
9 kx *:-:* | *:-) cat >"$ac_tmp/stdin" \
9 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9 kx esac
9 kx ;;
9 kx esac
9 kx
9 kx ac_dir=`$as_dirname -- "$ac_file" ||
9 kx $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9 kx X"$ac_file" : 'X\(//\)[^/]' \| \
9 kx X"$ac_file" : 'X\(//\)$' \| \
9 kx X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9 kx $as_echo X"$ac_file" |
9 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)[^/].*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\).*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx s/.*/./; q'`
9 kx as_dir="$ac_dir"; as_fn_mkdir_p
9 kx ac_builddir=.
9 kx
9 kx case "$ac_dir" in
9 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9 kx *)
9 kx ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9 kx # A ".." for each directory in $ac_dir_suffix.
9 kx ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9 kx case $ac_top_builddir_sub in
9 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9 kx esac ;;
9 kx esac
9 kx ac_abs_top_builddir=$ac_pwd
9 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
9 kx # for backward compatibility:
9 kx ac_top_builddir=$ac_top_build_prefix
9 kx
9 kx case $srcdir in
9 kx .) # We are building in place.
9 kx ac_srcdir=.
9 kx ac_top_srcdir=$ac_top_builddir_sub
9 kx ac_abs_top_srcdir=$ac_pwd ;;
9 kx [\\/]* | ?:[\\/]* ) # Absolute name.
9 kx ac_srcdir=$srcdir$ac_dir_suffix;
9 kx ac_top_srcdir=$srcdir
9 kx ac_abs_top_srcdir=$srcdir ;;
9 kx *) # Relative name.
9 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
9 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9 kx esac
9 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9 kx
9 kx
9 kx case $ac_mode in
9 kx :F)
9 kx #
9 kx # CONFIG_FILE
9 kx #
9 kx
9 kx case $INSTALL in
9 kx [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9 kx *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9 kx esac
9 kx ac_MKDIR_P=$MKDIR_P
9 kx case $MKDIR_P in
9 kx [\\/$]* | ?:[\\/]* ) ;;
9 kx */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9 kx esac
9 kx _ACEOF
9 kx
9 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9 kx # If the template does not know about datarootdir, expand it.
9 kx # FIXME: This hack should be removed a few years after 2.60.
9 kx ac_datarootdir_hack=; ac_datarootdir_seen=
9 kx ac_sed_dataroot='
9 kx /datarootdir/ {
9 kx p
9 kx q
9 kx }
9 kx /@datadir@/p
9 kx /@docdir@/p
9 kx /@infodir@/p
9 kx /@localedir@/p
9 kx /@mandir@/p'
9 kx case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9 kx *datarootdir*) ac_datarootdir_seen=yes;;
9 kx *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9 kx $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9 kx _ACEOF
9 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9 kx ac_datarootdir_hack='
9 kx s&@datadir@&$datadir&g
9 kx s&@docdir@&$docdir&g
9 kx s&@infodir@&$infodir&g
9 kx s&@localedir@&$localedir&g
9 kx s&@mandir@&$mandir&g
9 kx s&\\\${datarootdir}&$datarootdir&g' ;;
9 kx esac
9 kx _ACEOF
9 kx
9 kx # Neutralize VPATH when `$srcdir' = `.'.
9 kx # Shell code in configure.ac might set extrasub.
9 kx # FIXME: do we really want to maintain this feature?
9 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9 kx ac_sed_extra="$ac_vpsub
9 kx $extrasub
9 kx _ACEOF
9 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9 kx :t
9 kx /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9 kx s|@configure_input@|$ac_sed_conf_input|;t t
9 kx s&@top_builddir@&$ac_top_builddir_sub&;t t
9 kx s&@top_build_prefix@&$ac_top_build_prefix&;t t
9 kx s&@srcdir@&$ac_srcdir&;t t
9 kx s&@abs_srcdir@&$ac_abs_srcdir&;t t
9 kx s&@top_srcdir@&$ac_top_srcdir&;t t
9 kx s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9 kx s&@builddir@&$ac_builddir&;t t
9 kx s&@abs_builddir@&$ac_abs_builddir&;t t
9 kx s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9 kx s&@INSTALL@&$ac_INSTALL&;t t
9 kx s&@MKDIR_P@&$ac_MKDIR_P&;t t
9 kx $ac_datarootdir_hack
9 kx "
9 kx eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9 kx >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9 kx
9 kx test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9 kx { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9 kx { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9 kx "$ac_tmp/out"`; test -z "$ac_out"; } &&
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9 kx which seems to be undefined. Please make sure it is defined" >&5
9 kx $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9 kx which seems to be undefined. Please make sure it is defined" >&2;}
9 kx
9 kx rm -f "$ac_tmp/stdin"
9 kx case $ac_file in
9 kx -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9 kx *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9 kx esac \
9 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9 kx ;;
9 kx :H)
9 kx #
9 kx # CONFIG_HEADER
9 kx #
9 kx if test x"$ac_file" != x-; then
9 kx {
9 kx $as_echo "/* $configure_input */" \
9 kx && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9 kx } >"$ac_tmp/config.h" \
9 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9 kx if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9 kx $as_echo "$as_me: $ac_file is unchanged" >&6;}
9 kx else
9 kx rm -f "$ac_file"
9 kx mv "$ac_tmp/config.h" "$ac_file" \
9 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9 kx fi
9 kx else
9 kx $as_echo "/* $configure_input */" \
9 kx && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9 kx || as_fn_error $? "could not create -" "$LINENO" 5
9 kx fi
9 kx # Compute "$ac_file"'s index in $config_headers.
9 kx _am_arg="$ac_file"
9 kx _am_stamp_count=1
9 kx for _am_header in $config_headers :; do
9 kx case $_am_header in
9 kx $_am_arg | $_am_arg:* )
9 kx break ;;
9 kx * )
9 kx _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9 kx esac
9 kx done
9 kx echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9 kx $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9 kx X"$_am_arg" : 'X\(//\)[^/]' \| \
9 kx X"$_am_arg" : 'X\(//\)$' \| \
9 kx X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9 kx $as_echo X"$_am_arg" |
9 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)[^/].*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\).*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx s/.*/./; q'`/stamp-h$_am_stamp_count
9 kx ;;
9 kx
9 kx :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9 kx $as_echo "$as_me: executing $ac_file commands" >&6;}
9 kx ;;
9 kx esac
9 kx
9 kx
9 kx case $ac_file$ac_mode in
9 kx "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9 kx # Older Autoconf quotes --file arguments for eval, but not when files
9 kx # are listed without --file. Let's play safe and only enable the eval
9 kx # if we detect the quoting.
9 kx case $CONFIG_FILES in
9 kx *\'*) eval set x "$CONFIG_FILES" ;;
9 kx *) set x $CONFIG_FILES ;;
9 kx esac
9 kx shift
9 kx for mf
9 kx do
9 kx # Strip MF so we end up with the name of the file.
9 kx mf=`echo "$mf" | sed -e 's/:.*$//'`
9 kx # Check whether this is an Automake generated Makefile or not.
9 kx # We used to match only the files named 'Makefile.in', but
9 kx # some people rename them; so instead we look at the file content.
9 kx # Grep'ing the first line is not enough: some people post-process
9 kx # each Makefile.in and add a new line on top of each file to say so.
9 kx # Grep'ing the whole file is not good either: AIX grep has a line
9 kx # limit of 2048, but all sed's we know have understand at least 4000.
9 kx if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9 kx dirpart=`$as_dirname -- "$mf" ||
9 kx $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9 kx X"$mf" : 'X\(//\)[^/]' \| \
9 kx X"$mf" : 'X\(//\)$' \| \
9 kx X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9 kx $as_echo X"$mf" |
9 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)[^/].*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\).*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx s/.*/./; q'`
9 kx else
9 kx continue
9 kx fi
9 kx # Extract the definition of DEPDIR, am__include, and am__quote
9 kx # from the Makefile without running 'make'.
9 kx DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9 kx test -z "$DEPDIR" && continue
9 kx am__include=`sed -n 's/^am__include = //p' < "$mf"`
9 kx test -z "$am__include" && continue
9 kx am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9 kx # Find all dependency output files, they are included files with
9 kx # $(DEPDIR) in their names. We invoke sed twice because it is the
9 kx # simplest approach to changing $(DEPDIR) to its actual value in the
9 kx # expansion.
9 kx for file in `sed -n "
9 kx s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9 kx sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9 kx # Make sure the directory exists.
9 kx test -f "$dirpart/$file" && continue
9 kx fdir=`$as_dirname -- "$file" ||
9 kx $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9 kx X"$file" : 'X\(//\)[^/]' \| \
9 kx X"$file" : 'X\(//\)$' \| \
9 kx X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9 kx $as_echo X"$file" |
9 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)[^/].*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\/\)$/{
9 kx s//\1/
9 kx q
9 kx }
9 kx /^X\(\/\).*/{
9 kx s//\1/
9 kx q
9 kx }
9 kx s/.*/./; q'`
9 kx as_dir=$dirpart/$fdir; as_fn_mkdir_p
9 kx # echo "creating $dirpart/$file"
9 kx echo '# dummy' > "$dirpart/$file"
9 kx done
9 kx done
9 kx }
9 kx ;;
9 kx "libtool":C)
9 kx
9 kx # See if we are running on zsh, and set the options which allow our
9 kx # commands through without removal of \ escapes.
9 kx if test -n "${ZSH_VERSION+set}" ; then
9 kx setopt NO_GLOB_SUBST
9 kx fi
9 kx
9 kx cfgfile="${ofile}T"
9 kx trap "$RM \"$cfgfile\"; exit 1" 1 2 15
9 kx $RM "$cfgfile"
9 kx
9 kx cat <<_LT_EOF >> "$cfgfile"
9 kx #! $SHELL
9 kx
9 kx # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9 kx # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
9 kx # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9 kx # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9 kx #
9 kx # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
9 kx # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
9 kx # Written by Gordon Matzigkeit, 1996
9 kx #
9 kx # This file is part of GNU Libtool.
9 kx #
9 kx # GNU Libtool is free software; you can redistribute it and/or
9 kx # modify it under the terms of the GNU General Public License as
9 kx # published by the Free Software Foundation; either version 2 of
9 kx # the License, or (at your option) any later version.
9 kx #
9 kx # As a special exception to the GNU General Public License,
9 kx # if you distribute this file as part of a program or library that
9 kx # is built using GNU Libtool, you may include this file under the
9 kx # same distribution terms that you use for the rest of that program.
9 kx #
9 kx # GNU Libtool is distributed in the hope that it will be useful,
9 kx # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 kx # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 kx # GNU General Public License for more details.
9 kx #
9 kx # You should have received a copy of the GNU General Public License
9 kx # along with GNU Libtool; see the file COPYING. If not, a copy
9 kx # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
9 kx # obtained by writing to the Free Software Foundation, Inc.,
9 kx # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9 kx
9 kx
9 kx # The names of the tagged configurations supported by this script.
9 kx available_tags=""
9 kx
9 kx # ### BEGIN LIBTOOL CONFIG
9 kx
9 kx # Which release of libtool.m4 was used?
9 kx macro_version=$macro_version
9 kx macro_revision=$macro_revision
9 kx
9 kx # Whether or not to build shared libraries.
9 kx build_libtool_libs=$enable_shared
9 kx
9 kx # Whether or not to build static libraries.
9 kx build_old_libs=$enable_static
9 kx
9 kx # What type of objects to build.
9 kx pic_mode=$pic_mode
9 kx
9 kx # Whether or not to optimize for fast installation.
9 kx fast_install=$enable_fast_install
9 kx
9 kx # Shell to use when invoking shell scripts.
9 kx SHELL=$lt_SHELL
9 kx
9 kx # An echo program that protects backslashes.
9 kx ECHO=$lt_ECHO
9 kx
9 kx # The host system.
9 kx host_alias=$host_alias
9 kx host=$host
9 kx host_os=$host_os
9 kx
9 kx # The build system.
9 kx build_alias=$build_alias
9 kx build=$build
9 kx build_os=$build_os
9 kx
9 kx # A sed program that does not truncate output.
9 kx SED=$lt_SED
9 kx
9 kx # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9 kx Xsed="\$SED -e 1s/^X//"
9 kx
9 kx # A grep program that handles long lines.
9 kx GREP=$lt_GREP
9 kx
9 kx # An ERE matcher.
9 kx EGREP=$lt_EGREP
9 kx
9 kx # A literal string matcher.
9 kx FGREP=$lt_FGREP
9 kx
9 kx # A BSD- or MS-compatible name lister.
9 kx NM=$lt_NM
9 kx
9 kx # Whether we need soft or hard links.
9 kx LN_S=$lt_LN_S
9 kx
9 kx # What is the maximum length of a command?
9 kx max_cmd_len=$max_cmd_len
9 kx
9 kx # Object file suffix (normally "o").
9 kx objext=$ac_objext
9 kx
9 kx # Executable file suffix (normally "").
9 kx exeext=$exeext
9 kx
9 kx # whether the shell understands "unset".
9 kx lt_unset=$lt_unset
9 kx
9 kx # turn spaces into newlines.
9 kx SP2NL=$lt_lt_SP2NL
9 kx
9 kx # turn newlines into spaces.
9 kx NL2SP=$lt_lt_NL2SP
9 kx
9 kx # An object symbol dumper.
9 kx OBJDUMP=$lt_OBJDUMP
9 kx
9 kx # Method to check whether dependent libraries are shared objects.
9 kx deplibs_check_method=$lt_deplibs_check_method
9 kx
9 kx # Command to use when deplibs_check_method == "file_magic".
9 kx file_magic_cmd=$lt_file_magic_cmd
9 kx
9 kx # The archiver.
9 kx AR=$lt_AR
9 kx AR_FLAGS=$lt_AR_FLAGS
9 kx
9 kx # A symbol stripping program.
9 kx STRIP=$lt_STRIP
9 kx
9 kx # Commands used to install an old-style archive.
9 kx RANLIB=$lt_RANLIB
9 kx old_postinstall_cmds=$lt_old_postinstall_cmds
9 kx old_postuninstall_cmds=$lt_old_postuninstall_cmds
9 kx
9 kx # Whether to use a lock for old archive extraction.
9 kx lock_old_archive_extraction=$lock_old_archive_extraction
9 kx
9 kx # A C compiler.
9 kx LTCC=$lt_CC
9 kx
9 kx # LTCC compiler flags.
9 kx LTCFLAGS=$lt_CFLAGS
9 kx
9 kx # Take the output of nm and produce a listing of raw symbols and C names.
9 kx global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9 kx
9 kx # Transform the output of nm in a proper C declaration.
9 kx global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9 kx
9 kx # Transform the output of nm in a C name address pair.
9 kx global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9 kx
9 kx # Transform the output of nm in a C name address pair when lib prefix is needed.
9 kx global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
9 kx
9 kx # The name of the directory that contains temporary libtool files.
9 kx objdir=$objdir
9 kx
9 kx # Used to examine libraries when file_magic_cmd begins with "file".
9 kx MAGIC_CMD=$MAGIC_CMD
9 kx
9 kx # Must we lock files when doing compilation?
9 kx need_locks=$lt_need_locks
9 kx
9 kx # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
9 kx DSYMUTIL=$lt_DSYMUTIL
9 kx
9 kx # Tool to change global to local symbols on Mac OS X.
9 kx NMEDIT=$lt_NMEDIT
9 kx
9 kx # Tool to manipulate fat objects and archives on Mac OS X.
9 kx LIPO=$lt_LIPO
9 kx
9 kx # ldd/readelf like tool for Mach-O binaries on Mac OS X.
9 kx OTOOL=$lt_OTOOL
9 kx
9 kx # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
9 kx OTOOL64=$lt_OTOOL64
9 kx
9 kx # Old archive suffix (normally "a").
9 kx libext=$libext
9 kx
9 kx # Shared library suffix (normally ".so").
9 kx shrext_cmds=$lt_shrext_cmds
9 kx
9 kx # The commands to extract the exported symbol list from a shared archive.
9 kx extract_expsyms_cmds=$lt_extract_expsyms_cmds
9 kx
9 kx # Variables whose values should be saved in libtool wrapper scripts and
9 kx # restored at link time.
9 kx variables_saved_for_relink=$lt_variables_saved_for_relink
9 kx
9 kx # Do we need the "lib" prefix for modules?
9 kx need_lib_prefix=$need_lib_prefix
9 kx
9 kx # Do we need a version for libraries?
9 kx need_version=$need_version
9 kx
9 kx # Library versioning type.
9 kx version_type=$version_type
9 kx
9 kx # Shared library runtime path variable.
9 kx runpath_var=$runpath_var
9 kx
9 kx # Shared library path variable.
9 kx shlibpath_var=$shlibpath_var
9 kx
9 kx # Is shlibpath searched before the hard-coded library search path?
9 kx shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9 kx
9 kx # Format of library name prefix.
9 kx libname_spec=$lt_libname_spec
9 kx
9 kx # List of archive names. First name is the real one, the rest are links.
9 kx # The last name is the one that the linker finds with -lNAME
9 kx library_names_spec=$lt_library_names_spec
9 kx
9 kx # The coded name of the library, if different from the real name.
9 kx soname_spec=$lt_soname_spec
9 kx
9 kx # Permission mode override for installation of shared libraries.
9 kx install_override_mode=$lt_install_override_mode
9 kx
9 kx # Command to use after installation of a shared archive.
9 kx postinstall_cmds=$lt_postinstall_cmds
9 kx
9 kx # Command to use after uninstallation of a shared archive.
9 kx postuninstall_cmds=$lt_postuninstall_cmds
9 kx
9 kx # Commands used to finish a libtool library installation in a directory.
9 kx finish_cmds=$lt_finish_cmds
9 kx
9 kx # As "finish_cmds", except a single script fragment to be evaled but
9 kx # not shown.
9 kx finish_eval=$lt_finish_eval
9 kx
9 kx # Whether we should hardcode library paths into libraries.
9 kx hardcode_into_libs=$hardcode_into_libs
9 kx
9 kx # Compile-time system search path for libraries.
9 kx sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9 kx
9 kx # Run-time system search path for libraries.
9 kx sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9 kx
9 kx # Whether dlopen is supported.
9 kx dlopen_support=$enable_dlopen
9 kx
9 kx # Whether dlopen of programs is supported.
9 kx dlopen_self=$enable_dlopen_self
9 kx
9 kx # Whether dlopen of statically linked programs is supported.
9 kx dlopen_self_static=$enable_dlopen_self_static
9 kx
9 kx # Commands to strip libraries.
9 kx old_striplib=$lt_old_striplib
9 kx striplib=$lt_striplib
9 kx
9 kx
9 kx # The linker used to build libraries.
9 kx LD=$lt_LD
9 kx
9 kx # How to create reloadable object files.
9 kx reload_flag=$lt_reload_flag
9 kx reload_cmds=$lt_reload_cmds
9 kx
9 kx # Commands used to build an old-style archive.
9 kx old_archive_cmds=$lt_old_archive_cmds
9 kx
9 kx # A language specific compiler.
9 kx CC=$lt_compiler
9 kx
9 kx # Is the compiler the GNU compiler?
9 kx with_gcc=$GCC
9 kx
9 kx # Compiler flag to turn off builtin functions.
9 kx no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9 kx
9 kx # How to pass a linker flag through the compiler.
9 kx wl=$lt_lt_prog_compiler_wl
9 kx
9 kx # Additional compiler flags for building library objects.
9 kx pic_flag=$lt_lt_prog_compiler_pic
9 kx
9 kx # Compiler flag to prevent dynamic linking.
9 kx link_static_flag=$lt_lt_prog_compiler_static
9 kx
9 kx # Does compiler simultaneously support -c and -o options?
9 kx compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9 kx
9 kx # Whether or not to add -lc for building shared libraries.
9 kx build_libtool_need_lc=$archive_cmds_need_lc
9 kx
9 kx # Whether or not to disallow shared libs when runtime libs are static.
9 kx allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9 kx
9 kx # Compiler flag to allow reflexive dlopens.
9 kx export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9 kx
9 kx # Compiler flag to generate shared objects directly from archives.
9 kx whole_archive_flag_spec=$lt_whole_archive_flag_spec
9 kx
9 kx # Whether the compiler copes with passing no objects directly.
9 kx compiler_needs_object=$lt_compiler_needs_object
9 kx
9 kx # Create an old-style archive from a shared archive.
9 kx old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9 kx
9 kx # Create a temporary old-style archive to link instead of a shared archive.
9 kx old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9 kx
9 kx # Commands used to build a shared archive.
9 kx archive_cmds=$lt_archive_cmds
9 kx archive_expsym_cmds=$lt_archive_expsym_cmds
9 kx
9 kx # Commands used to build a loadable module if different from building
9 kx # a shared archive.
9 kx module_cmds=$lt_module_cmds
9 kx module_expsym_cmds=$lt_module_expsym_cmds
9 kx
9 kx # Whether we are building with GNU ld or not.
9 kx with_gnu_ld=$lt_with_gnu_ld
9 kx
9 kx # Flag that allows shared libraries with undefined symbols to be built.
9 kx allow_undefined_flag=$lt_allow_undefined_flag
9 kx
9 kx # Flag that enforces no undefined symbols.
9 kx no_undefined_flag=$lt_no_undefined_flag
9 kx
9 kx # Flag to hardcode \$libdir into a binary during linking.
9 kx # This must work even if \$libdir does not exist
9 kx hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9 kx
9 kx # If ld is used when linking, flag to hardcode \$libdir into a binary
9 kx # during linking. This must work even if \$libdir does not exist.
9 kx hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9 kx
9 kx # Whether we need a single "-rpath" flag with a separated argument.
9 kx hardcode_libdir_separator=$lt_hardcode_libdir_separator
9 kx
9 kx # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
9 kx # DIR into the resulting binary.
9 kx hardcode_direct=$hardcode_direct
9 kx
9 kx # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
9 kx # DIR into the resulting binary and the resulting library dependency is
9 kx # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
9 kx # library is relocated.
9 kx hardcode_direct_absolute=$hardcode_direct_absolute
9 kx
9 kx # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
9 kx # into the resulting binary.
9 kx hardcode_minus_L=$hardcode_minus_L
9 kx
9 kx # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
9 kx # into the resulting binary.
9 kx hardcode_shlibpath_var=$hardcode_shlibpath_var
9 kx
9 kx # Set to "yes" if building a shared library automatically hardcodes DIR
9 kx # into the library and all subsequent libraries and executables linked
9 kx # against it.
9 kx hardcode_automatic=$hardcode_automatic
9 kx
9 kx # Set to yes if linker adds runtime paths of dependent libraries
9 kx # to runtime path list.
9 kx inherit_rpath=$inherit_rpath
9 kx
9 kx # Whether libtool must link a program against all its dependency libraries.
9 kx link_all_deplibs=$link_all_deplibs
9 kx
9 kx # Fix the shell variable \$srcfile for the compiler.
9 kx fix_srcfile_path=$lt_fix_srcfile_path
9 kx
9 kx # Set to "yes" if exported symbols are required.
9 kx always_export_symbols=$always_export_symbols
9 kx
9 kx # The commands to list exported symbols.
9 kx export_symbols_cmds=$lt_export_symbols_cmds
9 kx
9 kx # Symbols that should not be listed in the preloaded symbols.
9 kx exclude_expsyms=$lt_exclude_expsyms
9 kx
9 kx # Symbols that must always be exported.
9 kx include_expsyms=$lt_include_expsyms
9 kx
9 kx # Commands necessary for linking programs (against libraries) with templates.
9 kx prelink_cmds=$lt_prelink_cmds
9 kx
9 kx # Specify filename containing input files.
9 kx file_list_spec=$lt_file_list_spec
9 kx
9 kx # How to hardcode a shared library path into an executable.
9 kx hardcode_action=$hardcode_action
9 kx
9 kx # ### END LIBTOOL CONFIG
9 kx
9 kx _LT_EOF
9 kx
9 kx case $host_os in
9 kx aix3*)
9 kx cat <<\_LT_EOF >> "$cfgfile"
9 kx # AIX sometimes has problems with the GCC collect2 program. For some
9 kx # reason, if we set the COLLECT_NAMES environment variable, the problems
9 kx # vanish in a puff of smoke.
9 kx if test "X${COLLECT_NAMES+set}" != Xset; then
9 kx COLLECT_NAMES=
9 kx export COLLECT_NAMES
9 kx fi
9 kx _LT_EOF
9 kx ;;
9 kx esac
9 kx
9 kx
9 kx ltmain="$ac_aux_dir/ltmain.sh"
9 kx
9 kx
9 kx # We use sed instead of cat because bash on DJGPP gets confused if
9 kx # if finds mixed CR/LF and LF-only lines. Since sed operates in
9 kx # text mode, it properly converts lines to CR/LF. This bash problem
9 kx # is reportedly fixed, but why not run on old versions too?
9 kx sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
9 kx || (rm -f "$cfgfile"; exit 1)
9 kx
9 kx case $xsi_shell in
9 kx yes)
9 kx cat << \_LT_EOF >> "$cfgfile"
9 kx
9 kx # func_dirname file append nondir_replacement
9 kx # Compute the dirname of FILE. If nonempty, add APPEND to the result,
9 kx # otherwise set result to NONDIR_REPLACEMENT.
9 kx func_dirname ()
9 kx {
9 kx case ${1} in
9 kx */*) func_dirname_result="${1%/*}${2}" ;;
9 kx * ) func_dirname_result="${3}" ;;
9 kx esac
9 kx }
9 kx
9 kx # func_basename file
9 kx func_basename ()
9 kx {
9 kx func_basename_result="${1##*/}"
9 kx }
9 kx
9 kx # func_dirname_and_basename file append nondir_replacement
9 kx # perform func_basename and func_dirname in a single function
9 kx # call:
9 kx # dirname: Compute the dirname of FILE. If nonempty,
9 kx # add APPEND to the result, otherwise set result
9 kx # to NONDIR_REPLACEMENT.
9 kx # value returned in "$func_dirname_result"
9 kx # basename: Compute filename of FILE.
9 kx # value retuned in "$func_basename_result"
9 kx # Implementation must be kept synchronized with func_dirname
9 kx # and func_basename. For efficiency, we do not delegate to
9 kx # those functions but instead duplicate the functionality here.
9 kx func_dirname_and_basename ()
9 kx {
9 kx case ${1} in
9 kx */*) func_dirname_result="${1%/*}${2}" ;;
9 kx * ) func_dirname_result="${3}" ;;
9 kx esac
9 kx func_basename_result="${1##*/}"
9 kx }
9 kx
9 kx # func_stripname prefix suffix name
9 kx # strip PREFIX and SUFFIX off of NAME.
9 kx # PREFIX and SUFFIX must not contain globbing or regex special
9 kx # characters, hashes, percent signs, but SUFFIX may contain a leading
9 kx # dot (in which case that matches only a dot).
9 kx func_stripname ()
9 kx {
9 kx # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
9 kx # positional parameters, so assign one to ordinary parameter first.
9 kx func_stripname_result=${3}
9 kx func_stripname_result=${func_stripname_result#"${1}"}
9 kx func_stripname_result=${func_stripname_result%"${2}"}
9 kx }
9 kx
9 kx # func_opt_split
9 kx func_opt_split ()
9 kx {
9 kx func_opt_split_opt=${1%%=*}
9 kx func_opt_split_arg=${1#*=}
9 kx }
9 kx
9 kx # func_lo2o object
9 kx func_lo2o ()
9 kx {
9 kx case ${1} in
9 kx *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
9 kx *) func_lo2o_result=${1} ;;
9 kx esac
9 kx }
9 kx
9 kx # func_xform libobj-or-source
9 kx func_xform ()
9 kx {
9 kx func_xform_result=${1%.*}.lo
9 kx }
9 kx
9 kx # func_arith arithmetic-term...
9 kx func_arith ()
9 kx {
9 kx func_arith_result=$(( $* ))
9 kx }
9 kx
9 kx # func_len string
9 kx # STRING may not start with a hyphen.
9 kx func_len ()
9 kx {
9 kx func_len_result=${#1}
9 kx }
9 kx
9 kx _LT_EOF
9 kx ;;
9 kx *) # Bourne compatible functions.
9 kx cat << \_LT_EOF >> "$cfgfile"
9 kx
9 kx # func_dirname file append nondir_replacement
9 kx # Compute the dirname of FILE. If nonempty, add APPEND to the result,
9 kx # otherwise set result to NONDIR_REPLACEMENT.
9 kx func_dirname ()
9 kx {
9 kx # Extract subdirectory from the argument.
9 kx func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
9 kx if test "X$func_dirname_result" = "X${1}"; then
9 kx func_dirname_result="${3}"
9 kx else
9 kx func_dirname_result="$func_dirname_result${2}"
9 kx fi
9 kx }
9 kx
9 kx # func_basename file
9 kx func_basename ()
9 kx {
9 kx func_basename_result=`$ECHO "${1}" | $SED "$basename"`
9 kx }
9 kx
9 kx
9 kx # func_stripname prefix suffix name
9 kx # strip PREFIX and SUFFIX off of NAME.
9 kx # PREFIX and SUFFIX must not contain globbing or regex special
9 kx # characters, hashes, percent signs, but SUFFIX may contain a leading
9 kx # dot (in which case that matches only a dot).
9 kx # func_strip_suffix prefix name
9 kx func_stripname ()
9 kx {
9 kx case ${2} in
9 kx .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9 kx *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9 kx esac
9 kx }
9 kx
9 kx # sed scripts:
9 kx my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
9 kx my_sed_long_arg='1s/^-[^=]*=//'
9 kx
9 kx # func_opt_split
9 kx func_opt_split ()
9 kx {
9 kx func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
9 kx func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
9 kx }
9 kx
9 kx # func_lo2o object
9 kx func_lo2o ()
9 kx {
9 kx func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
9 kx }
9 kx
9 kx # func_xform libobj-or-source
9 kx func_xform ()
9 kx {
9 kx func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
9 kx }
9 kx
9 kx # func_arith arithmetic-term...
9 kx func_arith ()
9 kx {
9 kx func_arith_result=`expr "$@"`
9 kx }
9 kx
9 kx # func_len string
9 kx # STRING may not start with a hyphen.
9 kx func_len ()
9 kx {
9 kx func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
9 kx }
9 kx
9 kx _LT_EOF
9 kx esac
9 kx
9 kx case $lt_shell_append in
9 kx yes)
9 kx cat << \_LT_EOF >> "$cfgfile"
9 kx
9 kx # func_append var value
9 kx # Append VALUE to the end of shell variable VAR.
9 kx func_append ()
9 kx {
9 kx eval "$1+=\$2"
9 kx }
9 kx _LT_EOF
9 kx ;;
9 kx *)
9 kx cat << \_LT_EOF >> "$cfgfile"
9 kx
9 kx # func_append var value
9 kx # Append VALUE to the end of shell variable VAR.
9 kx func_append ()
9 kx {
9 kx eval "$1=\$$1\$2"
9 kx }
9 kx
9 kx _LT_EOF
9 kx ;;
9 kx esac
9 kx
9 kx
9 kx sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
9 kx || (rm -f "$cfgfile"; exit 1)
9 kx
9 kx mv -f "$cfgfile" "$ofile" ||
9 kx (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9 kx chmod +x "$ofile"
9 kx
9 kx ;;
9 kx "default-1":C)
9 kx for ac_file in $CONFIG_FILES; do
9 kx # Support "outfile[:infile[:infile...]]"
9 kx case "$ac_file" in
9 kx *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9 kx esac
9 kx # PO directories have a Makefile.in generated from Makefile.in.in.
9 kx case "$ac_file" in */Makefile.in)
9 kx # Adjust a relative srcdir.
9 kx ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9 kx ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
9 kx ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9 kx # In autoconf-2.13 it is called $ac_given_srcdir.
9 kx # In autoconf-2.50 it is called $srcdir.
9 kx test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9 kx case "$ac_given_srcdir" in
9 kx .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9 kx /*) top_srcdir="$ac_given_srcdir" ;;
9 kx *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9 kx esac
9 kx if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9 kx rm -f "$ac_dir/POTFILES"
9 kx test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9 kx cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9 kx POMAKEFILEDEPS="POTFILES.in"
9 kx # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9 kx # on $ac_dir but don't depend on user-specified configuration
9 kx # parameters.
9 kx if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9 kx # The LINGUAS file contains the set of available languages.
9 kx if test -n "$OBSOLETE_ALL_LINGUAS"; then
9 kx test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
9 kx fi
9 kx ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9 kx # Hide the ALL_LINGUAS assigment from automake.
9 kx eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9 kx POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9 kx else
9 kx # The set of available languages was given in configure.ac.
9 kx eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9 kx fi
9 kx case "$ac_given_srcdir" in
9 kx .) srcdirpre= ;;
9 kx *) srcdirpre='$(srcdir)/' ;;
9 kx esac
9 kx POFILES=
9 kx GMOFILES=
9 kx UPDATEPOFILES=
9 kx DUMMYPOFILES=
9 kx for lang in $ALL_LINGUAS; do
9 kx POFILES="$POFILES $srcdirpre$lang.po"
9 kx GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9 kx UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9 kx DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9 kx done
9 kx # CATALOGS depends on both $ac_dir and the user's LINGUAS
9 kx # environment variable.
9 kx INST_LINGUAS=
9 kx if test -n "$ALL_LINGUAS"; then
9 kx for presentlang in $ALL_LINGUAS; do
9 kx useit=no
9 kx if test "%UNSET%" != "$LINGUAS"; then
9 kx desiredlanguages="$LINGUAS"
9 kx else
9 kx desiredlanguages="$ALL_LINGUAS"
9 kx fi
9 kx for desiredlang in $desiredlanguages; do
9 kx # Use the presentlang catalog if desiredlang is
9 kx # a. equal to presentlang, or
9 kx # b. a variant of presentlang (because in this case,
9 kx # presentlang can be used as a fallback for messages
9 kx # which are not translated in the desiredlang catalog).
9 kx case "$desiredlang" in
9 kx "$presentlang"*) useit=yes;;
9 kx esac
9 kx done
9 kx if test $useit = yes; then
9 kx INST_LINGUAS="$INST_LINGUAS $presentlang"
9 kx fi
9 kx done
9 kx fi
9 kx CATALOGS=
9 kx if test -n "$INST_LINGUAS"; then
9 kx for lang in $INST_LINGUAS; do
9 kx CATALOGS="$CATALOGS $lang.gmo"
9 kx done
9 kx fi
9 kx test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9 kx sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9 kx for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9 kx if test -f "$f"; then
9 kx case "$f" in
9 kx *.orig | *.bak | *~) ;;
9 kx *) cat "$f" >> "$ac_dir/Makefile" ;;
9 kx esac
9 kx fi
9 kx done
9 kx fi
9 kx ;;
9 kx esac
9 kx done ;;
9 kx "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
9 kx echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
9 kx echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
9 kx echo '#include "te-'"${te_file}"'.h"' > targ-env.h
9 kx echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
9 kx if test "x$cgen_cpu_prefix" != x ; then
9 kx echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
9 kx fi ;;
9 kx
9 kx esac
9 kx done # for ac_tag
9 kx
9 kx
9 kx as_fn_exit 0
9 kx _ACEOF
9 kx ac_clean_files=$ac_clean_files_save
9 kx
9 kx test $ac_write_fail = 0 ||
9 kx as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9 kx
9 kx
9 kx # configure is writing to config.log, and then calls config.status.
9 kx # config.status does its own redirection, appending to config.log.
9 kx # Unfortunately, on DOS this fails, as config.log is still kept open
9 kx # by configure, so config.status won't be able to write to it; its
9 kx # output is simply discarded. So we exec the FD to /dev/null,
9 kx # effectively closing config.log, so it can be properly (re)opened and
9 kx # appended to by config.status. When coming back to configure, we
9 kx # need to make the FD available again.
9 kx if test "$no_create" != yes; then
9 kx ac_cs_success=:
9 kx ac_config_status_args=
9 kx test "$silent" = yes &&
9 kx ac_config_status_args="$ac_config_status_args --quiet"
9 kx exec 5>/dev/null
9 kx $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9 kx exec 5>>config.log
9 kx # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9 kx # would make configure fail if this is the last instruction.
9 kx $ac_cs_success || as_fn_exit 1
9 kx fi
9 kx if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9 kx $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9 kx fi
9 kx
9 kx
9 kx
9 kx touch config.status.tmp
9 kx if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
9 kx sed '/as_fn_exit 0/i \
9 kx sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
9 kx touch --reference=Makefile Makefile.tmp \
9 kx mv Makefile.tmp Makefile \
9 kx ' config.status > config.status.tmp
9 kx touch --reference=config.status config.status.tmp
9 kx mv config.status.tmp config.status
9 kx chmod +x config.status
9 kx sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
9 kx touch --reference=Makefile Makefile.tmp
9 kx mv Makefile.tmp Makefile
9 kx else
9 kx rm -f config.status.tmp
9 kx fi