From 5b225498f3b3dfcee3575eb5b73e124706f33cec Mon Sep 17 00:00:00 2001 From: Arnaud Launay Date: Sat, 23 Nov 2002 14:03:42 +0000 Subject: [PATCH] Add the evil gettext hack git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5785 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2_port/configure.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libgphoto2_port/configure.in b/libgphoto2_port/configure.in index 9946bf811..de6be6f9e 100644 --- a/libgphoto2_port/configure.in +++ b/libgphoto2_port/configure.in @@ -61,6 +61,18 @@ dnl --------------------------------------------------------------------------- dnl i18n support dnl --------------------------------------------------------------------------- ALL_LINGUAS="da de fr es it ja no ru sl sv uk zh_CN" +# EVIL HACKS +AC_MSG_CHECKING([for po/Makevars requiring evil hack]) +GETTEXT_PACKAGE="${PACKAGE}-${LIBGPHOTO2_CURRENT}" +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The gettext domain we're using]) +AC_SUBST(GETTEXT_PACKAGE) +if test -f po/Makevars.template +then + sed -e "s/^DOMAIN.*/DOMAIN = ${GETTEXT_PACKAGE}/" < po/Makevars.template > po/Makevars + AC_MSG_RESULT([yes. done.]) +else + AC_MSG_RESULT([no]) +fi AM_GNU_GETTEXT dnl ---------------------------------------------------------------------------