Fixing intl 'make DESTDIR' for Gtk



One of the bugs in the current gettext is that it doesn't support the
GNU standard 'DESTDIR' usage.  automake supports this just fine; so for
Gtk+ 'make DESTDIR=xxx install' breaks on the 'po' directory only.

DESTDIR is used to install a package in a staging area; for example
'make DESTDIR=/tmp/inst install' will install things in
/tmp/inst/usr/local/{...}. 

The fix is easy (patch appended) -- but it applies to po/Makefile.in.in,
which is not in CVS. 

What is the best way to fix this?  Maybe have configure perform the
substitution in AC_OUTPUT_COMMANDS?

Thanks,

	Jeff





*** Makefile.in.in.old  Mon Jan 25 14:33:22 1999
--- Makefile.in.in      Mon Jan 25 14:33:34 1999
***************
*** 16,22 ****
  top_srcdir = @top_srcdir@
  VPATH = @srcdir@
  
! prefix = @prefix@
  exec_prefix = @exec_prefix@
  datadir = $(prefix)/@DATADIRNAME@
  localedir = $(datadir)/locale
--- 16,22 ----
  top_srcdir = @top_srcdir@
  VPATH = @srcdir@
  
! prefix = $(DESTDIR)@prefix@
  exec_prefix = @exec_prefix@
  datadir = $(prefix)/@DATADIRNAME@
  localedir = $(datadir)/locale




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]