bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib tests vs. LDADD


From: Bruno Haible
Subject: Re: gnulib tests vs. LDADD
Date: Fri, 6 Apr 2007 22:07:22 +0200
User-agent: KMail/1.5.4

This is needed as well: When the gettext module is present, the test
programs indirectly rely on the gettext() function, therefore they must
use @address@hidden 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  <address@hidden>

        * 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
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]