autotools: require a less deprecated gettext and move stuff to be in a more coherent place.

This commit is contained in:
Cedric BAIL 2014-09-02 12:37:34 +02:00
parent 8e3a109b0e
commit 8c0dbcf2d9
1 changed files with 20 additions and 21 deletions

View File

@ -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"])