Author: Carlo Wood <run@alinoe.com> (Via Isomer <isomer@undernet.org>)
[ircu2.10.12-pk.git] / configure
index a31f597665a5d23446b53acbe8b569488ab4c355..b9a7725bb2c37a262b4e2d9cfbe8b154a005e7af 100755 (executable)
--- a/configure
+++ b/configure
@@ -18,7 +18,7 @@ ac_help="$ac_help
 ac_help="$ac_help
   --enable-debug          Turn on debugging mode"
 ac_help="$ac_help
-  --enable-asserts        Enable asserts"
+  --disable-asserts       Disable assertion checking"
 ac_help="$ac_help
   --disable-symbols       Disable debugging symbols (remove -g from CFLAGS)"
 ac_help="$ac_help
@@ -3043,6 +3043,12 @@ case "$host" in
        OSDEP_C=os_bsd.c
        ;;
 
+    *-darwin*)
+       echo "$ac_t""Darwin (Mac OS X) ($host) found." 1>&6
+       unet_poll_syscall=no
+       OSDEP_C=os_bsd.c
+       ;;
+
     *)
        echo "$ac_t""Unknown system type $host found." 1>&6
        echo "configure: warning: Unknown OS type; using generic routines." 1>&2
@@ -3053,7 +3059,7 @@ esac
 
 
 echo $ac_n "checking whether to enable use of poll()""... $ac_c" 1>&6
-echo "configure:3057: checking whether to enable use of poll()" >&5
+echo "configure:3063: checking whether to enable use of poll()" >&5
 # Check whether --enable-poll or --disable-poll was given.
 if test "${enable_poll+set}" = set; then
   enableval="$enable_poll"
@@ -3087,7 +3093,7 @@ fi
 
 
 echo $ac_n "checking whether to enable debug mode""... $ac_c" 1>&6
-echo "configure:3091: checking whether to enable debug mode" >&5
+echo "configure:3097: checking whether to enable debug mode" >&5
 # Check whether --enable-debug or --disable-debug was given.
 if test "${enable_debug+set}" = set; then
   enableval="$enable_debug"
@@ -3111,7 +3117,7 @@ EOF
 fi
 
 echo $ac_n "checking whether to enable asserts""... $ac_c" 1>&6
-echo "configure:3115: checking whether to enable asserts" >&5
+echo "configure:3121: checking whether to enable asserts" >&5
 # Check whether --enable-asserts or --disable-asserts was given.
 if test "${enable_asserts+set}" = set; then
   enableval="$enable_asserts"
@@ -3120,7 +3126,7 @@ else
   if eval "test \"`echo '$''{'unet_cv_enable_asserts'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
-  unet_cv_enable_asserts=no
+  unet_cv_enable_asserts=yes
 fi
 
 fi
@@ -3135,7 +3141,7 @@ EOF
 fi
 
 echo $ac_n "checking whether to enable debugging symbols""... $ac_c" 1>&6
-echo "configure:3139: checking whether to enable debugging symbols" >&5
+echo "configure:3145: checking whether to enable debugging symbols" >&5
 # Check whether --enable-symbols or --disable-symbols was given.
 if test "${enable_symbols+set}" = set; then
   enableval="$enable_symbols"
@@ -3156,7 +3162,7 @@ if test x"$unet_cv_enable_symbols" = xyes; then
 fi
 
 echo $ac_n "checking whether to enable profiling support (gprof)""... $ac_c" 1>&6
-echo "configure:3160: checking whether to enable profiling support (gprof)" >&5
+echo "configure:3166: checking whether to enable profiling support (gprof)" >&5
 # Check whether --enable-profile or --disable-profile was given.
 if test "${enable_profile+set}" = set; then
   enableval="$enable_profile"
@@ -3177,7 +3183,7 @@ if test x"$unet_cv_enable_profile" = xyes; then
 fi
 
 echo $ac_n "checking whether to enable pedantic compiler warnings""... $ac_c" 1>&6
-echo "configure:3181: checking whether to enable pedantic compiler warnings" >&5
+echo "configure:3187: checking whether to enable pedantic compiler warnings" >&5
 # Check whether --enable-pedantic or --disable-pedantic was given.
 if test "${enable_pedantic+set}" = set; then
   enableval="$enable_pedantic"
@@ -3198,7 +3204,7 @@ if test x"$unet_cv_enable_pedantic" = xyes; then
 fi
 
 echo $ac_n "checking whether to enable compiler warnings""... $ac_c" 1>&6
-echo "configure:3202: checking whether to enable compiler warnings" >&5
+echo "configure:3208: checking whether to enable compiler warnings" >&5
 # Check whether --enable-warnings or --disable-warnings was given.
 if test "${enable_warnings+set}" = set; then
   enableval="$enable_warnings"
@@ -3219,7 +3225,7 @@ if test x"$unet_cv_enable_warnings" = xyes; then
 fi
 
 echo $ac_n "checking whether to enable inlining for a few critical functions""... $ac_c" 1>&6
-echo "configure:3223: checking whether to enable inlining for a few critical functions" >&5
+echo "configure:3229: checking whether to enable inlining for a few critical functions" >&5
 # Check whether --enable-inlines or --disable-inlines was given.
 if test "${enable_inlines+set}" = set; then
   enableval="$enable_inlines"
@@ -3243,7 +3249,7 @@ EOF
 fi
 
 echo $ac_n "checking whether to enable the /dev/poll event engine""... $ac_c" 1>&6
-echo "configure:3247: checking whether to enable the /dev/poll event engine" >&5
+echo "configure:3253: checking whether to enable the /dev/poll event engine" >&5
 # Check whether --enable-devpoll or --disable-devpoll was given.
 if test "${enable_devpoll+set}" = set; then
   enableval="$enable_devpoll"
@@ -3273,7 +3279,7 @@ EOF
 fi
 
 echo $ac_n "checking whether to enable the kqueue event engine""... $ac_c" 1>&6
-echo "configure:3277: checking whether to enable the kqueue event engine" >&5
+echo "configure:3283: checking whether to enable the kqueue event engine" >&5
 # Check whether --enable-kqueue or --disable-kqueue was given.
 if test "${enable_kqueue+set}" = set; then
   enableval="$enable_kqueue"
@@ -3303,7 +3309,7 @@ EOF
 fi
 
 echo $ac_n "checking what name to give the symlink""... $ac_c" 1>&6
-echo "configure:3307: checking what name to give the symlink" >&5
+echo "configure:3313: checking what name to give the symlink" >&5
 # Check whether --with-symlink or --without-symlink was given.
 if test "${with_symlink+set}" = set; then
   withval="$with_symlink"
@@ -3335,7 +3341,7 @@ fi
 
 
 echo $ac_n "checking what permissions to set on the installed binary""... $ac_c" 1>&6
-echo "configure:3339: checking what permissions to set on the installed binary" >&5
+echo "configure:3345: checking what permissions to set on the installed binary" >&5
 # Check whether --with-mode or --without-mode was given.
 if test "${with_mode+set}" = set; then
   withval="$with_mode"
@@ -3361,7 +3367,7 @@ IRCDMODE=$unet_cv_with_mode
 
 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
 echo $ac_n "checking which user should own the installed binary""... $ac_c" 1>&6
-echo "configure:3365: checking which user should own the installed binary" >&5
+echo "configure:3371: checking which user should own the installed binary" >&5
 # Check whether --with-owner or --without-owner was given.
 if test "${with_owner+set}" = set; then
   withval="$with_owner"
@@ -3387,7 +3393,7 @@ IRCDOWN=$unet_cv_with_owner
 
 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
 echo $ac_n "checking which group should own the installed binary""... $ac_c" 1>&6
-echo "configure:3391: checking which group should own the installed binary" >&5
+echo "configure:3397: checking which group should own the installed binary" >&5
 # Check whether --with-group or --without-group was given.
 if test "${with_group+set}" = set; then
   withval="$with_group"
@@ -3419,7 +3425,7 @@ if test -f /etc/resolv.conf; then
     fi
 fi
 echo $ac_n "checking for site domain name""... $ac_c" 1>&6
-echo "configure:3423: checking for site domain name" >&5
+echo "configure:3429: checking for site domain name" >&5
 # Check whether --with-domain or --without-domain was given.
 if test "${with_domain+set}" = set; then
   withval="$with_domain"
@@ -3449,7 +3455,7 @@ EOF
 
 
 echo $ac_n "checking if chroot operation is desired""... $ac_c" 1>&6
-echo "configure:3453: checking if chroot operation is desired" >&5
+echo "configure:3459: checking if chroot operation is desired" >&5
 # Check whether --with-chroot or --without-chroot was given.
 if test "${with_chroot+set}" = set; then
   withval="$with_chroot"
@@ -3497,7 +3503,7 @@ prefix=$unet_save_prefix
 exec_prefix=$unet_save_exec_prefix
 
 echo $ac_n "checking where the binary will be for /restart""... $ac_c" 1>&6
-echo "configure:3501: checking where the binary will be for /restart" >&5
+echo "configure:3507: checking where the binary will be for /restart" >&5
 if test x"$unet_cv_with_symlink" = xno; then
     unet_spath="$unet_bindir/ircd"
 else
@@ -3519,7 +3525,7 @@ EOF
 
 
 echo $ac_n "checking what the data directory should be""... $ac_c" 1>&6
-echo "configure:3523: checking what the data directory should be" >&5
+echo "configure:3529: checking what the data directory should be" >&5
 # Check whether --with-dpath or --without-dpath was given.
 if test "${with_dpath+set}" = set; then
   withval="$with_dpath"
@@ -3562,7 +3568,7 @@ DPATH=$unet_cv_with_dpath
 
 
 echo $ac_n "checking where the default configuration file resides""... $ac_c" 1>&6
-echo "configure:3566: checking where the default configuration file resides" >&5
+echo "configure:3572: checking where the default configuration file resides" >&5
 # Check whether --with-cpath or --without-cpath was given.
 if test "${with_cpath+set}" = set; then
   withval="$with_cpath"
@@ -3604,7 +3610,7 @@ EOF
 
 
 echo $ac_n "checking where to put the debugging log if debugging enabled""... $ac_c" 1>&6
-echo "configure:3608: checking where to put the debugging log if debugging enabled" >&5
+echo "configure:3614: checking where to put the debugging log if debugging enabled" >&5
 # Check whether --with-lpath or --without-lpath was given.
 if test "${with_lpath+set}" = set; then
   withval="$with_lpath"
@@ -3650,7 +3656,7 @@ EOF
 unet_maxcon=`ulimit -Hn`
 unet_maxcon=`expr $unet_maxcon - 4`
 echo $ac_n "checking max connections""... $ac_c" 1>&6
-echo "configure:3654: checking max connections" >&5
+echo "configure:3660: checking max connections" >&5
 # Check whether --with-maxcon or --without-maxcon was given.
 if test "${with_maxcon+set}" = set; then
   withval="$with_maxcon"