History

acinclude.m4 : Add AC_CHECK_SIGNAL macro.

Erik de Castro Lopo committed 19 years ago

Commit c824b461 parent f14fc1f1 file · +40 −8Browse files

Unified · Split

acinclude.m4+40−8
@@ -156,6 +156,10 @@ else · 155 unmodified lines
156156
157157 )# AC_C_FIND_ENDIAN
158158
159+
160+
161+
162+
159163 dnl @synopsis AC_C99_FUNC_LRINT
160164 dnl
161165 dnl Check whether C99's lrint function is available.
@@ -192,6 +196,11 @@ if test "$ac_cv_c99_lrint" = yes; then · 30 unmodified lines
192196 [Define if you have C99's lrint function.])
193197 fi
194198 ])# AC_C99_FUNC_LRINT
199+
200+
201+
202+
203+
195204 dnl @synopsis AC_C99_FUNC_LRINTF
196205 dnl
197206 dnl Check whether C99's lrintf function is available.
@@ -204,6 +213,7 @@ dnl and this permission notice appear in all copies. No representations are · 6 unmodified lines
204213 dnl made about the suitability of this software for any purpose. It is
205214 dnl provided "as is" without express or implied warranty.
206215 dnl
216+
207217 AC_DEFUN([AC_C99_FUNC_LRINTF],
208218 [AC_CACHE_CHECK(for lrintf,
209219 ac_cv_c99_lrintf,
@@ -228,6 +238,11 @@ if test "$ac_cv_c99_lrintf" = yes; then · 18 unmodified lines
228238 [Define if you have C99's lrintf function.])
229239 fi
230240 ])# AC_C99_FUNC_LRINTF
241+
242+
243+
244+
245+
231246 dnl @synopsis AC_C99_FUNC_LLRINT
232247 dnl
233248 dnl Check whether C99's llrint function is available.
@@ -268,6 +283,8 @@ fi · 34 unmodified lines
268283
269284
270285
286+
287+
271288 dnl @synopsis AC_C_CLIP_MODE
272289 dnl
273290 dnl Determine the clipping mode when converting float to int.
@@ -280,8 +297,6 @@ dnl and this permission notice appear in all copies. No representations are · 6 unmodified lines
280297 dnl made about the suitability of this software for any purpose. It is
281298 dnl provided "as is" without express or implied warranty.
282299
283−
284−
285300 dnl Find the clipping mode in the following way:
286301 dnl 1) If we are not cross compiling test it.
287302 dnl 2) IF we are cross compiling, assume that clipping isn't done correctly.
@@ -390,13 +405,30 @@ case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in · 102 unmodified lines
390405
391406
392407
393−ifelse(dnl
394408
395− Do not edit or modify anything in this comment block.
396− The arch-tag line is a file identity tag for the GNU Arch
397− revision control system.
409+dnl @synopsis AC_CHECK_SIGNAL(SIGNAME)
410+dnl
411+dnl
412+dnl @category C
413+dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
414+dnl @version 1.0 Jul 07 2007
415+
416+AC_DEFUN([AC_CHECK_SIGNAL],
417+[AC_CACHE_CHECK(for $1,
418+ ac_cv_signal_$1,
419+[
420+AC_TRY_LINK([
421+#include <signal.h>
422+
423+], signal($1, SIG_DFL) ;, ac_cv_signal_$1=yes, ac_cv_signal_$1=no)
424+
425+])
398426
399− arch-tag: 6db7c287-8971-4074-a193-468446194fd0
427+if test "$ac_cv_signal_$1" = yes; then
428+ AC_DEFINE(HAVE_$1, 1,
429+ [Define if you have signal $1.])
430+fi
431+])# AC_CHECK_SIGNAL
400432
401−)dnl
402433
434+## AC_CHECK_SIGNALS

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t