This is needed as well: When the gettext module is present, the test programs indirectly rely on the gettext() function, therefore they must use @[EMAIL PROTECTED] But when the gettext module is not present, they must not link with -lintl - hence LIBINTL must be AC_SUBSTed with an empty value.
2007-04-06 Bruno Haible <[EMAIL PROTECTED]> * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL. (Link): New section. *** modules/gettext-h 6 Jul 2005 15:58:47 -0000 1.1 --- modules/gettext-h 6 Apr 2007 20:03:41 -0000 *************** *** 7,12 **** --- 7,14 ---- Depends-on: configure.ac: + AC_SUBST([LIBINTL]) + AC_SUBST([LTLIBINTL]) Makefile.am: lib_SOURCES += gettext.h *************** *** 14,19 **** --- 16,24 ---- Include: "gettext.h" + Link: + $(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise + License: LGPL