view modules/tsearch-tests @ 15187:8f6c698d0789

crc: Move AC_LIBOBJ invocations to module description. * m4/crc.m4: Remove file. * modules/crc (Files): Remove it. (configure.ac): Remove gl_CRC call. (Makefile.am): Augment lib_SOURCES.
author Bruno Haible <bruno@clisp.org>
date Mon, 23 May 2011 22:51:09 +0200
parents 1e26f884665f
children
line wrap: on
line source

Files:
tests/test-tsearch.sh
tests/test-tsearch.c
tests/signature.h

Depends-on:
stdint

configure.ac:
TEST_TSEARCH_LIBM=
AC_LINK_IFELSE(
  [AC_LANG_PROGRAM(
     [[#ifndef __NO_MATH_INLINES
       # define __NO_MATH_INLINES 1 /* for glibc */
       #endif
       #include <math.h>
       double x;]],
     [[x = log (x);]])],
  [],
  [TEST_TSEARCH_LIBM=-lm])
AC_SUBST([TEST_TSEARCH_LIBM])
AC_CHECK_FUNCS_ONCE([initstate])

Makefile.am:
TESTS += test-tsearch.sh
check_PROGRAMS += test-tsearch
test_tsearch_LDADD = $(LDADD) @TEST_TSEARCH_LIBM@