aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2014-07-12 16:15:39 +0200
committerBoris Faure <billiob@gmail.com>2014-07-26 11:37:26 +0200
commit0ebe84383b8a1f833a3244194098da12a4b47930 (patch)
tree2d2ea4b8d64dc17992119b624a0d766941172af7 /configure.ac
parentmedia: improve media control pos/vol slider (diff)
downloadterminology-0ebe84383b8a1f833a3244194098da12a4b47930.tar.gz
Add (early) gettext support
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac41
1 files changed, 37 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index d5bd1a9..6d54c83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,6 +21,36 @@ AC_C___ATTRIBUTE__
efl_version="1.7.0"
AC_SUBST(efl_version)
+
+m4_ifdef([AM_GNU_GETTEXT_VERSION], [
+AM_GNU_GETTEXT_VERSION([0.18.3])
+])
+
+m4_ifdef([AC_GNU_GETTEXT], [
+AC_GNU_GETTEXT([external], [need-ngettext])
+po_makefile_in=po/Makefile.in
+have_po="yes"
+],[
+m4_ifdef([AM_GNU_GETTEXT], [
+AM_GNU_GETTEXT([external], [need-ngettext])
+po_makefile_in=po/Makefile.in
+have_po="yes"
+],[
+have_po="no"
+])
+])
+AC_SUBST(LTLIBINTL)
+if test "x$LIBINTL" = "x"; then
+ LIBINTL="$INTLLIBS"
+fi
+
+if test "x${POSUB}" = "x" ; then
+ have_po="no"
+fi
+
+AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
+
+
requirements="\
elementary >= ${efl_version} \
eina >= ${efl_version} \
@@ -75,8 +105,12 @@ AC_ARG_WITH(maximum-log-level,
AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${with_max_log_level}, [if set, logging is limited to this amount.])
AC_CONFIG_FILES([
-Makefile
terminology.spec
+pkgbuild/PKGBUILD
+])
+
+AC_OUTPUT([
+Makefile
src/Makefile
src/bin/Makefile
data/Makefile
@@ -92,11 +126,9 @@ data/themes/nyanology/Makefile
data/themes/nyanology/images/Makefile
data/themes/nyanology/images-sources/Makefile
man/Makefile
-pkgbuild/PKGBUILD
+$po_makefile_in
])
-AC_OUTPUT
-
#####################################################################
## Info
@@ -117,4 +149,5 @@ echo " prefix...................: $prefix"
echo
echo "Features:"
echo " dbus................: $have_eldbus"
+echo " gettext.............: $have_po"
echo