hp2ps, libm

Sebastien Carlier sebc@posse42.net
Sat, 20 Jan 2001 21:21:37 +0100


> Sven Panne wrote:
>
> > Sebastien Carlier wrote:
> > The Makefile in ghc/utils/hp2ps/Makefile should not use "-lm"
> > directly, as some systems (cygwin, MacOS X) do not have a libm.
> 
> Huh? My Cygwin (B20.1) *has* a libm.a...

In my /usr/share/aclocal/libtool.m4:
| LIBM= 
| case "$lt_target" in 
| *-*-beos* | *-*-cygwin*)
|   # These system don't have libm
|   ;;

Does your libm.a really contains any functions, or is it an
empty archive ?

But maybe automake 1.4 is wrong.

> > I'm not familiar with autoconf, sorry that I can't propose a patch.
> 
> Does MaxOS X need some special libs for sin, cos & friends?

No, all these functions are included in the System framework, so you
always get them.