[m-dev.] diff: fix portability problem with `-lm'

Tyson Dowd trd at cs.mu.OZ.AU
Sun Sep 24 18:48:17 AEDT 2000


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.

Withe this change I can now build the compiler.

Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.227
diff -u -r1.227 configure.in
--- configure.in        2000/09/23 12:59:10     1.227
+++ configure.in        2000/09/24 07:39:24
@@ -224,7 +224,7 @@
 AC_RETSIGTYPE
 #-----------------------------------------------------------------------------#
 # 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=])
 AC_SUBST(MATH_LIB)
 #-----------------------------------------------------------------------------#
 AC_MSG_CHECKING(for use of a Microsoft compiler)

-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't everyone's cup of fur.
     trd at cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
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