From 8c0dbcf2d9bbda66d5a0d4d463e1f2258737f861 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Tue, 2 Sep 2014 12:37:34 +0200 Subject: [PATCH] autotools: require a less deprecated gettext and move stuff to be in a more coherent place. --- legacy/elementary/configure.ac | 41 +++++++++++++++++----------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/legacy/elementary/configure.ac b/legacy/elementary/configure.ac index b40466cb13..03c8ad7519 100644 --- a/legacy/elementary/configure.ac +++ b/legacy/elementary/configure.ac @@ -131,29 +131,8 @@ AM_CONDITIONAL([HAVE_FREEBSD], [test "x${have_freebsd}" = "xyes"]) AC_SUBST([ELM_UNIX_DEF]) AC_SUBST([ELM_WIN32_DEF]) - ### Checks for programs -# gettext -m4_ifdef([AM_GNU_GETTEXT_VERSION], [ -AM_GNU_GETTEXT_VERSION([0.17]) -]) - -m4_ifdef([AM_GNU_GETTEXT], [ -AM_GNU_GETTEXT([external]) -po_makefile_in=po/Makefile.in -have_po="yes" -],[ -have_po="no" -]) -AC_SUBST([LTLIBINTL]) - -if test "x${POSUB}" = "x" ; then - have_po="no" -fi - -AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"]) - # compilers AC_PROG_CC AC_PROG_CC_STDC @@ -172,6 +151,26 @@ else fi AC_SUBST([pkgconfig_requires_private]) +# gettext +m4_ifdef([AM_GNU_GETTEXT_VERSION], [ +AM_GNU_GETTEXT_VERSION([0.18]) +]) + +m4_ifdef([AM_GNU_GETTEXT], [ +AM_GNU_GETTEXT([external]) +po_makefile_in=po/Makefile.in +have_po="yes" +],[ +have_po="no" +]) +AC_SUBST([LTLIBINTL]) + +if test "x${POSUB}" = "x" ; then + have_po="no" +fi + +AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"]) + # doxygen EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])