/[cvs]/eggdrop1.9/aclocal.m4
ViewVC logotype

Diff of /eggdrop1.9/aclocal.m4

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

revision 1.9 by fabian, Fri Feb 25 21:51:29 2000 UTC revision 1.10 by fabian, Tue Feb 29 19:57:27 2000 UTC
# Line 16  AC_DEFUN(EGG_MSG_CONFIGURE_END, [dnl Line 16  AC_DEFUN(EGG_MSG_CONFIGURE_END, [dnl
16  AC_MSG_RESULT()  AC_MSG_RESULT()
17  AC_MSG_RESULT(Configure is done.)  AC_MSG_RESULT(Configure is done.)
18  AC_MSG_RESULT()  AC_MSG_RESULT()
19    AC_MSG_RESULT(Type 'make config' to configure the modules. Or 'make iconfig' to)
20    AC_MSG_RESULT(interactively choose which modules to compile.)
21    AC_MSG_RESULT()
22  if test -f "./$EGGEXEC"  if test -f "./$EGGEXEC"
23  then  then
24    AC_MSG_RESULT(Type 'make clean' and then 'make' to create the bot.)    AC_MSG_RESULT([After that, type 'make clean' and then 'make' to create the bot.])
25  else  else
26    AC_MSG_RESULT(Type 'make' to create the bot.)    AC_MSG_RESULT([After that, type 'make' to create the bot.])
27  fi  fi
 AC_MSG_RESULT(Type 'make reconfig' if you want to alter the list of enabled modules.)  
28  AC_MSG_RESULT()  AC_MSG_RESULT()
29  ])dnl  ])dnl
30  dnl  dnl
# Line 953  fi Line 955  fi
955  dnl  dnl
956  dnl  dnl
957  AC_DEFUN(EGG_SUBST_EGGVERSION, [dnl  AC_DEFUN(EGG_SUBST_EGGVERSION, [dnl
958  EGGVERSION=`grep 'char.egg_version' src/main.c | $AWK '{gsub(/(\"|\;)/, "", [$]4); print [$]4}'`  EGGVERSION=`grep 'char.egg_version' ${srcdir}/src/main.c | $AWK '{gsub(/(\"|\;)/, "", [$]4); print [$]4}'`
959  egg_version_num=`echo ${EGGVERSION} | $AWK 'BEGIN { FS = "."; } { printf("%d%02d%02d", [$]1, [$]2, [$]3); }'`  egg_version_num=`echo ${EGGVERSION} | $AWK 'BEGIN { FS = "."; } { printf("%d%02d%02d", [$]1, [$]2, [$]3); }'`
960  AC_SUBST(EGGVERSION)dnl  AC_SUBST(EGGVERSION)dnl
961  AC_DEFINE_UNQUOTED(EGG_VERSION, $egg_version_num)dnl  AC_DEFINE_UNQUOTED(EGG_VERSION, $egg_version_num)dnl
# Line 967  then Line 969  then
969  fi  fi
970  AC_SUBST(DEST)dnl  AC_SUBST(DEST)dnl
971  ])dnl  ])dnl
 dnl  
 dnl  
 dnl EGG_DETECT_MODULES -- Detect, enable and/or disable eggdrop modules.  
 AC_DEFUN(EGG_DETECT_MODULES, [dnl  
 AC_ARG_ENABLE(mod-MODULE,  
 [  --disable-mod-MODULE    disable compilation of eggdrop module MODULE  
   --enable-mod-MODULE     enable compilation of eggdrop module MODULE],  
 [# This is a pseudo option. We check this stuff on our own below...])dnl  
   
 echo ""  
 echo -n "Detecting modules ..."  
   
 # Depending on wether the user has already selected/deselected modules  
 # before, we change our behaviour below.  
 if src/mod/modtool --root-dir=. -q isconfigured; then  
   egg_mods_configured=yes  
 else  
   egg_mods_configured=no  
 fi  
   
 egg_mods=`echo src/mod/*.mod | sed -e 's/src\/mod\///g' -e 's/\.mod//g'`  
 echo -n "."  
 egg_mods_enabled=  
 egg_mods_disabled=  
 for egg_mod in ${egg_mods}; do  
   eval "egg_modval=\$enable_mod_${mod}"  
   if (test "${egg_modval}" = no) || \  
      ((test ! "${egg_modval}" = yes) && \  
       ((grep ^${egg_mod}\$ disabled_modules > /dev/null 2>&1) || \  
       ((test "${egg_mods_configured}" = yes) && \  
        (src/mod/modtool --root-dir=. -q isdeselected ${egg_mod})))); then  
     src/mod/modtool --root-dir=. -q del ${egg_mod}  
     egg_mods_disabled="${egg_mods_disabled} ${egg_mod}"  
   else  
     src/mod/modtool --root-dir=. -q add ${egg_mod}  
     egg_mods_enabled="${egg_mods_enabled} ${egg_mod}"  
   fi  
   echo -n "."  
 done  
 echo " done."  
 src/mod/modtool --root-dir=. -q makefile  
   
 echo ""  
 if test ! "x${egg_mods_enabled}" = x; then  
   echo "Enabled modules : `echo ${egg_mods_enabled} | sed -e 's/ /, /g'`"  
 fi  
 if test ! "x${egg_mods_disabled}" = x; then  
   echo "Disabled modules: `echo ${egg_mods_disabled} | sed -e 's/ /, /g'`"  
 fi  
 echo ""  
 ])dnl  
 dnl  
 dnl  
 AC_DEFUN(EGG_CONFIGURE_MODULES, [dnl  
 AC_ARG_ENABLE(modconf, [  --disable-modconf       disable interactive module selection], [# We check this below ... ])dnl  
 if test ! "${enable_modconf}" = no; then  
   echo ""  
   echo ""  
   if src/mod/modtool --root-dir=. -x config; then  
     :  
   else  
     AC_MSG_ERROR([module configuration failed.])  
   fi  
   echo ""  
 fi  
 src/mod/modtool --root-dir=. update-depends  
 if make config; then  
   :  
 else  
   AC_MSG_ERROR([module configuration failed.])  
 fi])dnl  

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23