Mercurial > gnulib
annotate modules/tsearch-tests @ 40231:9b3c79fdfe0b
strtod: fix clash with strtold
Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
* lib/strtod.c (compute_minus_zero, minus_zero):
Simplify by remving the macro / external variable,
and having just a function. User changed. This avoids
the need for an external variable that might clash.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 11 Mar 2019 16:40:29 -0700 |
parents | bee77692eea2 |
children |
rev | line source |
---|---|
8534 | 1 Files: |
2 tests/test-tsearch.sh | |
3 tests/test-tsearch.c | |
12493 | 4 tests/signature.h |
18933
bee77692eea2
argp, tsearch tests: Fix file list.
Bruno Haible <bruno@clisp.org>
parents:
13578
diff
changeset
|
5 tests/macros.h |
8534 | 6 |
7 Depends-on: | |
8 stdint | |
9 | |
10 configure.ac: | |
11 TEST_TSEARCH_LIBM= | |
13578
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
12775
diff
changeset
|
12 AC_LINK_IFELSE( |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
12775
diff
changeset
|
13 [AC_LANG_PROGRAM( |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
12775
diff
changeset
|
14 [[#ifndef __NO_MATH_INLINES |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
12775
diff
changeset
|
15 # define __NO_MATH_INLINES 1 /* for glibc */ |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
12775
diff
changeset
|
16 #endif |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
12775
diff
changeset
|
17 #include <math.h> |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
12775
diff
changeset
|
18 double x;]], |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
12775
diff
changeset
|
19 [[x = log (x);]])], |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
12775
diff
changeset
|
20 [], |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
12775
diff
changeset
|
21 [TEST_TSEARCH_LIBM=-lm]) |
8534 | 22 AC_SUBST([TEST_TSEARCH_LIBM]) |
12166
d943ffe46edc
use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
Jim Meyering <meyering@redhat.com>
parents:
9943
diff
changeset
|
23 AC_CHECK_FUNCS_ONCE([initstate]) |
8534 | 24 |
25 Makefile.am: | |
26 TESTS += test-tsearch.sh | |
27 check_PROGRAMS += test-tsearch | |
8698
ae4587be462b
Fix --with-tests compilation on cygwin.
Eric Blake <ebb9@byu.net>
parents:
8534
diff
changeset
|
28 test_tsearch_LDADD = $(LDADD) @TEST_TSEARCH_LIBM@ |