Commit 6f979c15 authored by Tom Lane's avatar Tom Lane

Turns out that configure's test for HPUXMATHLIB didn't work

when used with egcs --- now it does.
parent df9e539e
This diff is collapsed.
...@@ -740,16 +740,18 @@ AC_CHECK_FUNC(cbrt, ...@@ -740,16 +740,18 @@ AC_CHECK_FUNC(cbrt,
# On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a; # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
# this hackery with HPUXMATHLIB allows us to cope. # this hackery with HPUXMATHLIB allows us to cope.
HPUXMATHLIB="" HPUXMATHLIB=""
AC_CHECK_FUNC(rint, case "$host_cpu" in
AC_DEFINE(HAVE_RINT), hppa1.1)
[ if [[ -r /lib/pa1.1/libm.a ]] ; then
if [[ -r /lib/pa1.1/libm.a ]] ; then
HPUXMATHLIB="-L /lib/pa1.1 -lm" HPUXMATHLIB="-L /lib/pa1.1 -lm"
fi fi ;;
AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT), , $HPUXMATHLIB) esac
])
AC_SUBST(HPUXMATHLIB) AC_SUBST(HPUXMATHLIB)
AC_CHECK_FUNC(rint,
AC_DEFINE(HAVE_RINT),
AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT), , $HPUXMATHLIB))
dnl Check to see if we have a working 64-bit integer type. dnl Check to see if we have a working 64-bit integer type.
dnl This breaks down into two steps: dnl This breaks down into two steps:
dnl (1) figure out if the compiler has a 64-bit int type with working dnl (1) figure out if the compiler has a 64-bit int type with working
......
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