annotate m4/check-math-lib.m4 @ 12518:b5e42ef33b49

update nearly all FSF copyright year lists to include 2009 The files named by the following are exempted: grep -v '^#' config/srclist.txt|grep -v '^$' \ | while read src dst; do test -f "$dst" && { echo "$dst"; continue; } test -d "$dst" || continue echo "$dst"/$(basename "$src") done > exempt git ls-files tests/unictype >> exempt In the remaining files, convert to all-interval notation if - there is already at least one year interval like 2000-2003 - the file is maintained by me - the file is in lib/uni*/, where that style already prevails Otherwise, use update-copyright's default.
author Jim Meyering <meyering@redhat.com>
date Mon, 28 Dec 2009 10:50:36 +0100
parents 56ceeef91c22
children c2cbabec01dd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11987
56ceeef91c22 Remove obsolete macros from several modules.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents: 9413
diff changeset
1 # check-math-lib.m4 serial 3
12518
b5e42ef33b49 update nearly all FSF copyright year lists to include 2009
Jim Meyering <meyering@redhat.com>
parents: 11987
diff changeset
2 dnl Copyright (C) 2007, 2009 Free Software Foundation, Inc.
9386
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
6 dnl
9413
9572edc3cc57 Check whether round* exist in libraries, not just whether they are declared.
Ben Pfaff <blp@cs.stanford.edu>
parents: 9386
diff changeset
7 dnl gl_CHECK_MATH_LIB (VARIABLE, EXPRESSION)
9386
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
8 dnl
9413
9572edc3cc57 Check whether round* exist in libraries, not just whether they are declared.
Ben Pfaff <blp@cs.stanford.edu>
parents: 9386
diff changeset
9 dnl Sets the shell VARIABLE according to the libraries needed by EXPRESSION
9572edc3cc57 Check whether round* exist in libraries, not just whether they are declared.
Ben Pfaff <blp@cs.stanford.edu>
parents: 9386
diff changeset
10 dnl to compile and link: to the empty string if no extra libraries are needed,
9572edc3cc57 Check whether round* exist in libraries, not just whether they are declared.
Ben Pfaff <blp@cs.stanford.edu>
parents: 9386
diff changeset
11 dnl to "-lm" if -lm is needed, or to "missing" if it does not compile and
9572edc3cc57 Check whether round* exist in libraries, not just whether they are declared.
Ben Pfaff <blp@cs.stanford.edu>
parents: 9386
diff changeset
12 dnl link either way.
9386
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
13 dnl
9413
9572edc3cc57 Check whether round* exist in libraries, not just whether they are declared.
Ben Pfaff <blp@cs.stanford.edu>
parents: 9386
diff changeset
14 dnl Example: gl_CHECK_MATH_LIB([ROUNDF_LIBM], [x = roundf (x);])
9386
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
15 AC_DEFUN([gl_CHECK_MATH_LIB], [
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
16 save_LIBS=$LIBS
9413
9572edc3cc57 Check whether round* exist in libraries, not just whether they are declared.
Ben Pfaff <blp@cs.stanford.edu>
parents: 9386
diff changeset
17 $1=missing
9386
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
18 for libm in "" "-lm"; do
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
19 LIBS="$save_LIBS $libm"
11987
56ceeef91c22 Remove obsolete macros from several modules.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents: 9413
diff changeset
20 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
56ceeef91c22 Remove obsolete macros from several modules.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents: 9413
diff changeset
21 #ifndef __NO_MATH_INLINES
56ceeef91c22 Remove obsolete macros from several modules.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents: 9413
diff changeset
22 # define __NO_MATH_INLINES 1 /* for glibc */
56ceeef91c22 Remove obsolete macros from several modules.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents: 9413
diff changeset
23 #endif
56ceeef91c22 Remove obsolete macros from several modules.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents: 9413
diff changeset
24 #include <math.h>
56ceeef91c22 Remove obsolete macros from several modules.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents: 9413
diff changeset
25 double x;]],
56ceeef91c22 Remove obsolete macros from several modules.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents: 9413
diff changeset
26 [$2])],
9386
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
27 [$1=$libm
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
28 break])
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
29 done
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
30 LIBS=$save_LIBS
54f12e03e281 Fix bugs in round modules reported by Bruno Haible.
Ben Pfaff <blp@cs.stanford.edu>
parents:
diff changeset
31 ])