X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Ftsearch-tests;h=ca3264926141d93330618ce2f2108a0685c0347c;hb=46f5f314f34a08c9305758482d7d2fdb0e999d09;hp=0c4de8b7ccc55ef3e6b7820d1f5dc6a9743a0d18;hpb=368e66277a1fdb07a508f9c3ff5d5669e4b4e838;p=gnulib.git diff --git a/modules/tsearch-tests b/modules/tsearch-tests index 0c4de8b7c..ca3264926 100644 --- a/modules/tsearch-tests +++ b/modules/tsearch-tests @@ -8,13 +8,16 @@ stdint configure.ac: TEST_TSEARCH_LIBM= -AC_TRY_LINK([ - #ifndef __NO_MATH_INLINES - # define __NO_MATH_INLINES 1 /* for glibc */ - #endif - #include - double x;], - [x = log (x);], , [TEST_TSEARCH_LIBM=-lm]) +AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#ifndef __NO_MATH_INLINES + # define __NO_MATH_INLINES 1 /* for glibc */ + #endif + #include + double x;]], + [[x = log (x);]])], + [], + [TEST_TSEARCH_LIBM=-lm]) AC_SUBST([TEST_TSEARCH_LIBM]) AC_CHECK_FUNCS_ONCE([initstate])