From: Bruno Haible Date: Fri, 6 Apr 2007 20:08:02 +0000 (+0000) Subject: Fix linking of test programs with libintl or not. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b391f635d4bb5898cfc005ce6b3761c95252b9f6;p=pspp Fix linking of test programs with libintl or not. --- diff --git a/ChangeLog b/ChangeLog index 7947e5fcbb..ffd66ed7ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +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. diff --git a/modules/canonicalize-lgpl-tests b/modules/canonicalize-lgpl-tests index 362959fa38..3c8eb9a02d 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 3f6981d520..15e97e6dac 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