Changeset 0268e62cb80791dd94220cf6deec916656c7cddd

Show
Ignore:
Timestamp:
01/25/08 23:07:37 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1201302457 +0000
git-parent:

[7e43d37ee8476335cb9af1abff0f709c97488df8]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1201302457 +0000
Message:

update.. prep for config system and module loading

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • configure.in

    r7e43d37 r0268e62  
    244244CPPFLAGS='-I$(top_srcdir)/src' 
    245245 
     246AC_MSG_CHECKING([Resolving libexec path...]) 
     247fullpath=$libexecdir 
     248while test "x$temppath" != "x$fullpath" ; do 
     249  temppath=$fullpath 
     250  fullpath=`eval echo ${fullpath}` 
     251done 
     252fullpath=`echo $fullpath | sed "s~NONE~$ac_default_prefix~"` 
     253AC_MSG_RESULT([$fullpath]) 
     254AC_DEFINE_UNQUOTED(MODULES_DIR, "${fullpath}") 
     255MODULES_DIR=${fullpath} 
     256AC_SUBST(MODULES_DIR) 
     257 
     258 
    246259AC_OUTPUT([ 
    247260Makefile 
  • src/Makefile.in

    r7e43d37 r0268e62  
    2525SUBS=utils jlog eventer modules 
    2626 
    27 OBJS=noitd.o noit_listener.o noit_console.o noit_poller.o 
     27OBJS=noitd.o noit_listener.o noit_console.o noit_poller.o \ 
     28        noit_module.o noit_conf.o 
    2829 
    2930all:    noitd 
  • src/noit_config.h.in

    r7e43d37 r0268e62  
    3838 
    3939#undef MODULEEXT 
     40#undef MODULES_DIR 
    4041 
    4142#undef HAVE_FCNTL_H 
  • src/noit_poller.c

    r392bce2 r0268e62  
    1717#include "eventer/eventer.h" 
    1818 
    19 noit_hash_table polls = NOIT_HASH_EMPTY; 
     19static noit_hash_table polls = NOIT_HASH_EMPTY; 
    2020 
    2121void 
    2222noit_poller_init() { 
    23   noit_hash_init(&polls); 
    2423} 
    2524 
  • src/noitd.c

    rf235ad4 r0268e62  
    1818  noit_log_stream_add_stream(noit_error, noit_stderr); 
    1919 
     20  noit_conf_init(); 
     21 
    2022  if(eventer_choose("kqueue") == -1) { 
    2123    fprintf(stderr, "Cannot choose kqueue\n");