configure: longdouble: check more libm functions

On armv7hf NetBSD libm doesn't provide ldexpl frexpl functions while
provides sinl cosl tanl logl and expl apparently. To sanitize the
autodetection of long double we need to add them to the list.
This commit is contained in:
Daniel Kochmański 2016-05-30 10:01:55 +02:00
parent 8406e1e4fc
commit da59fc8081
4 changed files with 10 additions and 2 deletions

2
src/aclocal.m4 vendored
View file

@ -6,7 +6,7 @@ AC_DEFUN([ECL_LONG_DOUBLE],[
if test "$enable_longdouble" != "no" ; then
AC_CHECK_TYPES([long double],[enable_longdouble=yes],[enable_longdouble=no])
if test "$enable_longdouble" != "no" ; then
AC_CHECK_FUNCS([sinl cosl tanl logl expl],[],[enable_longdouble=no; break])
AC_CHECK_FUNCS([sinl cosl tanl logl expl ldexpl frexpl],[],[enable_longdouble=no; break])
if test "$enable_longdouble" != "no" ; then
AC_DEFINE([ECL_LONG_FLOAT], [], [ECL_LONG_FLOAT])
fi

2
src/configure vendored
View file

@ -8050,7 +8050,7 @@ else
fi
if test "$enable_longdouble" != "no" ; then
for ac_func in sinl cosl tanl logl expl
for ac_func in sinl cosl tanl logl expl ldexpl frexpl
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"

View file

@ -428,6 +428,8 @@ if test "x${with_system_gmp}" = "xno" ; then
else
GMP_ABI="ABI=$ABI"
fi
# Crosscompilation for Android on Darwin requires replacing 'NM=nm'
# below with 'NM=$PLATFORM_PREFIX/bin/arm-linux-androideabi-nm'.
mkdir gmp
dnl Notice we need -DPIC to force the assembler to generate PIC code
(destdir=`${PWDCMD}`; cd gmp && CC="${CC} ${PICFLAG}" \

View file

@ -150,6 +150,9 @@
/* Define to 1 if you have the `frexpf' function. */
#undef HAVE_FREXPF
/* Define to 1 if you have the `frexpl' function. */
#undef HAVE_FREXPL
/* Define to 1 if you have the `fseeko' function. */
#undef HAVE_FSEEKO
@ -183,6 +186,9 @@
/* Define to 1 if you have the `ldexpf' function. */
#undef HAVE_LDEXPF
/* Define to 1 if you have the `ldexpl' function. */
#undef HAVE_LDEXPL
/* HAVE_LIBFFI */
#undef HAVE_LIBFFI