<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,7 +4,7 @@ have_automake=false
 if automake --version &lt; /dev/null &gt; /dev/null 2&gt;&amp;1 ; then
 	automake_version=`automake --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'`
 	case $automake_version in
-	   1.2*|1.3*|1.4|1.4*)
+	   1.2*|1.3*|1.4|1.4*|1.5*|1.6*|1.7*|1.8*)
 		;;
 	   *)
 		have_automake=true
@@ -15,11 +15,11 @@ if $have_automake ; then
 	AUTOMAKE=&quot;automake&quot;
 	ACLOCAL=&quot;aclocal&quot;
 else
-	if automake-1.7 --version &lt; /dev/null &gt; /dev/null 2&gt;&amp;1 ; then
-		AUTOMAKE=&quot;automake-1.7&quot;
-		ACLOCAL=&quot;aclocal-1.7&quot;
+	if automake-1.9 --version &lt; /dev/null &gt; /dev/null 2&gt;&amp;1 ; then
+		AUTOMAKE=&quot;automake-1.9&quot;
+		ACLOCAL=&quot;aclocal-1.9&quot;
 	else
-		echo &quot;automake missing or too old. This requires atleast automake 1.5&quot;
+		echo &quot;automake missing or too old. This requires atleast automake 1.9&quot;
 		exit 1
 	fi
 fi</diff>
      <filename>autogen.sh</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,29 @@
 dnl Process this file with autoconf to produce a configure script.
 
-AC_INIT(src)
-AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(xchat, 2.6.2)
+AC_INIT([XChat],[2.6.2],[http://www.xchat.org/],[xchat])
+
+AC_PREREQ([2.59])
+AC_COPYRIGHT([Copyright (C) 1998-2006 Peter Zelezny])
+
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_SRCDIR([configure.in])
+
+AM_INIT_AUTOMAKE([1.9 dist-bzip2 subdir-objects no-define])
+
 AM_MAINTAINER_MODE
 AC_PROG_CC
+AM_PROG_CC_C_O
 AC_PROG_CPP
 AM_PROG_AS
 AM_DISABLE_STATIC
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
+
+dnl -----------------------------------------------------------
+dnl Language Support
+dnl -----------------------------------------------------------
+GETTEXT_PACKAGE=xchat
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,&quot;$GETTEXT_PACKAGE&quot;,[Gettext package name])
 
 ALL_LINGUAS=&quot;de el es fi fr gl hu ja ko nl pa sq sr sv vi zh_TW&quot;
 AM_GNU_GETTEXT</diff>
      <filename>configure.in</filename>
    </modified>
    <modified>
      <diff>@@ -65,13 +65,13 @@ main (int argc, char **argv)
   GOptionContext *context = NULL;
   
 #ifdef ENABLE_NLS
-  bindtextdomain (PACKAGE, LOCALEDIR);
-  bind_textdomain_codeset (PACKAGE, &quot;UTF-8&quot;);
-  textdomain (PACKAGE);
+  bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+  bind_textdomain_codeset (GETTEXT_PACKAGE, &quot;UTF-8&quot;);
+  textdomain (GETTEXT_PACKAGE);
 #endif
 
   context = g_option_context_new (NULL);
-  g_option_context_add_main_entries (context, entries, PACKAGE);
+  g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
   g_option_context_parse (context, &amp;argc, &amp;argv, &amp;error);
 
   if (error)
@@ -110,7 +110,7 @@ main (int argc, char **argv)
         if (fork() == 0)
         {
           gchar *url = g_strdup_printf (&quot;--url=%s&quot;, opt_open_url);
-          execl (PREFIX&quot;/bin/&quot;PACKAGE, PACKAGE, &quot;-a&quot;, url, NULL);
+          execl (PREFIX&quot;/bin/&quot;PACKAGE_NAME, PACKAGE_NAME, &quot;-a&quot;, url, NULL);
         }
       } else
         write_error (_(&quot;Failed to complete command&quot;), error);</diff>
      <filename>plugins/dbus/xchat-remote.c</filename>
    </modified>
    <modified>
      <diff>@@ -1306,7 +1306,7 @@ xchat_plugin_get_info (char **name, char **desc, char **version,
 {
 	*name = &quot;Perl&quot;;
 	*desc = &quot;Perl scripting interface&quot;;
-	*version = VERSION;
+	*version = PACKAGE_VERSION;
 	if (reserved)
 		*reserved = NULL;
 }
@@ -1332,7 +1332,7 @@ xchat_plugin_init (xchat_plugin * plugin_handle, char **plugin_name,
 
 	*plugin_name = &quot;Perl&quot;;
 	*plugin_desc = &quot;Perl scripting interface&quot;;
-	*plugin_version = VERSION;
+	*plugin_version = PACKAGE_VERSION;
 
 	xchat_hook_command (ph, &quot;load&quot;, XCHAT_PRI_NORM, perl_command_load, 0, 0);
 	xchat_hook_command (ph, &quot;unload&quot;, XCHAT_PRI_NORM, perl_command_unload, 0,</diff>
      <filename>plugins/perl/perl.c</filename>
    </modified>
    <modified>
      <diff>@@ -38,7 +38,7 @@ margin-right: 32px;
 &lt;h1&gt;XChat 2.0 Plugin Interface&lt;/h1&gt;
 
 &lt;small&gt;
-&lt;font size=&quot;-12&quot;&gt;plugin20.html revision 2.63&lt;/font&gt;
+&lt;font size=&quot;-12&quot;&gt;plugin20.html revision 2.64&lt;/font&gt;
 &lt;br&gt;Latest version of this document is available at: &lt;a href=&quot;http://xchat.org/docs/plugin20.html&quot;&gt;http://xchat.org/docs/plugin20.html&lt;/a&gt;&lt;/small&gt;
 
 &lt;h2&gt;Information:&lt;/h2&gt;
@@ -710,7 +710,9 @@ removed, so you don't need to call this within your xchat_plugin_deinit() functi
 &lt;b&gt;Prototype:&lt;/b&gt; int xchat_emit_print(xchat_plugin *ph, const char *event_name, ...);
 &lt;br&gt;
 &lt;br&gt;&lt;b&gt;Description:&lt;/b&gt; Generates a print event. This can be any
-event found in the Preferences &gt; Advanced &gt; Text Events window.
+event found in the Preferences &gt; Advanced &gt; Text Events window. The vararg parameter list
+MUST always be NULL terminated. Special care should be taken when calling this function
+inside a print callback (from xchat_hook_print), as not to cause endless recursion.
 &lt;br&gt;
 &lt;br&gt;&lt;b&gt;Arguments:&lt;/b&gt;
 &lt;blockquote&gt;&lt;b&gt;ph:&lt;/b&gt; Plugin handle (as given to xchat_plugin_init).</diff>
      <filename>plugins/plugin20.html</filename>
    </modified>
    <modified>
      <diff>@@ -765,7 +765,7 @@ save_config (void)
 		return 0;
 	}
 
-	if (!cfg_put_str (fh, &quot;version&quot;, VERSION))
+	if (!cfg_put_str (fh, &quot;version&quot;, PACKAGE_VERSION))
 	{
 		free (new_config);
 		return 0;</diff>
      <filename>src/common/cfgfiles.c</filename>
    </modified>
    <modified>
      <diff>@@ -129,7 +129,7 @@ ctcp_handle (session *sess, char *to, char *nick,
 
 	if (!strcasecmp (msg, &quot;VERSION&quot;) &amp;&amp; !prefs.hidever)
 	{
-		snprintf (outbuf, sizeof (outbuf), &quot;VERSION xchat &quot;VERSION&quot; %s&quot;,
+		snprintf (outbuf, sizeof (outbuf), &quot;VERSION xchat &quot;PACKAGE_VERSION&quot; %s&quot;,
 					 get_cpu_str ());
 		serv-&gt;p_nctcp (serv, nick, outbuf);
 	}</diff>
      <filename>src/common/ctcp.c</filename>
    </modified>
    <modified>
      <diff>@@ -3522,7 +3522,7 @@ auto_insert (char *dest, int destlen, unsigned char *src, char *word[],
 					utf[19] = 0;
 					break;
 				case 'v':
-					utf = VERSION; break;
+					utf = PACKAGE_VERSION; break;
 					break;
 				case 'y':
 					now = time (0);</diff>
      <filename>src/common/outbound.c</filename>
    </modified>
    <modified>
      <diff>@@ -970,15 +970,16 @@ const char *
 xchat_get_info (xchat_plugin *ph, const char *id)
 {
 	session *sess;
+	guint32 hash = str_hash (id);
 
 	/* do the session independant ones first */
-	switch (str_hash (id))
+	switch (hash)
 	{
 	case 0x325acab5:	/* libdirfs */
 		return XCHATLIBDIR;
 
 	case 0x14f51cd8: /* version */
-		return VERSION;
+		return PACKAGE_VERSION;
 
 	case 0xdd9b1abd:	/* xchatdir */
 		return get_xdir_utf8 ();
@@ -994,7 +995,7 @@ xchat_get_info (xchat_plugin *ph, const char *id)
 		return NULL;
 	}
 
-	switch (str_hash (id))
+	switch (hash)
 	{
 	case 0x2de2ee: /* away */
 		if (sess-&gt;server-&gt;is_away)
@@ -1454,10 +1455,11 @@ int
 xchat_emit_print (xchat_plugin *ph, const char *event_name, ...)
 {
 	va_list args;
+	/* currently only 4 because no events use more than 4.
+		This can be easily expanded without breaking the API. */
 	char *argv[4] = {NULL, NULL, NULL, NULL};
 	int i = 0;
 
-	memset (&amp;argv, 0, sizeof (argv));
 	va_start (args, event_name);
 	while (1)
 	{</diff>
      <filename>src/common/plugin.c</filename>
    </modified>
    <modified>
      <diff>@@ -1034,7 +1034,7 @@ servlist_save (void)
 	if (first)
 		chmod (buf, 0600);
 #endif
-	fprintf (fp, &quot;v=&quot;VERSION&quot;\n\n&quot;);
+	fprintf (fp, &quot;v=&quot;PACKAGE_VERSION&quot;\n\n&quot;);
 
 	list = network_list;
 	while (list)</diff>
      <filename>src/common/servlist.c</filename>
    </modified>
    <modified>
      <diff>@@ -67,7 +67,7 @@ menu_about (GtkWidget * wid, gpointer sess)
 				666, get_cpu_str());
 #endif
 
-	gtk_widget_show (gnome_about_new (&quot;X-Chat&quot;, VERSION,
+	gtk_widget_show (gnome_about_new (&quot;X-Chat&quot;, PACKAGE_VERSION,
 							&quot;(C) 1998-2005 Peter Zelezny&quot;, author, buf, 0));
 }
 
@@ -115,7 +115,7 @@ menu_about (GtkWidget * wid, gpointer sess)
 	gtk_container_add (GTK_CONTAINER (vbox), label);
 	g_get_charset (&amp;locale);
 	(snprintf) (buf, sizeof (buf),
-				&quot;&lt;span size=\&quot;x-large\&quot;&gt;&lt;b&gt;XChat &quot;VERSION&quot;&lt;/b&gt;&lt;/span&gt;\n\n&quot;
+				&quot;&lt;span size=\&quot;x-large\&quot;&gt;&lt;b&gt;XChat &quot;PACKAGE_VERSION&quot;&lt;/b&gt;&lt;/span&gt;\n\n&quot;
 				&quot;%s\n\n&quot;
 				&quot;%s\n&quot;
 				&quot;&lt;b&gt;Charset&lt;/b&gt;: %s &quot;</diff>
      <filename>src/fe-gtk/about.c</filename>
    </modified>
    <modified>
      <diff>@@ -136,13 +136,13 @@ fe_args (int argc, char *argv[])
 	GOptionContext *context;
 
 #ifdef ENABLE_NLS
-	bindtextdomain (PACKAGE, LOCALEDIR);
-	bind_textdomain_codeset (PACKAGE, &quot;UTF-8&quot;);
-	textdomain (PACKAGE);
+	bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+	bind_textdomain_codeset (GETTEXT_PACKAGE, &quot;UTF-8&quot;);
+	textdomain (GETTEXT_PACKAGE);
 #endif
 
 	context = g_option_context_new (NULL);
-	g_option_context_add_main_entries (context, gopt_entries, PACKAGE);
+	g_option_context_add_main_entries (context, gopt_entries, GETTEXT_PACKAGE);
 	g_option_context_add_group (context, gtk_get_option_group (TRUE));
 	g_option_context_parse (context, &amp;argc, &amp;argv, &amp;error);
 
@@ -157,7 +157,7 @@ fe_args (int argc, char *argv[])
 
 	if (arg_show_version)
 	{
-		printf (PACKAGE&quot; &quot;VERSION&quot;\n&quot;);
+		printf (PACKAGE_NAME&quot; &quot;PACKAGE_VERSION&quot;\n&quot;);
 		return 0;
 	}
 </diff>
      <filename>src/fe-gtk/fe-gtk.c</filename>
    </modified>
    <modified>
      <diff>@@ -101,7 +101,7 @@ fe_new_window (struct session *sess, int focus)
 
 	snprintf (buf, sizeof (buf),
 				&quot;\n&quot;
-				&quot; \017xchat \00310&quot;VERSION&quot;\n&quot;
+				&quot; \017xchat \00310&quot;PACKAGE_VERSION&quot;\n&quot;
 				&quot; \017Running on \00310%s \017glib \00310%d.%d.%d\n&quot;
 				&quot; \017This binary compiled \00310&quot;__DATE__&quot;\017\n&quot;,
 				get_cpu_str(),
@@ -393,7 +393,7 @@ fe_args (int argc, char *argv[])
 	{
 		if (!strcasecmp (argv[1], &quot;--version&quot;) || !strcasecmp (argv[1], &quot;-v&quot;))
 		{
-			puts (VERSION);
+			puts (PACKAGE_VERSION);
 			return 0;
 		}
 	}
@@ -428,8 +428,9 @@ fe_main (void)
 		new_ircwindow (NULL, NULL, SESS_SERVER, 0);
 
 #ifdef ENABLE_NLS
-	bindtextdomain (PACKAGE, PREFIX&quot;/share/locale&quot;);
-	textdomain (PACKAGE);
+	bindtextdomain (GETTEXT_PACKAGE, PREFIX&quot;/share/locale&quot;);
+	bind_textdomain_codeset (GETTEXT_PACKAGE, &quot;UTF-8&quot;);
+	textdomain (GETTEXT_PACKAGE);
 #endif
 
 	while (!done)</diff>
      <filename>src/fe-text/fe-text.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5fc4e52f3d2320e094bb6f6ce1a91dc037d6f13d</id>
    </parent>
  </parents>
  <author>
    <name>zed</name>
    <email>zed</email>
  </author>
  <url>http://github.com/tycho/xchat-aqua/commit/fac488e87dd62ae156a1da66929df3ea601b69d4</url>
  <id>fac488e87dd62ae156a1da66929df3ea601b69d4</id>
  <committed-date>2006-05-22T07:47:10-07:00</committed-date>
  <authored-date>2006-05-22T07:47:10-07:00</authored-date>
  <message>* Update Automake &amp; Autoconf macros (Brian Pepple).
* plugin.c: don't calc the hash twice. remove useless memset.
* plugin20.html: Add warnings about xchat_emit_print.</message>
  <tree>13ffedc3ca26a4f4dc961d3775b96416b6fca231</tree>
  <committer>
    <name>zed</name>
    <email>zed</email>
  </committer>
</commit>
