I've changed AC_CHECK_LIB([m], [ceil]) to AC_CHECK_LIB([m], [main]) and it
works. according to conftest.c, libtool generate a small peace of code to
check whether the specific function exists or not. for AC_CHECK_LIB([m],
[main]), the code is:
main()
{
return main();
;
return 0;
}
call main itself in gcc will cause a crash, why it can works here?
On Thu, Jul 3, 2014 at 2:46 PM, Minxuan Zhuang <[email protected]> wrote:
> hi:
> I have a configure.ac file includes: AC_CHECK_LIB([m], [ceil])
> then I got this result: checking for ceil in -lm... no
> but a .c file contains ceil function works very well with or without -lm,
> why is that?
>
> libtool version: 2.4.2
> system: Ubuntu 13.04
>
_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool