From: Michael Poole Date: Tue, 25 May 2004 19:58:30 +0000 (+0000) Subject: Apply landonf@sf.net's patch for ircu to configure itself on OS X. X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=5cfab7033a076117f624b31263dffc5476d9096b Apply landonf@sf.net's patch for ircu to configure itself on OS X. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1075 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index 4118438..2087ce6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-03-11 Landon Fuller (landonf) + + * configure.in: allow ircu to build on OS X. + 2004-05-24 Michael Poole * ircd/m_invite.c (m_invite): Include channel name in invitation diff --git a/configure b/configure index 563b057..e4fc971 100755 --- a/configure +++ b/configure @@ -8766,6 +8766,9 @@ _ACEOF unet_maxcon=`ulimit -Hn` +if test x"$unet_maxcon" = xunlimited; then + unet_maxcon=`ulimit -Sn` +fi unet_maxcon=`expr $unet_maxcon - 4` echo "$as_me:$LINENO: checking max connections" >&5 echo $ECHO_N "checking max connections... $ECHO_C" >&6 diff --git a/configure.in b/configure.in index 35a68ef..c3f2974 100644 --- a/configure.in +++ b/configure.in @@ -709,6 +709,9 @@ AC_DEFINE_UNQUOTED(LPATH, "$unet_lpath", [Path to debugging log file]) dnl --with-maxcon allows us to set the maximum connections unet_maxcon=`ulimit -Hn` +if test x"$unet_maxcon" = xunlimited; then + unet_maxcon=`ulimit -Sn` +fi unet_maxcon=`expr $unet_maxcon - 4` AC_MSG_CHECKING([max connections]) AC_ARG_WITH([maxcon],