ref: c824b46ff5fd91a9c4cae31d7f348a1b249e2fa7
parent: f14fc1f0fe5d516653a0a5cd2f4ae189ff146049
author: Erik de Castro Lopo <erikd@mega-nerd.com>
date: Sat Jul 7 05:15:25 EDT 2007
acinclude.m4 : Add AC_CHECK_SIGNAL macro.
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -156,6 +156,10 @@
)# AC_C_FIND_ENDIAN
+
+
+
+
dnl @synopsis AC_C99_FUNC_LRINT
dnl
dnl Check whether C99's lrint function is available.
@@ -192,6 +196,11 @@
[Define if you have C99's lrint function.])
fi
])# AC_C99_FUNC_LRINT
+
+
+
+
+
dnl @synopsis AC_C99_FUNC_LRINTF
dnl
dnl Check whether C99's lrintf function is available.
@@ -204,6 +213,7 @@
dnl made about the suitability of this software for any purpose. It is
dnl provided "as is" without express or implied warranty.
dnl
+
AC_DEFUN([AC_C99_FUNC_LRINTF],
[AC_CACHE_CHECK(for lrintf,
ac_cv_c99_lrintf,
@@ -228,6 +238,11 @@
[Define if you have C99's lrintf function.])
fi
])# AC_C99_FUNC_LRINTF
+
+
+
+
+
dnl @synopsis AC_C99_FUNC_LLRINT
dnl
dnl Check whether C99's llrint function is available.
@@ -268,6 +283,8 @@
+
+
dnl @synopsis AC_C_CLIP_MODE
dnl
dnl Determine the clipping mode when converting float to int.
@@ -280,8 +297,6 @@
dnl made about the suitability of this software for any purpose. It is
dnl provided "as is" without express or implied warranty.
-
-
dnl Find the clipping mode in the following way:
dnl 1) If we are not cross compiling test it.
dnl 2) IF we are cross compiling, assume that clipping isn't done correctly.
@@ -390,13 +405,30 @@
-ifelse(dnl
- Do not edit or modify anything in this comment block.
- The arch-tag line is a file identity tag for the GNU Arch
- revision control system.
+dnl @synopsis AC_CHECK_SIGNAL(SIGNAME)
+dnl
+dnl
+dnl @category C
+dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
+dnl @version 1.0 Jul 07 2007
- arch-tag: 6db7c287-8971-4074-a193-468446194fd0
+AC_DEFUN([AC_CHECK_SIGNAL],
+[AC_CACHE_CHECK(for $1,
+ ac_cv_signal_$1,
+[
+AC_TRY_LINK([
+#include <signal.h>
-)dnl
+], signal($1, SIG_DFL) ;, ac_cv_signal_$1=yes, ac_cv_signal_$1=no)
+])
+
+if test "$ac_cv_signal_$1" = yes; then
+ AC_DEFINE(HAVE_$1, 1,
+ [Define if you have signal $1.])
+fi
+])# AC_CHECK_SIGNAL
+
+
+## AC_CHECK_SIGNALS