[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mac OS X fixes for ircd



Howdy,

The following diffs allow ircd 2.10.3 to compile properly on Mac OS X and
Darwin (given updated config.sub and config.guess files):

To support/configure.in:

110,124d109
< AC_DEFUN(IRC_MATHLIB,
< [AC_MSG_CHECKING([for Apple's built-in libm])
< AC_TRY_LINK(,
< [sin(1.0)],
< irc_mathlib=yes,
< irc_mathlib=no)
< if test $irc_mathlib = yes; then
<       AC_MSG_RESULT("yes")
<       IRC_SUBST_MATHLIB=
< else
<       AC_MSG_RESULT("no")
<       IRC_SUBST_MATHLIB=-lm
< fi
< AC_SUBST(IRC_SUBST_MATHLIB)
< ])
1511d1495
< IRC_MATHLIB

To support/Makefile.in

45c45
< MATHLIBS = @IRC_SUBST_MATHLIB@
---
> MATHLIBS = -lm

To irc/irc.c

345d344
< #ifdef DOCURSES
347d345
< #endif

The first two changes allow ircd to compile despite Mac OS X's unusual
method of handling the math library (instead of the usual libm.a, the math
library is part of a "System Framework" that links in automatically).

The third change fixes a small bug--there's currently a single refresh in
irc that's not protected by #ifdef DOCURSES.

Cheers,
Ian Sammis
Associate Editor, MacAddict
(415) 468-4684 x2562