Re: [HACKERS] HPUX Port

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: scrappy(at)hub(dot)org, pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] HPUX Port
Date: 1998-07-14 02:59:23
Message-ID: 199807140259.WAA07587@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Applied. I see it is needed by configure so it finds rint on hpux. I
assume you have looked at makefiles/Makefile.hpux.

> The Hermit Hacker <scrappy(at)hub(dot)org> writes:
> >> The "one item" is that configure doesn't know about having to look
> >> in /lib/pa1.1 to find rint() on HPUX 9. I've been debating whether
>
> > Is this something we can just ptu a check for tha tlibrary into
> > the configure script and all will be well?
>
> In other words, Just Do It, eh? I suppose you're right.
>
> The attached does the right thing on HPUX 9 and looks fairly harmless
> for other platforms.
>
> regards, tom lane
>
>
> *** src/configure.in.orig Sun Jul 12 12:05:02 1998
> --- src/configure.in Mon Jul 13 20:57:37 1998
> ***************
> *** 582,588 ****
> AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT)))
> AC_CHECK_FUNC(rint,
> AC_DEFINE(HAVE_RINT),
> ! AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT)))
>
> dnl Check for X libraries
>
> --- 582,595 ----
> AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT)))
> AC_CHECK_FUNC(rint,
> AC_DEFINE(HAVE_RINT),
> ! [
> ! # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a
> ! SPECIALMATHLIB=""
> ! if [[ -r /lib/pa1.1/libm.a ]] ; then
> ! SPECIALMATHLIB="-L /lib/pa1.1 -lm"
> ! fi
> ! AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT), , $SPECIALMATHLIB)
> ! ])
>
> dnl Check for X libraries
>
>
>

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Brandon Ibach 1998-07-14 03:39:25 Re: [HACKERS] atttypmod now 32 bits, interface change
Previous Message Tom Lane 1998-07-14 01:06:14 Re: [HACKERS] HPUX Port