[m-dev.] diff: fix portability problem with `-lm'
Fergus Henderson
fjh at cs.mu.OZ.AU
Sun Sep 24 19:50:45 AEDT 2000
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.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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