Ticket #4155 (closed bug: fixed)
HAVE_LIBM test doesn't work
| Reported by: | donn | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 7.0.1 |
| Component: | Build System | Version: | 6.12.3 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Building GHC failed | Difficulty: | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
