[m-dev.] diff: fix portability problem with `-lm'
Simon Taylor
stayl at cs.mu.OZ.AU
Mon Sep 25 15:18:24 AEDT 2000
Fergus wrote:
> On 24-Sep-2000, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> > One more change is needed -- the original diff didn't correctly find a
> > maths library because it didn't check for a function defined in that
> > library.
> ...
> > # Check for `-lm': some systems, e.g. MacOS X (Darwin), don't have it.
> > -AC_CHECK_LIB(m,[MATH_LIB=-lm],[MATH_LIB=])
> > +AC_CHECK_LIB(m, ceil, [MATH_LIB=-lm],[MATH_LIB=])
>
> A slightly better fix for this one is to use AC_HAVE_LIBRARY rather
> than AC_CHECK_LIB.
The autoconf documentation says that AC_HAVE_LIBRARY is considered
obsolete, so it's probably better not to use it.
Simon.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list