mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 20:32:33 +00:00
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
dnl
|
|
dnl Which translations should be installed?
|
|
dnl
|
|
AC_CHECK_FUNCS(gettext, gettext_found=yes, gettext_found=no)
|
|
if test x"$gettext_found" != xyes ; then
|
|
AC_CHECK_LIB(intl, gettext,
|
|
[ LIBINTL_LIBS="-lintl";
|
|
gettext_found=yes ], gettext_found=no)
|
|
fi
|
|
if test x"$gettext_found" = xyes ; then
|
|
AC_CHECK_HEADERS(libintl.h, libintl_h_found=yes, libintl_h_found=no)
|
|
if test x"$libintl_h_found" = xyes ; then
|
|
AC_MSG_CHECKING(the translations to install)
|
|
if test x"$LINGUAS" = x ; then
|
|
TRANSLATIONS_POS="`echo po/*.po`"
|
|
else
|
|
for i in $LINGUAS; do
|
|
if test -f "po/$i.po" ; then
|
|
TRANSLATIONS_POS="$TRANSLATIONS_POS po/$i.po"
|
|
fi
|
|
done
|
|
fi
|
|
TRANSLATIONS="`echo "$TRANSLATIONS_POS" | \
|
|
sed -e 's/po\///g' -e 's/\.po//g'`"
|
|
AC_MSG_RESULT($TRANSLATIONS)
|
|
fi
|
|
opt_features_yes="$opt_features_yes\n * translations (gettext)"
|
|
else
|
|
opt_features_no="$opt_features_no\n * translations (gettext)"
|
|
fi
|
|
|
|
AC_SUBST(LIBINTL_LIBS)
|
|
AC_SUBST(TRANSLATIONS)
|