1sinclude(./aclocal.m4)dnl Autoconf lossage
2GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
3# Local configure fragment for sysdeps/ieee754/ldbl-opt/.
4
5AC_CACHE_CHECK(whether $CC $CFLAGS supports -mlong-double-128,
6	       libc_cv_mlong_double_128, [dnl
7save_CFLAGS="$CFLAGS"
8CFLAGS="$CFLAGS -mlong-double-128"
9AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
10#ifndef __LONG_DOUBLE_128__
11# error "compiler did not predefine __LONG_DOUBLE_128__ as expected"
12#endif
13long double foobar (long double x) { return x; }]])],
14	       [libc_cv_mlong_double_128=yes],
15	       [libc_cv_mlong_double_128=no])
16CFLAGS="$save_CFLAGS"])
17if test "$libc_cv_mlong_double_128" = no; then
18  AC_MSG_ERROR([this configuration requires -mlong-double-128 support])
19fi
20