Skip to content

HAVE_LIBM test doesn't work

The AC_SEARCH_LIBS test in configure.ac will always set HAVE_LIBM=1, whether the platform supports -lm or not. It's really testing whether atan works, and it will indeed normally work -- the question is just whether it requires an explicit -lm. The mechanics of this can be seen in the generated configure script: look for "none required".

The preceding test for HAVE_MINGWEX does work, and of course that formula works for HAVE_LIBM too.

Trac metadata
Trac field Value
Version 6.12.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Other
Architecture x86
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information