From d5b3b06a2b0ab11081fbc253e9f3b9295490ebb6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 26 Dec 2007 16:33:48 +0100 Subject: [PATCH] The localcharset module requires a modified TESTS_ENVIRONMENT; tell the user. --- ChangeLog | 6 ++++++ modules/localcharset | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 07b659e62e..5e68d46ca7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-12-25 Bruno Haible + + * modules/localcharset (Notice): New field. + (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT. + Suggested by Ben Pfaff . + 2007-12-25 Paul Eggert Bruno Haible diff --git a/modules/localcharset b/modules/localcharset index 0a8b6dbdca..f0b7ed7193 100644 --- a/modules/localcharset +++ b/modules/localcharset @@ -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 -- 2.30.2