Eric Blake wrote:
"not required to be a normal function" implies that it is
common knowledge that everybody knows you have to roll your
own AC macro?
Have you tried AC_CHECK_DECLS instead? You really are checking
whether sigsetjmp is declared and you can compile with it, not
whether it is a function and you can link with it.
Like this?
AC_CHECK_DECLS([setjmp, sigsetjmp],, [setjmp.h])
configure:28593: result: no
configure:28609: checking whether sigsetjmp is declared
configure:28633: /local/bin/gcc -c -g conftest.c >&5
conftest.c: In function 'main':
conftest.c:141: error: 'sigsetjmp' undeclared (first use in this function)
conftest.c:141: error: (Each undeclared identifier is reported only once
conftest.c:141: error: for each function it appears in.)
configure:28639: $? = 1
configure: failed program was:
[[[..........]]]
| int
| main ()
| {
| #ifndef sigsetjmp
| char *p = (char *) sigsetjmp;
| #endif
|
| ;
| return 0;
| }
I am guessing on how I am supposed to use the macro. The autoconf
manual does not give an example on what is meant with the
``[ INCLUDES = `default-includes']'' thing. e.g.:
- Macro: AC_CHECK_DECLS (SYMBOLS, [ACTION-IF-FOUND],
[ACTION-IF-NOT-FOUND], [INCLUDES = `default-includes'])
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf