--- a/mcabber/configure.ac Mon Mar 27 23:09:41 2006 +0200
+++ b/mcabber/configure.ac Mon Mar 27 23:42:31 2006 +0200
@@ -109,6 +109,14 @@
CFLAGS="$CFLAGS -O2"
fi
+AC_ARG_ENABLE(hgcset,
+ [AC_HELP_STRING(--enable-hgcset, Add Mercurial changeset)],
+ hgcset=$enableval, hgcset="")
+AM_CONDITIONAL(HGCSET, test x$hgcset = xyes)
+if test "${hgcset}" = "yes"; then
+ AC_DEFINE(ENABLE_HGCSET, 1, [Use Mercurial changeset])
+fi
+
AC_CONFIG_FILES([connwrap/Makefile
libjabber/Makefile
src/Makefile
--- a/mcabber/src/Makefile.am Mon Mar 27 23:09:41 2006 +0200
+++ b/mcabber/src/Makefile.am Mon Mar 27 23:42:31 2006 +0200
@@ -11,8 +11,10 @@
INCLUDES = $(GLIB_CFLAGS)
+CLEANFILES = hgcset.h
+
+if HGCSET
BUILT_SOURCES = hgcset.h
-CLEANFILES = hgcset.h
#mcabber_DEPENDENCIES = hgcset.h \
# ../libjabber/liblibjabber.a ../connwrap/libconnwrap.a
@@ -20,6 +22,7 @@
hgcset.h:
../hgcset.sh
-#SUBDIRS =
+.PHONY: hgcset.h
+endif
-.PHONY: hgcset.h
+#SUBDIRS =
--- a/mcabber/src/main.c Mon Mar 27 23:09:41 2006 +0200
+++ b/mcabber/src/main.c Mon Mar 27 23:42:31 2006 +0200
@@ -40,7 +40,10 @@
#include "histolog.h"
#include "hooks.h"
#include "utils.h"
-#include "hgcset.h"
+
+#ifdef ENABLE_HGCSET
+# include "hgcset.h"
+#endif
char *mcabber_version(void)