[cvslog] Module eggdrop_miranda: Change committed

cvslog cvs at tsss.iavalley.cc.ia.us
Tue Mar 13 21:12:00 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop_miranda
Commit time: 2001-03-14 03:11:02 UTC
Commited by: ite

Added files:
     Makefile.am acconfig.h bootstrap configure.in po/POTFILES.in
     src/Makefile.am src/eggdrop.h src/main.c src/compat/Makefile.am
     src/compat/memcpy.c

Log message:

Added basic configure system. Gettext is supported. Created basic program sources (main.c eggdrop.h) files for testing purposes. Created initial fallback functions static (for now) library in src/compat named libcompat. Added memcpy fallback funtion. Removed config/mkinstalldirs and config/install-sh since they are unneeded beacause of the bootstrap script.

---------------------- diff included ----------------------
Index: eggdrop_miranda/Makefile.am
diff -u /dev/null eggdrop_miranda/Makefile.am:1.1
--- /dev/null	Tue Mar 13 21:11:02 2001
+++ eggdrop_miranda/Makefile.am	Tue Mar 13 21:10:51 2001
@@ -0,0 +1,18 @@
+
+auxdir                  = @ac_aux_dir@
+AUX_DIST                = $(auxdir)/install-sh $(auxdir)/missing \
+                        $(auxdir)/mkinstalldirs
+AUX_DIST_EXTRA		= $(auxdir)/gettext.m4 $(auxdir)/lcmessage.m4 \
+                        $(auxdir)/progtest.m4
+EXTRA_DIST              = bootstrap
+
+SUBDIRS                 = intl src po
+MAINTAINERCLEANFILES    = Makefile.in aclocal.m4 configure
+
+ACLOCAL                 = aclocal -I $(auxdir)
+
+dist-hook:
+	(cd $(distdir) && mkdir $(auxdir))
+	for file in $(AUX_DIST) $(AUX_DIST_EXTRA); do \
+	  cp $$file $(distdir)/$$file; \
+	done
Index: eggdrop_miranda/acconfig.h
diff -u /dev/null eggdrop_miranda/acconfig.h:1.1
--- /dev/null	Tue Mar 13 21:11:02 2001
+++ eggdrop_miranda/acconfig.h	Tue Mar 13 21:10:51 2001
@@ -0,0 +1,8 @@
+#undef ENABLE_NLS
+#undef HAVE_CATGETS
+#undef HAVE_GETTEXT
+#undef HAVE_LC_MESSAGES
+#undef HAVE_STPCPY
+#undef PACKAGE
+#undef VERSION
+#undef LOCALEDIR
Index: eggdrop_miranda/bootstrap
diff -u /dev/null eggdrop_miranda/bootstrap:1.1
--- /dev/null	Tue Mar 13 21:11:02 2001
+++ eggdrop_miranda/bootstrap	Tue Mar 13 21:10:51 2001
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -x
+aclocal
+autoheader
+automake --foreign --add-missing --copy
+autoconf
+gettextize --force --copy
Index: eggdrop_miranda/configure.in
diff -u /dev/null eggdrop_miranda/configure.in:1.1
--- /dev/null	Tue Mar 13 21:11:02 2001
+++ eggdrop_miranda/configure.in	Tue Mar 13 21:10:51 2001
@@ -0,0 +1,39 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT(src/main.c)
+AC_CONFIG_AUX_DIR(config)
+AM_CONFIG_HEADER(config.h)
+AM_INIT_AUTOMAKE(eggdrop, miranda)
+
+dnl Checks for programs.
+AC_PROG_CC
+AC_PROG_RANLIB
+AC_PROG_LN_S
+
+dnl Checks for libraries.
+ALL_LINGUAS=""
+AM_GNU_GETTEXT
+
+dnl Checks for header files.
+AC_HEADER_DIRENT
+AC_HEADER_STDC
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_C_INLINE
+AC_TYPE_PID_T
+AC_TYPE_SIZE_T
+
+dnl Checks for library functions.
+AC_REPLACE_FUNCS(memcpy)
+
+dnl Set PACKAGE_LOCALE_DIR in config.h.
+if test "x${prefix}" = "xNONE"; then
+  AC_DEFINE_UNQUOTED(LOCALEDIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
+else
+  AC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/${DATADIRNAME}/locale")
+fi
+    
+
+AC_SUBST(ac_aux_dir)
+
+AC_OUTPUT([Makefile src/compat/Makefile src/Makefile intl/Makefile po/Makefile.in])
Index: eggdrop_miranda/po/POTFILES.in
diff -u /dev/null eggdrop_miranda/po/POTFILES.in:1.1
--- /dev/null	Tue Mar 13 21:11:02 2001
+++ eggdrop_miranda/po/POTFILES.in	Tue Mar 13 21:10:52 2001
@@ -0,0 +1,3 @@
+# List of source files containing translatable strings.
+
+src/main.c
Index: eggdrop_miranda/src/Makefile.am
diff -u /dev/null eggdrop_miranda/src/Makefile.am:1.1
--- /dev/null	Tue Mar 13 21:11:02 2001
+++ eggdrop_miranda/src/Makefile.am	Tue Mar 13 21:10:52 2001
@@ -0,0 +1,8 @@
+SUBDIRS			= compat
+MAINTAINERCLEANFILES	= Makefile.in
+
+INCLUDES		= -I$(top_builddir) -I$(top_srcdir)
+
+bin_PROGRAMS	= eggdrop
+eggdrop_SOURCES = main.c
+eggdrop_LDADD 	= $(srcdir)/compat/libcompat.a
Index: eggdrop_miranda/src/compat/Makefile.am
diff -u /dev/null eggdrop_miranda/src/compat/Makefile.am:1.1
--- /dev/null	Tue Mar 13 21:11:02 2001
+++ eggdrop_miranda/src/compat/Makefile.am	Tue Mar 13 21:10:52 2001
@@ -0,0 +1,9 @@
+MAINTAINERCLEANFILES    = Makefile.in
+
+
+
+INCLUDES                =  -I$(top_builddir) -I$(top_srcdir)
+noinst_LIBRARIES        = libcompat.a
+libcompat_a_SOURCES	=
+libcompat_a_LIBADD	= @LIBOBJS@
+
Index: eggdrop_miranda/src/compat/memcpy.c
diff -u /dev/null eggdrop_miranda/src/compat/memcpy.c:1.1
--- /dev/null	Tue Mar 13 21:11:02 2001
+++ eggdrop_miranda/src/compat/memcpy.c	Tue Mar 13 21:10:52 2001
@@ -0,0 +1,7 @@
+void *egg_memcpy(void *dest, const void *src, size_t n)
+{
+  while (n--)
+    *((char *) dest)++ = *((char *) src)++;
+  return dest;
+}
+
Index: eggdrop_miranda/src/eggdrop.h
diff -u /dev/null eggdrop_miranda/src/eggdrop.h:1.1
--- /dev/null	Tue Mar 13 21:11:02 2001
+++ eggdrop_miranda/src/eggdrop.h	Tue Mar 13 21:10:52 2001
@@ -0,0 +1,15 @@
+#ifndef __EGGDROP_H_
+#define __EGGDROP_H_
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#ifdef HAVE_GETTEXT
+#include <libintl.h>
+#define _(String) gettext (String)
+#else
+#define _(String) (String)
+#endif
+
+#endif
Index: eggdrop_miranda/src/main.c
diff -u /dev/null eggdrop_miranda/src/main.c:1.1
--- /dev/null	Tue Mar 13 21:11:02 2001
+++ eggdrop_miranda/src/main.c	Tue Mar 13 21:10:52 2001
@@ -0,0 +1,14 @@
+#include "eggdrop.h"
+
+void init_gettext()
+{
+	bindtextdomain(PACKAGE, LOCALEDIR);
+	textdomain(PACKAGE);
+}
+
+int main(int argc, char **argv)
+{
+	init_gettext();
+	printf(_("Starting Eggdrop Miranda :)\n"));
+	return 0;
+}
----------------------- End of diff -----------------------



More information about the Changes mailing list