[Spice-commits] [Spice-devel] configure.ac

Marc-André Lureau marcandre.lureau at gmail.com
Mon Jan 23 05:56:00 PST 2012


On Mon, Jan 23, 2012 at 1:24 PM, Daniel P. Berrange <berrange at redhat.com> wrote:
> Yeah, you really don't want to be calling both IT_PROG_INTLTOOL *and*
> AM_GLIB_GNU_GETTEXT in the same configure.ac script. It causes a real
> mess which prevents users to overriding the install locations with
> make variables, or configure flags.
>
> We had this problem in virt-viewer for a while, until we killed off
> the call to AM_GLIB_GNU_GETTEXT.

Unfortunately, with this version on mingw:

GETTEXT_PACKAGE=spice-gtk
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],"$GETTEXT_PACKAGE", [GETTEXT package name])
IT_PROG_INTLTOOL([0.40.0])

I get mo files installed under $prefix/lib instead of $prefix/share,
because DATADIRNAME='lib', which seems to come from the following
configure check:

# Set DATADIRNAME correctly if it is not set yet
# (copied from glib-gettext.m4)
if test -z "$DATADIRNAME"; then
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int
main ()
{
extern int _nl_msg_cat_cntr;
                       return _nl_msg_cat_cntr
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  DATADIRNAME=share
else
[...]


I am still investigating, but the current version in git works fine..

-- 
Marc-André Lureau


More information about the Spice-commits mailing list