diff options
Diffstat (limited to 'threadlib')
| -rw-r--r-- | threadlib/configure.ac | 11 | 
1 files changed, 10 insertions, 1 deletions
| diff --git a/threadlib/configure.ac b/threadlib/configure.ac index d125374..408c07c 100644 --- a/threadlib/configure.ac +++ b/threadlib/configure.ac @@ -76,7 +76,16 @@ AM_CONDITIONAL(HAVE_PTHREADS, test "$have_pthreads" != "no")  AC_SUBST(THREADLIB) -AC_CHECK_LIB(m, sqrt) +AC_TRY_COMPILE([ +#include <math.h> + +double x() +{ +    return sqrt(0); +}],[ +], [ +   LIBS='-lm' +])  if test "$GCC" = "yes"  then | 
