2.9
[glibc/nacl-glibc.git] / sysdeps / powerpc / configure.in
blob28cc85934d7d4d24e46298270941075f25c65a3f
1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local configure fragment for sysdeps/powerpc.
4 # Accept binutils which knows about ".machine".
5 AC_CACHE_CHECK(for .machine support, libc_cv_ppc_machine, [dnl
6 cat > conftest.s <<\EOF
7         .machine "altivec"
8         blr
9 EOF
10 if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
11   libc_cv_ppc_machine=yes
12 else
13   libc_cv_ppc_machine=no
15 rm -f conftest*])
16 if test $libc_cv_ppc_machine != yes; then
17   AC_MSG_ERROR([
18 *** A binutils version which can handle
19 ***    .machine "altivec"
20 *** is needed.])