forked from mirrors/tftp-hpa-google
autoconf: modernize and modularize
Use my modular m4 library used for other things as well; update autoconf macros to 2.71 standard. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
33051a296c
commit
fefaa2cc5c
35 changed files with 680 additions and 461 deletions
25
autoconf/m4/pa_sigsetjmp.m4
Normal file
25
autoconf/m4/pa_sigsetjmp.m4
Normal file
|
@ -0,0 +1,25 @@
|
|||
dnl --------------------------------------------------------------------------
|
||||
dnl PA_SIGSETJMP
|
||||
dnl
|
||||
dnl Do we have sigsetjmp/siglongjmp? (AC_CHECK_FUNCS doesn't seem to work
|
||||
dnl for these particular functions.)
|
||||
dnl --------------------------------------------------------------------------
|
||||
AC_DEFUN([PA_SIGSETJMP],
|
||||
[AC_MSG_CHECKING([for sigsetjmp])
|
||||
AC_LINK_IFELSE([AC_LANG_SOURCE(
|
||||
[
|
||||
AC_INCLUDES_DEFAULT
|
||||
#include <setjmp.h>
|
||||
|
||||
int main(void) {
|
||||
sigjmp_buf buf;
|
||||
if (sigsetjmp(buf,1))
|
||||
return 0;
|
||||
siglongjmp(buf,2);
|
||||
return 1;
|
||||
}
|
||||
])],
|
||||
[AC_MSG_RESULT([yes])
|
||||
AC_DEFINE([HAVE_SIGSETJMP], 1,
|
||||
[Define to 1 if your system has sigsetjmp/siglongjmp])],
|
||||
[AC_MSG_RESULT([no])])])
|
Loading…
Add table
Add a link
Reference in a new issue