From c306cc1535cb6df63c4a78b8ce3ed9318f4dc195 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Tue, 31 May 2011 06:57:24 +0000 Subject: [PATCH] make gettext stuff optional SVN revision: 59833 --- Makefile.am | 10 ++++++++-- configure.ac | 11 ++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9f5aeb7..7a6a048 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,13 @@ MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess config.h.in \ config.sub configure depcomp install-sh ltmain.sh \ missing module.desktop config.rpath mkinstalldirs -SUBDIRS = src po +SUBDIRS = src + +if HAVE_PO + +SUBDIRS += po + +endif EDJE_FLAGS = -v \ -id $(top_srcdir)/images @@ -22,7 +28,7 @@ EXTRA_DIST = module.desktop.in \ %.edj: %.edc $(EDJE_CC) $(EDJE_FLAGS) $< $@ - + clean-local: rm -rf alarm.edj e-module-alarm.edj module.desktop e_modules-alarm.spec *~ diff --git a/configure.ac b/configure.ac index b960cc1..df2f59d 100644 --- a/configure.ac +++ b/configure.ac @@ -22,8 +22,17 @@ define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl AC_PROG_LIBTOOL +m4_ifdef([AM_GNU_GETTEXT_VERSION], [ +AM_GNU_GETTEXT_VERSION([0.14]) +]) + +m4_ifdef([AM_GNU_GETTEXT], [ AM_GNU_GETTEXT([external]) -AM_GNU_GETTEXT_VERSION(0.14) +AM_CONDITIONAL([HAVE_PO], [true]) +],[ +AM_CONDITIONAL([HAVE_PO], [false]) +]) +AC_SUBST(LTLIBINTL) PKG_CHECK_MODULES(E, [enlightenment]) release=$(pkg-config --variable=release enlightenment)