Bugzilla – Bug 313206
configure "detects" the nonexistent signbit function
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by recht@netbsd.org 2003-11-23 17:39:28 MST ---- Description of Problem: (with the daily version of 23/Nov/2003) configure "detects" the nonexistent signbit function. gcc prints a "implicit declaration" warning, but since configure doesn't tries to link, it "thinks" the OS has the signbit function. Steps to reproduce the problem: Run configure on an OS that doesn't have signbit. (eg. NetBSD/current). Actual Results: Final linking fails, because signbit isn't in libc/libm. Expected Results: mono has it's own implementation. It should use it. How often does this happen? Every time. Additional Information: This patch fixes the problem: (Tested on NetBSD/current) --- configure.in.orig 2003-11-23 13:01:06.000000000 +0100 +++ configure.in 2003-11-23 23:24:23.000000000 +0100 @@ -652,7 +652,7 @@ dnl *** Check for signbit *** dnl ************************* AC_MSG_CHECKING(for signbit) - AC_TRY_COMPILE([#include <math.h>], [ + AC_TRY_LINK([#include <math.h>], [ int s = signbit(1.0); ], [ AC_MSG_RESULT(yes) ---- Additional Comments From vargaz@freemail.hu 2003-11-24 04:09:07 MST ---- Fixed in CVS. Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>NetBSD-current</cf_op_sys_details> Unknown operating system other. Setting to default OS "Other".