Support for packages that use "gettextize --intl". From Claudio Fontana.
authorBruno Haible <bruno@clisp.org>
Mon, 24 Apr 2006 11:35:07 +0000 (11:35 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 24 Apr 2006 11:35:07 +0000 (11:35 +0000)
ChangeLog
gnulib-tool
modules/gettext

index bc0484c..3d73585 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-04-23  Claudio Fontana  <claudio@gnu.org>
+            Bruno Haible  <bruno@clisp.org>
+
+       * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
+       * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
+       for AM_CPPFLAGS.
+
 2006-04-23  Bruno Haible  <bruno@clisp.org>
 
        * gnulib-tool (func_usage): Fix --import description. Document --update.
index 9b2cfdf..b7a6dea 100755 (executable)
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2006-04-24 11:30:00 $'
+cvsdatestamp='$Date: 2006-04-24 11:35:07 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -745,6 +745,8 @@ func_emit_lib_Makefile_am ()
   echo "DISTCLEANFILES ="
   echo "MAINTAINERCLEANFILES ="
   echo
+  echo "AM_CPPFLAGS ="
+  echo
   for module in $modules; do
     func_verify_nontests_module
     if test -n "$module"; then
index b8f03da..af3aa43 100644 (file)
@@ -39,6 +39,15 @@ AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION([0.14.5])
 
 Makefile.am:
+# This is for those projects which use "gettextize --intl" to put a source-code
+# copy of libintl into their package. In such projects, every Makefile.am needs
+# -I$(top_builddir)/intl, so that <libintl.h> can be found in this directory.
+# For the Makefile.ams in other directories it is the maintainer's
+# responsibility; for the one from gnulib we do it here.
+# This option has no effect when the user disables NLS (because then the intl
+# directory contains no libintl.h file) or when the project does not use
+# "gettextize --intl".
+AM_CPPFLAGS += -I$(top_builddir)/intl
 
 Include:
 "gettext.h"