Fix linking of test programs with libintl or not.
authorBruno Haible <bruno@clisp.org>
Fri, 6 Apr 2007 20:08:02 +0000 (20:08 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 6 Apr 2007 20:08:02 +0000 (20:08 +0000)
ChangeLog
modules/canonicalize-lgpl-tests
modules/gettext-h

index 7947e5f..ffd66ed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2007-04-06  Bruno Haible  <bruno@clisp.org>
 
+       * 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  <bruno@clisp.org>
+
        Assume the 'long double' type.
        * m4/longdouble.m4: Remove file.
        * config/srclist.txt: Don't mention longdouble.m4.
index 362959f..3c8eb9a 100644 (file)
@@ -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
 
index 3f6981d..15e97e6 100644 (file)
@@ -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