Re: [HACKERS] HPUX Port
От | Bruce Momjian |
---|---|
Тема | Re: [HACKERS] HPUX Port |
Дата | |
Msg-id | 199807140259.WAA07587@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] HPUX Port (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: [HACKERS] HPUX Port
|
Список | 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@hub.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@candle.pha.pa.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)
В списке pgsql-hackers по дате отправления: