From: Ulrich Drepper Date: Tue, 9 Dec 1997 23:40:11 +0000 (+0000) Subject: (libc_cv_gcc_alpha_ng_prefix): New check. X-Git-Tag: cvs/glibc-2_0_6pre3~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d88f19572f56227201def5b552ffc293eb9f47e5;p=thirdparty%2Fglibc.git (libc_cv_gcc_alpha_ng_prefix): New check. --- diff --git a/configure.in b/configure.in index 3a482e74a55..5d35ac51c50 100644 --- a/configure.in +++ b/configure.in @@ -175,8 +175,11 @@ m88???) base_machine=m88k machine=m88k/$machine ;; m88k) base_machine=m88k machine=m88k/m88100 ;; mips*) base_machine=mips machine=mips/$machine ;; mips64*) base_machine=mips64 machine=mips/mips64/$machine ;; -sparc[6789]) base_machine=sparc machine=sparc/$machine ;; -supersparc) base_machine=sparc machine=sparc/sparc8 ;; +sparc | sparcv[67]) + base_machine=sparc machine=sparc/sparc32 ;; +sparcv8 | supersparc | hypersparc) + base_machine=sparc machine=sparc/sparc32/sparcv8 ;; +sparc64) base_machine=sparc machine=sparc/sparc64 ;; esac changequote([,])dnl AC_SUBST(base_machine) @@ -233,7 +236,7 @@ while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do tail="$2" done -# For sparc/sparc9, try sparc/sparc9 and then sparc. +# For sparc/sparcv9, try sparc/sparcv9 and then sparc. mach= tail=$machine while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do @@ -724,6 +727,26 @@ fi rm -f conftest*]) AC_SUBST(libc_cv_gcc_no_exceptions)dnl +if test "$base_machine" = alpha ; then +AC_CACHE_CHECK(for function ..ng prefix, libc_cv_gcc_alpha_ng_prefix, [dnl +cat > conftest.c <<\EOF +foo () { } +EOF +dnl +if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep '$foo..ng' > /dev/null]); +then + libc_cv_gcc_alpha_ng_prefix=yes +else + libc_cv_gcc_alpha_ng_prefix=no +fi +rm -f conftest* ]) +if test $libc_cv_gcc_alpha_ng_prefix = yes ; then + AC_DEFINE(ASM_ALPHA_NG_SYMBOL_PREFIX, "$") +else + AC_DEFINE(ASM_ALPHA_NG_SYMBOL_PREFIX, "") +fi +fi + ### End of automated tests. ### Now run sysdeps configure fragments.