Apply landonf@sf.net's patch for ircu to configure itself on OS X.
authorMichael Poole <mdpoole@troilus.org>
Tue, 25 May 2004 19:58:30 +0000 (19:58 +0000)
committerMichael Poole <mdpoole@troilus.org>
Tue, 25 May 2004 19:58:30 +0000 (19:58 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1075 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
configure
configure.in

index 4118438a2e64b5d866bbdc645ccf92af2106b9a0..2087ce6c0fbf202a97a2602f03b54037327fb453 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-11  Landon Fuller (landonf) <landonf@sf.net>
+
+       * configure.in: allow ircu to build on OS X.
+
 2004-05-24  Michael Poole <mdpoole@troilus.org>
 
        * ircd/m_invite.c (m_invite): Include channel name in invitation
index 563b057ced025958366cbbb51cac89fa0cbad0aa..e4fc9713d2296fbd81c4f90526e9051d55f2c1bb 100755 (executable)
--- 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
index 35a68eff75c885731c7b797f1d7ec7d7968bf9e2..c3f297455bd9f532aeaaa454487bd7c7b0ceb571 100644 (file)
@@ -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],