[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_CHECK_FUNCS(sigsetjmp)
From: |
Bruce Korb |
Subject: |
Re: AC_CHECK_FUNCS(sigsetjmp) |
Date: |
Thu, 27 Jul 2006 21:05:01 -0700 |
User-agent: |
Mozilla Thunderbird 1.0.7 (X11/20050923) |
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'])
Re: AC_CHECK_FUNCS(sigsetjmp), Paul Eggert, 2006/07/29
Re: AC_CHECK_FUNCS(sigsetjmp), Eric Blake, 2006/07/28
Re: AC_CHECK_FUNCS(sigsetjmp), Eric Blake, 2006/07/29