Blame sysdeps/ieee754/ldbl-opt/configure.ac

Packit 6c4009
sinclude(./aclocal.m4)dnl Autoconf lossage
Packit 6c4009
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
Packit 6c4009
# Local configure fragment for sysdeps/ieee754/ldbl-opt/.
Packit 6c4009
Packit 6c4009
AC_CACHE_CHECK(whether $CC $CFLAGS supports -mlong-double-128,
Packit 6c4009
	       libc_cv_mlong_double_128, [dnl
Packit 6c4009
save_CFLAGS="$CFLAGS"
Packit 6c4009
CFLAGS="$CFLAGS -mlong-double-128"
Packit 6c4009
AC_TRY_COMPILE(, [
Packit 6c4009
#ifndef __LONG_DOUBLE_128__
Packit 6c4009
# error "compiler did not predefine __LONG_DOUBLE_128__ as expected"
Packit 6c4009
#endif
Packit 6c4009
long double foobar (long double x) { return x; }],
Packit 6c4009
	       libc_cv_mlong_double_128=yes,
Packit 6c4009
	       libc_cv_mlong_double_128=no)
Packit 6c4009
CFLAGS="$save_CFLAGS"])
Packit 6c4009
if test "$libc_cv_mlong_double_128" = no; then
Packit 6c4009
  AC_MSG_ERROR([this configuration requires -mlong-double-128 support])
Packit 6c4009
fi