diff options
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 71b8288..f560def 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -57,6 +57,19 @@ if test $gdb_have_fpregset_t = yes; then AC_DEFINE(HAVE_FPREGSET_T) fi +dnl See if compiler supports "long double" type. Can't use AC_C_LONG_DOUBLE +dnl because autoconf complains about cross-compilation issues. However, this +dnl code uses the same variables as the macro for compatibility. + +AC_MSG_CHECKING(for long double) +AC_CACHE_VAL(ac_cv_c_long_double, +[AC_TRY_COMPILE(, [long double foo;], +ac_cv_c_long_double=yes, ac_cv_c_long_double=no)]) +AC_MSG_RESULT($ac_cv_c_long_double) +if test $ac_cv_c_long_double = yes; then + AC_DEFINE(HAVE_LONG_DOUBLE) +fi + AC_FUNC_MMAP dnl Handle optional features that can be enabled. |