Commit 9f66b819 authored by Morten Welinder's avatar Morten Welinder

-lm for fabsl and friends.

parent 9a4b41a8
......@@ -76,18 +76,21 @@ AC_ARG_WITH(long_double,
need_sunmath=no
for ldfunc in fabsl sqrtl expl logl log10l ceill floorl powl sinl cosl tanl asinl acosl atanl; do
AC_CHECK_FUNC($ldfunc,
,
AC_CHECK_LIB(sunmath,
$ldfunc,
[ if test "$need_sunmath" = "no"; then
# FIXME: better idea?
LDFLAGS="$LDFLAGS -L/opt/SUNWspro/lib -R/opt/SUNWspro/lib -lsunmath"
sunmathinclude=`ls -d /opt/SUNWspro/*/include/cc | tail -1`
CPPFLAGS="$CPPFLAGS -I$sunmathinclude"
fi
need_sunmath=yes ],
AC_MSG_ERROR([Long doubles require the $ldfunc function.]),
-L/opt/SUNWspro/lib $GNUMERIC_LIBS))
,
AC_CHECK_LIB(m,
$ldfunc,
,
AC_CHECK_LIB(sunmath,
$ldfunc,
[ if test "$need_sunmath" = "no"; then
# FIXME: better idea?
LDFLAGS="$LDFLAGS -L/opt/SUNWspro/lib -R/opt/SUNWspro/lib -lsunmath"
sunmathinclude=`ls -d /opt/SUNWspro/*/include/cc | tail -1`
CPPFLAGS="$CPPFLAGS -I$sunmathinclude"
fi
need_sunmath=yes ],
AC_MSG_ERROR([Long doubles require the $ldfunc function.]),
-L/opt/SUNWspro/lib $GNUMERIC_LIBS)))
done
if test "$need_sunmath" = "yes"; then
AC_CHECK_HEADERS([sunmath.h floatingpoint.h],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment