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: Wed, 4 Apr 2007 01:28:44 +0200
User-agent: KMail/1.5.4

Eric Blake wrote:
> I noticed the following message from gnulib-tool:
> 
> You may need to use the following Makefile variables when linking.
> Use them in <program>_LDADD when linking a program, or
> in <library>_a_LDFLAGS or <library>_la_LDFLAGS when linking a library.
>   $(LIB_CLOCK_GETTIME)
>   $(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise

And no word about libm? I'm adding this, to document more clearly the
libm requirements:


2007-04-03  Bruno Haible  <address@hidden>

        * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
        * modules/isnanl (Link): New section.

        * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
        * modules/frexp (Link): New section.

        * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
        * modules/frexpl (Link): New section.

        * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
        * modules/ldexpl (Link): New section.

2007-04-03  Bruno Haible  <address@hidden>

        * modules/TEMPLATE-EXTENDED: New file.
        * gnulib-tool (func_all_modules, func_verify_module): Exclude it.

====================== modules/TEMPLATE_EXTENDED ==========================
Description:

Files:

Depends-on:

configure.ac-early:

configure.ac:

Makefile.am:

Include:

Link:

License:
GPL

Maintainer:

===========================================================================
*** gnulib-tool 23 Mar 2007 13:11:28 -0000      1.229
--- gnulib-tool 3 Apr 2007 23:12:44 -0000
***************
*** 826,831 ****
--- 826,832 ----
              -e '/^COPYING$/d' -e '/\/COPYING$/d' \
              -e '/^README$/d' -e '/\/README$/d' \
              -e '/^TEMPLATE$/d' \
+             -e '/^TEMPLATE-EXTENDED$/d' \
              -e '/^TEMPLATE-TESTS$/d' \
              -e '/^\..*/d' \
              -e '/~$/d' \
***************
*** 848,853 ****
--- 849,855 ----
       && test "COPYING" != "$module" \
       && test "README" != "$module" \
       && test "TEMPLATE" != "$module" \
+      && test "TEMPLATE-EXTENDED" != "$module" \
       && test "TEMPLATE-TESTS" != "$module"; then
      # OK, $module is a correct module name.
      # Verify that building the module description with 'patch' succeeds.
*** m4/ldexpl.m4        31 Mar 2007 20:36:48 -0000      1.2
--- m4/ldexpl.m4        3 Apr 2007 23:12:44 -0000
***************
*** 57,62 ****
--- 57,63 ----
      HAVE_DECL_LDEXPL=0
      AC_LIBOBJ([ldexpl])
    fi
+   AC_SUBST([LDEXPL_LIBM])
  ])
  
  dnl Test whether ldexpl() works on finite numbers (this fails on AIX 5.1).
*** m4/isnanl.m4        22 Mar 2007 02:32:29 -0000      1.4
--- m4/isnanl.m4        3 Apr 2007 23:12:44 -0000
***************
*** 37,42 ****
--- 37,43 ----
        gl_LONG_DOUBLE_EXPONENT_LOCATION
      fi
    fi
+   AC_SUBST([ISNANL_LIBM])
  ])
  
  AC_DEFUN([gl_FUNC_ISNANL_NO_LIBM],
*** m4/frexp.m4 25 Mar 2007 21:25:36 -0000      1.3
--- m4/frexp.m4 3 Apr 2007 23:12:44 -0000
***************
*** 53,58 ****
--- 53,59 ----
    else
      AC_LIBOBJ([frexp])
    fi
+   AC_SUBST([FREXP_LIBM])
  ])
  
  dnl Test whether frexp() works also on denormalized numbers (this fails e.g. 
on
*** m4/frexpl.m4        31 Mar 2007 20:38:34 -0000      1.5
--- m4/frexpl.m4        3 Apr 2007 23:12:44 -0000
***************
*** 57,62 ****
--- 57,63 ----
      HAVE_DECL_FREXPL=0
      AC_LIBOBJ([frexpl])
    fi
+   AC_SUBST([FREXPL_LIBM])
  ])
  
  dnl Test whether frexpl() works on finite numbers (this fails on AIX 5.1) and
*** modules/ldexpl      30 Mar 2007 00:19:34 -0000      1.2
--- modules/ldexpl      3 Apr 2007 23:12:44 -0000
***************
*** 19,24 ****
--- 19,27 ----
  Include:
  <math.h>
  
+ Link:
+ $(LDEXPL_LIBM)
+ 
  License:
  LGPL
  
*** modules/isnanl      25 Mar 2007 23:59:54 -0000      1.3
--- modules/isnanl      3 Apr 2007 23:12:44 -0000
***************
*** 22,27 ****
--- 22,30 ----
  # include "isnanl.h"
  #endif
  
+ Link:
+ $(ISNANL_LIBM)
+ 
  License:
  LGPL
  
*** modules/frexp       22 Mar 2007 03:59:38 -0000      1.1
--- modules/frexp       3 Apr 2007 23:12:44 -0000
***************
*** 18,23 ****
--- 18,26 ----
  Include:
  <math.h>
  
+ Link:
+ $(FREXP_LIBM)
+ 
  License:
  LGPL
  
*** modules/frexpl      25 Mar 2007 02:30:04 -0000      1.2
--- modules/frexpl      3 Apr 2007 23:12:44 -0000
***************
*** 20,25 ****
--- 20,28 ----
  Include:
  <math.h>
  
+ Link:
+ $(FREXPL_LIBM)
+ 
  License:
  LGPL
  





reply via email to

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