mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-22 15:07:43 +08:00
a100e80fc9
The newlib & libgloss dirs are already generated using autoconf-2.69. To avoid merging new code and/or accidental regeneration using diff versions, leverage config/override.m4 to pin to 2.69 exactly. This matches what gcc/binutils/gdb are already doing. The README file already says to use autoconf-2.69. To accomplish this, it's just as simple as adding -I flags to the top-level config/ dir when running aclocal. This is because the override.m4 file overrides AC_INIT to first require the specific autoconf version before calling the real AC_INIT.
30 lines
873 B
Plaintext
30 lines
873 B
Plaintext
dnl This is the newlib/libc/machine/spu configure.in file.
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_INIT([newlib],[NEWLIB_VERSION])
|
|
AC_CONFIG_SRCDIR([Makefile.am])
|
|
|
|
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
|
|
AC_CONFIG_AUX_DIR(../../../..)
|
|
|
|
NEWLIB_CONFIGURE(../../..)
|
|
|
|
AC_MSG_CHECKING([whether the compiler supports __ea])
|
|
dnl We do not use AC_COMPILE_IFELSE to support building newlib with
|
|
dnl a cross-compiler that is not (yet) able to link executables
|
|
cat > conftest.c <<EOF
|
|
#if defined (__EA32__) || defined (__EA64__)
|
|
yes;
|
|
#endif
|
|
EOF
|
|
if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | egrep yes >/dev/null 2>&1; then
|
|
spu_compiler_has_ea=yes
|
|
else
|
|
spu_compiler_has_ea=no
|
|
fi
|
|
AM_CONDITIONAL(HAVE_SPU_EA, test x${spu_compiler_has_ea} != xno)
|
|
AC_MSG_RESULT($spu_compiler_has_ea)
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_OUTPUT
|