From b391f635d4bb5898cfc005ce6b3761c95252b9f6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 6 Apr 2007 20:08:02 +0000 Subject: [PATCH] Fix linking of test programs with libintl or not. --- ChangeLog | 7 +++++++ modules/canonicalize-lgpl-tests | 1 - modules/gettext-h | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7947e5fcb..ffd66ed7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2007-04-06 Bruno Haible + * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL. + (Link): New section. + + * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change. + +2007-04-06 Bruno Haible + Assume the 'long double' type. * m4/longdouble.m4: Remove file. * config/srclist.txt: Don't mention longdouble.m4. diff --git a/modules/canonicalize-lgpl-tests b/modules/canonicalize-lgpl-tests index 362959fa3..3c8eb9a02 100644 --- a/modules/canonicalize-lgpl-tests +++ b/modules/canonicalize-lgpl-tests @@ -10,6 +10,5 @@ Makefile.am: TESTS += test-canonicalize-lgpl.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' check_PROGRAMS += test-canonicalize-lgpl -test_canonicalize_lgpl_LDADD = @LIBINTL@ $(LDADD) EXTRA_DIST += test-canonicalize-lgpl.sh diff --git a/modules/gettext-h b/modules/gettext-h index 3f6981d52..15e97e6da 100644 --- a/modules/gettext-h +++ b/modules/gettext-h @@ -7,6 +7,8 @@ lib/gettext.h Depends-on: configure.ac: +AC_SUBST([LIBINTL]) +AC_SUBST([LTLIBINTL]) Makefile.am: lib_SOURCES += gettext.h @@ -14,6 +16,9 @@ lib_SOURCES += gettext.h Include: "gettext.h" +Link: +$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise + License: LGPL -- 2.11.0