Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] HPUX Port

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: The Hermit Hacker <scrappy(at)hub(dot)org>
Cc: pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] HPUX Port
Date: 1998-07-14 01:06:14
Message-ID: 15455.900378374@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
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
  

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 1998-07-14 02:59:23
Subject: Re: [HACKERS] HPUX Port
Previous:From: The Hermit HackerDate: 1998-07-14 00:45:04
Subject: Re: [HACKERS] HPUX Port

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group