The localcharset module requires a modified TESTS_ENVIRONMENT; tell the user.
authorBruno Haible <bruno@clisp.org>
Wed, 26 Dec 2007 15:33:48 +0000 (16:33 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 26 Dec 2007 15:33:48 +0000 (16:33 +0100)
ChangeLog
modules/localcharset

index 07b659e..5e68d46 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-12-25  Bruno Haible  <bruno@clisp.org>
+
+       * modules/localcharset (Notice): New field.
+       (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
+       Suggested by Ben Pfaff <blp@cs.stanford.edu>.
+
 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
             Bruno Haible  <bruno@clisp.org>
 
index 0a8b6db..f0b7ed7 100644 (file)
@@ -1,6 +1,12 @@
 Description:
 Return current locale's character encoding.
 
+Notice:
+If your package's tests make use of the locale_charset() function directly or
+indirectly, you may need to define the CHARSETALIASDIR environment variable,
+so that "make check" works before "make install". In Makefile.am syntax:
+TESTS_ENVIRONMENT += @LOCALCHARSET_TESTS_ENVIRONMENT@
+
 Files:
 lib/localcharset.h
 lib/localcharset.c
@@ -16,6 +22,8 @@ configmake
 
 configure.ac:
 gl_LOCALCHARSET
+LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
+AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
 
 Makefile.am:
 lib_SOURCES += localcharset.h localcharset.c