support detection of signals.

This commit is contained in:
Vítor Santos Costa 2014-03-18 17:26:01 +00:00
parent 875546e36a
commit 39498868fb
2 changed files with 23 additions and 1 deletions

View File

@ -607,6 +607,9 @@
/* Define to 1 if you have the `sigaction' function. */
#undef HAVE_SIGACTION
/* Unix SIGFPE */
#undef HAVE_SIGFPE
/* Define to 1 if you have the `siggetmask' function. */
#undef HAVE_SIGGETMASK
@ -826,6 +829,9 @@
/* Define to 1 if you have the `wcsdup' function. */
#undef HAVE_WCSDUP
/* Define to 1 if you have the `wcsnlen' function. */
#undef HAVE_WCSNLEN
/* Define to 1 if you have the <wctype.h> header file. */
#undef HAVE_WCTYPE_H

View File

@ -1507,6 +1507,22 @@ then
AC_DEFINE(HAVE_SIGINFO,1, [Unix SIGINFO])
fi
dnl check for sigfpe
AC_MSG_CHECKING(for sigfpe)
AC_CACHE_VAL(yap_cv_sigfpe,[
AC_TRY_COMPILE(
#include <signal.h>
#include <stdio.h>
,
printf("SIGFPE value is %d\n", SA_SIGFPE);
,
yap_cv_sigfpe=yes,yap_cv_sigfpe=no)])
AC_MSG_RESULT($yap_cv_sigfpe)
if test "$yap_cv_sigfpe" = yes
then
AC_DEFINE(HAVE_SIGFPE,1, [Unix SIGFPE])
fi
AC_MSG_CHECKING("variable timezone in tzset")
AC_TRY_RUN(
[ #include <time.h>
@ -1589,7 +1605,7 @@ AC_CHECK_FUNCS(setitimer setsid setlinebuf sigaction)
AC_CHECK_FUNCS(siggetmask siginterrupt)
AC_CHECK_FUNCS(signal sigprocmask socket srand srandom stat)
AC_CHECK_FUNCS(strchr strerror stricmp strlwr strncat strncpy strtod)
AC_CHECK_FUNCS(time times tmpnam usleep utime vsnprintf wcsdup)
AC_CHECK_FUNCS(time times tmpnam usleep utime vsnprintf wcsdup wcsnlen)
# android does not really have locale stuff..
case "$host" in