/[svn]/ircd-hybrid-7.2/acinclude.m4
ViewVC logotype

Diff of /ircd-hybrid-7.2/acinclude.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 908 by stu, Sun Nov 4 23:21:51 2007 UTC revision 913 by michael, Wed Nov 7 23:20:12 2007 UTC
# Line 16  AC_DEFUN([AX_CHECK_LIB_CRYPT],[ Line 16  AC_DEFUN([AX_CHECK_LIB_CRYPT],[
16          AC_SEARCH_LIBS(crypt, [crypt descrypt],,)          AC_SEARCH_LIBS(crypt, [crypt descrypt],,)
17    AM_CONDITIONAL([HAVE_CRYPT],[test "$ac_cv_search_crypt" = "none required"])    AM_CONDITIONAL([HAVE_CRYPT],[test "$ac_cv_search_crypt" = "none required"])
18  ])dnl }}}  ])dnl }}}
 dnl {{{ ax_check_lib_openssl  
 AC_DEFUN([AX_CHECK_LIB_OPENSSL],[  
   AC_CHECK_HEADER([openssl/sha.h],,[AC_MSG_ERROR([openssl header files not found])])  
   AC_CHECK_LIB([ssl],[SHA_Init],,[AC_MSG_ERROR([openssl library not found])])  
   AC_CHECK_LIB([crypto],[EVP_MD_CTX_init],,[AC_MSG_ERROR([openssl library not found])])  
 ])dnl }}}  
19  dnl {{{ ax_arg_enable_ioloop_mechanism (FIXME)  dnl {{{ ax_arg_enable_ioloop_mechanism (FIXME)
20  AC_DEFUN([AX_ARG_ENABLE_IOLOOP_MECHANISM],[  AC_DEFUN([AX_ARG_ENABLE_IOLOOP_MECHANISM],[
21    dnl {{{ allow the user to specify desired mechanism    dnl {{{ allow the user to specify desired mechanism
# Line 148  main () { return 1; } /* F_SETSIG not de Line 142  main () { return 1; } /* F_SETSIG not de
142    AC_DEFINE_UNQUOTED([USE_IOPOLL_MECHANISM],[$use_iopoll_mechanism],[use this iopoll mechanism])    AC_DEFINE_UNQUOTED([USE_IOPOLL_MECHANISM],[$use_iopoll_mechanism],[use this iopoll mechanism])
143    dnl }}}    dnl }}}
144  ])dnl }}}  ])dnl }}}
 dnl {{{ ax_arg_disable_block_alloc  
 AC_DEFUN([AX_ARG_DISABLE_BLOCK_ALLOC],[  
   AC_ARG_ENABLE([block-alloc],[AC_HELP_STRING([--disable-block-alloc],[Disable block alloc.])],[block_alloc="$enableval"],[block_alloc="yes"])  
   if test "$block_alloc" = "no" ; then  
     use_block_alloc=0  
   else  
     use_block_alloc=1  
   fi  
   AC_DEFINE_UNQUOTED([USE_BLOCK_ALLOC],[$use_block_alloc],[use block alloc])  
 ])dnl }}}  
 dnl {{{ ax_arg_disable_shared_modules (FIXME)  
 AC_DEFUN([AX_ARG_DISABLE_SHARED_MODULES],[  
   AC_ARG_ENABLE([shared-modules],[AC_HELP_STRING([--disable-shared-modules],[Disable shared modules.])],[shared_modules="$enableval"],[shared_modules="yes"])  
   AC_CHECK_HEADERS([dlfcn.h link.h])  
   AC_CHECK_FUNCS([dlopen dlinfo])  
   if test "$shared_modules" = "yes" ; then  
     use_shared_modules="yes"  
     AC_CHECK_LIB([dl],[dlopen],,[AC_MSG_ERROR([dl library not found])])  
     AC_DEFINE([USE_SHARED_MODULES],[1],[Define to 1 if you want to use shared modules.])  
   else  
     use_shared_modules="no"  
     AC_MSG_WARN([shared module support has been disabled per supplied configure option])  
   fi  
   AM_CONDITIONAL([USE_SHARED_MODULES],[test "$shared_modules" = "yes"])  
 ])dnl }}}  
145  dnl {{{ ax_arg_with_topiclen  dnl {{{ ax_arg_with_topiclen
146  AC_DEFUN([AX_ARG_WITH_TOPICLEN],[  AC_DEFUN([AX_ARG_WITH_TOPICLEN],[
147    AC_ARG_WITH([topiclen],[AC_HELP_STRING([--with-topiclen=<value>],[Set topic length (default 160).])],[topiclen="$withval"],[topiclen="160"])    AC_ARG_WITH([topiclen],[AC_HELP_STRING([--with-topiclen=<value>],[Set topic length (default 160).])],[topiclen="$withval"],[topiclen="160"])
# Line 183  AC_DEFUN([AX_ARG_WITH_NICKLEN],[ Line 152  AC_DEFUN([AX_ARG_WITH_NICKLEN],[
152    AC_ARG_WITH([nicklen],[AC_HELP_STRING([--with-nicklen=<value>],[Set nickname length (default 9).])],[nicklen="$withval"],[nicklen="9"])    AC_ARG_WITH([nicklen],[AC_HELP_STRING([--with-nicklen=<value>],[Set nickname length (default 9).])],[nicklen="$withval"],[nicklen="9"])
153    AC_DEFINE_UNQUOTED([NICKLEN],[($nicklen+1)],[Length of nicknames.])    AC_DEFINE_UNQUOTED([NICKLEN],[($nicklen+1)],[Length of nicknames.])
154  ])dnl }}}  ])dnl }}}
 dnl {{{ ax_arg_with_userlen  
 AC_DEFUN([AX_ARG_WITH_USERLEN],[  
   AC_ARG_WITH([userlen],[AC_HELP_STRING([--with-userlen=<value>],[Set username length (default 9).])],[userlen="$withval"],[userlen="9"])  
   AC_DEFINE_UNQUOTED([USERLEN],[($userlen+1)],[Length of nicknames.])  
 ])dnl }}}  
 dnl {{{ ax_arg_with_hostlen  
 AC_DEFUN([AX_ARG_WITH_HOSTLEN],[  
   AC_ARG_WITH([hostlen],[AC_HELP_STRING([--with-hostlen=<value>],[Set username length (default 62).])],[hostlen="$withval"],[hostlen="62"])  
   AC_DEFINE_UNQUOTED([HOSTLEN],[($hostlen+1)],[Length of nicknames.])  
 ])dnl }}}  
155  dnl {{{ ax_arg_with_lclient_heap_size  dnl {{{ ax_arg_with_lclient_heap_size
156  AC_DEFUN([AX_ARG_WITH_LCLIENT_HEAP_SIZE],[  AC_DEFUN([AX_ARG_WITH_LCLIENT_HEAP_SIZE],[
157    AC_ARG_WITH([lclient-heap-size],[AC_HELP_STRING([--lclient-heap-size=<value>],[Set local client heap size (default 256).])],[lclient_heap_size="$withval"],[lclient_heap_size="256"])    AC_ARG_WITH([lclient-heap-size],[AC_HELP_STRING([--lclient-heap-size=<value>],[Set local client heap size (default 256).])],[lclient_heap_size="$withval"],[lclient_heap_size="256"])
# Line 285  AC_DEFUN([AX_ARG_ENABLE_WARNINGS],[ Line 244  AC_DEFUN([AX_ARG_ENABLE_WARNINGS],[
244      CFLAGS="-Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wno-unused"      CFLAGS="-Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wno-unused"
245    fi    fi
246  ])dnl }}}  ])dnl }}}
 dnl {{{ ax_arg_enable_efence  
 AC_DEFUN([AX_ARG_ENABLE_EFENCE],[  
   AC_ARG_ENABLE([efence],[AC_HELP_STRING([--enable-efence],[Enable compilation with ElectricFence.])],[efence="$enableval"],[efence="no"])  
   if test "$efence" = "yes" ; then  
     AC_SEARCH_LIBS([malloc],[efence],,[AC_MSG_ERROR([efence library not found])])  
   fi  
 ])dnl }}}  
247  dnl {{{ ax_arg_enable_syslog  dnl {{{ ax_arg_enable_syslog
248  AC_DEFUN([AX_ARG_ENABLE_SYSLOG],[  AC_DEFUN([AX_ARG_ENABLE_SYSLOG],[
249    AC_CHECK_HEADERS([syslog.h sys/syslog.h])    AC_CHECK_HEADERS([syslog.h sys/syslog.h])

Legend:
Removed from v.908  
changed lines
  Added in v.913

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26