Autotools: Build plugins with Libtool on MinGW too
[geany-mirror.git] / m4 / geany-i18n.m4
blob71139dd6b3dd7b8ebdc336ccfa915420b4c5a3fe
1 dnl GEANY_I18N
2 dnl Setups I18N support.
3 dnl AC_DEFINEs and AC_SUBSTs GETTEXT_PACKAGE
4 AC_DEFUN([GEANY_I18N],
6         AC_REQUIRE([AC_PROG_AWK])
7         AC_REQUIRE([AC_PROG_INTLTOOL])
9         GETTEXT_PACKAGE="$PACKAGE"
10         AC_SUBST([GETTEXT_PACKAGE])
11         AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext package.])
13         ALL_LINGUAS=`cd "$srcdir/po" 2>/dev/null && ls *.po 2>/dev/null | $AWK 'BEGIN { FS="."; ORS=" " } { print $[]1 }'`
15         AM_GLIB_GNU_GETTEXT
16         # workaround for intltool bug (http://bugzilla.gnome.org/show_bug.cgi?id=490845)
17         if test "x$MSGFMT" = "xno"; then
18                 AC_MSG_ERROR([msgfmt not found. Please install the gettext package.])
19         fi
21         # intltool hack to define install_sh on Debian/Ubuntu systems
22         if test "x$install_sh" = "x"; then
23                 install_sh="`pwd`/install-sh"
24                 AC_SUBST([install_sh])
25         fi