2 dnl Setups I18N support.
3 dnl AC_DEFINEs and AC_SUBSTs GETTEXT_PACKAGE
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 }'`
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.])
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])