verify: new macro 'assume'
[gnulib.git] / modules / tsearch-tests
1 Files:
2 tests/test-tsearch.sh
3 tests/test-tsearch.c
4 tests/signature.h
5
6 Depends-on:
7 stdint
8
9 configure.ac:
10 TEST_TSEARCH_LIBM=
11 AC_LINK_IFELSE(
12   [AC_LANG_PROGRAM(
13      [[#ifndef __NO_MATH_INLINES
14        # define __NO_MATH_INLINES 1 /* for glibc */
15        #endif
16        #include <math.h>
17        double x;]],
18      [[x = log (x);]])],
19   [],
20   [TEST_TSEARCH_LIBM=-lm])
21 AC_SUBST([TEST_TSEARCH_LIBM])
22 AC_CHECK_FUNCS_ONCE([initstate])
23
24 Makefile.am:
25 TESTS += test-tsearch.sh
26 check_PROGRAMS += test-tsearch
27 test_tsearch_LDADD = $(LDADD) @TEST_TSEARCH_LIBM@