[project @ 2005-01-08 06:24:08 by unknown_lamer]
authorunknown_lamer <unknown>
Sat, 8 Jan 2005 06:24:08 +0000 (06:24 +0000)
committerunknown_lamer <unknown>
Sat, 8 Jan 2005 06:24:08 +0000 (06:24 +0000)
Updating README (easier to read), added configure.ac test for CommonC++2 (which will soon replace Socket and StringTokenizer)

ChangeLog
README
configure.ac

index ccd7642..64028fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-01-08  Clinton Ebadi  <clinton@unknownlamer.org>
+
+       * configure.ac: Add AC_LANG([C++]) so we can check for C++ libs
+       AC_CHECK_LIB ccgnu2 (CommonC++2)
+
+       * README: Updated README (reformatted, adding info, etc.)
+
 2005-01-07  Clinton Ebadi  <clinton@unknownlamer.org>
 
        * source/BotConfig.C (set_option_value): call watcher list
diff --git a/README b/README
index 5f9b0a5..e18c7d4 100644 (file)
--- a/README
+++ b/README
@@ -1,20 +1,46 @@
 THIS IS BOBOT++ VERSION 2.1 (this file is also -*- text -*-)
 
+=== REQUIREMENTS (Compile) === 
+
+Bobot++ 2.1 relies on CommonC++ 2
+(http://www.gnu.org/software/commoncpp/) 1.0.13 (at least). Newer
+version are compatible (at the time of writing, Debian unstable is
+only up to 1.0.13 so I targeted that since I don't need the features
+of 1.3 and relying on packages available in Debian makes it easier to
+install for everyone). 
+
+NOTE: CC++2 1.0 is newer than CC++ 1.0!
+
+Guile Scheme (http://www.gnu.org/software/guile/) Version 1.6 is used
+for scripting. It is optional and may be disabled by passing
+`--disable-scripting' to configure.
+
+=== BACKGROUND ===
+
 This is the unstable tree. 2.0 is what you want to use if you don't
-want your scripts to break every other day. Then again, I'm not
-updated this every day and so far the code is mostly backwards
-compatible. The biggest change is that all bot-* functions are now
+want your scripts to break every other day. The Scheme interface is
+going to remain essentially the same, but the config system and
+internal structure of the bot are very different.
+
+=== BIG CHANGES FROM STABLE ===
+
+The biggest change is that all bot-* functions are now
 bot:*. A simple 'perl -pi -e s/bot-/bot:/g SCRIPT1 SCRIPT2 .. SCRIPTN'
 should be enough to update your scripts. The bot-* functions are
 defined as aliases for the bot:* functions in bobot-utils.scm, which
 is autoloaded by bobot++.
 
-The binary is now named bobotpp because of automake's choking on ++ in
+The binary is now named bobotpp because of automake choking on ++ in
 rule names. In order for the bot to work properly, you must 'make
 install' it so that bobot-utils.scm is installed and can be loaded for
-scripts to use.
+scripts to use (unless you have Guile disabled).
+
+=== IMPORTANT NOTES ===
+
+*** 2.1 is not guaranteed to compile anywhere. ***
+(But PLEASE email me if it doesn't!)
 
-2.1 is not guaranteed to compile anywhere.
+=== DOCUMENTATION ===
 
 Please read the doc in the "doc" directory.
 Also see bobot++.texinfo, which should be an ok set of docs on how to
@@ -24,8 +50,11 @@ complete.
 
 bobotpp --help is also helpful.
 
+=== LICENSE ===
+
 This program is distributed under the terms of the GNU General Public
 License version 2 or later. See the COPYING file for details.
 
-NEW as of version 1.30: The syntax for the "channel =" option of bot.conf.
-See the examples for new syntax.
+=== CONTACT INFO ===
+
+Clinton Ebadi <clinton@unknownlamer.org> (Maintainer)
\ No newline at end of file
index 12b3d88..111cbdf 100644 (file)
@@ -1,7 +1,8 @@
 dnl Process this file with autoconf to produce a configure script.
+
 AC_PRERQ(2.50)
-dnl AC_INIT(source/Makefile.in)
 AC_INIT([Bobot++], [2.1.5CVS], [clinton@unknownlamer.org], [bobotpp])
+AC_LANG([C++])
 AM_INIT_AUTOMAKE
 AM_CONFIG_HEADER(config.h)
 
@@ -59,6 +60,15 @@ dnl Checks for libraries.
 AC_CHECK_LIB(crypt, crypt, [LDFLAGS="-lcrypt $LDFLAGS]")
 AC_CHECK_LIB(socket, socket, [LDFLAGS="-lsocket $LDFLAGS]")
 AC_CHECK_LIB(nsl, connect, [LDFLAGS="-lnsl $LDFLAGS]")
+dnl CC++ is special (no function to check_lib on
+AC_CHECK_PROG(CCGNU_FOUND, [ccgnu2-config],
+                            [yes], [no])
+if test x$CCGNU_FOUND = "xyes";
+then 
+   LDFLAGS="$(ccgnu2-config --libs) $LDFLAGS"
+else
+   AC_MSG_ERROR([Please install CommonC++2 1.0 or greater])
+fi
 
 dnl Checks for header files.
 AC_HEADER_STDC