5 kx #! /bin/sh
5 kx # Guess values for system-dependent variables and create Makefiles.
5 kx # Generated by GNU Autoconf 2.61.
5 kx #
5 kx # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5 kx # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5 kx # This configure script is free software; the Free Software Foundation
5 kx # gives unlimited permission to copy, distribute and modify it.
5 kx ## --------------------- ##
5 kx ## M4sh Initialization. ##
5 kx ## --------------------- ##
5 kx
5 kx # Be more Bourne compatible
5 kx DUALCASE=1; export DUALCASE # for MKS sh
5 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5 kx emulate sh
5 kx NULLCMD=:
5 kx # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5 kx # is contrary to our usage. Disable this feature.
5 kx alias -g '${1+"$@"}'='"$@"'
5 kx setopt NO_GLOB_SUBST
5 kx else
5 kx case `(set -o) 2>/dev/null` in
5 kx *posix*) set -o posix ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx # PATH needs CR
5 kx # Avoid depending upon Character Ranges.
5 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5 kx as_cr_digits='0123456789'
5 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
5 kx
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx echo "#! /bin/sh" >conf$$.sh
5 kx echo "exit 0" >>conf$$.sh
5 kx chmod +x conf$$.sh
5 kx if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5 kx PATH_SEPARATOR=';'
5 kx else
5 kx PATH_SEPARATOR=:
5 kx fi
5 kx rm -f conf$$.sh
5 kx fi
5 kx
5 kx # Support unset when possible.
5 kx if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5 kx as_unset=unset
5 kx else
5 kx as_unset=false
5 kx fi
5 kx
5 kx
5 kx # IFS
5 kx # We need space, tab and new line, in precisely that order. Quoting is
5 kx # there to prevent editors from complaining about space-tab.
5 kx # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5 kx # splitting by setting IFS to empty value.)
5 kx as_nl='
5 kx '
5 kx IFS=" "" $as_nl"
5 kx
5 kx # Find who we are. Look in the path if we contain no directory separator.
5 kx case $0 in
5 kx *[\\/]* ) as_myself=$0 ;;
5 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
5 kx # in which case we are not to be found in the path.
5 kx if test "x$as_myself" = x; then
5 kx as_myself=$0
5 kx fi
5 kx if test ! -f "$as_myself"; then
5 kx echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5 kx { (exit 1); exit 1; }
5 kx fi
5 kx
5 kx # Work around bugs in pre-3.0 UWIN ksh.
5 kx for as_var in ENV MAIL MAILPATH
5 kx do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5 kx done
5 kx PS1='$ '
5 kx PS2='> '
5 kx PS4='+ '
5 kx
5 kx # NLS nuisances.
5 kx for as_var in \
5 kx LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5 kx LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5 kx LC_TELEPHONE LC_TIME
5 kx do
5 kx if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5 kx eval $as_var=C; export $as_var
5 kx else
5 kx ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5 kx fi
5 kx done
5 kx
5 kx # Required to use basename.
5 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
5 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
5 kx as_expr=expr
5 kx else
5 kx as_expr=false
5 kx fi
5 kx
5 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5 kx as_basename=basename
5 kx else
5 kx as_basename=false
5 kx fi
5 kx
5 kx
5 kx # Name of the executable.
5 kx as_me=`$as_basename -- "$0" ||
5 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5 kx X"$0" : 'X\(//\)$' \| \
5 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5 kx echo X/"$0" |
5 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx
5 kx # CDPATH.
5 kx $as_unset CDPATH
5 kx
5 kx
5 kx if test "x$CONFIG_SHELL" = x; then
5 kx if (eval ":") 2>/dev/null; then
5 kx as_have_required=yes
5 kx else
5 kx as_have_required=no
5 kx fi
5 kx
5 kx if test $as_have_required = yes && (eval ":
5 kx (as_func_return () {
5 kx (exit \$1)
5 kx }
5 kx as_func_success () {
5 kx as_func_return 0
5 kx }
5 kx as_func_failure () {
5 kx as_func_return 1
5 kx }
5 kx as_func_ret_success () {
5 kx return 0
5 kx }
5 kx as_func_ret_failure () {
5 kx return 1
5 kx }
5 kx
5 kx exitcode=0
5 kx if as_func_success; then
5 kx :
5 kx else
5 kx exitcode=1
5 kx echo as_func_success failed.
5 kx fi
5 kx
5 kx if as_func_failure; then
5 kx exitcode=1
5 kx echo as_func_failure succeeded.
5 kx fi
5 kx
5 kx if as_func_ret_success; then
5 kx :
5 kx else
5 kx exitcode=1
5 kx echo as_func_ret_success failed.
5 kx fi
5 kx
5 kx if as_func_ret_failure; then
5 kx exitcode=1
5 kx echo as_func_ret_failure succeeded.
5 kx fi
5 kx
5 kx if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
5 kx :
5 kx else
5 kx exitcode=1
5 kx echo positional parameters were not saved.
5 kx fi
5 kx
5 kx test \$exitcode = 0) || { (exit 1); exit 1; }
5 kx
5 kx (
5 kx as_lineno_1=\$LINENO
5 kx as_lineno_2=\$LINENO
5 kx test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
5 kx test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
5 kx ") 2> /dev/null; then
5 kx :
5 kx else
5 kx as_candidate_shells=
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx case $as_dir in
5 kx /*)
5 kx for as_base in sh bash ksh sh5; do
5 kx as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
5 kx done;;
5 kx esac
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx
5 kx for as_shell in $as_candidate_shells $SHELL; do
5 kx # Try only shells that exist, to save several forks.
5 kx if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
5 kx { ("$as_shell") 2> /dev/null <<\_ASEOF
5 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5 kx emulate sh
5 kx NULLCMD=:
5 kx # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5 kx # is contrary to our usage. Disable this feature.
5 kx alias -g '${1+"$@"}'='"$@"'
5 kx setopt NO_GLOB_SUBST
5 kx else
5 kx case `(set -o) 2>/dev/null` in
5 kx *posix*) set -o posix ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx :
5 kx _ASEOF
5 kx }; then
5 kx CONFIG_SHELL=$as_shell
5 kx as_have_required=yes
5 kx if { "$as_shell" 2> /dev/null <<\_ASEOF
5 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5 kx emulate sh
5 kx NULLCMD=:
5 kx # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5 kx # is contrary to our usage. Disable this feature.
5 kx alias -g '${1+"$@"}'='"$@"'
5 kx setopt NO_GLOB_SUBST
5 kx else
5 kx case `(set -o) 2>/dev/null` in
5 kx *posix*) set -o posix ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx :
5 kx (as_func_return () {
5 kx (exit $1)
5 kx }
5 kx as_func_success () {
5 kx as_func_return 0
5 kx }
5 kx as_func_failure () {
5 kx as_func_return 1
5 kx }
5 kx as_func_ret_success () {
5 kx return 0
5 kx }
5 kx as_func_ret_failure () {
5 kx return 1
5 kx }
5 kx
5 kx exitcode=0
5 kx if as_func_success; then
5 kx :
5 kx else
5 kx exitcode=1
5 kx echo as_func_success failed.
5 kx fi
5 kx
5 kx if as_func_failure; then
5 kx exitcode=1
5 kx echo as_func_failure succeeded.
5 kx fi
5 kx
5 kx if as_func_ret_success; then
5 kx :
5 kx else
5 kx exitcode=1
5 kx echo as_func_ret_success failed.
5 kx fi
5 kx
5 kx if as_func_ret_failure; then
5 kx exitcode=1
5 kx echo as_func_ret_failure succeeded.
5 kx fi
5 kx
5 kx if ( set x; as_func_ret_success y && test x = "$1" ); then
5 kx :
5 kx else
5 kx exitcode=1
5 kx echo positional parameters were not saved.
5 kx fi
5 kx
5 kx test $exitcode = 0) || { (exit 1); exit 1; }
5 kx
5 kx (
5 kx as_lineno_1=$LINENO
5 kx as_lineno_2=$LINENO
5 kx test "x$as_lineno_1" != "x$as_lineno_2" &&
5 kx test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
5 kx
5 kx _ASEOF
5 kx }; then
5 kx break
5 kx fi
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx if test "x$CONFIG_SHELL" != x; then
5 kx for as_var in BASH_ENV ENV
5 kx do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5 kx done
5 kx export CONFIG_SHELL
5 kx exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
5 kx fi
5 kx
5 kx
5 kx if test $as_have_required = no; then
5 kx echo This script requires a shell more modern than all the
5 kx echo shells that I found on your system. Please install a
5 kx echo modern shell, or manually run the script under such a
5 kx echo shell if you do have one.
5 kx { (exit 1); exit 1; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx (eval "as_func_return () {
5 kx (exit \$1)
5 kx }
5 kx as_func_success () {
5 kx as_func_return 0
5 kx }
5 kx as_func_failure () {
5 kx as_func_return 1
5 kx }
5 kx as_func_ret_success () {
5 kx return 0
5 kx }
5 kx as_func_ret_failure () {
5 kx return 1
5 kx }
5 kx
5 kx exitcode=0
5 kx if as_func_success; then
5 kx :
5 kx else
5 kx exitcode=1
5 kx echo as_func_success failed.
5 kx fi
5 kx
5 kx if as_func_failure; then
5 kx exitcode=1
5 kx echo as_func_failure succeeded.
5 kx fi
5 kx
5 kx if as_func_ret_success; then
5 kx :
5 kx else
5 kx exitcode=1
5 kx echo as_func_ret_success failed.
5 kx fi
5 kx
5 kx if as_func_ret_failure; then
5 kx exitcode=1
5 kx echo as_func_ret_failure succeeded.
5 kx fi
5 kx
5 kx if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
5 kx :
5 kx else
5 kx exitcode=1
5 kx echo positional parameters were not saved.
5 kx fi
5 kx
5 kx test \$exitcode = 0") || {
5 kx echo No shell found that supports shell functions.
5 kx echo Please tell autoconf@gnu.org about your system,
5 kx echo including any error possibly output before this
5 kx echo message
5 kx }
5 kx
5 kx
5 kx
5 kx as_lineno_1=$LINENO
5 kx as_lineno_2=$LINENO
5 kx test "x$as_lineno_1" != "x$as_lineno_2" &&
5 kx test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5 kx
5 kx # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5 kx # uniformly replaced by the line number. The first 'sed' inserts a
5 kx # line-number line after each line using $LINENO; the second 'sed'
5 kx # does the real work. The second script uses 'N' to pair each
5 kx # line-number line with the line containing $LINENO, and appends
5 kx # trailing '-' during substitution so that $LINENO is not a special
5 kx # case at line end.
5 kx # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5 kx # scripts with optimization help from Paolo Bonzini. Blame Lee
5 kx # E. McMahon (1931-1989) for sed's syntax. :-)
5 kx sed -n '
5 kx p
5 kx /[$]LINENO/=
5 kx ' <$as_myself |
5 kx sed '
5 kx s/[$]LINENO.*/&-/
5 kx t lineno
5 kx b
5 kx :lineno
5 kx N
5 kx :loop
5 kx s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5 kx t loop
5 kx s/-\n.*//
5 kx ' >$as_me.lineno &&
5 kx chmod +x "$as_me.lineno" ||
5 kx { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5 kx { (exit 1); exit 1; }; }
5 kx
5 kx # Don't try to exec as it changes $[0], causing all sort of problems
5 kx # (the dirname of $[0] is not the place where we might find the
5 kx # original and so on. Autoconf is especially sensitive to this).
5 kx . "./$as_me.lineno"
5 kx # Exit status is that of the last command.
5 kx exit
5 kx }
5 kx
5 kx
5 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5 kx as_dirname=dirname
5 kx else
5 kx as_dirname=false
5 kx fi
5 kx
5 kx ECHO_C= ECHO_N= ECHO_T=
5 kx case `echo -n x` in
5 kx -n*)
5 kx case `echo 'x\c'` in
5 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5 kx *) ECHO_C='\c';;
5 kx esac;;
5 kx *)
5 kx ECHO_N='-n';;
5 kx esac
5 kx
5 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
5 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
5 kx as_expr=expr
5 kx else
5 kx as_expr=false
5 kx fi
5 kx
5 kx rm -f conf$$ conf$$.exe conf$$.file
5 kx if test -d conf$$.dir; then
5 kx rm -f conf$$.dir/conf$$.file
5 kx else
5 kx rm -f conf$$.dir
5 kx mkdir conf$$.dir
5 kx fi
5 kx echo >conf$$.file
5 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s='ln -s'
5 kx # ... but there are two gotchas:
5 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5 kx # In both cases, we have to default to `cp -p'.
5 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5 kx as_ln_s='cp -p'
5 kx elif ln conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s=ln
5 kx else
5 kx as_ln_s='cp -p'
5 kx fi
5 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5 kx rmdir conf$$.dir 2>/dev/null
5 kx
5 kx if mkdir -p . 2>/dev/null; then
5 kx as_mkdir_p=:
5 kx else
5 kx test -d ./-p && rmdir ./-p
5 kx as_mkdir_p=false
5 kx fi
5 kx
5 kx if test -x / >/dev/null 2>&1; then
5 kx as_test_x='test -x'
5 kx else
5 kx if ls -dL / >/dev/null 2>&1; then
5 kx as_ls_L_option=L
5 kx else
5 kx as_ls_L_option=
5 kx fi
5 kx as_test_x='
5 kx eval sh -c '\''
5 kx if test -d "$1"; then
5 kx test -d "$1/.";
5 kx else
5 kx case $1 in
5 kx -*)set "./$1";;
5 kx esac;
5 kx case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5 kx ???[sx]*):;;*)false;;esac;fi
5 kx '\'' sh
5 kx '
5 kx fi
5 kx as_executable_p=$as_test_x
5 kx
5 kx # Sed expression to map a string onto a valid CPP name.
5 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx # Sed expression to map a string onto a valid variable name.
5 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx
5 kx
5 kx
5 kx # Check that we are running under the correct shell.
5 kx SHELL=${CONFIG_SHELL-/bin/sh}
5 kx
5 kx case X$ECHO in
5 kx X*--fallback-echo)
5 kx # Remove one level of quotation (which was required for Make).
5 kx ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
5 kx ;;
5 kx esac
5 kx
5 kx echo=${ECHO-echo}
5 kx if test "X$1" = X--no-reexec; then
5 kx # Discard the --no-reexec flag, and continue.
5 kx shift
5 kx elif test "X$1" = X--fallback-echo; then
5 kx # Avoid inline document here, it may be left over
5 kx :
5 kx elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
5 kx # Yippee, $echo works!
5 kx :
5 kx else
5 kx # Restart under the correct shell.
5 kx exec $SHELL "$0" --no-reexec ${1+"$@"}
5 kx fi
5 kx
5 kx if test "X$1" = X--fallback-echo; then
5 kx # used as fallback echo
5 kx shift
5 kx cat <<EOF
5 kx $*
5 kx EOF
5 kx exit 0
5 kx fi
5 kx
5 kx # The HP-UX ksh and POSIX shell print the target directory to stdout
5 kx # if CDPATH is set.
5 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5 kx
5 kx if test -z "$ECHO"; then
5 kx if test "X${echo_test_string+set}" != Xset; then
5 kx # find a string as large as possible, as long as the shell can cope with it
5 kx for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
5 kx # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
5 kx if (echo_test_string=`eval $cmd`) 2>/dev/null &&
5 kx echo_test_string=`eval $cmd` &&
5 kx (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
5 kx then
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx
5 kx if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
5 kx echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
5 kx test "X$echo_testing_string" = "X$echo_test_string"; then
5 kx :
5 kx else
5 kx # The Solaris, AIX, and Digital Unix default echo programs unquote
5 kx # backslashes. This makes it impossible to quote backslashes using
5 kx # echo "$something" | sed 's/\\/\\\\/g'
5 kx #
5 kx # So, first we look for a working echo in the user's PATH.
5 kx
5 kx lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5 kx for dir in $PATH /usr/ucb; do
5 kx IFS="$lt_save_ifs"
5 kx if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
5 kx test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
5 kx echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
5 kx test "X$echo_testing_string" = "X$echo_test_string"; then
5 kx echo="$dir/echo"
5 kx break
5 kx fi
5 kx done
5 kx IFS="$lt_save_ifs"
5 kx
5 kx if test "X$echo" = Xecho; then
5 kx # We didn't find a better echo, so look for alternatives.
5 kx if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
5 kx echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
5 kx test "X$echo_testing_string" = "X$echo_test_string"; then
5 kx # This shell has a builtin print -r that does the trick.
5 kx echo='print -r'
5 kx elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
5 kx test "X$CONFIG_SHELL" != X/bin/ksh; then
5 kx # If we have ksh, try running configure again with it.
5 kx ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5 kx export ORIGINAL_CONFIG_SHELL
5 kx CONFIG_SHELL=/bin/ksh
5 kx export CONFIG_SHELL
5 kx exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
5 kx else
5 kx # Try using printf.
5 kx echo='printf %s\n'
5 kx if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
5 kx echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
5 kx test "X$echo_testing_string" = "X$echo_test_string"; then
5 kx # Cool, printf works
5 kx :
5 kx elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
5 kx test "X$echo_testing_string" = 'X\t' &&
5 kx echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
5 kx test "X$echo_testing_string" = "X$echo_test_string"; then
5 kx CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
5 kx export CONFIG_SHELL
5 kx SHELL="$CONFIG_SHELL"
5 kx export SHELL
5 kx echo="$CONFIG_SHELL $0 --fallback-echo"
5 kx elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
5 kx test "X$echo_testing_string" = 'X\t' &&
5 kx echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
5 kx test "X$echo_testing_string" = "X$echo_test_string"; then
5 kx echo="$CONFIG_SHELL $0 --fallback-echo"
5 kx else
5 kx # maybe with a smaller string...
5 kx prev=:
5 kx
5 kx for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
5 kx if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
5 kx then
5 kx break
5 kx fi
5 kx prev="$cmd"
5 kx done
5 kx
5 kx if test "$prev" != 'sed 50q "$0"'; then
5 kx echo_test_string=`eval $prev`
5 kx export echo_test_string
5 kx exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
5 kx else
5 kx # Oops. We lost completely, so just stick with echo.
5 kx echo=echo
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx # Copy echo and quote the copy suitably for passing to libtool from
5 kx # the Makefile, instead of quoting the original, which is used later.
5 kx ECHO=$echo
5 kx if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
5 kx ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx tagnames=${tagnames+${tagnames},}CXX
5 kx
5 kx tagnames=${tagnames+${tagnames},}F77
5 kx
5 kx exec 7<&0 </dev/null 6>&1
5 kx
5 kx # Name of the host.
5 kx # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
5 kx # so uname gets run too.
5 kx ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5 kx
5 kx #
5 kx # Initializations.
5 kx #
5 kx ac_default_prefix=/usr/local
5 kx ac_clean_files=
5 kx ac_config_libobj_dir=.
5 kx LIBOBJS=
5 kx cross_compiling=no
5 kx subdirs=
5 kx MFLAGS=
5 kx MAKEFLAGS=
5 kx SHELL=${CONFIG_SHELL-/bin/sh}
5 kx
5 kx # Identity of this package.
5 kx PACKAGE_NAME=
5 kx PACKAGE_TARNAME=
5 kx PACKAGE_VERSION=
5 kx PACKAGE_STRING=
5 kx PACKAGE_BUGREPORT=
5 kx
5 kx ac_unique_file="libgamin"
5 kx # Factoring default headers for most tests.
5 kx ac_includes_default="\
5 kx #include <stdio.h>
5 kx #ifdef HAVE_SYS_TYPES_H
5 kx # include <sys/types.h>
5 kx #endif
5 kx #ifdef HAVE_SYS_STAT_H
5 kx # include <sys/stat.h>
5 kx #endif
5 kx #ifdef STDC_HEADERS
5 kx # include <stdlib.h>
5 kx # include <stddef.h>
5 kx #else
5 kx # ifdef HAVE_STDLIB_H
5 kx # include <stdlib.h>
5 kx # endif
5 kx #endif
5 kx #ifdef HAVE_STRING_H
5 kx # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5 kx # include <memory.h>
5 kx # endif
5 kx # include <string.h>
5 kx #endif
5 kx #ifdef HAVE_STRINGS_H
5 kx # include <strings.h>
5 kx #endif
5 kx #ifdef HAVE_INTTYPES_H
5 kx # include <inttypes.h>
5 kx #endif
5 kx #ifdef HAVE_STDINT_H
5 kx # include <stdint.h>
5 kx #endif
5 kx #ifdef HAVE_UNISTD_H
5 kx # include <unistd.h>
5 kx #endif"
5 kx
5 kx ac_subst_vars='SHELL
5 kx PATH_SEPARATOR
5 kx PACKAGE_NAME
5 kx PACKAGE_TARNAME
5 kx PACKAGE_VERSION
5 kx PACKAGE_STRING
5 kx PACKAGE_BUGREPORT
5 kx exec_prefix
5 kx prefix
5 kx program_transform_name
5 kx bindir
5 kx sbindir
5 kx libexecdir
5 kx datarootdir
5 kx datadir
5 kx sysconfdir
5 kx sharedstatedir
5 kx localstatedir
5 kx includedir
5 kx oldincludedir
5 kx docdir
5 kx infodir
5 kx htmldir
5 kx dvidir
5 kx pdfdir
5 kx psdir
5 kx libdir
5 kx localedir
5 kx mandir
5 kx DEFS
5 kx ECHO_C
5 kx ECHO_N
5 kx ECHO_T
5 kx LIBS
5 kx build_alias
5 kx host_alias
5 kx target_alias
5 kx build
5 kx build_cpu
5 kx build_vendor
5 kx build_os
5 kx host
5 kx host_cpu
5 kx host_vendor
5 kx host_os
5 kx target
5 kx target_cpu
5 kx target_vendor
5 kx target_os
5 kx GAMIN_MAJOR_VERSION
5 kx GAMIN_MINOR_VERSION
5 kx GAMIN_MICRO_VERSION
5 kx GAMIN_VERSION
5 kx GAMIN_VERSION_INFO
5 kx FAM_VERSION_INFO
5 kx INSTALL_PROGRAM
5 kx INSTALL_SCRIPT
5 kx INSTALL_DATA
5 kx am__isrc
5 kx CYGPATH_W
5 kx PACKAGE
5 kx VERSION
5 kx ACLOCAL
5 kx AUTOCONF
5 kx AUTOMAKE
5 kx AUTOHEADER
5 kx MAKEINFO
5 kx install_sh
5 kx STRIP
5 kx INSTALL_STRIP_PROGRAM
5 kx mkdir_p
5 kx AWK
5 kx SET_MAKE
5 kx am__leading_dot
5 kx AMTAR
5 kx am__tar
5 kx am__untar
5 kx CC
5 kx CFLAGS
5 kx LDFLAGS
5 kx CPPFLAGS
5 kx ac_ct_CC
5 kx EXEEXT
5 kx OBJEXT
5 kx DEPDIR
5 kx am__include
5 kx am__quote
5 kx AMDEP_TRUE
5 kx AMDEP_FALSE
5 kx AMDEPBACKSLASH
5 kx CCDEPMODE
5 kx am__fastdepCC_TRUE
5 kx am__fastdepCC_FALSE
5 kx SED
5 kx GREP
5 kx EGREP
5 kx LN_S
5 kx ECHO
5 kx AR
5 kx RANLIB
5 kx CPP
5 kx CXX
5 kx CXXFLAGS
5 kx ac_ct_CXX
5 kx CXXDEPMODE
5 kx am__fastdepCXX_TRUE
5 kx am__fastdepCXX_FALSE
5 kx CXXCPP
5 kx F77
5 kx FFLAGS
5 kx ac_ct_F77
5 kx LIBTOOL
5 kx RELDATE
5 kx BUILD_DOCS_TRUE
5 kx BUILD_DOCS_FALSE
5 kx HTML_DIR
5 kx ENABLE_GTK_DOC_TRUE
5 kx ENABLE_GTK_DOC_FALSE
5 kx BUILD_LIBGAMIN_TRUE
5 kx BUILD_LIBGAMIN_FALSE
5 kx PKG_CONFIG
5 kx DAEMON_CFLAGS
5 kx DAEMON_LIBS
5 kx BUILD_SERVER_TRUE
5 kx BUILD_SERVER_FALSE
5 kx TEST_CFLAGS
5 kx TEST_LIBS
5 kx BUILD_TESTS_TRUE
5 kx BUILD_TESTS_FALSE
5 kx GAMIN_DEBUG_TRUE
5 kx GAMIN_DEBUG_FALSE
5 kx ENABLE_INOTIFY_TRUE
5 kx ENABLE_INOTIFY_FALSE
5 kx ENABLE_DNOTIFY_TRUE
5 kx ENABLE_DNOTIFY_FALSE
5 kx ENABLE_KQUEUE_TRUE
5 kx ENABLE_KQUEUE_FALSE
5 kx THREAD_LIBS
5 kx WITH_THREADS
5 kx ENABLE_HURD_MACH_NOTIFY_TRUE
5 kx ENABLE_HURD_MACH_NOTIFY_FALSE
5 kx MIG
5 kx PYTHON
5 kx WITH_PYTHON_TRUE
5 kx WITH_PYTHON_FALSE
5 kx pythondir
5 kx PYTHON_VERSION
5 kx PYTHON_INCLUDES
5 kx PYTHON_SITE_PACKAGES
5 kx AM_CFLAGS
5 kx LIBOBJS
5 kx LTLIBOBJS'
5 kx ac_subst_files=''
5 kx ac_precious_vars='build_alias
5 kx host_alias
5 kx target_alias
5 kx CC
5 kx CFLAGS
5 kx LDFLAGS
5 kx LIBS
5 kx CPPFLAGS
5 kx CPP
5 kx CXX
5 kx CXXFLAGS
5 kx CCC
5 kx CXXCPP
5 kx F77
5 kx FFLAGS
5 kx PKG_CONFIG
5 kx DAEMON_CFLAGS
5 kx DAEMON_LIBS
5 kx TEST_CFLAGS
5 kx TEST_LIBS'
5 kx
5 kx
5 kx # Initialize some variables set by options.
5 kx ac_init_help=
5 kx ac_init_version=false
5 kx # The variables have the same names as the options, with
5 kx # dashes changed to underlines.
5 kx cache_file=/dev/null
5 kx exec_prefix=NONE
5 kx no_create=
5 kx no_recursion=
5 kx prefix=NONE
5 kx program_prefix=NONE
5 kx program_suffix=NONE
5 kx program_transform_name=s,x,x,
5 kx silent=
5 kx site=
5 kx srcdir=
5 kx verbose=
5 kx x_includes=NONE
5 kx x_libraries=NONE
5 kx
5 kx # Installation directory options.
5 kx # These are left unexpanded so users can "make install exec_prefix=/foo"
5 kx # and all the variables that are supposed to be based on exec_prefix
5 kx # by default will actually change.
5 kx # Use braces instead of parens because sh, perl, etc. also accept them.
5 kx # (The list follows the same order as the GNU Coding Standards.)
5 kx bindir='${exec_prefix}/bin'
5 kx sbindir='${exec_prefix}/sbin'
5 kx libexecdir='${exec_prefix}/libexec'
5 kx datarootdir='${prefix}/share'
5 kx datadir='${datarootdir}'
5 kx sysconfdir='${prefix}/etc'
5 kx sharedstatedir='${prefix}/com'
5 kx localstatedir='${prefix}/var'
5 kx includedir='${prefix}/include'
5 kx oldincludedir='/usr/include'
5 kx docdir='${datarootdir}/doc/${PACKAGE}'
5 kx infodir='${datarootdir}/info'
5 kx htmldir='${docdir}'
5 kx dvidir='${docdir}'
5 kx pdfdir='${docdir}'
5 kx psdir='${docdir}'
5 kx libdir='${exec_prefix}/lib'
5 kx localedir='${datarootdir}/locale'
5 kx mandir='${datarootdir}/man'
5 kx
5 kx ac_prev=
5 kx ac_dashdash=
5 kx for ac_option
5 kx do
5 kx # If the previous option needs an argument, assign it.
5 kx if test -n "$ac_prev"; then
5 kx eval $ac_prev=\$ac_option
5 kx ac_prev=
5 kx continue
5 kx fi
5 kx
5 kx case $ac_option in
5 kx *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
5 kx *) ac_optarg=yes ;;
5 kx esac
5 kx
5 kx # Accept the important Cygnus configure options, so we can diagnose typos.
5 kx
5 kx case $ac_dashdash$ac_option in
5 kx --)
5 kx ac_dashdash=yes ;;
5 kx
5 kx -bindir | --bindir | --bindi | --bind | --bin | --bi)
5 kx ac_prev=bindir ;;
5 kx -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5 kx bindir=$ac_optarg ;;
5 kx
5 kx -build | --build | --buil | --bui | --bu)
5 kx ac_prev=build_alias ;;
5 kx -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5 kx build_alias=$ac_optarg ;;
5 kx
5 kx -cache-file | --cache-file | --cache-fil | --cache-fi \
5 kx | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5 kx ac_prev=cache_file ;;
5 kx -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5 kx | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5 kx cache_file=$ac_optarg ;;
5 kx
5 kx --config-cache | -C)
5 kx cache_file=config.cache ;;
5 kx
5 kx -datadir | --datadir | --datadi | --datad)
5 kx ac_prev=datadir ;;
5 kx -datadir=* | --datadir=* | --datadi=* | --datad=*)
5 kx datadir=$ac_optarg ;;
5 kx
5 kx -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
5 kx | --dataroo | --dataro | --datar)
5 kx ac_prev=datarootdir ;;
5 kx -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
5 kx | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
5 kx datarootdir=$ac_optarg ;;
5 kx
5 kx -disable-* | --disable-*)
5 kx ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5 kx { echo "$as_me: error: invalid feature name: $ac_feature" >&2
5 kx { (exit 1); exit 1; }; }
5 kx ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
5 kx eval enable_$ac_feature=no ;;
5 kx
5 kx -docdir | --docdir | --docdi | --doc | --do)
5 kx ac_prev=docdir ;;
5 kx -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
5 kx docdir=$ac_optarg ;;
5 kx
5 kx -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
5 kx ac_prev=dvidir ;;
5 kx -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
5 kx dvidir=$ac_optarg ;;
5 kx
5 kx -enable-* | --enable-*)
5 kx ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5 kx { echo "$as_me: error: invalid feature name: $ac_feature" >&2
5 kx { (exit 1); exit 1; }; }
5 kx ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
5 kx eval enable_$ac_feature=\$ac_optarg ;;
5 kx
5 kx -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
5 kx | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
5 kx | --exec | --exe | --ex)
5 kx ac_prev=exec_prefix ;;
5 kx -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
5 kx | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
5 kx | --exec=* | --exe=* | --ex=*)
5 kx exec_prefix=$ac_optarg ;;
5 kx
5 kx -gas | --gas | --ga | --g)
5 kx # Obsolete; use --with-gas.
5 kx with_gas=yes ;;
5 kx
5 kx -help | --help | --hel | --he | -h)
5 kx ac_init_help=long ;;
5 kx -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
5 kx ac_init_help=recursive ;;
5 kx -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
5 kx ac_init_help=short ;;
5 kx
5 kx -host | --host | --hos | --ho)
5 kx ac_prev=host_alias ;;
5 kx -host=* | --host=* | --hos=* | --ho=*)
5 kx host_alias=$ac_optarg ;;
5 kx
5 kx -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
5 kx ac_prev=htmldir ;;
5 kx -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
5 kx | --ht=*)
5 kx htmldir=$ac_optarg ;;
5 kx
5 kx -includedir | --includedir | --includedi | --included | --include \
5 kx | --includ | --inclu | --incl | --inc)
5 kx ac_prev=includedir ;;
5 kx -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
5 kx | --includ=* | --inclu=* | --incl=* | --inc=*)
5 kx includedir=$ac_optarg ;;
5 kx
5 kx -infodir | --infodir | --infodi | --infod | --info | --inf)
5 kx ac_prev=infodir ;;
5 kx -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5 kx infodir=$ac_optarg ;;
5 kx
5 kx -libdir | --libdir | --libdi | --libd)
5 kx ac_prev=libdir ;;
5 kx -libdir=* | --libdir=* | --libdi=* | --libd=*)
5 kx libdir=$ac_optarg ;;
5 kx
5 kx -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
5 kx | --libexe | --libex | --libe)
5 kx ac_prev=libexecdir ;;
5 kx -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
5 kx | --libexe=* | --libex=* | --libe=*)
5 kx libexecdir=$ac_optarg ;;
5 kx
5 kx -localedir | --localedir | --localedi | --localed | --locale)
5 kx ac_prev=localedir ;;
5 kx -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
5 kx localedir=$ac_optarg ;;
5 kx
5 kx -localstatedir | --localstatedir | --localstatedi | --localstated \
5 kx | --localstate | --localstat | --localsta | --localst | --locals)
5 kx ac_prev=localstatedir ;;
5 kx -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5 kx | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
5 kx localstatedir=$ac_optarg ;;
5 kx
5 kx -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
5 kx ac_prev=mandir ;;
5 kx -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5 kx mandir=$ac_optarg ;;
5 kx
5 kx -nfp | --nfp | --nf)
5 kx # Obsolete; use --without-fp.
5 kx with_fp=no ;;
5 kx
5 kx -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5 kx | --no-cr | --no-c | -n)
5 kx no_create=yes ;;
5 kx
5 kx -no-recursion | --no-recursion | --no-recursio | --no-recursi \
5 kx | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
5 kx no_recursion=yes ;;
5 kx
5 kx -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
5 kx | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
5 kx | --oldin | --oldi | --old | --ol | --o)
5 kx ac_prev=oldincludedir ;;
5 kx -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
5 kx | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
5 kx | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5 kx oldincludedir=$ac_optarg ;;
5 kx
5 kx -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5 kx ac_prev=prefix ;;
5 kx -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5 kx prefix=$ac_optarg ;;
5 kx
5 kx -program-prefix | --program-prefix | --program-prefi | --program-pref \
5 kx | --program-pre | --program-pr | --program-p)
5 kx ac_prev=program_prefix ;;
5 kx -program-prefix=* | --program-prefix=* | --program-prefi=* \
5 kx | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5 kx program_prefix=$ac_optarg ;;
5 kx
5 kx -program-suffix | --program-suffix | --program-suffi | --program-suff \
5 kx | --program-suf | --program-su | --program-s)
5 kx ac_prev=program_suffix ;;
5 kx -program-suffix=* | --program-suffix=* | --program-suffi=* \
5 kx | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5 kx program_suffix=$ac_optarg ;;
5 kx
5 kx -program-transform-name | --program-transform-name \
5 kx | --program-transform-nam | --program-transform-na \
5 kx | --program-transform-n | --program-transform- \
5 kx | --program-transform | --program-transfor \
5 kx | --program-transfo | --program-transf \
5 kx | --program-trans | --program-tran \
5 kx | --progr-tra | --program-tr | --program-t)
5 kx ac_prev=program_transform_name ;;
5 kx -program-transform-name=* | --program-transform-name=* \
5 kx | --program-transform-nam=* | --program-transform-na=* \
5 kx | --program-transform-n=* | --program-transform-=* \
5 kx | --program-transform=* | --program-transfor=* \
5 kx | --program-transfo=* | --program-transf=* \
5 kx | --program-trans=* | --program-tran=* \
5 kx | --progr-tra=* | --program-tr=* | --program-t=*)
5 kx program_transform_name=$ac_optarg ;;
5 kx
5 kx -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
5 kx ac_prev=pdfdir ;;
5 kx -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
5 kx pdfdir=$ac_optarg ;;
5 kx
5 kx -psdir | --psdir | --psdi | --psd | --ps)
5 kx ac_prev=psdir ;;
5 kx -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
5 kx psdir=$ac_optarg ;;
5 kx
5 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5 kx | -silent | --silent | --silen | --sile | --sil)
5 kx silent=yes ;;
5 kx
5 kx -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
5 kx ac_prev=sbindir ;;
5 kx -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
5 kx | --sbi=* | --sb=*)
5 kx sbindir=$ac_optarg ;;
5 kx
5 kx -sharedstatedir | --sharedstatedir | --sharedstatedi \
5 kx | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
5 kx | --sharedst | --shareds | --shared | --share | --shar \
5 kx | --sha | --sh)
5 kx ac_prev=sharedstatedir ;;
5 kx -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
5 kx | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
5 kx | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
5 kx | --sha=* | --sh=*)
5 kx sharedstatedir=$ac_optarg ;;
5 kx
5 kx -site | --site | --sit)
5 kx ac_prev=site ;;
5 kx -site=* | --site=* | --sit=*)
5 kx site=$ac_optarg ;;
5 kx
5 kx -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5 kx ac_prev=srcdir ;;
5 kx -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5 kx srcdir=$ac_optarg ;;
5 kx
5 kx -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
5 kx | --syscon | --sysco | --sysc | --sys | --sy)
5 kx ac_prev=sysconfdir ;;
5 kx -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
5 kx | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5 kx sysconfdir=$ac_optarg ;;
5 kx
5 kx -target | --target | --targe | --targ | --tar | --ta | --t)
5 kx ac_prev=target_alias ;;
5 kx -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5 kx target_alias=$ac_optarg ;;
5 kx
5 kx -v | -verbose | --verbose | --verbos | --verbo | --verb)
5 kx verbose=yes ;;
5 kx
5 kx -version | --version | --versio | --versi | --vers | -V)
5 kx ac_init_version=: ;;
5 kx
5 kx -with-* | --with-*)
5 kx ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5 kx { echo "$as_me: error: invalid package name: $ac_package" >&2
5 kx { (exit 1); exit 1; }; }
5 kx ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
5 kx eval with_$ac_package=\$ac_optarg ;;
5 kx
5 kx -without-* | --without-*)
5 kx ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5 kx { echo "$as_me: error: invalid package name: $ac_package" >&2
5 kx { (exit 1); exit 1; }; }
5 kx ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
5 kx eval with_$ac_package=no ;;
5 kx
5 kx --x)
5 kx # Obsolete; use --with-x.
5 kx with_x=yes ;;
5 kx
5 kx -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
5 kx | --x-incl | --x-inc | --x-in | --x-i)
5 kx ac_prev=x_includes ;;
5 kx -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
5 kx | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5 kx x_includes=$ac_optarg ;;
5 kx
5 kx -x-libraries | --x-libraries | --x-librarie | --x-librari \
5 kx | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
5 kx ac_prev=x_libraries ;;
5 kx -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
5 kx | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5 kx x_libraries=$ac_optarg ;;
5 kx
5 kx -*) { echo "$as_me: error: unrecognized option: $ac_option
5 kx Try \`$0 --help' for more information." >&2
5 kx { (exit 1); exit 1; }; }
5 kx ;;
5 kx
5 kx *=*)
5 kx ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
5 kx { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
5 kx { (exit 1); exit 1; }; }
5 kx eval $ac_envvar=\$ac_optarg
5 kx export $ac_envvar ;;
5 kx
5 kx *)
5 kx # FIXME: should be removed in autoconf 3.0.
5 kx echo "$as_me: WARNING: you should use --build, --host, --target" >&2
5 kx expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5 kx echo "$as_me: WARNING: invalid host type: $ac_option" >&2
5 kx : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
5 kx ;;
5 kx
5 kx esac
5 kx done
5 kx
5 kx if test -n "$ac_prev"; then
5 kx ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5 kx { echo "$as_me: error: missing argument to $ac_option" >&2
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx # Be sure to have absolute directory names.
5 kx for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
5 kx datadir sysconfdir sharedstatedir localstatedir includedir \
5 kx oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
5 kx libdir localedir mandir
5 kx do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in
5 kx [\\/$]* | ?:[\\/]* ) continue;;
5 kx NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
5 kx esac
5 kx { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
5 kx { (exit 1); exit 1; }; }
5 kx done
5 kx
5 kx # There might be people who depend on the old broken behavior: `$host'
5 kx # used to hold the argument of --host etc.
5 kx # FIXME: To remove some day.
5 kx build=$build_alias
5 kx host=$host_alias
5 kx target=$target_alias
5 kx
5 kx # FIXME: To remove some day.
5 kx if test "x$host_alias" != x; then
5 kx if test "x$build_alias" = x; then
5 kx cross_compiling=maybe
5 kx echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
5 kx If a cross compiler is detected then cross compile mode will be used." >&2
5 kx elif test "x$build_alias" != "x$host_alias"; then
5 kx cross_compiling=yes
5 kx fi
5 kx fi
5 kx
5 kx ac_tool_prefix=
5 kx test -n "$host_alias" && ac_tool_prefix=$host_alias-
5 kx
5 kx test "$silent" = yes && exec 6>/dev/null
5 kx
5 kx
5 kx ac_pwd=`pwd` && test -n "$ac_pwd" &&
5 kx ac_ls_di=`ls -di .` &&
5 kx ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
5 kx { echo "$as_me: error: Working directory cannot be determined" >&2
5 kx { (exit 1); exit 1; }; }
5 kx test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
5 kx { echo "$as_me: error: pwd does not report name of working directory" >&2
5 kx { (exit 1); exit 1; }; }
5 kx
5 kx
5 kx # Find the source files, if location was not specified.
5 kx if test -z "$srcdir"; then
5 kx ac_srcdir_defaulted=yes
5 kx # Try the directory containing this script, then the parent directory.
5 kx ac_confdir=`$as_dirname -- "$0" ||
5 kx $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$0" : 'X\(//\)[^/]' \| \
5 kx X"$0" : 'X\(//\)$' \| \
5 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5 kx echo X"$0" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx srcdir=$ac_confdir
5 kx if test ! -r "$srcdir/$ac_unique_file"; then
5 kx srcdir=..
5 kx fi
5 kx else
5 kx ac_srcdir_defaulted=no
5 kx fi
5 kx if test ! -r "$srcdir/$ac_unique_file"; then
5 kx test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
5 kx { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
5 kx ac_abs_confdir=`(
5 kx cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
5 kx { (exit 1); exit 1; }; }
5 kx pwd)`
5 kx # When building in place, set srcdir=.
5 kx if test "$ac_abs_confdir" = "$ac_pwd"; then
5 kx srcdir=.
5 kx fi
5 kx # Remove unnecessary trailing slashes from srcdir.
5 kx # Double slashes in file names in object file debugging info
5 kx # mess up M-x gdb in Emacs.
5 kx case $srcdir in
5 kx */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
5 kx esac
5 kx for ac_var in $ac_precious_vars; do
5 kx eval ac_env_${ac_var}_set=\${${ac_var}+set}
5 kx eval ac_env_${ac_var}_value=\$${ac_var}
5 kx eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
5 kx eval ac_cv_env_${ac_var}_value=\$${ac_var}
5 kx done
5 kx
5 kx #
5 kx # Report the --help message.
5 kx #
5 kx if test "$ac_init_help" = "long"; then
5 kx # Omit some internal or obsolete options to make the list less imposing.
5 kx # This message is too long to be a string in the A/UX 3.1 sh.
5 kx cat <<_ACEOF
5 kx \`configure' configures this package to adapt to many kinds of systems.
5 kx
5 kx Usage: $0 [OPTION]... [VAR=VALUE]...
5 kx
5 kx To assign environment variables (e.g., CC, CFLAGS...), specify them as
5 kx VAR=VALUE. See below for descriptions of some of the useful variables.
5 kx
5 kx Defaults for the options are specified in brackets.
5 kx
5 kx Configuration:
5 kx -h, --help display this help and exit
5 kx --help=short display options specific to this package
5 kx --help=recursive display the short help of all the included packages
5 kx -V, --version display version information and exit
5 kx -q, --quiet, --silent do not print \`checking...' messages
5 kx --cache-file=FILE cache test results in FILE [disabled]
5 kx -C, --config-cache alias for \`--cache-file=config.cache'
5 kx -n, --no-create do not create output files
5 kx --srcdir=DIR find the sources in DIR [configure dir or \`..']
5 kx
5 kx Installation directories:
5 kx --prefix=PREFIX install architecture-independent files in PREFIX
5 kx [$ac_default_prefix]
5 kx --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5 kx [PREFIX]
5 kx
5 kx By default, \`make install' will install all the files in
5 kx \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
5 kx an installation prefix other than \`$ac_default_prefix' using \`--prefix',
5 kx for instance \`--prefix=\$HOME'.
5 kx
5 kx For better control, use the options below.
5 kx
5 kx Fine tuning of the installation directories:
5 kx --bindir=DIR user executables [EPREFIX/bin]
5 kx --sbindir=DIR system admin executables [EPREFIX/sbin]
5 kx --libexecdir=DIR program executables [EPREFIX/libexec]
5 kx --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
5 kx --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
5 kx --localstatedir=DIR modifiable single-machine data [PREFIX/var]
5 kx --libdir=DIR object code libraries [EPREFIX/lib]
5 kx --includedir=DIR C header files [PREFIX/include]
5 kx --oldincludedir=DIR C header files for non-gcc [/usr/include]
5 kx --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
5 kx --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
5 kx --infodir=DIR info documentation [DATAROOTDIR/info]
5 kx --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
5 kx --mandir=DIR man documentation [DATAROOTDIR/man]
5 kx --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
5 kx --htmldir=DIR html documentation [DOCDIR]
5 kx --dvidir=DIR dvi documentation [DOCDIR]
5 kx --pdfdir=DIR pdf documentation [DOCDIR]
5 kx --psdir=DIR ps documentation [DOCDIR]
5 kx _ACEOF
5 kx
5 kx cat <<\_ACEOF
5 kx
5 kx Program names:
5 kx --program-prefix=PREFIX prepend PREFIX to installed program names
5 kx --program-suffix=SUFFIX append SUFFIX to installed program names
5 kx --program-transform-name=PROGRAM run sed PROGRAM on installed program names
5 kx
5 kx System types:
5 kx --build=BUILD configure for building on BUILD [guessed]
5 kx --host=HOST cross-compile to build programs to run on HOST [BUILD]
5 kx --target=TARGET configure for building compilers for TARGET [HOST]
5 kx _ACEOF
5 kx fi
5 kx
5 kx if test -n "$ac_init_help"; then
5 kx
5 kx cat <<\_ACEOF
5 kx
5 kx Optional Features:
5 kx --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
5 kx --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5 kx --enable-shared[=PKGS] build shared libraries [default=yes]
5 kx --enable-static[=PKGS] build static libraries [default=yes]
5 kx --enable-fast-install[=PKGS]
5 kx optimize for fast installation [default=yes]
5 kx --disable-dependency-tracking speeds up one-time build
5 kx --enable-dependency-tracking do not reject slow dependency extractors
5 kx --disable-libtool-lock avoid locking (might break parallel builds)
5 kx --enable-docs Build documentation (requires Doxygen)
5 kx --enable-gtk-doc Use gtk-doc to build documentation (default=auto)
5 kx --enable-libgamin Build libgamin/libfam (default=yes)
5 kx --enable-server Build gam_server (default=yes)
5 kx --disable-more-warnings Minimum compiler warnings
5 kx # AC_HELP_STRING([--enable-debug], [Enable debugging support]),
5 kx # [debug=$enableval], [
5 kx # if test -d $srcdir/CVS; then
5 kx # debug=yes
5 kx # else
5 kx # debug=no
5 kx # fi
5 kx # ])
5 kx --disable-debug Disable debugging support
5 kx --enable-debug-api Enable debugging API
5 kx --disable-kernel Use polling regardless of what kernel-level systems
5 kx are available
5 kx --disable-inotify Disable the INotify backend
5 kx --disable-dnotify Disable the DNotify backend
5 kx --disable-kqueue Disable the KQueue backend
5 kx --disable-hurd_mach_notify
5 kx Disable the Hurd Mach Notify backend
5 kx
5 kx Optional Packages:
5 kx --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
5 kx --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
5 kx --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5 kx --with-pic try to use only PIC/non-PIC objects [default=use
5 kx both]
5 kx --with-tags[=TAGS] include additional configurations [automatic]
5 kx --with-html-dir=PATH path to installed docs
5 kx --with-threads add multithread support(on)
5 kx --with-python[=DIR] build Python bindings if found
5 kx
5 kx Some influential environment variables:
5 kx CC C compiler command
5 kx CFLAGS C compiler flags
5 kx LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
5 kx nonstandard directory <lib dir>
5 kx LIBS libraries to pass to the linker, e.g. -l<library>
5 kx CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
5 kx you have headers in a nonstandard directory <include dir>
5 kx CPP C preprocessor
5 kx CXX C++ compiler command
5 kx CXXFLAGS C++ compiler flags
5 kx CXXCPP C++ preprocessor
5 kx F77 Fortran 77 compiler command
5 kx FFLAGS Fortran 77 compiler flags
5 kx PKG_CONFIG path to pkg-config utility
5 kx DAEMON_CFLAGS
5 kx C compiler flags for DAEMON, overriding pkg-config
5 kx DAEMON_LIBS linker flags for DAEMON, overriding pkg-config
5 kx TEST_CFLAGS C compiler flags for TEST, overriding pkg-config
5 kx TEST_LIBS linker flags for TEST, overriding pkg-config
5 kx
5 kx Use these variables to override the choices made by `configure' or to help
5 kx it to find libraries and programs with nonstandard names/locations.
5 kx
5 kx _ACEOF
5 kx ac_status=$?
5 kx fi
5 kx
5 kx if test "$ac_init_help" = "recursive"; then
5 kx # If there are subdirs, report their specific --help.
5 kx for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5 kx test -d "$ac_dir" || continue
5 kx ac_builddir=.
5 kx
5 kx case "$ac_dir" in
5 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *)
5 kx ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5 kx # A ".." for each directory in $ac_dir_suffix.
5 kx ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5 kx case $ac_top_builddir_sub in
5 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5 kx esac ;;
5 kx esac
5 kx ac_abs_top_builddir=$ac_pwd
5 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
5 kx # for backward compatibility:
5 kx ac_top_builddir=$ac_top_build_prefix
5 kx
5 kx case $srcdir in
5 kx .) # We are building in place.
5 kx ac_srcdir=.
5 kx ac_top_srcdir=$ac_top_builddir_sub
5 kx ac_abs_top_srcdir=$ac_pwd ;;
5 kx [\\/]* | ?:[\\/]* ) # Absolute name.
5 kx ac_srcdir=$srcdir$ac_dir_suffix;
5 kx ac_top_srcdir=$srcdir
5 kx ac_abs_top_srcdir=$srcdir ;;
5 kx *) # Relative name.
5 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
5 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5 kx esac
5 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5 kx
5 kx cd "$ac_dir" || { ac_status=$?; continue; }
5 kx # Check for guested configure.
5 kx if test -f "$ac_srcdir/configure.gnu"; then
5 kx echo &&
5 kx $SHELL "$ac_srcdir/configure.gnu" --help=recursive
5 kx elif test -f "$ac_srcdir/configure"; then
5 kx echo &&
5 kx $SHELL "$ac_srcdir/configure" --help=recursive
5 kx else
5 kx echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
5 kx fi || ac_status=$?
5 kx cd "$ac_pwd" || { ac_status=$?; break; }
5 kx done
5 kx fi
5 kx
5 kx test -n "$ac_init_help" && exit $ac_status
5 kx if $ac_init_version; then
5 kx cat <<\_ACEOF
5 kx configure
5 kx generated by GNU Autoconf 2.61
5 kx
5 kx Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5 kx 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5 kx This configure script is free software; the Free Software Foundation
5 kx gives unlimited permission to copy, distribute and modify it.
5 kx _ACEOF
5 kx exit
5 kx fi
5 kx cat >config.log <<_ACEOF
5 kx This file contains any messages produced by compilers while
5 kx running configure, to aid debugging if configure makes a mistake.
5 kx
5 kx It was created by $as_me, which was
5 kx generated by GNU Autoconf 2.61. Invocation command line was
5 kx
5 kx $ $0 $@
5 kx
5 kx _ACEOF
5 kx exec 5>>config.log
5 kx {
5 kx cat <<_ASUNAME
5 kx ## --------- ##
5 kx ## Platform. ##
5 kx ## --------- ##
5 kx
5 kx hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
5 kx uname -m = `(uname -m) 2>/dev/null || echo unknown`
5 kx uname -r = `(uname -r) 2>/dev/null || echo unknown`
5 kx uname -s = `(uname -s) 2>/dev/null || echo unknown`
5 kx uname -v = `(uname -v) 2>/dev/null || echo unknown`
5 kx
5 kx /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
5 kx /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
5 kx
5 kx /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
5 kx /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
5 kx /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5 kx /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
5 kx /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
5 kx /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
5 kx /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
5 kx
5 kx _ASUNAME
5 kx
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx echo "PATH: $as_dir"
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx } >&5
5 kx
5 kx cat >&5 <<_ACEOF
5 kx
5 kx
5 kx ## ----------- ##
5 kx ## Core tests. ##
5 kx ## ----------- ##
5 kx
5 kx _ACEOF
5 kx
5 kx
5 kx # Keep a trace of the command line.
5 kx # Strip out --no-create and --no-recursion so they do not pile up.
5 kx # Strip out --silent because we don't want to record it for future runs.
5 kx # Also quote any args containing shell meta-characters.
5 kx # Make two passes to allow for proper duplicate-argument suppression.
5 kx ac_configure_args=
5 kx ac_configure_args0=
5 kx ac_configure_args1=
5 kx ac_must_keep_next=false
5 kx for ac_pass in 1 2
5 kx do
5 kx for ac_arg
5 kx do
5 kx case $ac_arg in
5 kx -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
5 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5 kx | -silent | --silent | --silen | --sile | --sil)
5 kx continue ;;
5 kx *\'*)
5 kx ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx esac
5 kx case $ac_pass in
5 kx 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
5 kx 2)
5 kx ac_configure_args1="$ac_configure_args1 '$ac_arg'"
5 kx if test $ac_must_keep_next = true; then
5 kx ac_must_keep_next=false # Got value, back to normal.
5 kx else
5 kx case $ac_arg in
5 kx *=* | --config-cache | -C | -disable-* | --disable-* \
5 kx | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5 kx | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5 kx | -with-* | --with-* | -without-* | --without-* | --x)
5 kx case "$ac_configure_args0 " in
5 kx "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
5 kx esac
5 kx ;;
5 kx -* ) ac_must_keep_next=true ;;
5 kx esac
5 kx fi
5 kx ac_configure_args="$ac_configure_args '$ac_arg'"
5 kx ;;
5 kx esac
5 kx done
5 kx done
5 kx $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
5 kx $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
5 kx
5 kx # When interrupted or exit'd, cleanup temporary files, and complete
5 kx # config.log. We remove comments because anyway the quotes in there
5 kx # would cause problems or look ugly.
5 kx # WARNING: Use '\'' to represent an apostrophe within the trap.
5 kx # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
5 kx trap 'exit_status=$?
5 kx # Save into config.log some information that might help in debugging.
5 kx {
5 kx echo
5 kx
5 kx cat <<\_ASBOX
5 kx ## ---------------- ##
5 kx ## Cache variables. ##
5 kx ## ---------------- ##
5 kx _ASBOX
5 kx echo
5 kx # The following way of writing the cache mishandles newlines in values,
5 kx (
5 kx for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in #(
5 kx *${as_nl}*)
5 kx case $ac_var in #(
5 kx *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5 kx echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5 kx esac
5 kx case $ac_var in #(
5 kx _ | IFS | as_nl) ;; #(
5 kx *) $as_unset $ac_var ;;
5 kx esac ;;
5 kx esac
5 kx done
5 kx (set) 2>&1 |
5 kx case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
5 kx *${as_nl}ac_space=\ *)
5 kx sed -n \
5 kx "s/'\''/'\''\\\\'\'''\''/g;
5 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
5 kx ;; #(
5 kx *)
5 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5 kx ;;
5 kx esac |
5 kx sort
5 kx )
5 kx echo
5 kx
5 kx cat <<\_ASBOX
5 kx ## ----------------- ##
5 kx ## Output variables. ##
5 kx ## ----------------- ##
5 kx _ASBOX
5 kx echo
5 kx for ac_var in $ac_subst_vars
5 kx do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in
5 kx *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
5 kx esac
5 kx echo "$ac_var='\''$ac_val'\''"
5 kx done | sort
5 kx echo
5 kx
5 kx if test -n "$ac_subst_files"; then
5 kx cat <<\_ASBOX
5 kx ## ------------------- ##
5 kx ## File substitutions. ##
5 kx ## ------------------- ##
5 kx _ASBOX
5 kx echo
5 kx for ac_var in $ac_subst_files
5 kx do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in
5 kx *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
5 kx esac
5 kx echo "$ac_var='\''$ac_val'\''"
5 kx done | sort
5 kx echo
5 kx fi
5 kx
5 kx if test -s confdefs.h; then
5 kx cat <<\_ASBOX
5 kx ## ----------- ##
5 kx ## confdefs.h. ##
5 kx ## ----------- ##
5 kx _ASBOX
5 kx echo
5 kx cat confdefs.h
5 kx echo
5 kx fi
5 kx test "$ac_signal" != 0 &&
5 kx echo "$as_me: caught signal $ac_signal"
5 kx echo "$as_me: exit $exit_status"
5 kx } >&5
5 kx rm -f core *.core core.conftest.* &&
5 kx rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
5 kx exit $exit_status
5 kx ' 0
5 kx for ac_signal in 1 2 13 15; do
5 kx trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
5 kx done
5 kx ac_signal=0
5 kx
5 kx # confdefs.h avoids OS command line length limits that DEFS can exceed.
5 kx rm -f -r conftest* confdefs.h
5 kx
5 kx # Predefined preprocessor variables.
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_NAME "$PACKAGE_NAME"
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_VERSION "$PACKAGE_VERSION"
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_STRING "$PACKAGE_STRING"
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5 kx _ACEOF
5 kx
5 kx
5 kx # Let the site file select an alternate cache file if it wants to.
5 kx # Prefer explicitly selected file to automatically selected ones.
5 kx if test -n "$CONFIG_SITE"; then
5 kx set x "$CONFIG_SITE"
5 kx elif test "x$prefix" != xNONE; then
5 kx set x "$prefix/share/config.site" "$prefix/etc/config.site"
5 kx else
5 kx set x "$ac_default_prefix/share/config.site" \
5 kx "$ac_default_prefix/etc/config.site"
5 kx fi
5 kx shift
5 kx for ac_site_file
5 kx do
5 kx if test -r "$ac_site_file"; then
5 kx { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
5 kx echo "$as_me: loading site script $ac_site_file" >&6;}
5 kx sed 's/^/| /' "$ac_site_file" >&5
5 kx . "$ac_site_file"
5 kx fi
5 kx done
5 kx
5 kx if test -r "$cache_file"; then
5 kx # Some versions of bash will fail to source /dev/null (special
5 kx # files actually), so we avoid doing that.
5 kx if test -f "$cache_file"; then
5 kx { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5 kx echo "$as_me: loading cache $cache_file" >&6;}
5 kx case $cache_file in
5 kx [\\/]* | ?:[\\/]* ) . "$cache_file";;
5 kx *) . "./$cache_file";;
5 kx esac
5 kx fi
5 kx else
5 kx { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5 kx echo "$as_me: creating cache $cache_file" >&6;}
5 kx >$cache_file
5 kx fi
5 kx
5 kx # Check that the precious variables saved in the cache have kept the same
5 kx # value.
5 kx ac_cache_corrupted=false
5 kx for ac_var in $ac_precious_vars; do
5 kx eval ac_old_set=\$ac_cv_env_${ac_var}_set
5 kx eval ac_new_set=\$ac_env_${ac_var}_set
5 kx eval ac_old_val=\$ac_cv_env_${ac_var}_value
5 kx eval ac_new_val=\$ac_env_${ac_var}_value
5 kx case $ac_old_set,$ac_new_set in
5 kx set,)
5 kx { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
5 kx echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
5 kx ac_cache_corrupted=: ;;
5 kx ,set)
5 kx { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
5 kx echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
5 kx ac_cache_corrupted=: ;;
5 kx ,);;
5 kx *)
5 kx if test "x$ac_old_val" != "x$ac_new_val"; then
5 kx { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
5 kx echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
5 kx { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
5 kx echo "$as_me: former value: $ac_old_val" >&2;}
5 kx { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
5 kx echo "$as_me: current value: $ac_new_val" >&2;}
5 kx ac_cache_corrupted=:
5 kx fi;;
5 kx esac
5 kx # Pass precious variables to config.status.
5 kx if test "$ac_new_set" = set; then
5 kx case $ac_new_val in
5 kx *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx *) ac_arg=$ac_var=$ac_new_val ;;
5 kx esac
5 kx case " $ac_configure_args " in
5 kx *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5 kx *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
5 kx esac
5 kx fi
5 kx done
5 kx if $ac_cache_corrupted; then
5 kx { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
5 kx echo "$as_me: error: changes in the environment can compromise the build" >&2;}
5 kx { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
5 kx echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx ac_config_headers="$ac_config_headers config.h"
5 kx
5 kx ac_aux_dir=
5 kx for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5 kx if test -f "$ac_dir/install-sh"; then
5 kx ac_aux_dir=$ac_dir
5 kx ac_install_sh="$ac_aux_dir/install-sh -c"
5 kx break
5 kx elif test -f "$ac_dir/install.sh"; then
5 kx ac_aux_dir=$ac_dir
5 kx ac_install_sh="$ac_aux_dir/install.sh -c"
5 kx break
5 kx elif test -f "$ac_dir/shtool"; then
5 kx ac_aux_dir=$ac_dir
5 kx ac_install_sh="$ac_aux_dir/shtool install -c"
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$ac_aux_dir"; then
5 kx { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5 kx echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx # These three variables are undocumented and unsupported,
5 kx # and are intended to be withdrawn in a future Autoconf release.
5 kx # They can cause serious problems if a builder's source tree is in a directory
5 kx # whose full name contains unusual characters.
5 kx ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5 kx ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5 kx ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5 kx
5 kx
5 kx # Make sure we can run config.sub.
5 kx $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5 kx { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5 kx echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx
5 kx { echo "$as_me:$LINENO: checking build system type" >&5
5 kx echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5 kx if test "${ac_cv_build+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_build_alias=$build_alias
5 kx test "x$ac_build_alias" = x &&
5 kx ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5 kx test "x$ac_build_alias" = x &&
5 kx { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5 kx echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5 kx { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5 kx echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5 kx echo "${ECHO_T}$ac_cv_build" >&6; }
5 kx case $ac_cv_build in
5 kx *-*-*) ;;
5 kx *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5 kx echo "$as_me: error: invalid value of canonical build" >&2;}
5 kx { (exit 1); exit 1; }; };;
5 kx esac
5 kx build=$ac_cv_build
5 kx ac_save_IFS=$IFS; IFS='-'
5 kx set x $ac_cv_build
5 kx shift
5 kx build_cpu=$1
5 kx build_vendor=$2
5 kx shift; shift
5 kx # Remember, the first character of IFS is used to create $*,
5 kx # except with old shells:
5 kx build_os=$*
5 kx IFS=$ac_save_IFS
5 kx case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking host system type" >&5
5 kx echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5 kx if test "${ac_cv_host+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test "x$host_alias" = x; then
5 kx ac_cv_host=$ac_cv_build
5 kx else
5 kx ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5 kx { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5 kx echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5 kx echo "${ECHO_T}$ac_cv_host" >&6; }
5 kx case $ac_cv_host in
5 kx *-*-*) ;;
5 kx *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5 kx echo "$as_me: error: invalid value of canonical host" >&2;}
5 kx { (exit 1); exit 1; }; };;
5 kx esac
5 kx host=$ac_cv_host
5 kx ac_save_IFS=$IFS; IFS='-'
5 kx set x $ac_cv_host
5 kx shift
5 kx host_cpu=$1
5 kx host_vendor=$2
5 kx shift; shift
5 kx # Remember, the first character of IFS is used to create $*,
5 kx # except with old shells:
5 kx host_os=$*
5 kx IFS=$ac_save_IFS
5 kx case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking target system type" >&5
5 kx echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
5 kx if test "${ac_cv_target+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test "x$target_alias" = x; then
5 kx ac_cv_target=$ac_cv_host
5 kx else
5 kx ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5 kx { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
5 kx echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5 kx echo "${ECHO_T}$ac_cv_target" >&6; }
5 kx case $ac_cv_target in
5 kx *-*-*) ;;
5 kx *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
5 kx echo "$as_me: error: invalid value of canonical target" >&2;}
5 kx { (exit 1); exit 1; }; };;
5 kx esac
5 kx target=$ac_cv_target
5 kx ac_save_IFS=$IFS; IFS='-'
5 kx set x $ac_cv_target
5 kx shift
5 kx target_cpu=$1
5 kx target_vendor=$2
5 kx shift; shift
5 kx # Remember, the first character of IFS is used to create $*,
5 kx # except with old shells:
5 kx target_os=$*
5 kx IFS=$ac_save_IFS
5 kx case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5 kx
5 kx
5 kx # The aliases save the names the user supplied, while $host etc.
5 kx # will get canonicalized.
5 kx test -n "$target_alias" &&
5 kx test "$program_prefix$program_suffix$program_transform_name" = \
5 kx NONENONEs,x,x, &&
5 kx program_prefix=${target_alias}-
5 kx
5 kx # get any external flags setting before we start playing with the CFLAGS variable
5 kx ENV_CFLAGS="$CFLAGS"
5 kx
5 kx GAMIN_MAJOR_VERSION=0
5 kx GAMIN_MINOR_VERSION=1
5 kx GAMIN_MICRO_VERSION=10
5 kx GAMIN_VERSION=$GAMIN_MAJOR_VERSION.$GAMIN_MINOR_VERSION.$GAMIN_MICRO_VERSION$GAMIN_MICRO_VERSION_SUFFIX
5 kx GAMIN_VERSION_INFO=`expr $GAMIN_MAJOR_VERSION + $GAMIN_MINOR_VERSION`:$GAMIN_MICRO_VERSION:$GAMIN_MINOR_VERSION
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx FAM_VERSION_INFO="0:0:0"
5 kx
5 kx
5 kx
5 kx VERSION=${GAMIN_VERSION}
5 kx
5 kx am__api_version='1.10'
5 kx
5 kx # Find a good install program. We prefer a C program (faster),
5 kx # so one script is as good as another. But avoid the broken or
5 kx # incompatible versions:
5 kx # SysV /etc/install, /usr/sbin/install
5 kx # SunOS /usr/etc/install
5 kx # IRIX /sbin/install
5 kx # AIX /bin/install
5 kx # AmigaOS /C/install, which installs bootblocks on floppy discs
5 kx # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5 kx # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5 kx # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5 kx # OS/2's system install, which has a completely different semantic
5 kx # ./install, which can be erroneously created by make from ./install.sh.
5 kx { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5 kx echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5 kx if test -z "$INSTALL"; then
5 kx if test "${ac_cv_path_install+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx # Account for people who put trailing slashes in PATH elements.
5 kx case $as_dir/ in
5 kx ./ | .// | /cC/* | \
5 kx /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5 kx ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5 kx /usr/ucb/* ) ;;
5 kx *)
5 kx # OSF1 and SCO ODT 3.0 have their own names for install.
5 kx # Don't use installbsd from OSF since it installs stuff as root
5 kx # by default.
5 kx for ac_prog in ginstall scoinst install; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5 kx if test $ac_prog = install &&
5 kx grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5 kx # AIX install. It has an incompatible calling convention.
5 kx :
5 kx elif test $ac_prog = install &&
5 kx grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5 kx # program-specific install script used by HP pwplus--don't use.
5 kx :
5 kx else
5 kx ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5 kx break 3
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx ;;
5 kx esac
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx
5 kx fi
5 kx if test "${ac_cv_path_install+set}" = set; then
5 kx INSTALL=$ac_cv_path_install
5 kx else
5 kx # As a last resort, use the slow shell script. Don't cache a
5 kx # value for INSTALL within a source directory, because that will
5 kx # break other packages using the cache if that directory is
5 kx # removed, or if the value is a relative name.
5 kx INSTALL=$ac_install_sh
5 kx fi
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $INSTALL" >&5
5 kx echo "${ECHO_T}$INSTALL" >&6; }
5 kx
5 kx # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5 kx # It thinks the first close brace ends the variable substitution.
5 kx test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5 kx
5 kx test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5 kx
5 kx test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5 kx
5 kx { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5 kx echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
5 kx # Just in case
5 kx sleep 1
5 kx echo timestamp > conftest.file
5 kx # Do `set' in a subshell so we don't clobber the current shell's
5 kx # arguments. Must try -L first in case configure is actually a
5 kx # symlink; some systems play weird games with the mod time of symlinks
5 kx # (eg FreeBSD returns the mod time of the symlink's containing
5 kx # directory).
5 kx if (
5 kx set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5 kx if test "$*" = "X"; then
5 kx # -L didn't work.
5 kx set X `ls -t $srcdir/configure conftest.file`
5 kx fi
5 kx rm -f conftest.file
5 kx if test "$*" != "X $srcdir/configure conftest.file" \
5 kx && test "$*" != "X conftest.file $srcdir/configure"; then
5 kx
5 kx # If neither matched, then we have a broken ls. This can happen
5 kx # if, for instance, CONFIG_SHELL is bash and it inherits a
5 kx # broken ls alias from the environment. This has actually
5 kx # happened. Such a system could not be considered "sane".
5 kx { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
5 kx alias in your environment" >&5
5 kx echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
5 kx alias in your environment" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx test "$2" = conftest.file
5 kx )
5 kx then
5 kx # Ok.
5 kx :
5 kx else
5 kx { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5 kx Check your system clock" >&5
5 kx echo "$as_me: error: newly created file is older than distributed files!
5 kx Check your system clock" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx { echo "$as_me:$LINENO: result: yes" >&5
5 kx echo "${ECHO_T}yes" >&6; }
5 kx test "$program_prefix" != NONE &&
5 kx program_transform_name="s&^&$program_prefix&;$program_transform_name"
5 kx # Use a double $ so make ignores it.
5 kx test "$program_suffix" != NONE &&
5 kx program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5 kx # Double any \ or $. echo might interpret backslashes.
5 kx # By default was `s,x,x', remove it if useless.
5 kx cat <<\_ACEOF >conftest.sed
5 kx s/[\\$]/&&/g;s/;s,x,x,$//
5 kx _ACEOF
5 kx program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5 kx rm -f conftest.sed
5 kx
5 kx # expand $ac_aux_dir to an absolute path
5 kx am_aux_dir=`cd $ac_aux_dir && pwd`
5 kx
5 kx test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5 kx # Use eval to expand $SHELL
5 kx if eval "$MISSING --run true"; then
5 kx am_missing_run="$MISSING --run "
5 kx else
5 kx am_missing_run=
5 kx { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5 kx echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
5 kx echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
5 kx if test -z "$MKDIR_P"; then
5 kx if test "${ac_cv_path_mkdir+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in mkdir gmkdir; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5 kx case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5 kx 'mkdir (GNU coreutils) '* | \
5 kx 'mkdir (coreutils) '* | \
5 kx 'mkdir (fileutils) '4.1*)
5 kx ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5 kx break 3;;
5 kx esac
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx
5 kx if test "${ac_cv_path_mkdir+set}" = set; then
5 kx MKDIR_P="$ac_cv_path_mkdir -p"
5 kx else
5 kx # As a last resort, use the slow shell script. Don't cache a
5 kx # value for MKDIR_P within a source directory, because that will
5 kx # break other packages using the cache if that directory is
5 kx # removed, or if the value is a relative name.
5 kx test -d ./--version && rmdir ./--version
5 kx MKDIR_P="$ac_install_sh -d"
5 kx fi
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
5 kx echo "${ECHO_T}$MKDIR_P" >&6; }
5 kx
5 kx mkdir_p="$MKDIR_P"
5 kx case $mkdir_p in
5 kx [\\/$]* | ?:[\\/]*) ;;
5 kx */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5 kx esac
5 kx
5 kx for ac_prog in gawk mawk nawk awk
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_AWK+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$AWK"; then
5 kx ac_cv_prog_AWK="$AWK" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_AWK="$ac_prog"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx AWK=$ac_cv_prog_AWK
5 kx if test -n "$AWK"; then
5 kx { echo "$as_me:$LINENO: result: $AWK" >&5
5 kx echo "${ECHO_T}$AWK" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$AWK" && break
5 kx done
5 kx
5 kx { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5 kx echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5 kx set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5 kx if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.make <<\_ACEOF
5 kx SHELL = /bin/sh
5 kx all:
5 kx @echo '@@@%%%=$(MAKE)=@@@%%%'
5 kx _ACEOF
5 kx # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5 kx case `${MAKE-make} -f conftest.make 2>/dev/null` in
5 kx *@@@%%%=?*=@@@%%%*)
5 kx eval ac_cv_prog_make_${ac_make}_set=yes;;
5 kx *)
5 kx eval ac_cv_prog_make_${ac_make}_set=no;;
5 kx esac
5 kx rm -f conftest.make
5 kx fi
5 kx if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5 kx { echo "$as_me:$LINENO: result: yes" >&5
5 kx echo "${ECHO_T}yes" >&6; }
5 kx SET_MAKE=
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx SET_MAKE="MAKE=${MAKE-make}"
5 kx fi
5 kx
5 kx rm -rf .tst 2>/dev/null
5 kx mkdir .tst 2>/dev/null
5 kx if test -d .tst; then
5 kx am__leading_dot=.
5 kx else
5 kx am__leading_dot=_
5 kx fi
5 kx rmdir .tst 2>/dev/null
5 kx
5 kx if test "`cd $srcdir && pwd`" != "`pwd`"; then
5 kx # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5 kx # is not polluted with repeated "-I."
5 kx am__isrc=' -I$(srcdir)'
5 kx # test to see if srcdir already configured
5 kx if test -f $srcdir/config.status; then
5 kx { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5 kx echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx fi
5 kx
5 kx # test whether we have cygpath
5 kx if test -z "$CYGPATH_W"; then
5 kx if (cygpath --version) >/dev/null 2>/dev/null; then
5 kx CYGPATH_W='cygpath -w'
5 kx else
5 kx CYGPATH_W=echo
5 kx fi
5 kx fi
5 kx
5 kx
5 kx # Define the identity of the package.
5 kx PACKAGE=gamin
5 kx VERSION=$VERSION
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE "$PACKAGE"
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define VERSION "$VERSION"
5 kx _ACEOF
5 kx
5 kx # Some tools Automake needs.
5 kx
5 kx ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5 kx
5 kx
5 kx AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5 kx
5 kx
5 kx AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5 kx
5 kx
5 kx AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5 kx
5 kx
5 kx MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5 kx
5 kx install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
5 kx
5 kx # Installed binaries are usually stripped using `strip' when the user
5 kx # run `make install-strip'. However `strip' might not be the right
5 kx # tool to use in cross-compilation environments, therefore Automake
5 kx # will honor the `STRIP' environment variable to overrule this program.
5 kx if test "$cross_compiling" != no; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}strip; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_STRIP+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$STRIP"; then
5 kx ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx STRIP=$ac_cv_prog_STRIP
5 kx if test -n "$STRIP"; then
5 kx { echo "$as_me:$LINENO: result: $STRIP" >&5
5 kx echo "${ECHO_T}$STRIP" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_STRIP"; then
5 kx ac_ct_STRIP=$STRIP
5 kx # Extract the first word of "strip", so it can be a program name with args.
5 kx set dummy strip; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$ac_ct_STRIP"; then
5 kx ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_ac_ct_STRIP="strip"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5 kx if test -n "$ac_ct_STRIP"; then
5 kx { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5 kx echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_STRIP" = x; then
5 kx STRIP=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx STRIP=$ac_ct_STRIP
5 kx fi
5 kx else
5 kx STRIP="$ac_cv_prog_STRIP"
5 kx fi
5 kx
5 kx fi
5 kx INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5 kx
5 kx # We need awk for the "check" target. The system "awk" is bad on
5 kx # some platforms.
5 kx # Always define AMTAR for backward compatibility.
5 kx
5 kx AMTAR=${AMTAR-"${am_missing_run}tar"}
5 kx
5 kx am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --enable-shared was given.
5 kx if test "${enable_shared+set}" = set; then
5 kx enableval=$enable_shared; p=${PACKAGE-default}
5 kx case $enableval in
5 kx yes) enable_shared=yes ;;
5 kx no) enable_shared=no ;;
5 kx *)
5 kx enable_shared=no
5 kx # Look at the argument we got. We use all the common list separators.
5 kx lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5 kx for pkg in $enableval; do
5 kx IFS="$lt_save_ifs"
5 kx if test "X$pkg" = "X$p"; then
5 kx enable_shared=yes
5 kx fi
5 kx done
5 kx IFS="$lt_save_ifs"
5 kx ;;
5 kx esac
5 kx else
5 kx enable_shared=yes
5 kx fi
5 kx
5 kx
5 kx # Check whether --enable-static was given.
5 kx if test "${enable_static+set}" = set; then
5 kx enableval=$enable_static; p=${PACKAGE-default}
5 kx case $enableval in
5 kx yes) enable_static=yes ;;
5 kx no) enable_static=no ;;
5 kx *)
5 kx enable_static=no
5 kx # Look at the argument we got. We use all the common list separators.
5 kx lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5 kx for pkg in $enableval; do
5 kx IFS="$lt_save_ifs"
5 kx if test "X$pkg" = "X$p"; then
5 kx enable_static=yes
5 kx fi
5 kx done
5 kx IFS="$lt_save_ifs"
5 kx ;;
5 kx esac
5 kx else
5 kx enable_static=yes
5 kx fi
5 kx
5 kx
5 kx # Check whether --enable-fast-install was given.
5 kx if test "${enable_fast_install+set}" = set; then
5 kx enableval=$enable_fast_install; p=${PACKAGE-default}
5 kx case $enableval in
5 kx yes) enable_fast_install=yes ;;
5 kx no) enable_fast_install=no ;;
5 kx *)
5 kx enable_fast_install=no
5 kx # Look at the argument we got. We use all the common list separators.
5 kx lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5 kx for pkg in $enableval; do
5 kx IFS="$lt_save_ifs"
5 kx if test "X$pkg" = "X$p"; then
5 kx enable_fast_install=yes
5 kx fi
5 kx done
5 kx IFS="$lt_save_ifs"
5 kx ;;
5 kx esac
5 kx else
5 kx enable_fast_install=yes
5 kx fi
5 kx
5 kx
5 kx DEPDIR="${am__leading_dot}deps"
5 kx
5 kx ac_config_commands="$ac_config_commands depfiles"
5 kx
5 kx
5 kx am_make=${MAKE-make}
5 kx cat > confinc << 'END'
5 kx am__doit:
5 kx @echo done
5 kx .PHONY: am__doit
5 kx END
5 kx # If we don't find an include directive, just comment out the code.
5 kx { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5 kx echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
5 kx am__include="#"
5 kx am__quote=
5 kx _am_result=none
5 kx # First try GNU make style include.
5 kx echo "include confinc" > confmf
5 kx # We grep out `Entering directory' and `Leaving directory'
5 kx # messages which can occur if `w' ends up in MAKEFLAGS.
5 kx # In particular we don't look at `^make:' because GNU make might
5 kx # be invoked under some other name (usually "gmake"), in which
5 kx # case it prints its new name instead of `make'.
5 kx if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5 kx am__include=include
5 kx am__quote=
5 kx _am_result=GNU
5 kx fi
5 kx # Now try BSD make style include.
5 kx if test "$am__include" = "#"; then
5 kx echo '.include "confinc"' > confmf
5 kx if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5 kx am__include=.include
5 kx am__quote="\""
5 kx _am_result=BSD
5 kx fi
5 kx fi
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: result: $_am_result" >&5
5 kx echo "${ECHO_T}$_am_result" >&6; }
5 kx rm -f confinc confmf
5 kx
5 kx # Check whether --enable-dependency-tracking was given.
5 kx if test "${enable_dependency_tracking+set}" = set; then
5 kx enableval=$enable_dependency_tracking;
5 kx fi
5 kx
5 kx if test "x$enable_dependency_tracking" != xno; then
5 kx am_depcomp="$ac_aux_dir/depcomp"
5 kx AMDEPBACKSLASH='\'
5 kx fi
5 kx if test "x$enable_dependency_tracking" != xno; then
5 kx AMDEP_TRUE=
5 kx AMDEP_FALSE='#'
5 kx else
5 kx AMDEP_TRUE='#'
5 kx AMDEP_FALSE=
5 kx fi
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}gcc; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_CC="${ac_tool_prefix}gcc"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { echo "$as_me:$LINENO: result: $CC" >&5
5 kx echo "${ECHO_T}$CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_CC"; then
5 kx ac_ct_CC=$CC
5 kx # Extract the first word of "gcc", so it can be a program name with args.
5 kx set dummy gcc; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_ac_ct_CC="gcc"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5 kx echo "${ECHO_T}$ac_ct_CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx else
5 kx CC="$ac_cv_prog_CC"
5 kx fi
5 kx
5 kx if test -z "$CC"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}cc; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_CC="${ac_tool_prefix}cc"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { echo "$as_me:$LINENO: result: $CC" >&5
5 kx echo "${ECHO_T}$CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx fi
5 kx if test -z "$CC"; then
5 kx # Extract the first word of "cc", so it can be a program name with args.
5 kx set dummy cc; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx ac_prog_rejected=no
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5 kx ac_prog_rejected=yes
5 kx continue
5 kx fi
5 kx ac_cv_prog_CC="cc"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx if test $ac_prog_rejected = yes; then
5 kx # We found a bogon in the path, so make sure we never use it.
5 kx set dummy $ac_cv_prog_CC
5 kx shift
5 kx if test $# != 0; then
5 kx # We chose a different compiler from the bogus one.
5 kx # However, it has the same basename, so the bogon will be chosen
5 kx # first if we set CC to just the basename; use the full file name.
5 kx shift
5 kx ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { echo "$as_me:$LINENO: result: $CC" >&5
5 kx echo "${ECHO_T}$CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$CC"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in cl.exe
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { echo "$as_me:$LINENO: result: $CC" >&5
5 kx echo "${ECHO_T}$CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$CC" && break
5 kx done
5 kx fi
5 kx if test -z "$CC"; then
5 kx ac_ct_CC=$CC
5 kx for ac_prog in cl.exe
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_ac_ct_CC="$ac_prog"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5 kx echo "${ECHO_T}$ac_ct_CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_CC" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5 kx See \`config.log' for more details." >&5
5 kx echo "$as_me: error: no acceptable C compiler found in \$PATH
5 kx See \`config.log' for more details." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx
5 kx # Provide some information about the compiler.
5 kx echo "$as_me:$LINENO: checking for C compiler version" >&5
5 kx ac_compiler=`set X $ac_compile; echo $2`
5 kx { (ac_try="$ac_compiler --version >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler --version >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx { (ac_try="$ac_compiler -v >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler -v >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx { (ac_try="$ac_compiler -V >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler -V >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx ac_clean_files_save=$ac_clean_files
5 kx ac_clean_files="$ac_clean_files a.out a.exe b.out"
5 kx # Try to create an executable without -o first, disregard a.out.
5 kx # It will help us diagnose broken compilers, and finding out an intuition
5 kx # of exeext.
5 kx { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5 kx echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5 kx ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5 kx #
5 kx # List of possible output files, starting from the most likely.
5 kx # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5 kx # only as a last resort. b.out is created by i960 compilers.
5 kx ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5 kx #
5 kx # The IRIX 6 linker writes into existing files which may not be
5 kx # executable, retaining their permissions. Remove them first so a
5 kx # subsequent execution test works.
5 kx ac_rmfiles=
5 kx for ac_file in $ac_files
5 kx do
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5 kx * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5 kx esac
5 kx done
5 kx rm -f $ac_rmfiles
5 kx
5 kx if { (ac_try="$ac_link_default"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link_default") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; then
5 kx # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5 kx # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5 kx # in a Makefile. We should not override ac_cv_exeext if it was cached,
5 kx # so that the user can short-circuit this test for compilers unknown to
5 kx # Autoconf.
5 kx for ac_file in $ac_files ''
5 kx do
5 kx test -f "$ac_file" || continue
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5 kx ;;
5 kx [ab].out )
5 kx # We found the default executable, but exeext='' is most
5 kx # certainly right.
5 kx break;;
5 kx *.* )
5 kx if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5 kx then :; else
5 kx ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5 kx fi
5 kx # We set ac_cv_exeext here because the later test for it is not
5 kx # safe: cross compilers may not add the suffix if given an `-o'
5 kx # argument, so we may need to know it at that point already.
5 kx # Even if this section looks crufty: it has the advantage of
5 kx # actually working.
5 kx break;;
5 kx * )
5 kx break;;
5 kx esac
5 kx done
5 kx test "$ac_cv_exeext" = no && ac_cv_exeext=
5 kx
5 kx else
5 kx ac_file=''
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: result: $ac_file" >&5
5 kx echo "${ECHO_T}$ac_file" >&6; }
5 kx if test -z "$ac_file"; then
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5 kx See \`config.log' for more details." >&5
5 kx echo "$as_me: error: C compiler cannot create executables
5 kx See \`config.log' for more details." >&2;}
5 kx { (exit 77); exit 77; }; }
5 kx fi
5 kx
5 kx ac_exeext=$ac_cv_exeext
5 kx
5 kx # Check that the compiler produces executables we can run. If not, either
5 kx # the compiler is broken, or we cross compile.
5 kx { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5 kx echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5 kx # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5 kx # If not cross compiling, check that we can run a simple program.
5 kx if test "$cross_compiling" != yes; then
5 kx if { ac_try='./$ac_file'
5 kx { (case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_try") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; }; then
5 kx cross_compiling=no
5 kx else
5 kx if test "$cross_compiling" = maybe; then
5 kx cross_compiling=yes
5 kx else
5 kx { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5 kx If you meant to cross compile, use \`--host'.
5 kx See \`config.log' for more details." >&5
5 kx echo "$as_me: error: cannot run C compiled programs.
5 kx If you meant to cross compile, use \`--host'.
5 kx See \`config.log' for more details." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx fi
5 kx fi
5 kx { echo "$as_me:$LINENO: result: yes" >&5
5 kx echo "${ECHO_T}yes" >&6; }
5 kx
5 kx rm -f a.out a.exe conftest$ac_cv_exeext b.out
5 kx ac_clean_files=$ac_clean_files_save
5 kx # Check that the compiler produces executables we can run. If not, either
5 kx # the compiler is broken, or we cross compile.
5 kx { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5 kx echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5 kx { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5 kx echo "${ECHO_T}$cross_compiling" >&6; }
5 kx
5 kx { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5 kx echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; then
5 kx # If both `conftest.exe' and `conftest' are `present' (well, observable)
5 kx # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5 kx # work properly (i.e., refer to `conftest.exe'), while it won't with
5 kx # `rm'.
5 kx for ac_file in conftest.exe conftest conftest.*; do
5 kx test -f "$ac_file" || continue
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5 kx *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5 kx break;;
5 kx * ) break;;
5 kx esac
5 kx done
5 kx else
5 kx { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5 kx See \`config.log' for more details." >&5
5 kx echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5 kx See \`config.log' for more details." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx rm -f conftest$ac_cv_exeext
5 kx { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5 kx echo "${ECHO_T}$ac_cv_exeext" >&6; }
5 kx
5 kx rm -f conftest.$ac_ext
5 kx EXEEXT=$ac_cv_exeext
5 kx ac_exeext=$EXEEXT
5 kx { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5 kx echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5 kx if test "${ac_cv_objext+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.o conftest.obj
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; then
5 kx for ac_file in conftest.o conftest.obj conftest.*; do
5 kx test -f "$ac_file" || continue;
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5 kx *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5 kx break;;
5 kx esac
5 kx done
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5 kx See \`config.log' for more details." >&5
5 kx echo "$as_me: error: cannot compute suffix of object files: cannot compile
5 kx See \`config.log' for more details." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx rm -f conftest.$ac_cv_objext conftest.$ac_ext
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5 kx echo "${ECHO_T}$ac_cv_objext" >&6; }
5 kx OBJEXT=$ac_cv_objext
5 kx ac_objext=$OBJEXT
5 kx { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5 kx echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5 kx if test "${ac_cv_c_compiler_gnu+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef __GNUC__
5 kx choke me
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_compiler_gnu=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_compiler_gnu=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_c_compiler_gnu=$ac_compiler_gnu
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5 kx echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5 kx GCC=`test $ac_compiler_gnu = yes && echo yes`
5 kx ac_test_CFLAGS=${CFLAGS+set}
5 kx ac_save_CFLAGS=$CFLAGS
5 kx { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5 kx echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_cc_g+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx ac_cv_prog_cc_g=no
5 kx CFLAGS="-g"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_prog_cc_g=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx CFLAGS=""
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx :
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="-g"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_prog_cc_g=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5 kx echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5 kx if test "$ac_test_CFLAGS" = set; then
5 kx CFLAGS=$ac_save_CFLAGS
5 kx elif test $ac_cv_prog_cc_g = yes; then
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-g -O2"
5 kx else
5 kx CFLAGS="-g"
5 kx fi
5 kx else
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-O2"
5 kx else
5 kx CFLAGS=
5 kx fi
5 kx fi
5 kx { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5 kx echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_cc_c89+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_cv_prog_cc_c89=no
5 kx ac_save_CC=$CC
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx #include <stdio.h>
5 kx #include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5 kx struct buf { int x; };
5 kx FILE * (*rcsopen) (struct buf *, struct stat *, int);
5 kx static char *e (p, i)
5 kx char **p;
5 kx int i;
5 kx {
5 kx return p[i];
5 kx }
5 kx static char *f (char * (*g) (char **, int), char **p, ...)
5 kx {
5 kx char *s;
5 kx va_list v;
5 kx va_start (v,p);
5 kx s = g (p, va_arg (v,int));
5 kx va_end (v);
5 kx return s;
5 kx }
5 kx
5 kx /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5 kx function prototypes and stuff, but not '\xHH' hex character constants.
5 kx These don't provoke an error unfortunately, instead are silently treated
5 kx as 'x'. The following induces an error, until -std is added to get
5 kx proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5 kx array size at least. It's necessary to write '\x00'==0 to get something
5 kx that's true only with -std. */
5 kx int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5 kx
5 kx /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5 kx inside strings and character constants. */
5 kx #define FOO(x) 'x'
5 kx int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5 kx
5 kx int test (int i, double x);
5 kx struct s1 {int (*f) (int a);};
5 kx struct s2 {int (*f) (double a);};
5 kx int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5 kx int argc;
5 kx char **argv;
5 kx int
5 kx main ()
5 kx {
5 kx return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5 kx -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5 kx do
5 kx CC="$ac_save_CC $ac_arg"
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_prog_cc_c89=$ac_arg
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx test "x$ac_cv_prog_cc_c89" != "xno" && break
5 kx done
5 kx rm -f conftest.$ac_ext
5 kx CC=$ac_save_CC
5 kx
5 kx fi
5 kx # AC_CACHE_VAL
5 kx case "x$ac_cv_prog_cc_c89" in
5 kx x)
5 kx { echo "$as_me:$LINENO: result: none needed" >&5
5 kx echo "${ECHO_T}none needed" >&6; } ;;
5 kx xno)
5 kx { echo "$as_me:$LINENO: result: unsupported" >&5
5 kx echo "${ECHO_T}unsupported" >&6; } ;;
5 kx *)
5 kx CC="$CC $ac_cv_prog_cc_c89"
5 kx { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5 kx echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5 kx esac
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx depcc="$CC" am_compiler_list=
5 kx
5 kx { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5 kx echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5 kx if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5 kx # We make a subdir and do the tests there. Otherwise we can end up
5 kx # making bogus files that we don't know about and never remove. For
5 kx # instance it was reported that on HP-UX the gcc test will end up
5 kx # making a dummy file named `D' -- because `-MD' means `put the output
5 kx # in D'.
5 kx mkdir conftest.dir
5 kx # Copy depcomp to subdir because otherwise we won't find it if we're
5 kx # using a relative directory.
5 kx cp "$am_depcomp" conftest.dir
5 kx cd conftest.dir
5 kx # We will build objects and dependencies in a subdirectory because
5 kx # it helps to detect inapplicable dependency modes. For instance
5 kx # both Tru64's cc and ICC support -MD to output dependencies as a
5 kx # side effect of compilation, but ICC will put the dependencies in
5 kx # the current directory while Tru64 will put them in the object
5 kx # directory.
5 kx mkdir sub
5 kx
5 kx am_cv_CC_dependencies_compiler_type=none
5 kx if test "$am_compiler_list" = ""; then
5 kx am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5 kx fi
5 kx for depmode in $am_compiler_list; do
5 kx # Setup a source with many dependencies, because some compilers
5 kx # like to wrap large dependency lists on column 80 (with \), and
5 kx # we should not choose a depcomp mode which is confused by this.
5 kx #
5 kx # We need to recreate these files for each test, as the compiler may
5 kx # overwrite some of them when testing with obscure command lines.
5 kx # This happens at least with the AIX C compiler.
5 kx : > sub/conftest.c
5 kx for i in 1 2 3 4 5 6; do
5 kx echo '#include "conftst'$i'.h"' >> sub/conftest.c
5 kx # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5 kx # Solaris 8's {/usr,}/bin/sh.
5 kx touch sub/conftst$i.h
5 kx done
5 kx echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5 kx
5 kx case $depmode in
5 kx nosideeffect)
5 kx # after this tag, mechanisms are not by side-effect, so they'll
5 kx # only be used when explicitly requested
5 kx if test "x$enable_dependency_tracking" = xyes; then
5 kx continue
5 kx else
5 kx break
5 kx fi
5 kx ;;
5 kx none) break ;;
5 kx esac
5 kx # We check with `-c' and `-o' for the sake of the "dashmstdout"
5 kx # mode. It turns out that the SunPro C++ compiler does not properly
5 kx # handle `-M -o', and we need to detect this.
5 kx if depmode=$depmode \
5 kx source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5 kx depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5 kx $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5 kx >/dev/null 2>conftest.err &&
5 kx grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5 kx ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5 kx # icc doesn't choke on unknown options, it will just issue warnings
5 kx # or remarks (even with -Werror). So we grep stderr for any message
5 kx # that says an option was ignored or not supported.
5 kx # When given -MP, icc 7.0 and 7.1 complain thusly:
5 kx # icc: Command line warning: ignoring option '-M'; no argument required
5 kx # The diagnosis changed in icc 8.0:
5 kx # icc: Command line remark: option '-MP' not supported
5 kx if (grep 'ignoring option' conftest.err ||
5 kx grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5 kx am_cv_CC_dependencies_compiler_type=$depmode
5 kx break
5 kx fi
5 kx fi
5 kx done
5 kx
5 kx cd ..
5 kx rm -rf conftest.dir
5 kx else
5 kx am_cv_CC_dependencies_compiler_type=none
5 kx fi
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5 kx echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5 kx CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5 kx
5 kx if
5 kx test "x$enable_dependency_tracking" != xno \
5 kx && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5 kx am__fastdepCC_TRUE=
5 kx am__fastdepCC_FALSE='#'
5 kx else
5 kx am__fastdepCC_TRUE='#'
5 kx am__fastdepCC_FALSE=
5 kx fi
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5 kx echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5 kx if test "${lt_cv_path_SED+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx # Loop through the user's path and test for sed and gsed.
5 kx # Then use that list of sed's as ones to test for truncation.
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for lt_ac_prog in sed gsed; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5 kx lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5 kx fi
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx lt_ac_max=0
5 kx lt_ac_count=0
5 kx # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5 kx # along with /bin/sed that truncates output.
5 kx for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5 kx test ! -f $lt_ac_sed && continue
5 kx cat /dev/null > conftest.in
5 kx lt_ac_count=0
5 kx echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5 kx # Check for GNU sed and select it if it is found.
5 kx if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5 kx lt_cv_path_SED=$lt_ac_sed
5 kx break
5 kx fi
5 kx while true; do
5 kx cat conftest.in conftest.in >conftest.tmp
5 kx mv conftest.tmp conftest.in
5 kx cp conftest.in conftest.nl
5 kx echo >>conftest.nl
5 kx $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5 kx cmp -s conftest.out conftest.nl || break
5 kx # 10000 chars as input seems more than enough
5 kx test $lt_ac_count -gt 10 && break
5 kx lt_ac_count=`expr $lt_ac_count + 1`
5 kx if test $lt_ac_count -gt $lt_ac_max; then
5 kx lt_ac_max=$lt_ac_count
5 kx lt_cv_path_SED=$lt_ac_sed
5 kx fi
5 kx done
5 kx done
5 kx
5 kx fi
5 kx
5 kx SED=$lt_cv_path_SED
5 kx
5 kx { echo "$as_me:$LINENO: result: $SED" >&5
5 kx echo "${ECHO_T}$SED" >&6; }
5 kx
5 kx { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5 kx echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5 kx if test "${ac_cv_path_GREP+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx # Extract the first word of "grep ggrep" to use in msg output
5 kx if test -z "$GREP"; then
5 kx set dummy grep ggrep; ac_prog_name=$2
5 kx if test "${ac_cv_path_GREP+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_path_GREP_found=false
5 kx # Loop through the user's path and test for each of PROGNAME-LIST
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in grep ggrep; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5 kx { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5 kx # Check for GNU ac_path_GREP and select it if it is found.
5 kx # Check for GNU $ac_path_GREP
5 kx case `"$ac_path_GREP" --version 2>&1` in
5 kx *GNU*)
5 kx ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5 kx *)
5 kx ac_count=0
5 kx echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5 kx while :
5 kx do
5 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
5 kx mv "conftest.tmp" "conftest.in"
5 kx cp "conftest.in" "conftest.nl"
5 kx echo 'GREP' >> "conftest.nl"
5 kx "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5 kx ac_count=`expr $ac_count + 1`
5 kx if test $ac_count -gt ${ac_path_GREP_max-0}; then
5 kx # Best one so far, save it but keep looking for a better one
5 kx ac_cv_path_GREP="$ac_path_GREP"
5 kx ac_path_GREP_max=$ac_count
5 kx fi
5 kx # 10*(2^10) chars as input seems more than enough
5 kx test $ac_count -gt 10 && break
5 kx done
5 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5 kx esac
5 kx
5 kx
5 kx $ac_path_GREP_found && break 3
5 kx done
5 kx done
5 kx
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx
5 kx fi
5 kx
5 kx GREP="$ac_cv_path_GREP"
5 kx if test -z "$GREP"; then
5 kx { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5 kx echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx else
5 kx ac_cv_path_GREP=$GREP
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5 kx echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5 kx GREP="$ac_cv_path_GREP"
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking for egrep" >&5
5 kx echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5 kx if test "${ac_cv_path_EGREP+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5 kx then ac_cv_path_EGREP="$GREP -E"
5 kx else
5 kx # Extract the first word of "egrep" to use in msg output
5 kx if test -z "$EGREP"; then
5 kx set dummy egrep; ac_prog_name=$2
5 kx if test "${ac_cv_path_EGREP+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_path_EGREP_found=false
5 kx # Loop through the user's path and test for each of PROGNAME-LIST
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in egrep; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5 kx { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5 kx # Check for GNU ac_path_EGREP and select it if it is found.
5 kx # Check for GNU $ac_path_EGREP
5 kx case `"$ac_path_EGREP" --version 2>&1` in
5 kx *GNU*)
5 kx ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5 kx *)
5 kx ac_count=0
5 kx echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5 kx while :
5 kx do
5 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
5 kx mv "conftest.tmp" "conftest.in"
5 kx cp "conftest.in" "conftest.nl"
5 kx echo 'EGREP' >> "conftest.nl"
5 kx "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5 kx ac_count=`expr $ac_count + 1`
5 kx if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5 kx # Best one so far, save it but keep looking for a better one
5 kx ac_cv_path_EGREP="$ac_path_EGREP"
5 kx ac_path_EGREP_max=$ac_count
5 kx fi
5 kx # 10*(2^10) chars as input seems more than enough
5 kx test $ac_count -gt 10 && break
5 kx done
5 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5 kx esac
5 kx
5 kx
5 kx $ac_path_EGREP_found && break 3
5 kx done
5 kx done
5 kx
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx
5 kx fi
5 kx
5 kx EGREP="$ac_cv_path_EGREP"
5 kx if test -z "$EGREP"; then
5 kx { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5 kx echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx else
5 kx ac_cv_path_EGREP=$EGREP
5 kx fi
5 kx
5 kx
5 kx fi
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5 kx echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5 kx EGREP="$ac_cv_path_EGREP"
5 kx
5 kx
5 kx
5 kx # Check whether --with-gnu-ld was given.
5 kx if test "${with_gnu_ld+set}" = set; then
5 kx withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5 kx else
5 kx with_gnu_ld=no
5 kx fi
5 kx
5 kx ac_prog=ld
5 kx if test "$GCC" = yes; then
5 kx # Check if gcc -print-prog-name=ld gives a path.
5 kx { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5 kx echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5 kx case $host in
5 kx *-*-mingw*)
5 kx # gcc leaves a trailing carriage return which upsets mingw
5 kx ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5 kx *)
5 kx ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5 kx esac
5 kx case $ac_prog in
5 kx # Accept absolute paths.
5 kx [\\/]* | ?:[\\/]*)
5 kx re_direlt='/[^/][^/]*/\.\./'
5 kx # Canonicalize the pathname of ld
5 kx ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5 kx while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5 kx ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5 kx done
5 kx test -z "$LD" && LD="$ac_prog"
5 kx ;;
5 kx "")
5 kx # If it fails, then pretend we aren't using GCC.
5 kx ac_prog=ld
5 kx ;;
5 kx *)
5 kx # If it is relative, then search for the first ld in PATH.
5 kx with_gnu_ld=unknown
5 kx ;;
5 kx esac
5 kx elif test "$with_gnu_ld" = yes; then
5 kx { echo "$as_me:$LINENO: checking for GNU ld" >&5
5 kx echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5 kx echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5 kx fi
5 kx if test "${lt_cv_path_LD+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -z "$LD"; then
5 kx lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5 kx for ac_dir in $PATH; do
5 kx IFS="$lt_save_ifs"
5 kx test -z "$ac_dir" && ac_dir=.
5 kx if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5 kx lt_cv_path_LD="$ac_dir/$ac_prog"
5 kx # Check to see if the program is GNU ld. I'd rather use --version,
5 kx # but apparently some variants of GNU ld only accept -v.
5 kx # Break only if it was the GNU/non-GNU ld that we prefer.
5 kx case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5 kx *GNU* | *'with BFD'*)
5 kx test "$with_gnu_ld" != no && break
5 kx ;;
5 kx *)
5 kx test "$with_gnu_ld" != yes && break
5 kx ;;
5 kx esac
5 kx fi
5 kx done
5 kx IFS="$lt_save_ifs"
5 kx else
5 kx lt_cv_path_LD="$LD" # Let the user override the test with a path.
5 kx fi
5 kx fi
5 kx
5 kx LD="$lt_cv_path_LD"
5 kx if test -n "$LD"; then
5 kx { echo "$as_me:$LINENO: result: $LD" >&5
5 kx echo "${ECHO_T}$LD" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5 kx echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5 kx echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5 kx if test "${lt_cv_prog_gnu_ld+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx # I'd rather use --version here, but apparently some GNU lds only accept -v.
5 kx case `$LD -v 2>&1 </dev/null` in
5 kx *GNU* | *'with BFD'*)
5 kx lt_cv_prog_gnu_ld=yes
5 kx ;;
5 kx *)
5 kx lt_cv_prog_gnu_ld=no
5 kx ;;
5 kx esac
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5 kx echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5 kx with_gnu_ld=$lt_cv_prog_gnu_ld
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5 kx echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5 kx if test "${lt_cv_ld_reload_flag+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_cv_ld_reload_flag='-r'
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5 kx echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5 kx reload_flag=$lt_cv_ld_reload_flag
5 kx case $reload_flag in
5 kx "" | " "*) ;;
5 kx *) reload_flag=" $reload_flag" ;;
5 kx esac
5 kx reload_cmds='$LD$reload_flag -o $output$reload_objs'
5 kx case $host_os in
5 kx darwin*)
5 kx if test "$GCC" = yes; then
5 kx reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5 kx else
5 kx reload_cmds='$LD$reload_flag -o $output$reload_objs'
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5 kx echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5 kx if test "${lt_cv_path_NM+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$NM"; then
5 kx # Let the user override the test.
5 kx lt_cv_path_NM="$NM"
5 kx else
5 kx lt_nm_to_check="${ac_tool_prefix}nm"
5 kx if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5 kx lt_nm_to_check="$lt_nm_to_check nm"
5 kx fi
5 kx for lt_tmp_nm in $lt_nm_to_check; do
5 kx lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5 kx for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5 kx IFS="$lt_save_ifs"
5 kx test -z "$ac_dir" && ac_dir=.
5 kx tmp_nm="$ac_dir/$lt_tmp_nm"
5 kx if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5 kx # Check to see if the nm accepts a BSD-compat flag.
5 kx # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5 kx # nm: unknown option "B" ignored
5 kx # Tru64's nm complains that /dev/null is an invalid object file
5 kx case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5 kx */dev/null* | *'Invalid file or object type'*)
5 kx lt_cv_path_NM="$tmp_nm -B"
5 kx break
5 kx ;;
5 kx *)
5 kx case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5 kx */dev/null*)
5 kx lt_cv_path_NM="$tmp_nm -p"
5 kx break
5 kx ;;
5 kx *)
5 kx lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5 kx continue # so that we can try to find one that supports BSD flags
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx fi
5 kx done
5 kx IFS="$lt_save_ifs"
5 kx done
5 kx test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5 kx fi
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5 kx echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5 kx NM="$lt_cv_path_NM"
5 kx
5 kx { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5 kx echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5 kx LN_S=$as_ln_s
5 kx if test "$LN_S" = "ln -s"; then
5 kx { echo "$as_me:$LINENO: result: yes" >&5
5 kx echo "${ECHO_T}yes" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5 kx echo "${ECHO_T}no, using $LN_S" >&6; }
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5 kx echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5 kx if test "${lt_cv_deplibs_check_method+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_cv_file_magic_cmd='$MAGIC_CMD'
5 kx lt_cv_file_magic_test_file=
5 kx lt_cv_deplibs_check_method='unknown'
5 kx # Need to set the preceding variable on all platforms that support
5 kx # interlibrary dependencies.
5 kx # 'none' -- dependencies not supported.
5 kx # `unknown' -- same as none, but documents that we really don't know.
5 kx # 'pass_all' -- all dependencies passed with no checks.
5 kx # 'test_compile' -- check by making test program.
5 kx # 'file_magic [[regex]]' -- check by looking for files in library path
5 kx # which responds to the $file_magic_cmd with a given extended regex.
5 kx # If you have `file' or equivalent on your system and you're not sure
5 kx # whether `pass_all' will *always* work, you probably want this one.
5 kx
5 kx case $host_os in
5 kx aix4* | aix5*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx beos*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx bsdi[45]*)
5 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5 kx lt_cv_file_magic_cmd='/usr/bin/file -L'
5 kx lt_cv_file_magic_test_file=/shlib/libc.so
5 kx ;;
5 kx
5 kx cygwin*)
5 kx # func_win32_libid is a shell function defined in ltmain.sh
5 kx lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5 kx lt_cv_file_magic_cmd='func_win32_libid'
5 kx ;;
5 kx
5 kx mingw* | pw32*)
5 kx # Base MSYS/MinGW do not provide the 'file' command needed by
5 kx # func_win32_libid shell function, so use a weaker test based on 'objdump',
5 kx # unless we find 'file', for example because we are cross-compiling.
5 kx if ( file / ) >/dev/null 2>&1; then
5 kx lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5 kx lt_cv_file_magic_cmd='func_win32_libid'
5 kx else
5 kx lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5 kx lt_cv_file_magic_cmd='$OBJDUMP -f'
5 kx fi
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx freebsd* | dragonfly*)
5 kx if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5 kx case $host_cpu in
5 kx i*86 )
5 kx # Not sure whether the presence of OpenBSD here was a mistake.
5 kx # Let's accept both of them until this is cleared up.
5 kx lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5 kx lt_cv_file_magic_cmd=/usr/bin/file
5 kx lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5 kx ;;
5 kx esac
5 kx else
5 kx lt_cv_deplibs_check_method=pass_all
5 kx fi
5 kx ;;
5 kx
5 kx gnu*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx hpux10.20* | hpux11*)
5 kx lt_cv_file_magic_cmd=/usr/bin/file
5 kx case $host_cpu in
5 kx ia64*)
5 kx lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5 kx lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5 kx ;;
5 kx hppa*64*)
5 kx lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5 kx lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5 kx ;;
5 kx *)
5 kx lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5 kx lt_cv_file_magic_test_file=/usr/lib/libc.sl
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx case $LD in
5 kx *-32|*"-32 ") libmagic=32-bit;;
5 kx *-n32|*"-n32 ") libmagic=N32;;
5 kx *-64|*"-64 ") libmagic=64-bit;;
5 kx *) libmagic=never-match;;
5 kx esac
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx # This must be Linux ELF.
5 kx linux* | k*bsd*-gnu)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx netbsd*)
5 kx if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5 kx else
5 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5 kx fi
5 kx ;;
5 kx
5 kx newos6*)
5 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5 kx lt_cv_file_magic_cmd=/usr/bin/file
5 kx lt_cv_file_magic_test_file=/usr/lib/libnls.so
5 kx ;;
5 kx
5 kx nto-qnx*)
5 kx lt_cv_deplibs_check_method=unknown
5 kx ;;
5 kx
5 kx openbsd*)
5 kx if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5 kx else
5 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5 kx fi
5 kx ;;
5 kx
5 kx osf3* | osf4* | osf5*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx rdos*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx solaris*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx sysv4 | sysv4.3*)
5 kx case $host_vendor in
5 kx motorola)
5 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]'
5 kx lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5 kx ;;
5 kx ncr)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx sequent)
5 kx lt_cv_file_magic_cmd='/bin/file'
5 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5 kx ;;
5 kx sni)
5 kx lt_cv_file_magic_cmd='/bin/file'
5 kx lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5 kx lt_cv_file_magic_test_file=/lib/libc.so
5 kx ;;
5 kx siemens)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx pc)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5 kx echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5 kx file_magic_cmd=$lt_cv_file_magic_cmd
5 kx deplibs_check_method=$lt_cv_deplibs_check_method
5 kx test -z "$deplibs_check_method" && deplibs_check_method=unknown
5 kx
5 kx
5 kx
5 kx
5 kx # If no C compiler was specified, use CC.
5 kx LTCC=${LTCC-"$CC"}
5 kx
5 kx # If no C compiler flags were specified, use CFLAGS.
5 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5 kx
5 kx # Allow CC to be a program name with arguments.
5 kx compiler=$CC
5 kx
5 kx
5 kx # Check whether --enable-libtool-lock was given.
5 kx if test "${enable_libtool_lock+set}" = set; then
5 kx enableval=$enable_libtool_lock;
5 kx fi
5 kx
5 kx test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5 kx
5 kx # Some flags need to be propagated to the compiler or linker for good
5 kx # libtool support.
5 kx case $host in
5 kx ia64-*-hpux*)
5 kx # Find out which ABI we are using.
5 kx echo 'int i;' > conftest.$ac_ext
5 kx if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; then
5 kx case `/usr/bin/file conftest.$ac_objext` in
5 kx *ELF-32*)
5 kx HPUX_IA64_MODE="32"
5 kx ;;
5 kx *ELF-64*)
5 kx HPUX_IA64_MODE="64"
5 kx ;;
5 kx esac
5 kx fi
5 kx rm -rf conftest*
5 kx ;;
5 kx *-*-irix6*)
5 kx # Find out which ABI we are using.
5 kx echo '#line 4453 "configure"' > conftest.$ac_ext
5 kx if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; then
5 kx if test "$lt_cv_prog_gnu_ld" = yes; then
5 kx case `/usr/bin/file conftest.$ac_objext` in
5 kx *32-bit*)
5 kx LD="${LD-ld} -melf32bsmip"
5 kx ;;
5 kx *N32*)
5 kx LD="${LD-ld} -melf32bmipn32"
5 kx ;;
5 kx *64-bit*)
5 kx LD="${LD-ld} -melf64bmip"
5 kx ;;
5 kx esac
5 kx else
5 kx case `/usr/bin/file conftest.$ac_objext` in
5 kx *32-bit*)
5 kx LD="${LD-ld} -32"
5 kx ;;
5 kx *N32*)
5 kx LD="${LD-ld} -n32"
5 kx ;;
5 kx *64-bit*)
5 kx LD="${LD-ld} -64"
5 kx ;;
5 kx esac
5 kx fi
5 kx fi
5 kx rm -rf conftest*
5 kx ;;
5 kx
5 kx x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5 kx s390*-*linux*|sparc*-*linux*)
5 kx # Find out which ABI we are using.
5 kx echo 'int i;' > conftest.$ac_ext
5 kx if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; then
5 kx case `/usr/bin/file conftest.o` in
5 kx *32-bit*)
5 kx case $host in
5 kx x86_64-*kfreebsd*-gnu)
5 kx LD="${LD-ld} -m elf_i386_fbsd"
5 kx ;;
5 kx x86_64-*linux*)
5 kx LD="${LD-ld} -m elf_i386"
5 kx ;;
5 kx ppc64-*linux*|powerpc64-*linux*)
5 kx LD="${LD-ld} -m elf32ppclinux"
5 kx ;;
5 kx s390x-*linux*)
5 kx LD="${LD-ld} -m elf_s390"
5 kx ;;
5 kx sparc64-*linux*)
5 kx LD="${LD-ld} -m elf32_sparc"
5 kx ;;
5 kx esac
5 kx ;;
5 kx *64-bit*)
5 kx libsuff=64
5 kx case $host in
5 kx x86_64-*kfreebsd*-gnu)
5 kx LD="${LD-ld} -m elf_x86_64_fbsd"
5 kx ;;
5 kx x86_64-*linux*)
5 kx LD="${LD-ld} -m elf_x86_64"
5 kx ;;
5 kx ppc*-*linux*|powerpc*-*linux*)
5 kx LD="${LD-ld} -m elf64ppc"
5 kx ;;
5 kx s390*-*linux*)
5 kx LD="${LD-ld} -m elf64_s390"
5 kx ;;
5 kx sparc*-*linux*)
5 kx LD="${LD-ld} -m elf64_sparc"
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx fi
5 kx rm -rf conftest*
5 kx ;;
5 kx
5 kx *-*-sco3.2v5*)
5 kx # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5 kx SAVE_CFLAGS="$CFLAGS"
5 kx CFLAGS="$CFLAGS -belf"
5 kx { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5 kx echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5 kx if test "${lt_cv_cc_needs_belf+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx lt_cv_cc_needs_belf=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx lt_cv_cc_needs_belf=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5 kx echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5 kx if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5 kx # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5 kx CFLAGS="$SAVE_CFLAGS"
5 kx fi
5 kx ;;
5 kx sparc*-*solaris*)
5 kx # Find out which ABI we are using.
5 kx echo 'int i;' > conftest.$ac_ext
5 kx if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; then
5 kx case `/usr/bin/file conftest.o` in
5 kx *64-bit*)
5 kx case $lt_cv_prog_gnu_ld in
5 kx yes*) LD="${LD-ld} -m elf64_sparc" ;;
5 kx *) LD="${LD-ld} -64" ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx fi
5 kx rm -rf conftest*
5 kx ;;
5 kx
5 kx
5 kx esac
5 kx
5 kx need_locks="$enable_libtool_lock"
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5 kx echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5 kx # On Suns, sometimes $CPP names a directory.
5 kx if test -n "$CPP" && test -d "$CPP"; then
5 kx CPP=
5 kx fi
5 kx if test -z "$CPP"; then
5 kx if test "${ac_cv_prog_CPP+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx # Double quotes because CPP needs to be expanded
5 kx for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5 kx do
5 kx ac_preproc_ok=false
5 kx for ac_c_preproc_warn_flag in '' yes
5 kx do
5 kx # Use a header file that comes with gcc, so configuring glibc
5 kx # with a fresh cross-compiler works.
5 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx # <limits.h> exists even on freestanding compilers.
5 kx # On the NeXT, cc -E runs the code through the compiler's parser,
5 kx # not just through cpp. "Syntax error" is here to catch this case.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx Syntax error
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx :
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx # Broken: fails on valid input.
5 kx continue
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx
5 kx # OK, works on sane cases. Now check whether nonexistent headers
5 kx # can be detected and how.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <ac_nonexistent.h>
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx # Broken: success on invalid input.
5 kx continue
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx # Passes both tests.
5 kx ac_preproc_ok=:
5 kx break
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx
5 kx done
5 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5 kx rm -f conftest.err conftest.$ac_ext
5 kx if $ac_preproc_ok; then
5 kx break
5 kx fi
5 kx
5 kx done
5 kx ac_cv_prog_CPP=$CPP
5 kx
5 kx fi
5 kx CPP=$ac_cv_prog_CPP
5 kx else
5 kx ac_cv_prog_CPP=$CPP
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $CPP" >&5
5 kx echo "${ECHO_T}$CPP" >&6; }
5 kx ac_preproc_ok=false
5 kx for ac_c_preproc_warn_flag in '' yes
5 kx do
5 kx # Use a header file that comes with gcc, so configuring glibc
5 kx # with a fresh cross-compiler works.
5 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx # <limits.h> exists even on freestanding compilers.
5 kx # On the NeXT, cc -E runs the code through the compiler's parser,
5 kx # not just through cpp. "Syntax error" is here to catch this case.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx Syntax error
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx :
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx # Broken: fails on valid input.
5 kx continue
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx
5 kx # OK, works on sane cases. Now check whether nonexistent headers
5 kx # can be detected and how.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <ac_nonexistent.h>
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx # Broken: success on invalid input.
5 kx continue
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx # Passes both tests.
5 kx ac_preproc_ok=:
5 kx break
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx
5 kx done
5 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5 kx rm -f conftest.err conftest.$ac_ext
5 kx if $ac_preproc_ok; then
5 kx :
5 kx else
5 kx { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5 kx See \`config.log' for more details." >&5
5 kx echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5 kx See \`config.log' for more details." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5 kx echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5 kx if test "${ac_cv_header_stdc+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx #include <stdarg.h>
5 kx #include <string.h>
5 kx #include <float.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_header_stdc=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "memchr" >/dev/null 2>&1; then
5 kx :
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "free" >/dev/null 2>&1; then
5 kx :
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5 kx if test "$cross_compiling" = yes; then
5 kx :
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <ctype.h>
5 kx #include <stdlib.h>
5 kx #if ((' ' & 0x0FF) == 0x020)
5 kx # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5 kx # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5 kx #else
5 kx # define ISLOWER(c) \
5 kx (('a' <= (c) && (c) <= 'i') \
5 kx || ('j' <= (c) && (c) <= 'r') \
5 kx || ('s' <= (c) && (c) <= 'z'))
5 kx # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5 kx #endif
5 kx
5 kx #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5 kx int
5 kx main ()
5 kx {
5 kx int i;
5 kx for (i = 0; i < 256; i++)
5 kx if (XOR (islower (i), ISLOWER (i))
5 kx || toupper (i) != TOUPPER (i))
5 kx return 2;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5 kx { (case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_try") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; }; then
5 kx :
5 kx else
5 kx echo "$as_me: program exited with status $ac_status" >&5
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ( exit $ac_status )
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5 kx echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5 kx if test $ac_cv_header_stdc = yes; then
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define STDC_HEADERS 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5 kx inttypes.h stdint.h unistd.h
5 kx do
5 kx as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5 kx { echo "$as_me:$LINENO: checking for $ac_header" >&5
5 kx echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5 kx if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx
5 kx #include <$ac_header>
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx eval "$as_ac_Header=yes"
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx eval "$as_ac_Header=no"
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx ac_res=`eval echo '${'$as_ac_Header'}'`
5 kx { echo "$as_me:$LINENO: result: $ac_res" >&5
5 kx echo "${ECHO_T}$ac_res" >&6; }
5 kx if test `eval echo '${'$as_ac_Header'}'` = yes; then
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx
5 kx for ac_header in dlfcn.h
5 kx do
5 kx as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5 kx if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx { echo "$as_me:$LINENO: checking for $ac_header" >&5
5 kx echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5 kx if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx fi
5 kx ac_res=`eval echo '${'$as_ac_Header'}'`
5 kx { echo "$as_me:$LINENO: result: $ac_res" >&5
5 kx echo "${ECHO_T}$ac_res" >&6; }
5 kx else
5 kx # Is the header compilable?
5 kx { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5 kx echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx #include <$ac_header>
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_header_compiler=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_header_compiler=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5 kx echo "${ECHO_T}$ac_header_compiler" >&6; }
5 kx
5 kx # Is the header present?
5 kx { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5 kx echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <$ac_header>
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx ac_header_preproc=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_header_preproc=no
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5 kx echo "${ECHO_T}$ac_header_preproc" >&6; }
5 kx
5 kx # So? What about this header?
5 kx case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5 kx yes:no: )
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5 kx echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5 kx echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5 kx ac_header_preproc=yes
5 kx ;;
5 kx no:yes:* )
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5 kx echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5 kx echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5 kx echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5 kx echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5 kx echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5 kx echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5 kx
5 kx ;;
5 kx esac
5 kx { echo "$as_me:$LINENO: checking for $ac_header" >&5
5 kx echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5 kx if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx eval "$as_ac_Header=\$ac_header_preproc"
5 kx fi
5 kx ac_res=`eval echo '${'$as_ac_Header'}'`
5 kx { echo "$as_me:$LINENO: result: $ac_res" >&5
5 kx echo "${ECHO_T}$ac_res" >&6; }
5 kx
5 kx fi
5 kx if test `eval echo '${'$as_ac_Header'}'` = yes; then
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx if test -z "$CXX"; then
5 kx if test -n "$CCC"; then
5 kx CXX=$CCC
5 kx else
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_CXX+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$CXX"; then
5 kx ac_cv_prog_CXX="$CXX" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CXX=$ac_cv_prog_CXX
5 kx if test -n "$CXX"; then
5 kx { echo "$as_me:$LINENO: result: $CXX" >&5
5 kx echo "${ECHO_T}$CXX" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$CXX" && break
5 kx done
5 kx fi
5 kx if test -z "$CXX"; then
5 kx ac_ct_CXX=$CXX
5 kx for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$ac_ct_CXX"; then
5 kx ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_ac_ct_CXX="$ac_prog"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5 kx if test -n "$ac_ct_CXX"; then
5 kx { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5 kx echo "${ECHO_T}$ac_ct_CXX" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_CXX" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_CXX" = x; then
5 kx CXX="g++"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CXX=$ac_ct_CXX
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx # Provide some information about the compiler.
5 kx echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5 kx ac_compiler=`set X $ac_compile; echo $2`
5 kx { (ac_try="$ac_compiler --version >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler --version >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx { (ac_try="$ac_compiler -v >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler -v >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx { (ac_try="$ac_compiler -V >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler -V >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx
5 kx { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5 kx echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5 kx if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef __GNUC__
5 kx choke me
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_cxx_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_compiler_gnu=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_compiler_gnu=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5 kx echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5 kx GXX=`test $ac_compiler_gnu = yes && echo yes`
5 kx ac_test_CXXFLAGS=${CXXFLAGS+set}
5 kx ac_save_CXXFLAGS=$CXXFLAGS
5 kx { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5 kx echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_cxx_g+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_cv_prog_cxx_g=no
5 kx CXXFLAGS="-g"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_cxx_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_prog_cxx_g=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx CXXFLAGS=""
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_cxx_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx :
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="-g"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_cxx_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_prog_cxx_g=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5 kx echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5 kx if test "$ac_test_CXXFLAGS" = set; then
5 kx CXXFLAGS=$ac_save_CXXFLAGS
5 kx elif test $ac_cv_prog_cxx_g = yes; then
5 kx if test "$GXX" = yes; then
5 kx CXXFLAGS="-g -O2"
5 kx else
5 kx CXXFLAGS="-g"
5 kx fi
5 kx else
5 kx if test "$GXX" = yes; then
5 kx CXXFLAGS="-O2"
5 kx else
5 kx CXXFLAGS=
5 kx fi
5 kx fi
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx depcc="$CXX" am_compiler_list=
5 kx
5 kx { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5 kx echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5 kx if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5 kx # We make a subdir and do the tests there. Otherwise we can end up
5 kx # making bogus files that we don't know about and never remove. For
5 kx # instance it was reported that on HP-UX the gcc test will end up
5 kx # making a dummy file named `D' -- because `-MD' means `put the output
5 kx # in D'.
5 kx mkdir conftest.dir
5 kx # Copy depcomp to subdir because otherwise we won't find it if we're
5 kx # using a relative directory.
5 kx cp "$am_depcomp" conftest.dir
5 kx cd conftest.dir
5 kx # We will build objects and dependencies in a subdirectory because
5 kx # it helps to detect inapplicable dependency modes. For instance
5 kx # both Tru64's cc and ICC support -MD to output dependencies as a
5 kx # side effect of compilation, but ICC will put the dependencies in
5 kx # the current directory while Tru64 will put them in the object
5 kx # directory.
5 kx mkdir sub
5 kx
5 kx am_cv_CXX_dependencies_compiler_type=none
5 kx if test "$am_compiler_list" = ""; then
5 kx am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5 kx fi
5 kx for depmode in $am_compiler_list; do
5 kx # Setup a source with many dependencies, because some compilers
5 kx # like to wrap large dependency lists on column 80 (with \), and
5 kx # we should not choose a depcomp mode which is confused by this.
5 kx #
5 kx # We need to recreate these files for each test, as the compiler may
5 kx # overwrite some of them when testing with obscure command lines.
5 kx # This happens at least with the AIX C compiler.
5 kx : > sub/conftest.c
5 kx for i in 1 2 3 4 5 6; do
5 kx echo '#include "conftst'$i'.h"' >> sub/conftest.c
5 kx # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5 kx # Solaris 8's {/usr,}/bin/sh.
5 kx touch sub/conftst$i.h
5 kx done
5 kx echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5 kx
5 kx case $depmode in
5 kx nosideeffect)
5 kx # after this tag, mechanisms are not by side-effect, so they'll
5 kx # only be used when explicitly requested
5 kx if test "x$enable_dependency_tracking" = xyes; then
5 kx continue
5 kx else
5 kx break
5 kx fi
5 kx ;;
5 kx none) break ;;
5 kx esac
5 kx # We check with `-c' and `-o' for the sake of the "dashmstdout"
5 kx # mode. It turns out that the SunPro C++ compiler does not properly
5 kx # handle `-M -o', and we need to detect this.
5 kx if depmode=$depmode \
5 kx source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5 kx depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5 kx $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5 kx >/dev/null 2>conftest.err &&
5 kx grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5 kx ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5 kx # icc doesn't choke on unknown options, it will just issue warnings
5 kx # or remarks (even with -Werror). So we grep stderr for any message
5 kx # that says an option was ignored or not supported.
5 kx # When given -MP, icc 7.0 and 7.1 complain thusly:
5 kx # icc: Command line warning: ignoring option '-M'; no argument required
5 kx # The diagnosis changed in icc 8.0:
5 kx # icc: Command line remark: option '-MP' not supported
5 kx if (grep 'ignoring option' conftest.err ||
5 kx grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5 kx am_cv_CXX_dependencies_compiler_type=$depmode
5 kx break
5 kx fi
5 kx fi
5 kx done
5 kx
5 kx cd ..
5 kx rm -rf conftest.dir
5 kx else
5 kx am_cv_CXX_dependencies_compiler_type=none
5 kx fi
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5 kx echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5 kx CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5 kx
5 kx if
5 kx test "x$enable_dependency_tracking" != xno \
5 kx && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5 kx am__fastdepCXX_TRUE=
5 kx am__fastdepCXX_FALSE='#'
5 kx else
5 kx am__fastdepCXX_TRUE='#'
5 kx am__fastdepCXX_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5 kx ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5 kx (test "X$CXX" != "Xg++"))) ; then
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5 kx echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5 kx if test -z "$CXXCPP"; then
5 kx if test "${ac_cv_prog_CXXCPP+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx # Double quotes because CXXCPP needs to be expanded
5 kx for CXXCPP in "$CXX -E" "/lib/cpp"
5 kx do
5 kx ac_preproc_ok=false
5 kx for ac_cxx_preproc_warn_flag in '' yes
5 kx do
5 kx # Use a header file that comes with gcc, so configuring glibc
5 kx # with a fresh cross-compiler works.
5 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx # <limits.h> exists even on freestanding compilers.
5 kx # On the NeXT, cc -E runs the code through the compiler's parser,
5 kx # not just through cpp. "Syntax error" is here to catch this case.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx Syntax error
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx :
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx # Broken: fails on valid input.
5 kx continue
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx
5 kx # OK, works on sane cases. Now check whether nonexistent headers
5 kx # can be detected and how.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <ac_nonexistent.h>
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx # Broken: success on invalid input.
5 kx continue
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx # Passes both tests.
5 kx ac_preproc_ok=:
5 kx break
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx
5 kx done
5 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5 kx rm -f conftest.err conftest.$ac_ext
5 kx if $ac_preproc_ok; then
5 kx break
5 kx fi
5 kx
5 kx done
5 kx ac_cv_prog_CXXCPP=$CXXCPP
5 kx
5 kx fi
5 kx CXXCPP=$ac_cv_prog_CXXCPP
5 kx else
5 kx ac_cv_prog_CXXCPP=$CXXCPP
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5 kx echo "${ECHO_T}$CXXCPP" >&6; }
5 kx ac_preproc_ok=false
5 kx for ac_cxx_preproc_warn_flag in '' yes
5 kx do
5 kx # Use a header file that comes with gcc, so configuring glibc
5 kx # with a fresh cross-compiler works.
5 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx # <limits.h> exists even on freestanding compilers.
5 kx # On the NeXT, cc -E runs the code through the compiler's parser,
5 kx # not just through cpp. "Syntax error" is here to catch this case.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx Syntax error
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx :
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx # Broken: fails on valid input.
5 kx continue
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx
5 kx # OK, works on sane cases. Now check whether nonexistent headers
5 kx # can be detected and how.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <ac_nonexistent.h>
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx # Broken: success on invalid input.
5 kx continue
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx # Passes both tests.
5 kx ac_preproc_ok=:
5 kx break
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx
5 kx done
5 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5 kx rm -f conftest.err conftest.$ac_ext
5 kx if $ac_preproc_ok; then
5 kx :
5 kx else
5 kx { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5 kx See \`config.log' for more details." >&5
5 kx echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5 kx See \`config.log' for more details." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx fi
5 kx
5 kx
5 kx ac_ext=f
5 kx ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_F77+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$F77"; then
5 kx ac_cv_prog_F77="$F77" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx F77=$ac_cv_prog_F77
5 kx if test -n "$F77"; then
5 kx { echo "$as_me:$LINENO: result: $F77" >&5
5 kx echo "${ECHO_T}$F77" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$F77" && break
5 kx done
5 kx fi
5 kx if test -z "$F77"; then
5 kx ac_ct_F77=$F77
5 kx for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$ac_ct_F77"; then
5 kx ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_ac_ct_F77="$ac_prog"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_F77=$ac_cv_prog_ac_ct_F77
5 kx if test -n "$ac_ct_F77"; then
5 kx { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5 kx echo "${ECHO_T}$ac_ct_F77" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_F77" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_F77" = x; then
5 kx F77=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx F77=$ac_ct_F77
5 kx fi
5 kx fi
5 kx
5 kx
5 kx # Provide some information about the compiler.
5 kx echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5 kx ac_compiler=`set X $ac_compile; echo $2`
5 kx { (ac_try="$ac_compiler --version >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler --version >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx { (ac_try="$ac_compiler -v >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler -v >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx { (ac_try="$ac_compiler -V >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler -V >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx rm -f a.out
5 kx
5 kx # If we don't use `.F' as extension, the preprocessor is not run on the
5 kx # input file. (Note that this only needs to work for GNU compilers.)
5 kx ac_save_ext=$ac_ext
5 kx ac_ext=F
5 kx { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5 kx echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5 kx if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx program main
5 kx #ifndef __GNUC__
5 kx choke me
5 kx #endif
5 kx
5 kx end
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_f77_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_compiler_gnu=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_compiler_gnu=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5 kx echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5 kx ac_ext=$ac_save_ext
5 kx ac_test_FFLAGS=${FFLAGS+set}
5 kx ac_save_FFLAGS=$FFLAGS
5 kx FFLAGS=
5 kx { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5 kx echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_f77_g+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx FFLAGS=-g
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx program main
5 kx
5 kx end
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_f77_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_prog_f77_g=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_prog_f77_g=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5 kx echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5 kx if test "$ac_test_FFLAGS" = set; then
5 kx FFLAGS=$ac_save_FFLAGS
5 kx elif test $ac_cv_prog_f77_g = yes; then
5 kx if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5 kx FFLAGS="-g -O2"
5 kx else
5 kx FFLAGS="-g"
5 kx fi
5 kx else
5 kx if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5 kx FFLAGS="-O2"
5 kx else
5 kx FFLAGS=
5 kx fi
5 kx fi
5 kx
5 kx G77=`test $ac_compiler_gnu = yes && echo yes`
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx
5 kx # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5 kx
5 kx # find the maximum length of command line arguments
5 kx { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5 kx echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5 kx if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx i=0
5 kx teststring="ABCD"
5 kx
5 kx case $build_os in
5 kx msdosdjgpp*)
5 kx # On DJGPP, this test can blow up pretty badly due to problems in libc
5 kx # (any single argument exceeding 2000 bytes causes a buffer overrun
5 kx # during glob expansion). Even if it were fixed, the result of this
5 kx # check would be larger than it should be.
5 kx lt_cv_sys_max_cmd_len=12288; # 12K is about right
5 kx ;;
5 kx
5 kx gnu*)
5 kx # Under GNU Hurd, this test is not required because there is
5 kx # no limit to the length of command line arguments.
5 kx # Libtool will interpret -1 as no limit whatsoever
5 kx lt_cv_sys_max_cmd_len=-1;
5 kx ;;
5 kx
5 kx cygwin* | mingw*)
5 kx # On Win9x/ME, this test blows up -- it succeeds, but takes
5 kx # about 5 minutes as the teststring grows exponentially.
5 kx # Worse, since 9x/ME are not pre-emptively multitasking,
5 kx # you end up with a "frozen" computer, even though with patience
5 kx # the test eventually succeeds (with a max line length of 256k).
5 kx # Instead, let's just punt: use the minimum linelength reported by
5 kx # all of the supported platforms: 8192 (on NT/2K/XP).
5 kx lt_cv_sys_max_cmd_len=8192;
5 kx ;;
5 kx
5 kx amigaos*)
5 kx # On AmigaOS with pdksh, this test takes hours, literally.
5 kx # So we just punt and use a minimum line length of 8192.
5 kx lt_cv_sys_max_cmd_len=8192;
5 kx ;;
5 kx
5 kx netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5 kx # This has been around since 386BSD, at least. Likely further.
5 kx if test -x /sbin/sysctl; then
5 kx lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5 kx elif test -x /usr/sbin/sysctl; then
5 kx lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5 kx else
5 kx lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5 kx fi
5 kx # And add a safety zone
5 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5 kx ;;
5 kx
5 kx interix*)
5 kx # We know the value 262144 and hardcode it with a safety zone (like BSD)
5 kx lt_cv_sys_max_cmd_len=196608
5 kx ;;
5 kx
5 kx osf*)
5 kx # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5 kx # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5 kx # nice to cause kernel panics so lets avoid the loop below.
5 kx # First set a reasonable default.
5 kx lt_cv_sys_max_cmd_len=16384
5 kx #
5 kx if test -x /sbin/sysconfig; then
5 kx case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5 kx *1*) lt_cv_sys_max_cmd_len=-1 ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx sco3.2v5*)
5 kx lt_cv_sys_max_cmd_len=102400
5 kx ;;
5 kx sysv5* | sco5v6* | sysv4.2uw2*)
5 kx kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5 kx if test -n "$kargmax"; then
5 kx lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5 kx else
5 kx lt_cv_sys_max_cmd_len=32768
5 kx fi
5 kx ;;
5 kx *)
5 kx lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5 kx if test -n "$lt_cv_sys_max_cmd_len"; then
5 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5 kx else
5 kx SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5 kx while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5 kx = "XX$teststring") >/dev/null 2>&1 &&
5 kx new_result=`expr "X$teststring" : ".*" 2>&1` &&
5 kx lt_cv_sys_max_cmd_len=$new_result &&
5 kx test $i != 17 # 1/2 MB should be enough
5 kx do
5 kx i=`expr $i + 1`
5 kx teststring=$teststring$teststring
5 kx done
5 kx teststring=
5 kx # Add a significant safety factor because C++ compilers can tack on massive
5 kx # amounts of additional arguments before passing them to the linker.
5 kx # It appears as though 1/2 is a usable value.
5 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx if test -n $lt_cv_sys_max_cmd_len ; then
5 kx { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5 kx echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: none" >&5
5 kx echo "${ECHO_T}none" >&6; }
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Check for command to grab the raw symbol name followed by C symbol from nm.
5 kx { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5 kx echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5 kx if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx
5 kx # These are sane defaults that work on at least a few old systems.
5 kx # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5 kx
5 kx # Character class describing NM global symbol codes.
5 kx symcode='[BCDEGRST]'
5 kx
5 kx # Regexp to match symbols that can be accessed directly from C.
5 kx sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5 kx
5 kx # Transform an extracted symbol line into a proper C declaration
5 kx lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5 kx
5 kx # Transform an extracted symbol line into symbol name and symbol address
5 kx lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5 kx
5 kx # Define system-specific variables.
5 kx case $host_os in
5 kx aix*)
5 kx symcode='[BCDT]'
5 kx ;;
5 kx cygwin* | mingw* | pw32*)
5 kx symcode='[ABCDGISTW]'
5 kx ;;
5 kx hpux*) # Its linker distinguishes data from code symbols
5 kx if test "$host_cpu" = ia64; then
5 kx symcode='[ABCDEGRST]'
5 kx fi
5 kx lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5 kx lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5 kx ;;
5 kx linux* | k*bsd*-gnu)
5 kx if test "$host_cpu" = ia64; then
5 kx symcode='[ABCDGIRSTW]'
5 kx lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5 kx lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5 kx fi
5 kx ;;
5 kx irix* | nonstopux*)
5 kx symcode='[BCDEGRST]'
5 kx ;;
5 kx osf*)
5 kx symcode='[BCDEGQRST]'
5 kx ;;
5 kx solaris*)
5 kx symcode='[BDRT]'
5 kx ;;
5 kx sco3.2v5*)
5 kx symcode='[DT]'
5 kx ;;
5 kx sysv4.2uw2*)
5 kx symcode='[DT]'
5 kx ;;
5 kx sysv5* | sco5v6* | unixware* | OpenUNIX*)
5 kx symcode='[ABDT]'
5 kx ;;
5 kx sysv4)
5 kx symcode='[DFNSTU]'
5 kx ;;
5 kx esac
5 kx
5 kx # Handle CRLF in mingw tool chain
5 kx opt_cr=
5 kx case $build_os in
5 kx mingw*)
5 kx opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5 kx ;;
5 kx esac
5 kx
5 kx # If we're using GNU nm, then use its standard symbol codes.
5 kx case `$NM -V 2>&1` in
5 kx *GNU* | *'with BFD'*)
5 kx symcode='[ABCDGIRSTW]' ;;
5 kx esac
5 kx
5 kx # Try without a prefix undercore, then with it.
5 kx for ac_symprfx in "" "_"; do
5 kx
5 kx # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5 kx symxfrm="\\1 $ac_symprfx\\2 \\2"
5 kx
5 kx # Write the raw and C identifiers.
5 kx lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5 kx
5 kx # Check to see that the pipe works correctly.
5 kx pipe_works=no
5 kx
5 kx rm -f conftest*
5 kx cat > conftest.$ac_ext <<EOF
5 kx #ifdef __cplusplus
5 kx extern "C" {
5 kx #endif
5 kx char nm_test_var;
5 kx void nm_test_func(){}
5 kx #ifdef __cplusplus
5 kx }
5 kx #endif
5 kx int main(){nm_test_var='a';nm_test_func();return(0);}
5 kx EOF
5 kx
5 kx if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; then
5 kx # Now try to grab the symbols.
5 kx nlist=conftest.nm
5 kx if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5 kx (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && test -s "$nlist"; then
5 kx # Try sorting and uniquifying the output.
5 kx if sort "$nlist" | uniq > "$nlist"T; then
5 kx mv -f "$nlist"T "$nlist"
5 kx else
5 kx rm -f "$nlist"T
5 kx fi
5 kx
5 kx # Make sure that we snagged all the symbols we need.
5 kx if grep ' nm_test_var$' "$nlist" >/dev/null; then
5 kx if grep ' nm_test_func$' "$nlist" >/dev/null; then
5 kx cat <<EOF > conftest.$ac_ext
5 kx #ifdef __cplusplus
5 kx extern "C" {
5 kx #endif
5 kx
5 kx EOF
5 kx # Now generate the symbol file.
5 kx eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5 kx
5 kx cat <<EOF >> conftest.$ac_ext
5 kx #if defined (__STDC__) && __STDC__
5 kx # define lt_ptr_t void *
5 kx #else
5 kx # define lt_ptr_t char *
5 kx # define const
5 kx #endif
5 kx
5 kx /* The mapping between symbol names and symbols. */
5 kx const struct {
5 kx const char *name;
5 kx lt_ptr_t address;
5 kx }
5 kx lt_preloaded_symbols[] =
5 kx {
5 kx EOF
5 kx $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5 kx cat <<\EOF >> conftest.$ac_ext
5 kx {0, (lt_ptr_t) 0}
5 kx };
5 kx
5 kx #ifdef __cplusplus
5 kx }
5 kx #endif
5 kx EOF
5 kx # Now try linking the two files.
5 kx mv conftest.$ac_objext conftstm.$ac_objext
5 kx lt_save_LIBS="$LIBS"
5 kx lt_save_CFLAGS="$CFLAGS"
5 kx LIBS="conftstm.$ac_objext"
5 kx CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5 kx if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5 kx (eval $ac_link) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && test -s conftest${ac_exeext}; then
5 kx pipe_works=yes
5 kx fi
5 kx LIBS="$lt_save_LIBS"
5 kx CFLAGS="$lt_save_CFLAGS"
5 kx else
5 kx echo "cannot find nm_test_func in $nlist" >&5
5 kx fi
5 kx else
5 kx echo "cannot find nm_test_var in $nlist" >&5
5 kx fi
5 kx else
5 kx echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5 kx fi
5 kx else
5 kx echo "$progname: failed program was:" >&5
5 kx cat conftest.$ac_ext >&5
5 kx fi
5 kx rm -f conftest* conftst*
5 kx
5 kx # Do not use the global_symbol_pipe unless it works.
5 kx if test "$pipe_works" = yes; then
5 kx break
5 kx else
5 kx lt_cv_sys_global_symbol_pipe=
5 kx fi
5 kx done
5 kx
5 kx fi
5 kx
5 kx if test -z "$lt_cv_sys_global_symbol_pipe"; then
5 kx lt_cv_sys_global_symbol_to_cdecl=
5 kx fi
5 kx if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5 kx { echo "$as_me:$LINENO: result: failed" >&5
5 kx echo "${ECHO_T}failed" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: ok" >&5
5 kx echo "${ECHO_T}ok" >&6; }
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: checking for objdir" >&5
5 kx echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5 kx if test "${lt_cv_objdir+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx rm -f .libs 2>/dev/null
5 kx mkdir .libs 2>/dev/null
5 kx if test -d .libs; then
5 kx lt_cv_objdir=.libs
5 kx else
5 kx # MS-DOS does not allow filenames that begin with a dot.
5 kx lt_cv_objdir=_libs
5 kx fi
5 kx rmdir .libs 2>/dev/null
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5 kx echo "${ECHO_T}$lt_cv_objdir" >&6; }
5 kx objdir=$lt_cv_objdir
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case $host_os in
5 kx aix3*)
5 kx # AIX sometimes has problems with the GCC collect2 program. For some
5 kx # reason, if we set the COLLECT_NAMES environment variable, the problems
5 kx # vanish in a puff of smoke.
5 kx if test "X${COLLECT_NAMES+set}" != Xset; then
5 kx COLLECT_NAMES=
5 kx export COLLECT_NAMES
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx # Sed substitution that helps us do robust quoting. It backslashifies
5 kx # metacharacters that are still active within double-quoted strings.
5 kx Xsed='sed -e 1s/^X//'
5 kx sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5 kx
5 kx # Same as above, but do not quote variable references.
5 kx double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5 kx
5 kx # Sed substitution to delay expansion of an escaped shell variable in a
5 kx # double_quote_subst'ed string.
5 kx delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5 kx
5 kx # Sed substitution to avoid accidental globbing in evaled expressions
5 kx no_glob_subst='s/\*/\\\*/g'
5 kx
5 kx # Constants:
5 kx rm="rm -f"
5 kx
5 kx # Global variables:
5 kx default_ofile=libtool
5 kx can_build_shared=yes
5 kx
5 kx # All known linkers require a `.a' archive for static linking (except MSVC,
5 kx # which needs '.lib').
5 kx libext=a
5 kx ltmain="$ac_aux_dir/ltmain.sh"
5 kx ofile="$default_ofile"
5 kx with_gnu_ld="$lt_cv_prog_gnu_ld"
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}ar; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_AR+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$AR"; then
5 kx ac_cv_prog_AR="$AR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_AR="${ac_tool_prefix}ar"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx AR=$ac_cv_prog_AR
5 kx if test -n "$AR"; then
5 kx { echo "$as_me:$LINENO: result: $AR" >&5
5 kx echo "${ECHO_T}$AR" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_AR"; then
5 kx ac_ct_AR=$AR
5 kx # Extract the first word of "ar", so it can be a program name with args.
5 kx set dummy ar; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$ac_ct_AR"; then
5 kx ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_ac_ct_AR="ar"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_AR=$ac_cv_prog_ac_ct_AR
5 kx if test -n "$ac_ct_AR"; then
5 kx { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5 kx echo "${ECHO_T}$ac_ct_AR" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_AR" = x; then
5 kx AR="false"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx AR=$ac_ct_AR
5 kx fi
5 kx else
5 kx AR="$ac_cv_prog_AR"
5 kx fi
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_RANLIB+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$RANLIB"; then
5 kx ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx RANLIB=$ac_cv_prog_RANLIB
5 kx if test -n "$RANLIB"; then
5 kx { echo "$as_me:$LINENO: result: $RANLIB" >&5
5 kx echo "${ECHO_T}$RANLIB" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_RANLIB"; then
5 kx ac_ct_RANLIB=$RANLIB
5 kx # Extract the first word of "ranlib", so it can be a program name with args.
5 kx set dummy ranlib; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$ac_ct_RANLIB"; then
5 kx ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_ac_ct_RANLIB="ranlib"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5 kx if test -n "$ac_ct_RANLIB"; then
5 kx { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5 kx echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_RANLIB" = x; then
5 kx RANLIB=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx RANLIB=$ac_ct_RANLIB
5 kx fi
5 kx else
5 kx RANLIB="$ac_cv_prog_RANLIB"
5 kx fi
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}strip; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_STRIP+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$STRIP"; then
5 kx ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx STRIP=$ac_cv_prog_STRIP
5 kx if test -n "$STRIP"; then
5 kx { echo "$as_me:$LINENO: result: $STRIP" >&5
5 kx echo "${ECHO_T}$STRIP" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_STRIP"; then
5 kx ac_ct_STRIP=$STRIP
5 kx # Extract the first word of "strip", so it can be a program name with args.
5 kx set dummy strip; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$ac_ct_STRIP"; then
5 kx ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_ac_ct_STRIP="strip"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5 kx if test -n "$ac_ct_STRIP"; then
5 kx { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5 kx echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_STRIP" = x; then
5 kx STRIP=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx STRIP=$ac_ct_STRIP
5 kx fi
5 kx else
5 kx STRIP="$ac_cv_prog_STRIP"
5 kx fi
5 kx
5 kx
5 kx old_CC="$CC"
5 kx old_CFLAGS="$CFLAGS"
5 kx
5 kx # Set sane defaults for various variables
5 kx test -z "$AR" && AR=ar
5 kx test -z "$AR_FLAGS" && AR_FLAGS=cru
5 kx test -z "$AS" && AS=as
5 kx test -z "$CC" && CC=cc
5 kx test -z "$LTCC" && LTCC=$CC
5 kx test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5 kx test -z "$DLLTOOL" && DLLTOOL=dlltool
5 kx test -z "$LD" && LD=ld
5 kx test -z "$LN_S" && LN_S="ln -s"
5 kx test -z "$MAGIC_CMD" && MAGIC_CMD=file
5 kx test -z "$NM" && NM=nm
5 kx test -z "$SED" && SED=sed
5 kx test -z "$OBJDUMP" && OBJDUMP=objdump
5 kx test -z "$RANLIB" && RANLIB=:
5 kx test -z "$STRIP" && STRIP=:
5 kx test -z "$ac_objext" && ac_objext=o
5 kx
5 kx # Determine commands to create old-style static archives.
5 kx old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5 kx old_postinstall_cmds='chmod 644 $oldlib'
5 kx old_postuninstall_cmds=
5 kx
5 kx if test -n "$RANLIB"; then
5 kx case $host_os in
5 kx openbsd*)
5 kx old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5 kx ;;
5 kx *)
5 kx old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5 kx ;;
5 kx esac
5 kx old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5 kx fi
5 kx
5 kx for cc_temp in $compiler""; do
5 kx case $cc_temp in
5 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5 kx \-*) ;;
5 kx *) break;;
5 kx esac
5 kx done
5 kx cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5 kx
5 kx
5 kx # Only perform the check for file, if the check method requires it
5 kx case $deplibs_check_method in
5 kx file_magic*)
5 kx if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5 kx { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5 kx echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
5 kx if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx case $MAGIC_CMD in
5 kx [\\/*] | ?:[\\/]*)
5 kx lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx lt_save_MAGIC_CMD="$MAGIC_CMD"
5 kx lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5 kx ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5 kx for ac_dir in $ac_dummy; do
5 kx IFS="$lt_save_ifs"
5 kx test -z "$ac_dir" && ac_dir=.
5 kx if test -f $ac_dir/${ac_tool_prefix}file; then
5 kx lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5 kx if test -n "$file_magic_test_file"; then
5 kx case $deplibs_check_method in
5 kx "file_magic "*)
5 kx file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5 kx MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5 kx if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5 kx $EGREP "$file_magic_regex" > /dev/null; then
5 kx :
5 kx else
5 kx cat <<EOF 1>&2
5 kx
5 kx *** Warning: the command libtool uses to detect shared libraries,
5 kx *** $file_magic_cmd, produces output that libtool cannot recognize.
5 kx *** The result is that libtool may fail to recognize shared libraries
5 kx *** as such. This will affect the creation of libtool libraries that
5 kx *** depend on shared libraries, but programs linked with such libtool
5 kx *** libraries will work regardless of this problem. Nevertheless, you
5 kx *** may want to report the problem to your system manager and/or to
5 kx *** bug-libtool@gnu.org
5 kx
5 kx EOF
5 kx fi ;;
5 kx esac
5 kx fi
5 kx break
5 kx fi
5 kx done
5 kx IFS="$lt_save_ifs"
5 kx MAGIC_CMD="$lt_save_MAGIC_CMD"
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5 kx if test -n "$MAGIC_CMD"; then
5 kx { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5 kx echo "${ECHO_T}$MAGIC_CMD" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx if test -z "$lt_cv_path_MAGIC_CMD"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx { echo "$as_me:$LINENO: checking for file" >&5
5 kx echo $ECHO_N "checking for file... $ECHO_C" >&6; }
5 kx if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx case $MAGIC_CMD in
5 kx [\\/*] | ?:[\\/]*)
5 kx lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx lt_save_MAGIC_CMD="$MAGIC_CMD"
5 kx lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5 kx ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5 kx for ac_dir in $ac_dummy; do
5 kx IFS="$lt_save_ifs"
5 kx test -z "$ac_dir" && ac_dir=.
5 kx if test -f $ac_dir/file; then
5 kx lt_cv_path_MAGIC_CMD="$ac_dir/file"
5 kx if test -n "$file_magic_test_file"; then
5 kx case $deplibs_check_method in
5 kx "file_magic "*)
5 kx file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5 kx MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5 kx if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5 kx $EGREP "$file_magic_regex" > /dev/null; then
5 kx :
5 kx else
5 kx cat <<EOF 1>&2
5 kx
5 kx *** Warning: the command libtool uses to detect shared libraries,
5 kx *** $file_magic_cmd, produces output that libtool cannot recognize.
5 kx *** The result is that libtool may fail to recognize shared libraries
5 kx *** as such. This will affect the creation of libtool libraries that
5 kx *** depend on shared libraries, but programs linked with such libtool
5 kx *** libraries will work regardless of this problem. Nevertheless, you
5 kx *** may want to report the problem to your system manager and/or to
5 kx *** bug-libtool@gnu.org
5 kx
5 kx EOF
5 kx fi ;;
5 kx esac
5 kx fi
5 kx break
5 kx fi
5 kx done
5 kx IFS="$lt_save_ifs"
5 kx MAGIC_CMD="$lt_save_MAGIC_CMD"
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5 kx if test -n "$MAGIC_CMD"; then
5 kx { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5 kx echo "${ECHO_T}$MAGIC_CMD" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx else
5 kx MAGIC_CMD=:
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx enable_dlopen=no
5 kx enable_win32_dll=no
5 kx
5 kx # Check whether --enable-libtool-lock was given.
5 kx if test "${enable_libtool_lock+set}" = set; then
5 kx enableval=$enable_libtool_lock;
5 kx fi
5 kx
5 kx test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5 kx
5 kx
5 kx # Check whether --with-pic was given.
5 kx if test "${with_pic+set}" = set; then
5 kx withval=$with_pic; pic_mode="$withval"
5 kx else
5 kx pic_mode=default
5 kx fi
5 kx
5 kx test -z "$pic_mode" && pic_mode=default
5 kx
5 kx # Use C for the default configuration in the libtool script
5 kx tagname=
5 kx lt_save_CC="$CC"
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx # Source file extension for C test sources.
5 kx ac_ext=c
5 kx
5 kx # Object file extension for compiled C test sources.
5 kx objext=o
5 kx objext=$objext
5 kx
5 kx # Code to be used in simple compile tests
5 kx lt_simple_compile_test_code="int some_variable = 0;"
5 kx
5 kx # Code to be used in simple link tests
5 kx lt_simple_link_test_code='int main(){return(0);}'
5 kx
5 kx
5 kx # If no C compiler was specified, use CC.
5 kx LTCC=${LTCC-"$CC"}
5 kx
5 kx # If no C compiler flags were specified, use CFLAGS.
5 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5 kx
5 kx # Allow CC to be a program name with arguments.
5 kx compiler=$CC
5 kx
5 kx
5 kx # save warnings/boilerplate of simple test code
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5 kx eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5 kx _lt_compiler_boilerplate=`cat conftest.err`
5 kx $rm conftest*
5 kx
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_link_test_code" >conftest.$ac_ext
5 kx eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5 kx _lt_linker_boilerplate=`cat conftest.err`
5 kx $rm conftest*
5 kx
5 kx
5 kx
5 kx lt_prog_compiler_no_builtin_flag=
5 kx
5 kx if test "$GCC" = yes; then
5 kx lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5 kx echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
5 kx if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_cv_prog_compiler_rtti_exceptions=no
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx lt_compiler_flag="-fno-rtti -fno-exceptions"
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx # The option is referenced via a variable to avoid confusing sed.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:7191: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>conftest.err)
5 kx ac_status=$?
5 kx cat conftest.err >&5
5 kx echo "$as_me:7195: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s "$ac_outfile"; then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings other than the usual output.
5 kx $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_cv_prog_compiler_rtti_exceptions=yes
5 kx fi
5 kx fi
5 kx $rm conftest*
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5 kx echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
5 kx
5 kx if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5 kx lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5 kx else
5 kx :
5 kx fi
5 kx
5 kx fi
5 kx
5 kx lt_prog_compiler_wl=
5 kx lt_prog_compiler_pic=
5 kx lt_prog_compiler_static=
5 kx
5 kx { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5 kx echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
5 kx
5 kx if test "$GCC" = yes; then
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_static='-static'
5 kx
5 kx case $host_os in
5 kx aix*)
5 kx # All AIX code is PIC.
5 kx if test "$host_cpu" = ia64; then
5 kx # AIX 5 now supports IA64 processor
5 kx lt_prog_compiler_static='-Bstatic'
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx # FIXME: we need at least 68020 code to build shared libraries, but
5 kx # adding the `-m68020' flag to GCC prevents building anything better,
5 kx # like `-m68040'.
5 kx lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5 kx ;;
5 kx
5 kx beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5 kx # PIC is the default for these OSes.
5 kx ;;
5 kx
5 kx mingw* | cygwin* | pw32* | os2*)
5 kx # This hack is so that the source file can tell whether it is being
5 kx # built for inclusion in a dll (and should export symbols for example).
5 kx # Although the cygwin gcc ignores -fPIC, still need this for old-style
5 kx # (--disable-auto-import) libraries
5 kx lt_prog_compiler_pic='-DDLL_EXPORT'
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx # PIC is the default on this platform
5 kx # Common symbols not allowed in MH_DYLIB files
5 kx lt_prog_compiler_pic='-fno-common'
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5 kx # Instead, we relocate shared libraries at runtime.
5 kx ;;
5 kx
5 kx msdosdjgpp*)
5 kx # Just because we use GCC doesn't mean we suddenly get shared libraries
5 kx # on systems that don't support them.
5 kx lt_prog_compiler_can_build_shared=no
5 kx enable_shared=no
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec; then
5 kx lt_prog_compiler_pic=-Kconform_pic
5 kx fi
5 kx ;;
5 kx
5 kx hpux*)
5 kx # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5 kx # not for PA HP-UX.
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx # +Z the default
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic='-fPIC'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx *)
5 kx lt_prog_compiler_pic='-fPIC'
5 kx ;;
5 kx esac
5 kx else
5 kx # PORTME Check for flag to pass linker flags through the system compiler.
5 kx case $host_os in
5 kx aix*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx if test "$host_cpu" = ia64; then
5 kx # AIX 5 now supports IA64 processor
5 kx lt_prog_compiler_static='-Bstatic'
5 kx else
5 kx lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5 kx fi
5 kx ;;
5 kx darwin*)
5 kx # PIC is the default on this platform
5 kx # Common symbols not allowed in MH_DYLIB files
5 kx case $cc_basename in
5 kx xlc*)
5 kx lt_prog_compiler_pic='-qnocommon'
5 kx lt_prog_compiler_wl='-Wl,'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx mingw* | cygwin* | pw32* | os2*)
5 kx # This hack is so that the source file can tell whether it is being
5 kx # built for inclusion in a dll (and should export symbols for example).
5 kx lt_prog_compiler_pic='-DDLL_EXPORT'
5 kx ;;
5 kx
5 kx hpux9* | hpux10* | hpux11*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5 kx # not for PA HP-UX.
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx # +Z the default
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic='+Z'
5 kx ;;
5 kx esac
5 kx # Is there a better lt_prog_compiler_static that works with the bundled CC?
5 kx lt_prog_compiler_static='${wl}-a ${wl}archive'
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx # PIC (with -KPIC) is the default.
5 kx lt_prog_compiler_static='-non_shared'
5 kx ;;
5 kx
5 kx newsos6)
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx
5 kx linux* | k*bsd*-gnu)
5 kx case $cc_basename in
5 kx icc* | ecc*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-static'
5 kx ;;
5 kx pgcc* | pgf77* | pgf90* | pgf95*)
5 kx # Portland Group compilers (*not* the Pentium gcc compiler,
5 kx # which looks to be a dead project)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='-fpic'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx ccc*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx # All Alpha code is PIC.
5 kx lt_prog_compiler_static='-non_shared'
5 kx ;;
5 kx *)
5 kx case `$CC -V 2>&1 | sed 5q` in
5 kx *Sun\ C*)
5 kx # Sun C 5.9
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx lt_prog_compiler_wl='-Wl,'
5 kx ;;
5 kx *Sun\ F*)
5 kx # Sun Fortran 8.3 passes all unrecognized flags to the linker
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx lt_prog_compiler_wl=''
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx osf3* | osf4* | osf5*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx # All OSF/1 code is PIC.
5 kx lt_prog_compiler_static='-non_shared'
5 kx ;;
5 kx
5 kx rdos*)
5 kx lt_prog_compiler_static='-non_shared'
5 kx ;;
5 kx
5 kx solaris*)
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx case $cc_basename in
5 kx f77* | f90* | f95*)
5 kx lt_prog_compiler_wl='-Qoption ld ';;
5 kx *)
5 kx lt_prog_compiler_wl='-Wl,';;
5 kx esac
5 kx ;;
5 kx
5 kx sunos4*)
5 kx lt_prog_compiler_wl='-Qoption ld '
5 kx lt_prog_compiler_pic='-PIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx
5 kx sysv4 | sysv4.2uw2* | sysv4.3*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec ;then
5 kx lt_prog_compiler_pic='-Kconform_pic'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx
5 kx unicos*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_can_build_shared=no
5 kx ;;
5 kx
5 kx uts4*)
5 kx lt_prog_compiler_pic='-pic'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx
5 kx *)
5 kx lt_prog_compiler_can_build_shared=no
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5 kx echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
5 kx
5 kx #
5 kx # Check to make sure the PIC flag actually works.
5 kx #
5 kx if test -n "$lt_prog_compiler_pic"; then
5 kx
5 kx { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5 kx echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
5 kx if test "${lt_prog_compiler_pic_works+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_prog_compiler_pic_works=no
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx # The option is referenced via a variable to avoid confusing sed.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:7481: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>conftest.err)
5 kx ac_status=$?
5 kx cat conftest.err >&5
5 kx echo "$as_me:7485: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s "$ac_outfile"; then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings other than the usual output.
5 kx $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_prog_compiler_pic_works=yes
5 kx fi
5 kx fi
5 kx $rm conftest*
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5 kx echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
5 kx
5 kx if test x"$lt_prog_compiler_pic_works" = xyes; then
5 kx case $lt_prog_compiler_pic in
5 kx "" | " "*) ;;
5 kx *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5 kx esac
5 kx else
5 kx lt_prog_compiler_pic=
5 kx lt_prog_compiler_can_build_shared=no
5 kx fi
5 kx
5 kx fi
5 kx case $host_os in
5 kx # For platforms which do not support PIC, -DPIC is meaningless:
5 kx *djgpp*)
5 kx lt_prog_compiler_pic=
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5 kx ;;
5 kx esac
5 kx
5 kx #
5 kx # Check to make sure the static flag actually works.
5 kx #
5 kx wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5 kx { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
5 kx echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
5 kx if test "${lt_prog_compiler_static_works+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_prog_compiler_static_works=no
5 kx save_LDFLAGS="$LDFLAGS"
5 kx LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
5 kx echo "$lt_simple_link_test_code" > conftest.$ac_ext
5 kx if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5 kx # The linker can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings
5 kx if test -s conftest.err; then
5 kx # Append any errors to the config.log.
5 kx cat conftest.err 1>&5
5 kx $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_prog_compiler_static_works=yes
5 kx fi
5 kx else
5 kx lt_prog_compiler_static_works=yes
5 kx fi
5 kx fi
5 kx $rm conftest*
5 kx LDFLAGS="$save_LDFLAGS"
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5 kx echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
5 kx
5 kx if test x"$lt_prog_compiler_static_works" = xyes; then
5 kx :
5 kx else
5 kx lt_prog_compiler_static=
5 kx fi
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5 kx echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
5 kx if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_cv_prog_compiler_c_o=no
5 kx $rm -r conftest 2>/dev/null
5 kx mkdir conftest
5 kx cd conftest
5 kx mkdir out
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx
5 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:7585: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>out/conftest.err)
5 kx ac_status=$?
5 kx cat out/conftest.err >&5
5 kx echo "$as_me:7589: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
5 kx then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings
5 kx $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
5 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
5 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
5 kx lt_cv_prog_compiler_c_o=yes
5 kx fi
5 kx fi
5 kx chmod u+w . 2>&5
5 kx $rm conftest*
5 kx # SGI C++ compiler will create directory out/ii_files/ for
5 kx # template instantiation
5 kx test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5 kx $rm out/* && rmdir out
5 kx cd ..
5 kx rmdir conftest
5 kx $rm conftest*
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5 kx echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
5 kx
5 kx
5 kx hard_links="nottested"
5 kx if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5 kx # do not overwrite the value of need_locks provided by the user
5 kx { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5 kx echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
5 kx hard_links=yes
5 kx $rm conftest*
5 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
5 kx touch conftest.a
5 kx ln conftest.a conftest.b 2>&5 || hard_links=no
5 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
5 kx { echo "$as_me:$LINENO: result: $hard_links" >&5
5 kx echo "${ECHO_T}$hard_links" >&6; }
5 kx if test "$hard_links" = no; then
5 kx { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5 kx echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5 kx need_locks=warn
5 kx fi
5 kx else
5 kx need_locks=no
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5 kx echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
5 kx
5 kx runpath_var=
5 kx allow_undefined_flag=
5 kx enable_shared_with_static_runtimes=no
5 kx archive_cmds=
5 kx archive_expsym_cmds=
5 kx old_archive_From_new_cmds=
5 kx old_archive_from_expsyms_cmds=
5 kx export_dynamic_flag_spec=
5 kx whole_archive_flag_spec=
5 kx thread_safe_flag_spec=
5 kx hardcode_libdir_flag_spec=
5 kx hardcode_libdir_flag_spec_ld=
5 kx hardcode_libdir_separator=
5 kx hardcode_direct=no
5 kx hardcode_minus_L=no
5 kx hardcode_shlibpath_var=unsupported
5 kx link_all_deplibs=unknown
5 kx hardcode_automatic=no
5 kx module_cmds=
5 kx module_expsym_cmds=
5 kx always_export_symbols=no
5 kx export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5 kx # include_expsyms should be a list of space-separated symbols to be *always*
5 kx # included in the symbol list
5 kx include_expsyms=
5 kx # exclude_expsyms can be an extended regexp of symbols to exclude
5 kx # it will be wrapped by ` (' and `)$', so one must not match beginning or
5 kx # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5 kx # as well as any symbol that contains `d'.
5 kx exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5 kx # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5 kx # platforms (ab)use it in PIC code, but their linkers get confused if
5 kx # the symbol is explicitly referenced. Since portable code cannot
5 kx # rely on this symbol name, it's probably fine to never include it in
5 kx # preloaded symbol tables.
5 kx extract_expsyms_cmds=
5 kx # Just being paranoid about ensuring that cc_basename is set.
5 kx for cc_temp in $compiler""; do
5 kx case $cc_temp in
5 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5 kx \-*) ;;
5 kx *) break;;
5 kx esac
5 kx done
5 kx cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5 kx
5 kx case $host_os in
5 kx cygwin* | mingw* | pw32*)
5 kx # FIXME: the MSVC++ port hasn't been tested in a loooong time
5 kx # When not using gcc, we currently assume that we are using
5 kx # Microsoft Visual C++.
5 kx if test "$GCC" != yes; then
5 kx with_gnu_ld=no
5 kx fi
5 kx ;;
5 kx interix*)
5 kx # we just hope/assume this is gcc and not c89 (= MSVC++)
5 kx with_gnu_ld=yes
5 kx ;;
5 kx openbsd*)
5 kx with_gnu_ld=no
5 kx ;;
5 kx esac
5 kx
5 kx ld_shlibs=yes
5 kx if test "$with_gnu_ld" = yes; then
5 kx # If archive_cmds runs LD, not CC, wlarc should be empty
5 kx wlarc='${wl}'
5 kx
5 kx # Set some defaults for GNU ld with shared library support. These
5 kx # are reset later if shared libraries are not supported. Putting them
5 kx # here allows them to be overridden if necessary.
5 kx runpath_var=LD_RUN_PATH
5 kx hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5 kx export_dynamic_flag_spec='${wl}--export-dynamic'
5 kx # ancient GNU ld didn't support --whole-archive et. al.
5 kx if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5 kx whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5 kx else
5 kx whole_archive_flag_spec=
5 kx fi
5 kx supports_anon_versioning=no
5 kx case `$LD -v 2>/dev/null` in
5 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5 kx *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5 kx *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5 kx *\ 2.11.*) ;; # other 2.11 versions
5 kx *) supports_anon_versioning=yes ;;
5 kx esac
5 kx
5 kx # See if GNU ld supports shared libraries.
5 kx case $host_os in
5 kx aix3* | aix4* | aix5*)
5 kx # On AIX/PPC, the GNU linker is very broken
5 kx if test "$host_cpu" != ia64; then
5 kx ld_shlibs=no
5 kx cat <<EOF 1>&2
5 kx
5 kx *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5 kx *** to be unable to reliably create shared libraries on AIX.
5 kx *** Therefore, libtool is disabling shared libraries support. If you
5 kx *** really care for shared libraries, you may want to modify your PATH
5 kx *** so that a non-GNU linker is found, and then restart.
5 kx
5 kx EOF
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 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)'
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_minus_L=yes
5 kx
5 kx # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5 kx # that the semantics of dynamic libraries on AmigaOS, at least up
5 kx # to version 4, is to share data among multiple programs linked
5 kx # with the same dynamic library. Since this doesn't match the
5 kx # behavior of shared libraries on other platforms, we can't use
5 kx # them.
5 kx ld_shlibs=no
5 kx ;;
5 kx
5 kx beos*)
5 kx if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx allow_undefined_flag=unsupported
5 kx # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5 kx # support --undefined. This deserves some investigation. FIXME
5 kx archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32*)
5 kx # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
5 kx # as there is no search path for DLLs.
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx allow_undefined_flag=unsupported
5 kx always_export_symbols=no
5 kx enable_shared_with_static_runtimes=yes
5 kx export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
5 kx
5 kx if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5 kx # If the export-symbols file already is a .def file (1st line
5 kx # is EXPORTS), use it as is; otherwise, prepend...
5 kx archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5 kx cp $export_symbols $output_objdir/$soname.def;
5 kx else
5 kx echo EXPORTS > $output_objdir/$soname.def;
5 kx cat $export_symbols >> $output_objdir/$soname.def;
5 kx fi~
5 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'
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx hardcode_direct=no
5 kx hardcode_shlibpath_var=no
5 kx hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5 kx export_dynamic_flag_spec='${wl}-E'
5 kx # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5 kx # Instead, shared libraries are loaded at an image base (0x10000000 by
5 kx # default) and relocated if they conflict, which is a slow very memory
5 kx # consuming and fragmenting process. To avoid this, we pick a random,
5 kx # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5 kx # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5 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'
5 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'
5 kx ;;
5 kx
5 kx gnu* | linux* | k*bsd*-gnu)
5 kx if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx tmp_addflag=
5 kx case $cc_basename,$host_cpu in
5 kx pgcc*) # Portland Group C compiler
5 kx whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5 kx tmp_addflag=' $pic_flag'
5 kx ;;
5 kx pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5 kx whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5 kx tmp_addflag=' $pic_flag -Mnomain' ;;
5 kx ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5 kx tmp_addflag=' -i_dynamic' ;;
5 kx efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5 kx tmp_addflag=' -i_dynamic -nofor_main' ;;
5 kx ifc* | ifort*) # Intel Fortran compiler
5 kx tmp_addflag=' -nofor_main' ;;
5 kx esac
5 kx case `$CC -V 2>&1 | sed 5q` in
5 kx *Sun\ C*) # Sun C 5.9
5 kx whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5 kx tmp_sharedflag='-G' ;;
5 kx *Sun\ F*) # Sun Fortran 8.3
5 kx tmp_sharedflag='-G' ;;
5 kx *)
5 kx tmp_sharedflag='-shared' ;;
5 kx esac
5 kx archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx
5 kx if test $supports_anon_versioning = yes; then
5 kx archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5 kx cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5 kx $echo "local: *; };" >> $output_objdir/$libname.ver~
5 kx $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5 kx fi
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx
5 kx netbsd*)
5 kx if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5 kx archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5 kx wlarc=
5 kx else
5 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 kx fi
5 kx ;;
5 kx
5 kx solaris*)
5 kx if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5 kx ld_shlibs=no
5 kx cat <<EOF 1>&2
5 kx
5 kx *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5 kx *** create shared libraries on Solaris systems. Therefore, libtool
5 kx *** is disabling shared libraries support. We urge you to upgrade GNU
5 kx *** binutils to release 2.9.1 or newer. Another option is to modify
5 kx *** your PATH or compiler configuration so that the native linker is
5 kx *** used, and then restart.
5 kx
5 kx EOF
5 kx elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5 kx case `$LD -v 2>&1` in
5 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
5 kx ld_shlibs=no
5 kx cat <<_LT_EOF 1>&2
5 kx
5 kx *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5 kx *** reliably create shared libraries on SCO systems. Therefore, libtool
5 kx *** is disabling shared libraries support. We urge you to upgrade GNU
5 kx *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5 kx *** your PATH or compiler configuration so that the native linker is
5 kx *** used, and then restart.
5 kx
5 kx _LT_EOF
5 kx ;;
5 kx *)
5 kx if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5 kx archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx sunos4*)
5 kx archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5 kx wlarc=
5 kx hardcode_direct=yes
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx *)
5 kx if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx if test "$ld_shlibs" = no; then
5 kx runpath_var=
5 kx hardcode_libdir_flag_spec=
5 kx export_dynamic_flag_spec=
5 kx whole_archive_flag_spec=
5 kx fi
5 kx else
5 kx # PORTME fill in a description of your system's linker (not GNU ld)
5 kx case $host_os in
5 kx aix3*)
5 kx allow_undefined_flag=unsupported
5 kx always_export_symbols=yes
5 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'
5 kx # Note: this linker hardcodes the directories in LIBPATH if there
5 kx # are no directories specified by -L.
5 kx hardcode_minus_L=yes
5 kx if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5 kx # Neither direct hardcoding nor static linking is supported with a
5 kx # broken collect2.
5 kx hardcode_direct=unsupported
5 kx fi
5 kx ;;
5 kx
5 kx aix4* | aix5*)
5 kx if test "$host_cpu" = ia64; then
5 kx # On IA64, the linker does run time linking by default, so we don't
5 kx # have to do anything special.
5 kx aix_use_runtimelinking=no
5 kx exp_sym_flag='-Bexport'
5 kx no_entry_flag=""
5 kx else
5 kx # If we're using GNU nm, then we don't want the "-C" option.
5 kx # -C means demangle to AIX nm, but means don't demangle with GNU nm
5 kx if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5 kx export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
5 kx else
5 kx export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
5 kx fi
5 kx aix_use_runtimelinking=no
5 kx
5 kx # Test if we are trying to use run time linking or normal
5 kx # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5 kx # need to do runtime linking.
5 kx case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5 kx for ld_flag in $LDFLAGS; do
5 kx if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5 kx aix_use_runtimelinking=yes
5 kx break
5 kx fi
5 kx done
5 kx ;;
5 kx esac
5 kx
5 kx exp_sym_flag='-bexport'
5 kx no_entry_flag='-bnoentry'
5 kx fi
5 kx
5 kx # When large executables or shared objects are built, AIX ld can
5 kx # have problems creating the table of contents. If linking a library
5 kx # or program results in "error TOC overflow" add -mminimal-toc to
5 kx # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5 kx # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5 kx
5 kx archive_cmds=''
5 kx hardcode_direct=yes
5 kx hardcode_libdir_separator=':'
5 kx link_all_deplibs=yes
5 kx
5 kx if test "$GCC" = yes; then
5 kx case $host_os in aix4.[012]|aix4.[012].*)
5 kx # We only want to do this on AIX 4.2 and lower, the check
5 kx # below for broken collect2 doesn't work under 4.3+
5 kx collect2name=`${CC} -print-prog-name=collect2`
5 kx if test -f "$collect2name" && \
5 kx strings "$collect2name" | grep resolve_lib_name >/dev/null
5 kx then
5 kx # We have reworked collect2
5 kx :
5 kx else
5 kx # We have old collect2
5 kx hardcode_direct=unsupported
5 kx # It fails to find uninstalled libraries when the uninstalled
5 kx # path is not listed in the libpath. Setting hardcode_minus_L
5 kx # to unsupported forces relinking
5 kx hardcode_minus_L=yes
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_libdir_separator=
5 kx fi
5 kx ;;
5 kx esac
5 kx shared_flag='-shared'
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx shared_flag="$shared_flag "'${wl}-G'
5 kx fi
5 kx else
5 kx # not using gcc
5 kx if test "$host_cpu" = ia64; then
5 kx # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5 kx # chokes on -Wl,-G. The following line is correct:
5 kx shared_flag='-G'
5 kx else
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx shared_flag='${wl}-G'
5 kx else
5 kx shared_flag='${wl}-bM:SRE'
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx # It seems that -bexpall does not export symbols beginning with
5 kx # underscore (_), so it is better to generate a list of symbols to export.
5 kx always_export_symbols=yes
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx # Warning - without using the other runtime loading flags (-brtl),
5 kx # -berok will link without error, but may produce a broken library.
5 kx allow_undefined_flag='-berok'
5 kx # Determine the default libpath from the value encoded in an empty executable.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx
5 kx lt_aix_libpath_sed='
5 kx /Import File Strings/,/^$/ {
5 kx /^0/ {
5 kx s/^0 *\(.*\)$/\1/
5 kx p
5 kx }
5 kx }'
5 kx aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx # Check for a 64-bit object if we didn't find anything.
5 kx if test -z "$aix_libpath"; then
5 kx aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx fi
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5 kx
5 kx hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
5 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5 kx else
5 kx if test "$host_cpu" = ia64; then
5 kx hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5 kx allow_undefined_flag="-z nodefs"
5 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"
5 kx else
5 kx # Determine the default libpath from the value encoded in an empty executable.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx
5 kx lt_aix_libpath_sed='
5 kx /Import File Strings/,/^$/ {
5 kx /^0/ {
5 kx s/^0 *\(.*\)$/\1/
5 kx p
5 kx }
5 kx }'
5 kx aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx # Check for a 64-bit object if we didn't find anything.
5 kx if test -z "$aix_libpath"; then
5 kx aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx fi
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5 kx
5 kx hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
5 kx # Warning - without using the other run time loading flags,
5 kx # -berok will link without error, but may produce a broken library.
5 kx no_undefined_flag=' ${wl}-bernotok'
5 kx allow_undefined_flag=' ${wl}-berok'
5 kx # Exported symbols can be pulled into shared objects from archives
5 kx whole_archive_flag_spec='$convenience'
5 kx archive_cmds_need_lc=yes
5 kx # This is similar to how AIX traditionally builds its shared libraries.
5 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'
5 kx fi
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 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)'
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_minus_L=yes
5 kx # see comment about different semantics on the GNU ld section
5 kx ld_shlibs=no
5 kx ;;
5 kx
5 kx bsdi[45]*)
5 kx export_dynamic_flag_spec=-rdynamic
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32*)
5 kx # When not using gcc, we currently assume that we are using
5 kx # Microsoft Visual C++.
5 kx # hardcode_libdir_flag_spec is actually meaningless, as there is
5 kx # no search path for DLLs.
5 kx hardcode_libdir_flag_spec=' '
5 kx allow_undefined_flag=unsupported
5 kx # Tell ltmain to make .lib files, not .a files.
5 kx libext=lib
5 kx # Tell ltmain to make .dll files, not .so files.
5 kx shrext_cmds=".dll"
5 kx # FIXME: Setting linknames here is a bad hack.
5 kx archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5 kx # The linker will automatically build a .lib file if we build a DLL.
5 kx old_archive_From_new_cmds='true'
5 kx # FIXME: Should let the user specify the lib program.
5 kx old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
5 kx fix_srcfile_path='`cygpath -w "$srcfile"`'
5 kx enable_shared_with_static_runtimes=yes
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx case $host_os in
5 kx rhapsody* | darwin1.[012])
5 kx allow_undefined_flag='${wl}-undefined ${wl}suppress'
5 kx ;;
5 kx *) # Darwin 1.3 on
5 kx if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5 kx allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5 kx else
5 kx case ${MACOSX_DEPLOYMENT_TARGET} in
5 kx 10.[012])
5 kx allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5 kx ;;
5 kx 10.*)
5 kx allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx esac
5 kx archive_cmds_need_lc=no
5 kx hardcode_direct=no
5 kx hardcode_automatic=yes
5 kx hardcode_shlibpath_var=unsupported
5 kx whole_archive_flag_spec=''
5 kx link_all_deplibs=yes
5 kx if test "$GCC" = yes ; then
5 kx output_verbose_link_cmd='echo'
5 kx archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5 kx module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5 kx # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5 kx archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx else
5 kx case $cc_basename in
5 kx xlc*)
5 kx output_verbose_link_cmd='echo'
5 kx archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5 kx module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5 kx # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5 kx archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx ;;
5 kx *)
5 kx ld_shlibs=no
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx
5 kx dgux*)
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx freebsd1*)
5 kx ld_shlibs=no
5 kx ;;
5 kx
5 kx # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5 kx # support. Future versions do this automatically, but an explicit c++rt0.o
5 kx # does not break anything, and helps significantly (at the cost of a little
5 kx # extra space).
5 kx freebsd2.2*)
5 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5 kx hardcode_libdir_flag_spec='-R$libdir'
5 kx hardcode_direct=yes
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5 kx freebsd2*)
5 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct=yes
5 kx hardcode_minus_L=yes
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5 kx freebsd* | dragonfly*)
5 kx archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5 kx hardcode_libdir_flag_spec='-R$libdir'
5 kx hardcode_direct=yes
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx hpux9*)
5 kx if test "$GCC" = yes; then
5 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'
5 kx else
5 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'
5 kx fi
5 kx hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5 kx hardcode_libdir_separator=:
5 kx hardcode_direct=yes
5 kx
5 kx # hardcode_minus_L: Not really in the search PATH,
5 kx # but as the default location of the library.
5 kx hardcode_minus_L=yes
5 kx export_dynamic_flag_spec='${wl}-E'
5 kx ;;
5 kx
5 kx hpux10*)
5 kx if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5 kx archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5 kx fi
5 kx if test "$with_gnu_ld" = no; then
5 kx hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5 kx hardcode_libdir_separator=:
5 kx
5 kx hardcode_direct=yes
5 kx export_dynamic_flag_spec='${wl}-E'
5 kx
5 kx # hardcode_minus_L: Not really in the search PATH,
5 kx # but as the default location of the library.
5 kx hardcode_minus_L=yes
5 kx fi
5 kx ;;
5 kx
5 kx hpux11*)
5 kx if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5 kx case $host_cpu in
5 kx hppa*64*)
5 kx archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx ia64*)
5 kx archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx *)
5 kx archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx esac
5 kx else
5 kx case $host_cpu in
5 kx hppa*64*)
5 kx archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx ia64*)
5 kx archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx *)
5 kx archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx esac
5 kx fi
5 kx if test "$with_gnu_ld" = no; then
5 kx hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5 kx hardcode_libdir_separator=:
5 kx
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx hardcode_libdir_flag_spec_ld='+b $libdir'
5 kx hardcode_direct=no
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx *)
5 kx hardcode_direct=yes
5 kx export_dynamic_flag_spec='${wl}-E'
5 kx
5 kx # hardcode_minus_L: Not really in the search PATH,
5 kx # but as the default location of the library.
5 kx hardcode_minus_L=yes
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx if test "$GCC" = yes; then
5 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5 kx else
5 kx archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5 kx hardcode_libdir_flag_spec_ld='-rpath $libdir'
5 kx fi
5 kx hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5 kx hardcode_libdir_separator=:
5 kx link_all_deplibs=yes
5 kx ;;
5 kx
5 kx netbsd*)
5 kx if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5 kx else
5 kx archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5 kx fi
5 kx hardcode_libdir_flag_spec='-R$libdir'
5 kx hardcode_direct=yes
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx newsos6)
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct=yes
5 kx hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5 kx hardcode_libdir_separator=:
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx openbsd*)
5 kx if test -f /usr/libexec/ld.so; then
5 kx hardcode_direct=yes
5 kx hardcode_shlibpath_var=no
5 kx if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5 kx hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5 kx export_dynamic_flag_spec='${wl}-E'
5 kx else
5 kx case $host_os in
5 kx openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_libdir_flag_spec='-R$libdir'
5 kx ;;
5 kx *)
5 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5 kx hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5 kx ;;
5 kx esac
5 kx fi
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx
5 kx os2*)
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_minus_L=yes
5 kx allow_undefined_flag=unsupported
5 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'
5 kx old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5 kx ;;
5 kx
5 kx osf3*)
5 kx if test "$GCC" = yes; then
5 kx allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5 kx archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5 kx else
5 kx allow_undefined_flag=' -expect_unresolved \*'
5 kx archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5 kx fi
5 kx hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5 kx hardcode_libdir_separator=:
5 kx ;;
5 kx
5 kx osf4* | osf5*) # as osf3* with the addition of -msym flag
5 kx if test "$GCC" = yes; then
5 kx allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5 kx archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5 kx hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5 kx else
5 kx allow_undefined_flag=' -expect_unresolved \*'
5 kx archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5 kx archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5 kx $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5 kx
5 kx # Both c and cxx compiler support -rpath directly
5 kx hardcode_libdir_flag_spec='-rpath $libdir'
5 kx fi
5 kx hardcode_libdir_separator=:
5 kx ;;
5 kx
5 kx solaris*)
5 kx no_undefined_flag=' -z text'
5 kx if test "$GCC" = yes; then
5 kx wlarc='${wl}'
5 kx archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5 kx $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5 kx else
5 kx wlarc=''
5 kx archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5 kx $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5 kx fi
5 kx hardcode_libdir_flag_spec='-R$libdir'
5 kx hardcode_shlibpath_var=no
5 kx case $host_os in
5 kx solaris2.[0-5] | solaris2.[0-5].*) ;;
5 kx *)
5 kx # The compiler driver will combine and reorder linker options,
5 kx # but understands `-z linker_flag'. GCC discards it without `$wl',
5 kx # but is careful enough not to reorder.
5 kx # Supported since Solaris 2.6 (maybe 2.5.1?)
5 kx if test "$GCC" = yes; then
5 kx whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5 kx else
5 kx whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
5 kx fi
5 kx ;;
5 kx esac
5 kx link_all_deplibs=yes
5 kx ;;
5 kx
5 kx sunos4*)
5 kx if test "x$host_vendor" = xsequent; then
5 kx # Use $CC to link under sequent, because it throws in some extra .o
5 kx # files that make .init and .fini sections work.
5 kx archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5 kx fi
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_direct=yes
5 kx hardcode_minus_L=yes
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx sysv4)
5 kx case $host_vendor in
5 kx sni)
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct=yes # is this really true???
5 kx ;;
5 kx siemens)
5 kx ## LD is ld it makes a PLAMLIB
5 kx ## CC just makes a GrossModule.
5 kx archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5 kx reload_cmds='$CC -r -o $output$reload_objs'
5 kx hardcode_direct=no
5 kx ;;
5 kx motorola)
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5 kx ;;
5 kx esac
5 kx runpath_var='LD_RUN_PATH'
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx sysv4.3*)
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_shlibpath_var=no
5 kx export_dynamic_flag_spec='-Bexport'
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec; then
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_shlibpath_var=no
5 kx runpath_var=LD_RUN_PATH
5 kx hardcode_runpath_var=yes
5 kx ld_shlibs=yes
5 kx fi
5 kx ;;
5 kx
5 kx sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
5 kx no_undefined_flag='${wl}-z,text'
5 kx archive_cmds_need_lc=no
5 kx hardcode_shlibpath_var=no
5 kx runpath_var='LD_RUN_PATH'
5 kx
5 kx if test "$GCC" = yes; then
5 kx archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6*)
5 kx # Note: We can NOT use -z defs as we might desire, because we do not
5 kx # link with -lc, and that would cause any symbols used from libc to
5 kx # always be unresolved, which means just about no library would
5 kx # ever link correctly. If we're not using GNU ld we use -z text
5 kx # though, which does catch some bad symbols but isn't as heavy-handed
5 kx # as -z defs.
5 kx no_undefined_flag='${wl}-z,text'
5 kx allow_undefined_flag='${wl}-z,nodefs'
5 kx archive_cmds_need_lc=no
5 kx hardcode_shlibpath_var=no
5 kx hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
5 kx hardcode_libdir_separator=':'
5 kx link_all_deplibs=yes
5 kx export_dynamic_flag_spec='${wl}-Bexport'
5 kx runpath_var='LD_RUN_PATH'
5 kx
5 kx if test "$GCC" = yes; then
5 kx archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx fi
5 kx ;;
5 kx
5 kx uts4*)
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx *)
5 kx ld_shlibs=no
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5 kx echo "${ECHO_T}$ld_shlibs" >&6; }
5 kx test "$ld_shlibs" = no && can_build_shared=no
5 kx
5 kx #
5 kx # Do we need to explicitly link libc?
5 kx #
5 kx case "x$archive_cmds_need_lc" in
5 kx x|xyes)
5 kx # Assume -lc should be added
5 kx archive_cmds_need_lc=yes
5 kx
5 kx if test "$enable_shared" = yes && test "$GCC" = yes; then
5 kx case $archive_cmds in
5 kx *'~'*)
5 kx # FIXME: we may have to deal with multi-command sequences.
5 kx ;;
5 kx '$CC '*)
5 kx # Test whether the compiler implicitly links with -lc since on some
5 kx # systems, -lgcc has to come before -lc. If gcc already passes -lc
5 kx # to ld, don't add -lc before -lgcc.
5 kx { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
5 kx echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
5 kx $rm conftest*
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx
5 kx if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } 2>conftest.err; then
5 kx soname=conftest
5 kx lib=conftest
5 kx libobjs=conftest.$ac_objext
5 kx deplibs=
5 kx wl=$lt_prog_compiler_wl
5 kx pic_flag=$lt_prog_compiler_pic
5 kx compiler_flags=-v
5 kx linker_flags=-v
5 kx verstring=
5 kx output_objdir=.
5 kx libname=conftest
5 kx lt_save_allow_undefined_flag=$allow_undefined_flag
5 kx allow_undefined_flag=
5 kx if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5 kx (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx then
5 kx archive_cmds_need_lc=no
5 kx else
5 kx archive_cmds_need_lc=yes
5 kx fi
5 kx allow_undefined_flag=$lt_save_allow_undefined_flag
5 kx else
5 kx cat conftest.err 1>&5
5 kx fi
5 kx $rm conftest*
5 kx { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
5 kx echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5 kx echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
5 kx library_names_spec=
5 kx libname_spec='lib$name'
5 kx soname_spec=
5 kx shrext_cmds=".so"
5 kx postinstall_cmds=
5 kx postuninstall_cmds=
5 kx finish_cmds=
5 kx finish_eval=
5 kx shlibpath_var=
5 kx shlibpath_overrides_runpath=unknown
5 kx version_type=none
5 kx dynamic_linker="$host_os ld.so"
5 kx sys_lib_dlsearch_path_spec="/lib /usr/lib"
5 kx
5 kx if test "$GCC" = yes; then
5 kx case $host_os in
5 kx darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
5 kx *) lt_awk_arg="/^libraries:/" ;;
5 kx esac
5 kx lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
5 kx if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
5 kx # if the path contains ";" then we assume it to be the separator
5 kx # otherwise default to the standard path separator (i.e. ":") - it is
5 kx # assumed that no part of a normal pathname contains ";" but that should
5 kx # okay in the real world where ";" in dirpaths is itself problematic.
5 kx lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
5 kx else
5 kx lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
5 kx fi
5 kx # Ok, now we have the path, separated by spaces, we can step through it
5 kx # and add multilib dir if necessary.
5 kx lt_tmp_lt_search_path_spec=
5 kx lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
5 kx for lt_sys_path in $lt_search_path_spec; do
5 kx if test -d "$lt_sys_path/$lt_multi_os_dir"; then
5 kx lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
5 kx else
5 kx test -d "$lt_sys_path" && \
5 kx lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
5 kx fi
5 kx done
5 kx lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
5 kx BEGIN {RS=" "; FS="/|\n";} {
5 kx lt_foo="";
5 kx lt_count=0;
5 kx for (lt_i = NF; lt_i > 0; lt_i--) {
5 kx if ($lt_i != "" && $lt_i != ".") {
5 kx if ($lt_i == "..") {
5 kx lt_count++;
5 kx } else {
5 kx if (lt_count == 0) {
5 kx lt_foo="/" $lt_i lt_foo;
5 kx } else {
5 kx lt_count--;
5 kx }
5 kx }
5 kx }
5 kx }
5 kx if (lt_foo != "") { lt_freq[lt_foo]++; }
5 kx if (lt_freq[lt_foo] == 1) { print lt_foo; }
5 kx }'`
5 kx sys_lib_search_path_spec=`echo $lt_search_path_spec`
5 kx else
5 kx sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5 kx fi
5 kx need_lib_prefix=unknown
5 kx hardcode_into_libs=no
5 kx
5 kx # when you set need_version to no, make sure it does not cause -set_version
5 kx # flags to be left without arguments
5 kx need_version=unknown
5 kx
5 kx case $host_os in
5 kx aix3*)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
5 kx shlibpath_var=LIBPATH
5 kx
5 kx # AIX 3 has no versioning support, so we append a major version to the name.
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx ;;
5 kx
5 kx aix4* | aix5*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx hardcode_into_libs=yes
5 kx if test "$host_cpu" = ia64; then
5 kx # AIX 5 supports IA64
5 kx library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx else
5 kx # With GCC up to 2.95.x, collect2 would create an import file
5 kx # for dependence libraries. The import file would start with
5 kx # the line `#! .'. This would cause the generated library to
5 kx # depend on `.', always an invalid library. This was fixed in
5 kx # development snapshots of GCC prior to 3.0.
5 kx case $host_os in
5 kx aix4 | aix4.[01] | aix4.[01].*)
5 kx if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5 kx echo ' yes '
5 kx echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5 kx :
5 kx else
5 kx can_build_shared=no
5 kx fi
5 kx ;;
5 kx esac
5 kx # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5 kx # soname into executable. Probably we can add versioning support to
5 kx # collect2, so additional links can be useful in future.
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5 kx # instead of lib<name>.a to let people know that these are not
5 kx # typical AIX shared libraries.
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx else
5 kx # We preserve .a as extension for shared libraries through AIX4.2
5 kx # and later when we are not doing run time linking.
5 kx library_names_spec='${libname}${release}.a $libname.a'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx fi
5 kx shlibpath_var=LIBPATH
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx library_names_spec='$libname.ixlibrary $libname.a'
5 kx # Create ${libname}_ixlibrary.a entries in /sys/libs.
5 kx finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
5 kx ;;
5 kx
5 kx beos*)
5 kx library_names_spec='${libname}${shared_ext}'
5 kx dynamic_linker="$host_os ld.so"
5 kx shlibpath_var=LIBRARY_PATH
5 kx ;;
5 kx
5 kx bsdi[45]*)
5 kx version_type=linux
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5 kx sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5 kx # the default ld.so.conf also contains /usr/contrib/lib and
5 kx # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5 kx # libtool to hard-code these into programs
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32*)
5 kx version_type=windows
5 kx shrext_cmds=".dll"
5 kx need_version=no
5 kx need_lib_prefix=no
5 kx
5 kx case $GCC,$host_os in
5 kx yes,cygwin* | yes,mingw* | yes,pw32*)
5 kx library_names_spec='$libname.dll.a'
5 kx # DLL is installed to $(libdir)/../bin by postinstall_cmds
5 kx postinstall_cmds='base_file=`basename \${file}`~
5 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
5 kx dldir=$destdir/`dirname \$dlpath`~
5 kx test -d \$dldir || mkdir -p \$dldir~
5 kx $install_prog $dir/$dlname \$dldir/$dlname~
5 kx chmod a+x \$dldir/$dlname'
5 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
5 kx dlpath=$dir/\$dldll~
5 kx $rm \$dlpath'
5 kx shlibpath_overrides_runpath=yes
5 kx
5 kx case $host_os in
5 kx cygwin*)
5 kx # Cygwin DLLs use 'cyg' prefix rather than 'lib'
5 kx soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5 kx sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
5 kx ;;
5 kx mingw*)
5 kx # MinGW DLLs use traditional 'lib' prefix
5 kx soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5 kx sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
5 kx if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
5 kx # It is most probably a Windows format PATH printed by
5 kx # mingw gcc, but we are running on Cygwin. Gcc prints its search
5 kx # path with ; separators, and with drive letters. We can handle the
5 kx # drive letters (cygwin fileutils understands them), so leave them,
5 kx # especially as we might pass files found there to a mingw objdump,
5 kx # which wouldn't understand a cygwinified path. Ahh.
5 kx sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
5 kx else
5 kx sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
5 kx fi
5 kx ;;
5 kx pw32*)
5 kx # pw32 DLLs use 'pw' prefix rather than 'lib'
5 kx library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx *)
5 kx library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
5 kx ;;
5 kx esac
5 kx dynamic_linker='Win32 ld.exe'
5 kx # FIXME: first we should search . and the directory the executable is in
5 kx shlibpath_var=PATH
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx dynamic_linker="$host_os dyld"
5 kx version_type=darwin
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
5 kx soname_spec='${libname}${release}${major}$shared_ext'
5 kx shlibpath_overrides_runpath=yes
5 kx shlibpath_var=DYLD_LIBRARY_PATH
5 kx shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
5 kx
5 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
5 kx sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
5 kx ;;
5 kx
5 kx dgux*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx ;;
5 kx
5 kx freebsd1*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx freebsd* | dragonfly*)
5 kx # DragonFly does not have aout. When/if they implement a new
5 kx # versioning mechanism, adjust this.
5 kx if test -x /usr/bin/objformat; then
5 kx objformat=`/usr/bin/objformat`
5 kx else
5 kx case $host_os in
5 kx freebsd[123]*) objformat=aout ;;
5 kx *) objformat=elf ;;
5 kx esac
5 kx fi
5 kx version_type=freebsd-$objformat
5 kx case $version_type in
5 kx freebsd-elf*)
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5 kx need_version=no
5 kx need_lib_prefix=no
5 kx ;;
5 kx freebsd-*)
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
5 kx need_version=yes
5 kx ;;
5 kx esac
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx case $host_os in
5 kx freebsd2*)
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx freebsd3.[01]* | freebsdelf3.[01]*)
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
5 kx freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
5 kx shlibpath_overrides_runpath=no
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx *) # from 4.6 on, and DragonFly
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx gnu*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx hpux9* | hpux10* | hpux11*)
5 kx # Give a soname corresponding to the major version so that dld.sl refuses to
5 kx # link against other versions.
5 kx version_type=sunos
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx case $host_cpu in
5 kx ia64*)
5 kx shrext_cmds='.so'
5 kx hardcode_into_libs=yes
5 kx dynamic_linker="$host_os dld.so"
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx if test "X$HPUX_IA64_MODE" = X32; then
5 kx sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
5 kx else
5 kx sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
5 kx fi
5 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5 kx ;;
5 kx hppa*64*)
5 kx shrext_cmds='.sl'
5 kx hardcode_into_libs=yes
5 kx dynamic_linker="$host_os dld.sl"
5 kx shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
5 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5 kx ;;
5 kx *)
5 kx shrext_cmds='.sl'
5 kx dynamic_linker="$host_os dld.sl"
5 kx shlibpath_var=SHLIB_PATH
5 kx shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx ;;
5 kx esac
5 kx # HP-UX runs *really* slowly unless shared libraries are mode 555.
5 kx postinstall_cmds='chmod 555 $lib'
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=no
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx case $host_os in
5 kx nonstopux*) version_type=nonstopux ;;
5 kx *)
5 kx if test "$lt_cv_prog_gnu_ld" = yes; then
5 kx version_type=linux
5 kx else
5 kx version_type=irix
5 kx fi ;;
5 kx esac
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
5 kx case $host_os in
5 kx irix5* | nonstopux*)
5 kx libsuff= shlibsuff=
5 kx ;;
5 kx *)
5 kx case $LD in # libtool.m4 will add one of these switches to LD
5 kx *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5 kx libsuff= shlibsuff= libmagic=32-bit;;
5 kx *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5 kx libsuff=32 shlibsuff=N32 libmagic=N32;;
5 kx *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5 kx libsuff=64 shlibsuff=64 libmagic=64-bit;;
5 kx *) libsuff= shlibsuff= libmagic=never-match;;
5 kx esac
5 kx ;;
5 kx esac
5 kx shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5 kx shlibpath_overrides_runpath=no
5 kx sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5 kx sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx # No shared lib support for Linux oldld, aout, or coff.
5 kx linux*oldld* | linux*aout* | linux*coff*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx # This must be Linux ELF.
5 kx linux* | k*bsd*-gnu)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=no
5 kx # This implies no fast_install, which is unacceptable.
5 kx # Some rework will be needed to allow for fast_install
5 kx # before this can be enabled.
5 kx hardcode_into_libs=yes
5 kx sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5 kx sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5 kx
5 kx # Append ld.so.conf contents to the search path
5 kx if test -f /etc/ld.so.conf; then
5 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;/^$/d' | tr '\n' ' '`
5 kx sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
5 kx fi
5 kx
5 kx # We used to test for /lib/ld.so.1 and disable shared libraries on
5 kx # powerpc, because MkLinux only supported shared libraries with the
5 kx # GNU dynamic linker. Since this was broken with cross compilers,
5 kx # most powerpc-linux boxes support dynamic linking these days and
5 kx # people can always --disable-shared, the test was removed, and we
5 kx # assume the GNU/Linux dynamic linker is in use.
5 kx dynamic_linker='GNU/Linux ld.so'
5 kx ;;
5 kx
5 kx netbsd*)
5 kx version_type=sunos
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5 kx dynamic_linker='NetBSD (a.out) ld.so'
5 kx else
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx dynamic_linker='NetBSD ld.elf_so'
5 kx fi
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx newsos6)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx
5 kx nto-qnx*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx
5 kx openbsd*)
5 kx version_type=sunos
5 kx sys_lib_dlsearch_path_spec="/usr/lib"
5 kx need_lib_prefix=no
5 kx # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
5 kx case $host_os in
5 kx openbsd3.3 | openbsd3.3.*) need_version=yes ;;
5 kx *) need_version=no ;;
5 kx esac
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5 kx case $host_os in
5 kx openbsd2.[89] | openbsd2.[89].*)
5 kx shlibpath_overrides_runpath=no
5 kx ;;
5 kx *)
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx esac
5 kx else
5 kx shlibpath_overrides_runpath=yes
5 kx fi
5 kx ;;
5 kx
5 kx os2*)
5 kx libname_spec='$name'
5 kx shrext_cmds=".dll"
5 kx need_lib_prefix=no
5 kx library_names_spec='$libname${shared_ext} $libname.a'
5 kx dynamic_linker='OS/2 ld.exe'
5 kx shlibpath_var=LIBPATH
5 kx ;;
5 kx
5 kx osf3* | osf4* | osf5*)
5 kx version_type=osf
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5 kx sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5 kx ;;
5 kx
5 kx rdos*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx solaris*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx # ldd complains unless libraries are executable
5 kx postinstall_cmds='chmod +x $lib'
5 kx ;;
5 kx
5 kx sunos4*)
5 kx version_type=sunos
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5 kx finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx if test "$with_gnu_ld" = yes; then
5 kx need_lib_prefix=no
5 kx fi
5 kx need_version=yes
5 kx ;;
5 kx
5 kx sysv4 | sysv4.3*)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx case $host_vendor in
5 kx sni)
5 kx shlibpath_overrides_runpath=no
5 kx need_lib_prefix=no
5 kx export_dynamic_flag_spec='${wl}-Blargedynsym'
5 kx runpath_var=LD_RUN_PATH
5 kx ;;
5 kx siemens)
5 kx need_lib_prefix=no
5 kx ;;
5 kx motorola)
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx shlibpath_overrides_runpath=no
5 kx sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec ;then
5 kx version_type=linux
5 kx library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5 kx soname_spec='$libname${shared_ext}.$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5 kx version_type=freebsd-elf
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx hardcode_into_libs=yes
5 kx if test "$with_gnu_ld" = yes; then
5 kx sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
5 kx shlibpath_overrides_runpath=no
5 kx else
5 kx sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
5 kx shlibpath_overrides_runpath=yes
5 kx case $host_os in
5 kx sco3.2v5*)
5 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
5 kx ;;
5 kx esac
5 kx fi
5 kx sys_lib_dlsearch_path_spec='/usr/lib'
5 kx ;;
5 kx
5 kx uts4*)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx ;;
5 kx
5 kx *)
5 kx dynamic_linker=no
5 kx ;;
5 kx esac
5 kx { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5 kx echo "${ECHO_T}$dynamic_linker" >&6; }
5 kx test "$dynamic_linker" = no && can_build_shared=no
5 kx
5 kx variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5 kx if test "$GCC" = yes; then
5 kx variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5 kx echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
5 kx hardcode_action=
5 kx if test -n "$hardcode_libdir_flag_spec" || \
5 kx test -n "$runpath_var" || \
5 kx test "X$hardcode_automatic" = "Xyes" ; then
5 kx
5 kx # We can hardcode non-existant directories.
5 kx if test "$hardcode_direct" != no &&
5 kx # If the only mechanism to avoid hardcoding is shlibpath_var, we
5 kx # have to relink, otherwise we might link with an installed library
5 kx # when we should be linking with a yet-to-be-installed one
5 kx ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
5 kx test "$hardcode_minus_L" != no; then
5 kx # Linking always hardcodes the temporary library directory.
5 kx hardcode_action=relink
5 kx else
5 kx # We can link without hardcoding, and we can hardcode nonexisting dirs.
5 kx hardcode_action=immediate
5 kx fi
5 kx else
5 kx # We cannot hardcode anything, or else we can only hardcode existing
5 kx # directories.
5 kx hardcode_action=unsupported
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $hardcode_action" >&5
5 kx echo "${ECHO_T}$hardcode_action" >&6; }
5 kx
5 kx if test "$hardcode_action" = relink; then
5 kx # Fast installation is not supported
5 kx enable_fast_install=no
5 kx elif test "$shlibpath_overrides_runpath" = yes ||
5 kx test "$enable_shared" = no; then
5 kx # Fast installation is not necessary
5 kx enable_fast_install=needless
5 kx fi
5 kx
5 kx striplib=
5 kx old_striplib=
5 kx { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5 kx echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
5 kx if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5 kx test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5 kx test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5 kx { echo "$as_me:$LINENO: result: yes" >&5
5 kx echo "${ECHO_T}yes" >&6; }
5 kx else
5 kx # FIXME - insert some real tests, host_os isn't really good enough
5 kx case $host_os in
5 kx darwin*)
5 kx if test -n "$STRIP" ; then
5 kx striplib="$STRIP -x"
5 kx old_striplib="$STRIP -S"
5 kx { echo "$as_me:$LINENO: result: yes" >&5
5 kx echo "${ECHO_T}yes" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx ;;
5 kx *)
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test "x$enable_dlopen" != xyes; then
5 kx enable_dlopen=unknown
5 kx enable_dlopen_self=unknown
5 kx enable_dlopen_self_static=unknown
5 kx else
5 kx lt_cv_dlopen=no
5 kx lt_cv_dlopen_libs=
5 kx
5 kx case $host_os in
5 kx beos*)
5 kx lt_cv_dlopen="load_add_on"
5 kx lt_cv_dlopen_libs=
5 kx lt_cv_dlopen_self=yes
5 kx ;;
5 kx
5 kx mingw* | pw32*)
5 kx lt_cv_dlopen="LoadLibrary"
5 kx lt_cv_dlopen_libs=
5 kx ;;
5 kx
5 kx cygwin*)
5 kx lt_cv_dlopen="dlopen"
5 kx lt_cv_dlopen_libs=
5 kx ;;
5 kx
5 kx darwin*)
5 kx # if libdl is installed we need to link against it
5 kx { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5 kx echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5 kx if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-ldl $LIBS"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char dlopen ();
5 kx int
5 kx main ()
5 kx {
5 kx return dlopen ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx ac_cv_lib_dl_dlopen=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_lib_dl_dlopen=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5 kx echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5 kx if test $ac_cv_lib_dl_dlopen = yes; then
5 kx lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5 kx else
5 kx
5 kx lt_cv_dlopen="dyld"
5 kx lt_cv_dlopen_libs=
5 kx lt_cv_dlopen_self=yes
5 kx
5 kx fi
5 kx
5 kx ;;
5 kx
5 kx *)
5 kx { echo "$as_me:$LINENO: checking for shl_load" >&5
5 kx echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
5 kx if test "${ac_cv_func_shl_load+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
5 kx For example, HP-UX 11i <limits.h> declares gettimeofday. */
5 kx #define shl_load innocuous_shl_load
5 kx
5 kx /* System header to define __stub macros and hopefully few prototypes,
5 kx which can conflict with char shl_load (); below.
5 kx Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx <limits.h> exists even on freestanding compilers. */
5 kx
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx
5 kx #undef shl_load
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char shl_load ();
5 kx /* The GNU C library defines this for functions which it implements
5 kx to always fail with ENOSYS. Some functions are actually named
5 kx something starting with __ and the normal name is an alias. */
5 kx #if defined __stub_shl_load || defined __stub___shl_load
5 kx choke me
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return shl_load ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx ac_cv_func_shl_load=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_func_shl_load=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
5 kx echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
5 kx if test $ac_cv_func_shl_load = yes; then
5 kx lt_cv_dlopen="shl_load"
5 kx else
5 kx { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
5 kx echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
5 kx if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-ldld $LIBS"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char shl_load ();
5 kx int
5 kx main ()
5 kx {
5 kx return shl_load ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx ac_cv_lib_dld_shl_load=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_lib_dld_shl_load=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
5 kx echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
5 kx if test $ac_cv_lib_dld_shl_load = yes; then
5 kx lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5 kx else
5 kx { echo "$as_me:$LINENO: checking for dlopen" >&5
5 kx echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
5 kx if test "${ac_cv_func_dlopen+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
5 kx For example, HP-UX 11i <limits.h> declares gettimeofday. */
5 kx #define dlopen innocuous_dlopen
5 kx
5 kx /* System header to define __stub macros and hopefully few prototypes,
5 kx which can conflict with char dlopen (); below.
5 kx Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx <limits.h> exists even on freestanding compilers. */
5 kx
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx
5 kx #undef dlopen
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char dlopen ();
5 kx /* The GNU C library defines this for functions which it implements
5 kx to always fail with ENOSYS. Some functions are actually named
5 kx something starting with __ and the normal name is an alias. */
5 kx #if defined __stub_dlopen || defined __stub___dlopen
5 kx choke me
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return dlopen ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx ac_cv_func_dlopen=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_func_dlopen=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5 kx echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
5 kx if test $ac_cv_func_dlopen = yes; then
5 kx lt_cv_dlopen="dlopen"
5 kx else
5 kx { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5 kx echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5 kx if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-ldl $LIBS"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char dlopen ();
5 kx int
5 kx main ()
5 kx {
5 kx return dlopen ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx ac_cv_lib_dl_dlopen=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_lib_dl_dlopen=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5 kx echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5 kx if test $ac_cv_lib_dl_dlopen = yes; then
5 kx lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5 kx else
5 kx { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
5 kx echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
5 kx if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lsvld $LIBS"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char dlopen ();
5 kx int
5 kx main ()
5 kx {
5 kx return dlopen ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx ac_cv_lib_svld_dlopen=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_lib_svld_dlopen=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
5 kx echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
5 kx if test $ac_cv_lib_svld_dlopen = yes; then
5 kx lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5 kx else
5 kx { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
5 kx echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
5 kx if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-ldld $LIBS"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char dld_link ();
5 kx int
5 kx main ()
5 kx {
5 kx return dld_link ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx ac_cv_lib_dld_dld_link=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_lib_dld_dld_link=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
5 kx echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
5 kx if test $ac_cv_lib_dld_dld_link = yes; then
5 kx lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx if test "x$lt_cv_dlopen" != xno; then
5 kx enable_dlopen=yes
5 kx else
5 kx enable_dlopen=no
5 kx fi
5 kx
5 kx case $lt_cv_dlopen in
5 kx dlopen)
5 kx save_CPPFLAGS="$CPPFLAGS"
5 kx test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5 kx
5 kx save_LDFLAGS="$LDFLAGS"
5 kx wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5 kx
5 kx save_LIBS="$LIBS"
5 kx LIBS="$lt_cv_dlopen_libs $LIBS"
5 kx
5 kx { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
5 kx echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
5 kx if test "${lt_cv_dlopen_self+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx lt_cv_dlopen_self=cross
5 kx else
5 kx lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5 kx lt_status=$lt_dlunknown
5 kx cat > conftest.$ac_ext <<EOF
5 kx #line 9936 "configure"
5 kx #include "confdefs.h"
5 kx
5 kx #if HAVE_DLFCN_H
5 kx #include <dlfcn.h>
5 kx #endif
5 kx
5 kx #include <stdio.h>
5 kx
5 kx #ifdef RTLD_GLOBAL
5 kx # define LT_DLGLOBAL RTLD_GLOBAL
5 kx #else
5 kx # ifdef DL_GLOBAL
5 kx # define LT_DLGLOBAL DL_GLOBAL
5 kx # else
5 kx # define LT_DLGLOBAL 0
5 kx # endif
5 kx #endif
5 kx
5 kx /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5 kx find out it does not work in some platform. */
5 kx #ifndef LT_DLLAZY_OR_NOW
5 kx # ifdef RTLD_LAZY
5 kx # define LT_DLLAZY_OR_NOW RTLD_LAZY
5 kx # else
5 kx # ifdef DL_LAZY
5 kx # define LT_DLLAZY_OR_NOW DL_LAZY
5 kx # else
5 kx # ifdef RTLD_NOW
5 kx # define LT_DLLAZY_OR_NOW RTLD_NOW
5 kx # else
5 kx # ifdef DL_NOW
5 kx # define LT_DLLAZY_OR_NOW DL_NOW
5 kx # else
5 kx # define LT_DLLAZY_OR_NOW 0
5 kx # endif
5 kx # endif
5 kx # endif
5 kx # endif
5 kx #endif
5 kx
5 kx #ifdef __cplusplus
5 kx extern "C" void exit (int);
5 kx #endif
5 kx
5 kx void fnord() { int i=42;}
5 kx int main ()
5 kx {
5 kx void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5 kx int status = $lt_dlunknown;
5 kx
5 kx if (self)
5 kx {
5 kx if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5 kx else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5 kx /* dlclose (self); */
5 kx }
5 kx else
5 kx puts (dlerror ());
5 kx
5 kx exit (status);
5 kx }
5 kx EOF
5 kx if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5 kx (eval $ac_link) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5 kx (./conftest; exit; ) >&5 2>/dev/null
5 kx lt_status=$?
5 kx case x$lt_status in
5 kx x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5 kx x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5 kx x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
5 kx esac
5 kx else :
5 kx # compilation failed
5 kx lt_cv_dlopen_self=no
5 kx fi
5 kx fi
5 kx rm -fr conftest*
5 kx
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
5 kx echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
5 kx
5 kx if test "x$lt_cv_dlopen_self" = xyes; then
5 kx wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5 kx { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
5 kx echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
5 kx if test "${lt_cv_dlopen_self_static+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx lt_cv_dlopen_self_static=cross
5 kx else
5 kx lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5 kx lt_status=$lt_dlunknown
5 kx cat > conftest.$ac_ext <<EOF
5 kx #line 10036 "configure"
5 kx #include "confdefs.h"
5 kx
5 kx #if HAVE_DLFCN_H
5 kx #include <dlfcn.h>
5 kx #endif
5 kx
5 kx #include <stdio.h>
5 kx
5 kx #ifdef RTLD_GLOBAL
5 kx # define LT_DLGLOBAL RTLD_GLOBAL
5 kx #else
5 kx # ifdef DL_GLOBAL
5 kx # define LT_DLGLOBAL DL_GLOBAL
5 kx # else
5 kx # define LT_DLGLOBAL 0
5 kx # endif
5 kx #endif
5 kx
5 kx /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5 kx find out it does not work in some platform. */
5 kx #ifndef LT_DLLAZY_OR_NOW
5 kx # ifdef RTLD_LAZY
5 kx # define LT_DLLAZY_OR_NOW RTLD_LAZY
5 kx # else
5 kx # ifdef DL_LAZY
5 kx # define LT_DLLAZY_OR_NOW DL_LAZY
5 kx # else
5 kx # ifdef RTLD_NOW
5 kx # define LT_DLLAZY_OR_NOW RTLD_NOW
5 kx # else
5 kx # ifdef DL_NOW
5 kx # define LT_DLLAZY_OR_NOW DL_NOW
5 kx # else
5 kx # define LT_DLLAZY_OR_NOW 0
5 kx # endif
5 kx # endif
5 kx # endif
5 kx # endif
5 kx #endif
5 kx
5 kx #ifdef __cplusplus
5 kx extern "C" void exit (int);
5 kx #endif
5 kx
5 kx void fnord() { int i=42;}
5 kx int main ()
5 kx {
5 kx void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5 kx int status = $lt_dlunknown;
5 kx
5 kx if (self)
5 kx {
5 kx if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5 kx else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5 kx /* dlclose (self); */
5 kx }
5 kx else
5 kx puts (dlerror ());
5 kx
5 kx exit (status);
5 kx }
5 kx EOF
5 kx if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5 kx (eval $ac_link) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5 kx (./conftest; exit; ) >&5 2>/dev/null
5 kx lt_status=$?
5 kx case x$lt_status in
5 kx x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5 kx x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5 kx x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
5 kx esac
5 kx else :
5 kx # compilation failed
5 kx lt_cv_dlopen_self_static=no
5 kx fi
5 kx fi
5 kx rm -fr conftest*
5 kx
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
5 kx echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
5 kx fi
5 kx
5 kx CPPFLAGS="$save_CPPFLAGS"
5 kx LDFLAGS="$save_LDFLAGS"
5 kx LIBS="$save_LIBS"
5 kx ;;
5 kx esac
5 kx
5 kx case $lt_cv_dlopen_self in
5 kx yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5 kx *) enable_dlopen_self=unknown ;;
5 kx esac
5 kx
5 kx case $lt_cv_dlopen_self_static in
5 kx yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5 kx *) enable_dlopen_self_static=unknown ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx # Report which library types will actually be built
5 kx { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5 kx echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
5 kx { echo "$as_me:$LINENO: result: $can_build_shared" >&5
5 kx echo "${ECHO_T}$can_build_shared" >&6; }
5 kx
5 kx { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5 kx echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
5 kx test "$can_build_shared" = "no" && enable_shared=no
5 kx
5 kx # On AIX, shared libraries and static libraries use the same namespace, and
5 kx # are all built from PIC.
5 kx case $host_os in
5 kx aix3*)
5 kx test "$enable_shared" = yes && enable_static=no
5 kx if test -n "$RANLIB"; then
5 kx archive_cmds="$archive_cmds~\$RANLIB \$lib"
5 kx postinstall_cmds='$RANLIB $lib'
5 kx fi
5 kx ;;
5 kx
5 kx aix4* | aix5*)
5 kx if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5 kx test "$enable_shared" = yes && enable_static=no
5 kx fi
5 kx ;;
5 kx esac
5 kx { echo "$as_me:$LINENO: result: $enable_shared" >&5
5 kx echo "${ECHO_T}$enable_shared" >&6; }
5 kx
5 kx { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
5 kx echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
5 kx # Make sure either enable_shared or enable_static is yes.
5 kx test "$enable_shared" = yes || enable_static=yes
5 kx { echo "$as_me:$LINENO: result: $enable_static" >&5
5 kx echo "${ECHO_T}$enable_static" >&6; }
5 kx
5 kx # The else clause should only fire when bootstrapping the
5 kx # libtool distribution, otherwise you forgot to ship ltmain.sh
5 kx # with your package, and you will get complaints that there are
5 kx # no rules to generate ltmain.sh.
5 kx if test -f "$ltmain"; then
5 kx # See if we are running on zsh, and set the options which allow our commands through
5 kx # without removal of \ escapes.
5 kx if test -n "${ZSH_VERSION+set}" ; then
5 kx setopt NO_GLOB_SUBST
5 kx fi
5 kx # Now quote all the things that may contain metacharacters while being
5 kx # careful not to overquote the AC_SUBSTed values. We take copies of the
5 kx # variables and quote the copies for generation of the libtool script.
5 kx for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5 kx SED SHELL STRIP \
5 kx libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5 kx old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5 kx deplibs_check_method reload_flag reload_cmds need_locks \
5 kx lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5 kx lt_cv_sys_global_symbol_to_c_name_address \
5 kx sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5 kx old_postinstall_cmds old_postuninstall_cmds \
5 kx compiler \
5 kx CC \
5 kx LD \
5 kx lt_prog_compiler_wl \
5 kx lt_prog_compiler_pic \
5 kx lt_prog_compiler_static \
5 kx lt_prog_compiler_no_builtin_flag \
5 kx export_dynamic_flag_spec \
5 kx thread_safe_flag_spec \
5 kx whole_archive_flag_spec \
5 kx enable_shared_with_static_runtimes \
5 kx old_archive_cmds \
5 kx old_archive_from_new_cmds \
5 kx predep_objects \
5 kx postdep_objects \
5 kx predeps \
5 kx postdeps \
5 kx compiler_lib_search_path \
5 kx archive_cmds \
5 kx archive_expsym_cmds \
5 kx postinstall_cmds \
5 kx postuninstall_cmds \
5 kx old_archive_from_expsyms_cmds \
5 kx allow_undefined_flag \
5 kx no_undefined_flag \
5 kx export_symbols_cmds \
5 kx hardcode_libdir_flag_spec \
5 kx hardcode_libdir_flag_spec_ld \
5 kx hardcode_libdir_separator \
5 kx hardcode_automatic \
5 kx module_cmds \
5 kx module_expsym_cmds \
5 kx lt_cv_prog_compiler_c_o \
5 kx fix_srcfile_path \
5 kx exclude_expsyms \
5 kx include_expsyms; do
5 kx
5 kx case $var in
5 kx old_archive_cmds | \
5 kx old_archive_from_new_cmds | \
5 kx archive_cmds | \
5 kx archive_expsym_cmds | \
5 kx module_cmds | \
5 kx module_expsym_cmds | \
5 kx old_archive_from_expsyms_cmds | \
5 kx export_symbols_cmds | \
5 kx extract_expsyms_cmds | reload_cmds | finish_cmds | \
5 kx postinstall_cmds | postuninstall_cmds | \
5 kx old_postinstall_cmds | old_postuninstall_cmds | \
5 kx sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5 kx # Double-quote double-evaled strings.
5 kx eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5 kx ;;
5 kx *)
5 kx eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5 kx ;;
5 kx esac
5 kx done
5 kx
5 kx case $lt_echo in
5 kx *'\$0 --fallback-echo"')
5 kx lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
5 kx ;;
5 kx esac
5 kx
5 kx cfgfile="${ofile}T"
5 kx trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5 kx $rm -f "$cfgfile"
5 kx { echo "$as_me:$LINENO: creating $ofile" >&5
5 kx echo "$as_me: creating $ofile" >&6;}
5 kx
5 kx cat <<__EOF__ >> "$cfgfile"
5 kx #! $SHELL
5 kx
5 kx # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5 kx # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5 kx # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5 kx #
5 kx # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
5 kx # Free Software Foundation, Inc.
5 kx #
5 kx # This file is part of GNU Libtool:
5 kx # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5 kx #
5 kx # This program is free software; you can redistribute it and/or modify
5 kx # it under the terms of the GNU General Public License as published by
5 kx # the Free Software Foundation; either version 2 of the License, or
5 kx # (at your option) any later version.
5 kx #
5 kx # This program is distributed in the hope that it will be useful, but
5 kx # WITHOUT ANY WARRANTY; without even the implied warranty of
5 kx # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5 kx # General Public License for more details.
5 kx #
5 kx # You should have received a copy of the GNU General Public License
5 kx # along with this program; if not, write to the Free Software
5 kx # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5 kx #
5 kx # As a special exception to the GNU General Public License, if you
5 kx # distribute this file as part of a program that contains a
5 kx # configuration script generated by Autoconf, you may include it under
5 kx # the same distribution terms that you use for the rest of that program.
5 kx
5 kx # A sed program that does not truncate output.
5 kx SED=$lt_SED
5 kx
5 kx # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5 kx Xsed="$SED -e 1s/^X//"
5 kx
5 kx # The HP-UX ksh and POSIX shell print the target directory to stdout
5 kx # if CDPATH is set.
5 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5 kx
5 kx # The names of the tagged configurations supported by this script.
5 kx available_tags=
5 kx
5 kx # ### BEGIN LIBTOOL CONFIG
5 kx
5 kx # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5 kx
5 kx # Shell to use when invoking shell scripts.
5 kx SHELL=$lt_SHELL
5 kx
5 kx # Whether or not to build shared libraries.
5 kx build_libtool_libs=$enable_shared
5 kx
5 kx # Whether or not to build static libraries.
5 kx build_old_libs=$enable_static
5 kx
5 kx # Whether or not to add -lc for building shared libraries.
5 kx build_libtool_need_lc=$archive_cmds_need_lc
5 kx
5 kx # Whether or not to disallow shared libs when runtime libs are static
5 kx allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
5 kx
5 kx # Whether or not to optimize for fast installation.
5 kx fast_install=$enable_fast_install
5 kx
5 kx # The host system.
5 kx host_alias=$host_alias
5 kx host=$host
5 kx host_os=$host_os
5 kx
5 kx # The build system.
5 kx build_alias=$build_alias
5 kx build=$build
5 kx build_os=$build_os
5 kx
5 kx # An echo program that does not interpret backslashes.
5 kx echo=$lt_echo
5 kx
5 kx # The archiver.
5 kx AR=$lt_AR
5 kx AR_FLAGS=$lt_AR_FLAGS
5 kx
5 kx # A C compiler.
5 kx LTCC=$lt_LTCC
5 kx
5 kx # LTCC compiler flags.
5 kx LTCFLAGS=$lt_LTCFLAGS
5 kx
5 kx # A language-specific compiler.
5 kx CC=$lt_compiler
5 kx
5 kx # Is the compiler the GNU C compiler?
5 kx with_gcc=$GCC
5 kx
5 kx # An ERE matcher.
5 kx EGREP=$lt_EGREP
5 kx
5 kx # The linker used to build libraries.
5 kx LD=$lt_LD
5 kx
5 kx # Whether we need hard or soft links.
5 kx LN_S=$lt_LN_S
5 kx
5 kx # A BSD-compatible nm program.
5 kx NM=$lt_NM
5 kx
5 kx # A symbol stripping program
5 kx STRIP=$lt_STRIP
5 kx
5 kx # Used to examine libraries when file_magic_cmd begins "file"
5 kx MAGIC_CMD=$MAGIC_CMD
5 kx
5 kx # Used on cygwin: DLL creation program.
5 kx DLLTOOL="$DLLTOOL"
5 kx
5 kx # Used on cygwin: object dumper.
5 kx OBJDUMP="$OBJDUMP"
5 kx
5 kx # Used on cygwin: assembler.
5 kx AS="$AS"
5 kx
5 kx # The name of the directory that contains temporary libtool files.
5 kx objdir=$objdir
5 kx
5 kx # How to create reloadable object files.
5 kx reload_flag=$lt_reload_flag
5 kx reload_cmds=$lt_reload_cmds
5 kx
5 kx # How to pass a linker flag through the compiler.
5 kx wl=$lt_lt_prog_compiler_wl
5 kx
5 kx # Object file suffix (normally "o").
5 kx objext="$ac_objext"
5 kx
5 kx # Old archive suffix (normally "a").
5 kx libext="$libext"
5 kx
5 kx # Shared library suffix (normally ".so").
5 kx shrext_cmds='$shrext_cmds'
5 kx
5 kx # Executable file suffix (normally "").
5 kx exeext="$exeext"
5 kx
5 kx # Additional compiler flags for building library objects.
5 kx pic_flag=$lt_lt_prog_compiler_pic
5 kx pic_mode=$pic_mode
5 kx
5 kx # What is the maximum length of a command?
5 kx max_cmd_len=$lt_cv_sys_max_cmd_len
5 kx
5 kx # Does compiler simultaneously support -c and -o options?
5 kx compiler_c_o=$lt_lt_cv_prog_compiler_c_o
5 kx
5 kx # Must we lock files when doing compilation?
5 kx need_locks=$lt_need_locks
5 kx
5 kx # Do we need the lib prefix for modules?
5 kx need_lib_prefix=$need_lib_prefix
5 kx
5 kx # Do we need a version for libraries?
5 kx need_version=$need_version
5 kx
5 kx # Whether dlopen is supported.
5 kx dlopen_support=$enable_dlopen
5 kx
5 kx # Whether dlopen of programs is supported.
5 kx dlopen_self=$enable_dlopen_self
5 kx
5 kx # Whether dlopen of statically linked programs is supported.
5 kx dlopen_self_static=$enable_dlopen_self_static
5 kx
5 kx # Compiler flag to prevent dynamic linking.
5 kx link_static_flag=$lt_lt_prog_compiler_static
5 kx
5 kx # Compiler flag to turn off builtin functions.
5 kx no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
5 kx
5 kx # Compiler flag to allow reflexive dlopens.
5 kx export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5 kx
5 kx # Compiler flag to generate shared objects directly from archives.
5 kx whole_archive_flag_spec=$lt_whole_archive_flag_spec
5 kx
5 kx # Compiler flag to generate thread-safe objects.
5 kx thread_safe_flag_spec=$lt_thread_safe_flag_spec
5 kx
5 kx # Library versioning type.
5 kx version_type=$version_type
5 kx
5 kx # Format of library name prefix.
5 kx libname_spec=$lt_libname_spec
5 kx
5 kx # List of archive names. First name is the real one, the rest are links.
5 kx # The last name is the one that the linker finds with -lNAME.
5 kx library_names_spec=$lt_library_names_spec
5 kx
5 kx # The coded name of the library, if different from the real name.
5 kx soname_spec=$lt_soname_spec
5 kx
5 kx # Commands used to build and install an old-style archive.
5 kx RANLIB=$lt_RANLIB
5 kx old_archive_cmds=$lt_old_archive_cmds
5 kx old_postinstall_cmds=$lt_old_postinstall_cmds
5 kx old_postuninstall_cmds=$lt_old_postuninstall_cmds
5 kx
5 kx # Create an old-style archive from a shared archive.
5 kx old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5 kx
5 kx # Create a temporary old-style archive to link instead of a shared archive.
5 kx old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5 kx
5 kx # Commands used to build and install a shared archive.
5 kx archive_cmds=$lt_archive_cmds
5 kx archive_expsym_cmds=$lt_archive_expsym_cmds
5 kx postinstall_cmds=$lt_postinstall_cmds
5 kx postuninstall_cmds=$lt_postuninstall_cmds
5 kx
5 kx # Commands used to build a loadable module (assumed same as above if empty)
5 kx module_cmds=$lt_module_cmds
5 kx module_expsym_cmds=$lt_module_expsym_cmds
5 kx
5 kx # Commands to strip libraries.
5 kx old_striplib=$lt_old_striplib
5 kx striplib=$lt_striplib
5 kx
5 kx # Dependencies to place before the objects being linked to create a
5 kx # shared library.
5 kx predep_objects=$lt_predep_objects
5 kx
5 kx # Dependencies to place after the objects being linked to create a
5 kx # shared library.
5 kx postdep_objects=$lt_postdep_objects
5 kx
5 kx # Dependencies to place before the objects being linked to create a
5 kx # shared library.
5 kx predeps=$lt_predeps
5 kx
5 kx # Dependencies to place after the objects being linked to create a
5 kx # shared library.
5 kx postdeps=$lt_postdeps
5 kx
5 kx # The library search path used internally by the compiler when linking
5 kx # a shared library.
5 kx compiler_lib_search_path=$lt_compiler_lib_search_path
5 kx
5 kx # Method to check whether dependent libraries are shared objects.
5 kx deplibs_check_method=$lt_deplibs_check_method
5 kx
5 kx # Command to use when deplibs_check_method == file_magic.
5 kx file_magic_cmd=$lt_file_magic_cmd
5 kx
5 kx # Flag that allows shared libraries with undefined symbols to be built.
5 kx allow_undefined_flag=$lt_allow_undefined_flag
5 kx
5 kx # Flag that forces no undefined symbols.
5 kx no_undefined_flag=$lt_no_undefined_flag
5 kx
5 kx # Commands used to finish a libtool library installation in a directory.
5 kx finish_cmds=$lt_finish_cmds
5 kx
5 kx # Same as above, but a single script fragment to be evaled but not shown.
5 kx finish_eval=$lt_finish_eval
5 kx
5 kx # Take the output of nm and produce a listing of raw symbols and C names.
5 kx global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5 kx
5 kx # Transform the output of nm in a proper C declaration
5 kx global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5 kx
5 kx # Transform the output of nm in a C name address pair
5 kx global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5 kx
5 kx # This is the shared library runtime path variable.
5 kx runpath_var=$runpath_var
5 kx
5 kx # This is the shared library path variable.
5 kx shlibpath_var=$shlibpath_var
5 kx
5 kx # Is shlibpath searched before the hard-coded library search path?
5 kx shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5 kx
5 kx # How to hardcode a shared library path into an executable.
5 kx hardcode_action=$hardcode_action
5 kx
5 kx # Whether we should hardcode library paths into libraries.
5 kx hardcode_into_libs=$hardcode_into_libs
5 kx
5 kx # Flag to hardcode \$libdir into a binary during linking.
5 kx # This must work even if \$libdir does not exist.
5 kx hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5 kx
5 kx # If ld is used when linking, flag to hardcode \$libdir into
5 kx # a binary during linking. This must work even if \$libdir does
5 kx # not exist.
5 kx hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
5 kx
5 kx # Whether we need a single -rpath flag with a separated argument.
5 kx hardcode_libdir_separator=$lt_hardcode_libdir_separator
5 kx
5 kx # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5 kx # resulting binary.
5 kx hardcode_direct=$hardcode_direct
5 kx
5 kx # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5 kx # resulting binary.
5 kx hardcode_minus_L=$hardcode_minus_L
5 kx
5 kx # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5 kx # the resulting binary.
5 kx hardcode_shlibpath_var=$hardcode_shlibpath_var
5 kx
5 kx # Set to yes if building a shared library automatically hardcodes DIR into the library
5 kx # and all subsequent libraries and executables linked against it.
5 kx hardcode_automatic=$hardcode_automatic
5 kx
5 kx # Variables whose values should be saved in libtool wrapper scripts and
5 kx # restored at relink time.
5 kx variables_saved_for_relink="$variables_saved_for_relink"
5 kx
5 kx # Whether libtool must link a program against all its dependency libraries.
5 kx link_all_deplibs=$link_all_deplibs
5 kx
5 kx # Compile-time system search path for libraries
5 kx sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5 kx
5 kx # Run-time system search path for libraries
5 kx sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5 kx
5 kx # Fix the shell variable \$srcfile for the compiler.
5 kx fix_srcfile_path=$lt_fix_srcfile_path
5 kx
5 kx # Set to yes if exported symbols are required.
5 kx always_export_symbols=$always_export_symbols
5 kx
5 kx # The commands to list exported symbols.
5 kx export_symbols_cmds=$lt_export_symbols_cmds
5 kx
5 kx # The commands to extract the exported symbol list from a shared archive.
5 kx extract_expsyms_cmds=$lt_extract_expsyms_cmds
5 kx
5 kx # Symbols that should not be listed in the preloaded symbols.
5 kx exclude_expsyms=$lt_exclude_expsyms
5 kx
5 kx # Symbols that must always be exported.
5 kx include_expsyms=$lt_include_expsyms
5 kx
5 kx # ### END LIBTOOL CONFIG
5 kx
5 kx __EOF__
5 kx
5 kx
5 kx case $host_os in
5 kx aix3*)
5 kx cat <<\EOF >> "$cfgfile"
5 kx
5 kx # AIX sometimes has problems with the GCC collect2 program. For some
5 kx # reason, if we set the COLLECT_NAMES environment variable, the problems
5 kx # vanish in a puff of smoke.
5 kx if test "X${COLLECT_NAMES+set}" != Xset; then
5 kx COLLECT_NAMES=
5 kx export COLLECT_NAMES
5 kx fi
5 kx EOF
5 kx ;;
5 kx esac
5 kx
5 kx # We use sed instead of cat because bash on DJGPP gets confused if
5 kx # if finds mixed CR/LF and LF-only lines. Since sed operates in
5 kx # text mode, it properly converts lines to CR/LF. This bash problem
5 kx # is reportedly fixed, but why not run on old versions too?
5 kx sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5 kx
5 kx mv -f "$cfgfile" "$ofile" || \
5 kx (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5 kx chmod +x "$ofile"
5 kx
5 kx else
5 kx # If there is no Makefile yet, we rely on a make rule to execute
5 kx # `config.status --recheck' to rerun these tests and create the
5 kx # libtool script then.
5 kx ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5 kx if test -f "$ltmain_in"; then
5 kx test -f Makefile && make "$ltmain"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx CC="$lt_save_CC"
5 kx
5 kx
5 kx # Check whether --with-tags was given.
5 kx if test "${with_tags+set}" = set; then
5 kx withval=$with_tags; tagnames="$withval"
5 kx fi
5 kx
5 kx
5 kx if test -f "$ltmain" && test -n "$tagnames"; then
5 kx if test ! -f "${ofile}"; then
5 kx { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
5 kx echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
5 kx fi
5 kx
5 kx if test -z "$LTCC"; then
5 kx eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
5 kx if test -z "$LTCC"; then
5 kx { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
5 kx echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
5 kx else
5 kx { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
5 kx echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
5 kx fi
5 kx fi
5 kx if test -z "$LTCFLAGS"; then
5 kx eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
5 kx fi
5 kx
5 kx # Extract list of available tagged configurations in $ofile.
5 kx # Note that this assumes the entire list is on one line.
5 kx available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
5 kx
5 kx lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5 kx for tagname in $tagnames; do
5 kx IFS="$lt_save_ifs"
5 kx # Check whether tagname contains only valid characters
5 kx case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
5 kx "") ;;
5 kx *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
5 kx echo "$as_me: error: invalid tag name: $tagname" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx ;;
5 kx esac
5 kx
5 kx if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
5 kx then
5 kx { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
5 kx echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx # Update the list of available tags.
5 kx if test -n "$tagname"; then
5 kx echo appending configuration tag \"$tagname\" to $ofile
5 kx
5 kx case $tagname in
5 kx CXX)
5 kx if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5 kx ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5 kx (test "X$CXX" != "Xg++"))) ; then
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx
5 kx
5 kx
5 kx
5 kx archive_cmds_need_lc_CXX=no
5 kx allow_undefined_flag_CXX=
5 kx always_export_symbols_CXX=no
5 kx archive_expsym_cmds_CXX=
5 kx export_dynamic_flag_spec_CXX=
5 kx hardcode_direct_CXX=no
5 kx hardcode_libdir_flag_spec_CXX=
5 kx hardcode_libdir_flag_spec_ld_CXX=
5 kx hardcode_libdir_separator_CXX=
5 kx hardcode_minus_L_CXX=no
5 kx hardcode_shlibpath_var_CXX=unsupported
5 kx hardcode_automatic_CXX=no
5 kx module_cmds_CXX=
5 kx module_expsym_cmds_CXX=
5 kx link_all_deplibs_CXX=unknown
5 kx old_archive_cmds_CXX=$old_archive_cmds
5 kx no_undefined_flag_CXX=
5 kx whole_archive_flag_spec_CXX=
5 kx enable_shared_with_static_runtimes_CXX=no
5 kx
5 kx # Dependencies to place before and after the object being linked:
5 kx predep_objects_CXX=
5 kx postdep_objects_CXX=
5 kx predeps_CXX=
5 kx postdeps_CXX=
5 kx compiler_lib_search_path_CXX=
5 kx
5 kx # Source file extension for C++ test sources.
5 kx ac_ext=cpp
5 kx
5 kx # Object file extension for compiled C++ test sources.
5 kx objext=o
5 kx objext_CXX=$objext
5 kx
5 kx # Code to be used in simple compile tests
5 kx lt_simple_compile_test_code="int some_variable = 0;"
5 kx
5 kx # Code to be used in simple link tests
5 kx lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
5 kx
5 kx # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5 kx
5 kx # If no C compiler was specified, use CC.
5 kx LTCC=${LTCC-"$CC"}
5 kx
5 kx # If no C compiler flags were specified, use CFLAGS.
5 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5 kx
5 kx # Allow CC to be a program name with arguments.
5 kx compiler=$CC
5 kx
5 kx
5 kx # save warnings/boilerplate of simple test code
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5 kx eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5 kx _lt_compiler_boilerplate=`cat conftest.err`
5 kx $rm conftest*
5 kx
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_link_test_code" >conftest.$ac_ext
5 kx eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5 kx _lt_linker_boilerplate=`cat conftest.err`
5 kx $rm conftest*
5 kx
5 kx
5 kx # Allow CC to be a program name with arguments.
5 kx lt_save_CC=$CC
5 kx lt_save_LD=$LD
5 kx lt_save_GCC=$GCC
5 kx GCC=$GXX
5 kx lt_save_with_gnu_ld=$with_gnu_ld
5 kx lt_save_path_LD=$lt_cv_path_LD
5 kx if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5 kx lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5 kx else
5 kx $as_unset lt_cv_prog_gnu_ld
5 kx fi
5 kx if test -n "${lt_cv_path_LDCXX+set}"; then
5 kx lt_cv_path_LD=$lt_cv_path_LDCXX
5 kx else
5 kx $as_unset lt_cv_path_LD
5 kx fi
5 kx test -z "${LDCXX+set}" || LD=$LDCXX
5 kx CC=${CXX-"c++"}
5 kx compiler=$CC
5 kx compiler_CXX=$CC
5 kx for cc_temp in $compiler""; do
5 kx case $cc_temp in
5 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5 kx \-*) ;;
5 kx *) break;;
5 kx esac
5 kx done
5 kx cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5 kx
5 kx
5 kx # We don't want -fno-exception wen compiling C++ code, so set the
5 kx # no_builtin_flag separately
5 kx if test "$GXX" = yes; then
5 kx lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
5 kx else
5 kx lt_prog_compiler_no_builtin_flag_CXX=
5 kx fi
5 kx
5 kx if test "$GXX" = yes; then
5 kx # Set up default GNU C++ configuration
5 kx
5 kx
5 kx # Check whether --with-gnu-ld was given.
5 kx if test "${with_gnu_ld+set}" = set; then
5 kx withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5 kx else
5 kx with_gnu_ld=no
5 kx fi
5 kx
5 kx ac_prog=ld
5 kx if test "$GCC" = yes; then
5 kx # Check if gcc -print-prog-name=ld gives a path.
5 kx { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5 kx echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5 kx case $host in
5 kx *-*-mingw*)
5 kx # gcc leaves a trailing carriage return which upsets mingw
5 kx ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5 kx *)
5 kx ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5 kx esac
5 kx case $ac_prog in
5 kx # Accept absolute paths.
5 kx [\\/]* | ?:[\\/]*)
5 kx re_direlt='/[^/][^/]*/\.\./'
5 kx # Canonicalize the pathname of ld
5 kx ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5 kx while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5 kx ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5 kx done
5 kx test -z "$LD" && LD="$ac_prog"
5 kx ;;
5 kx "")
5 kx # If it fails, then pretend we aren't using GCC.
5 kx ac_prog=ld
5 kx ;;
5 kx *)
5 kx # If it is relative, then search for the first ld in PATH.
5 kx with_gnu_ld=unknown
5 kx ;;
5 kx esac
5 kx elif test "$with_gnu_ld" = yes; then
5 kx { echo "$as_me:$LINENO: checking for GNU ld" >&5
5 kx echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5 kx echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5 kx fi
5 kx if test "${lt_cv_path_LD+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -z "$LD"; then
5 kx lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5 kx for ac_dir in $PATH; do
5 kx IFS="$lt_save_ifs"
5 kx test -z "$ac_dir" && ac_dir=.
5 kx if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5 kx lt_cv_path_LD="$ac_dir/$ac_prog"
5 kx # Check to see if the program is GNU ld. I'd rather use --version,
5 kx # but apparently some variants of GNU ld only accept -v.
5 kx # Break only if it was the GNU/non-GNU ld that we prefer.
5 kx case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5 kx *GNU* | *'with BFD'*)
5 kx test "$with_gnu_ld" != no && break
5 kx ;;
5 kx *)
5 kx test "$with_gnu_ld" != yes && break
5 kx ;;
5 kx esac
5 kx fi
5 kx done
5 kx IFS="$lt_save_ifs"
5 kx else
5 kx lt_cv_path_LD="$LD" # Let the user override the test with a path.
5 kx fi
5 kx fi
5 kx
5 kx LD="$lt_cv_path_LD"
5 kx if test -n "$LD"; then
5 kx { echo "$as_me:$LINENO: result: $LD" >&5
5 kx echo "${ECHO_T}$LD" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5 kx echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5 kx echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5 kx if test "${lt_cv_prog_gnu_ld+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx # I'd rather use --version here, but apparently some GNU lds only accept -v.
5 kx case `$LD -v 2>&1 </dev/null` in
5 kx *GNU* | *'with BFD'*)
5 kx lt_cv_prog_gnu_ld=yes
5 kx ;;
5 kx *)
5 kx lt_cv_prog_gnu_ld=no
5 kx ;;
5 kx esac
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5 kx echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5 kx with_gnu_ld=$lt_cv_prog_gnu_ld
5 kx
5 kx
5 kx
5 kx # Check if GNU C++ uses GNU ld as the underlying linker, since the
5 kx # archiving commands below assume that GNU ld is being used.
5 kx if test "$with_gnu_ld" = yes; then
5 kx archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 kx
5 kx hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
5 kx export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
5 kx
5 kx # If archive_cmds runs LD, not CC, wlarc should be empty
5 kx # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5 kx # investigate it a little bit more. (MM)
5 kx wlarc='${wl}'
5 kx
5 kx # ancient GNU ld didn't support --whole-archive et. al.
5 kx if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
5 kx grep 'no-whole-archive' > /dev/null; then
5 kx whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5 kx else
5 kx whole_archive_flag_spec_CXX=
5 kx fi
5 kx else
5 kx with_gnu_ld=no
5 kx wlarc=
5 kx
5 kx # A generic and very simple default shared library creation
5 kx # command for GNU C++ for the case where it uses the native
5 kx # linker, instead of GNU ld. If possible, this setting should
5 kx # overridden to take advantage of the native linker features on
5 kx # the platform it is being used on.
5 kx archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5 kx fi
5 kx
5 kx # Commands to make compiler produce verbose output that lists
5 kx # what "hidden" libraries, object files and flags are used when
5 kx # linking a shared library.
5 kx output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5 kx
5 kx else
5 kx GXX=no
5 kx with_gnu_ld=no
5 kx wlarc=
5 kx fi
5 kx
5 kx # PORTME: fill in a description of your system's C++ link characteristics
5 kx { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5 kx echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
5 kx ld_shlibs_CXX=yes
5 kx case $host_os in
5 kx aix3*)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx aix4* | aix5*)
5 kx if test "$host_cpu" = ia64; then
5 kx # On IA64, the linker does run time linking by default, so we don't
5 kx # have to do anything special.
5 kx aix_use_runtimelinking=no
5 kx exp_sym_flag='-Bexport'
5 kx no_entry_flag=""
5 kx else
5 kx aix_use_runtimelinking=no
5 kx
5 kx # Test if we are trying to use run time linking or normal
5 kx # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5 kx # need to do runtime linking.
5 kx case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5 kx for ld_flag in $LDFLAGS; do
5 kx case $ld_flag in
5 kx *-brtl*)
5 kx aix_use_runtimelinking=yes
5 kx break
5 kx ;;
5 kx esac
5 kx done
5 kx ;;
5 kx esac
5 kx
5 kx exp_sym_flag='-bexport'
5 kx no_entry_flag='-bnoentry'
5 kx fi
5 kx
5 kx # When large executables or shared objects are built, AIX ld can
5 kx # have problems creating the table of contents. If linking a library
5 kx # or program results in "error TOC overflow" add -mminimal-toc to
5 kx # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5 kx # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5 kx
5 kx archive_cmds_CXX=''
5 kx hardcode_direct_CXX=yes
5 kx hardcode_libdir_separator_CXX=':'
5 kx link_all_deplibs_CXX=yes
5 kx
5 kx if test "$GXX" = yes; then
5 kx case $host_os in aix4.[012]|aix4.[012].*)
5 kx # We only want to do this on AIX 4.2 and lower, the check
5 kx # below for broken collect2 doesn't work under 4.3+
5 kx collect2name=`${CC} -print-prog-name=collect2`
5 kx if test -f "$collect2name" && \
5 kx strings "$collect2name" | grep resolve_lib_name >/dev/null
5 kx then
5 kx # We have reworked collect2
5 kx :
5 kx else
5 kx # We have old collect2
5 kx hardcode_direct_CXX=unsupported
5 kx # It fails to find uninstalled libraries when the uninstalled
5 kx # path is not listed in the libpath. Setting hardcode_minus_L
5 kx # to unsupported forces relinking
5 kx hardcode_minus_L_CXX=yes
5 kx hardcode_libdir_flag_spec_CXX='-L$libdir'
5 kx hardcode_libdir_separator_CXX=
5 kx fi
5 kx ;;
5 kx esac
5 kx shared_flag='-shared'
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx shared_flag="$shared_flag "'${wl}-G'
5 kx fi
5 kx else
5 kx # not using gcc
5 kx if test "$host_cpu" = ia64; then
5 kx # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5 kx # chokes on -Wl,-G. The following line is correct:
5 kx shared_flag='-G'
5 kx else
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx shared_flag='${wl}-G'
5 kx else
5 kx shared_flag='${wl}-bM:SRE'
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx # It seems that -bexpall does not export symbols beginning with
5 kx # underscore (_), so it is better to generate a list of symbols to export.
5 kx always_export_symbols_CXX=yes
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx # Warning - without using the other runtime loading flags (-brtl),
5 kx # -berok will link without error, but may produce a broken library.
5 kx allow_undefined_flag_CXX='-berok'
5 kx # Determine the default libpath from the value encoded in an empty executable.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_cxx_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx
5 kx lt_aix_libpath_sed='
5 kx /Import File Strings/,/^$/ {
5 kx /^0/ {
5 kx s/^0 *\(.*\)$/\1/
5 kx p
5 kx }
5 kx }'
5 kx aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx # Check for a 64-bit object if we didn't find anything.
5 kx if test -z "$aix_libpath"; then
5 kx aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx fi
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5 kx
5 kx hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
5 kx
5 kx archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5 kx else
5 kx if test "$host_cpu" = ia64; then
5 kx hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
5 kx allow_undefined_flag_CXX="-z nodefs"
5 kx archive_expsym_cmds_CXX="\$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"
5 kx else
5 kx # Determine the default libpath from the value encoded in an empty executable.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_cxx_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx
5 kx lt_aix_libpath_sed='
5 kx /Import File Strings/,/^$/ {
5 kx /^0/ {
5 kx s/^0 *\(.*\)$/\1/
5 kx p
5 kx }
5 kx }'
5 kx aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx # Check for a 64-bit object if we didn't find anything.
5 kx if test -z "$aix_libpath"; then
5 kx aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx fi
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5 kx
5 kx hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
5 kx # Warning - without using the other run time loading flags,
5 kx # -berok will link without error, but may produce a broken library.
5 kx no_undefined_flag_CXX=' ${wl}-bernotok'
5 kx allow_undefined_flag_CXX=' ${wl}-berok'
5 kx # Exported symbols can be pulled into shared objects from archives
5 kx whole_archive_flag_spec_CXX='$convenience'
5 kx archive_cmds_need_lc_CXX=yes
5 kx # This is similar to how AIX traditionally builds its shared libraries.
5 kx archive_expsym_cmds_CXX="\$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'
5 kx fi
5 kx fi
5 kx ;;
5 kx
5 kx beos*)
5 kx if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx allow_undefined_flag_CXX=unsupported
5 kx # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5 kx # support --undefined. This deserves some investigation. FIXME
5 kx archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx else
5 kx ld_shlibs_CXX=no
5 kx fi
5 kx ;;
5 kx
5 kx chorus*)
5 kx case $cc_basename in
5 kx *)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32*)
5 kx # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
5 kx # as there is no search path for DLLs.
5 kx hardcode_libdir_flag_spec_CXX='-L$libdir'
5 kx allow_undefined_flag_CXX=unsupported
5 kx always_export_symbols_CXX=no
5 kx enable_shared_with_static_runtimes_CXX=yes
5 kx
5 kx if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5 kx archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5 kx # If the export-symbols file already is a .def file (1st line
5 kx # is EXPORTS), use it as is; otherwise, prepend...
5 kx archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5 kx cp $export_symbols $output_objdir/$soname.def;
5 kx else
5 kx echo EXPORTS > $output_objdir/$soname.def;
5 kx cat $export_symbols >> $output_objdir/$soname.def;
5 kx fi~
5 kx $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5 kx else
5 kx ld_shlibs_CXX=no
5 kx fi
5 kx ;;
5 kx darwin* | rhapsody*)
5 kx case $host_os in
5 kx rhapsody* | darwin1.[012])
5 kx allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
5 kx ;;
5 kx *) # Darwin 1.3 on
5 kx if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5 kx allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5 kx else
5 kx case ${MACOSX_DEPLOYMENT_TARGET} in
5 kx 10.[012])
5 kx allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5 kx ;;
5 kx 10.*)
5 kx allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx esac
5 kx archive_cmds_need_lc_CXX=no
5 kx hardcode_direct_CXX=no
5 kx hardcode_automatic_CXX=yes
5 kx hardcode_shlibpath_var_CXX=unsupported
5 kx whole_archive_flag_spec_CXX=''
5 kx link_all_deplibs_CXX=yes
5 kx
5 kx if test "$GXX" = yes ; then
5 kx lt_int_apple_cc_single_mod=no
5 kx output_verbose_link_cmd='echo'
5 kx if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
5 kx lt_int_apple_cc_single_mod=yes
5 kx fi
5 kx if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5 kx archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5 kx else
5 kx archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5 kx fi
5 kx module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5 kx # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5 kx if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5 kx archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx else
5 kx archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx fi
5 kx module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx else
5 kx case $cc_basename in
5 kx xlc*)
5 kx output_verbose_link_cmd='echo'
5 kx archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5 kx module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5 kx # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5 kx archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx ;;
5 kx *)
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx
5 kx dgux*)
5 kx case $cc_basename in
5 kx ec++*)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx ghcx*)
5 kx # Green Hills C++ Compiler
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx *)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx esac
5 kx ;;
5 kx freebsd[12]*)
5 kx # C++ shared libraries reported to be fairly broken before switch to ELF
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx freebsd-elf*)
5 kx archive_cmds_need_lc_CXX=no
5 kx ;;
5 kx freebsd* | dragonfly*)
5 kx # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5 kx # conventions
5 kx ld_shlibs_CXX=yes
5 kx ;;
5 kx gnu*)
5 kx ;;
5 kx hpux9*)
5 kx hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
5 kx hardcode_libdir_separator_CXX=:
5 kx export_dynamic_flag_spec_CXX='${wl}-E'
5 kx hardcode_direct_CXX=yes
5 kx hardcode_minus_L_CXX=yes # Not in the search PATH,
5 kx # but as the default
5 kx # location of the library.
5 kx
5 kx case $cc_basename in
5 kx CC*)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx aCC*)
5 kx archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5 kx # Commands to make compiler produce verbose output that lists
5 kx # what "hidden" libraries, object files and flags are used when
5 kx # linking a shared library.
5 kx #
5 kx # There doesn't appear to be a way to prevent this compiler from
5 kx # explicitly linking system object files so we need to strip them
5 kx # from the output so that they don't get included in the library
5 kx # dependencies.
5 kx output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5 kx ;;
5 kx *)
5 kx if test "$GXX" = yes; then
5 kx archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5 kx else
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx fi
5 kx ;;
5 kx esac
5 kx ;;
5 kx hpux10*|hpux11*)
5 kx if test $with_gnu_ld = no; then
5 kx hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
5 kx hardcode_libdir_separator_CXX=:
5 kx
5 kx case $host_cpu in
5 kx hppa*64*|ia64*) ;;
5 kx *)
5 kx export_dynamic_flag_spec_CXX='${wl}-E'
5 kx ;;
5 kx esac
5 kx fi
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx hardcode_direct_CXX=no
5 kx hardcode_shlibpath_var_CXX=no
5 kx ;;
5 kx *)
5 kx hardcode_direct_CXX=yes
5 kx hardcode_minus_L_CXX=yes # Not in the search PATH,
5 kx # but as the default
5 kx # location of the library.
5 kx ;;
5 kx esac
5 kx
5 kx case $cc_basename in
5 kx CC*)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx aCC*)
5 kx case $host_cpu in
5 kx hppa*64*)
5 kx archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5 kx ;;
5 kx ia64*)
5 kx archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5 kx ;;
5 kx *)
5 kx archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5 kx ;;
5 kx esac
5 kx # Commands to make compiler produce verbose output that lists
5 kx # what "hidden" libraries, object files and flags are used when
5 kx # linking a shared library.
5 kx #
5 kx # There doesn't appear to be a way to prevent this compiler from
5 kx # explicitly linking system object files so we need to strip them
5 kx # from the output so that they don't get included in the library
5 kx # dependencies.
5 kx output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5 kx ;;
5 kx *)
5 kx if test "$GXX" = yes; then
5 kx if test $with_gnu_ld = no; then
5 kx case $host_cpu in
5 kx hppa*64*)
5 kx archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5 kx ;;
5 kx ia64*)
5 kx archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5 kx ;;
5 kx *)
5 kx archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5 kx ;;
5 kx esac
5 kx fi
5 kx else
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx fi
5 kx ;;
5 kx esac
5 kx ;;
5 kx interix[3-9]*)
5 kx hardcode_direct_CXX=no
5 kx hardcode_shlibpath_var_CXX=no
5 kx hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
5 kx export_dynamic_flag_spec_CXX='${wl}-E'
5 kx # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5 kx # Instead, shared libraries are loaded at an image base (0x10000000 by
5 kx # default) and relocated if they conflict, which is a slow very memory
5 kx # consuming and fragmenting process. To avoid this, we pick a random,
5 kx # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5 kx # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5 kx archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5 kx archive_expsym_cmds_CXX='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'
5 kx ;;
5 kx irix5* | irix6*)
5 kx case $cc_basename in
5 kx CC*)
5 kx # SGI C++
5 kx archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5 kx
5 kx # Archives containing C++ object files must be created using
5 kx # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5 kx # necessary to make sure instantiated templates are included
5 kx # in the archive.
5 kx old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
5 kx ;;
5 kx *)
5 kx if test "$GXX" = yes; then
5 kx if test "$with_gnu_ld" = no; then
5 kx archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5 kx else
5 kx archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
5 kx fi
5 kx fi
5 kx link_all_deplibs_CXX=yes
5 kx ;;
5 kx esac
5 kx hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
5 kx hardcode_libdir_separator_CXX=:
5 kx ;;
5 kx linux* | k*bsd*-gnu)
5 kx case $cc_basename in
5 kx KCC*)
5 kx # Kuck and Associates, Inc. (KAI) C++ Compiler
5 kx
5 kx # KCC will only create a shared library if the output file
5 kx # ends with ".so" (or ".sl" for HP-UX), so rename the library
5 kx # to its proper name (with version) after linking.
5 kx archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5 kx archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5 kx # Commands to make compiler produce verbose output that lists
5 kx # what "hidden" libraries, object files and flags are used when
5 kx # linking a shared library.
5 kx #
5 kx # There doesn't appear to be a way to prevent this compiler from
5 kx # explicitly linking system object files so we need to strip them
5 kx # from the output so that they don't get included in the library
5 kx # dependencies.
5 kx output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5 kx
5 kx hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
5 kx export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
5 kx
5 kx # Archives containing C++ object files must be created using
5 kx # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5 kx old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
5 kx ;;
5 kx icpc*)
5 kx # Intel C++
5 kx with_gnu_ld=yes
5 kx # version 8.0 and above of icpc choke on multiply defined symbols
5 kx # if we add $predep_objects and $postdep_objects, however 7.1 and
5 kx # earlier do not add the objects themselves.
5 kx case `$CC -V 2>&1` in
5 kx *"Version 7."*)
5 kx archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 kx ;;
5 kx *) # Version 8.0 or newer
5 kx tmp_idyn=
5 kx case $host_cpu in
5 kx ia64*) tmp_idyn=' -i_dynamic';;
5 kx esac
5 kx archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 kx ;;
5 kx esac
5 kx archive_cmds_need_lc_CXX=no
5 kx hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
5 kx export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
5 kx whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5 kx ;;
5 kx pgCC*)
5 kx # Portland Group C++ compiler
5 kx archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5 kx archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5 kx
5 kx hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
5 kx export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
5 kx whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5 kx ;;
5 kx cxx*)
5 kx # Compaq C++
5 kx archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5 kx
5 kx runpath_var=LD_RUN_PATH
5 kx hardcode_libdir_flag_spec_CXX='-rpath $libdir'
5 kx hardcode_libdir_separator_CXX=:
5 kx
5 kx # Commands to make compiler produce verbose output that lists
5 kx # what "hidden" libraries, object files and flags are used when
5 kx # linking a shared library.
5 kx #
5 kx # There doesn't appear to be a way to prevent this compiler from
5 kx # explicitly linking system object files so we need to strip them
5 kx # from the output so that they don't get included in the library
5 kx # dependencies.
5 kx output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5 kx ;;
5 kx *)
5 kx case `$CC -V 2>&1 | sed 5q` in
5 kx *Sun\ C*)
5 kx # Sun C++ 5.9
5 kx no_undefined_flag_CXX=' -zdefs'
5 kx archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5 kx archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
5 kx hardcode_libdir_flag_spec_CXX='-R$libdir'
5 kx whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5 kx
5 kx # Not sure whether something based on
5 kx # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5 kx # would be better.
5 kx output_verbose_link_cmd='echo'
5 kx
5 kx # Archives containing C++ object files must be created using
5 kx # "CC -xar", where "CC" is the Sun C++ compiler. This is
5 kx # necessary to make sure instantiated templates are included
5 kx # in the archive.
5 kx old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx ;;
5 kx lynxos*)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx m88k*)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx mvs*)
5 kx case $cc_basename in
5 kx cxx*)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx *)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx esac
5 kx ;;
5 kx netbsd*)
5 kx if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5 kx archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5 kx wlarc=
5 kx hardcode_libdir_flag_spec_CXX='-R$libdir'
5 kx hardcode_direct_CXX=yes
5 kx hardcode_shlibpath_var_CXX=no
5 kx fi
5 kx # Workaround some broken pre-1.5 toolchains
5 kx output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5 kx ;;
5 kx openbsd2*)
5 kx # C++ shared libraries are fairly broken
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx openbsd*)
5 kx if test -f /usr/libexec/ld.so; then
5 kx hardcode_direct_CXX=yes
5 kx hardcode_shlibpath_var_CXX=no
5 kx archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5 kx hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
5 kx if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5 kx archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
5 kx export_dynamic_flag_spec_CXX='${wl}-E'
5 kx whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5 kx fi
5 kx output_verbose_link_cmd='echo'
5 kx else
5 kx ld_shlibs_CXX=no
5 kx fi
5 kx ;;
5 kx osf3*)
5 kx case $cc_basename in
5 kx KCC*)
5 kx # Kuck and Associates, Inc. (KAI) C++ Compiler
5 kx
5 kx # KCC will only create a shared library if the output file
5 kx # ends with ".so" (or ".sl" for HP-UX), so rename the library
5 kx # to its proper name (with version) after linking.
5 kx archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5 kx
5 kx hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
5 kx hardcode_libdir_separator_CXX=:
5 kx
5 kx # Archives containing C++ object files must be created using
5 kx # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5 kx old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
5 kx
5 kx ;;
5 kx RCC*)
5 kx # Rational C++ 2.4.1
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx cxx*)
5 kx allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
5 kx archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5 kx
5 kx hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
5 kx hardcode_libdir_separator_CXX=:
5 kx
5 kx # Commands to make compiler produce verbose output that lists
5 kx # what "hidden" libraries, object files and flags are used when
5 kx # linking a shared library.
5 kx #
5 kx # There doesn't appear to be a way to prevent this compiler from
5 kx # explicitly linking system object files so we need to strip them
5 kx # from the output so that they don't get included in the library
5 kx # dependencies.
5 kx output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5 kx ;;
5 kx *)
5 kx if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5 kx allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
5 kx archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5 kx
5 kx hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
5 kx hardcode_libdir_separator_CXX=:
5 kx
5 kx # Commands to make compiler produce verbose output that lists
5 kx # what "hidden" libraries, object files and flags are used when
5 kx # linking a shared library.
5 kx output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5 kx
5 kx else
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx fi
5 kx ;;
5 kx esac
5 kx ;;
5 kx osf4* | osf5*)
5 kx case $cc_basename in
5 kx KCC*)
5 kx # Kuck and Associates, Inc. (KAI) C++ Compiler
5 kx
5 kx # KCC will only create a shared library if the output file
5 kx # ends with ".so" (or ".sl" for HP-UX), so rename the library
5 kx # to its proper name (with version) after linking.
5 kx archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5 kx
5 kx hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
5 kx hardcode_libdir_separator_CXX=:
5 kx
5 kx # Archives containing C++ object files must be created using
5 kx # the KAI C++ compiler.
5 kx old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
5 kx ;;
5 kx RCC*)
5 kx # Rational C++ 2.4.1
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx cxx*)
5 kx allow_undefined_flag_CXX=' -expect_unresolved \*'
5 kx archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5 kx archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5 kx echo "-hidden">> $lib.exp~
5 kx $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
5 kx $rm $lib.exp'
5 kx
5 kx hardcode_libdir_flag_spec_CXX='-rpath $libdir'
5 kx hardcode_libdir_separator_CXX=:
5 kx
5 kx # Commands to make compiler produce verbose output that lists
5 kx # what "hidden" libraries, object files and flags are used when
5 kx # linking a shared library.
5 kx #
5 kx # There doesn't appear to be a way to prevent this compiler from
5 kx # explicitly linking system object files so we need to strip them
5 kx # from the output so that they don't get included in the library
5 kx # dependencies.
5 kx output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5 kx ;;
5 kx *)
5 kx if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5 kx allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
5 kx archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5 kx
5 kx hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
5 kx hardcode_libdir_separator_CXX=:
5 kx
5 kx # Commands to make compiler produce verbose output that lists
5 kx # what "hidden" libraries, object files and flags are used when
5 kx # linking a shared library.
5 kx output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5 kx
5 kx else
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx fi
5 kx ;;
5 kx esac
5 kx ;;
5 kx psos*)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx sunos4*)
5 kx case $cc_basename in
5 kx CC*)
5 kx # Sun C++ 4.x
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx lcc*)
5 kx # Lucid
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx *)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx esac
5 kx ;;
5 kx solaris*)
5 kx case $cc_basename in
5 kx CC*)
5 kx # Sun C++ 4.2, 5.x and Centerline C++
5 kx archive_cmds_need_lc_CXX=yes
5 kx no_undefined_flag_CXX=' -zdefs'
5 kx archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5 kx archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5 kx $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5 kx
5 kx hardcode_libdir_flag_spec_CXX='-R$libdir'
5 kx hardcode_shlibpath_var_CXX=no
5 kx case $host_os in
5 kx solaris2.[0-5] | solaris2.[0-5].*) ;;
5 kx *)
5 kx # The compiler driver will combine and reorder linker options,
5 kx # but understands `-z linker_flag'.
5 kx # Supported since Solaris 2.6 (maybe 2.5.1?)
5 kx whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
5 kx ;;
5 kx esac
5 kx link_all_deplibs_CXX=yes
5 kx
5 kx output_verbose_link_cmd='echo'
5 kx
5 kx # Archives containing C++ object files must be created using
5 kx # "CC -xar", where "CC" is the Sun C++ compiler. This is
5 kx # necessary to make sure instantiated templates are included
5 kx # in the archive.
5 kx old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
5 kx ;;
5 kx gcx*)
5 kx # Green Hills C++ Compiler
5 kx archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5 kx
5 kx # The C++ compiler must be used to create the archive.
5 kx old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5 kx ;;
5 kx *)
5 kx # GNU C++ compiler with Solaris linker
5 kx if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5 kx no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
5 kx if $CC --version | grep -v '^2\.7' > /dev/null; then
5 kx archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5 kx archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5 kx $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5 kx
5 kx # Commands to make compiler produce verbose output that lists
5 kx # what "hidden" libraries, object files and flags are used when
5 kx # linking a shared library.
5 kx output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5 kx else
5 kx # g++ 2.7 appears to require `-G' NOT `-shared' on this
5 kx # platform.
5 kx archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5 kx archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5 kx $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5 kx
5 kx # Commands to make compiler produce verbose output that lists
5 kx # what "hidden" libraries, object files and flags are used when
5 kx # linking a shared library.
5 kx output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5 kx fi
5 kx
5 kx hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
5 kx case $host_os in
5 kx solaris2.[0-5] | solaris2.[0-5].*) ;;
5 kx *)
5 kx whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx esac
5 kx ;;
5 kx sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
5 kx no_undefined_flag_CXX='${wl}-z,text'
5 kx archive_cmds_need_lc_CXX=no
5 kx hardcode_shlibpath_var_CXX=no
5 kx runpath_var='LD_RUN_PATH'
5 kx
5 kx case $cc_basename in
5 kx CC*)
5 kx archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx *)
5 kx archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx esac
5 kx ;;
5 kx sysv5* | sco3.2v5* | sco5v6*)
5 kx # Note: We can NOT use -z defs as we might desire, because we do not
5 kx # link with -lc, and that would cause any symbols used from libc to
5 kx # always be unresolved, which means just about no library would
5 kx # ever link correctly. If we're not using GNU ld we use -z text
5 kx # though, which does catch some bad symbols but isn't as heavy-handed
5 kx # as -z defs.
5 kx # For security reasons, it is highly recommended that you always
5 kx # use absolute paths for naming shared libraries, and exclude the
5 kx # DT_RUNPATH tag from executables and libraries. But doing so
5 kx # requires that you compile everything twice, which is a pain.
5 kx # So that behaviour is only enabled if SCOABSPATH is set to a
5 kx # non-empty value in the environment. Most likely only useful for
5 kx # creating official distributions of packages.
5 kx # This is a hack until libtool officially supports absolute path
5 kx # names for shared libraries.
5 kx no_undefined_flag_CXX='${wl}-z,text'
5 kx allow_undefined_flag_CXX='${wl}-z,nodefs'
5 kx archive_cmds_need_lc_CXX=no
5 kx hardcode_shlibpath_var_CXX=no
5 kx hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
5 kx hardcode_libdir_separator_CXX=':'
5 kx link_all_deplibs_CXX=yes
5 kx export_dynamic_flag_spec_CXX='${wl}-Bexport'
5 kx runpath_var='LD_RUN_PATH'
5 kx
5 kx case $cc_basename in
5 kx CC*)
5 kx archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx *)
5 kx archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx esac
5 kx ;;
5 kx tandem*)
5 kx case $cc_basename in
5 kx NCC*)
5 kx # NonStop-UX NCC 3.20
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx *)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx esac
5 kx ;;
5 kx vxworks*)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx *)
5 kx # FIXME: insert proper C++ library support
5 kx ld_shlibs_CXX=no
5 kx ;;
5 kx esac
5 kx { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
5 kx echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
5 kx test "$ld_shlibs_CXX" = no && can_build_shared=no
5 kx
5 kx GCC_CXX="$GXX"
5 kx LD_CXX="$LD"
5 kx
5 kx
5 kx cat > conftest.$ac_ext <<EOF
5 kx class Foo
5 kx {
5 kx public:
5 kx Foo (void) { a = 0; }
5 kx private:
5 kx int a;
5 kx };
5 kx EOF
5 kx
5 kx if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; then
5 kx # Parse the compiler output and extract the necessary
5 kx # objects, libraries and library flags.
5 kx
5 kx # Sentinel used to keep track of whether or not we are before
5 kx # the conftest object file.
5 kx pre_test_object_deps_done=no
5 kx
5 kx # The `*' in the case matches for architectures that use `case' in
5 kx # $output_verbose_cmd can trigger glob expansion during the loop
5 kx # eval without this substitution.
5 kx output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
5 kx
5 kx for p in `eval $output_verbose_link_cmd`; do
5 kx case $p in
5 kx
5 kx -L* | -R* | -l*)
5 kx # Some compilers place space between "-{L,R}" and the path.
5 kx # Remove the space.
5 kx if test $p = "-L" \
5 kx || test $p = "-R"; then
5 kx prev=$p
5 kx continue
5 kx else
5 kx prev=
5 kx fi
5 kx
5 kx if test "$pre_test_object_deps_done" = no; then
5 kx case $p in
5 kx -L* | -R*)
5 kx # Internal compiler library paths should come after those
5 kx # provided the user. The postdeps already come after the
5 kx # user supplied libs so there is no need to process them.
5 kx if test -z "$compiler_lib_search_path_CXX"; then
5 kx compiler_lib_search_path_CXX="${prev}${p}"
5 kx else
5 kx compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
5 kx fi
5 kx ;;
5 kx # The "-l" case would never come before the object being
5 kx # linked, so don't bother handling this case.
5 kx esac
5 kx else
5 kx if test -z "$postdeps_CXX"; then
5 kx postdeps_CXX="${prev}${p}"
5 kx else
5 kx postdeps_CXX="${postdeps_CXX} ${prev}${p}"
5 kx fi
5 kx fi
5 kx ;;
5 kx
5 kx *.$objext)
5 kx # This assumes that the test object file only shows up
5 kx # once in the compiler output.
5 kx if test "$p" = "conftest.$objext"; then
5 kx pre_test_object_deps_done=yes
5 kx continue
5 kx fi
5 kx
5 kx if test "$pre_test_object_deps_done" = no; then
5 kx if test -z "$predep_objects_CXX"; then
5 kx predep_objects_CXX="$p"
5 kx else
5 kx predep_objects_CXX="$predep_objects_CXX $p"
5 kx fi
5 kx else
5 kx if test -z "$postdep_objects_CXX"; then
5 kx postdep_objects_CXX="$p"
5 kx else
5 kx postdep_objects_CXX="$postdep_objects_CXX $p"
5 kx fi
5 kx fi
5 kx ;;
5 kx
5 kx *) ;; # Ignore the rest.
5 kx
5 kx esac
5 kx done
5 kx
5 kx # Clean up.
5 kx rm -f a.out a.exe
5 kx else
5 kx echo "libtool.m4: error: problem compiling CXX test program"
5 kx fi
5 kx
5 kx $rm -f confest.$objext
5 kx
5 kx # PORTME: override above test on systems where it is broken
5 kx case $host_os in
5 kx interix[3-9]*)
5 kx # Interix 3.5 installs completely hosed .la files for C++, so rather than
5 kx # hack all around it, let's just trust "g++" to DTRT.
5 kx predep_objects_CXX=
5 kx postdep_objects_CXX=
5 kx postdeps_CXX=
5 kx ;;
5 kx
5 kx linux*)
5 kx case `$CC -V 2>&1 | sed 5q` in
5 kx *Sun\ C*)
5 kx # Sun C++ 5.9
5 kx #
5 kx # The more standards-conforming stlport4 library is
5 kx # incompatible with the Cstd library. Avoid specifying
5 kx # it if it's in CXXFLAGS. Ignore libCrun as
5 kx # -library=stlport4 depends on it.
5 kx case " $CXX $CXXFLAGS " in
5 kx *" -library=stlport4 "*)
5 kx solaris_use_stlport4=yes
5 kx ;;
5 kx esac
5 kx if test "$solaris_use_stlport4" != yes; then
5 kx postdeps_CXX='-library=Cstd -library=Crun'
5 kx fi
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx solaris*)
5 kx case $cc_basename in
5 kx CC*)
5 kx # The more standards-conforming stlport4 library is
5 kx # incompatible with the Cstd library. Avoid specifying
5 kx # it if it's in CXXFLAGS. Ignore libCrun as
5 kx # -library=stlport4 depends on it.
5 kx case " $CXX $CXXFLAGS " in
5 kx *" -library=stlport4 "*)
5 kx solaris_use_stlport4=yes
5 kx ;;
5 kx esac
5 kx
5 kx # Adding this requires a known-good setup of shared libraries for
5 kx # Sun compiler versions before 5.6, else PIC objects from an old
5 kx # archive will be linked into the output, leading to subtle bugs.
5 kx if test "$solaris_use_stlport4" != yes; then
5 kx postdeps_CXX='-library=Cstd -library=Crun'
5 kx fi
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx case " $postdeps_CXX " in
5 kx *" -lc "*) archive_cmds_need_lc_CXX=no ;;
5 kx esac
5 kx
5 kx lt_prog_compiler_wl_CXX=
5 kx lt_prog_compiler_pic_CXX=
5 kx lt_prog_compiler_static_CXX=
5 kx
5 kx { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5 kx echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
5 kx
5 kx # C++ specific cases for pic, static, wl, etc.
5 kx if test "$GXX" = yes; then
5 kx lt_prog_compiler_wl_CXX='-Wl,'
5 kx lt_prog_compiler_static_CXX='-static'
5 kx
5 kx case $host_os in
5 kx aix*)
5 kx # All AIX code is PIC.
5 kx if test "$host_cpu" = ia64; then
5 kx # AIX 5 now supports IA64 processor
5 kx lt_prog_compiler_static_CXX='-Bstatic'
5 kx fi
5 kx ;;
5 kx amigaos*)
5 kx # FIXME: we need at least 68020 code to build shared libraries, but
5 kx # adding the `-m68020' flag to GCC prevents building anything better,
5 kx # like `-m68040'.
5 kx lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
5 kx ;;
5 kx beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5 kx # PIC is the default for these OSes.
5 kx ;;
5 kx mingw* | cygwin* | os2* | pw32*)
5 kx # This hack is so that the source file can tell whether it is being
5 kx # built for inclusion in a dll (and should export symbols for example).
5 kx # Although the cygwin gcc ignores -fPIC, still need this for old-style
5 kx # (--disable-auto-import) libraries
5 kx lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
5 kx ;;
5 kx darwin* | rhapsody*)
5 kx # PIC is the default on this platform
5 kx # Common symbols not allowed in MH_DYLIB files
5 kx lt_prog_compiler_pic_CXX='-fno-common'
5 kx ;;
5 kx *djgpp*)
5 kx # DJGPP does not support shared libraries at all
5 kx lt_prog_compiler_pic_CXX=
5 kx ;;
5 kx interix[3-9]*)
5 kx # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5 kx # Instead, we relocate shared libraries at runtime.
5 kx ;;
5 kx sysv4*MP*)
5 kx if test -d /usr/nec; then
5 kx lt_prog_compiler_pic_CXX=-Kconform_pic
5 kx fi
5 kx ;;
5 kx hpux*)
5 kx # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5 kx # not for PA HP-UX.
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic_CXX='-fPIC'
5 kx ;;
5 kx esac
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic_CXX='-fPIC'
5 kx ;;
5 kx esac
5 kx else
5 kx case $host_os in
5 kx aix4* | aix5*)
5 kx # All AIX code is PIC.
5 kx if test "$host_cpu" = ia64; then
5 kx # AIX 5 now supports IA64 processor
5 kx lt_prog_compiler_static_CXX='-Bstatic'
5 kx else
5 kx lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
5 kx fi
5 kx ;;
5 kx chorus*)
5 kx case $cc_basename in
5 kx cxch68*)
5 kx # Green Hills C++ Compiler
5 kx # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5 kx ;;
5 kx esac
5 kx ;;
5 kx darwin*)
5 kx # PIC is the default on this platform
5 kx # Common symbols not allowed in MH_DYLIB files
5 kx case $cc_basename in
5 kx xlc*)
5 kx lt_prog_compiler_pic_CXX='-qnocommon'
5 kx lt_prog_compiler_wl_CXX='-Wl,'
5 kx ;;
5 kx esac
5 kx ;;
5 kx dgux*)
5 kx case $cc_basename in
5 kx ec++*)
5 kx lt_prog_compiler_pic_CXX='-KPIC'
5 kx ;;
5 kx ghcx*)
5 kx # Green Hills C++ Compiler
5 kx lt_prog_compiler_pic_CXX='-pic'
5 kx ;;
5 kx *)
5 kx ;;
5 kx esac
5 kx ;;
5 kx freebsd* | dragonfly*)
5 kx # FreeBSD uses GNU C++
5 kx ;;
5 kx hpux9* | hpux10* | hpux11*)
5 kx case $cc_basename in
5 kx CC*)
5 kx lt_prog_compiler_wl_CXX='-Wl,'
5 kx lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
5 kx if test "$host_cpu" != ia64; then
5 kx lt_prog_compiler_pic_CXX='+Z'
5 kx fi
5 kx ;;
5 kx aCC*)
5 kx lt_prog_compiler_wl_CXX='-Wl,'
5 kx lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx # +Z the default
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic_CXX='+Z'
5 kx ;;
5 kx esac
5 kx ;;
5 kx *)
5 kx ;;
5 kx esac
5 kx ;;
5 kx interix*)
5 kx # This is c89, which is MS Visual C++ (no shared libs)
5 kx # Anyone wants to do a port?
5 kx ;;
5 kx irix5* | irix6* | nonstopux*)
5 kx case $cc_basename in
5 kx CC*)
5 kx lt_prog_compiler_wl_CXX='-Wl,'
5 kx lt_prog_compiler_static_CXX='-non_shared'
5 kx # CC pic flag -KPIC is the default.
5 kx ;;
5 kx *)
5 kx ;;
5 kx esac
5 kx ;;
5 kx linux* | k*bsd*-gnu)
5 kx case $cc_basename in
5 kx KCC*)
5 kx # KAI C++ Compiler
5 kx lt_prog_compiler_wl_CXX='--backend -Wl,'
5 kx lt_prog_compiler_pic_CXX='-fPIC'
5 kx ;;
5 kx icpc* | ecpc*)
5 kx # Intel C++
5 kx lt_prog_compiler_wl_CXX='-Wl,'
5 kx lt_prog_compiler_pic_CXX='-KPIC'
5 kx lt_prog_compiler_static_CXX='-static'
5 kx ;;
5 kx pgCC*)
5 kx # Portland Group C++ compiler.
5 kx lt_prog_compiler_wl_CXX='-Wl,'
5 kx lt_prog_compiler_pic_CXX='-fpic'
5 kx lt_prog_compiler_static_CXX='-Bstatic'
5 kx ;;
5 kx cxx*)
5 kx # Compaq C++
5 kx # Make sure the PIC flag is empty. It appears that all Alpha
5 kx # Linux and Compaq Tru64 Unix objects are PIC.
5 kx lt_prog_compiler_pic_CXX=
5 kx lt_prog_compiler_static_CXX='-non_shared'
5 kx ;;
5 kx *)
5 kx case `$CC -V 2>&1 | sed 5q` in
5 kx *Sun\ C*)
5 kx # Sun C++ 5.9
5 kx lt_prog_compiler_pic_CXX='-KPIC'
5 kx lt_prog_compiler_static_CXX='-Bstatic'
5 kx lt_prog_compiler_wl_CXX='-Qoption ld '
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx ;;
5 kx lynxos*)
5 kx ;;
5 kx m88k*)
5 kx ;;
5 kx mvs*)
5 kx case $cc_basename in
5 kx cxx*)
5 kx lt_prog_compiler_pic_CXX='-W c,exportall'
5 kx ;;
5 kx *)
5 kx ;;
5 kx esac
5 kx ;;
5 kx netbsd*)
5 kx ;;
5 kx osf3* | osf4* | osf5*)
5 kx case $cc_basename in
5 kx KCC*)
5 kx lt_prog_compiler_wl_CXX='--backend -Wl,'
5 kx ;;
5 kx RCC*)
5 kx # Rational C++ 2.4.1
5 kx lt_prog_compiler_pic_CXX='-pic'
5 kx ;;
5 kx cxx*)
5 kx # Digital/Compaq C++
5 kx lt_prog_compiler_wl_CXX='-Wl,'
5 kx # Make sure the PIC flag is empty. It appears that all Alpha
5 kx # Linux and Compaq Tru64 Unix objects are PIC.
5 kx lt_prog_compiler_pic_CXX=
5 kx lt_prog_compiler_static_CXX='-non_shared'
5 kx ;;
5 kx *)
5 kx ;;
5 kx esac
5 kx ;;
5 kx psos*)
5 kx ;;
5 kx solaris*)
5 kx case $cc_basename in
5 kx CC*)
5 kx # Sun C++ 4.2, 5.x and Centerline C++
5 kx lt_prog_compiler_pic_CXX='-KPIC'
5 kx lt_prog_compiler_static_CXX='-Bstatic'
5 kx lt_prog_compiler_wl_CXX='-Qoption ld '
5 kx ;;
5 kx gcx*)
5 kx # Green Hills C++ Compiler
5 kx lt_prog_compiler_pic_CXX='-PIC'
5 kx ;;
5 kx *)
5 kx ;;
5 kx esac
5 kx ;;
5 kx sunos4*)
5 kx case $cc_basename in
5 kx CC*)
5 kx # Sun C++ 4.x
5 kx lt_prog_compiler_pic_CXX='-pic'
5 kx lt_prog_compiler_static_CXX='-Bstatic'
5 kx ;;
5 kx lcc*)
5 kx # Lucid
5 kx lt_prog_compiler_pic_CXX='-pic'
5 kx ;;
5 kx *)
5 kx ;;
5 kx esac
5 kx ;;
5 kx tandem*)
5 kx case $cc_basename in
5 kx NCC*)
5 kx # NonStop-UX NCC 3.20
5 kx lt_prog_compiler_pic_CXX='-KPIC'
5 kx ;;
5 kx *)
5 kx ;;
5 kx esac
5 kx ;;
5 kx sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5 kx case $cc_basename in
5 kx CC*)
5 kx lt_prog_compiler_wl_CXX='-Wl,'
5 kx lt_prog_compiler_pic_CXX='-KPIC'
5 kx lt_prog_compiler_static_CXX='-Bstatic'
5 kx ;;
5 kx esac
5 kx ;;
5 kx vxworks*)
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_can_build_shared_CXX=no
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
5 kx echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
5 kx
5 kx #
5 kx # Check to make sure the PIC flag actually works.
5 kx #
5 kx if test -n "$lt_prog_compiler_pic_CXX"; then
5 kx
5 kx { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
5 kx echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
5 kx if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_prog_compiler_pic_works_CXX=no
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx # The option is referenced via a variable to avoid confusing sed.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:12456: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>conftest.err)
5 kx ac_status=$?
5 kx cat conftest.err >&5
5 kx echo "$as_me:12460: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s "$ac_outfile"; then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings other than the usual output.
5 kx $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_prog_compiler_pic_works_CXX=yes
5 kx fi
5 kx fi
5 kx $rm conftest*
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
5 kx echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
5 kx
5 kx if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
5 kx case $lt_prog_compiler_pic_CXX in
5 kx "" | " "*) ;;
5 kx *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
5 kx esac
5 kx else
5 kx lt_prog_compiler_pic_CXX=
5 kx lt_prog_compiler_can_build_shared_CXX=no
5 kx fi
5 kx
5 kx fi
5 kx case $host_os in
5 kx # For platforms which do not support PIC, -DPIC is meaningless:
5 kx *djgpp*)
5 kx lt_prog_compiler_pic_CXX=
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
5 kx ;;
5 kx esac
5 kx
5 kx #
5 kx # Check to make sure the static flag actually works.
5 kx #
5 kx wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
5 kx { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
5 kx echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
5 kx if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_prog_compiler_static_works_CXX=no
5 kx save_LDFLAGS="$LDFLAGS"
5 kx LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
5 kx echo "$lt_simple_link_test_code" > conftest.$ac_ext
5 kx if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5 kx # The linker can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings
5 kx if test -s conftest.err; then
5 kx # Append any errors to the config.log.
5 kx cat conftest.err 1>&5
5 kx $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_prog_compiler_static_works_CXX=yes
5 kx fi
5 kx else
5 kx lt_prog_compiler_static_works_CXX=yes
5 kx fi
5 kx fi
5 kx $rm conftest*
5 kx LDFLAGS="$save_LDFLAGS"
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
5 kx echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
5 kx
5 kx if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
5 kx :
5 kx else
5 kx lt_prog_compiler_static_CXX=
5 kx fi
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5 kx echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
5 kx if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_cv_prog_compiler_c_o_CXX=no
5 kx $rm -r conftest 2>/dev/null
5 kx mkdir conftest
5 kx cd conftest
5 kx mkdir out
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx
5 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:12560: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>out/conftest.err)
5 kx ac_status=$?
5 kx cat out/conftest.err >&5
5 kx echo "$as_me:12564: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
5 kx then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings
5 kx $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
5 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
5 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
5 kx lt_cv_prog_compiler_c_o_CXX=yes
5 kx fi
5 kx fi
5 kx chmod u+w . 2>&5
5 kx $rm conftest*
5 kx # SGI C++ compiler will create directory out/ii_files/ for
5 kx # template instantiation
5 kx test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5 kx $rm out/* && rmdir out
5 kx cd ..
5 kx rmdir conftest
5 kx $rm conftest*
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
5 kx echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
5 kx
5 kx
5 kx hard_links="nottested"
5 kx if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
5 kx # do not overwrite the value of need_locks provided by the user
5 kx { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5 kx echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
5 kx hard_links=yes
5 kx $rm conftest*
5 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
5 kx touch conftest.a
5 kx ln conftest.a conftest.b 2>&5 || hard_links=no
5 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
5 kx { echo "$as_me:$LINENO: result: $hard_links" >&5
5 kx echo "${ECHO_T}$hard_links" >&6; }
5 kx if test "$hard_links" = no; then
5 kx { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5 kx echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5 kx need_locks=warn
5 kx fi
5 kx else
5 kx need_locks=no
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5 kx echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
5 kx
5 kx export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5 kx case $host_os in
5 kx aix4* | aix5*)
5 kx # If we're using GNU nm, then we don't want the "-C" option.
5 kx # -C means demangle to AIX nm, but means don't demangle with GNU nm
5 kx if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5 kx export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
5 kx else
5 kx export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
5 kx fi
5 kx ;;
5 kx pw32*)
5 kx export_symbols_cmds_CXX="$ltdll_cmds"
5 kx ;;
5 kx cygwin* | mingw*)
5 kx export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
5 kx ;;
5 kx *)
5 kx export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5 kx ;;
5 kx esac
5 kx
5 kx { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
5 kx echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
5 kx test "$ld_shlibs_CXX" = no && can_build_shared=no
5 kx
5 kx #
5 kx # Do we need to explicitly link libc?
5 kx #
5 kx case "x$archive_cmds_need_lc_CXX" in
5 kx x|xyes)
5 kx # Assume -lc should be added
5 kx archive_cmds_need_lc_CXX=yes
5 kx
5 kx if test "$enable_shared" = yes && test "$GCC" = yes; then
5 kx case $archive_cmds_CXX in
5 kx *'~'*)
5 kx # FIXME: we may have to deal with multi-command sequences.
5 kx ;;
5 kx '$CC '*)
5 kx # Test whether the compiler implicitly links with -lc since on some
5 kx # systems, -lgcc has to come before -lc. If gcc already passes -lc
5 kx # to ld, don't add -lc before -lgcc.
5 kx { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
5 kx echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
5 kx $rm conftest*
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx
5 kx if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } 2>conftest.err; then
5 kx soname=conftest
5 kx lib=conftest
5 kx libobjs=conftest.$ac_objext
5 kx deplibs=
5 kx wl=$lt_prog_compiler_wl_CXX
5 kx pic_flag=$lt_prog_compiler_pic_CXX
5 kx compiler_flags=-v
5 kx linker_flags=-v
5 kx verstring=
5 kx output_objdir=.
5 kx libname=conftest
5 kx lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
5 kx allow_undefined_flag_CXX=
5 kx if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5 kx (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx then
5 kx archive_cmds_need_lc_CXX=no
5 kx else
5 kx archive_cmds_need_lc_CXX=yes
5 kx fi
5 kx allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
5 kx else
5 kx cat conftest.err 1>&5
5 kx fi
5 kx $rm conftest*
5 kx { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
5 kx echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5 kx echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
5 kx library_names_spec=
5 kx libname_spec='lib$name'
5 kx soname_spec=
5 kx shrext_cmds=".so"
5 kx postinstall_cmds=
5 kx postuninstall_cmds=
5 kx finish_cmds=
5 kx finish_eval=
5 kx shlibpath_var=
5 kx shlibpath_overrides_runpath=unknown
5 kx version_type=none
5 kx dynamic_linker="$host_os ld.so"
5 kx sys_lib_dlsearch_path_spec="/lib /usr/lib"
5 kx
5 kx need_lib_prefix=unknown
5 kx hardcode_into_libs=no
5 kx
5 kx # when you set need_version to no, make sure it does not cause -set_version
5 kx # flags to be left without arguments
5 kx need_version=unknown
5 kx
5 kx case $host_os in
5 kx aix3*)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
5 kx shlibpath_var=LIBPATH
5 kx
5 kx # AIX 3 has no versioning support, so we append a major version to the name.
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx ;;
5 kx
5 kx aix4* | aix5*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx hardcode_into_libs=yes
5 kx if test "$host_cpu" = ia64; then
5 kx # AIX 5 supports IA64
5 kx library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx else
5 kx # With GCC up to 2.95.x, collect2 would create an import file
5 kx # for dependence libraries. The import file would start with
5 kx # the line `#! .'. This would cause the generated library to
5 kx # depend on `.', always an invalid library. This was fixed in
5 kx # development snapshots of GCC prior to 3.0.
5 kx case $host_os in
5 kx aix4 | aix4.[01] | aix4.[01].*)
5 kx if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5 kx echo ' yes '
5 kx echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5 kx :
5 kx else
5 kx can_build_shared=no
5 kx fi
5 kx ;;
5 kx esac
5 kx # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5 kx # soname into executable. Probably we can add versioning support to
5 kx # collect2, so additional links can be useful in future.
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5 kx # instead of lib<name>.a to let people know that these are not
5 kx # typical AIX shared libraries.
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx else
5 kx # We preserve .a as extension for shared libraries through AIX4.2
5 kx # and later when we are not doing run time linking.
5 kx library_names_spec='${libname}${release}.a $libname.a'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx fi
5 kx shlibpath_var=LIBPATH
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx library_names_spec='$libname.ixlibrary $libname.a'
5 kx # Create ${libname}_ixlibrary.a entries in /sys/libs.
5 kx finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
5 kx ;;
5 kx
5 kx beos*)
5 kx library_names_spec='${libname}${shared_ext}'
5 kx dynamic_linker="$host_os ld.so"
5 kx shlibpath_var=LIBRARY_PATH
5 kx ;;
5 kx
5 kx bsdi[45]*)
5 kx version_type=linux
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5 kx sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5 kx # the default ld.so.conf also contains /usr/contrib/lib and
5 kx # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5 kx # libtool to hard-code these into programs
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32*)
5 kx version_type=windows
5 kx shrext_cmds=".dll"
5 kx need_version=no
5 kx need_lib_prefix=no
5 kx
5 kx case $GCC,$host_os in
5 kx yes,cygwin* | yes,mingw* | yes,pw32*)
5 kx library_names_spec='$libname.dll.a'
5 kx # DLL is installed to $(libdir)/../bin by postinstall_cmds
5 kx postinstall_cmds='base_file=`basename \${file}`~
5 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
5 kx dldir=$destdir/`dirname \$dlpath`~
5 kx test -d \$dldir || mkdir -p \$dldir~
5 kx $install_prog $dir/$dlname \$dldir/$dlname~
5 kx chmod a+x \$dldir/$dlname'
5 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
5 kx dlpath=$dir/\$dldll~
5 kx $rm \$dlpath'
5 kx shlibpath_overrides_runpath=yes
5 kx
5 kx case $host_os in
5 kx cygwin*)
5 kx # Cygwin DLLs use 'cyg' prefix rather than 'lib'
5 kx soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5 kx sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
5 kx ;;
5 kx mingw*)
5 kx # MinGW DLLs use traditional 'lib' prefix
5 kx soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5 kx sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
5 kx if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
5 kx # It is most probably a Windows format PATH printed by
5 kx # mingw gcc, but we are running on Cygwin. Gcc prints its search
5 kx # path with ; separators, and with drive letters. We can handle the
5 kx # drive letters (cygwin fileutils understands them), so leave them,
5 kx # especially as we might pass files found there to a mingw objdump,
5 kx # which wouldn't understand a cygwinified path. Ahh.
5 kx sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
5 kx else
5 kx sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
5 kx fi
5 kx ;;
5 kx pw32*)
5 kx # pw32 DLLs use 'pw' prefix rather than 'lib'
5 kx library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx *)
5 kx library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
5 kx ;;
5 kx esac
5 kx dynamic_linker='Win32 ld.exe'
5 kx # FIXME: first we should search . and the directory the executable is in
5 kx shlibpath_var=PATH
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx dynamic_linker="$host_os dyld"
5 kx version_type=darwin
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
5 kx soname_spec='${libname}${release}${major}$shared_ext'
5 kx shlibpath_overrides_runpath=yes
5 kx shlibpath_var=DYLD_LIBRARY_PATH
5 kx shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
5 kx
5 kx sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
5 kx ;;
5 kx
5 kx dgux*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx ;;
5 kx
5 kx freebsd1*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx freebsd* | dragonfly*)
5 kx # DragonFly does not have aout. When/if they implement a new
5 kx # versioning mechanism, adjust this.
5 kx if test -x /usr/bin/objformat; then
5 kx objformat=`/usr/bin/objformat`
5 kx else
5 kx case $host_os in
5 kx freebsd[123]*) objformat=aout ;;
5 kx *) objformat=elf ;;
5 kx esac
5 kx fi
5 kx version_type=freebsd-$objformat
5 kx case $version_type in
5 kx freebsd-elf*)
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5 kx need_version=no
5 kx need_lib_prefix=no
5 kx ;;
5 kx freebsd-*)
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
5 kx need_version=yes
5 kx ;;
5 kx esac
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx case $host_os in
5 kx freebsd2*)
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx freebsd3.[01]* | freebsdelf3.[01]*)
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
5 kx freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
5 kx shlibpath_overrides_runpath=no
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx *) # from 4.6 on, and DragonFly
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx gnu*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx hpux9* | hpux10* | hpux11*)
5 kx # Give a soname corresponding to the major version so that dld.sl refuses to
5 kx # link against other versions.
5 kx version_type=sunos
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx case $host_cpu in
5 kx ia64*)
5 kx shrext_cmds='.so'
5 kx hardcode_into_libs=yes
5 kx dynamic_linker="$host_os dld.so"
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx if test "X$HPUX_IA64_MODE" = X32; then
5 kx sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
5 kx else
5 kx sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
5 kx fi
5 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5 kx ;;
5 kx hppa*64*)
5 kx shrext_cmds='.sl'
5 kx hardcode_into_libs=yes
5 kx dynamic_linker="$host_os dld.sl"
5 kx shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
5 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5 kx ;;
5 kx *)
5 kx shrext_cmds='.sl'
5 kx dynamic_linker="$host_os dld.sl"
5 kx shlibpath_var=SHLIB_PATH
5 kx shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx ;;
5 kx esac
5 kx # HP-UX runs *really* slowly unless shared libraries are mode 555.
5 kx postinstall_cmds='chmod 555 $lib'
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=no
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx case $host_os in
5 kx nonstopux*) version_type=nonstopux ;;
5 kx *)
5 kx if test "$lt_cv_prog_gnu_ld" = yes; then
5 kx version_type=linux
5 kx else
5 kx version_type=irix
5 kx fi ;;
5 kx esac
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
5 kx case $host_os in
5 kx irix5* | nonstopux*)
5 kx libsuff= shlibsuff=
5 kx ;;
5 kx *)
5 kx case $LD in # libtool.m4 will add one of these switches to LD
5 kx *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5 kx libsuff= shlibsuff= libmagic=32-bit;;
5 kx *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5 kx libsuff=32 shlibsuff=N32 libmagic=N32;;
5 kx *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5 kx libsuff=64 shlibsuff=64 libmagic=64-bit;;
5 kx *) libsuff= shlibsuff= libmagic=never-match;;
5 kx esac
5 kx ;;
5 kx esac
5 kx shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5 kx shlibpath_overrides_runpath=no
5 kx sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5 kx sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx # No shared lib support for Linux oldld, aout, or coff.
5 kx linux*oldld* | linux*aout* | linux*coff*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx # This must be Linux ELF.
5 kx linux* | k*bsd*-gnu)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=no
5 kx # This implies no fast_install, which is unacceptable.
5 kx # Some rework will be needed to allow for fast_install
5 kx # before this can be enabled.
5 kx hardcode_into_libs=yes
5 kx sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5 kx sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5 kx
5 kx # Append ld.so.conf contents to the search path
5 kx if test -f /etc/ld.so.conf; then
5 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;/^$/d' | tr '\n' ' '`
5 kx sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
5 kx fi
5 kx
5 kx # We used to test for /lib/ld.so.1 and disable shared libraries on
5 kx # powerpc, because MkLinux only supported shared libraries with the
5 kx # GNU dynamic linker. Since this was broken with cross compilers,
5 kx # most powerpc-linux boxes support dynamic linking these days and
5 kx # people can always --disable-shared, the test was removed, and we
5 kx # assume the GNU/Linux dynamic linker is in use.
5 kx dynamic_linker='GNU/Linux ld.so'
5 kx ;;
5 kx
5 kx netbsd*)
5 kx version_type=sunos
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5 kx dynamic_linker='NetBSD (a.out) ld.so'
5 kx else
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx dynamic_linker='NetBSD ld.elf_so'
5 kx fi
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx newsos6)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx
5 kx nto-qnx*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx
5 kx openbsd*)
5 kx version_type=sunos
5 kx sys_lib_dlsearch_path_spec="/usr/lib"
5 kx need_lib_prefix=no
5 kx # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
5 kx case $host_os in
5 kx openbsd3.3 | openbsd3.3.*) need_version=yes ;;
5 kx *) need_version=no ;;
5 kx esac
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5 kx case $host_os in
5 kx openbsd2.[89] | openbsd2.[89].*)
5 kx shlibpath_overrides_runpath=no
5 kx ;;
5 kx *)
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx esac
5 kx else
5 kx shlibpath_overrides_runpath=yes
5 kx fi
5 kx ;;
5 kx
5 kx os2*)
5 kx libname_spec='$name'
5 kx shrext_cmds=".dll"
5 kx need_lib_prefix=no
5 kx library_names_spec='$libname${shared_ext} $libname.a'
5 kx dynamic_linker='OS/2 ld.exe'
5 kx shlibpath_var=LIBPATH
5 kx ;;
5 kx
5 kx osf3* | osf4* | osf5*)
5 kx version_type=osf
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5 kx sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5 kx ;;
5 kx
5 kx rdos*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx solaris*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx # ldd complains unless libraries are executable
5 kx postinstall_cmds='chmod +x $lib'
5 kx ;;
5 kx
5 kx sunos4*)
5 kx version_type=sunos
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5 kx finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx if test "$with_gnu_ld" = yes; then
5 kx need_lib_prefix=no
5 kx fi
5 kx need_version=yes
5 kx ;;
5 kx
5 kx sysv4 | sysv4.3*)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx case $host_vendor in
5 kx sni)
5 kx shlibpath_overrides_runpath=no
5 kx need_lib_prefix=no
5 kx export_dynamic_flag_spec='${wl}-Blargedynsym'
5 kx runpath_var=LD_RUN_PATH
5 kx ;;
5 kx siemens)
5 kx need_lib_prefix=no
5 kx ;;
5 kx motorola)
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx shlibpath_overrides_runpath=no
5 kx sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec ;then
5 kx version_type=linux
5 kx library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5 kx soname_spec='$libname${shared_ext}.$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5 kx version_type=freebsd-elf
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx hardcode_into_libs=yes
5 kx if test "$with_gnu_ld" = yes; then
5 kx sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
5 kx shlibpath_overrides_runpath=no
5 kx else
5 kx sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
5 kx shlibpath_overrides_runpath=yes
5 kx case $host_os in
5 kx sco3.2v5*)
5 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
5 kx ;;
5 kx esac
5 kx fi
5 kx sys_lib_dlsearch_path_spec='/usr/lib'
5 kx ;;
5 kx
5 kx uts4*)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx ;;
5 kx
5 kx *)
5 kx dynamic_linker=no
5 kx ;;
5 kx esac
5 kx { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5 kx echo "${ECHO_T}$dynamic_linker" >&6; }
5 kx test "$dynamic_linker" = no && can_build_shared=no
5 kx
5 kx variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5 kx if test "$GCC" = yes; then
5 kx variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5 kx echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
5 kx hardcode_action_CXX=
5 kx if test -n "$hardcode_libdir_flag_spec_CXX" || \
5 kx test -n "$runpath_var_CXX" || \
5 kx test "X$hardcode_automatic_CXX" = "Xyes" ; then
5 kx
5 kx # We can hardcode non-existant directories.
5 kx if test "$hardcode_direct_CXX" != no &&
5 kx # If the only mechanism to avoid hardcoding is shlibpath_var, we
5 kx # have to relink, otherwise we might link with an installed library
5 kx # when we should be linking with a yet-to-be-installed one
5 kx ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
5 kx test "$hardcode_minus_L_CXX" != no; then
5 kx # Linking always hardcodes the temporary library directory.
5 kx hardcode_action_CXX=relink
5 kx else
5 kx # We can link without hardcoding, and we can hardcode nonexisting dirs.
5 kx hardcode_action_CXX=immediate
5 kx fi
5 kx else
5 kx # We cannot hardcode anything, or else we can only hardcode existing
5 kx # directories.
5 kx hardcode_action_CXX=unsupported
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
5 kx echo "${ECHO_T}$hardcode_action_CXX" >&6; }
5 kx
5 kx if test "$hardcode_action_CXX" = relink; then
5 kx # Fast installation is not supported
5 kx enable_fast_install=no
5 kx elif test "$shlibpath_overrides_runpath" = yes ||
5 kx test "$enable_shared" = no; then
5 kx # Fast installation is not necessary
5 kx enable_fast_install=needless
5 kx fi
5 kx
5 kx
5 kx # The else clause should only fire when bootstrapping the
5 kx # libtool distribution, otherwise you forgot to ship ltmain.sh
5 kx # with your package, and you will get complaints that there are
5 kx # no rules to generate ltmain.sh.
5 kx if test -f "$ltmain"; then
5 kx # See if we are running on zsh, and set the options which allow our commands through
5 kx # without removal of \ escapes.
5 kx if test -n "${ZSH_VERSION+set}" ; then
5 kx setopt NO_GLOB_SUBST
5 kx fi
5 kx # Now quote all the things that may contain metacharacters while being
5 kx # careful not to overquote the AC_SUBSTed values. We take copies of the
5 kx # variables and quote the copies for generation of the libtool script.
5 kx for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5 kx SED SHELL STRIP \
5 kx libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5 kx old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5 kx deplibs_check_method reload_flag reload_cmds need_locks \
5 kx lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5 kx lt_cv_sys_global_symbol_to_c_name_address \
5 kx sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5 kx old_postinstall_cmds old_postuninstall_cmds \
5 kx compiler_CXX \
5 kx CC_CXX \
5 kx LD_CXX \
5 kx lt_prog_compiler_wl_CXX \
5 kx lt_prog_compiler_pic_CXX \
5 kx lt_prog_compiler_static_CXX \
5 kx lt_prog_compiler_no_builtin_flag_CXX \
5 kx export_dynamic_flag_spec_CXX \
5 kx thread_safe_flag_spec_CXX \
5 kx whole_archive_flag_spec_CXX \
5 kx enable_shared_with_static_runtimes_CXX \
5 kx old_archive_cmds_CXX \
5 kx old_archive_from_new_cmds_CXX \
5 kx predep_objects_CXX \
5 kx postdep_objects_CXX \
5 kx predeps_CXX \
5 kx postdeps_CXX \
5 kx compiler_lib_search_path_CXX \
5 kx archive_cmds_CXX \
5 kx archive_expsym_cmds_CXX \
5 kx postinstall_cmds_CXX \
5 kx postuninstall_cmds_CXX \
5 kx old_archive_from_expsyms_cmds_CXX \
5 kx allow_undefined_flag_CXX \
5 kx no_undefined_flag_CXX \
5 kx export_symbols_cmds_CXX \
5 kx hardcode_libdir_flag_spec_CXX \
5 kx hardcode_libdir_flag_spec_ld_CXX \
5 kx hardcode_libdir_separator_CXX \
5 kx hardcode_automatic_CXX \
5 kx module_cmds_CXX \
5 kx module_expsym_cmds_CXX \
5 kx lt_cv_prog_compiler_c_o_CXX \
5 kx fix_srcfile_path_CXX \
5 kx exclude_expsyms_CXX \
5 kx include_expsyms_CXX; do
5 kx
5 kx case $var in
5 kx old_archive_cmds_CXX | \
5 kx old_archive_from_new_cmds_CXX | \
5 kx archive_cmds_CXX | \
5 kx archive_expsym_cmds_CXX | \
5 kx module_cmds_CXX | \
5 kx module_expsym_cmds_CXX | \
5 kx old_archive_from_expsyms_cmds_CXX | \
5 kx export_symbols_cmds_CXX | \
5 kx extract_expsyms_cmds | reload_cmds | finish_cmds | \
5 kx postinstall_cmds | postuninstall_cmds | \
5 kx old_postinstall_cmds | old_postuninstall_cmds | \
5 kx sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5 kx # Double-quote double-evaled strings.
5 kx eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5 kx ;;
5 kx *)
5 kx eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5 kx ;;
5 kx esac
5 kx done
5 kx
5 kx case $lt_echo in
5 kx *'\$0 --fallback-echo"')
5 kx lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
5 kx ;;
5 kx esac
5 kx
5 kx cfgfile="$ofile"
5 kx
5 kx cat <<__EOF__ >> "$cfgfile"
5 kx # ### BEGIN LIBTOOL TAG CONFIG: $tagname
5 kx
5 kx # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5 kx
5 kx # Shell to use when invoking shell scripts.
5 kx SHELL=$lt_SHELL
5 kx
5 kx # Whether or not to build shared libraries.
5 kx build_libtool_libs=$enable_shared
5 kx
5 kx # Whether or not to build static libraries.
5 kx build_old_libs=$enable_static
5 kx
5 kx # Whether or not to add -lc for building shared libraries.
5 kx build_libtool_need_lc=$archive_cmds_need_lc_CXX
5 kx
5 kx # Whether or not to disallow shared libs when runtime libs are static
5 kx allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
5 kx
5 kx # Whether or not to optimize for fast installation.
5 kx fast_install=$enable_fast_install
5 kx
5 kx # The host system.
5 kx host_alias=$host_alias
5 kx host=$host
5 kx host_os=$host_os
5 kx
5 kx # The build system.
5 kx build_alias=$build_alias
5 kx build=$build
5 kx build_os=$build_os
5 kx
5 kx # An echo program that does not interpret backslashes.
5 kx echo=$lt_echo
5 kx
5 kx # The archiver.
5 kx AR=$lt_AR
5 kx AR_FLAGS=$lt_AR_FLAGS
5 kx
5 kx # A C compiler.
5 kx LTCC=$lt_LTCC
5 kx
5 kx # LTCC compiler flags.
5 kx LTCFLAGS=$lt_LTCFLAGS
5 kx
5 kx # A language-specific compiler.
5 kx CC=$lt_compiler_CXX
5 kx
5 kx # Is the compiler the GNU C compiler?
5 kx with_gcc=$GCC_CXX
5 kx
5 kx # An ERE matcher.
5 kx EGREP=$lt_EGREP
5 kx
5 kx # The linker used to build libraries.
5 kx LD=$lt_LD_CXX
5 kx
5 kx # Whether we need hard or soft links.
5 kx LN_S=$lt_LN_S
5 kx
5 kx # A BSD-compatible nm program.
5 kx NM=$lt_NM
5 kx
5 kx # A symbol stripping program
5 kx STRIP=$lt_STRIP
5 kx
5 kx # Used to examine libraries when file_magic_cmd begins "file"
5 kx MAGIC_CMD=$MAGIC_CMD
5 kx
5 kx # Used on cygwin: DLL creation program.
5 kx DLLTOOL="$DLLTOOL"
5 kx
5 kx # Used on cygwin: object dumper.
5 kx OBJDUMP="$OBJDUMP"
5 kx
5 kx # Used on cygwin: assembler.
5 kx AS="$AS"
5 kx
5 kx # The name of the directory that contains temporary libtool files.
5 kx objdir=$objdir
5 kx
5 kx # How to create reloadable object files.
5 kx reload_flag=$lt_reload_flag
5 kx reload_cmds=$lt_reload_cmds
5 kx
5 kx # How to pass a linker flag through the compiler.
5 kx wl=$lt_lt_prog_compiler_wl_CXX
5 kx
5 kx # Object file suffix (normally "o").
5 kx objext="$ac_objext"
5 kx
5 kx # Old archive suffix (normally "a").
5 kx libext="$libext"
5 kx
5 kx # Shared library suffix (normally ".so").
5 kx shrext_cmds='$shrext_cmds'
5 kx
5 kx # Executable file suffix (normally "").
5 kx exeext="$exeext"
5 kx
5 kx # Additional compiler flags for building library objects.
5 kx pic_flag=$lt_lt_prog_compiler_pic_CXX
5 kx pic_mode=$pic_mode
5 kx
5 kx # What is the maximum length of a command?
5 kx max_cmd_len=$lt_cv_sys_max_cmd_len
5 kx
5 kx # Does compiler simultaneously support -c and -o options?
5 kx compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
5 kx
5 kx # Must we lock files when doing compilation?
5 kx need_locks=$lt_need_locks
5 kx
5 kx # Do we need the lib prefix for modules?
5 kx need_lib_prefix=$need_lib_prefix
5 kx
5 kx # Do we need a version for libraries?
5 kx need_version=$need_version
5 kx
5 kx # Whether dlopen is supported.
5 kx dlopen_support=$enable_dlopen
5 kx
5 kx # Whether dlopen of programs is supported.
5 kx dlopen_self=$enable_dlopen_self
5 kx
5 kx # Whether dlopen of statically linked programs is supported.
5 kx dlopen_self_static=$enable_dlopen_self_static
5 kx
5 kx # Compiler flag to prevent dynamic linking.
5 kx link_static_flag=$lt_lt_prog_compiler_static_CXX
5 kx
5 kx # Compiler flag to turn off builtin functions.
5 kx no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
5 kx
5 kx # Compiler flag to allow reflexive dlopens.
5 kx export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
5 kx
5 kx # Compiler flag to generate shared objects directly from archives.
5 kx whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
5 kx
5 kx # Compiler flag to generate thread-safe objects.
5 kx thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
5 kx
5 kx # Library versioning type.
5 kx version_type=$version_type
5 kx
5 kx # Format of library name prefix.
5 kx libname_spec=$lt_libname_spec
5 kx
5 kx # List of archive names. First name is the real one, the rest are links.
5 kx # The last name is the one that the linker finds with -lNAME.
5 kx library_names_spec=$lt_library_names_spec
5 kx
5 kx # The coded name of the library, if different from the real name.
5 kx soname_spec=$lt_soname_spec
5 kx
5 kx # Commands used to build and install an old-style archive.
5 kx RANLIB=$lt_RANLIB
5 kx old_archive_cmds=$lt_old_archive_cmds_CXX
5 kx old_postinstall_cmds=$lt_old_postinstall_cmds
5 kx old_postuninstall_cmds=$lt_old_postuninstall_cmds
5 kx
5 kx # Create an old-style archive from a shared archive.
5 kx old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
5 kx
5 kx # Create a temporary old-style archive to link instead of a shared archive.
5 kx old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
5 kx
5 kx # Commands used to build and install a shared archive.
5 kx archive_cmds=$lt_archive_cmds_CXX
5 kx archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
5 kx postinstall_cmds=$lt_postinstall_cmds
5 kx postuninstall_cmds=$lt_postuninstall_cmds
5 kx
5 kx # Commands used to build a loadable module (assumed same as above if empty)
5 kx module_cmds=$lt_module_cmds_CXX
5 kx module_expsym_cmds=$lt_module_expsym_cmds_CXX
5 kx
5 kx # Commands to strip libraries.
5 kx old_striplib=$lt_old_striplib
5 kx striplib=$lt_striplib
5 kx
5 kx # Dependencies to place before the objects being linked to create a
5 kx # shared library.
5 kx predep_objects=$lt_predep_objects_CXX
5 kx
5 kx # Dependencies to place after the objects being linked to create a
5 kx # shared library.
5 kx postdep_objects=$lt_postdep_objects_CXX
5 kx
5 kx # Dependencies to place before the objects being linked to create a
5 kx # shared library.
5 kx predeps=$lt_predeps_CXX
5 kx
5 kx # Dependencies to place after the objects being linked to create a
5 kx # shared library.
5 kx postdeps=$lt_postdeps_CXX
5 kx
5 kx # The library search path used internally by the compiler when linking
5 kx # a shared library.
5 kx compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
5 kx
5 kx # Method to check whether dependent libraries are shared objects.
5 kx deplibs_check_method=$lt_deplibs_check_method
5 kx
5 kx # Command to use when deplibs_check_method == file_magic.
5 kx file_magic_cmd=$lt_file_magic_cmd
5 kx
5 kx # Flag that allows shared libraries with undefined symbols to be built.
5 kx allow_undefined_flag=$lt_allow_undefined_flag_CXX
5 kx
5 kx # Flag that forces no undefined symbols.
5 kx no_undefined_flag=$lt_no_undefined_flag_CXX
5 kx
5 kx # Commands used to finish a libtool library installation in a directory.
5 kx finish_cmds=$lt_finish_cmds
5 kx
5 kx # Same as above, but a single script fragment to be evaled but not shown.
5 kx finish_eval=$lt_finish_eval
5 kx
5 kx # Take the output of nm and produce a listing of raw symbols and C names.
5 kx global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5 kx
5 kx # Transform the output of nm in a proper C declaration
5 kx global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5 kx
5 kx # Transform the output of nm in a C name address pair
5 kx global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5 kx
5 kx # This is the shared library runtime path variable.
5 kx runpath_var=$runpath_var
5 kx
5 kx # This is the shared library path variable.
5 kx shlibpath_var=$shlibpath_var
5 kx
5 kx # Is shlibpath searched before the hard-coded library search path?
5 kx shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5 kx
5 kx # How to hardcode a shared library path into an executable.
5 kx hardcode_action=$hardcode_action_CXX
5 kx
5 kx # Whether we should hardcode library paths into libraries.
5 kx hardcode_into_libs=$hardcode_into_libs
5 kx
5 kx # Flag to hardcode \$libdir into a binary during linking.
5 kx # This must work even if \$libdir does not exist.
5 kx hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
5 kx
5 kx # If ld is used when linking, flag to hardcode \$libdir into
5 kx # a binary during linking. This must work even if \$libdir does
5 kx # not exist.
5 kx hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
5 kx
5 kx # Whether we need a single -rpath flag with a separated argument.
5 kx hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
5 kx
5 kx # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5 kx # resulting binary.
5 kx hardcode_direct=$hardcode_direct_CXX
5 kx
5 kx # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5 kx # resulting binary.
5 kx hardcode_minus_L=$hardcode_minus_L_CXX
5 kx
5 kx # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5 kx # the resulting binary.
5 kx hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
5 kx
5 kx # Set to yes if building a shared library automatically hardcodes DIR into the library
5 kx # and all subsequent libraries and executables linked against it.
5 kx hardcode_automatic=$hardcode_automatic_CXX
5 kx
5 kx # Variables whose values should be saved in libtool wrapper scripts and
5 kx # restored at relink time.
5 kx variables_saved_for_relink="$variables_saved_for_relink"
5 kx
5 kx # Whether libtool must link a program against all its dependency libraries.
5 kx link_all_deplibs=$link_all_deplibs_CXX
5 kx
5 kx # Compile-time system search path for libraries
5 kx sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5 kx
5 kx # Run-time system search path for libraries
5 kx sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5 kx
5 kx # Fix the shell variable \$srcfile for the compiler.
5 kx fix_srcfile_path=$lt_fix_srcfile_path
5 kx
5 kx # Set to yes if exported symbols are required.
5 kx always_export_symbols=$always_export_symbols_CXX
5 kx
5 kx # The commands to list exported symbols.
5 kx export_symbols_cmds=$lt_export_symbols_cmds_CXX
5 kx
5 kx # The commands to extract the exported symbol list from a shared archive.
5 kx extract_expsyms_cmds=$lt_extract_expsyms_cmds
5 kx
5 kx # Symbols that should not be listed in the preloaded symbols.
5 kx exclude_expsyms=$lt_exclude_expsyms_CXX
5 kx
5 kx # Symbols that must always be exported.
5 kx include_expsyms=$lt_include_expsyms_CXX
5 kx
5 kx # ### END LIBTOOL TAG CONFIG: $tagname
5 kx
5 kx __EOF__
5 kx
5 kx
5 kx else
5 kx # If there is no Makefile yet, we rely on a make rule to execute
5 kx # `config.status --recheck' to rerun these tests and create the
5 kx # libtool script then.
5 kx ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5 kx if test -f "$ltmain_in"; then
5 kx test -f Makefile && make "$ltmain"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx CC=$lt_save_CC
5 kx LDCXX=$LD
5 kx LD=$lt_save_LD
5 kx GCC=$lt_save_GCC
5 kx with_gnu_ldcxx=$with_gnu_ld
5 kx with_gnu_ld=$lt_save_with_gnu_ld
5 kx lt_cv_path_LDCXX=$lt_cv_path_LD
5 kx lt_cv_path_LD=$lt_save_path_LD
5 kx lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5 kx lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5 kx
5 kx else
5 kx tagname=""
5 kx fi
5 kx ;;
5 kx
5 kx F77)
5 kx if test -n "$F77" && test "X$F77" != "Xno"; then
5 kx
5 kx ac_ext=f
5 kx ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5 kx
5 kx
5 kx archive_cmds_need_lc_F77=no
5 kx allow_undefined_flag_F77=
5 kx always_export_symbols_F77=no
5 kx archive_expsym_cmds_F77=
5 kx export_dynamic_flag_spec_F77=
5 kx hardcode_direct_F77=no
5 kx hardcode_libdir_flag_spec_F77=
5 kx hardcode_libdir_flag_spec_ld_F77=
5 kx hardcode_libdir_separator_F77=
5 kx hardcode_minus_L_F77=no
5 kx hardcode_automatic_F77=no
5 kx module_cmds_F77=
5 kx module_expsym_cmds_F77=
5 kx link_all_deplibs_F77=unknown
5 kx old_archive_cmds_F77=$old_archive_cmds
5 kx no_undefined_flag_F77=
5 kx whole_archive_flag_spec_F77=
5 kx enable_shared_with_static_runtimes_F77=no
5 kx
5 kx # Source file extension for f77 test sources.
5 kx ac_ext=f
5 kx
5 kx # Object file extension for compiled f77 test sources.
5 kx objext=o
5 kx objext_F77=$objext
5 kx
5 kx # Code to be used in simple compile tests
5 kx lt_simple_compile_test_code="\
5 kx subroutine t
5 kx return
5 kx end
5 kx "
5 kx
5 kx # Code to be used in simple link tests
5 kx lt_simple_link_test_code="\
5 kx program t
5 kx end
5 kx "
5 kx
5 kx # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5 kx
5 kx # If no C compiler was specified, use CC.
5 kx LTCC=${LTCC-"$CC"}
5 kx
5 kx # If no C compiler flags were specified, use CFLAGS.
5 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5 kx
5 kx # Allow CC to be a program name with arguments.
5 kx compiler=$CC
5 kx
5 kx
5 kx # save warnings/boilerplate of simple test code
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5 kx eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5 kx _lt_compiler_boilerplate=`cat conftest.err`
5 kx $rm conftest*
5 kx
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_link_test_code" >conftest.$ac_ext
5 kx eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5 kx _lt_linker_boilerplate=`cat conftest.err`
5 kx $rm conftest*
5 kx
5 kx
5 kx # Allow CC to be a program name with arguments.
5 kx lt_save_CC="$CC"
5 kx CC=${F77-"f77"}
5 kx compiler=$CC
5 kx compiler_F77=$CC
5 kx for cc_temp in $compiler""; do
5 kx case $cc_temp in
5 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5 kx \-*) ;;
5 kx *) break;;
5 kx esac
5 kx done
5 kx cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5 kx echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
5 kx { echo "$as_me:$LINENO: result: $can_build_shared" >&5
5 kx echo "${ECHO_T}$can_build_shared" >&6; }
5 kx
5 kx { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5 kx echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
5 kx test "$can_build_shared" = "no" && enable_shared=no
5 kx
5 kx # On AIX, shared libraries and static libraries use the same namespace, and
5 kx # are all built from PIC.
5 kx case $host_os in
5 kx aix3*)
5 kx test "$enable_shared" = yes && enable_static=no
5 kx if test -n "$RANLIB"; then
5 kx archive_cmds="$archive_cmds~\$RANLIB \$lib"
5 kx postinstall_cmds='$RANLIB $lib'
5 kx fi
5 kx ;;
5 kx aix4* | aix5*)
5 kx if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5 kx test "$enable_shared" = yes && enable_static=no
5 kx fi
5 kx ;;
5 kx esac
5 kx { echo "$as_me:$LINENO: result: $enable_shared" >&5
5 kx echo "${ECHO_T}$enable_shared" >&6; }
5 kx
5 kx { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
5 kx echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
5 kx # Make sure either enable_shared or enable_static is yes.
5 kx test "$enable_shared" = yes || enable_static=yes
5 kx { echo "$as_me:$LINENO: result: $enable_static" >&5
5 kx echo "${ECHO_T}$enable_static" >&6; }
5 kx
5 kx GCC_F77="$G77"
5 kx LD_F77="$LD"
5 kx
5 kx lt_prog_compiler_wl_F77=
5 kx lt_prog_compiler_pic_F77=
5 kx lt_prog_compiler_static_F77=
5 kx
5 kx { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5 kx echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
5 kx
5 kx if test "$GCC" = yes; then
5 kx lt_prog_compiler_wl_F77='-Wl,'
5 kx lt_prog_compiler_static_F77='-static'
5 kx
5 kx case $host_os in
5 kx aix*)
5 kx # All AIX code is PIC.
5 kx if test "$host_cpu" = ia64; then
5 kx # AIX 5 now supports IA64 processor
5 kx lt_prog_compiler_static_F77='-Bstatic'
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx # FIXME: we need at least 68020 code to build shared libraries, but
5 kx # adding the `-m68020' flag to GCC prevents building anything better,
5 kx # like `-m68040'.
5 kx lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
5 kx ;;
5 kx
5 kx beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5 kx # PIC is the default for these OSes.
5 kx ;;
5 kx
5 kx mingw* | cygwin* | pw32* | os2*)
5 kx # This hack is so that the source file can tell whether it is being
5 kx # built for inclusion in a dll (and should export symbols for example).
5 kx # Although the cygwin gcc ignores -fPIC, still need this for old-style
5 kx # (--disable-auto-import) libraries
5 kx lt_prog_compiler_pic_F77='-DDLL_EXPORT'
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx # PIC is the default on this platform
5 kx # Common symbols not allowed in MH_DYLIB files
5 kx lt_prog_compiler_pic_F77='-fno-common'
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5 kx # Instead, we relocate shared libraries at runtime.
5 kx ;;
5 kx
5 kx msdosdjgpp*)
5 kx # Just because we use GCC doesn't mean we suddenly get shared libraries
5 kx # on systems that don't support them.
5 kx lt_prog_compiler_can_build_shared_F77=no
5 kx enable_shared=no
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec; then
5 kx lt_prog_compiler_pic_F77=-Kconform_pic
5 kx fi
5 kx ;;
5 kx
5 kx hpux*)
5 kx # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5 kx # not for PA HP-UX.
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx # +Z the default
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic_F77='-fPIC'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx *)
5 kx lt_prog_compiler_pic_F77='-fPIC'
5 kx ;;
5 kx esac
5 kx else
5 kx # PORTME Check for flag to pass linker flags through the system compiler.
5 kx case $host_os in
5 kx aix*)
5 kx lt_prog_compiler_wl_F77='-Wl,'
5 kx if test "$host_cpu" = ia64; then
5 kx # AIX 5 now supports IA64 processor
5 kx lt_prog_compiler_static_F77='-Bstatic'
5 kx else
5 kx lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
5 kx fi
5 kx ;;
5 kx darwin*)
5 kx # PIC is the default on this platform
5 kx # Common symbols not allowed in MH_DYLIB files
5 kx case $cc_basename in
5 kx xlc*)
5 kx lt_prog_compiler_pic_F77='-qnocommon'
5 kx lt_prog_compiler_wl_F77='-Wl,'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx mingw* | cygwin* | pw32* | os2*)
5 kx # This hack is so that the source file can tell whether it is being
5 kx # built for inclusion in a dll (and should export symbols for example).
5 kx lt_prog_compiler_pic_F77='-DDLL_EXPORT'
5 kx ;;
5 kx
5 kx hpux9* | hpux10* | hpux11*)
5 kx lt_prog_compiler_wl_F77='-Wl,'
5 kx # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5 kx # not for PA HP-UX.
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx # +Z the default
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic_F77='+Z'
5 kx ;;
5 kx esac
5 kx # Is there a better lt_prog_compiler_static that works with the bundled CC?
5 kx lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx lt_prog_compiler_wl_F77='-Wl,'
5 kx # PIC (with -KPIC) is the default.
5 kx lt_prog_compiler_static_F77='-non_shared'
5 kx ;;
5 kx
5 kx newsos6)
5 kx lt_prog_compiler_pic_F77='-KPIC'
5 kx lt_prog_compiler_static_F77='-Bstatic'
5 kx ;;
5 kx
5 kx linux* | k*bsd*-gnu)
5 kx case $cc_basename in
5 kx icc* | ecc*)
5 kx lt_prog_compiler_wl_F77='-Wl,'
5 kx lt_prog_compiler_pic_F77='-KPIC'
5 kx lt_prog_compiler_static_F77='-static'
5 kx ;;
5 kx pgcc* | pgf77* | pgf90* | pgf95*)
5 kx # Portland Group compilers (*not* the Pentium gcc compiler,
5 kx # which looks to be a dead project)
5 kx lt_prog_compiler_wl_F77='-Wl,'
5 kx lt_prog_compiler_pic_F77='-fpic'
5 kx lt_prog_compiler_static_F77='-Bstatic'
5 kx ;;
5 kx ccc*)
5 kx lt_prog_compiler_wl_F77='-Wl,'
5 kx # All Alpha code is PIC.
5 kx lt_prog_compiler_static_F77='-non_shared'
5 kx ;;
5 kx *)
5 kx case `$CC -V 2>&1 | sed 5q` in
5 kx *Sun\ C*)
5 kx # Sun C 5.9
5 kx lt_prog_compiler_pic_F77='-KPIC'
5 kx lt_prog_compiler_static_F77='-Bstatic'
5 kx lt_prog_compiler_wl_F77='-Wl,'
5 kx ;;
5 kx *Sun\ F*)
5 kx # Sun Fortran 8.3 passes all unrecognized flags to the linker
5 kx lt_prog_compiler_pic_F77='-KPIC'
5 kx lt_prog_compiler_static_F77='-Bstatic'
5 kx lt_prog_compiler_wl_F77=''
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx osf3* | osf4* | osf5*)
5 kx lt_prog_compiler_wl_F77='-Wl,'
5 kx # All OSF/1 code is PIC.
5 kx lt_prog_compiler_static_F77='-non_shared'
5 kx ;;
5 kx
5 kx rdos*)
5 kx lt_prog_compiler_static_F77='-non_shared'
5 kx ;;
5 kx
5 kx solaris*)
5 kx lt_prog_compiler_pic_F77='-KPIC'
5 kx lt_prog_compiler_static_F77='-Bstatic'
5 kx case $cc_basename in
5 kx f77* | f90* | f95*)
5 kx lt_prog_compiler_wl_F77='-Qoption ld ';;
5 kx *)
5 kx lt_prog_compiler_wl_F77='-Wl,';;
5 kx esac
5 kx ;;
5 kx
5 kx sunos4*)
5 kx lt_prog_compiler_wl_F77='-Qoption ld '
5 kx lt_prog_compiler_pic_F77='-PIC'
5 kx lt_prog_compiler_static_F77='-Bstatic'
5 kx ;;
5 kx
5 kx sysv4 | sysv4.2uw2* | sysv4.3*)
5 kx lt_prog_compiler_wl_F77='-Wl,'
5 kx lt_prog_compiler_pic_F77='-KPIC'
5 kx lt_prog_compiler_static_F77='-Bstatic'
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec ;then
5 kx lt_prog_compiler_pic_F77='-Kconform_pic'
5 kx lt_prog_compiler_static_F77='-Bstatic'
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5 kx lt_prog_compiler_wl_F77='-Wl,'
5 kx lt_prog_compiler_pic_F77='-KPIC'
5 kx lt_prog_compiler_static_F77='-Bstatic'
5 kx ;;
5 kx
5 kx unicos*)
5 kx lt_prog_compiler_wl_F77='-Wl,'
5 kx lt_prog_compiler_can_build_shared_F77=no
5 kx ;;
5 kx
5 kx uts4*)
5 kx lt_prog_compiler_pic_F77='-pic'
5 kx lt_prog_compiler_static_F77='-Bstatic'
5 kx ;;
5 kx
5 kx *)
5 kx lt_prog_compiler_can_build_shared_F77=no
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
5 kx echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
5 kx
5 kx #
5 kx # Check to make sure the PIC flag actually works.
5 kx #
5 kx if test -n "$lt_prog_compiler_pic_F77"; then
5 kx
5 kx { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
5 kx echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
5 kx if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_prog_compiler_pic_works_F77=no
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx lt_compiler_flag="$lt_prog_compiler_pic_F77"
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx # The option is referenced via a variable to avoid confusing sed.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:14124: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>conftest.err)
5 kx ac_status=$?
5 kx cat conftest.err >&5
5 kx echo "$as_me:14128: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s "$ac_outfile"; then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings other than the usual output.
5 kx $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_prog_compiler_pic_works_F77=yes
5 kx fi
5 kx fi
5 kx $rm conftest*
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
5 kx echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
5 kx
5 kx if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
5 kx case $lt_prog_compiler_pic_F77 in
5 kx "" | " "*) ;;
5 kx *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
5 kx esac
5 kx else
5 kx lt_prog_compiler_pic_F77=
5 kx lt_prog_compiler_can_build_shared_F77=no
5 kx fi
5 kx
5 kx fi
5 kx case $host_os in
5 kx # For platforms which do not support PIC, -DPIC is meaningless:
5 kx *djgpp*)
5 kx lt_prog_compiler_pic_F77=
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
5 kx ;;
5 kx esac
5 kx
5 kx #
5 kx # Check to make sure the static flag actually works.
5 kx #
5 kx wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
5 kx { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
5 kx echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
5 kx if test "${lt_prog_compiler_static_works_F77+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_prog_compiler_static_works_F77=no
5 kx save_LDFLAGS="$LDFLAGS"
5 kx LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
5 kx echo "$lt_simple_link_test_code" > conftest.$ac_ext
5 kx if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5 kx # The linker can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings
5 kx if test -s conftest.err; then
5 kx # Append any errors to the config.log.
5 kx cat conftest.err 1>&5
5 kx $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_prog_compiler_static_works_F77=yes
5 kx fi
5 kx else
5 kx lt_prog_compiler_static_works_F77=yes
5 kx fi
5 kx fi
5 kx $rm conftest*
5 kx LDFLAGS="$save_LDFLAGS"
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
5 kx echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
5 kx
5 kx if test x"$lt_prog_compiler_static_works_F77" = xyes; then
5 kx :
5 kx else
5 kx lt_prog_compiler_static_F77=
5 kx fi
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5 kx echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
5 kx if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_cv_prog_compiler_c_o_F77=no
5 kx $rm -r conftest 2>/dev/null
5 kx mkdir conftest
5 kx cd conftest
5 kx mkdir out
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx
5 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:14228: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>out/conftest.err)
5 kx ac_status=$?
5 kx cat out/conftest.err >&5
5 kx echo "$as_me:14232: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
5 kx then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings
5 kx $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
5 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
5 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
5 kx lt_cv_prog_compiler_c_o_F77=yes
5 kx fi
5 kx fi
5 kx chmod u+w . 2>&5
5 kx $rm conftest*
5 kx # SGI C++ compiler will create directory out/ii_files/ for
5 kx # template instantiation
5 kx test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5 kx $rm out/* && rmdir out
5 kx cd ..
5 kx rmdir conftest
5 kx $rm conftest*
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
5 kx echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
5 kx
5 kx
5 kx hard_links="nottested"
5 kx if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
5 kx # do not overwrite the value of need_locks provided by the user
5 kx { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5 kx echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
5 kx hard_links=yes
5 kx $rm conftest*
5 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
5 kx touch conftest.a
5 kx ln conftest.a conftest.b 2>&5 || hard_links=no
5 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
5 kx { echo "$as_me:$LINENO: result: $hard_links" >&5
5 kx echo "${ECHO_T}$hard_links" >&6; }
5 kx if test "$hard_links" = no; then
5 kx { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5 kx echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5 kx need_locks=warn
5 kx fi
5 kx else
5 kx need_locks=no
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5 kx echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
5 kx
5 kx runpath_var=
5 kx allow_undefined_flag_F77=
5 kx enable_shared_with_static_runtimes_F77=no
5 kx archive_cmds_F77=
5 kx archive_expsym_cmds_F77=
5 kx old_archive_From_new_cmds_F77=
5 kx old_archive_from_expsyms_cmds_F77=
5 kx export_dynamic_flag_spec_F77=
5 kx whole_archive_flag_spec_F77=
5 kx thread_safe_flag_spec_F77=
5 kx hardcode_libdir_flag_spec_F77=
5 kx hardcode_libdir_flag_spec_ld_F77=
5 kx hardcode_libdir_separator_F77=
5 kx hardcode_direct_F77=no
5 kx hardcode_minus_L_F77=no
5 kx hardcode_shlibpath_var_F77=unsupported
5 kx link_all_deplibs_F77=unknown
5 kx hardcode_automatic_F77=no
5 kx module_cmds_F77=
5 kx module_expsym_cmds_F77=
5 kx always_export_symbols_F77=no
5 kx export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5 kx # include_expsyms should be a list of space-separated symbols to be *always*
5 kx # included in the symbol list
5 kx include_expsyms_F77=
5 kx # exclude_expsyms can be an extended regexp of symbols to exclude
5 kx # it will be wrapped by ` (' and `)$', so one must not match beginning or
5 kx # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5 kx # as well as any symbol that contains `d'.
5 kx exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
5 kx # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5 kx # platforms (ab)use it in PIC code, but their linkers get confused if
5 kx # the symbol is explicitly referenced. Since portable code cannot
5 kx # rely on this symbol name, it's probably fine to never include it in
5 kx # preloaded symbol tables.
5 kx extract_expsyms_cmds=
5 kx # Just being paranoid about ensuring that cc_basename is set.
5 kx for cc_temp in $compiler""; do
5 kx case $cc_temp in
5 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5 kx \-*) ;;
5 kx *) break;;
5 kx esac
5 kx done
5 kx cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5 kx
5 kx case $host_os in
5 kx cygwin* | mingw* | pw32*)
5 kx # FIXME: the MSVC++ port hasn't been tested in a loooong time
5 kx # When not using gcc, we currently assume that we are using
5 kx # Microsoft Visual C++.
5 kx if test "$GCC" != yes; then
5 kx with_gnu_ld=no
5 kx fi
5 kx ;;
5 kx interix*)
5 kx # we just hope/assume this is gcc and not c89 (= MSVC++)
5 kx with_gnu_ld=yes
5 kx ;;
5 kx openbsd*)
5 kx with_gnu_ld=no
5 kx ;;
5 kx esac
5 kx
5 kx ld_shlibs_F77=yes
5 kx if test "$with_gnu_ld" = yes; then
5 kx # If archive_cmds runs LD, not CC, wlarc should be empty
5 kx wlarc='${wl}'
5 kx
5 kx # Set some defaults for GNU ld with shared library support. These
5 kx # are reset later if shared libraries are not supported. Putting them
5 kx # here allows them to be overridden if necessary.
5 kx runpath_var=LD_RUN_PATH
5 kx hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
5 kx export_dynamic_flag_spec_F77='${wl}--export-dynamic'
5 kx # ancient GNU ld didn't support --whole-archive et. al.
5 kx if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5 kx whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5 kx else
5 kx whole_archive_flag_spec_F77=
5 kx fi
5 kx supports_anon_versioning=no
5 kx case `$LD -v 2>/dev/null` in
5 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5 kx *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5 kx *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5 kx *\ 2.11.*) ;; # other 2.11 versions
5 kx *) supports_anon_versioning=yes ;;
5 kx esac
5 kx
5 kx # See if GNU ld supports shared libraries.
5 kx case $host_os in
5 kx aix3* | aix4* | aix5*)
5 kx # On AIX/PPC, the GNU linker is very broken
5 kx if test "$host_cpu" != ia64; then
5 kx ld_shlibs_F77=no
5 kx cat <<EOF 1>&2
5 kx
5 kx *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5 kx *** to be unable to reliably create shared libraries on AIX.
5 kx *** Therefore, libtool is disabling shared libraries support. If you
5 kx *** really care for shared libraries, you may want to modify your PATH
5 kx *** so that a non-GNU linker is found, and then restart.
5 kx
5 kx EOF
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx archive_cmds_F77='$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)'
5 kx hardcode_libdir_flag_spec_F77='-L$libdir'
5 kx hardcode_minus_L_F77=yes
5 kx
5 kx # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5 kx # that the semantics of dynamic libraries on AmigaOS, at least up
5 kx # to version 4, is to share data among multiple programs linked
5 kx # with the same dynamic library. Since this doesn't match the
5 kx # behavior of shared libraries on other platforms, we can't use
5 kx # them.
5 kx ld_shlibs_F77=no
5 kx ;;
5 kx
5 kx beos*)
5 kx if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx allow_undefined_flag_F77=unsupported
5 kx # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5 kx # support --undefined. This deserves some investigation. FIXME
5 kx archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx else
5 kx ld_shlibs_F77=no
5 kx fi
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32*)
5 kx # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
5 kx # as there is no search path for DLLs.
5 kx hardcode_libdir_flag_spec_F77='-L$libdir'
5 kx allow_undefined_flag_F77=unsupported
5 kx always_export_symbols_F77=no
5 kx enable_shared_with_static_runtimes_F77=yes
5 kx export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
5 kx
5 kx if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5 kx archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5 kx # If the export-symbols file already is a .def file (1st line
5 kx # is EXPORTS), use it as is; otherwise, prepend...
5 kx archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5 kx cp $export_symbols $output_objdir/$soname.def;
5 kx else
5 kx echo EXPORTS > $output_objdir/$soname.def;
5 kx cat $export_symbols >> $output_objdir/$soname.def;
5 kx fi~
5 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'
5 kx else
5 kx ld_shlibs_F77=no
5 kx fi
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx hardcode_direct_F77=no
5 kx hardcode_shlibpath_var_F77=no
5 kx hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
5 kx export_dynamic_flag_spec_F77='${wl}-E'
5 kx # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5 kx # Instead, shared libraries are loaded at an image base (0x10000000 by
5 kx # default) and relocated if they conflict, which is a slow very memory
5 kx # consuming and fragmenting process. To avoid this, we pick a random,
5 kx # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5 kx # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5 kx archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5 kx archive_expsym_cmds_F77='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'
5 kx ;;
5 kx
5 kx gnu* | linux* | k*bsd*-gnu)
5 kx if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx tmp_addflag=
5 kx case $cc_basename,$host_cpu in
5 kx pgcc*) # Portland Group C compiler
5 kx whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5 kx tmp_addflag=' $pic_flag'
5 kx ;;
5 kx pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5 kx whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5 kx tmp_addflag=' $pic_flag -Mnomain' ;;
5 kx ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5 kx tmp_addflag=' -i_dynamic' ;;
5 kx efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5 kx tmp_addflag=' -i_dynamic -nofor_main' ;;
5 kx ifc* | ifort*) # Intel Fortran compiler
5 kx tmp_addflag=' -nofor_main' ;;
5 kx esac
5 kx case `$CC -V 2>&1 | sed 5q` in
5 kx *Sun\ C*) # Sun C 5.9
5 kx whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5 kx tmp_sharedflag='-G' ;;
5 kx *Sun\ F*) # Sun Fortran 8.3
5 kx tmp_sharedflag='-G' ;;
5 kx *)
5 kx tmp_sharedflag='-shared' ;;
5 kx esac
5 kx archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx
5 kx if test $supports_anon_versioning = yes; then
5 kx archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
5 kx cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5 kx $echo "local: *; };" >> $output_objdir/$libname.ver~
5 kx $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5 kx fi
5 kx else
5 kx ld_shlibs_F77=no
5 kx fi
5 kx ;;
5 kx
5 kx netbsd*)
5 kx if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5 kx archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5 kx wlarc=
5 kx else
5 kx archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 kx fi
5 kx ;;
5 kx
5 kx solaris*)
5 kx if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5 kx ld_shlibs_F77=no
5 kx cat <<EOF 1>&2
5 kx
5 kx *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5 kx *** create shared libraries on Solaris systems. Therefore, libtool
5 kx *** is disabling shared libraries support. We urge you to upgrade GNU
5 kx *** binutils to release 2.9.1 or newer. Another option is to modify
5 kx *** your PATH or compiler configuration so that the native linker is
5 kx *** used, and then restart.
5 kx
5 kx EOF
5 kx elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 kx else
5 kx ld_shlibs_F77=no
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5 kx case `$LD -v 2>&1` in
5 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
5 kx ld_shlibs_F77=no
5 kx cat <<_LT_EOF 1>&2
5 kx
5 kx *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5 kx *** reliably create shared libraries on SCO systems. Therefore, libtool
5 kx *** is disabling shared libraries support. We urge you to upgrade GNU
5 kx *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5 kx *** your PATH or compiler configuration so that the native linker is
5 kx *** used, and then restart.
5 kx
5 kx _LT_EOF
5 kx ;;
5 kx *)
5 kx if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5 kx archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5 kx archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5 kx else
5 kx ld_shlibs_F77=no
5 kx fi
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx sunos4*)
5 kx archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5 kx wlarc=
5 kx hardcode_direct_F77=yes
5 kx hardcode_shlibpath_var_F77=no
5 kx ;;
5 kx
5 kx *)
5 kx if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 kx else
5 kx ld_shlibs_F77=no
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx if test "$ld_shlibs_F77" = no; then
5 kx runpath_var=
5 kx hardcode_libdir_flag_spec_F77=
5 kx export_dynamic_flag_spec_F77=
5 kx whole_archive_flag_spec_F77=
5 kx fi
5 kx else
5 kx # PORTME fill in a description of your system's linker (not GNU ld)
5 kx case $host_os in
5 kx aix3*)
5 kx allow_undefined_flag_F77=unsupported
5 kx always_export_symbols_F77=yes
5 kx archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5 kx # Note: this linker hardcodes the directories in LIBPATH if there
5 kx # are no directories specified by -L.
5 kx hardcode_minus_L_F77=yes
5 kx if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5 kx # Neither direct hardcoding nor static linking is supported with a
5 kx # broken collect2.
5 kx hardcode_direct_F77=unsupported
5 kx fi
5 kx ;;
5 kx
5 kx aix4* | aix5*)
5 kx if test "$host_cpu" = ia64; then
5 kx # On IA64, the linker does run time linking by default, so we don't
5 kx # have to do anything special.
5 kx aix_use_runtimelinking=no
5 kx exp_sym_flag='-Bexport'
5 kx no_entry_flag=""
5 kx else
5 kx # If we're using GNU nm, then we don't want the "-C" option.
5 kx # -C means demangle to AIX nm, but means don't demangle with GNU nm
5 kx if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5 kx export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
5 kx else
5 kx export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
5 kx fi
5 kx aix_use_runtimelinking=no
5 kx
5 kx # Test if we are trying to use run time linking or normal
5 kx # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5 kx # need to do runtime linking.
5 kx case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5 kx for ld_flag in $LDFLAGS; do
5 kx if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5 kx aix_use_runtimelinking=yes
5 kx break
5 kx fi
5 kx done
5 kx ;;
5 kx esac
5 kx
5 kx exp_sym_flag='-bexport'
5 kx no_entry_flag='-bnoentry'
5 kx fi
5 kx
5 kx # When large executables or shared objects are built, AIX ld can
5 kx # have problems creating the table of contents. If linking a library
5 kx # or program results in "error TOC overflow" add -mminimal-toc to
5 kx # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5 kx # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5 kx
5 kx archive_cmds_F77=''
5 kx hardcode_direct_F77=yes
5 kx hardcode_libdir_separator_F77=':'
5 kx link_all_deplibs_F77=yes
5 kx
5 kx if test "$GCC" = yes; then
5 kx case $host_os in aix4.[012]|aix4.[012].*)
5 kx # We only want to do this on AIX 4.2 and lower, the check
5 kx # below for broken collect2 doesn't work under 4.3+
5 kx collect2name=`${CC} -print-prog-name=collect2`
5 kx if test -f "$collect2name" && \
5 kx strings "$collect2name" | grep resolve_lib_name >/dev/null
5 kx then
5 kx # We have reworked collect2
5 kx :
5 kx else
5 kx # We have old collect2
5 kx hardcode_direct_F77=unsupported
5 kx # It fails to find uninstalled libraries when the uninstalled
5 kx # path is not listed in the libpath. Setting hardcode_minus_L
5 kx # to unsupported forces relinking
5 kx hardcode_minus_L_F77=yes
5 kx hardcode_libdir_flag_spec_F77='-L$libdir'
5 kx hardcode_libdir_separator_F77=
5 kx fi
5 kx ;;
5 kx esac
5 kx shared_flag='-shared'
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx shared_flag="$shared_flag "'${wl}-G'
5 kx fi
5 kx else
5 kx # not using gcc
5 kx if test "$host_cpu" = ia64; then
5 kx # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5 kx # chokes on -Wl,-G. The following line is correct:
5 kx shared_flag='-G'
5 kx else
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx shared_flag='${wl}-G'
5 kx else
5 kx shared_flag='${wl}-bM:SRE'
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx # It seems that -bexpall does not export symbols beginning with
5 kx # underscore (_), so it is better to generate a list of symbols to export.
5 kx always_export_symbols_F77=yes
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx # Warning - without using the other runtime loading flags (-brtl),
5 kx # -berok will link without error, but may produce a broken library.
5 kx allow_undefined_flag_F77='-berok'
5 kx # Determine the default libpath from the value encoded in an empty executable.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx program main
5 kx
5 kx end
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_f77_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx
5 kx lt_aix_libpath_sed='
5 kx /Import File Strings/,/^$/ {
5 kx /^0/ {
5 kx s/^0 *\(.*\)$/\1/
5 kx p
5 kx }
5 kx }'
5 kx aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx # Check for a 64-bit object if we didn't find anything.
5 kx if test -z "$aix_libpath"; then
5 kx aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx fi
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5 kx
5 kx hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
5 kx archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5 kx else
5 kx if test "$host_cpu" = ia64; then
5 kx hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
5 kx allow_undefined_flag_F77="-z nodefs"
5 kx archive_expsym_cmds_F77="\$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"
5 kx else
5 kx # Determine the default libpath from the value encoded in an empty executable.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx program main
5 kx
5 kx end
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_f77_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx
5 kx lt_aix_libpath_sed='
5 kx /Import File Strings/,/^$/ {
5 kx /^0/ {
5 kx s/^0 *\(.*\)$/\1/
5 kx p
5 kx }
5 kx }'
5 kx aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx # Check for a 64-bit object if we didn't find anything.
5 kx if test -z "$aix_libpath"; then
5 kx aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx fi
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5 kx
5 kx hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
5 kx # Warning - without using the other run time loading flags,
5 kx # -berok will link without error, but may produce a broken library.
5 kx no_undefined_flag_F77=' ${wl}-bernotok'
5 kx allow_undefined_flag_F77=' ${wl}-berok'
5 kx # Exported symbols can be pulled into shared objects from archives
5 kx whole_archive_flag_spec_F77='$convenience'
5 kx archive_cmds_need_lc_F77=yes
5 kx # This is similar to how AIX traditionally builds its shared libraries.
5 kx archive_expsym_cmds_F77="\$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'
5 kx fi
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx archive_cmds_F77='$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)'
5 kx hardcode_libdir_flag_spec_F77='-L$libdir'
5 kx hardcode_minus_L_F77=yes
5 kx # see comment about different semantics on the GNU ld section
5 kx ld_shlibs_F77=no
5 kx ;;
5 kx
5 kx bsdi[45]*)
5 kx export_dynamic_flag_spec_F77=-rdynamic
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32*)
5 kx # When not using gcc, we currently assume that we are using
5 kx # Microsoft Visual C++.
5 kx # hardcode_libdir_flag_spec is actually meaningless, as there is
5 kx # no search path for DLLs.
5 kx hardcode_libdir_flag_spec_F77=' '
5 kx allow_undefined_flag_F77=unsupported
5 kx # Tell ltmain to make .lib files, not .a files.
5 kx libext=lib
5 kx # Tell ltmain to make .dll files, not .so files.
5 kx shrext_cmds=".dll"
5 kx # FIXME: Setting linknames here is a bad hack.
5 kx archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5 kx # The linker will automatically build a .lib file if we build a DLL.
5 kx old_archive_From_new_cmds_F77='true'
5 kx # FIXME: Should let the user specify the lib program.
5 kx old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
5 kx fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
5 kx enable_shared_with_static_runtimes_F77=yes
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx case $host_os in
5 kx rhapsody* | darwin1.[012])
5 kx allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
5 kx ;;
5 kx *) # Darwin 1.3 on
5 kx if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5 kx allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5 kx else
5 kx case ${MACOSX_DEPLOYMENT_TARGET} in
5 kx 10.[012])
5 kx allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5 kx ;;
5 kx 10.*)
5 kx allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx esac
5 kx archive_cmds_need_lc_F77=no
5 kx hardcode_direct_F77=no
5 kx hardcode_automatic_F77=yes
5 kx hardcode_shlibpath_var_F77=unsupported
5 kx whole_archive_flag_spec_F77=''
5 kx link_all_deplibs_F77=yes
5 kx if test "$GCC" = yes ; then
5 kx output_verbose_link_cmd='echo'
5 kx archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5 kx module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5 kx # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5 kx archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx else
5 kx case $cc_basename in
5 kx xlc*)
5 kx output_verbose_link_cmd='echo'
5 kx archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5 kx module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5 kx # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5 kx archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx ;;
5 kx *)
5 kx ld_shlibs_F77=no
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx
5 kx dgux*)
5 kx archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_libdir_flag_spec_F77='-L$libdir'
5 kx hardcode_shlibpath_var_F77=no
5 kx ;;
5 kx
5 kx freebsd1*)
5 kx ld_shlibs_F77=no
5 kx ;;
5 kx
5 kx # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5 kx # support. Future versions do this automatically, but an explicit c++rt0.o
5 kx # does not break anything, and helps significantly (at the cost of a little
5 kx # extra space).
5 kx freebsd2.2*)
5 kx archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5 kx hardcode_libdir_flag_spec_F77='-R$libdir'
5 kx hardcode_direct_F77=yes
5 kx hardcode_shlibpath_var_F77=no
5 kx ;;
5 kx
5 kx # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5 kx freebsd2*)
5 kx archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct_F77=yes
5 kx hardcode_minus_L_F77=yes
5 kx hardcode_shlibpath_var_F77=no
5 kx ;;
5 kx
5 kx # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5 kx freebsd* | dragonfly*)
5 kx archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5 kx hardcode_libdir_flag_spec_F77='-R$libdir'
5 kx hardcode_direct_F77=yes
5 kx hardcode_shlibpath_var_F77=no
5 kx ;;
5 kx
5 kx hpux9*)
5 kx if test "$GCC" = yes; then
5 kx archive_cmds_F77='$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'
5 kx else
5 kx archive_cmds_F77='$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'
5 kx fi
5 kx hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
5 kx hardcode_libdir_separator_F77=:
5 kx hardcode_direct_F77=yes
5 kx
5 kx # hardcode_minus_L: Not really in the search PATH,
5 kx # but as the default location of the library.
5 kx hardcode_minus_L_F77=yes
5 kx export_dynamic_flag_spec_F77='${wl}-E'
5 kx ;;
5 kx
5 kx hpux10*)
5 kx if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5 kx archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5 kx fi
5 kx if test "$with_gnu_ld" = no; then
5 kx hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
5 kx hardcode_libdir_separator_F77=:
5 kx
5 kx hardcode_direct_F77=yes
5 kx export_dynamic_flag_spec_F77='${wl}-E'
5 kx
5 kx # hardcode_minus_L: Not really in the search PATH,
5 kx # but as the default location of the library.
5 kx hardcode_minus_L_F77=yes
5 kx fi
5 kx ;;
5 kx
5 kx hpux11*)
5 kx if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5 kx case $host_cpu in
5 kx hppa*64*)
5 kx archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx ia64*)
5 kx archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx *)
5 kx archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx esac
5 kx else
5 kx case $host_cpu in
5 kx hppa*64*)
5 kx archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx ia64*)
5 kx archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx *)
5 kx archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx esac
5 kx fi
5 kx if test "$with_gnu_ld" = no; then
5 kx hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
5 kx hardcode_libdir_separator_F77=:
5 kx
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx hardcode_libdir_flag_spec_ld_F77='+b $libdir'
5 kx hardcode_direct_F77=no
5 kx hardcode_shlibpath_var_F77=no
5 kx ;;
5 kx *)
5 kx hardcode_direct_F77=yes
5 kx export_dynamic_flag_spec_F77='${wl}-E'
5 kx
5 kx # hardcode_minus_L: Not really in the search PATH,
5 kx # but as the default location of the library.
5 kx hardcode_minus_L_F77=yes
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx if test "$GCC" = yes; then
5 kx archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5 kx else
5 kx archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5 kx hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
5 kx fi
5 kx hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
5 kx hardcode_libdir_separator_F77=:
5 kx link_all_deplibs_F77=yes
5 kx ;;
5 kx
5 kx netbsd*)
5 kx if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5 kx archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5 kx else
5 kx archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5 kx fi
5 kx hardcode_libdir_flag_spec_F77='-R$libdir'
5 kx hardcode_direct_F77=yes
5 kx hardcode_shlibpath_var_F77=no
5 kx ;;
5 kx
5 kx newsos6)
5 kx archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct_F77=yes
5 kx hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
5 kx hardcode_libdir_separator_F77=:
5 kx hardcode_shlibpath_var_F77=no
5 kx ;;
5 kx
5 kx openbsd*)
5 kx if test -f /usr/libexec/ld.so; then
5 kx hardcode_direct_F77=yes
5 kx hardcode_shlibpath_var_F77=no
5 kx if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5 kx archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5 kx hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
5 kx export_dynamic_flag_spec_F77='${wl}-E'
5 kx else
5 kx case $host_os in
5 kx openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5 kx archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_libdir_flag_spec_F77='-R$libdir'
5 kx ;;
5 kx *)
5 kx archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5 kx hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
5 kx ;;
5 kx esac
5 kx fi
5 kx else
5 kx ld_shlibs_F77=no
5 kx fi
5 kx ;;
5 kx
5 kx os2*)
5 kx hardcode_libdir_flag_spec_F77='-L$libdir'
5 kx hardcode_minus_L_F77=yes
5 kx allow_undefined_flag_F77=unsupported
5 kx archive_cmds_F77='$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'
5 kx old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5 kx ;;
5 kx
5 kx osf3*)
5 kx if test "$GCC" = yes; then
5 kx allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
5 kx archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5 kx else
5 kx allow_undefined_flag_F77=' -expect_unresolved \*'
5 kx archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5 kx fi
5 kx hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
5 kx hardcode_libdir_separator_F77=:
5 kx ;;
5 kx
5 kx osf4* | osf5*) # as osf3* with the addition of -msym flag
5 kx if test "$GCC" = yes; then
5 kx allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
5 kx archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5 kx hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
5 kx else
5 kx allow_undefined_flag_F77=' -expect_unresolved \*'
5 kx archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5 kx archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5 kx $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5 kx
5 kx # Both c and cxx compiler support -rpath directly
5 kx hardcode_libdir_flag_spec_F77='-rpath $libdir'
5 kx fi
5 kx hardcode_libdir_separator_F77=:
5 kx ;;
5 kx
5 kx solaris*)
5 kx no_undefined_flag_F77=' -z text'
5 kx if test "$GCC" = yes; then
5 kx wlarc='${wl}'
5 kx archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5 kx $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5 kx else
5 kx wlarc=''
5 kx archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5 kx $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5 kx fi
5 kx hardcode_libdir_flag_spec_F77='-R$libdir'
5 kx hardcode_shlibpath_var_F77=no
5 kx case $host_os in
5 kx solaris2.[0-5] | solaris2.[0-5].*) ;;
5 kx *)
5 kx # The compiler driver will combine and reorder linker options,
5 kx # but understands `-z linker_flag'. GCC discards it without `$wl',
5 kx # but is careful enough not to reorder.
5 kx # Supported since Solaris 2.6 (maybe 2.5.1?)
5 kx if test "$GCC" = yes; then
5 kx whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5 kx else
5 kx whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
5 kx fi
5 kx ;;
5 kx esac
5 kx link_all_deplibs_F77=yes
5 kx ;;
5 kx
5 kx sunos4*)
5 kx if test "x$host_vendor" = xsequent; then
5 kx # Use $CC to link under sequent, because it throws in some extra .o
5 kx # files that make .init and .fini sections work.
5 kx archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5 kx fi
5 kx hardcode_libdir_flag_spec_F77='-L$libdir'
5 kx hardcode_direct_F77=yes
5 kx hardcode_minus_L_F77=yes
5 kx hardcode_shlibpath_var_F77=no
5 kx ;;
5 kx
5 kx sysv4)
5 kx case $host_vendor in
5 kx sni)
5 kx archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct_F77=yes # is this really true???
5 kx ;;
5 kx siemens)
5 kx ## LD is ld it makes a PLAMLIB
5 kx ## CC just makes a GrossModule.
5 kx archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5 kx reload_cmds_F77='$CC -r -o $output$reload_objs'
5 kx hardcode_direct_F77=no
5 kx ;;
5 kx motorola)
5 kx archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
5 kx ;;
5 kx esac
5 kx runpath_var='LD_RUN_PATH'
5 kx hardcode_shlibpath_var_F77=no
5 kx ;;
5 kx
5 kx sysv4.3*)
5 kx archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_shlibpath_var_F77=no
5 kx export_dynamic_flag_spec_F77='-Bexport'
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec; then
5 kx archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_shlibpath_var_F77=no
5 kx runpath_var=LD_RUN_PATH
5 kx hardcode_runpath_var=yes
5 kx ld_shlibs_F77=yes
5 kx fi
5 kx ;;
5 kx
5 kx sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
5 kx no_undefined_flag_F77='${wl}-z,text'
5 kx archive_cmds_need_lc_F77=no
5 kx hardcode_shlibpath_var_F77=no
5 kx runpath_var='LD_RUN_PATH'
5 kx
5 kx if test "$GCC" = yes; then
5 kx archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6*)
5 kx # Note: We can NOT use -z defs as we might desire, because we do not
5 kx # link with -lc, and that would cause any symbols used from libc to
5 kx # always be unresolved, which means just about no library would
5 kx # ever link correctly. If we're not using GNU ld we use -z text
5 kx # though, which does catch some bad symbols but isn't as heavy-handed
5 kx # as -z defs.
5 kx no_undefined_flag_F77='${wl}-z,text'
5 kx allow_undefined_flag_F77='${wl}-z,nodefs'
5 kx archive_cmds_need_lc_F77=no
5 kx hardcode_shlibpath_var_F77=no
5 kx hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
5 kx hardcode_libdir_separator_F77=':'
5 kx link_all_deplibs_F77=yes
5 kx export_dynamic_flag_spec_F77='${wl}-Bexport'
5 kx runpath_var='LD_RUN_PATH'
5 kx
5 kx if test "$GCC" = yes; then
5 kx archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx fi
5 kx ;;
5 kx
5 kx uts4*)
5 kx archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_libdir_flag_spec_F77='-L$libdir'
5 kx hardcode_shlibpath_var_F77=no
5 kx ;;
5 kx
5 kx *)
5 kx ld_shlibs_F77=no
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
5 kx echo "${ECHO_T}$ld_shlibs_F77" >&6; }
5 kx test "$ld_shlibs_F77" = no && can_build_shared=no
5 kx
5 kx #
5 kx # Do we need to explicitly link libc?
5 kx #
5 kx case "x$archive_cmds_need_lc_F77" in
5 kx x|xyes)
5 kx # Assume -lc should be added
5 kx archive_cmds_need_lc_F77=yes
5 kx
5 kx if test "$enable_shared" = yes && test "$GCC" = yes; then
5 kx case $archive_cmds_F77 in
5 kx *'~'*)
5 kx # FIXME: we may have to deal with multi-command sequences.
5 kx ;;
5 kx '$CC '*)
5 kx # Test whether the compiler implicitly links with -lc since on some
5 kx # systems, -lgcc has to come before -lc. If gcc already passes -lc
5 kx # to ld, don't add -lc before -lgcc.
5 kx { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
5 kx echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
5 kx $rm conftest*
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx
5 kx if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } 2>conftest.err; then
5 kx soname=conftest
5 kx lib=conftest
5 kx libobjs=conftest.$ac_objext
5 kx deplibs=
5 kx wl=$lt_prog_compiler_wl_F77
5 kx pic_flag=$lt_prog_compiler_pic_F77
5 kx compiler_flags=-v
5 kx linker_flags=-v
5 kx verstring=
5 kx output_objdir=.
5 kx libname=conftest
5 kx lt_save_allow_undefined_flag=$allow_undefined_flag_F77
5 kx allow_undefined_flag_F77=
5 kx if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5 kx (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx then
5 kx archive_cmds_need_lc_F77=no
5 kx else
5 kx archive_cmds_need_lc_F77=yes
5 kx fi
5 kx allow_undefined_flag_F77=$lt_save_allow_undefined_flag
5 kx else
5 kx cat conftest.err 1>&5
5 kx fi
5 kx $rm conftest*
5 kx { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
5 kx echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5 kx echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
5 kx library_names_spec=
5 kx libname_spec='lib$name'
5 kx soname_spec=
5 kx shrext_cmds=".so"
5 kx postinstall_cmds=
5 kx postuninstall_cmds=
5 kx finish_cmds=
5 kx finish_eval=
5 kx shlibpath_var=
5 kx shlibpath_overrides_runpath=unknown
5 kx version_type=none
5 kx dynamic_linker="$host_os ld.so"
5 kx sys_lib_dlsearch_path_spec="/lib /usr/lib"
5 kx
5 kx need_lib_prefix=unknown
5 kx hardcode_into_libs=no
5 kx
5 kx # when you set need_version to no, make sure it does not cause -set_version
5 kx # flags to be left without arguments
5 kx need_version=unknown
5 kx
5 kx case $host_os in
5 kx aix3*)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
5 kx shlibpath_var=LIBPATH
5 kx
5 kx # AIX 3 has no versioning support, so we append a major version to the name.
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx ;;
5 kx
5 kx aix4* | aix5*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx hardcode_into_libs=yes
5 kx if test "$host_cpu" = ia64; then
5 kx # AIX 5 supports IA64
5 kx library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx else
5 kx # With GCC up to 2.95.x, collect2 would create an import file
5 kx # for dependence libraries. The import file would start with
5 kx # the line `#! .'. This would cause the generated library to
5 kx # depend on `.', always an invalid library. This was fixed in
5 kx # development snapshots of GCC prior to 3.0.
5 kx case $host_os in
5 kx aix4 | aix4.[01] | aix4.[01].*)
5 kx if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5 kx echo ' yes '
5 kx echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5 kx :
5 kx else
5 kx can_build_shared=no
5 kx fi
5 kx ;;
5 kx esac
5 kx # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5 kx # soname into executable. Probably we can add versioning support to
5 kx # collect2, so additional links can be useful in future.
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5 kx # instead of lib<name>.a to let people know that these are not
5 kx # typical AIX shared libraries.
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx else
5 kx # We preserve .a as extension for shared libraries through AIX4.2
5 kx # and later when we are not doing run time linking.
5 kx library_names_spec='${libname}${release}.a $libname.a'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx fi
5 kx shlibpath_var=LIBPATH
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx library_names_spec='$libname.ixlibrary $libname.a'
5 kx # Create ${libname}_ixlibrary.a entries in /sys/libs.
5 kx finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
5 kx ;;
5 kx
5 kx beos*)
5 kx library_names_spec='${libname}${shared_ext}'
5 kx dynamic_linker="$host_os ld.so"
5 kx shlibpath_var=LIBRARY_PATH
5 kx ;;
5 kx
5 kx bsdi[45]*)
5 kx version_type=linux
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5 kx sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5 kx # the default ld.so.conf also contains /usr/contrib/lib and
5 kx # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5 kx # libtool to hard-code these into programs
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32*)
5 kx version_type=windows
5 kx shrext_cmds=".dll"
5 kx need_version=no
5 kx need_lib_prefix=no
5 kx
5 kx case $GCC,$host_os in
5 kx yes,cygwin* | yes,mingw* | yes,pw32*)
5 kx library_names_spec='$libname.dll.a'
5 kx # DLL is installed to $(libdir)/../bin by postinstall_cmds
5 kx postinstall_cmds='base_file=`basename \${file}`~
5 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
5 kx dldir=$destdir/`dirname \$dlpath`~
5 kx test -d \$dldir || mkdir -p \$dldir~
5 kx $install_prog $dir/$dlname \$dldir/$dlname~
5 kx chmod a+x \$dldir/$dlname'
5 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
5 kx dlpath=$dir/\$dldll~
5 kx $rm \$dlpath'
5 kx shlibpath_overrides_runpath=yes
5 kx
5 kx case $host_os in
5 kx cygwin*)
5 kx # Cygwin DLLs use 'cyg' prefix rather than 'lib'
5 kx soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5 kx sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
5 kx ;;
5 kx mingw*)
5 kx # MinGW DLLs use traditional 'lib' prefix
5 kx soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5 kx sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
5 kx if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
5 kx # It is most probably a Windows format PATH printed by
5 kx # mingw gcc, but we are running on Cygwin. Gcc prints its search
5 kx # path with ; separators, and with drive letters. We can handle the
5 kx # drive letters (cygwin fileutils understands them), so leave them,
5 kx # especially as we might pass files found there to a mingw objdump,
5 kx # which wouldn't understand a cygwinified path. Ahh.
5 kx sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
5 kx else
5 kx sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
5 kx fi
5 kx ;;
5 kx pw32*)
5 kx # pw32 DLLs use 'pw' prefix rather than 'lib'
5 kx library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx *)
5 kx library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
5 kx ;;
5 kx esac
5 kx dynamic_linker='Win32 ld.exe'
5 kx # FIXME: first we should search . and the directory the executable is in
5 kx shlibpath_var=PATH
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx dynamic_linker="$host_os dyld"
5 kx version_type=darwin
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
5 kx soname_spec='${libname}${release}${major}$shared_ext'
5 kx shlibpath_overrides_runpath=yes
5 kx shlibpath_var=DYLD_LIBRARY_PATH
5 kx shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
5 kx
5 kx sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
5 kx ;;
5 kx
5 kx dgux*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx ;;
5 kx
5 kx freebsd1*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx freebsd* | dragonfly*)
5 kx # DragonFly does not have aout. When/if they implement a new
5 kx # versioning mechanism, adjust this.
5 kx if test -x /usr/bin/objformat; then
5 kx objformat=`/usr/bin/objformat`
5 kx else
5 kx case $host_os in
5 kx freebsd[123]*) objformat=aout ;;
5 kx *) objformat=elf ;;
5 kx esac
5 kx fi
5 kx version_type=freebsd-$objformat
5 kx case $version_type in
5 kx freebsd-elf*)
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5 kx need_version=no
5 kx need_lib_prefix=no
5 kx ;;
5 kx freebsd-*)
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
5 kx need_version=yes
5 kx ;;
5 kx esac
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx case $host_os in
5 kx freebsd2*)
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx freebsd3.[01]* | freebsdelf3.[01]*)
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
5 kx freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
5 kx shlibpath_overrides_runpath=no
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx *) # from 4.6 on, and DragonFly
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx gnu*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx hpux9* | hpux10* | hpux11*)
5 kx # Give a soname corresponding to the major version so that dld.sl refuses to
5 kx # link against other versions.
5 kx version_type=sunos
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx case $host_cpu in
5 kx ia64*)
5 kx shrext_cmds='.so'
5 kx hardcode_into_libs=yes
5 kx dynamic_linker="$host_os dld.so"
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx if test "X$HPUX_IA64_MODE" = X32; then
5 kx sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
5 kx else
5 kx sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
5 kx fi
5 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5 kx ;;
5 kx hppa*64*)
5 kx shrext_cmds='.sl'
5 kx hardcode_into_libs=yes
5 kx dynamic_linker="$host_os dld.sl"
5 kx shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
5 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5 kx ;;
5 kx *)
5 kx shrext_cmds='.sl'
5 kx dynamic_linker="$host_os dld.sl"
5 kx shlibpath_var=SHLIB_PATH
5 kx shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx ;;
5 kx esac
5 kx # HP-UX runs *really* slowly unless shared libraries are mode 555.
5 kx postinstall_cmds='chmod 555 $lib'
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=no
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx case $host_os in
5 kx nonstopux*) version_type=nonstopux ;;
5 kx *)
5 kx if test "$lt_cv_prog_gnu_ld" = yes; then
5 kx version_type=linux
5 kx else
5 kx version_type=irix
5 kx fi ;;
5 kx esac
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
5 kx case $host_os in
5 kx irix5* | nonstopux*)
5 kx libsuff= shlibsuff=
5 kx ;;
5 kx *)
5 kx case $LD in # libtool.m4 will add one of these switches to LD
5 kx *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5 kx libsuff= shlibsuff= libmagic=32-bit;;
5 kx *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5 kx libsuff=32 shlibsuff=N32 libmagic=N32;;
5 kx *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5 kx libsuff=64 shlibsuff=64 libmagic=64-bit;;
5 kx *) libsuff= shlibsuff= libmagic=never-match;;
5 kx esac
5 kx ;;
5 kx esac
5 kx shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5 kx shlibpath_overrides_runpath=no
5 kx sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5 kx sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx # No shared lib support for Linux oldld, aout, or coff.
5 kx linux*oldld* | linux*aout* | linux*coff*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx # This must be Linux ELF.
5 kx linux* | k*bsd*-gnu)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=no
5 kx # This implies no fast_install, which is unacceptable.
5 kx # Some rework will be needed to allow for fast_install
5 kx # before this can be enabled.
5 kx hardcode_into_libs=yes
5 kx sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5 kx sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5 kx
5 kx # Append ld.so.conf contents to the search path
5 kx if test -f /etc/ld.so.conf; then
5 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;/^$/d' | tr '\n' ' '`
5 kx sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
5 kx fi
5 kx
5 kx # We used to test for /lib/ld.so.1 and disable shared libraries on
5 kx # powerpc, because MkLinux only supported shared libraries with the
5 kx # GNU dynamic linker. Since this was broken with cross compilers,
5 kx # most powerpc-linux boxes support dynamic linking these days and
5 kx # people can always --disable-shared, the test was removed, and we
5 kx # assume the GNU/Linux dynamic linker is in use.
5 kx dynamic_linker='GNU/Linux ld.so'
5 kx ;;
5 kx
5 kx netbsd*)
5 kx version_type=sunos
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5 kx dynamic_linker='NetBSD (a.out) ld.so'
5 kx else
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx dynamic_linker='NetBSD ld.elf_so'
5 kx fi
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx newsos6)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx
5 kx nto-qnx*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx
5 kx openbsd*)
5 kx version_type=sunos
5 kx sys_lib_dlsearch_path_spec="/usr/lib"
5 kx need_lib_prefix=no
5 kx # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
5 kx case $host_os in
5 kx openbsd3.3 | openbsd3.3.*) need_version=yes ;;
5 kx *) need_version=no ;;
5 kx esac
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5 kx case $host_os in
5 kx openbsd2.[89] | openbsd2.[89].*)
5 kx shlibpath_overrides_runpath=no
5 kx ;;
5 kx *)
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx esac
5 kx else
5 kx shlibpath_overrides_runpath=yes
5 kx fi
5 kx ;;
5 kx
5 kx os2*)
5 kx libname_spec='$name'
5 kx shrext_cmds=".dll"
5 kx need_lib_prefix=no
5 kx library_names_spec='$libname${shared_ext} $libname.a'
5 kx dynamic_linker='OS/2 ld.exe'
5 kx shlibpath_var=LIBPATH
5 kx ;;
5 kx
5 kx osf3* | osf4* | osf5*)
5 kx version_type=osf
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5 kx sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5 kx ;;
5 kx
5 kx rdos*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx solaris*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx # ldd complains unless libraries are executable
5 kx postinstall_cmds='chmod +x $lib'
5 kx ;;
5 kx
5 kx sunos4*)
5 kx version_type=sunos
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5 kx finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx if test "$with_gnu_ld" = yes; then
5 kx need_lib_prefix=no
5 kx fi
5 kx need_version=yes
5 kx ;;
5 kx
5 kx sysv4 | sysv4.3*)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx case $host_vendor in
5 kx sni)
5 kx shlibpath_overrides_runpath=no
5 kx need_lib_prefix=no
5 kx export_dynamic_flag_spec='${wl}-Blargedynsym'
5 kx runpath_var=LD_RUN_PATH
5 kx ;;
5 kx siemens)
5 kx need_lib_prefix=no
5 kx ;;
5 kx motorola)
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx shlibpath_overrides_runpath=no
5 kx sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec ;then
5 kx version_type=linux
5 kx library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5 kx soname_spec='$libname${shared_ext}.$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5 kx version_type=freebsd-elf
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx hardcode_into_libs=yes
5 kx if test "$with_gnu_ld" = yes; then
5 kx sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
5 kx shlibpath_overrides_runpath=no
5 kx else
5 kx sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
5 kx shlibpath_overrides_runpath=yes
5 kx case $host_os in
5 kx sco3.2v5*)
5 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
5 kx ;;
5 kx esac
5 kx fi
5 kx sys_lib_dlsearch_path_spec='/usr/lib'
5 kx ;;
5 kx
5 kx uts4*)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx ;;
5 kx
5 kx *)
5 kx dynamic_linker=no
5 kx ;;
5 kx esac
5 kx { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5 kx echo "${ECHO_T}$dynamic_linker" >&6; }
5 kx test "$dynamic_linker" = no && can_build_shared=no
5 kx
5 kx variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5 kx if test "$GCC" = yes; then
5 kx variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5 kx echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
5 kx hardcode_action_F77=
5 kx if test -n "$hardcode_libdir_flag_spec_F77" || \
5 kx test -n "$runpath_var_F77" || \
5 kx test "X$hardcode_automatic_F77" = "Xyes" ; then
5 kx
5 kx # We can hardcode non-existant directories.
5 kx if test "$hardcode_direct_F77" != no &&
5 kx # If the only mechanism to avoid hardcoding is shlibpath_var, we
5 kx # have to relink, otherwise we might link with an installed library
5 kx # when we should be linking with a yet-to-be-installed one
5 kx ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
5 kx test "$hardcode_minus_L_F77" != no; then
5 kx # Linking always hardcodes the temporary library directory.
5 kx hardcode_action_F77=relink
5 kx else
5 kx # We can link without hardcoding, and we can hardcode nonexisting dirs.
5 kx hardcode_action_F77=immediate
5 kx fi
5 kx else
5 kx # We cannot hardcode anything, or else we can only hardcode existing
5 kx # directories.
5 kx hardcode_action_F77=unsupported
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
5 kx echo "${ECHO_T}$hardcode_action_F77" >&6; }
5 kx
5 kx if test "$hardcode_action_F77" = relink; then
5 kx # Fast installation is not supported
5 kx enable_fast_install=no
5 kx elif test "$shlibpath_overrides_runpath" = yes ||
5 kx test "$enable_shared" = no; then
5 kx # Fast installation is not necessary
5 kx enable_fast_install=needless
5 kx fi
5 kx
5 kx
5 kx # The else clause should only fire when bootstrapping the
5 kx # libtool distribution, otherwise you forgot to ship ltmain.sh
5 kx # with your package, and you will get complaints that there are
5 kx # no rules to generate ltmain.sh.
5 kx if test -f "$ltmain"; then
5 kx # See if we are running on zsh, and set the options which allow our commands through
5 kx # without removal of \ escapes.
5 kx if test -n "${ZSH_VERSION+set}" ; then
5 kx setopt NO_GLOB_SUBST
5 kx fi
5 kx # Now quote all the things that may contain metacharacters while being
5 kx # careful not to overquote the AC_SUBSTed values. We take copies of the
5 kx # variables and quote the copies for generation of the libtool script.
5 kx for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5 kx SED SHELL STRIP \
5 kx libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5 kx old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5 kx deplibs_check_method reload_flag reload_cmds need_locks \
5 kx lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5 kx lt_cv_sys_global_symbol_to_c_name_address \
5 kx sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5 kx old_postinstall_cmds old_postuninstall_cmds \
5 kx compiler_F77 \
5 kx CC_F77 \
5 kx LD_F77 \
5 kx lt_prog_compiler_wl_F77 \
5 kx lt_prog_compiler_pic_F77 \
5 kx lt_prog_compiler_static_F77 \
5 kx lt_prog_compiler_no_builtin_flag_F77 \
5 kx export_dynamic_flag_spec_F77 \
5 kx thread_safe_flag_spec_F77 \
5 kx whole_archive_flag_spec_F77 \
5 kx enable_shared_with_static_runtimes_F77 \
5 kx old_archive_cmds_F77 \
5 kx old_archive_from_new_cmds_F77 \
5 kx predep_objects_F77 \
5 kx postdep_objects_F77 \
5 kx predeps_F77 \
5 kx postdeps_F77 \
5 kx compiler_lib_search_path_F77 \
5 kx archive_cmds_F77 \
5 kx archive_expsym_cmds_F77 \
5 kx postinstall_cmds_F77 \
5 kx postuninstall_cmds_F77 \
5 kx old_archive_from_expsyms_cmds_F77 \
5 kx allow_undefined_flag_F77 \
5 kx no_undefined_flag_F77 \
5 kx export_symbols_cmds_F77 \
5 kx hardcode_libdir_flag_spec_F77 \
5 kx hardcode_libdir_flag_spec_ld_F77 \
5 kx hardcode_libdir_separator_F77 \
5 kx hardcode_automatic_F77 \
5 kx module_cmds_F77 \
5 kx module_expsym_cmds_F77 \
5 kx lt_cv_prog_compiler_c_o_F77 \
5 kx fix_srcfile_path_F77 \
5 kx exclude_expsyms_F77 \
5 kx include_expsyms_F77; do
5 kx
5 kx case $var in
5 kx old_archive_cmds_F77 | \
5 kx old_archive_from_new_cmds_F77 | \
5 kx archive_cmds_F77 | \
5 kx archive_expsym_cmds_F77 | \
5 kx module_cmds_F77 | \
5 kx module_expsym_cmds_F77 | \
5 kx old_archive_from_expsyms_cmds_F77 | \
5 kx export_symbols_cmds_F77 | \
5 kx extract_expsyms_cmds | reload_cmds | finish_cmds | \
5 kx postinstall_cmds | postuninstall_cmds | \
5 kx old_postinstall_cmds | old_postuninstall_cmds | \
5 kx sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5 kx # Double-quote double-evaled strings.
5 kx eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5 kx ;;
5 kx *)
5 kx eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5 kx ;;
5 kx esac
5 kx done
5 kx
5 kx case $lt_echo in
5 kx *'\$0 --fallback-echo"')
5 kx lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
5 kx ;;
5 kx esac
5 kx
5 kx cfgfile="$ofile"
5 kx
5 kx cat <<__EOF__ >> "$cfgfile"
5 kx # ### BEGIN LIBTOOL TAG CONFIG: $tagname
5 kx
5 kx # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5 kx
5 kx # Shell to use when invoking shell scripts.
5 kx SHELL=$lt_SHELL
5 kx
5 kx # Whether or not to build shared libraries.
5 kx build_libtool_libs=$enable_shared
5 kx
5 kx # Whether or not to build static libraries.
5 kx build_old_libs=$enable_static
5 kx
5 kx # Whether or not to add -lc for building shared libraries.
5 kx build_libtool_need_lc=$archive_cmds_need_lc_F77
5 kx
5 kx # Whether or not to disallow shared libs when runtime libs are static
5 kx allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
5 kx
5 kx # Whether or not to optimize for fast installation.
5 kx fast_install=$enable_fast_install
5 kx
5 kx # The host system.
5 kx host_alias=$host_alias
5 kx host=$host
5 kx host_os=$host_os
5 kx
5 kx # The build system.
5 kx build_alias=$build_alias
5 kx build=$build
5 kx build_os=$build_os
5 kx
5 kx # An echo program that does not interpret backslashes.
5 kx echo=$lt_echo
5 kx
5 kx # The archiver.
5 kx AR=$lt_AR
5 kx AR_FLAGS=$lt_AR_FLAGS
5 kx
5 kx # A C compiler.
5 kx LTCC=$lt_LTCC
5 kx
5 kx # LTCC compiler flags.
5 kx LTCFLAGS=$lt_LTCFLAGS
5 kx
5 kx # A language-specific compiler.
5 kx CC=$lt_compiler_F77
5 kx
5 kx # Is the compiler the GNU C compiler?
5 kx with_gcc=$GCC_F77
5 kx
5 kx # An ERE matcher.
5 kx EGREP=$lt_EGREP
5 kx
5 kx # The linker used to build libraries.
5 kx LD=$lt_LD_F77
5 kx
5 kx # Whether we need hard or soft links.
5 kx LN_S=$lt_LN_S
5 kx
5 kx # A BSD-compatible nm program.
5 kx NM=$lt_NM
5 kx
5 kx # A symbol stripping program
5 kx STRIP=$lt_STRIP
5 kx
5 kx # Used to examine libraries when file_magic_cmd begins "file"
5 kx MAGIC_CMD=$MAGIC_CMD
5 kx
5 kx # Used on cygwin: DLL creation program.
5 kx DLLTOOL="$DLLTOOL"
5 kx
5 kx # Used on cygwin: object dumper.
5 kx OBJDUMP="$OBJDUMP"
5 kx
5 kx # Used on cygwin: assembler.
5 kx AS="$AS"
5 kx
5 kx # The name of the directory that contains temporary libtool files.
5 kx objdir=$objdir
5 kx
5 kx # How to create reloadable object files.
5 kx reload_flag=$lt_reload_flag
5 kx reload_cmds=$lt_reload_cmds
5 kx
5 kx # How to pass a linker flag through the compiler.
5 kx wl=$lt_lt_prog_compiler_wl_F77
5 kx
5 kx # Object file suffix (normally "o").
5 kx objext="$ac_objext"
5 kx
5 kx # Old archive suffix (normally "a").
5 kx libext="$libext"
5 kx
5 kx # Shared library suffix (normally ".so").
5 kx shrext_cmds='$shrext_cmds'
5 kx
5 kx # Executable file suffix (normally "").
5 kx exeext="$exeext"
5 kx
5 kx # Additional compiler flags for building library objects.
5 kx pic_flag=$lt_lt_prog_compiler_pic_F77
5 kx pic_mode=$pic_mode
5 kx
5 kx # What is the maximum length of a command?
5 kx max_cmd_len=$lt_cv_sys_max_cmd_len
5 kx
5 kx # Does compiler simultaneously support -c and -o options?
5 kx compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
5 kx
5 kx # Must we lock files when doing compilation?
5 kx need_locks=$lt_need_locks
5 kx
5 kx # Do we need the lib prefix for modules?
5 kx need_lib_prefix=$need_lib_prefix
5 kx
5 kx # Do we need a version for libraries?
5 kx need_version=$need_version
5 kx
5 kx # Whether dlopen is supported.
5 kx dlopen_support=$enable_dlopen
5 kx
5 kx # Whether dlopen of programs is supported.
5 kx dlopen_self=$enable_dlopen_self
5 kx
5 kx # Whether dlopen of statically linked programs is supported.
5 kx dlopen_self_static=$enable_dlopen_self_static
5 kx
5 kx # Compiler flag to prevent dynamic linking.
5 kx link_static_flag=$lt_lt_prog_compiler_static_F77
5 kx
5 kx # Compiler flag to turn off builtin functions.
5 kx no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
5 kx
5 kx # Compiler flag to allow reflexive dlopens.
5 kx export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
5 kx
5 kx # Compiler flag to generate shared objects directly from archives.
5 kx whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
5 kx
5 kx # Compiler flag to generate thread-safe objects.
5 kx thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
5 kx
5 kx # Library versioning type.
5 kx version_type=$version_type
5 kx
5 kx # Format of library name prefix.
5 kx libname_spec=$lt_libname_spec
5 kx
5 kx # List of archive names. First name is the real one, the rest are links.
5 kx # The last name is the one that the linker finds with -lNAME.
5 kx library_names_spec=$lt_library_names_spec
5 kx
5 kx # The coded name of the library, if different from the real name.
5 kx soname_spec=$lt_soname_spec
5 kx
5 kx # Commands used to build and install an old-style archive.
5 kx RANLIB=$lt_RANLIB
5 kx old_archive_cmds=$lt_old_archive_cmds_F77
5 kx old_postinstall_cmds=$lt_old_postinstall_cmds
5 kx old_postuninstall_cmds=$lt_old_postuninstall_cmds
5 kx
5 kx # Create an old-style archive from a shared archive.
5 kx old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
5 kx
5 kx # Create a temporary old-style archive to link instead of a shared archive.
5 kx old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
5 kx
5 kx # Commands used to build and install a shared archive.
5 kx archive_cmds=$lt_archive_cmds_F77
5 kx archive_expsym_cmds=$lt_archive_expsym_cmds_F77
5 kx postinstall_cmds=$lt_postinstall_cmds
5 kx postuninstall_cmds=$lt_postuninstall_cmds
5 kx
5 kx # Commands used to build a loadable module (assumed same as above if empty)
5 kx module_cmds=$lt_module_cmds_F77
5 kx module_expsym_cmds=$lt_module_expsym_cmds_F77
5 kx
5 kx # Commands to strip libraries.
5 kx old_striplib=$lt_old_striplib
5 kx striplib=$lt_striplib
5 kx
5 kx # Dependencies to place before the objects being linked to create a
5 kx # shared library.
5 kx predep_objects=$lt_predep_objects_F77
5 kx
5 kx # Dependencies to place after the objects being linked to create a
5 kx # shared library.
5 kx postdep_objects=$lt_postdep_objects_F77
5 kx
5 kx # Dependencies to place before the objects being linked to create a
5 kx # shared library.
5 kx predeps=$lt_predeps_F77
5 kx
5 kx # Dependencies to place after the objects being linked to create a
5 kx # shared library.
5 kx postdeps=$lt_postdeps_F77
5 kx
5 kx # The library search path used internally by the compiler when linking
5 kx # a shared library.
5 kx compiler_lib_search_path=$lt_compiler_lib_search_path_F77
5 kx
5 kx # Method to check whether dependent libraries are shared objects.
5 kx deplibs_check_method=$lt_deplibs_check_method
5 kx
5 kx # Command to use when deplibs_check_method == file_magic.
5 kx file_magic_cmd=$lt_file_magic_cmd
5 kx
5 kx # Flag that allows shared libraries with undefined symbols to be built.
5 kx allow_undefined_flag=$lt_allow_undefined_flag_F77
5 kx
5 kx # Flag that forces no undefined symbols.
5 kx no_undefined_flag=$lt_no_undefined_flag_F77
5 kx
5 kx # Commands used to finish a libtool library installation in a directory.
5 kx finish_cmds=$lt_finish_cmds
5 kx
5 kx # Same as above, but a single script fragment to be evaled but not shown.
5 kx finish_eval=$lt_finish_eval
5 kx
5 kx # Take the output of nm and produce a listing of raw symbols and C names.
5 kx global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5 kx
5 kx # Transform the output of nm in a proper C declaration
5 kx global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5 kx
5 kx # Transform the output of nm in a C name address pair
5 kx global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5 kx
5 kx # This is the shared library runtime path variable.
5 kx runpath_var=$runpath_var
5 kx
5 kx # This is the shared library path variable.
5 kx shlibpath_var=$shlibpath_var
5 kx
5 kx # Is shlibpath searched before the hard-coded library search path?
5 kx shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5 kx
5 kx # How to hardcode a shared library path into an executable.
5 kx hardcode_action=$hardcode_action_F77
5 kx
5 kx # Whether we should hardcode library paths into libraries.
5 kx hardcode_into_libs=$hardcode_into_libs
5 kx
5 kx # Flag to hardcode \$libdir into a binary during linking.
5 kx # This must work even if \$libdir does not exist.
5 kx hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
5 kx
5 kx # If ld is used when linking, flag to hardcode \$libdir into
5 kx # a binary during linking. This must work even if \$libdir does
5 kx # not exist.
5 kx hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
5 kx
5 kx # Whether we need a single -rpath flag with a separated argument.
5 kx hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
5 kx
5 kx # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5 kx # resulting binary.
5 kx hardcode_direct=$hardcode_direct_F77
5 kx
5 kx # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5 kx # resulting binary.
5 kx hardcode_minus_L=$hardcode_minus_L_F77
5 kx
5 kx # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5 kx # the resulting binary.
5 kx hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
5 kx
5 kx # Set to yes if building a shared library automatically hardcodes DIR into the library
5 kx # and all subsequent libraries and executables linked against it.
5 kx hardcode_automatic=$hardcode_automatic_F77
5 kx
5 kx # Variables whose values should be saved in libtool wrapper scripts and
5 kx # restored at relink time.
5 kx variables_saved_for_relink="$variables_saved_for_relink"
5 kx
5 kx # Whether libtool must link a program against all its dependency libraries.
5 kx link_all_deplibs=$link_all_deplibs_F77
5 kx
5 kx # Compile-time system search path for libraries
5 kx sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5 kx
5 kx # Run-time system search path for libraries
5 kx sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5 kx
5 kx # Fix the shell variable \$srcfile for the compiler.
5 kx fix_srcfile_path=$lt_fix_srcfile_path
5 kx
5 kx # Set to yes if exported symbols are required.
5 kx always_export_symbols=$always_export_symbols_F77
5 kx
5 kx # The commands to list exported symbols.
5 kx export_symbols_cmds=$lt_export_symbols_cmds_F77
5 kx
5 kx # The commands to extract the exported symbol list from a shared archive.
5 kx extract_expsyms_cmds=$lt_extract_expsyms_cmds
5 kx
5 kx # Symbols that should not be listed in the preloaded symbols.
5 kx exclude_expsyms=$lt_exclude_expsyms_F77
5 kx
5 kx # Symbols that must always be exported.
5 kx include_expsyms=$lt_include_expsyms_F77
5 kx
5 kx # ### END LIBTOOL TAG CONFIG: $tagname
5 kx
5 kx __EOF__
5 kx
5 kx
5 kx else
5 kx # If there is no Makefile yet, we rely on a make rule to execute
5 kx # `config.status --recheck' to rerun these tests and create the
5 kx # libtool script then.
5 kx ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5 kx if test -f "$ltmain_in"; then
5 kx test -f Makefile && make "$ltmain"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx CC="$lt_save_CC"
5 kx
5 kx else
5 kx tagname=""
5 kx fi
5 kx ;;
5 kx
5 kx GCJ)
5 kx if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
5 kx
5 kx
5 kx # Source file extension for Java test sources.
5 kx ac_ext=java
5 kx
5 kx # Object file extension for compiled Java test sources.
5 kx objext=o
5 kx objext_GCJ=$objext
5 kx
5 kx # Code to be used in simple compile tests
5 kx lt_simple_compile_test_code="class foo {}"
5 kx
5 kx # Code to be used in simple link tests
5 kx lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
5 kx
5 kx # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5 kx
5 kx # If no C compiler was specified, use CC.
5 kx LTCC=${LTCC-"$CC"}
5 kx
5 kx # If no C compiler flags were specified, use CFLAGS.
5 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5 kx
5 kx # Allow CC to be a program name with arguments.
5 kx compiler=$CC
5 kx
5 kx
5 kx # save warnings/boilerplate of simple test code
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5 kx eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5 kx _lt_compiler_boilerplate=`cat conftest.err`
5 kx $rm conftest*
5 kx
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_link_test_code" >conftest.$ac_ext
5 kx eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5 kx _lt_linker_boilerplate=`cat conftest.err`
5 kx $rm conftest*
5 kx
5 kx
5 kx # Allow CC to be a program name with arguments.
5 kx lt_save_CC="$CC"
5 kx CC=${GCJ-"gcj"}
5 kx compiler=$CC
5 kx compiler_GCJ=$CC
5 kx for cc_temp in $compiler""; do
5 kx case $cc_temp in
5 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5 kx \-*) ;;
5 kx *) break;;
5 kx esac
5 kx done
5 kx cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5 kx
5 kx
5 kx # GCJ did not exist at the time GCC didn't implicitly link libc in.
5 kx archive_cmds_need_lc_GCJ=no
5 kx
5 kx old_archive_cmds_GCJ=$old_archive_cmds
5 kx
5 kx
5 kx lt_prog_compiler_no_builtin_flag_GCJ=
5 kx
5 kx if test "$GCC" = yes; then
5 kx lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5 kx echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
5 kx if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_cv_prog_compiler_rtti_exceptions=no
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx lt_compiler_flag="-fno-rtti -fno-exceptions"
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx # The option is referenced via a variable to avoid confusing sed.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:16417: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>conftest.err)
5 kx ac_status=$?
5 kx cat conftest.err >&5
5 kx echo "$as_me:16421: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s "$ac_outfile"; then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings other than the usual output.
5 kx $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_cv_prog_compiler_rtti_exceptions=yes
5 kx fi
5 kx fi
5 kx $rm conftest*
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5 kx echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
5 kx
5 kx if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5 kx lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
5 kx else
5 kx :
5 kx fi
5 kx
5 kx fi
5 kx
5 kx lt_prog_compiler_wl_GCJ=
5 kx lt_prog_compiler_pic_GCJ=
5 kx lt_prog_compiler_static_GCJ=
5 kx
5 kx { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5 kx echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
5 kx
5 kx if test "$GCC" = yes; then
5 kx lt_prog_compiler_wl_GCJ='-Wl,'
5 kx lt_prog_compiler_static_GCJ='-static'
5 kx
5 kx case $host_os in
5 kx aix*)
5 kx # All AIX code is PIC.
5 kx if test "$host_cpu" = ia64; then
5 kx # AIX 5 now supports IA64 processor
5 kx lt_prog_compiler_static_GCJ='-Bstatic'
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx # FIXME: we need at least 68020 code to build shared libraries, but
5 kx # adding the `-m68020' flag to GCC prevents building anything better,
5 kx # like `-m68040'.
5 kx lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
5 kx ;;
5 kx
5 kx beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5 kx # PIC is the default for these OSes.
5 kx ;;
5 kx
5 kx mingw* | cygwin* | pw32* | os2*)
5 kx # This hack is so that the source file can tell whether it is being
5 kx # built for inclusion in a dll (and should export symbols for example).
5 kx # Although the cygwin gcc ignores -fPIC, still need this for old-style
5 kx # (--disable-auto-import) libraries
5 kx lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx # PIC is the default on this platform
5 kx # Common symbols not allowed in MH_DYLIB files
5 kx lt_prog_compiler_pic_GCJ='-fno-common'
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5 kx # Instead, we relocate shared libraries at runtime.
5 kx ;;
5 kx
5 kx msdosdjgpp*)
5 kx # Just because we use GCC doesn't mean we suddenly get shared libraries
5 kx # on systems that don't support them.
5 kx lt_prog_compiler_can_build_shared_GCJ=no
5 kx enable_shared=no
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec; then
5 kx lt_prog_compiler_pic_GCJ=-Kconform_pic
5 kx fi
5 kx ;;
5 kx
5 kx hpux*)
5 kx # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5 kx # not for PA HP-UX.
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx # +Z the default
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic_GCJ='-fPIC'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx *)
5 kx lt_prog_compiler_pic_GCJ='-fPIC'
5 kx ;;
5 kx esac
5 kx else
5 kx # PORTME Check for flag to pass linker flags through the system compiler.
5 kx case $host_os in
5 kx aix*)
5 kx lt_prog_compiler_wl_GCJ='-Wl,'
5 kx if test "$host_cpu" = ia64; then
5 kx # AIX 5 now supports IA64 processor
5 kx lt_prog_compiler_static_GCJ='-Bstatic'
5 kx else
5 kx lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
5 kx fi
5 kx ;;
5 kx darwin*)
5 kx # PIC is the default on this platform
5 kx # Common symbols not allowed in MH_DYLIB files
5 kx case $cc_basename in
5 kx xlc*)
5 kx lt_prog_compiler_pic_GCJ='-qnocommon'
5 kx lt_prog_compiler_wl_GCJ='-Wl,'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx mingw* | cygwin* | pw32* | os2*)
5 kx # This hack is so that the source file can tell whether it is being
5 kx # built for inclusion in a dll (and should export symbols for example).
5 kx lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
5 kx ;;
5 kx
5 kx hpux9* | hpux10* | hpux11*)
5 kx lt_prog_compiler_wl_GCJ='-Wl,'
5 kx # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5 kx # not for PA HP-UX.
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx # +Z the default
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic_GCJ='+Z'
5 kx ;;
5 kx esac
5 kx # Is there a better lt_prog_compiler_static that works with the bundled CC?
5 kx lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx lt_prog_compiler_wl_GCJ='-Wl,'
5 kx # PIC (with -KPIC) is the default.
5 kx lt_prog_compiler_static_GCJ='-non_shared'
5 kx ;;
5 kx
5 kx newsos6)
5 kx lt_prog_compiler_pic_GCJ='-KPIC'
5 kx lt_prog_compiler_static_GCJ='-Bstatic'
5 kx ;;
5 kx
5 kx linux* | k*bsd*-gnu)
5 kx case $cc_basename in
5 kx icc* | ecc*)
5 kx lt_prog_compiler_wl_GCJ='-Wl,'
5 kx lt_prog_compiler_pic_GCJ='-KPIC'
5 kx lt_prog_compiler_static_GCJ='-static'
5 kx ;;
5 kx pgcc* | pgf77* | pgf90* | pgf95*)
5 kx # Portland Group compilers (*not* the Pentium gcc compiler,
5 kx # which looks to be a dead project)
5 kx lt_prog_compiler_wl_GCJ='-Wl,'
5 kx lt_prog_compiler_pic_GCJ='-fpic'
5 kx lt_prog_compiler_static_GCJ='-Bstatic'
5 kx ;;
5 kx ccc*)
5 kx lt_prog_compiler_wl_GCJ='-Wl,'
5 kx # All Alpha code is PIC.
5 kx lt_prog_compiler_static_GCJ='-non_shared'
5 kx ;;
5 kx *)
5 kx case `$CC -V 2>&1 | sed 5q` in
5 kx *Sun\ C*)
5 kx # Sun C 5.9
5 kx lt_prog_compiler_pic_GCJ='-KPIC'
5 kx lt_prog_compiler_static_GCJ='-Bstatic'
5 kx lt_prog_compiler_wl_GCJ='-Wl,'
5 kx ;;
5 kx *Sun\ F*)
5 kx # Sun Fortran 8.3 passes all unrecognized flags to the linker
5 kx lt_prog_compiler_pic_GCJ='-KPIC'
5 kx lt_prog_compiler_static_GCJ='-Bstatic'
5 kx lt_prog_compiler_wl_GCJ=''
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx osf3* | osf4* | osf5*)
5 kx lt_prog_compiler_wl_GCJ='-Wl,'
5 kx # All OSF/1 code is PIC.
5 kx lt_prog_compiler_static_GCJ='-non_shared'
5 kx ;;
5 kx
5 kx rdos*)
5 kx lt_prog_compiler_static_GCJ='-non_shared'
5 kx ;;
5 kx
5 kx solaris*)
5 kx lt_prog_compiler_pic_GCJ='-KPIC'
5 kx lt_prog_compiler_static_GCJ='-Bstatic'
5 kx case $cc_basename in
5 kx f77* | f90* | f95*)
5 kx lt_prog_compiler_wl_GCJ='-Qoption ld ';;
5 kx *)
5 kx lt_prog_compiler_wl_GCJ='-Wl,';;
5 kx esac
5 kx ;;
5 kx
5 kx sunos4*)
5 kx lt_prog_compiler_wl_GCJ='-Qoption ld '
5 kx lt_prog_compiler_pic_GCJ='-PIC'
5 kx lt_prog_compiler_static_GCJ='-Bstatic'
5 kx ;;
5 kx
5 kx sysv4 | sysv4.2uw2* | sysv4.3*)
5 kx lt_prog_compiler_wl_GCJ='-Wl,'
5 kx lt_prog_compiler_pic_GCJ='-KPIC'
5 kx lt_prog_compiler_static_GCJ='-Bstatic'
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec ;then
5 kx lt_prog_compiler_pic_GCJ='-Kconform_pic'
5 kx lt_prog_compiler_static_GCJ='-Bstatic'
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5 kx lt_prog_compiler_wl_GCJ='-Wl,'
5 kx lt_prog_compiler_pic_GCJ='-KPIC'
5 kx lt_prog_compiler_static_GCJ='-Bstatic'
5 kx ;;
5 kx
5 kx unicos*)
5 kx lt_prog_compiler_wl_GCJ='-Wl,'
5 kx lt_prog_compiler_can_build_shared_GCJ=no
5 kx ;;
5 kx
5 kx uts4*)
5 kx lt_prog_compiler_pic_GCJ='-pic'
5 kx lt_prog_compiler_static_GCJ='-Bstatic'
5 kx ;;
5 kx
5 kx *)
5 kx lt_prog_compiler_can_build_shared_GCJ=no
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
5 kx echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
5 kx
5 kx #
5 kx # Check to make sure the PIC flag actually works.
5 kx #
5 kx if test -n "$lt_prog_compiler_pic_GCJ"; then
5 kx
5 kx { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
5 kx echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
5 kx if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_prog_compiler_pic_works_GCJ=no
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx # The option is referenced via a variable to avoid confusing sed.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:16707: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>conftest.err)
5 kx ac_status=$?
5 kx cat conftest.err >&5
5 kx echo "$as_me:16711: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s "$ac_outfile"; then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings other than the usual output.
5 kx $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_prog_compiler_pic_works_GCJ=yes
5 kx fi
5 kx fi
5 kx $rm conftest*
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
5 kx echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
5 kx
5 kx if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
5 kx case $lt_prog_compiler_pic_GCJ in
5 kx "" | " "*) ;;
5 kx *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
5 kx esac
5 kx else
5 kx lt_prog_compiler_pic_GCJ=
5 kx lt_prog_compiler_can_build_shared_GCJ=no
5 kx fi
5 kx
5 kx fi
5 kx case $host_os in
5 kx # For platforms which do not support PIC, -DPIC is meaningless:
5 kx *djgpp*)
5 kx lt_prog_compiler_pic_GCJ=
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
5 kx ;;
5 kx esac
5 kx
5 kx #
5 kx # Check to make sure the static flag actually works.
5 kx #
5 kx wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
5 kx { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
5 kx echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
5 kx if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_prog_compiler_static_works_GCJ=no
5 kx save_LDFLAGS="$LDFLAGS"
5 kx LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
5 kx echo "$lt_simple_link_test_code" > conftest.$ac_ext
5 kx if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5 kx # The linker can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings
5 kx if test -s conftest.err; then
5 kx # Append any errors to the config.log.
5 kx cat conftest.err 1>&5
5 kx $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_prog_compiler_static_works_GCJ=yes
5 kx fi
5 kx else
5 kx lt_prog_compiler_static_works_GCJ=yes
5 kx fi
5 kx fi
5 kx $rm conftest*
5 kx LDFLAGS="$save_LDFLAGS"
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
5 kx echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
5 kx
5 kx if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
5 kx :
5 kx else
5 kx lt_prog_compiler_static_GCJ=
5 kx fi
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5 kx echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
5 kx if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx lt_cv_prog_compiler_c_o_GCJ=no
5 kx $rm -r conftest 2>/dev/null
5 kx mkdir conftest
5 kx cd conftest
5 kx mkdir out
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx
5 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:16811: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>out/conftest.err)
5 kx ac_status=$?
5 kx cat out/conftest.err >&5
5 kx echo "$as_me:16815: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
5 kx then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings
5 kx $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
5 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
5 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
5 kx lt_cv_prog_compiler_c_o_GCJ=yes
5 kx fi
5 kx fi
5 kx chmod u+w . 2>&5
5 kx $rm conftest*
5 kx # SGI C++ compiler will create directory out/ii_files/ for
5 kx # template instantiation
5 kx test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5 kx $rm out/* && rmdir out
5 kx cd ..
5 kx rmdir conftest
5 kx $rm conftest*
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
5 kx echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
5 kx
5 kx
5 kx hard_links="nottested"
5 kx if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
5 kx # do not overwrite the value of need_locks provided by the user
5 kx { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5 kx echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
5 kx hard_links=yes
5 kx $rm conftest*
5 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
5 kx touch conftest.a
5 kx ln conftest.a conftest.b 2>&5 || hard_links=no
5 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
5 kx { echo "$as_me:$LINENO: result: $hard_links" >&5
5 kx echo "${ECHO_T}$hard_links" >&6; }
5 kx if test "$hard_links" = no; then
5 kx { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5 kx echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5 kx need_locks=warn
5 kx fi
5 kx else
5 kx need_locks=no
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5 kx echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
5 kx
5 kx runpath_var=
5 kx allow_undefined_flag_GCJ=
5 kx enable_shared_with_static_runtimes_GCJ=no
5 kx archive_cmds_GCJ=
5 kx archive_expsym_cmds_GCJ=
5 kx old_archive_From_new_cmds_GCJ=
5 kx old_archive_from_expsyms_cmds_GCJ=
5 kx export_dynamic_flag_spec_GCJ=
5 kx whole_archive_flag_spec_GCJ=
5 kx thread_safe_flag_spec_GCJ=
5 kx hardcode_libdir_flag_spec_GCJ=
5 kx hardcode_libdir_flag_spec_ld_GCJ=
5 kx hardcode_libdir_separator_GCJ=
5 kx hardcode_direct_GCJ=no
5 kx hardcode_minus_L_GCJ=no
5 kx hardcode_shlibpath_var_GCJ=unsupported
5 kx link_all_deplibs_GCJ=unknown
5 kx hardcode_automatic_GCJ=no
5 kx module_cmds_GCJ=
5 kx module_expsym_cmds_GCJ=
5 kx always_export_symbols_GCJ=no
5 kx export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5 kx # include_expsyms should be a list of space-separated symbols to be *always*
5 kx # included in the symbol list
5 kx include_expsyms_GCJ=
5 kx # exclude_expsyms can be an extended regexp of symbols to exclude
5 kx # it will be wrapped by ` (' and `)$', so one must not match beginning or
5 kx # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5 kx # as well as any symbol that contains `d'.
5 kx exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
5 kx # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5 kx # platforms (ab)use it in PIC code, but their linkers get confused if
5 kx # the symbol is explicitly referenced. Since portable code cannot
5 kx # rely on this symbol name, it's probably fine to never include it in
5 kx # preloaded symbol tables.
5 kx extract_expsyms_cmds=
5 kx # Just being paranoid about ensuring that cc_basename is set.
5 kx for cc_temp in $compiler""; do
5 kx case $cc_temp in
5 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5 kx \-*) ;;
5 kx *) break;;
5 kx esac
5 kx done
5 kx cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5 kx
5 kx case $host_os in
5 kx cygwin* | mingw* | pw32*)
5 kx # FIXME: the MSVC++ port hasn't been tested in a loooong time
5 kx # When not using gcc, we currently assume that we are using
5 kx # Microsoft Visual C++.
5 kx if test "$GCC" != yes; then
5 kx with_gnu_ld=no
5 kx fi
5 kx ;;
5 kx interix*)
5 kx # we just hope/assume this is gcc and not c89 (= MSVC++)
5 kx with_gnu_ld=yes
5 kx ;;
5 kx openbsd*)
5 kx with_gnu_ld=no
5 kx ;;
5 kx esac
5 kx
5 kx ld_shlibs_GCJ=yes
5 kx if test "$with_gnu_ld" = yes; then
5 kx # If archive_cmds runs LD, not CC, wlarc should be empty
5 kx wlarc='${wl}'
5 kx
5 kx # Set some defaults for GNU ld with shared library support. These
5 kx # are reset later if shared libraries are not supported. Putting them
5 kx # here allows them to be overridden if necessary.
5 kx runpath_var=LD_RUN_PATH
5 kx hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
5 kx export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
5 kx # ancient GNU ld didn't support --whole-archive et. al.
5 kx if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5 kx whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5 kx else
5 kx whole_archive_flag_spec_GCJ=
5 kx fi
5 kx supports_anon_versioning=no
5 kx case `$LD -v 2>/dev/null` in
5 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5 kx *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5 kx *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5 kx *\ 2.11.*) ;; # other 2.11 versions
5 kx *) supports_anon_versioning=yes ;;
5 kx esac
5 kx
5 kx # See if GNU ld supports shared libraries.
5 kx case $host_os in
5 kx aix3* | aix4* | aix5*)
5 kx # On AIX/PPC, the GNU linker is very broken
5 kx if test "$host_cpu" != ia64; then
5 kx ld_shlibs_GCJ=no
5 kx cat <<EOF 1>&2
5 kx
5 kx *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5 kx *** to be unable to reliably create shared libraries on AIX.
5 kx *** Therefore, libtool is disabling shared libraries support. If you
5 kx *** really care for shared libraries, you may want to modify your PATH
5 kx *** so that a non-GNU linker is found, and then restart.
5 kx
5 kx EOF
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx archive_cmds_GCJ='$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)'
5 kx hardcode_libdir_flag_spec_GCJ='-L$libdir'
5 kx hardcode_minus_L_GCJ=yes
5 kx
5 kx # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5 kx # that the semantics of dynamic libraries on AmigaOS, at least up
5 kx # to version 4, is to share data among multiple programs linked
5 kx # with the same dynamic library. Since this doesn't match the
5 kx # behavior of shared libraries on other platforms, we can't use
5 kx # them.
5 kx ld_shlibs_GCJ=no
5 kx ;;
5 kx
5 kx beos*)
5 kx if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx allow_undefined_flag_GCJ=unsupported
5 kx # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5 kx # support --undefined. This deserves some investigation. FIXME
5 kx archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx else
5 kx ld_shlibs_GCJ=no
5 kx fi
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32*)
5 kx # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
5 kx # as there is no search path for DLLs.
5 kx hardcode_libdir_flag_spec_GCJ='-L$libdir'
5 kx allow_undefined_flag_GCJ=unsupported
5 kx always_export_symbols_GCJ=no
5 kx enable_shared_with_static_runtimes_GCJ=yes
5 kx export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
5 kx
5 kx if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5 kx archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5 kx # If the export-symbols file already is a .def file (1st line
5 kx # is EXPORTS), use it as is; otherwise, prepend...
5 kx archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5 kx cp $export_symbols $output_objdir/$soname.def;
5 kx else
5 kx echo EXPORTS > $output_objdir/$soname.def;
5 kx cat $export_symbols >> $output_objdir/$soname.def;
5 kx fi~
5 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'
5 kx else
5 kx ld_shlibs_GCJ=no
5 kx fi
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx hardcode_direct_GCJ=no
5 kx hardcode_shlibpath_var_GCJ=no
5 kx hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
5 kx export_dynamic_flag_spec_GCJ='${wl}-E'
5 kx # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5 kx # Instead, shared libraries are loaded at an image base (0x10000000 by
5 kx # default) and relocated if they conflict, which is a slow very memory
5 kx # consuming and fragmenting process. To avoid this, we pick a random,
5 kx # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5 kx # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5 kx archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5 kx archive_expsym_cmds_GCJ='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'
5 kx ;;
5 kx
5 kx gnu* | linux* | k*bsd*-gnu)
5 kx if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx tmp_addflag=
5 kx case $cc_basename,$host_cpu in
5 kx pgcc*) # Portland Group C compiler
5 kx whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5 kx tmp_addflag=' $pic_flag'
5 kx ;;
5 kx pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5 kx whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5 kx tmp_addflag=' $pic_flag -Mnomain' ;;
5 kx ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5 kx tmp_addflag=' -i_dynamic' ;;
5 kx efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5 kx tmp_addflag=' -i_dynamic -nofor_main' ;;
5 kx ifc* | ifort*) # Intel Fortran compiler
5 kx tmp_addflag=' -nofor_main' ;;
5 kx esac
5 kx case `$CC -V 2>&1 | sed 5q` in
5 kx *Sun\ C*) # Sun C 5.9
5 kx whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5 kx tmp_sharedflag='-G' ;;
5 kx *Sun\ F*) # Sun Fortran 8.3
5 kx tmp_sharedflag='-G' ;;
5 kx *)
5 kx tmp_sharedflag='-shared' ;;
5 kx esac
5 kx archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx
5 kx if test $supports_anon_versioning = yes; then
5 kx archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
5 kx cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5 kx $echo "local: *; };" >> $output_objdir/$libname.ver~
5 kx $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5 kx fi
5 kx else
5 kx ld_shlibs_GCJ=no
5 kx fi
5 kx ;;
5 kx
5 kx netbsd*)
5 kx if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5 kx archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5 kx wlarc=
5 kx else
5 kx archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 kx fi
5 kx ;;
5 kx
5 kx solaris*)
5 kx if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5 kx ld_shlibs_GCJ=no
5 kx cat <<EOF 1>&2
5 kx
5 kx *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5 kx *** create shared libraries on Solaris systems. Therefore, libtool
5 kx *** is disabling shared libraries support. We urge you to upgrade GNU
5 kx *** binutils to release 2.9.1 or newer. Another option is to modify
5 kx *** your PATH or compiler configuration so that the native linker is
5 kx *** used, and then restart.
5 kx
5 kx EOF
5 kx elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 kx else
5 kx ld_shlibs_GCJ=no
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5 kx case `$LD -v 2>&1` in
5 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
5 kx ld_shlibs_GCJ=no
5 kx cat <<_LT_EOF 1>&2
5 kx
5 kx *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5 kx *** reliably create shared libraries on SCO systems. Therefore, libtool
5 kx *** is disabling shared libraries support. We urge you to upgrade GNU
5 kx *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5 kx *** your PATH or compiler configuration so that the native linker is
5 kx *** used, and then restart.
5 kx
5 kx _LT_EOF
5 kx ;;
5 kx *)
5 kx if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5 kx archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5 kx archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5 kx else
5 kx ld_shlibs_GCJ=no
5 kx fi
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx sunos4*)
5 kx archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5 kx wlarc=
5 kx hardcode_direct_GCJ=yes
5 kx hardcode_shlibpath_var_GCJ=no
5 kx ;;
5 kx
5 kx *)
5 kx if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5 kx archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 kx else
5 kx ld_shlibs_GCJ=no
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx if test "$ld_shlibs_GCJ" = no; then
5 kx runpath_var=
5 kx hardcode_libdir_flag_spec_GCJ=
5 kx export_dynamic_flag_spec_GCJ=
5 kx whole_archive_flag_spec_GCJ=
5 kx fi
5 kx else
5 kx # PORTME fill in a description of your system's linker (not GNU ld)
5 kx case $host_os in
5 kx aix3*)
5 kx allow_undefined_flag_GCJ=unsupported
5 kx always_export_symbols_GCJ=yes
5 kx archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5 kx # Note: this linker hardcodes the directories in LIBPATH if there
5 kx # are no directories specified by -L.
5 kx hardcode_minus_L_GCJ=yes
5 kx if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5 kx # Neither direct hardcoding nor static linking is supported with a
5 kx # broken collect2.
5 kx hardcode_direct_GCJ=unsupported
5 kx fi
5 kx ;;
5 kx
5 kx aix4* | aix5*)
5 kx if test "$host_cpu" = ia64; then
5 kx # On IA64, the linker does run time linking by default, so we don't
5 kx # have to do anything special.
5 kx aix_use_runtimelinking=no
5 kx exp_sym_flag='-Bexport'
5 kx no_entry_flag=""
5 kx else
5 kx # If we're using GNU nm, then we don't want the "-C" option.
5 kx # -C means demangle to AIX nm, but means don't demangle with GNU nm
5 kx if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5 kx export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
5 kx else
5 kx export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
5 kx fi
5 kx aix_use_runtimelinking=no
5 kx
5 kx # Test if we are trying to use run time linking or normal
5 kx # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5 kx # need to do runtime linking.
5 kx case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5 kx for ld_flag in $LDFLAGS; do
5 kx if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5 kx aix_use_runtimelinking=yes
5 kx break
5 kx fi
5 kx done
5 kx ;;
5 kx esac
5 kx
5 kx exp_sym_flag='-bexport'
5 kx no_entry_flag='-bnoentry'
5 kx fi
5 kx
5 kx # When large executables or shared objects are built, AIX ld can
5 kx # have problems creating the table of contents. If linking a library
5 kx # or program results in "error TOC overflow" add -mminimal-toc to
5 kx # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5 kx # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5 kx
5 kx archive_cmds_GCJ=''
5 kx hardcode_direct_GCJ=yes
5 kx hardcode_libdir_separator_GCJ=':'
5 kx link_all_deplibs_GCJ=yes
5 kx
5 kx if test "$GCC" = yes; then
5 kx case $host_os in aix4.[012]|aix4.[012].*)
5 kx # We only want to do this on AIX 4.2 and lower, the check
5 kx # below for broken collect2 doesn't work under 4.3+
5 kx collect2name=`${CC} -print-prog-name=collect2`
5 kx if test -f "$collect2name" && \
5 kx strings "$collect2name" | grep resolve_lib_name >/dev/null
5 kx then
5 kx # We have reworked collect2
5 kx :
5 kx else
5 kx # We have old collect2
5 kx hardcode_direct_GCJ=unsupported
5 kx # It fails to find uninstalled libraries when the uninstalled
5 kx # path is not listed in the libpath. Setting hardcode_minus_L
5 kx # to unsupported forces relinking
5 kx hardcode_minus_L_GCJ=yes
5 kx hardcode_libdir_flag_spec_GCJ='-L$libdir'
5 kx hardcode_libdir_separator_GCJ=
5 kx fi
5 kx ;;
5 kx esac
5 kx shared_flag='-shared'
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx shared_flag="$shared_flag "'${wl}-G'
5 kx fi
5 kx else
5 kx # not using gcc
5 kx if test "$host_cpu" = ia64; then
5 kx # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5 kx # chokes on -Wl,-G. The following line is correct:
5 kx shared_flag='-G'
5 kx else
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx shared_flag='${wl}-G'
5 kx else
5 kx shared_flag='${wl}-bM:SRE'
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx # It seems that -bexpall does not export symbols beginning with
5 kx # underscore (_), so it is better to generate a list of symbols to export.
5 kx always_export_symbols_GCJ=yes
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx # Warning - without using the other runtime loading flags (-brtl),
5 kx # -berok will link without error, but may produce a broken library.
5 kx allow_undefined_flag_GCJ='-berok'
5 kx # Determine the default libpath from the value encoded in an empty executable.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx
5 kx lt_aix_libpath_sed='
5 kx /Import File Strings/,/^$/ {
5 kx /^0/ {
5 kx s/^0 *\(.*\)$/\1/
5 kx p
5 kx }
5 kx }'
5 kx aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx # Check for a 64-bit object if we didn't find anything.
5 kx if test -z "$aix_libpath"; then
5 kx aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx fi
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5 kx
5 kx hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
5 kx archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5 kx else
5 kx if test "$host_cpu" = ia64; then
5 kx hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
5 kx allow_undefined_flag_GCJ="-z nodefs"
5 kx archive_expsym_cmds_GCJ="\$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"
5 kx else
5 kx # Determine the default libpath from the value encoded in an empty executable.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx
5 kx lt_aix_libpath_sed='
5 kx /Import File Strings/,/^$/ {
5 kx /^0/ {
5 kx s/^0 *\(.*\)$/\1/
5 kx p
5 kx }
5 kx }'
5 kx aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx # Check for a 64-bit object if we didn't find anything.
5 kx if test -z "$aix_libpath"; then
5 kx aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx fi
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5 kx
5 kx hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
5 kx # Warning - without using the other run time loading flags,
5 kx # -berok will link without error, but may produce a broken library.
5 kx no_undefined_flag_GCJ=' ${wl}-bernotok'
5 kx allow_undefined_flag_GCJ=' ${wl}-berok'
5 kx # Exported symbols can be pulled into shared objects from archives
5 kx whole_archive_flag_spec_GCJ='$convenience'
5 kx archive_cmds_need_lc_GCJ=yes
5 kx # This is similar to how AIX traditionally builds its shared libraries.
5 kx archive_expsym_cmds_GCJ="\$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'
5 kx fi
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx archive_cmds_GCJ='$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)'
5 kx hardcode_libdir_flag_spec_GCJ='-L$libdir'
5 kx hardcode_minus_L_GCJ=yes
5 kx # see comment about different semantics on the GNU ld section
5 kx ld_shlibs_GCJ=no
5 kx ;;
5 kx
5 kx bsdi[45]*)
5 kx export_dynamic_flag_spec_GCJ=-rdynamic
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32*)
5 kx # When not using gcc, we currently assume that we are using
5 kx # Microsoft Visual C++.
5 kx # hardcode_libdir_flag_spec is actually meaningless, as there is
5 kx # no search path for DLLs.
5 kx hardcode_libdir_flag_spec_GCJ=' '
5 kx allow_undefined_flag_GCJ=unsupported
5 kx # Tell ltmain to make .lib files, not .a files.
5 kx libext=lib
5 kx # Tell ltmain to make .dll files, not .so files.
5 kx shrext_cmds=".dll"
5 kx # FIXME: Setting linknames here is a bad hack.
5 kx archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5 kx # The linker will automatically build a .lib file if we build a DLL.
5 kx old_archive_From_new_cmds_GCJ='true'
5 kx # FIXME: Should let the user specify the lib program.
5 kx old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
5 kx fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
5 kx enable_shared_with_static_runtimes_GCJ=yes
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx case $host_os in
5 kx rhapsody* | darwin1.[012])
5 kx allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
5 kx ;;
5 kx *) # Darwin 1.3 on
5 kx if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5 kx allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5 kx else
5 kx case ${MACOSX_DEPLOYMENT_TARGET} in
5 kx 10.[012])
5 kx allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5 kx ;;
5 kx 10.*)
5 kx allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx esac
5 kx archive_cmds_need_lc_GCJ=no
5 kx hardcode_direct_GCJ=no
5 kx hardcode_automatic_GCJ=yes
5 kx hardcode_shlibpath_var_GCJ=unsupported
5 kx whole_archive_flag_spec_GCJ=''
5 kx link_all_deplibs_GCJ=yes
5 kx if test "$GCC" = yes ; then
5 kx output_verbose_link_cmd='echo'
5 kx archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5 kx module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5 kx # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5 kx archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx else
5 kx case $cc_basename in
5 kx xlc*)
5 kx output_verbose_link_cmd='echo'
5 kx archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5 kx module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5 kx # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5 kx archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5 kx ;;
5 kx *)
5 kx ld_shlibs_GCJ=no
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx
5 kx dgux*)
5 kx archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_libdir_flag_spec_GCJ='-L$libdir'
5 kx hardcode_shlibpath_var_GCJ=no
5 kx ;;
5 kx
5 kx freebsd1*)
5 kx ld_shlibs_GCJ=no
5 kx ;;
5 kx
5 kx # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5 kx # support. Future versions do this automatically, but an explicit c++rt0.o
5 kx # does not break anything, and helps significantly (at the cost of a little
5 kx # extra space).
5 kx freebsd2.2*)
5 kx archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5 kx hardcode_libdir_flag_spec_GCJ='-R$libdir'
5 kx hardcode_direct_GCJ=yes
5 kx hardcode_shlibpath_var_GCJ=no
5 kx ;;
5 kx
5 kx # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5 kx freebsd2*)
5 kx archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct_GCJ=yes
5 kx hardcode_minus_L_GCJ=yes
5 kx hardcode_shlibpath_var_GCJ=no
5 kx ;;
5 kx
5 kx # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5 kx freebsd* | dragonfly*)
5 kx archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5 kx hardcode_libdir_flag_spec_GCJ='-R$libdir'
5 kx hardcode_direct_GCJ=yes
5 kx hardcode_shlibpath_var_GCJ=no
5 kx ;;
5 kx
5 kx hpux9*)
5 kx if test "$GCC" = yes; then
5 kx archive_cmds_GCJ='$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'
5 kx else
5 kx archive_cmds_GCJ='$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'
5 kx fi
5 kx hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
5 kx hardcode_libdir_separator_GCJ=:
5 kx hardcode_direct_GCJ=yes
5 kx
5 kx # hardcode_minus_L: Not really in the search PATH,
5 kx # but as the default location of the library.
5 kx hardcode_minus_L_GCJ=yes
5 kx export_dynamic_flag_spec_GCJ='${wl}-E'
5 kx ;;
5 kx
5 kx hpux10*)
5 kx if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5 kx archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5 kx fi
5 kx if test "$with_gnu_ld" = no; then
5 kx hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
5 kx hardcode_libdir_separator_GCJ=:
5 kx
5 kx hardcode_direct_GCJ=yes
5 kx export_dynamic_flag_spec_GCJ='${wl}-E'
5 kx
5 kx # hardcode_minus_L: Not really in the search PATH,
5 kx # but as the default location of the library.
5 kx hardcode_minus_L_GCJ=yes
5 kx fi
5 kx ;;
5 kx
5 kx hpux11*)
5 kx if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5 kx case $host_cpu in
5 kx hppa*64*)
5 kx archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx ia64*)
5 kx archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx *)
5 kx archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx esac
5 kx else
5 kx case $host_cpu in
5 kx hppa*64*)
5 kx archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx ia64*)
5 kx archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx *)
5 kx archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx esac
5 kx fi
5 kx if test "$with_gnu_ld" = no; then
5 kx hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
5 kx hardcode_libdir_separator_GCJ=:
5 kx
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
5 kx hardcode_direct_GCJ=no
5 kx hardcode_shlibpath_var_GCJ=no
5 kx ;;
5 kx *)
5 kx hardcode_direct_GCJ=yes
5 kx export_dynamic_flag_spec_GCJ='${wl}-E'
5 kx
5 kx # hardcode_minus_L: Not really in the search PATH,
5 kx # but as the default location of the library.
5 kx hardcode_minus_L_GCJ=yes
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx if test "$GCC" = yes; then
5 kx archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5 kx else
5 kx archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5 kx hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
5 kx fi
5 kx hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
5 kx hardcode_libdir_separator_GCJ=:
5 kx link_all_deplibs_GCJ=yes
5 kx ;;
5 kx
5 kx netbsd*)
5 kx if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5 kx archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5 kx else
5 kx archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5 kx fi
5 kx hardcode_libdir_flag_spec_GCJ='-R$libdir'
5 kx hardcode_direct_GCJ=yes
5 kx hardcode_shlibpath_var_GCJ=no
5 kx ;;
5 kx
5 kx newsos6)
5 kx archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct_GCJ=yes
5 kx hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
5 kx hardcode_libdir_separator_GCJ=:
5 kx hardcode_shlibpath_var_GCJ=no
5 kx ;;
5 kx
5 kx openbsd*)
5 kx if test -f /usr/libexec/ld.so; then
5 kx hardcode_direct_GCJ=yes
5 kx hardcode_shlibpath_var_GCJ=no
5 kx if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5 kx archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5 kx hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
5 kx export_dynamic_flag_spec_GCJ='${wl}-E'
5 kx else
5 kx case $host_os in
5 kx openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5 kx archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_libdir_flag_spec_GCJ='-R$libdir'
5 kx ;;
5 kx *)
5 kx archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5 kx hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
5 kx ;;
5 kx esac
5 kx fi
5 kx else
5 kx ld_shlibs_GCJ=no
5 kx fi
5 kx ;;
5 kx
5 kx os2*)
5 kx hardcode_libdir_flag_spec_GCJ='-L$libdir'
5 kx hardcode_minus_L_GCJ=yes
5 kx allow_undefined_flag_GCJ=unsupported
5 kx archive_cmds_GCJ='$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'
5 kx old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5 kx ;;
5 kx
5 kx osf3*)
5 kx if test "$GCC" = yes; then
5 kx allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
5 kx archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5 kx else
5 kx allow_undefined_flag_GCJ=' -expect_unresolved \*'
5 kx archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5 kx fi
5 kx hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
5 kx hardcode_libdir_separator_GCJ=:
5 kx ;;
5 kx
5 kx osf4* | osf5*) # as osf3* with the addition of -msym flag
5 kx if test "$GCC" = yes; then
5 kx allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
5 kx archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5 kx hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
5 kx else
5 kx allow_undefined_flag_GCJ=' -expect_unresolved \*'
5 kx archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5 kx archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5 kx $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5 kx
5 kx # Both c and cxx compiler support -rpath directly
5 kx hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
5 kx fi
5 kx hardcode_libdir_separator_GCJ=:
5 kx ;;
5 kx
5 kx solaris*)
5 kx no_undefined_flag_GCJ=' -z text'
5 kx if test "$GCC" = yes; then
5 kx wlarc='${wl}'
5 kx archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5 kx $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5 kx else
5 kx wlarc=''
5 kx archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5 kx $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5 kx fi
5 kx hardcode_libdir_flag_spec_GCJ='-R$libdir'
5 kx hardcode_shlibpath_var_GCJ=no
5 kx case $host_os in
5 kx solaris2.[0-5] | solaris2.[0-5].*) ;;
5 kx *)
5 kx # The compiler driver will combine and reorder linker options,
5 kx # but understands `-z linker_flag'. GCC discards it without `$wl',
5 kx # but is careful enough not to reorder.
5 kx # Supported since Solaris 2.6 (maybe 2.5.1?)
5 kx if test "$GCC" = yes; then
5 kx whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5 kx else
5 kx whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
5 kx fi
5 kx ;;
5 kx esac
5 kx link_all_deplibs_GCJ=yes
5 kx ;;
5 kx
5 kx sunos4*)
5 kx if test "x$host_vendor" = xsequent; then
5 kx # Use $CC to link under sequent, because it throws in some extra .o
5 kx # files that make .init and .fini sections work.
5 kx archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5 kx fi
5 kx hardcode_libdir_flag_spec_GCJ='-L$libdir'
5 kx hardcode_direct_GCJ=yes
5 kx hardcode_minus_L_GCJ=yes
5 kx hardcode_shlibpath_var_GCJ=no
5 kx ;;
5 kx
5 kx sysv4)
5 kx case $host_vendor in
5 kx sni)
5 kx archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct_GCJ=yes # is this really true???
5 kx ;;
5 kx siemens)
5 kx ## LD is ld it makes a PLAMLIB
5 kx ## CC just makes a GrossModule.
5 kx archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5 kx reload_cmds_GCJ='$CC -r -o $output$reload_objs'
5 kx hardcode_direct_GCJ=no
5 kx ;;
5 kx motorola)
5 kx archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
5 kx ;;
5 kx esac
5 kx runpath_var='LD_RUN_PATH'
5 kx hardcode_shlibpath_var_GCJ=no
5 kx ;;
5 kx
5 kx sysv4.3*)
5 kx archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_shlibpath_var_GCJ=no
5 kx export_dynamic_flag_spec_GCJ='-Bexport'
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec; then
5 kx archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_shlibpath_var_GCJ=no
5 kx runpath_var=LD_RUN_PATH
5 kx hardcode_runpath_var=yes
5 kx ld_shlibs_GCJ=yes
5 kx fi
5 kx ;;
5 kx
5 kx sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
5 kx no_undefined_flag_GCJ='${wl}-z,text'
5 kx archive_cmds_need_lc_GCJ=no
5 kx hardcode_shlibpath_var_GCJ=no
5 kx runpath_var='LD_RUN_PATH'
5 kx
5 kx if test "$GCC" = yes; then
5 kx archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6*)
5 kx # Note: We can NOT use -z defs as we might desire, because we do not
5 kx # link with -lc, and that would cause any symbols used from libc to
5 kx # always be unresolved, which means just about no library would
5 kx # ever link correctly. If we're not using GNU ld we use -z text
5 kx # though, which does catch some bad symbols but isn't as heavy-handed
5 kx # as -z defs.
5 kx no_undefined_flag_GCJ='${wl}-z,text'
5 kx allow_undefined_flag_GCJ='${wl}-z,nodefs'
5 kx archive_cmds_need_lc_GCJ=no
5 kx hardcode_shlibpath_var_GCJ=no
5 kx hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
5 kx hardcode_libdir_separator_GCJ=':'
5 kx link_all_deplibs_GCJ=yes
5 kx export_dynamic_flag_spec_GCJ='${wl}-Bexport'
5 kx runpath_var='LD_RUN_PATH'
5 kx
5 kx if test "$GCC" = yes; then
5 kx archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx fi
5 kx ;;
5 kx
5 kx uts4*)
5 kx archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_libdir_flag_spec_GCJ='-L$libdir'
5 kx hardcode_shlibpath_var_GCJ=no
5 kx ;;
5 kx
5 kx *)
5 kx ld_shlibs_GCJ=no
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
5 kx echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
5 kx test "$ld_shlibs_GCJ" = no && can_build_shared=no
5 kx
5 kx #
5 kx # Do we need to explicitly link libc?
5 kx #
5 kx case "x$archive_cmds_need_lc_GCJ" in
5 kx x|xyes)
5 kx # Assume -lc should be added
5 kx archive_cmds_need_lc_GCJ=yes
5 kx
5 kx if test "$enable_shared" = yes && test "$GCC" = yes; then
5 kx case $archive_cmds_GCJ in
5 kx *'~'*)
5 kx # FIXME: we may have to deal with multi-command sequences.
5 kx ;;
5 kx '$CC '*)
5 kx # Test whether the compiler implicitly links with -lc since on some
5 kx # systems, -lgcc has to come before -lc. If gcc already passes -lc
5 kx # to ld, don't add -lc before -lgcc.
5 kx { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
5 kx echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
5 kx $rm conftest*
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx
5 kx if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } 2>conftest.err; then
5 kx soname=conftest
5 kx lib=conftest
5 kx libobjs=conftest.$ac_objext
5 kx deplibs=
5 kx wl=$lt_prog_compiler_wl_GCJ
5 kx pic_flag=$lt_prog_compiler_pic_GCJ
5 kx compiler_flags=-v
5 kx linker_flags=-v
5 kx verstring=
5 kx output_objdir=.
5 kx libname=conftest
5 kx lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
5 kx allow_undefined_flag_GCJ=
5 kx if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5 kx (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx then
5 kx archive_cmds_need_lc_GCJ=no
5 kx else
5 kx archive_cmds_need_lc_GCJ=yes
5 kx fi
5 kx allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
5 kx else
5 kx cat conftest.err 1>&5
5 kx fi
5 kx $rm conftest*
5 kx { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
5 kx echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5 kx echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
5 kx library_names_spec=
5 kx libname_spec='lib$name'
5 kx soname_spec=
5 kx shrext_cmds=".so"
5 kx postinstall_cmds=
5 kx postuninstall_cmds=
5 kx finish_cmds=
5 kx finish_eval=
5 kx shlibpath_var=
5 kx shlibpath_overrides_runpath=unknown
5 kx version_type=none
5 kx dynamic_linker="$host_os ld.so"
5 kx sys_lib_dlsearch_path_spec="/lib /usr/lib"
5 kx
5 kx need_lib_prefix=unknown
5 kx hardcode_into_libs=no
5 kx
5 kx # when you set need_version to no, make sure it does not cause -set_version
5 kx # flags to be left without arguments
5 kx need_version=unknown
5 kx
5 kx case $host_os in
5 kx aix3*)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
5 kx shlibpath_var=LIBPATH
5 kx
5 kx # AIX 3 has no versioning support, so we append a major version to the name.
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx ;;
5 kx
5 kx aix4* | aix5*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx hardcode_into_libs=yes
5 kx if test "$host_cpu" = ia64; then
5 kx # AIX 5 supports IA64
5 kx library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx else
5 kx # With GCC up to 2.95.x, collect2 would create an import file
5 kx # for dependence libraries. The import file would start with
5 kx # the line `#! .'. This would cause the generated library to
5 kx # depend on `.', always an invalid library. This was fixed in
5 kx # development snapshots of GCC prior to 3.0.
5 kx case $host_os in
5 kx aix4 | aix4.[01] | aix4.[01].*)
5 kx if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5 kx echo ' yes '
5 kx echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5 kx :
5 kx else
5 kx can_build_shared=no
5 kx fi
5 kx ;;
5 kx esac
5 kx # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5 kx # soname into executable. Probably we can add versioning support to
5 kx # collect2, so additional links can be useful in future.
5 kx if test "$aix_use_runtimelinking" = yes; then
5 kx # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5 kx # instead of lib<name>.a to let people know that these are not
5 kx # typical AIX shared libraries.
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx else
5 kx # We preserve .a as extension for shared libraries through AIX4.2
5 kx # and later when we are not doing run time linking.
5 kx library_names_spec='${libname}${release}.a $libname.a'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx fi
5 kx shlibpath_var=LIBPATH
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx library_names_spec='$libname.ixlibrary $libname.a'
5 kx # Create ${libname}_ixlibrary.a entries in /sys/libs.
5 kx finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
5 kx ;;
5 kx
5 kx beos*)
5 kx library_names_spec='${libname}${shared_ext}'
5 kx dynamic_linker="$host_os ld.so"
5 kx shlibpath_var=LIBRARY_PATH
5 kx ;;
5 kx
5 kx bsdi[45]*)
5 kx version_type=linux
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5 kx sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5 kx # the default ld.so.conf also contains /usr/contrib/lib and
5 kx # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5 kx # libtool to hard-code these into programs
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32*)
5 kx version_type=windows
5 kx shrext_cmds=".dll"
5 kx need_version=no
5 kx need_lib_prefix=no
5 kx
5 kx case $GCC,$host_os in
5 kx yes,cygwin* | yes,mingw* | yes,pw32*)
5 kx library_names_spec='$libname.dll.a'
5 kx # DLL is installed to $(libdir)/../bin by postinstall_cmds
5 kx postinstall_cmds='base_file=`basename \${file}`~
5 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
5 kx dldir=$destdir/`dirname \$dlpath`~
5 kx test -d \$dldir || mkdir -p \$dldir~
5 kx $install_prog $dir/$dlname \$dldir/$dlname~
5 kx chmod a+x \$dldir/$dlname'
5 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
5 kx dlpath=$dir/\$dldll~
5 kx $rm \$dlpath'
5 kx shlibpath_overrides_runpath=yes
5 kx
5 kx case $host_os in
5 kx cygwin*)
5 kx # Cygwin DLLs use 'cyg' prefix rather than 'lib'
5 kx soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5 kx sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
5 kx ;;
5 kx mingw*)
5 kx # MinGW DLLs use traditional 'lib' prefix
5 kx soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5 kx sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
5 kx if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
5 kx # It is most probably a Windows format PATH printed by
5 kx # mingw gcc, but we are running on Cygwin. Gcc prints its search
5 kx # path with ; separators, and with drive letters. We can handle the
5 kx # drive letters (cygwin fileutils understands them), so leave them,
5 kx # especially as we might pass files found there to a mingw objdump,
5 kx # which wouldn't understand a cygwinified path. Ahh.
5 kx sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
5 kx else
5 kx sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
5 kx fi
5 kx ;;
5 kx pw32*)
5 kx # pw32 DLLs use 'pw' prefix rather than 'lib'
5 kx library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx *)
5 kx library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
5 kx ;;
5 kx esac
5 kx dynamic_linker='Win32 ld.exe'
5 kx # FIXME: first we should search . and the directory the executable is in
5 kx shlibpath_var=PATH
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx dynamic_linker="$host_os dyld"
5 kx version_type=darwin
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
5 kx soname_spec='${libname}${release}${major}$shared_ext'
5 kx shlibpath_overrides_runpath=yes
5 kx shlibpath_var=DYLD_LIBRARY_PATH
5 kx shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
5 kx
5 kx sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
5 kx ;;
5 kx
5 kx dgux*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx ;;
5 kx
5 kx freebsd1*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx freebsd* | dragonfly*)
5 kx # DragonFly does not have aout. When/if they implement a new
5 kx # versioning mechanism, adjust this.
5 kx if test -x /usr/bin/objformat; then
5 kx objformat=`/usr/bin/objformat`
5 kx else
5 kx case $host_os in
5 kx freebsd[123]*) objformat=aout ;;
5 kx *) objformat=elf ;;
5 kx esac
5 kx fi
5 kx version_type=freebsd-$objformat
5 kx case $version_type in
5 kx freebsd-elf*)
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5 kx need_version=no
5 kx need_lib_prefix=no
5 kx ;;
5 kx freebsd-*)
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
5 kx need_version=yes
5 kx ;;
5 kx esac
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx case $host_os in
5 kx freebsd2*)
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx freebsd3.[01]* | freebsdelf3.[01]*)
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
5 kx freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
5 kx shlibpath_overrides_runpath=no
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx *) # from 4.6 on, and DragonFly
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx gnu*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx hpux9* | hpux10* | hpux11*)
5 kx # Give a soname corresponding to the major version so that dld.sl refuses to
5 kx # link against other versions.
5 kx version_type=sunos
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx case $host_cpu in
5 kx ia64*)
5 kx shrext_cmds='.so'
5 kx hardcode_into_libs=yes
5 kx dynamic_linker="$host_os dld.so"
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx if test "X$HPUX_IA64_MODE" = X32; then
5 kx sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
5 kx else
5 kx sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
5 kx fi
5 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5 kx ;;
5 kx hppa*64*)
5 kx shrext_cmds='.sl'
5 kx hardcode_into_libs=yes
5 kx dynamic_linker="$host_os dld.sl"
5 kx shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
5 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5 kx ;;
5 kx *)
5 kx shrext_cmds='.sl'
5 kx dynamic_linker="$host_os dld.sl"
5 kx shlibpath_var=SHLIB_PATH
5 kx shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx ;;
5 kx esac
5 kx # HP-UX runs *really* slowly unless shared libraries are mode 555.
5 kx postinstall_cmds='chmod 555 $lib'
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=no
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx case $host_os in
5 kx nonstopux*) version_type=nonstopux ;;
5 kx *)
5 kx if test "$lt_cv_prog_gnu_ld" = yes; then
5 kx version_type=linux
5 kx else
5 kx version_type=irix
5 kx fi ;;
5 kx esac
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
5 kx case $host_os in
5 kx irix5* | nonstopux*)
5 kx libsuff= shlibsuff=
5 kx ;;
5 kx *)
5 kx case $LD in # libtool.m4 will add one of these switches to LD
5 kx *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5 kx libsuff= shlibsuff= libmagic=32-bit;;
5 kx *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5 kx libsuff=32 shlibsuff=N32 libmagic=N32;;
5 kx *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5 kx libsuff=64 shlibsuff=64 libmagic=64-bit;;
5 kx *) libsuff= shlibsuff= libmagic=never-match;;
5 kx esac
5 kx ;;
5 kx esac
5 kx shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5 kx shlibpath_overrides_runpath=no
5 kx sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5 kx sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx # No shared lib support for Linux oldld, aout, or coff.
5 kx linux*oldld* | linux*aout* | linux*coff*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx # This must be Linux ELF.
5 kx linux* | k*bsd*-gnu)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=no
5 kx # This implies no fast_install, which is unacceptable.
5 kx # Some rework will be needed to allow for fast_install
5 kx # before this can be enabled.
5 kx hardcode_into_libs=yes
5 kx sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5 kx sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5 kx
5 kx # Append ld.so.conf contents to the search path
5 kx if test -f /etc/ld.so.conf; then
5 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;/^$/d' | tr '\n' ' '`
5 kx sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
5 kx fi
5 kx
5 kx # We used to test for /lib/ld.so.1 and disable shared libraries on
5 kx # powerpc, because MkLinux only supported shared libraries with the
5 kx # GNU dynamic linker. Since this was broken with cross compilers,
5 kx # most powerpc-linux boxes support dynamic linking these days and
5 kx # people can always --disable-shared, the test was removed, and we
5 kx # assume the GNU/Linux dynamic linker is in use.
5 kx dynamic_linker='GNU/Linux ld.so'
5 kx ;;
5 kx
5 kx netbsd*)
5 kx version_type=sunos
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5 kx dynamic_linker='NetBSD (a.out) ld.so'
5 kx else
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx dynamic_linker='NetBSD ld.elf_so'
5 kx fi
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx newsos6)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx
5 kx nto-qnx*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx
5 kx openbsd*)
5 kx version_type=sunos
5 kx sys_lib_dlsearch_path_spec="/usr/lib"
5 kx need_lib_prefix=no
5 kx # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
5 kx case $host_os in
5 kx openbsd3.3 | openbsd3.3.*) need_version=yes ;;
5 kx *) need_version=no ;;
5 kx esac
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5 kx case $host_os in
5 kx openbsd2.[89] | openbsd2.[89].*)
5 kx shlibpath_overrides_runpath=no
5 kx ;;
5 kx *)
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx esac
5 kx else
5 kx shlibpath_overrides_runpath=yes
5 kx fi
5 kx ;;
5 kx
5 kx os2*)
5 kx libname_spec='$name'
5 kx shrext_cmds=".dll"
5 kx need_lib_prefix=no
5 kx library_names_spec='$libname${shared_ext} $libname.a'
5 kx dynamic_linker='OS/2 ld.exe'
5 kx shlibpath_var=LIBPATH
5 kx ;;
5 kx
5 kx osf3* | osf4* | osf5*)
5 kx version_type=osf
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5 kx sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5 kx ;;
5 kx
5 kx rdos*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx solaris*)
5 kx version_type=linux
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx # ldd complains unless libraries are executable
5 kx postinstall_cmds='chmod +x $lib'
5 kx ;;
5 kx
5 kx sunos4*)
5 kx version_type=sunos
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5 kx finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx if test "$with_gnu_ld" = yes; then
5 kx need_lib_prefix=no
5 kx fi
5 kx need_version=yes
5 kx ;;
5 kx
5 kx sysv4 | sysv4.3*)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx case $host_vendor in
5 kx sni)
5 kx shlibpath_overrides_runpath=no
5 kx need_lib_prefix=no
5 kx export_dynamic_flag_spec='${wl}-Blargedynsym'
5 kx runpath_var=LD_RUN_PATH
5 kx ;;
5 kx siemens)
5 kx need_lib_prefix=no
5 kx ;;
5 kx motorola)
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx shlibpath_overrides_runpath=no
5 kx sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec ;then
5 kx version_type=linux
5 kx library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5 kx soname_spec='$libname${shared_ext}.$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5 kx version_type=freebsd-elf
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx hardcode_into_libs=yes
5 kx if test "$with_gnu_ld" = yes; then
5 kx sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
5 kx shlibpath_overrides_runpath=no
5 kx else
5 kx sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
5 kx shlibpath_overrides_runpath=yes
5 kx case $host_os in
5 kx sco3.2v5*)
5 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
5 kx ;;
5 kx esac
5 kx fi
5 kx sys_lib_dlsearch_path_spec='/usr/lib'
5 kx ;;
5 kx
5 kx uts4*)
5 kx version_type=linux
5 kx library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5 kx soname_spec='${libname}${release}${shared_ext}$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx ;;
5 kx
5 kx *)
5 kx dynamic_linker=no
5 kx ;;
5 kx esac
5 kx { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5 kx echo "${ECHO_T}$dynamic_linker" >&6; }
5 kx test "$dynamic_linker" = no && can_build_shared=no
5 kx
5 kx variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5 kx if test "$GCC" = yes; then
5 kx variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5 kx echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
5 kx hardcode_action_GCJ=
5 kx if test -n "$hardcode_libdir_flag_spec_GCJ" || \
5 kx test -n "$runpath_var_GCJ" || \
5 kx test "X$hardcode_automatic_GCJ" = "Xyes" ; then
5 kx
5 kx # We can hardcode non-existant directories.
5 kx if test "$hardcode_direct_GCJ" != no &&
5 kx # If the only mechanism to avoid hardcoding is shlibpath_var, we
5 kx # have to relink, otherwise we might link with an installed library
5 kx # when we should be linking with a yet-to-be-installed one
5 kx ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
5 kx test "$hardcode_minus_L_GCJ" != no; then
5 kx # Linking always hardcodes the temporary library directory.
5 kx hardcode_action_GCJ=relink
5 kx else
5 kx # We can link without hardcoding, and we can hardcode nonexisting dirs.
5 kx hardcode_action_GCJ=immediate
5 kx fi
5 kx else
5 kx # We cannot hardcode anything, or else we can only hardcode existing
5 kx # directories.
5 kx hardcode_action_GCJ=unsupported
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
5 kx echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
5 kx
5 kx if test "$hardcode_action_GCJ" = relink; then
5 kx # Fast installation is not supported
5 kx enable_fast_install=no
5 kx elif test "$shlibpath_overrides_runpath" = yes ||
5 kx test "$enable_shared" = no; then
5 kx # Fast installation is not necessary
5 kx enable_fast_install=needless
5 kx fi
5 kx
5 kx
5 kx # The else clause should only fire when bootstrapping the
5 kx # libtool distribution, otherwise you forgot to ship ltmain.sh
5 kx # with your package, and you will get complaints that there are
5 kx # no rules to generate ltmain.sh.
5 kx if test -f "$ltmain"; then
5 kx # See if we are running on zsh, and set the options which allow our commands through
5 kx # without removal of \ escapes.
5 kx if test -n "${ZSH_VERSION+set}" ; then
5 kx setopt NO_GLOB_SUBST
5 kx fi
5 kx # Now quote all the things that may contain metacharacters while being
5 kx # careful not to overquote the AC_SUBSTed values. We take copies of the
5 kx # variables and quote the copies for generation of the libtool script.
5 kx for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5 kx SED SHELL STRIP \
5 kx libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5 kx old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5 kx deplibs_check_method reload_flag reload_cmds need_locks \
5 kx lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5 kx lt_cv_sys_global_symbol_to_c_name_address \
5 kx sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5 kx old_postinstall_cmds old_postuninstall_cmds \
5 kx compiler_GCJ \
5 kx CC_GCJ \
5 kx LD_GCJ \
5 kx lt_prog_compiler_wl_GCJ \
5 kx lt_prog_compiler_pic_GCJ \
5 kx lt_prog_compiler_static_GCJ \
5 kx lt_prog_compiler_no_builtin_flag_GCJ \
5 kx export_dynamic_flag_spec_GCJ \
5 kx thread_safe_flag_spec_GCJ \
5 kx whole_archive_flag_spec_GCJ \
5 kx enable_shared_with_static_runtimes_GCJ \
5 kx old_archive_cmds_GCJ \
5 kx old_archive_from_new_cmds_GCJ \
5 kx predep_objects_GCJ \
5 kx postdep_objects_GCJ \
5 kx predeps_GCJ \
5 kx postdeps_GCJ \
5 kx compiler_lib_search_path_GCJ \
5 kx archive_cmds_GCJ \
5 kx archive_expsym_cmds_GCJ \
5 kx postinstall_cmds_GCJ \
5 kx postuninstall_cmds_GCJ \
5 kx old_archive_from_expsyms_cmds_GCJ \
5 kx allow_undefined_flag_GCJ \
5 kx no_undefined_flag_GCJ \
5 kx export_symbols_cmds_GCJ \
5 kx hardcode_libdir_flag_spec_GCJ \
5 kx hardcode_libdir_flag_spec_ld_GCJ \
5 kx hardcode_libdir_separator_GCJ \
5 kx hardcode_automatic_GCJ \
5 kx module_cmds_GCJ \
5 kx module_expsym_cmds_GCJ \
5 kx lt_cv_prog_compiler_c_o_GCJ \
5 kx fix_srcfile_path_GCJ \
5 kx exclude_expsyms_GCJ \
5 kx include_expsyms_GCJ; do
5 kx
5 kx case $var in
5 kx old_archive_cmds_GCJ | \
5 kx old_archive_from_new_cmds_GCJ | \
5 kx archive_cmds_GCJ | \
5 kx archive_expsym_cmds_GCJ | \
5 kx module_cmds_GCJ | \
5 kx module_expsym_cmds_GCJ | \
5 kx old_archive_from_expsyms_cmds_GCJ | \
5 kx export_symbols_cmds_GCJ | \
5 kx extract_expsyms_cmds | reload_cmds | finish_cmds | \
5 kx postinstall_cmds | postuninstall_cmds | \
5 kx old_postinstall_cmds | old_postuninstall_cmds | \
5 kx sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5 kx # Double-quote double-evaled strings.
5 kx eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5 kx ;;
5 kx *)
5 kx eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5 kx ;;
5 kx esac
5 kx done
5 kx
5 kx case $lt_echo in
5 kx *'\$0 --fallback-echo"')
5 kx lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
5 kx ;;
5 kx esac
5 kx
5 kx cfgfile="$ofile"
5 kx
5 kx cat <<__EOF__ >> "$cfgfile"
5 kx # ### BEGIN LIBTOOL TAG CONFIG: $tagname
5 kx
5 kx # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5 kx
5 kx # Shell to use when invoking shell scripts.
5 kx SHELL=$lt_SHELL
5 kx
5 kx # Whether or not to build shared libraries.
5 kx build_libtool_libs=$enable_shared
5 kx
5 kx # Whether or not to build static libraries.
5 kx build_old_libs=$enable_static
5 kx
5 kx # Whether or not to add -lc for building shared libraries.
5 kx build_libtool_need_lc=$archive_cmds_need_lc_GCJ
5 kx
5 kx # Whether or not to disallow shared libs when runtime libs are static
5 kx allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
5 kx
5 kx # Whether or not to optimize for fast installation.
5 kx fast_install=$enable_fast_install
5 kx
5 kx # The host system.
5 kx host_alias=$host_alias
5 kx host=$host
5 kx host_os=$host_os
5 kx
5 kx # The build system.
5 kx build_alias=$build_alias
5 kx build=$build
5 kx build_os=$build_os
5 kx
5 kx # An echo program that does not interpret backslashes.
5 kx echo=$lt_echo
5 kx
5 kx # The archiver.
5 kx AR=$lt_AR
5 kx AR_FLAGS=$lt_AR_FLAGS
5 kx
5 kx # A C compiler.
5 kx LTCC=$lt_LTCC
5 kx
5 kx # LTCC compiler flags.
5 kx LTCFLAGS=$lt_LTCFLAGS
5 kx
5 kx # A language-specific compiler.
5 kx CC=$lt_compiler_GCJ
5 kx
5 kx # Is the compiler the GNU C compiler?
5 kx with_gcc=$GCC_GCJ
5 kx
5 kx # An ERE matcher.
5 kx EGREP=$lt_EGREP
5 kx
5 kx # The linker used to build libraries.
5 kx LD=$lt_LD_GCJ
5 kx
5 kx # Whether we need hard or soft links.
5 kx LN_S=$lt_LN_S
5 kx
5 kx # A BSD-compatible nm program.
5 kx NM=$lt_NM
5 kx
5 kx # A symbol stripping program
5 kx STRIP=$lt_STRIP
5 kx
5 kx # Used to examine libraries when file_magic_cmd begins "file"
5 kx MAGIC_CMD=$MAGIC_CMD
5 kx
5 kx # Used on cygwin: DLL creation program.
5 kx DLLTOOL="$DLLTOOL"
5 kx
5 kx # Used on cygwin: object dumper.
5 kx OBJDUMP="$OBJDUMP"
5 kx
5 kx # Used on cygwin: assembler.
5 kx AS="$AS"
5 kx
5 kx # The name of the directory that contains temporary libtool files.
5 kx objdir=$objdir
5 kx
5 kx # How to create reloadable object files.
5 kx reload_flag=$lt_reload_flag
5 kx reload_cmds=$lt_reload_cmds
5 kx
5 kx # How to pass a linker flag through the compiler.
5 kx wl=$lt_lt_prog_compiler_wl_GCJ
5 kx
5 kx # Object file suffix (normally "o").
5 kx objext="$ac_objext"
5 kx
5 kx # Old archive suffix (normally "a").
5 kx libext="$libext"
5 kx
5 kx # Shared library suffix (normally ".so").
5 kx shrext_cmds='$shrext_cmds'
5 kx
5 kx # Executable file suffix (normally "").
5 kx exeext="$exeext"
5 kx
5 kx # Additional compiler flags for building library objects.
5 kx pic_flag=$lt_lt_prog_compiler_pic_GCJ
5 kx pic_mode=$pic_mode
5 kx
5 kx # What is the maximum length of a command?
5 kx max_cmd_len=$lt_cv_sys_max_cmd_len
5 kx
5 kx # Does compiler simultaneously support -c and -o options?
5 kx compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
5 kx
5 kx # Must we lock files when doing compilation?
5 kx need_locks=$lt_need_locks
5 kx
5 kx # Do we need the lib prefix for modules?
5 kx need_lib_prefix=$need_lib_prefix
5 kx
5 kx # Do we need a version for libraries?
5 kx need_version=$need_version
5 kx
5 kx # Whether dlopen is supported.
5 kx dlopen_support=$enable_dlopen
5 kx
5 kx # Whether dlopen of programs is supported.
5 kx dlopen_self=$enable_dlopen_self
5 kx
5 kx # Whether dlopen of statically linked programs is supported.
5 kx dlopen_self_static=$enable_dlopen_self_static
5 kx
5 kx # Compiler flag to prevent dynamic linking.
5 kx link_static_flag=$lt_lt_prog_compiler_static_GCJ
5 kx
5 kx # Compiler flag to turn off builtin functions.
5 kx no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
5 kx
5 kx # Compiler flag to allow reflexive dlopens.
5 kx export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
5 kx
5 kx # Compiler flag to generate shared objects directly from archives.
5 kx whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
5 kx
5 kx # Compiler flag to generate thread-safe objects.
5 kx thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
5 kx
5 kx # Library versioning type.
5 kx version_type=$version_type
5 kx
5 kx # Format of library name prefix.
5 kx libname_spec=$lt_libname_spec
5 kx
5 kx # List of archive names. First name is the real one, the rest are links.
5 kx # The last name is the one that the linker finds with -lNAME.
5 kx library_names_spec=$lt_library_names_spec
5 kx
5 kx # The coded name of the library, if different from the real name.
5 kx soname_spec=$lt_soname_spec
5 kx
5 kx # Commands used to build and install an old-style archive.
5 kx RANLIB=$lt_RANLIB
5 kx old_archive_cmds=$lt_old_archive_cmds_GCJ
5 kx old_postinstall_cmds=$lt_old_postinstall_cmds
5 kx old_postuninstall_cmds=$lt_old_postuninstall_cmds
5 kx
5 kx # Create an old-style archive from a shared archive.
5 kx old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
5 kx
5 kx # Create a temporary old-style archive to link instead of a shared archive.
5 kx old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
5 kx
5 kx # Commands used to build and install a shared archive.
5 kx archive_cmds=$lt_archive_cmds_GCJ
5 kx archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
5 kx postinstall_cmds=$lt_postinstall_cmds
5 kx postuninstall_cmds=$lt_postuninstall_cmds
5 kx
5 kx # Commands used to build a loadable module (assumed same as above if empty)
5 kx module_cmds=$lt_module_cmds_GCJ
5 kx module_expsym_cmds=$lt_module_expsym_cmds_GCJ
5 kx
5 kx # Commands to strip libraries.
5 kx old_striplib=$lt_old_striplib
5 kx striplib=$lt_striplib
5 kx
5 kx # Dependencies to place before the objects being linked to create a
5 kx # shared library.
5 kx predep_objects=$lt_predep_objects_GCJ
5 kx
5 kx # Dependencies to place after the objects being linked to create a
5 kx # shared library.
5 kx postdep_objects=$lt_postdep_objects_GCJ
5 kx
5 kx # Dependencies to place before the objects being linked to create a
5 kx # shared library.
5 kx predeps=$lt_predeps_GCJ
5 kx
5 kx # Dependencies to place after the objects being linked to create a
5 kx # shared library.
5 kx postdeps=$lt_postdeps_GCJ
5 kx
5 kx # The library search path used internally by the compiler when linking
5 kx # a shared library.
5 kx compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
5 kx
5 kx # Method to check whether dependent libraries are shared objects.
5 kx deplibs_check_method=$lt_deplibs_check_method
5 kx
5 kx # Command to use when deplibs_check_method == file_magic.
5 kx file_magic_cmd=$lt_file_magic_cmd
5 kx
5 kx # Flag that allows shared libraries with undefined symbols to be built.
5 kx allow_undefined_flag=$lt_allow_undefined_flag_GCJ
5 kx
5 kx # Flag that forces no undefined symbols.
5 kx no_undefined_flag=$lt_no_undefined_flag_GCJ
5 kx
5 kx # Commands used to finish a libtool library installation in a directory.
5 kx finish_cmds=$lt_finish_cmds
5 kx
5 kx # Same as above, but a single script fragment to be evaled but not shown.
5 kx finish_eval=$lt_finish_eval
5 kx
5 kx # Take the output of nm and produce a listing of raw symbols and C names.
5 kx global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5 kx
5 kx # Transform the output of nm in a proper C declaration
5 kx global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5 kx
5 kx # Transform the output of nm in a C name address pair
5 kx global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5 kx
5 kx # This is the shared library runtime path variable.
5 kx runpath_var=$runpath_var
5 kx
5 kx # This is the shared library path variable.
5 kx shlibpath_var=$shlibpath_var
5 kx
5 kx # Is shlibpath searched before the hard-coded library search path?
5 kx shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5 kx
5 kx # How to hardcode a shared library path into an executable.
5 kx hardcode_action=$hardcode_action_GCJ
5 kx
5 kx # Whether we should hardcode library paths into libraries.
5 kx hardcode_into_libs=$hardcode_into_libs
5 kx
5 kx # Flag to hardcode \$libdir into a binary during linking.
5 kx # This must work even if \$libdir does not exist.
5 kx hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
5 kx
5 kx # If ld is used when linking, flag to hardcode \$libdir into
5 kx # a binary during linking. This must work even if \$libdir does
5 kx # not exist.
5 kx hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
5 kx
5 kx # Whether we need a single -rpath flag with a separated argument.
5 kx hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
5 kx
5 kx # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5 kx # resulting binary.
5 kx hardcode_direct=$hardcode_direct_GCJ
5 kx
5 kx # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5 kx # resulting binary.
5 kx hardcode_minus_L=$hardcode_minus_L_GCJ
5 kx
5 kx # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5 kx # the resulting binary.
5 kx hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
5 kx
5 kx # Set to yes if building a shared library automatically hardcodes DIR into the library
5 kx # and all subsequent libraries and executables linked against it.
5 kx hardcode_automatic=$hardcode_automatic_GCJ
5 kx
5 kx # Variables whose values should be saved in libtool wrapper scripts and
5 kx # restored at relink time.
5 kx variables_saved_for_relink="$variables_saved_for_relink"
5 kx
5 kx # Whether libtool must link a program against all its dependency libraries.
5 kx link_all_deplibs=$link_all_deplibs_GCJ
5 kx
5 kx # Compile-time system search path for libraries
5 kx sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5 kx
5 kx # Run-time system search path for libraries
5 kx sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5 kx
5 kx # Fix the shell variable \$srcfile for the compiler.
5 kx fix_srcfile_path=$lt_fix_srcfile_path
5 kx
5 kx # Set to yes if exported symbols are required.
5 kx always_export_symbols=$always_export_symbols_GCJ
5 kx
5 kx # The commands to list exported symbols.
5 kx export_symbols_cmds=$lt_export_symbols_cmds_GCJ
5 kx
5 kx # The commands to extract the exported symbol list from a shared archive.
5 kx extract_expsyms_cmds=$lt_extract_expsyms_cmds
5 kx
5 kx # Symbols that should not be listed in the preloaded symbols.
5 kx exclude_expsyms=$lt_exclude_expsyms_GCJ
5 kx
5 kx # Symbols that must always be exported.
5 kx include_expsyms=$lt_include_expsyms_GCJ
5 kx
5 kx # ### END LIBTOOL TAG CONFIG: $tagname
5 kx
5 kx __EOF__
5 kx
5 kx
5 kx else
5 kx # If there is no Makefile yet, we rely on a make rule to execute
5 kx # `config.status --recheck' to rerun these tests and create the
5 kx # libtool script then.
5 kx ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5 kx if test -f "$ltmain_in"; then
5 kx test -f Makefile && make "$ltmain"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx CC="$lt_save_CC"
5 kx
5 kx else
5 kx tagname=""
5 kx fi
5 kx ;;
5 kx
5 kx RC)
5 kx
5 kx
5 kx # Source file extension for RC test sources.
5 kx ac_ext=rc
5 kx
5 kx # Object file extension for compiled RC test sources.
5 kx objext=o
5 kx objext_RC=$objext
5 kx
5 kx # Code to be used in simple compile tests
5 kx lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
5 kx
5 kx # Code to be used in simple link tests
5 kx lt_simple_link_test_code="$lt_simple_compile_test_code"
5 kx
5 kx # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5 kx
5 kx # If no C compiler was specified, use CC.
5 kx LTCC=${LTCC-"$CC"}
5 kx
5 kx # If no C compiler flags were specified, use CFLAGS.
5 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5 kx
5 kx # Allow CC to be a program name with arguments.
5 kx compiler=$CC
5 kx
5 kx
5 kx # save warnings/boilerplate of simple test code
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5 kx eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5 kx _lt_compiler_boilerplate=`cat conftest.err`
5 kx $rm conftest*
5 kx
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_link_test_code" >conftest.$ac_ext
5 kx eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5 kx _lt_linker_boilerplate=`cat conftest.err`
5 kx $rm conftest*
5 kx
5 kx
5 kx # Allow CC to be a program name with arguments.
5 kx lt_save_CC="$CC"
5 kx CC=${RC-"windres"}
5 kx compiler=$CC
5 kx compiler_RC=$CC
5 kx for cc_temp in $compiler""; do
5 kx case $cc_temp in
5 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5 kx \-*) ;;
5 kx *) break;;
5 kx esac
5 kx done
5 kx cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5 kx
5 kx lt_cv_prog_compiler_c_o_RC=yes
5 kx
5 kx # The else clause should only fire when bootstrapping the
5 kx # libtool distribution, otherwise you forgot to ship ltmain.sh
5 kx # with your package, and you will get complaints that there are
5 kx # no rules to generate ltmain.sh.
5 kx if test -f "$ltmain"; then
5 kx # See if we are running on zsh, and set the options which allow our commands through
5 kx # without removal of \ escapes.
5 kx if test -n "${ZSH_VERSION+set}" ; then
5 kx setopt NO_GLOB_SUBST
5 kx fi
5 kx # Now quote all the things that may contain metacharacters while being
5 kx # careful not to overquote the AC_SUBSTed values. We take copies of the
5 kx # variables and quote the copies for generation of the libtool script.
5 kx for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5 kx SED SHELL STRIP \
5 kx libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5 kx old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5 kx deplibs_check_method reload_flag reload_cmds need_locks \
5 kx lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5 kx lt_cv_sys_global_symbol_to_c_name_address \
5 kx sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5 kx old_postinstall_cmds old_postuninstall_cmds \
5 kx compiler_RC \
5 kx CC_RC \
5 kx LD_RC \
5 kx lt_prog_compiler_wl_RC \
5 kx lt_prog_compiler_pic_RC \
5 kx lt_prog_compiler_static_RC \
5 kx lt_prog_compiler_no_builtin_flag_RC \
5 kx export_dynamic_flag_spec_RC \
5 kx thread_safe_flag_spec_RC \
5 kx whole_archive_flag_spec_RC \
5 kx enable_shared_with_static_runtimes_RC \
5 kx old_archive_cmds_RC \
5 kx old_archive_from_new_cmds_RC \
5 kx predep_objects_RC \
5 kx postdep_objects_RC \
5 kx predeps_RC \
5 kx postdeps_RC \
5 kx compiler_lib_search_path_RC \
5 kx archive_cmds_RC \
5 kx archive_expsym_cmds_RC \
5 kx postinstall_cmds_RC \
5 kx postuninstall_cmds_RC \
5 kx old_archive_from_expsyms_cmds_RC \
5 kx allow_undefined_flag_RC \
5 kx no_undefined_flag_RC \
5 kx export_symbols_cmds_RC \
5 kx hardcode_libdir_flag_spec_RC \
5 kx hardcode_libdir_flag_spec_ld_RC \
5 kx hardcode_libdir_separator_RC \
5 kx hardcode_automatic_RC \
5 kx module_cmds_RC \
5 kx module_expsym_cmds_RC \
5 kx lt_cv_prog_compiler_c_o_RC \
5 kx fix_srcfile_path_RC \
5 kx exclude_expsyms_RC \
5 kx include_expsyms_RC; do
5 kx
5 kx case $var in
5 kx old_archive_cmds_RC | \
5 kx old_archive_from_new_cmds_RC | \
5 kx archive_cmds_RC | \
5 kx archive_expsym_cmds_RC | \
5 kx module_cmds_RC | \
5 kx module_expsym_cmds_RC | \
5 kx old_archive_from_expsyms_cmds_RC | \
5 kx export_symbols_cmds_RC | \
5 kx extract_expsyms_cmds | reload_cmds | finish_cmds | \
5 kx postinstall_cmds | postuninstall_cmds | \
5 kx old_postinstall_cmds | old_postuninstall_cmds | \
5 kx sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5 kx # Double-quote double-evaled strings.
5 kx eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5 kx ;;
5 kx *)
5 kx eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5 kx ;;
5 kx esac
5 kx done
5 kx
5 kx case $lt_echo in
5 kx *'\$0 --fallback-echo"')
5 kx lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
5 kx ;;
5 kx esac
5 kx
5 kx cfgfile="$ofile"
5 kx
5 kx cat <<__EOF__ >> "$cfgfile"
5 kx # ### BEGIN LIBTOOL TAG CONFIG: $tagname
5 kx
5 kx # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5 kx
5 kx # Shell to use when invoking shell scripts.
5 kx SHELL=$lt_SHELL
5 kx
5 kx # Whether or not to build shared libraries.
5 kx build_libtool_libs=$enable_shared
5 kx
5 kx # Whether or not to build static libraries.
5 kx build_old_libs=$enable_static
5 kx
5 kx # Whether or not to add -lc for building shared libraries.
5 kx build_libtool_need_lc=$archive_cmds_need_lc_RC
5 kx
5 kx # Whether or not to disallow shared libs when runtime libs are static
5 kx allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
5 kx
5 kx # Whether or not to optimize for fast installation.
5 kx fast_install=$enable_fast_install
5 kx
5 kx # The host system.
5 kx host_alias=$host_alias
5 kx host=$host
5 kx host_os=$host_os
5 kx
5 kx # The build system.
5 kx build_alias=$build_alias
5 kx build=$build
5 kx build_os=$build_os
5 kx
5 kx # An echo program that does not interpret backslashes.
5 kx echo=$lt_echo
5 kx
5 kx # The archiver.
5 kx AR=$lt_AR
5 kx AR_FLAGS=$lt_AR_FLAGS
5 kx
5 kx # A C compiler.
5 kx LTCC=$lt_LTCC
5 kx
5 kx # LTCC compiler flags.
5 kx LTCFLAGS=$lt_LTCFLAGS
5 kx
5 kx # A language-specific compiler.
5 kx CC=$lt_compiler_RC
5 kx
5 kx # Is the compiler the GNU C compiler?
5 kx with_gcc=$GCC_RC
5 kx
5 kx # An ERE matcher.
5 kx EGREP=$lt_EGREP
5 kx
5 kx # The linker used to build libraries.
5 kx LD=$lt_LD_RC
5 kx
5 kx # Whether we need hard or soft links.
5 kx LN_S=$lt_LN_S
5 kx
5 kx # A BSD-compatible nm program.
5 kx NM=$lt_NM
5 kx
5 kx # A symbol stripping program
5 kx STRIP=$lt_STRIP
5 kx
5 kx # Used to examine libraries when file_magic_cmd begins "file"
5 kx MAGIC_CMD=$MAGIC_CMD
5 kx
5 kx # Used on cygwin: DLL creation program.
5 kx DLLTOOL="$DLLTOOL"
5 kx
5 kx # Used on cygwin: object dumper.
5 kx OBJDUMP="$OBJDUMP"
5 kx
5 kx # Used on cygwin: assembler.
5 kx AS="$AS"
5 kx
5 kx # The name of the directory that contains temporary libtool files.
5 kx objdir=$objdir
5 kx
5 kx # How to create reloadable object files.
5 kx reload_flag=$lt_reload_flag
5 kx reload_cmds=$lt_reload_cmds
5 kx
5 kx # How to pass a linker flag through the compiler.
5 kx wl=$lt_lt_prog_compiler_wl_RC
5 kx
5 kx # Object file suffix (normally "o").
5 kx objext="$ac_objext"
5 kx
5 kx # Old archive suffix (normally "a").
5 kx libext="$libext"
5 kx
5 kx # Shared library suffix (normally ".so").
5 kx shrext_cmds='$shrext_cmds'
5 kx
5 kx # Executable file suffix (normally "").
5 kx exeext="$exeext"
5 kx
5 kx # Additional compiler flags for building library objects.
5 kx pic_flag=$lt_lt_prog_compiler_pic_RC
5 kx pic_mode=$pic_mode
5 kx
5 kx # What is the maximum length of a command?
5 kx max_cmd_len=$lt_cv_sys_max_cmd_len
5 kx
5 kx # Does compiler simultaneously support -c and -o options?
5 kx compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
5 kx
5 kx # Must we lock files when doing compilation?
5 kx need_locks=$lt_need_locks
5 kx
5 kx # Do we need the lib prefix for modules?
5 kx need_lib_prefix=$need_lib_prefix
5 kx
5 kx # Do we need a version for libraries?
5 kx need_version=$need_version
5 kx
5 kx # Whether dlopen is supported.
5 kx dlopen_support=$enable_dlopen
5 kx
5 kx # Whether dlopen of programs is supported.
5 kx dlopen_self=$enable_dlopen_self
5 kx
5 kx # Whether dlopen of statically linked programs is supported.
5 kx dlopen_self_static=$enable_dlopen_self_static
5 kx
5 kx # Compiler flag to prevent dynamic linking.
5 kx link_static_flag=$lt_lt_prog_compiler_static_RC
5 kx
5 kx # Compiler flag to turn off builtin functions.
5 kx no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
5 kx
5 kx # Compiler flag to allow reflexive dlopens.
5 kx export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
5 kx
5 kx # Compiler flag to generate shared objects directly from archives.
5 kx whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
5 kx
5 kx # Compiler flag to generate thread-safe objects.
5 kx thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
5 kx
5 kx # Library versioning type.
5 kx version_type=$version_type
5 kx
5 kx # Format of library name prefix.
5 kx libname_spec=$lt_libname_spec
5 kx
5 kx # List of archive names. First name is the real one, the rest are links.
5 kx # The last name is the one that the linker finds with -lNAME.
5 kx library_names_spec=$lt_library_names_spec
5 kx
5 kx # The coded name of the library, if different from the real name.
5 kx soname_spec=$lt_soname_spec
5 kx
5 kx # Commands used to build and install an old-style archive.
5 kx RANLIB=$lt_RANLIB
5 kx old_archive_cmds=$lt_old_archive_cmds_RC
5 kx old_postinstall_cmds=$lt_old_postinstall_cmds
5 kx old_postuninstall_cmds=$lt_old_postuninstall_cmds
5 kx
5 kx # Create an old-style archive from a shared archive.
5 kx old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
5 kx
5 kx # Create a temporary old-style archive to link instead of a shared archive.
5 kx old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
5 kx
5 kx # Commands used to build and install a shared archive.
5 kx archive_cmds=$lt_archive_cmds_RC
5 kx archive_expsym_cmds=$lt_archive_expsym_cmds_RC
5 kx postinstall_cmds=$lt_postinstall_cmds
5 kx postuninstall_cmds=$lt_postuninstall_cmds
5 kx
5 kx # Commands used to build a loadable module (assumed same as above if empty)
5 kx module_cmds=$lt_module_cmds_RC
5 kx module_expsym_cmds=$lt_module_expsym_cmds_RC
5 kx
5 kx # Commands to strip libraries.
5 kx old_striplib=$lt_old_striplib
5 kx striplib=$lt_striplib
5 kx
5 kx # Dependencies to place before the objects being linked to create a
5 kx # shared library.
5 kx predep_objects=$lt_predep_objects_RC
5 kx
5 kx # Dependencies to place after the objects being linked to create a
5 kx # shared library.
5 kx postdep_objects=$lt_postdep_objects_RC
5 kx
5 kx # Dependencies to place before the objects being linked to create a
5 kx # shared library.
5 kx predeps=$lt_predeps_RC
5 kx
5 kx # Dependencies to place after the objects being linked to create a
5 kx # shared library.
5 kx postdeps=$lt_postdeps_RC
5 kx
5 kx # The library search path used internally by the compiler when linking
5 kx # a shared library.
5 kx compiler_lib_search_path=$lt_compiler_lib_search_path_RC
5 kx
5 kx # Method to check whether dependent libraries are shared objects.
5 kx deplibs_check_method=$lt_deplibs_check_method
5 kx
5 kx # Command to use when deplibs_check_method == file_magic.
5 kx file_magic_cmd=$lt_file_magic_cmd
5 kx
5 kx # Flag that allows shared libraries with undefined symbols to be built.
5 kx allow_undefined_flag=$lt_allow_undefined_flag_RC
5 kx
5 kx # Flag that forces no undefined symbols.
5 kx no_undefined_flag=$lt_no_undefined_flag_RC
5 kx
5 kx # Commands used to finish a libtool library installation in a directory.
5 kx finish_cmds=$lt_finish_cmds
5 kx
5 kx # Same as above, but a single script fragment to be evaled but not shown.
5 kx finish_eval=$lt_finish_eval
5 kx
5 kx # Take the output of nm and produce a listing of raw symbols and C names.
5 kx global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5 kx
5 kx # Transform the output of nm in a proper C declaration
5 kx global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5 kx
5 kx # Transform the output of nm in a C name address pair
5 kx global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5 kx
5 kx # This is the shared library runtime path variable.
5 kx runpath_var=$runpath_var
5 kx
5 kx # This is the shared library path variable.
5 kx shlibpath_var=$shlibpath_var
5 kx
5 kx # Is shlibpath searched before the hard-coded library search path?
5 kx shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5 kx
5 kx # How to hardcode a shared library path into an executable.
5 kx hardcode_action=$hardcode_action_RC
5 kx
5 kx # Whether we should hardcode library paths into libraries.
5 kx hardcode_into_libs=$hardcode_into_libs
5 kx
5 kx # Flag to hardcode \$libdir into a binary during linking.
5 kx # This must work even if \$libdir does not exist.
5 kx hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
5 kx
5 kx # If ld is used when linking, flag to hardcode \$libdir into
5 kx # a binary during linking. This must work even if \$libdir does
5 kx # not exist.
5 kx hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
5 kx
5 kx # Whether we need a single -rpath flag with a separated argument.
5 kx hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
5 kx
5 kx # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5 kx # resulting binary.
5 kx hardcode_direct=$hardcode_direct_RC
5 kx
5 kx # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5 kx # resulting binary.
5 kx hardcode_minus_L=$hardcode_minus_L_RC
5 kx
5 kx # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5 kx # the resulting binary.
5 kx hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
5 kx
5 kx # Set to yes if building a shared library automatically hardcodes DIR into the library
5 kx # and all subsequent libraries and executables linked against it.
5 kx hardcode_automatic=$hardcode_automatic_RC
5 kx
5 kx # Variables whose values should be saved in libtool wrapper scripts and
5 kx # restored at relink time.
5 kx variables_saved_for_relink="$variables_saved_for_relink"
5 kx
5 kx # Whether libtool must link a program against all its dependency libraries.
5 kx link_all_deplibs=$link_all_deplibs_RC
5 kx
5 kx # Compile-time system search path for libraries
5 kx sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5 kx
5 kx # Run-time system search path for libraries
5 kx sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5 kx
5 kx # Fix the shell variable \$srcfile for the compiler.
5 kx fix_srcfile_path=$lt_fix_srcfile_path
5 kx
5 kx # Set to yes if exported symbols are required.
5 kx always_export_symbols=$always_export_symbols_RC
5 kx
5 kx # The commands to list exported symbols.
5 kx export_symbols_cmds=$lt_export_symbols_cmds_RC
5 kx
5 kx # The commands to extract the exported symbol list from a shared archive.
5 kx extract_expsyms_cmds=$lt_extract_expsyms_cmds
5 kx
5 kx # Symbols that should not be listed in the preloaded symbols.
5 kx exclude_expsyms=$lt_exclude_expsyms_RC
5 kx
5 kx # Symbols that must always be exported.
5 kx include_expsyms=$lt_include_expsyms_RC
5 kx
5 kx # ### END LIBTOOL TAG CONFIG: $tagname
5 kx
5 kx __EOF__
5 kx
5 kx
5 kx else
5 kx # If there is no Makefile yet, we rely on a make rule to execute
5 kx # `config.status --recheck' to rerun these tests and create the
5 kx # libtool script then.
5 kx ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5 kx if test -f "$ltmain_in"; then
5 kx test -f Makefile && make "$ltmain"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx CC="$lt_save_CC"
5 kx
5 kx ;;
5 kx
5 kx *)
5 kx { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
5 kx echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx ;;
5 kx esac
5 kx
5 kx # Append the new tag name to the list of available tags.
5 kx if test -n "$tagname" ; then
5 kx available_tags="$available_tags $tagname"
5 kx fi
5 kx fi
5 kx done
5 kx IFS="$lt_save_ifs"
5 kx
5 kx # Now substitute the updated list of available tags.
5 kx if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
5 kx mv "${ofile}T" "$ofile"
5 kx chmod +x "$ofile"
5 kx else
5 kx rm -f "${ofile}T"
5 kx { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
5 kx echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx # This can be used to rebuild libtool when needed
5 kx LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5 kx
5 kx # Always use our own libtool.
5 kx LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5 kx
5 kx # Prevent multiple expansion
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define _GNU_SOURCE 1
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking for AIX" >&5
5 kx echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #ifdef _AIX
5 kx yes
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "yes" >/dev/null 2>&1; then
5 kx { echo "$as_me:$LINENO: result: yes" >&5
5 kx echo "${ECHO_T}yes" >&6; }
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define _ALL_SOURCE 1
5 kx _ACEOF
5 kx
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx if test "${ac_cv_header_minix_config_h+set}" = set; then
5 kx { echo "$as_me:$LINENO: checking for minix/config.h" >&5
5 kx echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
5 kx if test "${ac_cv_header_minix_config_h+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5 kx echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
5 kx else
5 kx # Is the header compilable?
5 kx { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5 kx echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx #include <minix/config.h>
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_header_compiler=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_header_compiler=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5 kx echo "${ECHO_T}$ac_header_compiler" >&6; }
5 kx
5 kx # Is the header present?
5 kx { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5 kx echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <minix/config.h>
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx ac_header_preproc=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_header_preproc=no
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5 kx echo "${ECHO_T}$ac_header_preproc" >&6; }
5 kx
5 kx # So? What about this header?
5 kx case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5 kx yes:no: )
5 kx { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5 kx echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5 kx echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5 kx ac_header_preproc=yes
5 kx ;;
5 kx no:yes:* )
5 kx { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5 kx echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
5 kx echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5 kx echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
5 kx echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5 kx echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5 kx echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5 kx
5 kx ;;
5 kx esac
5 kx { echo "$as_me:$LINENO: checking for minix/config.h" >&5
5 kx echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
5 kx if test "${ac_cv_header_minix_config_h+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_cv_header_minix_config_h=$ac_header_preproc
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5 kx echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
5 kx
5 kx fi
5 kx if test $ac_cv_header_minix_config_h = yes; then
5 kx MINIX=yes
5 kx else
5 kx MINIX=
5 kx fi
5 kx
5 kx
5 kx if test "$MINIX" = yes; then
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define _POSIX_SOURCE 1
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define _POSIX_1_SOURCE 2
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define _MINIX 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5 kx echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
5 kx if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx # define __EXTENSIONS__ 1
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_safe_to_define___extensions__=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_safe_to_define___extensions__=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5 kx echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
5 kx test $ac_cv_safe_to_define___extensions__ = yes &&
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define __EXTENSIONS__ 1
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define _POSIX_PTHREAD_SEMANTICS 1
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define _TANDEM_SOURCE 1
5 kx _ACEOF
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}gcc; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_CC="${ac_tool_prefix}gcc"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { echo "$as_me:$LINENO: result: $CC" >&5
5 kx echo "${ECHO_T}$CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_CC"; then
5 kx ac_ct_CC=$CC
5 kx # Extract the first word of "gcc", so it can be a program name with args.
5 kx set dummy gcc; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_ac_ct_CC="gcc"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5 kx echo "${ECHO_T}$ac_ct_CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx else
5 kx CC="$ac_cv_prog_CC"
5 kx fi
5 kx
5 kx if test -z "$CC"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}cc; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_CC="${ac_tool_prefix}cc"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { echo "$as_me:$LINENO: result: $CC" >&5
5 kx echo "${ECHO_T}$CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx fi
5 kx if test -z "$CC"; then
5 kx # Extract the first word of "cc", so it can be a program name with args.
5 kx set dummy cc; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx ac_prog_rejected=no
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5 kx ac_prog_rejected=yes
5 kx continue
5 kx fi
5 kx ac_cv_prog_CC="cc"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx if test $ac_prog_rejected = yes; then
5 kx # We found a bogon in the path, so make sure we never use it.
5 kx set dummy $ac_cv_prog_CC
5 kx shift
5 kx if test $# != 0; then
5 kx # We chose a different compiler from the bogus one.
5 kx # However, it has the same basename, so the bogon will be chosen
5 kx # first if we set CC to just the basename; use the full file name.
5 kx shift
5 kx ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { echo "$as_me:$LINENO: result: $CC" >&5
5 kx echo "${ECHO_T}$CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$CC"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in cl.exe
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { echo "$as_me:$LINENO: result: $CC" >&5
5 kx echo "${ECHO_T}$CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$CC" && break
5 kx done
5 kx fi
5 kx if test -z "$CC"; then
5 kx ac_ct_CC=$CC
5 kx for ac_prog in cl.exe
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_ac_ct_CC="$ac_prog"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5 kx echo "${ECHO_T}$ac_ct_CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_CC" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5 kx See \`config.log' for more details." >&5
5 kx echo "$as_me: error: no acceptable C compiler found in \$PATH
5 kx See \`config.log' for more details." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx
5 kx # Provide some information about the compiler.
5 kx echo "$as_me:$LINENO: checking for C compiler version" >&5
5 kx ac_compiler=`set X $ac_compile; echo $2`
5 kx { (ac_try="$ac_compiler --version >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler --version >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx { (ac_try="$ac_compiler -v >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler -v >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx { (ac_try="$ac_compiler -V >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler -V >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx
5 kx { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5 kx echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5 kx if test "${ac_cv_c_compiler_gnu+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef __GNUC__
5 kx choke me
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_compiler_gnu=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_compiler_gnu=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_c_compiler_gnu=$ac_compiler_gnu
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5 kx echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5 kx GCC=`test $ac_compiler_gnu = yes && echo yes`
5 kx ac_test_CFLAGS=${CFLAGS+set}
5 kx ac_save_CFLAGS=$CFLAGS
5 kx { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5 kx echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_cc_g+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx ac_cv_prog_cc_g=no
5 kx CFLAGS="-g"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_prog_cc_g=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx CFLAGS=""
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx :
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="-g"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_prog_cc_g=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5 kx echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5 kx if test "$ac_test_CFLAGS" = set; then
5 kx CFLAGS=$ac_save_CFLAGS
5 kx elif test $ac_cv_prog_cc_g = yes; then
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-g -O2"
5 kx else
5 kx CFLAGS="-g"
5 kx fi
5 kx else
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-O2"
5 kx else
5 kx CFLAGS=
5 kx fi
5 kx fi
5 kx { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5 kx echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_cc_c89+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_cv_prog_cc_c89=no
5 kx ac_save_CC=$CC
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx #include <stdio.h>
5 kx #include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5 kx struct buf { int x; };
5 kx FILE * (*rcsopen) (struct buf *, struct stat *, int);
5 kx static char *e (p, i)
5 kx char **p;
5 kx int i;
5 kx {
5 kx return p[i];
5 kx }
5 kx static char *f (char * (*g) (char **, int), char **p, ...)
5 kx {
5 kx char *s;
5 kx va_list v;
5 kx va_start (v,p);
5 kx s = g (p, va_arg (v,int));
5 kx va_end (v);
5 kx return s;
5 kx }
5 kx
5 kx /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5 kx function prototypes and stuff, but not '\xHH' hex character constants.
5 kx These don't provoke an error unfortunately, instead are silently treated
5 kx as 'x'. The following induces an error, until -std is added to get
5 kx proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5 kx array size at least. It's necessary to write '\x00'==0 to get something
5 kx that's true only with -std. */
5 kx int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5 kx
5 kx /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5 kx inside strings and character constants. */
5 kx #define FOO(x) 'x'
5 kx int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5 kx
5 kx int test (int i, double x);
5 kx struct s1 {int (*f) (int a);};
5 kx struct s2 {int (*f) (double a);};
5 kx int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5 kx int argc;
5 kx char **argv;
5 kx int
5 kx main ()
5 kx {
5 kx return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5 kx -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5 kx do
5 kx CC="$ac_save_CC $ac_arg"
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_prog_cc_c89=$ac_arg
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx test "x$ac_cv_prog_cc_c89" != "xno" && break
5 kx done
5 kx rm -f conftest.$ac_ext
5 kx CC=$ac_save_CC
5 kx
5 kx fi
5 kx # AC_CACHE_VAL
5 kx case "x$ac_cv_prog_cc_c89" in
5 kx x)
5 kx { echo "$as_me:$LINENO: result: none needed" >&5
5 kx echo "${ECHO_T}none needed" >&6; } ;;
5 kx xno)
5 kx { echo "$as_me:$LINENO: result: unsupported" >&5
5 kx echo "${ECHO_T}unsupported" >&6; } ;;
5 kx *)
5 kx CC="$CC $ac_cv_prog_cc_c89"
5 kx { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5 kx echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5 kx esac
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx depcc="$CC" am_compiler_list=
5 kx
5 kx { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5 kx echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5 kx if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5 kx # We make a subdir and do the tests there. Otherwise we can end up
5 kx # making bogus files that we don't know about and never remove. For
5 kx # instance it was reported that on HP-UX the gcc test will end up
5 kx # making a dummy file named `D' -- because `-MD' means `put the output
5 kx # in D'.
5 kx mkdir conftest.dir
5 kx # Copy depcomp to subdir because otherwise we won't find it if we're
5 kx # using a relative directory.
5 kx cp "$am_depcomp" conftest.dir
5 kx cd conftest.dir
5 kx # We will build objects and dependencies in a subdirectory because
5 kx # it helps to detect inapplicable dependency modes. For instance
5 kx # both Tru64's cc and ICC support -MD to output dependencies as a
5 kx # side effect of compilation, but ICC will put the dependencies in
5 kx # the current directory while Tru64 will put them in the object
5 kx # directory.
5 kx mkdir sub
5 kx
5 kx am_cv_CC_dependencies_compiler_type=none
5 kx if test "$am_compiler_list" = ""; then
5 kx am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5 kx fi
5 kx for depmode in $am_compiler_list; do
5 kx # Setup a source with many dependencies, because some compilers
5 kx # like to wrap large dependency lists on column 80 (with \), and
5 kx # we should not choose a depcomp mode which is confused by this.
5 kx #
5 kx # We need to recreate these files for each test, as the compiler may
5 kx # overwrite some of them when testing with obscure command lines.
5 kx # This happens at least with the AIX C compiler.
5 kx : > sub/conftest.c
5 kx for i in 1 2 3 4 5 6; do
5 kx echo '#include "conftst'$i'.h"' >> sub/conftest.c
5 kx # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5 kx # Solaris 8's {/usr,}/bin/sh.
5 kx touch sub/conftst$i.h
5 kx done
5 kx echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5 kx
5 kx case $depmode in
5 kx nosideeffect)
5 kx # after this tag, mechanisms are not by side-effect, so they'll
5 kx # only be used when explicitly requested
5 kx if test "x$enable_dependency_tracking" = xyes; then
5 kx continue
5 kx else
5 kx break
5 kx fi
5 kx ;;
5 kx none) break ;;
5 kx esac
5 kx # We check with `-c' and `-o' for the sake of the "dashmstdout"
5 kx # mode. It turns out that the SunPro C++ compiler does not properly
5 kx # handle `-M -o', and we need to detect this.
5 kx if depmode=$depmode \
5 kx source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5 kx depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5 kx $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5 kx >/dev/null 2>conftest.err &&
5 kx grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5 kx ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5 kx # icc doesn't choke on unknown options, it will just issue warnings
5 kx # or remarks (even with -Werror). So we grep stderr for any message
5 kx # that says an option was ignored or not supported.
5 kx # When given -MP, icc 7.0 and 7.1 complain thusly:
5 kx # icc: Command line warning: ignoring option '-M'; no argument required
5 kx # The diagnosis changed in icc 8.0:
5 kx # icc: Command line remark: option '-MP' not supported
5 kx if (grep 'ignoring option' conftest.err ||
5 kx grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5 kx am_cv_CC_dependencies_compiler_type=$depmode
5 kx break
5 kx fi
5 kx fi
5 kx done
5 kx
5 kx cd ..
5 kx rm -rf conftest.dir
5 kx else
5 kx am_cv_CC_dependencies_compiler_type=none
5 kx fi
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5 kx echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5 kx CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5 kx
5 kx if
5 kx test "x$enable_dependency_tracking" != xno \
5 kx && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5 kx am__fastdepCC_TRUE=
5 kx am__fastdepCC_FALSE='#'
5 kx else
5 kx am__fastdepCC_TRUE='#'
5 kx am__fastdepCC_FALSE=
5 kx fi
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}gcc; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_CC="${ac_tool_prefix}gcc"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { echo "$as_me:$LINENO: result: $CC" >&5
5 kx echo "${ECHO_T}$CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_CC"; then
5 kx ac_ct_CC=$CC
5 kx # Extract the first word of "gcc", so it can be a program name with args.
5 kx set dummy gcc; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_ac_ct_CC="gcc"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5 kx echo "${ECHO_T}$ac_ct_CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx else
5 kx CC="$ac_cv_prog_CC"
5 kx fi
5 kx
5 kx if test -z "$CC"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}cc; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_CC="${ac_tool_prefix}cc"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { echo "$as_me:$LINENO: result: $CC" >&5
5 kx echo "${ECHO_T}$CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx fi
5 kx if test -z "$CC"; then
5 kx # Extract the first word of "cc", so it can be a program name with args.
5 kx set dummy cc; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx ac_prog_rejected=no
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5 kx ac_prog_rejected=yes
5 kx continue
5 kx fi
5 kx ac_cv_prog_CC="cc"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx if test $ac_prog_rejected = yes; then
5 kx # We found a bogon in the path, so make sure we never use it.
5 kx set dummy $ac_cv_prog_CC
5 kx shift
5 kx if test $# != 0; then
5 kx # We chose a different compiler from the bogus one.
5 kx # However, it has the same basename, so the bogon will be chosen
5 kx # first if we set CC to just the basename; use the full file name.
5 kx shift
5 kx ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { echo "$as_me:$LINENO: result: $CC" >&5
5 kx echo "${ECHO_T}$CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$CC"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in cl.exe
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { echo "$as_me:$LINENO: result: $CC" >&5
5 kx echo "${ECHO_T}$CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$CC" && break
5 kx done
5 kx fi
5 kx if test -z "$CC"; then
5 kx ac_ct_CC=$CC
5 kx for ac_prog in cl.exe
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_ac_ct_CC="$ac_prog"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5 kx echo "${ECHO_T}$ac_ct_CC" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_CC" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5 kx See \`config.log' for more details." >&5
5 kx echo "$as_me: error: no acceptable C compiler found in \$PATH
5 kx See \`config.log' for more details." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx
5 kx # Provide some information about the compiler.
5 kx echo "$as_me:$LINENO: checking for C compiler version" >&5
5 kx ac_compiler=`set X $ac_compile; echo $2`
5 kx { (ac_try="$ac_compiler --version >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler --version >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx { (ac_try="$ac_compiler -v >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler -v >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx { (ac_try="$ac_compiler -V >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compiler -V >&5") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx
5 kx { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5 kx echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5 kx if test "${ac_cv_c_compiler_gnu+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef __GNUC__
5 kx choke me
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_compiler_gnu=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_compiler_gnu=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_c_compiler_gnu=$ac_compiler_gnu
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5 kx echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5 kx GCC=`test $ac_compiler_gnu = yes && echo yes`
5 kx ac_test_CFLAGS=${CFLAGS+set}
5 kx ac_save_CFLAGS=$CFLAGS
5 kx { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5 kx echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_cc_g+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx ac_cv_prog_cc_g=no
5 kx CFLAGS="-g"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_prog_cc_g=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx CFLAGS=""
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx :
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="-g"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_prog_cc_g=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5 kx echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5 kx if test "$ac_test_CFLAGS" = set; then
5 kx CFLAGS=$ac_save_CFLAGS
5 kx elif test $ac_cv_prog_cc_g = yes; then
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-g -O2"
5 kx else
5 kx CFLAGS="-g"
5 kx fi
5 kx else
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-O2"
5 kx else
5 kx CFLAGS=
5 kx fi
5 kx fi
5 kx { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5 kx echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_cc_c89+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_cv_prog_cc_c89=no
5 kx ac_save_CC=$CC
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx #include <stdio.h>
5 kx #include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5 kx struct buf { int x; };
5 kx FILE * (*rcsopen) (struct buf *, struct stat *, int);
5 kx static char *e (p, i)
5 kx char **p;
5 kx int i;
5 kx {
5 kx return p[i];
5 kx }
5 kx static char *f (char * (*g) (char **, int), char **p, ...)
5 kx {
5 kx char *s;
5 kx va_list v;
5 kx va_start (v,p);
5 kx s = g (p, va_arg (v,int));
5 kx va_end (v);
5 kx return s;
5 kx }
5 kx
5 kx /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5 kx function prototypes and stuff, but not '\xHH' hex character constants.
5 kx These don't provoke an error unfortunately, instead are silently treated
5 kx as 'x'. The following induces an error, until -std is added to get
5 kx proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5 kx array size at least. It's necessary to write '\x00'==0 to get something
5 kx that's true only with -std. */
5 kx int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5 kx
5 kx /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5 kx inside strings and character constants. */
5 kx #define FOO(x) 'x'
5 kx int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5 kx
5 kx int test (int i, double x);
5 kx struct s1 {int (*f) (int a);};
5 kx struct s2 {int (*f) (double a);};
5 kx int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5 kx int argc;
5 kx char **argv;
5 kx int
5 kx main ()
5 kx {
5 kx return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5 kx -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5 kx do
5 kx CC="$ac_save_CC $ac_arg"
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_prog_cc_c89=$ac_arg
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx test "x$ac_cv_prog_cc_c89" != "xno" && break
5 kx done
5 kx rm -f conftest.$ac_ext
5 kx CC=$ac_save_CC
5 kx
5 kx fi
5 kx # AC_CACHE_VAL
5 kx case "x$ac_cv_prog_cc_c89" in
5 kx x)
5 kx { echo "$as_me:$LINENO: result: none needed" >&5
5 kx echo "${ECHO_T}none needed" >&6; } ;;
5 kx xno)
5 kx { echo "$as_me:$LINENO: result: unsupported" >&5
5 kx echo "${ECHO_T}unsupported" >&6; } ;;
5 kx *)
5 kx CC="$CC $ac_cv_prog_cc_c89"
5 kx { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5 kx echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5 kx esac
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx depcc="$CC" am_compiler_list=
5 kx
5 kx { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5 kx echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5 kx if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5 kx # We make a subdir and do the tests there. Otherwise we can end up
5 kx # making bogus files that we don't know about and never remove. For
5 kx # instance it was reported that on HP-UX the gcc test will end up
5 kx # making a dummy file named `D' -- because `-MD' means `put the output
5 kx # in D'.
5 kx mkdir conftest.dir
5 kx # Copy depcomp to subdir because otherwise we won't find it if we're
5 kx # using a relative directory.
5 kx cp "$am_depcomp" conftest.dir
5 kx cd conftest.dir
5 kx # We will build objects and dependencies in a subdirectory because
5 kx # it helps to detect inapplicable dependency modes. For instance
5 kx # both Tru64's cc and ICC support -MD to output dependencies as a
5 kx # side effect of compilation, but ICC will put the dependencies in
5 kx # the current directory while Tru64 will put them in the object
5 kx # directory.
5 kx mkdir sub
5 kx
5 kx am_cv_CC_dependencies_compiler_type=none
5 kx if test "$am_compiler_list" = ""; then
5 kx am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5 kx fi
5 kx for depmode in $am_compiler_list; do
5 kx # Setup a source with many dependencies, because some compilers
5 kx # like to wrap large dependency lists on column 80 (with \), and
5 kx # we should not choose a depcomp mode which is confused by this.
5 kx #
5 kx # We need to recreate these files for each test, as the compiler may
5 kx # overwrite some of them when testing with obscure command lines.
5 kx # This happens at least with the AIX C compiler.
5 kx : > sub/conftest.c
5 kx for i in 1 2 3 4 5 6; do
5 kx echo '#include "conftst'$i'.h"' >> sub/conftest.c
5 kx # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5 kx # Solaris 8's {/usr,}/bin/sh.
5 kx touch sub/conftst$i.h
5 kx done
5 kx echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5 kx
5 kx case $depmode in
5 kx nosideeffect)
5 kx # after this tag, mechanisms are not by side-effect, so they'll
5 kx # only be used when explicitly requested
5 kx if test "x$enable_dependency_tracking" = xyes; then
5 kx continue
5 kx else
5 kx break
5 kx fi
5 kx ;;
5 kx none) break ;;
5 kx esac
5 kx # We check with `-c' and `-o' for the sake of the "dashmstdout"
5 kx # mode. It turns out that the SunPro C++ compiler does not properly
5 kx # handle `-M -o', and we need to detect this.
5 kx if depmode=$depmode \
5 kx source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5 kx depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5 kx $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5 kx >/dev/null 2>conftest.err &&
5 kx grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5 kx ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5 kx # icc doesn't choke on unknown options, it will just issue warnings
5 kx # or remarks (even with -Werror). So we grep stderr for any message
5 kx # that says an option was ignored or not supported.
5 kx # When given -MP, icc 7.0 and 7.1 complain thusly:
5 kx # icc: Command line warning: ignoring option '-M'; no argument required
5 kx # The diagnosis changed in icc 8.0:
5 kx # icc: Command line remark: option '-MP' not supported
5 kx if (grep 'ignoring option' conftest.err ||
5 kx grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5 kx am_cv_CC_dependencies_compiler_type=$depmode
5 kx break
5 kx fi
5 kx fi
5 kx done
5 kx
5 kx cd ..
5 kx rm -rf conftest.dir
5 kx else
5 kx am_cv_CC_dependencies_compiler_type=none
5 kx fi
5 kx
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5 kx echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5 kx CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5 kx
5 kx if
5 kx test "x$enable_dependency_tracking" != xno \
5 kx && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5 kx am__fastdepCC_TRUE=
5 kx am__fastdepCC_FALSE='#'
5 kx else
5 kx am__fastdepCC_TRUE='#'
5 kx am__fastdepCC_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5 kx
5 kx { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5 kx echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5 kx if test "${ac_cv_header_stdc+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx #include <stdarg.h>
5 kx #include <string.h>
5 kx #include <float.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_header_stdc=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "memchr" >/dev/null 2>&1; then
5 kx :
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "free" >/dev/null 2>&1; then
5 kx :
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5 kx if test "$cross_compiling" = yes; then
5 kx :
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <ctype.h>
5 kx #include <stdlib.h>
5 kx #if ((' ' & 0x0FF) == 0x020)
5 kx # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5 kx # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5 kx #else
5 kx # define ISLOWER(c) \
5 kx (('a' <= (c) && (c) <= 'i') \
5 kx || ('j' <= (c) && (c) <= 'r') \
5 kx || ('s' <= (c) && (c) <= 'z'))
5 kx # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5 kx #endif
5 kx
5 kx #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5 kx int
5 kx main ()
5 kx {
5 kx int i;
5 kx for (i = 0; i < 256; i++)
5 kx if (XOR (islower (i), ISLOWER (i))
5 kx || toupper (i) != TOUPPER (i))
5 kx return 2;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5 kx { (case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_try") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; }; then
5 kx :
5 kx else
5 kx echo "$as_me: program exited with status $ac_status" >&5
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ( exit $ac_status )
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5 kx echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5 kx if test $ac_cv_header_stdc = yes; then
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define STDC_HEADERS 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx # Find a good install program. We prefer a C program (faster),
5 kx # so one script is as good as another. But avoid the broken or
5 kx # incompatible versions:
5 kx # SysV /etc/install, /usr/sbin/install
5 kx # SunOS /usr/etc/install
5 kx # IRIX /sbin/install
5 kx # AIX /bin/install
5 kx # AmigaOS /C/install, which installs bootblocks on floppy discs
5 kx # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5 kx # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5 kx # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5 kx # OS/2's system install, which has a completely different semantic
5 kx # ./install, which can be erroneously created by make from ./install.sh.
5 kx { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5 kx echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5 kx if test -z "$INSTALL"; then
5 kx if test "${ac_cv_path_install+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx # Account for people who put trailing slashes in PATH elements.
5 kx case $as_dir/ in
5 kx ./ | .// | /cC/* | \
5 kx /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5 kx ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5 kx /usr/ucb/* ) ;;
5 kx *)
5 kx # OSF1 and SCO ODT 3.0 have their own names for install.
5 kx # Don't use installbsd from OSF since it installs stuff as root
5 kx # by default.
5 kx for ac_prog in ginstall scoinst install; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5 kx if test $ac_prog = install &&
5 kx grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5 kx # AIX install. It has an incompatible calling convention.
5 kx :
5 kx elif test $ac_prog = install &&
5 kx grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5 kx # program-specific install script used by HP pwplus--don't use.
5 kx :
5 kx else
5 kx ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5 kx break 3
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx ;;
5 kx esac
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx
5 kx fi
5 kx if test "${ac_cv_path_install+set}" = set; then
5 kx INSTALL=$ac_cv_path_install
5 kx else
5 kx # As a last resort, use the slow shell script. Don't cache a
5 kx # value for INSTALL within a source directory, because that will
5 kx # break other packages using the cache if that directory is
5 kx # removed, or if the value is a relative name.
5 kx INSTALL=$ac_install_sh
5 kx fi
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $INSTALL" >&5
5 kx echo "${ECHO_T}$INSTALL" >&6; }
5 kx
5 kx # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5 kx # It thinks the first close brace ends the variable substitution.
5 kx test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5 kx
5 kx test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5 kx
5 kx test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5 kx
5 kx { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5 kx echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5 kx set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5 kx if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.make <<\_ACEOF
5 kx SHELL = /bin/sh
5 kx all:
5 kx @echo '@@@%%%=$(MAKE)=@@@%%%'
5 kx _ACEOF
5 kx # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5 kx case `${MAKE-make} -f conftest.make 2>/dev/null` in
5 kx *@@@%%%=?*=@@@%%%*)
5 kx eval ac_cv_prog_make_${ac_make}_set=yes;;
5 kx *)
5 kx eval ac_cv_prog_make_${ac_make}_set=no;;
5 kx esac
5 kx rm -f conftest.make
5 kx fi
5 kx if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5 kx { echo "$as_me:$LINENO: result: yes" >&5
5 kx echo "${ECHO_T}yes" >&6; }
5 kx SET_MAKE=
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx SET_MAKE="MAKE=${MAKE-make}"
5 kx fi
5 kx
5 kx
5 kx if test -z "$ENV_CFLAGS"; then
5 kx CFLAGS=""
5 kx fi
5 kx
5 kx RELDATE=`date +'%a %b %e %Y'`
5 kx
5 kx
5 kx # Check whether --enable-docs was given.
5 kx if test "${enable_docs+set}" = set; then
5 kx enableval=$enable_docs; build_docs="${enableval}"
5 kx else
5 kx build_docs=no
5 kx fi
5 kx
5 kx
5 kx if test x$build_docs = xyes; then
5 kx BUILD_DOCS_TRUE=
5 kx BUILD_DOCS_FALSE='#'
5 kx else
5 kx BUILD_DOCS_TRUE='#'
5 kx BUILD_DOCS_FALSE=
5 kx fi
5 kx
5 kx
5 kx ##################################################
5 kx # Check for gtk-doc.
5 kx ##################################################
5 kx
5 kx
5 kx # Check whether --with-html-dir was given.
5 kx if test "${with_html_dir+set}" = set; then
5 kx withval=$with_html_dir;
5 kx fi
5 kx
5 kx
5 kx if test "x$with_html_dir" = "x" ; then
5 kx HTML_DIR='${datadir}/gtk-doc/html'
5 kx else
5 kx HTML_DIR=$with_html_dir
5 kx fi
5 kx
5 kx
5 kx
5 kx gtk_doc_min_version=1.0
5 kx { echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5
5 kx echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6; }
5 kx if pkg-config --atleast-version=$gtk_doc_min_version gtk-doc; then
5 kx { echo "$as_me:$LINENO: result: yes" >&5
5 kx echo "${ECHO_T}yes" >&6; }
5 kx GTKDOC=true
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx GTKDOC=false
5 kx fi
5 kx
5 kx # Check whether --enable-gtk-doc was given.
5 kx if test "${enable_gtk_doc+set}" = set; then
5 kx enableval=$enable_gtk_doc; enable_gtk_doc="$enableval"
5 kx else
5 kx enable_gtk_doc=auto
5 kx fi
5 kx
5 kx
5 kx if test x$enable_gtk_doc = xauto -o x$enable_gtk_doc = xyes ; then
5 kx if test x$GTKDOC = xtrue ; then
5 kx enable_gtk_doc=yes
5 kx else
5 kx enable_gtk_doc=no
5 kx fi
5 kx fi
5 kx
5 kx if test x$enable_gtk_doc = xyes; then
5 kx ENABLE_GTK_DOC_TRUE=
5 kx ENABLE_GTK_DOC_FALSE='#'
5 kx else
5 kx ENABLE_GTK_DOC_TRUE='#'
5 kx ENABLE_GTK_DOC_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx for ac_func in usleep setsid setenv putenv getlogin_r
5 kx do
5 kx as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5 kx { echo "$as_me:$LINENO: checking for $ac_func" >&5
5 kx echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5 kx if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5 kx For example, HP-UX 11i <limits.h> declares gettimeofday. */
5 kx #define $ac_func innocuous_$ac_func
5 kx
5 kx /* System header to define __stub macros and hopefully few prototypes,
5 kx which can conflict with char $ac_func (); below.
5 kx Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx <limits.h> exists even on freestanding compilers. */
5 kx
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx
5 kx #undef $ac_func
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char $ac_func ();
5 kx /* The GNU C library defines this for functions which it implements
5 kx to always fail with ENOSYS. Some functions are actually named
5 kx something starting with __ and the normal name is an alias. */
5 kx #if defined __stub_$ac_func || defined __stub___$ac_func
5 kx choke me
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return $ac_func ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx eval "$as_ac_var=yes"
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx eval "$as_ac_var=no"
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx ac_res=`eval echo '${'$as_ac_var'}'`
5 kx { echo "$as_me:$LINENO: result: $ac_res" >&5
5 kx echo "${ECHO_T}$ac_res" >&6; }
5 kx if test `eval echo '${'$as_ac_var'}'` = yes; then
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx { echo "$as_me:$LINENO: checking for nanoseconds field of struct stat.st_mtim" >&5
5 kx echo $ECHO_N "checking for nanoseconds field of struct stat.st_mtim... $ECHO_C" >&6; }
5 kx if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_save_CPPFLAGS="$CPPFLAGS"
5 kx ac_cv_struct_st_mtim_nsec=no
5 kx # tv_nsec -- the usual case
5 kx # _tv_nsec -- Solaris 2.6, if
5 kx # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
5 kx # && !defined __EXTENSIONS__)
5 kx # st__tim.tv_nsec -- UnixWare 2.1.2
5 kx for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
5 kx CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx int
5 kx main ()
5 kx {
5 kx struct stat s; s.st_mtim.ST_MTIM_NSEC;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_cv_struct_st_mtim_nsec=$ac_val; break
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx done
5 kx CPPFLAGS="$ac_save_CPPFLAGS"
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
5 kx echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6; }
5 kx
5 kx if test $ac_cv_struct_st_mtim_nsec != no; then
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --enable-libgamin was given.
5 kx if test "${enable_libgamin+set}" = set; then
5 kx enableval=$enable_libgamin; enable_libgamin="$enableval"
5 kx else
5 kx enable_libgamin=yes
5 kx fi
5 kx
5 kx if test x$enable_libgamin = xyes; then
5 kx BUILD_LIBGAMIN_TRUE=
5 kx BUILD_LIBGAMIN_FALSE='#'
5 kx else
5 kx BUILD_LIBGAMIN_TRUE='#'
5 kx BUILD_LIBGAMIN_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx # Check whether --enable-server was given.
5 kx if test "${enable_server+set}" = set; then
5 kx enableval=$enable_server; enable_server="$enableval"
5 kx else
5 kx enable_server=yes
5 kx fi
5 kx
5 kx
5 kx if test x$enable_server = xyes ; then
5 kx
5 kx
5 kx if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx case $PKG_CONFIG in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5 kx if test -n "$PKG_CONFIG"; then
5 kx { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5 kx echo "${ECHO_T}$PKG_CONFIG" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_path_PKG_CONFIG"; then
5 kx ac_pt_PKG_CONFIG=$PKG_CONFIG
5 kx # Extract the first word of "pkg-config", so it can be a program name with args.
5 kx set dummy pkg-config; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx case $ac_pt_PKG_CONFIG in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5 kx if test -n "$ac_pt_PKG_CONFIG"; then
5 kx { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5 kx echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_pt_PKG_CONFIG" = x; then
5 kx PKG_CONFIG=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx PKG_CONFIG=$ac_pt_PKG_CONFIG
5 kx fi
5 kx else
5 kx PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5 kx fi
5 kx
5 kx fi
5 kx if test -n "$PKG_CONFIG"; then
5 kx _pkg_min_version=0.9.0
5 kx { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5 kx echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5 kx if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5 kx { echo "$as_me:$LINENO: result: yes" >&5
5 kx echo "${ECHO_T}yes" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx PKG_CONFIG=""
5 kx fi
5 kx
5 kx fi
5 kx
5 kx pkg_failed=no
5 kx { echo "$as_me:$LINENO: checking for DAEMON" >&5
5 kx echo $ECHO_N "checking for DAEMON... $ECHO_C" >&6; }
5 kx
5 kx if test -n "$DAEMON_CFLAGS"; then
5 kx pkg_cv_DAEMON_CFLAGS="$DAEMON_CFLAGS"
5 kx elif test -n "$PKG_CONFIG"; then
5 kx if test -n "$PKG_CONFIG" && \
5 kx { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
5 kx ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; then
5 kx pkg_cv_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
5 kx else
5 kx pkg_failed=yes
5 kx fi
5 kx else
5 kx pkg_failed=untried
5 kx fi
5 kx if test -n "$DAEMON_LIBS"; then
5 kx pkg_cv_DAEMON_LIBS="$DAEMON_LIBS"
5 kx elif test -n "$PKG_CONFIG"; then
5 kx if test -n "$PKG_CONFIG" && \
5 kx { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
5 kx ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; then
5 kx pkg_cv_DAEMON_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
5 kx else
5 kx pkg_failed=yes
5 kx fi
5 kx else
5 kx pkg_failed=untried
5 kx fi
5 kx
5 kx
5 kx
5 kx if test $pkg_failed = yes; then
5 kx
5 kx if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5 kx _pkg_short_errors_supported=yes
5 kx else
5 kx _pkg_short_errors_supported=no
5 kx fi
5 kx if test $_pkg_short_errors_supported = yes; then
5 kx DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
5 kx else
5 kx DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
5 kx fi
5 kx # Put the nasty error message in config.log where it belongs
5 kx echo "$DAEMON_PKG_ERRORS" >&5
5 kx
5 kx { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
5 kx
5 kx $DAEMON_PKG_ERRORS
5 kx
5 kx Consider adjusting the PKG_CONFIG_PATH environment variable if you
5 kx installed software in a non-standard prefix.
5 kx
5 kx Alternatively, you may set the environment variables DAEMON_CFLAGS
5 kx and DAEMON_LIBS to avoid the need to call pkg-config.
5 kx See the pkg-config man page for more details.
5 kx " >&5
5 kx echo "$as_me: error: Package requirements (glib-2.0) were not met:
5 kx
5 kx $DAEMON_PKG_ERRORS
5 kx
5 kx Consider adjusting the PKG_CONFIG_PATH environment variable if you
5 kx installed software in a non-standard prefix.
5 kx
5 kx Alternatively, you may set the environment variables DAEMON_CFLAGS
5 kx and DAEMON_LIBS to avoid the need to call pkg-config.
5 kx See the pkg-config man page for more details.
5 kx " >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx elif test $pkg_failed = untried; then
5 kx { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5 kx is in your PATH or set the PKG_CONFIG environment variable to the full
5 kx path to pkg-config.
5 kx
5 kx Alternatively, you may set the environment variables DAEMON_CFLAGS
5 kx and DAEMON_LIBS to avoid the need to call pkg-config.
5 kx See the pkg-config man page for more details.
5 kx
5 kx To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5 kx See \`config.log' for more details." >&5
5 kx echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5 kx is in your PATH or set the PKG_CONFIG environment variable to the full
5 kx path to pkg-config.
5 kx
5 kx Alternatively, you may set the environment variables DAEMON_CFLAGS
5 kx and DAEMON_LIBS to avoid the need to call pkg-config.
5 kx See the pkg-config man page for more details.
5 kx
5 kx To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5 kx See \`config.log' for more details." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx else
5 kx DAEMON_CFLAGS=$pkg_cv_DAEMON_CFLAGS
5 kx DAEMON_LIBS=$pkg_cv_DAEMON_LIBS
5 kx { echo "$as_me:$LINENO: result: yes" >&5
5 kx echo "${ECHO_T}yes" >&6; }
5 kx :
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test x$enable_server = xyes; then
5 kx BUILD_SERVER_TRUE=
5 kx BUILD_SERVER_FALSE='#'
5 kx else
5 kx BUILD_SERVER_TRUE='#'
5 kx BUILD_SERVER_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx enable_tests="no"
5 kx if test x$enable_server = xyes && test x$enable_libgamin = xyes ; then
5 kx
5 kx pkg_failed=no
5 kx { echo "$as_me:$LINENO: checking for TEST" >&5
5 kx echo $ECHO_N "checking for TEST... $ECHO_C" >&6; }
5 kx
5 kx if test -n "$TEST_CFLAGS"; then
5 kx pkg_cv_TEST_CFLAGS="$TEST_CFLAGS"
5 kx elif test -n "$PKG_CONFIG"; then
5 kx if test -n "$PKG_CONFIG" && \
5 kx { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
5 kx ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; then
5 kx pkg_cv_TEST_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
5 kx else
5 kx pkg_failed=yes
5 kx fi
5 kx else
5 kx pkg_failed=untried
5 kx fi
5 kx if test -n "$TEST_LIBS"; then
5 kx pkg_cv_TEST_LIBS="$TEST_LIBS"
5 kx elif test -n "$PKG_CONFIG"; then
5 kx if test -n "$PKG_CONFIG" && \
5 kx { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
5 kx ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; then
5 kx pkg_cv_TEST_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
5 kx else
5 kx pkg_failed=yes
5 kx fi
5 kx else
5 kx pkg_failed=untried
5 kx fi
5 kx
5 kx
5 kx
5 kx if test $pkg_failed = yes; then
5 kx
5 kx if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5 kx _pkg_short_errors_supported=yes
5 kx else
5 kx _pkg_short_errors_supported=no
5 kx fi
5 kx if test $_pkg_short_errors_supported = yes; then
5 kx TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
5 kx else
5 kx TEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
5 kx fi
5 kx # Put the nasty error message in config.log where it belongs
5 kx echo "$TEST_PKG_ERRORS" >&5
5 kx
5 kx { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
5 kx
5 kx $TEST_PKG_ERRORS
5 kx
5 kx Consider adjusting the PKG_CONFIG_PATH environment variable if you
5 kx installed software in a non-standard prefix.
5 kx
5 kx Alternatively, you may set the environment variables TEST_CFLAGS
5 kx and TEST_LIBS to avoid the need to call pkg-config.
5 kx See the pkg-config man page for more details.
5 kx " >&5
5 kx echo "$as_me: error: Package requirements (glib-2.0) were not met:
5 kx
5 kx $TEST_PKG_ERRORS
5 kx
5 kx Consider adjusting the PKG_CONFIG_PATH environment variable if you
5 kx installed software in a non-standard prefix.
5 kx
5 kx Alternatively, you may set the environment variables TEST_CFLAGS
5 kx and TEST_LIBS to avoid the need to call pkg-config.
5 kx See the pkg-config man page for more details.
5 kx " >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx elif test $pkg_failed = untried; then
5 kx { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5 kx is in your PATH or set the PKG_CONFIG environment variable to the full
5 kx path to pkg-config.
5 kx
5 kx Alternatively, you may set the environment variables TEST_CFLAGS
5 kx and TEST_LIBS to avoid the need to call pkg-config.
5 kx See the pkg-config man page for more details.
5 kx
5 kx To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5 kx See \`config.log' for more details." >&5
5 kx echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5 kx is in your PATH or set the PKG_CONFIG environment variable to the full
5 kx path to pkg-config.
5 kx
5 kx Alternatively, you may set the environment variables TEST_CFLAGS
5 kx and TEST_LIBS to avoid the need to call pkg-config.
5 kx See the pkg-config man page for more details.
5 kx
5 kx To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5 kx See \`config.log' for more details." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx else
5 kx TEST_CFLAGS=$pkg_cv_TEST_CFLAGS
5 kx TEST_LIBS=$pkg_cv_TEST_LIBS
5 kx { echo "$as_me:$LINENO: result: yes" >&5
5 kx echo "${ECHO_T}yes" >&6; }
5 kx :
5 kx fi
5 kx
5 kx
5 kx enable_tests="yes"
5 kx
5 kx fi
5 kx if test x$enable_tests = xyes; then
5 kx BUILD_TESTS_TRUE=
5 kx BUILD_TESTS_FALSE='#'
5 kx else
5 kx BUILD_TESTS_TRUE='#'
5 kx BUILD_TESTS_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx # Check whether --enable-more-warnings was given.
5 kx if test "${enable_more_warnings+set}" = set; then
5 kx enableval=$enable_more_warnings; set_more_warnings="${enableval}"
5 kx else
5 kx
5 kx # if test -d $srcdir/CVS; then
5 kx warnings_default=yes
5 kx # else
5 kx # warnings_default=no
5 kx # fi
5 kx
5 kx fi
5 kx
5 kx
5 kx # Check whether --enable-debug was given.
5 kx if test "${enable_debug+set}" = set; then
5 kx enableval=$enable_debug; debug=$enableval
5 kx else
5 kx debug=yes
5 kx fi
5 kx
5 kx
5 kx if test x$debug = xyes ; then
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define GAMIN_DEBUG
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx if test x$debug = xyes; then
5 kx GAMIN_DEBUG_TRUE=
5 kx GAMIN_DEBUG_FALSE='#'
5 kx else
5 kx GAMIN_DEBUG_TRUE='#'
5 kx GAMIN_DEBUG_FALSE=
5 kx fi
5 kx
5 kx
5 kx # Check whether --enable-debug_api was given.
5 kx if test "${enable_debug_api+set}" = set; then
5 kx enableval=$enable_debug_api; debug_api="${enableval}"
5 kx fi
5 kx
5 kx
5 kx if test "$debug_api" = "" -a -d $srcdir/CVS; then
5 kx echo "Building from CVS, enabling debug api"
5 kx debug_api=yes
5 kx fi
5 kx
5 kx if test x$debug_api = xyes ; then
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define GAMIN_DEBUG_API
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx #AM_CONDITIONAL(HAVE_LINUX, test x$target_os = xlinux-gnu)
5 kx if test x$target_os = xlinux-gnu; then
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define HAVE_LINUX
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx # Check whether --enable-kernel was given.
5 kx if test "${enable_kernel+set}" = set; then
5 kx enableval=$enable_kernel; os=${enableval}
5 kx else
5 kx os=${target_os}
5 kx fi
5 kx
5 kx
5 kx if test x$os = xyes; then
5 kx os=${target_os}
5 kx elif test x$os = xno; then
5 kx os="BogusOS"
5 kx elif test x$os != x${target_os}; then
5 kx { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-kernel" >&5
5 kx echo "$as_me: error: bad value ${enableval} for --disable-kernel" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define ENABLE_POLLING 1
5 kx _ACEOF
5 kx
5 kx backends="polling"
5 kx
5 kx # Check whether --enable-inotify was given.
5 kx if test "${enable_inotify+set}" = set; then
5 kx enableval=$enable_inotify; inotify="${enableval}"
5 kx else
5 kx inotify=auto
5 kx fi
5 kx
5 kx
5 kx if test x$inotify = xyes; then
5 kx inotify=true
5 kx elif test x$inotify = xno; then
5 kx inotify=false
5 kx fi
5 kx
5 kx if test x$inotify = xtrue -o x$inotify = xauto; then
5 kx
5 kx for ac_header in sys/inotify.h
5 kx do
5 kx as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5 kx if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx { echo "$as_me:$LINENO: checking for $ac_header" >&5
5 kx echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5 kx if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx fi
5 kx ac_res=`eval echo '${'$as_ac_Header'}'`
5 kx { echo "$as_me:$LINENO: result: $ac_res" >&5
5 kx echo "${ECHO_T}$ac_res" >&6; }
5 kx else
5 kx # Is the header compilable?
5 kx { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5 kx echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx #include <$ac_header>
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_header_compiler=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_header_compiler=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5 kx echo "${ECHO_T}$ac_header_compiler" >&6; }
5 kx
5 kx # Is the header present?
5 kx { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5 kx echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <$ac_header>
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx ac_header_preproc=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_header_preproc=no
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5 kx echo "${ECHO_T}$ac_header_preproc" >&6; }
5 kx
5 kx # So? What about this header?
5 kx case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5 kx yes:no: )
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5 kx echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5 kx echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5 kx ac_header_preproc=yes
5 kx ;;
5 kx no:yes:* )
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5 kx echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5 kx echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5 kx echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5 kx echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5 kx echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5 kx echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5 kx
5 kx ;;
5 kx esac
5 kx { echo "$as_me:$LINENO: checking for $ac_header" >&5
5 kx echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5 kx if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx eval "$as_ac_Header=\$ac_header_preproc"
5 kx fi
5 kx ac_res=`eval echo '${'$as_ac_Header'}'`
5 kx { echo "$as_me:$LINENO: result: $ac_res" >&5
5 kx echo "${ECHO_T}$ac_res" >&6; }
5 kx
5 kx fi
5 kx if test `eval echo '${'$as_ac_Header'}'` = yes; then
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx if test x"$ac_cv_header_sys_inotify_h" = x"no" -a x"$inotify" = xtrue; then
5 kx { { echo "$as_me:$LINENO: error: sys/inotify.h requested but not available" >&5
5 kx echo "$as_me: error: sys/inotify.h requested but not available" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test x"$ac_cv_header_sys_inotify_h" = xyes; then
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define ENABLE_INOTIFY 1
5 kx _ACEOF
5 kx
5 kx backends="${backends}, inotify"
5 kx inotify=true
5 kx else
5 kx inotify=false
5 kx fi
5 kx fi
5 kx
5 kx if test x$inotify = xtrue; then
5 kx ENABLE_INOTIFY_TRUE=
5 kx ENABLE_INOTIFY_FALSE='#'
5 kx else
5 kx ENABLE_INOTIFY_TRUE='#'
5 kx ENABLE_INOTIFY_FALSE=
5 kx fi
5 kx
5 kx
5 kx if test x$os = xlinux-gnu; then
5 kx # Check whether --enable-dnotify was given.
5 kx if test "${enable_dnotify+set}" = set; then
5 kx enableval=$enable_dnotify; dnotify="${enableval}"
5 kx else
5 kx dnotify=true
5 kx fi
5 kx
5 kx
5 kx if test x$dnotify = xyes; then
5 kx dnotify=true
5 kx elif test x$dnotify = xno; then
5 kx dnotify=false
5 kx elif test x$dnotify != xtrue; then
5 kx { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-dnotify" >&5
5 kx echo "$as_me: error: bad value ${enableval} for --disable-dnotify" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx fi
5 kx
5 kx if test x$dnotify = xfalse; then
5 kx if test x$inotify = xtrue; then
5 kx echo "When using inotify, gamin sometimes needs dnotify as a fallback"
5 kx echo "so dnotify support will be enabled"
5 kx dnotify=true
5 kx fi
5 kx fi
5 kx
5 kx if test x$dnotify = xtrue; then
5 kx ENABLE_DNOTIFY_TRUE=
5 kx ENABLE_DNOTIFY_FALSE='#'
5 kx else
5 kx ENABLE_DNOTIFY_TRUE='#'
5 kx ENABLE_DNOTIFY_FALSE=
5 kx fi
5 kx
5 kx
5 kx if test x$dnotify = xtrue; then
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define ENABLE_DNOTIFY 1
5 kx _ACEOF
5 kx
5 kx backends="${backends}, dnotify"
5 kx fi
5 kx
5 kx if test x$os != xBogusOS; then
5 kx { echo "$as_me:$LINENO: checking for kevent" >&5
5 kx echo $ECHO_N "checking for kevent... $ECHO_C" >&6; }
5 kx if test "${ac_cv_func_kevent+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
5 kx For example, HP-UX 11i <limits.h> declares gettimeofday. */
5 kx #define kevent innocuous_kevent
5 kx
5 kx /* System header to define __stub macros and hopefully few prototypes,
5 kx which can conflict with char kevent (); below.
5 kx Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx <limits.h> exists even on freestanding compilers. */
5 kx
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx
5 kx #undef kevent
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char kevent ();
5 kx /* The GNU C library defines this for functions which it implements
5 kx to always fail with ENOSYS. Some functions are actually named
5 kx something starting with __ and the normal name is an alias. */
5 kx #if defined __stub_kevent || defined __stub___kevent
5 kx choke me
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return kevent ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx ac_cv_func_kevent=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_func_kevent=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5
5 kx echo "${ECHO_T}$ac_cv_func_kevent" >&6; }
5 kx if test $ac_cv_func_kevent = yes; then
5 kx have_kevent=1
5 kx fi
5 kx
5 kx if test x$have_kevent = x1 ; then
5 kx # Check whether --enable-kqueue was given.
5 kx if test "${enable_kqueue+set}" = set; then
5 kx enableval=$enable_kqueue; kqueue="${enableval}"
5 kx else
5 kx kqueue=true
5 kx fi
5 kx
5 kx
5 kx if test x$kqueue = xyes; then
5 kx kqueue=true
5 kx elif test x$kqueue = xno; then
5 kx kqueue=false
5 kx elif test x$kqueue != xtrue; then
5 kx { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-kqueue" >&5
5 kx echo "$as_me: error: bad value ${enableval} for --disable-kqueue" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx if test x$kqueue = xtrue; then
5 kx ENABLE_KQUEUE_TRUE=
5 kx ENABLE_KQUEUE_FALSE='#'
5 kx else
5 kx ENABLE_KQUEUE_TRUE='#'
5 kx ENABLE_KQUEUE_FALSE=
5 kx fi
5 kx
5 kx
5 kx if test x$kqueue = xtrue; then
5 kx
5 kx for ac_header in sys/event.h
5 kx do
5 kx as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5 kx if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx { echo "$as_me:$LINENO: checking for $ac_header" >&5
5 kx echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5 kx if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx fi
5 kx ac_res=`eval echo '${'$as_ac_Header'}'`
5 kx { echo "$as_me:$LINENO: result: $ac_res" >&5
5 kx echo "${ECHO_T}$ac_res" >&6; }
5 kx else
5 kx # Is the header compilable?
5 kx { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5 kx echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx #include <$ac_header>
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_header_compiler=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_header_compiler=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5 kx echo "${ECHO_T}$ac_header_compiler" >&6; }
5 kx
5 kx # Is the header present?
5 kx { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5 kx echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <$ac_header>
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx ac_header_preproc=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_header_preproc=no
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5 kx echo "${ECHO_T}$ac_header_preproc" >&6; }
5 kx
5 kx # So? What about this header?
5 kx case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5 kx yes:no: )
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5 kx echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5 kx echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5 kx ac_header_preproc=yes
5 kx ;;
5 kx no:yes:* )
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5 kx echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5 kx echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5 kx echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5 kx echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5 kx echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5 kx echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5 kx
5 kx ;;
5 kx esac
5 kx { echo "$as_me:$LINENO: checking for $ac_header" >&5
5 kx echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5 kx if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx eval "$as_ac_Header=\$ac_header_preproc"
5 kx fi
5 kx ac_res=`eval echo '${'$as_ac_Header'}'`
5 kx { echo "$as_me:$LINENO: result: $ac_res" >&5
5 kx echo "${ECHO_T}$ac_res" >&6; }
5 kx
5 kx fi
5 kx if test `eval echo '${'$as_ac_Header'}'` = yes; then
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define ENABLE_KQUEUE 1
5 kx _ACEOF
5 kx
5 kx backends="${backends}, kqueue"
5 kx fi
5 kx
5 kx
5 kx # Check whether --with-threads was given.
5 kx if test "${with_threads+set}" = set; then
5 kx withval=$with_threads;
5 kx fi
5 kx
5 kx
5 kx if test "$with_threads" = "no" ; then
5 kx echo Disabling multithreaded support
5 kx else
5 kx echo Enabling multithreaded support
5 kx
5 kx if test "${ac_cv_header_pthread_h+set}" = set; then
5 kx { echo "$as_me:$LINENO: checking for pthread.h" >&5
5 kx echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
5 kx if test "${ac_cv_header_pthread_h+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5 kx echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
5 kx else
5 kx # Is the header compilable?
5 kx { echo "$as_me:$LINENO: checking pthread.h usability" >&5
5 kx echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx #include <pthread.h>
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_header_compiler=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_header_compiler=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5 kx echo "${ECHO_T}$ac_header_compiler" >&6; }
5 kx
5 kx # Is the header present?
5 kx { echo "$as_me:$LINENO: checking pthread.h presence" >&5
5 kx echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx ac_header_preproc=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_header_preproc=no
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5 kx echo "${ECHO_T}$ac_header_preproc" >&6; }
5 kx
5 kx # So? What about this header?
5 kx case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5 kx yes:no: )
5 kx { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5 kx echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
5 kx echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
5 kx ac_header_preproc=yes
5 kx ;;
5 kx no:yes:* )
5 kx { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5 kx echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5 kx echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
5 kx echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
5 kx echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5 kx echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
5 kx echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
5 kx
5 kx ;;
5 kx esac
5 kx { echo "$as_me:$LINENO: checking for pthread.h" >&5
5 kx echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
5 kx if test "${ac_cv_header_pthread_h+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_cv_header_pthread_h=$ac_header_preproc
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5 kx echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
5 kx
5 kx fi
5 kx if test $ac_cv_header_pthread_h = yes; then
5 kx { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype in -lpthread" >&5
5 kx echo $ECHO_N "checking for pthread_mutexattr_settype in -lpthread... $ECHO_C" >&6; }
5 kx if test "${ac_cv_lib_pthread_pthread_mutexattr_settype+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lpthread $LIBS"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char pthread_mutexattr_settype ();
5 kx int
5 kx main ()
5 kx {
5 kx return pthread_mutexattr_settype ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx ac_cv_lib_pthread_pthread_mutexattr_settype=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_lib_pthread_pthread_mutexattr_settype=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutexattr_settype" >&5
5 kx echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutexattr_settype" >&6; }
5 kx if test $ac_cv_lib_pthread_pthread_mutexattr_settype = yes; then
5 kx
5 kx THREAD_LIBS="-lpthread"
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define HAVE_LIBPTHREAD
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define HAVE_PTHREAD_H
5 kx _ACEOF
5 kx
5 kx WITH_THREADS="1"
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx if test x$os = xlinux-gnu -a x$WITH_THREADS = x1 ; then
5 kx if test "${CC}" = "gcc" ; then
5 kx echo Use weak symbols !
5 kx THREAD_LIBS=
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx # It may just be gnu but it could also be gnu0.3, etc.
5 kx # if echo x$os | grep -E -e '^xgnu[0-9]*\.?[0-9]*$' >/dev/null;
5 kx # won't work as m4 eats the []s.
5 kx if case x$os in xgnu*) true;; *) false;; esac; then
5 kx # Check whether --enable-kqueue was given.
5 kx if test "${enable_kqueue+set}" = set; then
5 kx enableval=$enable_kqueue; hurd_mach_notify="${enableval}"
5 kx else
5 kx hurd_mach_notify=true
5 kx fi
5 kx
5 kx
5 kx if test x$hurd_mach_notify = xyes; then
5 kx hurd_mach_notify=true
5 kx elif test x$hurd_mach_notify = xno; then
5 kx hurd_mach_notify=false
5 kx elif test x$hurd_mach_notify != xtrue; then
5 kx { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-hurd_mach_notify" >&5
5 kx echo "$as_me: error: bad value ${enableval} for --disable-hurd_mach_notify" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx fi
5 kx
5 kx if test x$hurd_mach_notify = xtrue; then
5 kx ENABLE_HURD_MACH_NOTIFY_TRUE=
5 kx ENABLE_HURD_MACH_NOTIFY_FALSE='#'
5 kx else
5 kx ENABLE_HURD_MACH_NOTIFY_TRUE='#'
5 kx ENABLE_HURD_MACH_NOTIFY_FALSE=
5 kx fi
5 kx
5 kx
5 kx if test x$hurd_mach_notify = xtrue; then
5 kx # <hurd/ports.h> requires _GNU_SOURCE.
5 kx old_CPPFLAGS="$CPPFLAGS"
5 kx CPPFLAGS="$old_CPPFLAGS -D_GNU_SOURCE"
5 kx
5 kx for ac_header in hurd/ports.h
5 kx do
5 kx as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5 kx if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx { echo "$as_me:$LINENO: checking for $ac_header" >&5
5 kx echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5 kx if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx fi
5 kx ac_res=`eval echo '${'$as_ac_Header'}'`
5 kx { echo "$as_me:$LINENO: result: $ac_res" >&5
5 kx echo "${ECHO_T}$ac_res" >&6; }
5 kx else
5 kx # Is the header compilable?
5 kx { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5 kx echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx #include <$ac_header>
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx ac_header_compiler=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_header_compiler=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5 kx echo "${ECHO_T}$ac_header_compiler" >&6; }
5 kx
5 kx # Is the header present?
5 kx { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5 kx echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx #include <$ac_header>
5 kx _ACEOF
5 kx if { (ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } >/dev/null && {
5 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then
5 kx ac_header_preproc=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_header_preproc=no
5 kx fi
5 kx
5 kx rm -f conftest.err conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5 kx echo "${ECHO_T}$ac_header_preproc" >&6; }
5 kx
5 kx # So? What about this header?
5 kx case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5 kx yes:no: )
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5 kx echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5 kx echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5 kx ac_header_preproc=yes
5 kx ;;
5 kx no:yes:* )
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5 kx echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5 kx echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5 kx echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5 kx echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5 kx echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5 kx { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5 kx echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5 kx
5 kx ;;
5 kx esac
5 kx { echo "$as_me:$LINENO: checking for $ac_header" >&5
5 kx echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5 kx if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx eval "$as_ac_Header=\$ac_header_preproc"
5 kx fi
5 kx ac_res=`eval echo '${'$as_ac_Header'}'`
5 kx { echo "$as_me:$LINENO: result: $ac_res" >&5
5 kx echo "${ECHO_T}$ac_res" >&6; }
5 kx
5 kx fi
5 kx if test `eval echo '${'$as_ac_Header'}'` = yes; then
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx else
5 kx { { echo "$as_me:$LINENO: error: <hurd/ports.h> not found but required to build hurd_mach_notify backend." >&5
5 kx echo "$as_me: error: <hurd/ports.h> not found but required to build hurd_mach_notify backend." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx done
5 kx
5 kx CPPFLAGS="$old_CPPFLAGS"
5 kx
5 kx { echo "$as_me:$LINENO: checking for ports_create_port in -lports" >&5
5 kx echo $ECHO_N "checking for ports_create_port in -lports... $ECHO_C" >&6; }
5 kx if test "${ac_cv_lib_ports_ports_create_port+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lports -lthreads $LIBS"
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char ports_create_port ();
5 kx int
5 kx main ()
5 kx {
5 kx return ports_create_port ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext &&
5 kx $as_test_x conftest$ac_exeext; then
5 kx ac_cv_lib_ports_ports_create_port=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_cv_lib_ports_ports_create_port=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $ac_cv_lib_ports_ports_create_port" >&5
5 kx echo "${ECHO_T}$ac_cv_lib_ports_ports_create_port" >&6; }
5 kx if test $ac_cv_lib_ports_ports_create_port = yes; then
5 kx :
5 kx else
5 kx { { echo "$as_me:$LINENO: error: libports not found but required to build hurd_mach_notify backend." >&5
5 kx echo "$as_me: error: libports not found but required to build hurd_mach_notify backend." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}mig; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_MIG+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$MIG"; then
5 kx ac_cv_prog_MIG="$MIG" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_MIG="${ac_tool_prefix}mig"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx MIG=$ac_cv_prog_MIG
5 kx if test -n "$MIG"; then
5 kx { echo "$as_me:$LINENO: result: $MIG" >&5
5 kx echo "${ECHO_T}$MIG" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_MIG"; then
5 kx ac_ct_MIG=$MIG
5 kx # Extract the first word of "mig", so it can be a program name with args.
5 kx set dummy mig; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx if test -n "$ac_ct_MIG"; then
5 kx ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_prog_ac_ct_MIG="mig"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
5 kx if test -n "$ac_ct_MIG"; then
5 kx { echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
5 kx echo "${ECHO_T}$ac_ct_MIG" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_MIG" = x; then
5 kx MIG="{ { echo "$as_me:$LINENO: error: mig not found but required to build hurd_mach_notify backend." >&5
5 kx echo "$as_me: error: mig not found but required to build hurd_mach_notify backend." >&2;}
5 kx { (exit 1); exit 1; }; }"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&5
5 kx echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5 kx whose name does not start with the host triplet. If you think this
5 kx configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx MIG=$ac_ct_MIG
5 kx fi
5 kx else
5 kx MIG="$ac_cv_prog_MIG"
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define ENABLE_HURD_MACH_NOTIFY 1
5 kx _ACEOF
5 kx
5 kx backends="${backends}, hurd_mach_notify"
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: checking for ISO C99 varargs macros in C" >&5
5 kx echo $ECHO_N "checking for ISO C99 varargs macros in C... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx int a(int p1, int p2, int p3);
5 kx #define call_a(...) a(1,__VA_ARGS__)
5 kx call_a(2,3);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx dbus_have_iso_c_varargs=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx dbus_have_iso_c_varargs=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $dbus_have_iso_c_varargs" >&5
5 kx echo "${ECHO_T}$dbus_have_iso_c_varargs" >&6; }
5 kx
5 kx { echo "$as_me:$LINENO: checking for GNUC varargs macros" >&5
5 kx echo $ECHO_N "checking for GNUC varargs macros... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx int a(int p1, int p2, int p3);
5 kx #define call_a(params...) a(1,params)
5 kx call_a(2,3);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx dbus_have_gnuc_varargs=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx dbus_have_gnuc_varargs=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $dbus_have_gnuc_varargs" >&5
5 kx echo "${ECHO_T}$dbus_have_gnuc_varargs" >&6; }
5 kx
5 kx if test x$dbus_have_iso_c_varargs = xyes; then
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define HAVE_ISO_VARARGS 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx if test x$dbus_have_gnuc_varargs = xyes; then
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define HAVE_GNUC_VARARGS 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
5 kx echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx #include <sys/types.h>
5 kx #include <sys/socket.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx struct cmsgcred cred;
5 kx
5 kx cred.cmcred_pid = 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx dbus_have_struct_cmsgcred=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx dbus_have_struct_cmsgcred=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx { echo "$as_me:$LINENO: result: $dbus_have_struct_cmsgcred" >&5
5 kx echo "${ECHO_T}$dbus_have_struct_cmsgcred" >&6; }
5 kx
5 kx if test x$dbus_have_struct_cmsgcred = xyes; then
5 kx
5 kx cat >>confdefs.h <<\_ACEOF
5 kx #define HAVE_CMSGCRED 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx #### Abstract sockets
5 kx
5 kx { echo "$as_me:$LINENO: checking abstract socket namespace" >&5
5 kx echo $ECHO_N "checking abstract socket namespace... $ECHO_C" >&6; }
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx if test "${ac_cv_have_abstract_sockets+set}" = set; then
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then
5 kx { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5 kx See \`config.log' for more details." >&5
5 kx echo "$as_me: error: cannot run test program while cross compiling
5 kx See \`config.log' for more details." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx else
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx #include <sys/types.h>
5 kx #include <stdlib.h>
5 kx #include <string.h>
5 kx #include <stdio.h>
5 kx #include <sys/socket.h>
5 kx #include <sys/un.h>
5 kx #include <errno.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx int listen_fd;
5 kx struct sockaddr_un addr;
5 kx
5 kx listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
5 kx
5 kx if (listen_fd < 0)
5 kx {
5 kx fprintf (stderr, "socket() failed: %s\n", strerror (errno));
5 kx exit (1);
5 kx }
5 kx
5 kx memset (&addr, '\0', sizeof (addr));
5 kx addr.sun_family = AF_UNIX;
5 kx strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test");
5 kx addr.sun_path[0] = '\0'; /* this is what makes it abstract */
5 kx
5 kx if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0)
5 kx {
5 kx fprintf (stderr, "Abstract socket namespace bind() failed: %s\n",
5 kx strerror (errno));
5 kx exit (1);
5 kx }
5 kx else
5 kx exit (0);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest$ac_exeext
5 kx if { (ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_link") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5 kx { (case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_try") 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }; }; then
5 kx ac_cv_have_abstract_sockets=yes
5 kx else
5 kx echo "$as_me: program exited with status $ac_status" >&5
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ( exit $ac_status )
5 kx ac_cv_have_abstract_sockets=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx { echo "$as_me:$LINENO: result: $ac_cv_have_abstract_sockets" >&5
5 kx echo "${ECHO_T}$ac_cv_have_abstract_sockets" >&6; }
5 kx
5 kx if test x$enable_abstract_sockets = xyes; then
5 kx if test x$ac_cv_have_abstract_sockets = xno; then
5 kx { { echo "$as_me:$LINENO: error: Abstract sockets explicitly required, and support not detected." >&5
5 kx echo "$as_me: error: Abstract sockets explicitly required, and support not detected." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx fi
5 kx
5 kx if test x$enable_abstract_sockets = xno; then
5 kx ac_cv_have_abstract_sockets=no;
5 kx fi
5 kx
5 kx if test x$ac_cv_have_abstract_sockets = xyes ; then
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_ABSTRACT_SOCKETS $abstract_sockets
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx # Check whether --with-python was given.
5 kx if test "${with_python+set}" = set; then
5 kx withval=$with_python;
5 kx fi
5 kx
5 kx
5 kx PYTHON_TESTS=
5 kx pythondir=
5 kx if test "$with_python" != "no" ; then
5 kx if test -x "$with_python/bin/python"
5 kx then
5 kx echo Found python in $with_python/bin/python
5 kx PYTHON="$with_python/bin/python"
5 kx else
5 kx if test -x "$with_python"
5 kx then
5 kx echo Found python in $with_python
5 kx PYTHON="$with_python"
5 kx else
5 kx if test -x "$PYTHON"
5 kx then
5 kx echo Found python in environment PYTHON=$PYTHON
5 kx with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
5 kx else
5 kx # Extract the first word of "python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
5 kx set dummy python python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
5 kx { echo "$as_me:$LINENO: checking for $ac_word" >&5
5 kx echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5 kx if test "${ac_cv_path_PYTHON+set}" = set; then
5 kx echo $ECHO_N "(cached) $ECHO_C" >&6
5 kx else
5 kx case $PYTHON in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5 kx ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5 kx echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx PYTHON=$ac_cv_path_PYTHON
5 kx if test -n "$PYTHON"; then
5 kx { echo "$as_me:$LINENO: result: $PYTHON" >&5
5 kx echo "${ECHO_T}$PYTHON" >&6; }
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx fi
5 kx fi
5 kx if test "$PYTHON" != ""
5 kx then
5 kx if test "$PYTHON_VERSION" != ""
5 kx then
5 kx PYTHON_VERSION=$PYTHON_VERSION
5 kx echo Found Python version $PYTHON_VERSION
5 kx else
5 kx PYTHON_VERSION=`$PYTHON -c "import sys; print (sys.version[0:3])"`
5 kx echo Found Python version $PYTHON_VERSION
5 kx fi
5 kx fi
5 kx if test "$PYTHON_VERSION" != ""
5 kx then
5 kx if test "$PYTHON_INCLUDES" != ""
5 kx then
5 kx PYTHON_INCLUDES=$PYTHON_INCLUDES
5 kx if test "$PYTHON_SITE_PACKAGES" != ""
5 kx then
5 kx PYTHON_SITE_PACKAGES=$PYTHON_SITE_PACKAGES
5 kx else
5 kx PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
5 kx fi
5 kx else
5 kx if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
5 kx -d $with_python/lib/python$PYTHON_VERSION/site-packages
5 kx then
5 kx PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
5 kx PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
5 kx else
5 kx if test -r $prefix/include/python$PYTHON_VERSION/Python.h
5 kx then
5 kx PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
5 kx PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
5 kx else
5 kx if test -r /usr/include/python$PYTHON_VERSION/Python.h
5 kx then
5 kx PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
5 kx PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
5 kx else
5 kx echo could not find python$PYTHON_VERSION/Python.h
5 kx fi
5 kx fi
5 kx if test ! -d "$PYTHON_SITE_PACKAGES"
5 kx then
5 kx PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx if test "$with_python" != ""
5 kx then
5 kx pythondir='$(PYTHON_SITE_PACKAGES)'
5 kx else
5 kx pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
5 kx fi
5 kx else
5 kx PYTHON=
5 kx fi
5 kx if test "$PYTHON_INCLUDES" != ""
5 kx then
5 kx enable_python="$enable_libgamin"
5 kx else
5 kx enable_python="no"
5 kx fi
5 kx if test "$enable_python" = "yes"; then
5 kx WITH_PYTHON_TRUE=
5 kx WITH_PYTHON_FALSE='#'
5 kx else
5 kx WITH_PYTHON_TRUE='#'
5 kx WITH_PYTHON_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { echo "$as_me:$LINENO: checking for more compiler warnings" >&5
5 kx echo $ECHO_N "checking for more compiler warnings... $ECHO_C" >&6; }
5 kx if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
5 kx { echo "$as_me:$LINENO: result: yes" >&5
5 kx echo "${ECHO_T}yes" >&6; }
5 kx warning_cflags="\
5 kx -Wall\
5 kx -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes\
5 kx -Wnested-externs\
5 kx -Wsign-compare"
5 kx
5 kx SAVE_CFLAGS="$CFLAGS"
5 kx for option in -Wno-sign-compare; do
5 kx CFLAGS="$option"
5 kx { echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
5 kx echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6; }
5 kx cat >conftest.$ac_ext <<_ACEOF
5 kx /* confdefs.h. */
5 kx _ACEOF
5 kx cat confdefs.h >>conftest.$ac_ext
5 kx cat >>conftest.$ac_ext <<_ACEOF
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.$ac_objext
5 kx if { (ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5 kx (eval "$ac_compile") 2>conftest.er1
5 kx ac_status=$?
5 kx grep -v '^ *+' conftest.er1 >conftest.err
5 kx rm -f conftest.er1
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then
5 kx has_option=yes
5 kx else
5 kx echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx has_option=no
5 kx fi
5 kx
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx if test "$has_option" != "no"; then
5 kx warning_cflags="$warning_cflags $option"
5 kx fi
5 kx { echo "$as_me:$LINENO: result: $has_option" >&5
5 kx echo "${ECHO_T}$has_option" >&6; }
5 kx unset has_option
5 kx done
5 kx CFLAGS="$SAVE_CFLAGS"
5 kx unset option
5 kx else
5 kx { echo "$as_me:$LINENO: result: no" >&5
5 kx echo "${ECHO_T}no" >&6; }
5 kx fi
5 kx
5 kx if test "$GCC" = "yes"; then
5 kx if test "$debug" = "yes"; then
5 kx debug_cflags="-g"
5 kx else
5 kx # autotools defaults to "-O2 -g" for cflags, but we don't
5 kx # want -g in non-debug builds
5 kx if test -z "$ENV_CFLAGS"; then
5 kx CFLAGS="-O2"
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx AM_CFLAGS="$warning_cflags $debug_cflags"
5 kx
5 kx
5 kx
5 kx ac_config_files="$ac_config_files Makefile lib/Makefile libgamin/Makefile server/Makefile tests/Makefile python/Makefile python/tests/Makefile doc/Makefile gamin.pc gamin.spec"
5 kx
5 kx cat >confcache <<\_ACEOF
5 kx # This file is a shell script that caches the results of configure
5 kx # tests run on this system so they can be shared between configure
5 kx # scripts and configure runs, see configure's option --config-cache.
5 kx # It is not useful on other systems. If it contains results you don't
5 kx # want to keep, you may remove or edit it.
5 kx #
5 kx # config.status only pays attention to the cache file if you give it
5 kx # the --recheck option to rerun configure.
5 kx #
5 kx # `ac_cv_env_foo' variables (set or unset) will be overridden when
5 kx # loading this file, other *unset* `ac_cv_foo' will be assigned the
5 kx # following values.
5 kx
5 kx _ACEOF
5 kx
5 kx # The following way of writing the cache mishandles newlines in values,
5 kx # but we know of no workaround that is simple, portable, and efficient.
5 kx # So, we kill variables containing newlines.
5 kx # Ultrix sh set writes to stderr and can't be redirected directly,
5 kx # and sets the high bit in the cache file unless we assign to the vars.
5 kx (
5 kx for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in #(
5 kx *${as_nl}*)
5 kx case $ac_var in #(
5 kx *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5 kx echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5 kx esac
5 kx case $ac_var in #(
5 kx _ | IFS | as_nl) ;; #(
5 kx *) $as_unset $ac_var ;;
5 kx esac ;;
5 kx esac
5 kx done
5 kx
5 kx (set) 2>&1 |
5 kx case $as_nl`(ac_space=' '; set) 2>&1` in #(
5 kx *${as_nl}ac_space=\ *)
5 kx # `set' does not quote correctly, so add quotes (double-quote
5 kx # substitution turns \\\\ into \\, and sed turns \\ into \).
5 kx sed -n \
5 kx "s/'/'\\\\''/g;
5 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5 kx ;; #(
5 kx *)
5 kx # `set' quotes correctly as required by POSIX, so do not add quotes.
5 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5 kx ;;
5 kx esac |
5 kx sort
5 kx ) |
5 kx sed '
5 kx /^ac_cv_env_/b end
5 kx t clear
5 kx :clear
5 kx s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5 kx t end
5 kx s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5 kx :end' >>confcache
5 kx if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5 kx if test -w "$cache_file"; then
5 kx test "x$cache_file" != "x/dev/null" &&
5 kx { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5 kx echo "$as_me: updating cache $cache_file" >&6;}
5 kx cat confcache >$cache_file
5 kx else
5 kx { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5 kx echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5 kx fi
5 kx fi
5 kx rm -f confcache
5 kx
5 kx test "x$prefix" = xNONE && prefix=$ac_default_prefix
5 kx # Let make expand exec_prefix.
5 kx test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5 kx
5 kx DEFS=-DHAVE_CONFIG_H
5 kx
5 kx ac_libobjs=
5 kx ac_ltlibobjs=
5 kx for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5 kx # 1. Remove the extension, and $U if already installed.
5 kx ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5 kx ac_i=`echo "$ac_i" | sed "$ac_script"`
5 kx # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5 kx # will be set to the directory where LIBOBJS objects are built.
5 kx ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5 kx ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5 kx done
5 kx LIBOBJS=$ac_libobjs
5 kx
5 kx LTLIBOBJS=$ac_ltlibobjs
5 kx
5 kx
5 kx if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"AMDEP\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${BUILD_LIBGAMIN_TRUE}" && test -z "${BUILD_LIBGAMIN_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBGAMIN\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"BUILD_LIBGAMIN\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"BUILD_SERVER\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"BUILD_SERVER\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"BUILD_TESTS\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"BUILD_TESTS\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${GAMIN_DEBUG_TRUE}" && test -z "${GAMIN_DEBUG_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"GAMIN_DEBUG\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"GAMIN_DEBUG\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${ENABLE_INOTIFY_TRUE}" && test -z "${ENABLE_INOTIFY_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"ENABLE_INOTIFY\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"ENABLE_INOTIFY\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${ENABLE_DNOTIFY_TRUE}" && test -z "${ENABLE_DNOTIFY_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DNOTIFY\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"ENABLE_DNOTIFY\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${ENABLE_KQUEUE_TRUE}" && test -z "${ENABLE_KQUEUE_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"ENABLE_KQUEUE\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"ENABLE_KQUEUE\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${ENABLE_HURD_MACH_NOTIFY_TRUE}" && test -z "${ENABLE_HURD_MACH_NOTIFY_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"ENABLE_HURD_MACH_NOTIFY\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"ENABLE_HURD_MACH_NOTIFY\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
5 kx { { echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&5
5 kx echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx fi
5 kx
5 kx : ${CONFIG_STATUS=./config.status}
5 kx ac_clean_files_save=$ac_clean_files
5 kx ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5 kx { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5 kx echo "$as_me: creating $CONFIG_STATUS" >&6;}
5 kx cat >$CONFIG_STATUS <<_ACEOF
5 kx #! $SHELL
5 kx # Generated by $as_me.
5 kx # Run this file to recreate the current configuration.
5 kx # Compiler output produced by configure, useful for debugging
5 kx # configure, is in config.log if it exists.
5 kx
5 kx debug=false
5 kx ac_cs_recheck=false
5 kx ac_cs_silent=false
5 kx SHELL=\${CONFIG_SHELL-$SHELL}
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF
5 kx ## --------------------- ##
5 kx ## M4sh Initialization. ##
5 kx ## --------------------- ##
5 kx
5 kx # Be more Bourne compatible
5 kx DUALCASE=1; export DUALCASE # for MKS sh
5 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5 kx emulate sh
5 kx NULLCMD=:
5 kx # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5 kx # is contrary to our usage. Disable this feature.
5 kx alias -g '${1+"$@"}'='"$@"'
5 kx setopt NO_GLOB_SUBST
5 kx else
5 kx case `(set -o) 2>/dev/null` in
5 kx *posix*) set -o posix ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx # PATH needs CR
5 kx # Avoid depending upon Character Ranges.
5 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5 kx as_cr_digits='0123456789'
5 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
5 kx
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx echo "#! /bin/sh" >conf$$.sh
5 kx echo "exit 0" >>conf$$.sh
5 kx chmod +x conf$$.sh
5 kx if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5 kx PATH_SEPARATOR=';'
5 kx else
5 kx PATH_SEPARATOR=:
5 kx fi
5 kx rm -f conf$$.sh
5 kx fi
5 kx
5 kx # Support unset when possible.
5 kx if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5 kx as_unset=unset
5 kx else
5 kx as_unset=false
5 kx fi
5 kx
5 kx
5 kx # IFS
5 kx # We need space, tab and new line, in precisely that order. Quoting is
5 kx # there to prevent editors from complaining about space-tab.
5 kx # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5 kx # splitting by setting IFS to empty value.)
5 kx as_nl='
5 kx '
5 kx IFS=" "" $as_nl"
5 kx
5 kx # Find who we are. Look in the path if we contain no directory separator.
5 kx case $0 in
5 kx *[\\/]* ) as_myself=$0 ;;
5 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
5 kx # in which case we are not to be found in the path.
5 kx if test "x$as_myself" = x; then
5 kx as_myself=$0
5 kx fi
5 kx if test ! -f "$as_myself"; then
5 kx echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5 kx { (exit 1); exit 1; }
5 kx fi
5 kx
5 kx # Work around bugs in pre-3.0 UWIN ksh.
5 kx for as_var in ENV MAIL MAILPATH
5 kx do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5 kx done
5 kx PS1='$ '
5 kx PS2='> '
5 kx PS4='+ '
5 kx
5 kx # NLS nuisances.
5 kx for as_var in \
5 kx LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5 kx LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5 kx LC_TELEPHONE LC_TIME
5 kx do
5 kx if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5 kx eval $as_var=C; export $as_var
5 kx else
5 kx ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5 kx fi
5 kx done
5 kx
5 kx # Required to use basename.
5 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
5 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
5 kx as_expr=expr
5 kx else
5 kx as_expr=false
5 kx fi
5 kx
5 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5 kx as_basename=basename
5 kx else
5 kx as_basename=false
5 kx fi
5 kx
5 kx
5 kx # Name of the executable.
5 kx as_me=`$as_basename -- "$0" ||
5 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5 kx X"$0" : 'X\(//\)$' \| \
5 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5 kx echo X/"$0" |
5 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx
5 kx # CDPATH.
5 kx $as_unset CDPATH
5 kx
5 kx
5 kx
5 kx as_lineno_1=$LINENO
5 kx as_lineno_2=$LINENO
5 kx test "x$as_lineno_1" != "x$as_lineno_2" &&
5 kx test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5 kx
5 kx # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5 kx # uniformly replaced by the line number. The first 'sed' inserts a
5 kx # line-number line after each line using $LINENO; the second 'sed'
5 kx # does the real work. The second script uses 'N' to pair each
5 kx # line-number line with the line containing $LINENO, and appends
5 kx # trailing '-' during substitution so that $LINENO is not a special
5 kx # case at line end.
5 kx # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5 kx # scripts with optimization help from Paolo Bonzini. Blame Lee
5 kx # E. McMahon (1931-1989) for sed's syntax. :-)
5 kx sed -n '
5 kx p
5 kx /[$]LINENO/=
5 kx ' <$as_myself |
5 kx sed '
5 kx s/[$]LINENO.*/&-/
5 kx t lineno
5 kx b
5 kx :lineno
5 kx N
5 kx :loop
5 kx s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5 kx t loop
5 kx s/-\n.*//
5 kx ' >$as_me.lineno &&
5 kx chmod +x "$as_me.lineno" ||
5 kx { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5 kx { (exit 1); exit 1; }; }
5 kx
5 kx # Don't try to exec as it changes $[0], causing all sort of problems
5 kx # (the dirname of $[0] is not the place where we might find the
5 kx # original and so on. Autoconf is especially sensitive to this).
5 kx . "./$as_me.lineno"
5 kx # Exit status is that of the last command.
5 kx exit
5 kx }
5 kx
5 kx
5 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5 kx as_dirname=dirname
5 kx else
5 kx as_dirname=false
5 kx fi
5 kx
5 kx ECHO_C= ECHO_N= ECHO_T=
5 kx case `echo -n x` in
5 kx -n*)
5 kx case `echo 'x\c'` in
5 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5 kx *) ECHO_C='\c';;
5 kx esac;;
5 kx *)
5 kx ECHO_N='-n';;
5 kx esac
5 kx
5 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
5 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
5 kx as_expr=expr
5 kx else
5 kx as_expr=false
5 kx fi
5 kx
5 kx rm -f conf$$ conf$$.exe conf$$.file
5 kx if test -d conf$$.dir; then
5 kx rm -f conf$$.dir/conf$$.file
5 kx else
5 kx rm -f conf$$.dir
5 kx mkdir conf$$.dir
5 kx fi
5 kx echo >conf$$.file
5 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s='ln -s'
5 kx # ... but there are two gotchas:
5 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5 kx # In both cases, we have to default to `cp -p'.
5 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5 kx as_ln_s='cp -p'
5 kx elif ln conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s=ln
5 kx else
5 kx as_ln_s='cp -p'
5 kx fi
5 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5 kx rmdir conf$$.dir 2>/dev/null
5 kx
5 kx if mkdir -p . 2>/dev/null; then
5 kx as_mkdir_p=:
5 kx else
5 kx test -d ./-p && rmdir ./-p
5 kx as_mkdir_p=false
5 kx fi
5 kx
5 kx if test -x / >/dev/null 2>&1; then
5 kx as_test_x='test -x'
5 kx else
5 kx if ls -dL / >/dev/null 2>&1; then
5 kx as_ls_L_option=L
5 kx else
5 kx as_ls_L_option=
5 kx fi
5 kx as_test_x='
5 kx eval sh -c '\''
5 kx if test -d "$1"; then
5 kx test -d "$1/.";
5 kx else
5 kx case $1 in
5 kx -*)set "./$1";;
5 kx esac;
5 kx case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5 kx ???[sx]*):;;*)false;;esac;fi
5 kx '\'' sh
5 kx '
5 kx fi
5 kx as_executable_p=$as_test_x
5 kx
5 kx # Sed expression to map a string onto a valid CPP name.
5 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx # Sed expression to map a string onto a valid variable name.
5 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx
5 kx exec 6>&1
5 kx
5 kx # Save the log message, to keep $[0] and so on meaningful, and to
5 kx # report actual input values of CONFIG_FILES etc. instead of their
5 kx # values after options handling.
5 kx ac_log="
5 kx This file was extended by $as_me, which was
5 kx generated by GNU Autoconf 2.61. Invocation command line was
5 kx
5 kx CONFIG_FILES = $CONFIG_FILES
5 kx CONFIG_HEADERS = $CONFIG_HEADERS
5 kx CONFIG_LINKS = $CONFIG_LINKS
5 kx CONFIG_COMMANDS = $CONFIG_COMMANDS
5 kx $ $0 $@
5 kx
5 kx on `(hostname || uname -n) 2>/dev/null | sed 1q`
5 kx "
5 kx
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<_ACEOF
5 kx # Files that config.status was made for.
5 kx config_files="$ac_config_files"
5 kx config_headers="$ac_config_headers"
5 kx config_commands="$ac_config_commands"
5 kx
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF
5 kx ac_cs_usage="\
5 kx \`$as_me' instantiates files from templates according to the
5 kx current configuration.
5 kx
5 kx Usage: $0 [OPTIONS] [FILE]...
5 kx
5 kx -h, --help print this help, then exit
5 kx -V, --version print version number and configuration settings, then exit
5 kx -q, --quiet do not print progress messages
5 kx -d, --debug don't remove temporary files
5 kx --recheck update $as_me by reconfiguring in the same conditions
5 kx --file=FILE[:TEMPLATE]
5 kx instantiate the configuration file FILE
5 kx --header=FILE[:TEMPLATE]
5 kx instantiate the configuration header FILE
5 kx
5 kx Configuration files:
5 kx $config_files
5 kx
5 kx Configuration headers:
5 kx $config_headers
5 kx
5 kx Configuration commands:
5 kx $config_commands
5 kx
5 kx Report bugs to <bug-autoconf@gnu.org>."
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF
5 kx ac_cs_version="\\
5 kx config.status
5 kx configured by $0, generated by GNU Autoconf 2.61,
5 kx with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5 kx
5 kx Copyright (C) 2006 Free Software Foundation, Inc.
5 kx This config.status script is free software; the Free Software Foundation
5 kx gives unlimited permission to copy, distribute and modify it."
5 kx
5 kx ac_pwd='$ac_pwd'
5 kx srcdir='$srcdir'
5 kx INSTALL='$INSTALL'
5 kx MKDIR_P='$MKDIR_P'
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF
5 kx # If no file are specified by the user, then we need to provide default
5 kx # value. By we need to know if files were specified by the user.
5 kx ac_need_defaults=:
5 kx while test $# != 0
5 kx do
5 kx case $1 in
5 kx --*=*)
5 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
5 kx ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5 kx ac_shift=:
5 kx ;;
5 kx *)
5 kx ac_option=$1
5 kx ac_optarg=$2
5 kx ac_shift=shift
5 kx ;;
5 kx esac
5 kx
5 kx case $ac_option in
5 kx # Handling of the options.
5 kx -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5 kx ac_cs_recheck=: ;;
5 kx --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5 kx echo "$ac_cs_version"; exit ;;
5 kx --debug | --debu | --deb | --de | --d | -d )
5 kx debug=: ;;
5 kx --file | --fil | --fi | --f )
5 kx $ac_shift
5 kx CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5 kx ac_need_defaults=false;;
5 kx --header | --heade | --head | --hea )
5 kx $ac_shift
5 kx CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5 kx ac_need_defaults=false;;
5 kx --he | --h)
5 kx # Conflict between --help and --header
5 kx { echo "$as_me: error: ambiguous option: $1
5 kx Try \`$0 --help' for more information." >&2
5 kx { (exit 1); exit 1; }; };;
5 kx --help | --hel | -h )
5 kx echo "$ac_cs_usage"; exit ;;
5 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5 kx | -silent | --silent | --silen | --sile | --sil | --si | --s)
5 kx ac_cs_silent=: ;;
5 kx
5 kx # This is an error.
5 kx -*) { echo "$as_me: error: unrecognized option: $1
5 kx Try \`$0 --help' for more information." >&2
5 kx { (exit 1); exit 1; }; } ;;
5 kx
5 kx *) ac_config_targets="$ac_config_targets $1"
5 kx ac_need_defaults=false ;;
5 kx
5 kx esac
5 kx shift
5 kx done
5 kx
5 kx ac_configure_extra_args=
5 kx
5 kx if $ac_cs_silent; then
5 kx exec 6>/dev/null
5 kx ac_configure_extra_args="$ac_configure_extra_args --silent"
5 kx fi
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF
5 kx if \$ac_cs_recheck; then
5 kx echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5 kx CONFIG_SHELL=$SHELL
5 kx export CONFIG_SHELL
5 kx exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5 kx fi
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF
5 kx exec 5>>config.log
5 kx {
5 kx echo
5 kx sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5 kx ## Running $as_me. ##
5 kx _ASBOX
5 kx echo "$ac_log"
5 kx } >&5
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF
5 kx #
5 kx # INIT-COMMANDS
5 kx #
5 kx AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5 kx
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF
5 kx
5 kx # Handling of arguments.
5 kx for ac_config_target in $ac_config_targets
5 kx do
5 kx case $ac_config_target in
5 kx "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5 kx "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5 kx "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5 kx "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
5 kx "libgamin/Makefile") CONFIG_FILES="$CONFIG_FILES libgamin/Makefile" ;;
5 kx "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
5 kx "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5 kx "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
5 kx "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
5 kx "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5 kx "gamin.pc") CONFIG_FILES="$CONFIG_FILES gamin.pc" ;;
5 kx "gamin.spec") CONFIG_FILES="$CONFIG_FILES gamin.spec" ;;
5 kx
5 kx *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5 kx echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5 kx { (exit 1); exit 1; }; };;
5 kx esac
5 kx done
5 kx
5 kx
5 kx # If the user did not use the arguments to specify the items to instantiate,
5 kx # then the envvar interface is used. Set only those that are not.
5 kx # We use the long form for the default assignment because of an extremely
5 kx # bizarre bug on SunOS 4.1.3.
5 kx if $ac_need_defaults; then
5 kx test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5 kx test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5 kx test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5 kx fi
5 kx
5 kx # Have a temporary directory for convenience. Make it in the build tree
5 kx # simply because there is no reason against having it here, and in addition,
5 kx # creating and moving files from /tmp can sometimes cause problems.
5 kx # Hook for its removal unless debugging.
5 kx # Note that there is a small window in which the directory will not be cleaned:
5 kx # after its creation but before its name has been assigned to `$tmp'.
5 kx $debug ||
5 kx {
5 kx tmp=
5 kx trap 'exit_status=$?
5 kx { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5 kx ' 0
5 kx trap '{ (exit 1); exit 1; }' 1 2 13 15
5 kx }
5 kx # Create a (secure) tmp directory for tmp files.
5 kx
5 kx {
5 kx tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5 kx test -n "$tmp" && test -d "$tmp"
5 kx } ||
5 kx {
5 kx tmp=./conf$$-$RANDOM
5 kx (umask 077 && mkdir "$tmp")
5 kx } ||
5 kx {
5 kx echo "$me: cannot create a temporary directory in ." >&2
5 kx { (exit 1); exit 1; }
5 kx }
5 kx
5 kx #
5 kx # Set up the sed scripts for CONFIG_FILES section.
5 kx #
5 kx
5 kx # No need to generate the scripts if there are no CONFIG_FILES.
5 kx # This happens for instance when ./config.status config.h
5 kx if test -n "$CONFIG_FILES"; then
5 kx
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx ac_delim='%!_!# '
5 kx for ac_last_try in false false false false false :; do
5 kx cat >conf$$subs.sed <<_ACEOF
5 kx SHELL!$SHELL$ac_delim
5 kx PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5 kx PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5 kx PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5 kx PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5 kx PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5 kx PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5 kx exec_prefix!$exec_prefix$ac_delim
5 kx prefix!$prefix$ac_delim
5 kx program_transform_name!$program_transform_name$ac_delim
5 kx bindir!$bindir$ac_delim
5 kx sbindir!$sbindir$ac_delim
5 kx libexecdir!$libexecdir$ac_delim
5 kx datarootdir!$datarootdir$ac_delim
5 kx datadir!$datadir$ac_delim
5 kx sysconfdir!$sysconfdir$ac_delim
5 kx sharedstatedir!$sharedstatedir$ac_delim
5 kx localstatedir!$localstatedir$ac_delim
5 kx includedir!$includedir$ac_delim
5 kx oldincludedir!$oldincludedir$ac_delim
5 kx docdir!$docdir$ac_delim
5 kx infodir!$infodir$ac_delim
5 kx htmldir!$htmldir$ac_delim
5 kx dvidir!$dvidir$ac_delim
5 kx pdfdir!$pdfdir$ac_delim
5 kx psdir!$psdir$ac_delim
5 kx libdir!$libdir$ac_delim
5 kx localedir!$localedir$ac_delim
5 kx mandir!$mandir$ac_delim
5 kx DEFS!$DEFS$ac_delim
5 kx ECHO_C!$ECHO_C$ac_delim
5 kx ECHO_N!$ECHO_N$ac_delim
5 kx ECHO_T!$ECHO_T$ac_delim
5 kx LIBS!$LIBS$ac_delim
5 kx build_alias!$build_alias$ac_delim
5 kx host_alias!$host_alias$ac_delim
5 kx target_alias!$target_alias$ac_delim
5 kx build!$build$ac_delim
5 kx build_cpu!$build_cpu$ac_delim
5 kx build_vendor!$build_vendor$ac_delim
5 kx build_os!$build_os$ac_delim
5 kx host!$host$ac_delim
5 kx host_cpu!$host_cpu$ac_delim
5 kx host_vendor!$host_vendor$ac_delim
5 kx host_os!$host_os$ac_delim
5 kx target!$target$ac_delim
5 kx target_cpu!$target_cpu$ac_delim
5 kx target_vendor!$target_vendor$ac_delim
5 kx target_os!$target_os$ac_delim
5 kx GAMIN_MAJOR_VERSION!$GAMIN_MAJOR_VERSION$ac_delim
5 kx GAMIN_MINOR_VERSION!$GAMIN_MINOR_VERSION$ac_delim
5 kx GAMIN_MICRO_VERSION!$GAMIN_MICRO_VERSION$ac_delim
5 kx GAMIN_VERSION!$GAMIN_VERSION$ac_delim
5 kx GAMIN_VERSION_INFO!$GAMIN_VERSION_INFO$ac_delim
5 kx FAM_VERSION_INFO!$FAM_VERSION_INFO$ac_delim
5 kx INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5 kx INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5 kx INSTALL_DATA!$INSTALL_DATA$ac_delim
5 kx am__isrc!$am__isrc$ac_delim
5 kx CYGPATH_W!$CYGPATH_W$ac_delim
5 kx PACKAGE!$PACKAGE$ac_delim
5 kx VERSION!$VERSION$ac_delim
5 kx ACLOCAL!$ACLOCAL$ac_delim
5 kx AUTOCONF!$AUTOCONF$ac_delim
5 kx AUTOMAKE!$AUTOMAKE$ac_delim
5 kx AUTOHEADER!$AUTOHEADER$ac_delim
5 kx MAKEINFO!$MAKEINFO$ac_delim
5 kx install_sh!$install_sh$ac_delim
5 kx STRIP!$STRIP$ac_delim
5 kx INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
5 kx mkdir_p!$mkdir_p$ac_delim
5 kx AWK!$AWK$ac_delim
5 kx SET_MAKE!$SET_MAKE$ac_delim
5 kx am__leading_dot!$am__leading_dot$ac_delim
5 kx AMTAR!$AMTAR$ac_delim
5 kx am__tar!$am__tar$ac_delim
5 kx am__untar!$am__untar$ac_delim
5 kx CC!$CC$ac_delim
5 kx CFLAGS!$CFLAGS$ac_delim
5 kx LDFLAGS!$LDFLAGS$ac_delim
5 kx CPPFLAGS!$CPPFLAGS$ac_delim
5 kx ac_ct_CC!$ac_ct_CC$ac_delim
5 kx EXEEXT!$EXEEXT$ac_delim
5 kx OBJEXT!$OBJEXT$ac_delim
5 kx DEPDIR!$DEPDIR$ac_delim
5 kx am__include!$am__include$ac_delim
5 kx am__quote!$am__quote$ac_delim
5 kx AMDEP_TRUE!$AMDEP_TRUE$ac_delim
5 kx AMDEP_FALSE!$AMDEP_FALSE$ac_delim
5 kx AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
5 kx CCDEPMODE!$CCDEPMODE$ac_delim
5 kx am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
5 kx am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
5 kx SED!$SED$ac_delim
5 kx GREP!$GREP$ac_delim
5 kx EGREP!$EGREP$ac_delim
5 kx LN_S!$LN_S$ac_delim
5 kx _ACEOF
5 kx
5 kx if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
5 kx break
5 kx elif $ac_last_try; then
5 kx { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5 kx echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx else
5 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5 kx fi
5 kx done
5 kx
5 kx ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5 kx if test -n "$ac_eof"; then
5 kx ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5 kx ac_eof=`expr $ac_eof + 1`
5 kx fi
5 kx
5 kx cat >>$CONFIG_STATUS <<_ACEOF
5 kx cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5 kx /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5 kx _ACEOF
5 kx sed '
5 kx s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5 kx s/^/s,@/; s/!/@,|#_!!_#|/
5 kx :n
5 kx t n
5 kx s/'"$ac_delim"'$/,g/; t
5 kx s/$/\\/; p
5 kx N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5 kx ' >>$CONFIG_STATUS <conf$$subs.sed
5 kx rm -f conf$$subs.sed
5 kx cat >>$CONFIG_STATUS <<_ACEOF
5 kx CEOF$ac_eof
5 kx _ACEOF
5 kx
5 kx
5 kx ac_delim='%!_!# '
5 kx for ac_last_try in false false false false false :; do
5 kx cat >conf$$subs.sed <<_ACEOF
5 kx ECHO!$ECHO$ac_delim
5 kx AR!$AR$ac_delim
5 kx RANLIB!$RANLIB$ac_delim
5 kx CPP!$CPP$ac_delim
5 kx CXX!$CXX$ac_delim
5 kx CXXFLAGS!$CXXFLAGS$ac_delim
5 kx ac_ct_CXX!$ac_ct_CXX$ac_delim
5 kx CXXDEPMODE!$CXXDEPMODE$ac_delim
5 kx am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
5 kx am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
5 kx CXXCPP!$CXXCPP$ac_delim
5 kx F77!$F77$ac_delim
5 kx FFLAGS!$FFLAGS$ac_delim
5 kx ac_ct_F77!$ac_ct_F77$ac_delim
5 kx LIBTOOL!$LIBTOOL$ac_delim
5 kx RELDATE!$RELDATE$ac_delim
5 kx BUILD_DOCS_TRUE!$BUILD_DOCS_TRUE$ac_delim
5 kx BUILD_DOCS_FALSE!$BUILD_DOCS_FALSE$ac_delim
5 kx HTML_DIR!$HTML_DIR$ac_delim
5 kx ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim
5 kx ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim
5 kx BUILD_LIBGAMIN_TRUE!$BUILD_LIBGAMIN_TRUE$ac_delim
5 kx BUILD_LIBGAMIN_FALSE!$BUILD_LIBGAMIN_FALSE$ac_delim
5 kx PKG_CONFIG!$PKG_CONFIG$ac_delim
5 kx DAEMON_CFLAGS!$DAEMON_CFLAGS$ac_delim
5 kx DAEMON_LIBS!$DAEMON_LIBS$ac_delim
5 kx BUILD_SERVER_TRUE!$BUILD_SERVER_TRUE$ac_delim
5 kx BUILD_SERVER_FALSE!$BUILD_SERVER_FALSE$ac_delim
5 kx TEST_CFLAGS!$TEST_CFLAGS$ac_delim
5 kx TEST_LIBS!$TEST_LIBS$ac_delim
5 kx BUILD_TESTS_TRUE!$BUILD_TESTS_TRUE$ac_delim
5 kx BUILD_TESTS_FALSE!$BUILD_TESTS_FALSE$ac_delim
5 kx GAMIN_DEBUG_TRUE!$GAMIN_DEBUG_TRUE$ac_delim
5 kx GAMIN_DEBUG_FALSE!$GAMIN_DEBUG_FALSE$ac_delim
5 kx ENABLE_INOTIFY_TRUE!$ENABLE_INOTIFY_TRUE$ac_delim
5 kx ENABLE_INOTIFY_FALSE!$ENABLE_INOTIFY_FALSE$ac_delim
5 kx ENABLE_DNOTIFY_TRUE!$ENABLE_DNOTIFY_TRUE$ac_delim
5 kx ENABLE_DNOTIFY_FALSE!$ENABLE_DNOTIFY_FALSE$ac_delim
5 kx ENABLE_KQUEUE_TRUE!$ENABLE_KQUEUE_TRUE$ac_delim
5 kx ENABLE_KQUEUE_FALSE!$ENABLE_KQUEUE_FALSE$ac_delim
5 kx THREAD_LIBS!$THREAD_LIBS$ac_delim
5 kx WITH_THREADS!$WITH_THREADS$ac_delim
5 kx ENABLE_HURD_MACH_NOTIFY_TRUE!$ENABLE_HURD_MACH_NOTIFY_TRUE$ac_delim
5 kx ENABLE_HURD_MACH_NOTIFY_FALSE!$ENABLE_HURD_MACH_NOTIFY_FALSE$ac_delim
5 kx MIG!$MIG$ac_delim
5 kx PYTHON!$PYTHON$ac_delim
5 kx WITH_PYTHON_TRUE!$WITH_PYTHON_TRUE$ac_delim
5 kx WITH_PYTHON_FALSE!$WITH_PYTHON_FALSE$ac_delim
5 kx pythondir!$pythondir$ac_delim
5 kx PYTHON_VERSION!$PYTHON_VERSION$ac_delim
5 kx PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
5 kx PYTHON_SITE_PACKAGES!$PYTHON_SITE_PACKAGES$ac_delim
5 kx AM_CFLAGS!$AM_CFLAGS$ac_delim
5 kx LIBOBJS!$LIBOBJS$ac_delim
5 kx LTLIBOBJS!$LTLIBOBJS$ac_delim
5 kx _ACEOF
5 kx
5 kx if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
5 kx break
5 kx elif $ac_last_try; then
5 kx { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5 kx echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5 kx { (exit 1); exit 1; }; }
5 kx else
5 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5 kx fi
5 kx done
5 kx
5 kx ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5 kx if test -n "$ac_eof"; then
5 kx ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5 kx ac_eof=`expr $ac_eof + 1`
5 kx fi
5 kx
5 kx cat >>$CONFIG_STATUS <<_ACEOF
5 kx cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
5 kx /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5 kx _ACEOF
5 kx sed '
5 kx s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5 kx s/^/s,@/; s/!/@,|#_!!_#|/
5 kx :n
5 kx t n
5 kx s/'"$ac_delim"'$/,g/; t
5 kx s/$/\\/; p
5 kx N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5 kx ' >>$CONFIG_STATUS <conf$$subs.sed
5 kx rm -f conf$$subs.sed
5 kx cat >>$CONFIG_STATUS <<_ACEOF
5 kx :end
5 kx s/|#_!!_#|//g
5 kx CEOF$ac_eof
5 kx _ACEOF
5 kx
5 kx
5 kx # VPATH may cause trouble with some makes, so we remove $(srcdir),
5 kx # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5 kx # trailing colons and then remove the whole line if VPATH becomes empty
5 kx # (actually we leave an empty line to preserve line numbers).
5 kx if test "x$srcdir" = x.; then
5 kx ac_vpsub='/^[ ]*VPATH[ ]*=/{
5 kx s/:*\$(srcdir):*/:/
5 kx s/:*\${srcdir}:*/:/
5 kx s/:*@srcdir@:*/:/
5 kx s/^\([^=]*=[ ]*\):*/\1/
5 kx s/:*$//
5 kx s/^[^=]*=[ ]*$//
5 kx }'
5 kx fi
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF
5 kx fi # test -n "$CONFIG_FILES"
5 kx
5 kx
5 kx for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
5 kx do
5 kx case $ac_tag in
5 kx :[FHLC]) ac_mode=$ac_tag; continue;;
5 kx esac
5 kx case $ac_mode$ac_tag in
5 kx :[FHL]*:*);;
5 kx :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5 kx echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5 kx { (exit 1); exit 1; }; };;
5 kx :[FH]-) ac_tag=-:-;;
5 kx :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5 kx esac
5 kx ac_save_IFS=$IFS
5 kx IFS=:
5 kx set x $ac_tag
5 kx IFS=$ac_save_IFS
5 kx shift
5 kx ac_file=$1
5 kx shift
5 kx
5 kx case $ac_mode in
5 kx :L) ac_source=$1;;
5 kx :[FH])
5 kx ac_file_inputs=
5 kx for ac_f
5 kx do
5 kx case $ac_f in
5 kx -) ac_f="$tmp/stdin";;
5 kx *) # Look for the file first in the build tree, then in the source tree
5 kx # (if the path is not absolute). The absolute path cannot be DOS-style,
5 kx # because $ac_f cannot contain `:'.
5 kx test -f "$ac_f" ||
5 kx case $ac_f in
5 kx [\\/$]*) false;;
5 kx *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5 kx esac ||
5 kx { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5 kx echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5 kx { (exit 1); exit 1; }; };;
5 kx esac
5 kx ac_file_inputs="$ac_file_inputs $ac_f"
5 kx done
5 kx
5 kx # Let's still pretend it is `configure' which instantiates (i.e., don't
5 kx # use $as_me), people would be surprised to read:
5 kx # /* config.h. Generated by config.status. */
5 kx configure_input="Generated from "`IFS=:
5 kx echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5 kx if test x"$ac_file" != x-; then
5 kx configure_input="$ac_file. $configure_input"
5 kx { echo "$as_me:$LINENO: creating $ac_file" >&5
5 kx echo "$as_me: creating $ac_file" >&6;}
5 kx fi
5 kx
5 kx case $ac_tag in
5 kx *:-:* | *:-) cat >"$tmp/stdin";;
5 kx esac
5 kx ;;
5 kx esac
5 kx
5 kx ac_dir=`$as_dirname -- "$ac_file" ||
5 kx $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$ac_file" : 'X\(//\)[^/]' \| \
5 kx X"$ac_file" : 'X\(//\)$' \| \
5 kx X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5 kx echo X"$ac_file" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx { as_dir="$ac_dir"
5 kx case $as_dir in #(
5 kx -*) as_dir=./$as_dir;;
5 kx esac
5 kx test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5 kx as_dirs=
5 kx while :; do
5 kx case $as_dir in #(
5 kx *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5 kx *) as_qdir=$as_dir;;
5 kx esac
5 kx as_dirs="'$as_qdir' $as_dirs"
5 kx as_dir=`$as_dirname -- "$as_dir" ||
5 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$as_dir" : 'X\(//\)[^/]' \| \
5 kx X"$as_dir" : 'X\(//\)$' \| \
5 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5 kx echo X"$as_dir" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx test -d "$as_dir" && break
5 kx done
5 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
5 kx } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5 kx echo "$as_me: error: cannot create directory $as_dir" >&2;}
5 kx { (exit 1); exit 1; }; }; }
5 kx ac_builddir=.
5 kx
5 kx case "$ac_dir" in
5 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *)
5 kx ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5 kx # A ".." for each directory in $ac_dir_suffix.
5 kx ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5 kx case $ac_top_builddir_sub in
5 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5 kx esac ;;
5 kx esac
5 kx ac_abs_top_builddir=$ac_pwd
5 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
5 kx # for backward compatibility:
5 kx ac_top_builddir=$ac_top_build_prefix
5 kx
5 kx case $srcdir in
5 kx .) # We are building in place.
5 kx ac_srcdir=.
5 kx ac_top_srcdir=$ac_top_builddir_sub
5 kx ac_abs_top_srcdir=$ac_pwd ;;
5 kx [\\/]* | ?:[\\/]* ) # Absolute name.
5 kx ac_srcdir=$srcdir$ac_dir_suffix;
5 kx ac_top_srcdir=$srcdir
5 kx ac_abs_top_srcdir=$srcdir ;;
5 kx *) # Relative name.
5 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
5 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5 kx esac
5 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5 kx
5 kx
5 kx case $ac_mode in
5 kx :F)
5 kx #
5 kx # CONFIG_FILE
5 kx #
5 kx
5 kx case $INSTALL in
5 kx [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5 kx *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5 kx esac
5 kx ac_MKDIR_P=$MKDIR_P
5 kx case $MKDIR_P in
5 kx [\\/$]* | ?:[\\/]* ) ;;
5 kx */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5 kx esac
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF
5 kx # If the template does not know about datarootdir, expand it.
5 kx # FIXME: This hack should be removed a few years after 2.60.
5 kx ac_datarootdir_hack=; ac_datarootdir_seen=
5 kx
5 kx case `sed -n '/datarootdir/ {
5 kx p
5 kx q
5 kx }
5 kx /@datadir@/p
5 kx /@docdir@/p
5 kx /@infodir@/p
5 kx /@localedir@/p
5 kx /@mandir@/p
5 kx ' $ac_file_inputs` in
5 kx *datarootdir*) ac_datarootdir_seen=yes;;
5 kx *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5 kx { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5 kx echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF
5 kx ac_datarootdir_hack='
5 kx s&@datadir@&$datadir&g
5 kx s&@docdir@&$docdir&g
5 kx s&@infodir@&$infodir&g
5 kx s&@localedir@&$localedir&g
5 kx s&@mandir@&$mandir&g
5 kx s&\\\${datarootdir}&$datarootdir&g' ;;
5 kx esac
5 kx _ACEOF
5 kx
5 kx # Neutralize VPATH when `$srcdir' = `.'.
5 kx # Shell code in configure.ac might set extrasub.
5 kx # FIXME: do we really want to maintain this feature?
5 kx cat >>$CONFIG_STATUS <<_ACEOF
5 kx sed "$ac_vpsub
5 kx $extrasub
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF
5 kx :t
5 kx /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5 kx s&@configure_input@&$configure_input&;t t
5 kx s&@top_builddir@&$ac_top_builddir_sub&;t t
5 kx s&@srcdir@&$ac_srcdir&;t t
5 kx s&@abs_srcdir@&$ac_abs_srcdir&;t t
5 kx s&@top_srcdir@&$ac_top_srcdir&;t t
5 kx s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5 kx s&@builddir@&$ac_builddir&;t t
5 kx s&@abs_builddir@&$ac_abs_builddir&;t t
5 kx s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5 kx s&@INSTALL@&$ac_INSTALL&;t t
5 kx s&@MKDIR_P@&$ac_MKDIR_P&;t t
5 kx $ac_datarootdir_hack
5 kx " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
5 kx
5 kx test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5 kx { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5 kx { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5 kx { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5 kx which seems to be undefined. Please make sure it is defined." >&5
5 kx echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5 kx which seems to be undefined. Please make sure it is defined." >&2;}
5 kx
5 kx rm -f "$tmp/stdin"
5 kx case $ac_file in
5 kx -) cat "$tmp/out"; rm -f "$tmp/out";;
5 kx *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5 kx esac
5 kx ;;
5 kx :H)
5 kx #
5 kx # CONFIG_HEADER
5 kx #
5 kx _ACEOF
5 kx
5 kx # Transform confdefs.h into a sed script `conftest.defines', that
5 kx # substitutes the proper values into config.h.in to produce config.h.
5 kx rm -f conftest.defines conftest.tail
5 kx # First, append a space to every undef/define line, to ease matching.
5 kx echo 's/$/ /' >conftest.defines
5 kx # Then, protect against being on the right side of a sed subst, or in
5 kx # an unquoted here document, in config.status. If some macros were
5 kx # called several times there might be several #defines for the same
5 kx # symbol, which is useless. But do not sort them, since the last
5 kx # AC_DEFINE must be honored.
5 kx ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5 kx # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
5 kx # NAME is the cpp macro being defined, VALUE is the value it is being given.
5 kx # PARAMS is the parameter list in the macro definition--in most cases, it's
5 kx # just an empty string.
5 kx ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
5 kx ac_dB='\\)[ (].*,\\1define\\2'
5 kx ac_dC=' '
5 kx ac_dD=' ,'
5 kx
5 kx uniq confdefs.h |
5 kx sed -n '
5 kx t rset
5 kx :rset
5 kx s/^[ ]*#[ ]*define[ ][ ]*//
5 kx t ok
5 kx d
5 kx :ok
5 kx s/[\\&,]/\\&/g
5 kx s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
5 kx s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
5 kx ' >>conftest.defines
5 kx
5 kx # Remove the space that was appended to ease matching.
5 kx # Then replace #undef with comments. This is necessary, for
5 kx # example, in the case of _POSIX_SOURCE, which is predefined and required
5 kx # on some systems where configure will not decide to define it.
5 kx # (The regexp can be short, since the line contains either #define or #undef.)
5 kx echo 's/ $//
5 kx s,^[ #]*u.*,/* & */,' >>conftest.defines
5 kx
5 kx # Break up conftest.defines:
5 kx ac_max_sed_lines=50
5 kx
5 kx # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
5 kx # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
5 kx # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
5 kx # et cetera.
5 kx ac_in='$ac_file_inputs'
5 kx ac_out='"$tmp/out1"'
5 kx ac_nxt='"$tmp/out2"'
5 kx
5 kx while :
5 kx do
5 kx # Write a here document:
5 kx cat >>$CONFIG_STATUS <<_ACEOF
5 kx # First, check the format of the line:
5 kx cat >"\$tmp/defines.sed" <<\\CEOF
5 kx /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
5 kx /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
5 kx b
5 kx :def
5 kx _ACEOF
5 kx sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
5 kx echo 'CEOF
5 kx sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
5 kx ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
5 kx sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
5 kx grep . conftest.tail >/dev/null || break
5 kx rm -f conftest.defines
5 kx mv conftest.tail conftest.defines
5 kx done
5 kx rm -f conftest.defines conftest.tail
5 kx
5 kx echo "ac_result=$ac_in" >>$CONFIG_STATUS
5 kx cat >>$CONFIG_STATUS <<\_ACEOF
5 kx if test x"$ac_file" != x-; then
5 kx echo "/* $configure_input */" >"$tmp/config.h"
5 kx cat "$ac_result" >>"$tmp/config.h"
5 kx if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
5 kx { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5 kx echo "$as_me: $ac_file is unchanged" >&6;}
5 kx else
5 kx rm -f $ac_file
5 kx mv "$tmp/config.h" $ac_file
5 kx fi
5 kx else
5 kx echo "/* $configure_input */"
5 kx cat "$ac_result"
5 kx fi
5 kx rm -f "$tmp/out12"
5 kx # Compute $ac_file's index in $config_headers.
5 kx _am_arg=$ac_file
5 kx _am_stamp_count=1
5 kx for _am_header in $config_headers :; do
5 kx case $_am_header in
5 kx $_am_arg | $_am_arg:* )
5 kx break ;;
5 kx * )
5 kx _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5 kx esac
5 kx done
5 kx echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5 kx $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$_am_arg" : 'X\(//\)[^/]' \| \
5 kx X"$_am_arg" : 'X\(//\)$' \| \
5 kx X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5 kx echo X"$_am_arg" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`/stamp-h$_am_stamp_count
5 kx ;;
5 kx
5 kx :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
5 kx echo "$as_me: executing $ac_file commands" >&6;}
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx case $ac_file$ac_mode in
5 kx "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5 kx # Strip MF so we end up with the name of the file.
5 kx mf=`echo "$mf" | sed -e 's/:.*$//'`
5 kx # Check whether this is an Automake generated Makefile or not.
5 kx # We used to match only the files named `Makefile.in', but
5 kx # some people rename them; so instead we look at the file content.
5 kx # Grep'ing the first line is not enough: some people post-process
5 kx # each Makefile.in and add a new line on top of each file to say so.
5 kx # Grep'ing the whole file is not good either: AIX grep has a line
5 kx # limit of 2048, but all sed's we know have understand at least 4000.
5 kx if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
5 kx dirpart=`$as_dirname -- "$mf" ||
5 kx $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$mf" : 'X\(//\)[^/]' \| \
5 kx X"$mf" : 'X\(//\)$' \| \
5 kx X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
5 kx echo X"$mf" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx else
5 kx continue
5 kx fi
5 kx # Extract the definition of DEPDIR, am__include, and am__quote
5 kx # from the Makefile without running `make'.
5 kx DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5 kx test -z "$DEPDIR" && continue
5 kx am__include=`sed -n 's/^am__include = //p' < "$mf"`
5 kx test -z "am__include" && continue
5 kx am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5 kx # When using ansi2knr, U may be empty or an underscore; expand it
5 kx U=`sed -n 's/^U = //p' < "$mf"`
5 kx # Find all dependency output files, they are included files with
5 kx # $(DEPDIR) in their names. We invoke sed twice because it is the
5 kx # simplest approach to changing $(DEPDIR) to its actual value in the
5 kx # expansion.
5 kx for file in `sed -n "
5 kx s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5 kx sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5 kx # Make sure the directory exists.
5 kx test -f "$dirpart/$file" && continue
5 kx fdir=`$as_dirname -- "$file" ||
5 kx $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$file" : 'X\(//\)[^/]' \| \
5 kx X"$file" : 'X\(//\)$' \| \
5 kx X"$file" : 'X\(/\)' \| . 2>/dev/null ||
5 kx echo X"$file" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx { as_dir=$dirpart/$fdir
5 kx case $as_dir in #(
5 kx -*) as_dir=./$as_dir;;
5 kx esac
5 kx test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5 kx as_dirs=
5 kx while :; do
5 kx case $as_dir in #(
5 kx *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5 kx *) as_qdir=$as_dir;;
5 kx esac
5 kx as_dirs="'$as_qdir' $as_dirs"
5 kx as_dir=`$as_dirname -- "$as_dir" ||
5 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$as_dir" : 'X\(//\)[^/]' \| \
5 kx X"$as_dir" : 'X\(//\)$' \| \
5 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5 kx echo X"$as_dir" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx test -d "$as_dir" && break
5 kx done
5 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
5 kx } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5 kx echo "$as_me: error: cannot create directory $as_dir" >&2;}
5 kx { (exit 1); exit 1; }; }; }
5 kx # echo "creating $dirpart/$file"
5 kx echo '# dummy' > "$dirpart/$file"
5 kx done
5 kx done
5 kx ;;
5 kx
5 kx esac
5 kx done # for ac_tag
5 kx
5 kx
5 kx { (exit 0); exit 0; }
5 kx _ACEOF
5 kx chmod +x $CONFIG_STATUS
5 kx ac_clean_files=$ac_clean_files_save
5 kx
5 kx
5 kx # configure is writing to config.log, and then calls config.status.
5 kx # config.status does its own redirection, appending to config.log.
5 kx # Unfortunately, on DOS this fails, as config.log is still kept open
5 kx # by configure, so config.status won't be able to write to it; its
5 kx # output is simply discarded. So we exec the FD to /dev/null,
5 kx # effectively closing config.log, so it can be properly (re)opened and
5 kx # appended to by config.status. When coming back to configure, we
5 kx # need to make the FD available again.
5 kx if test "$no_create" != yes; then
5 kx ac_cs_success=:
5 kx ac_config_status_args=
5 kx test "$silent" = yes &&
5 kx ac_config_status_args="$ac_config_status_args --quiet"
5 kx exec 5>/dev/null
5 kx $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5 kx exec 5>>config.log
5 kx # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5 kx # would make configure fail if this is the last instruction.
5 kx $ac_cs_success || { (exit 1); exit 1; }
5 kx fi
5 kx
5 kx
5 kx #docs/Makefile
5 kx #docs/guide/Makefile
5 kx
5 kx echo "
5 kx gamin-$VERSION:
5 kx
5 kx prefix: ${prefix}
5 kx source code location: ${srcdir}
5 kx compiler: ${CC}
5 kx compiler flags: ${AM_CFLAGS} ${CFLAGS}
5 kx
5 kx build gam_server: ${enable_server}
5 kx build libgamin/libfam: ${enable_libgamin}
5 kx build python bindings: ${enable_python}
5 kx build tests: ${enable_tests}
5 kx
5 kx backends: ${backends}
5 kx build documentation: ${build_docs}
5 kx debug support: ${debug}
5 kx "