2 dnl check for signal type
4 dnl AC_RETSIGTYPE isn't quite right, but almost.
7 AC_MSG_CHECKING([POSIX signal handlers])
8 AC_CACHE_VAL(cv_has_posix_signals,
10 [#include <sys/types.h>
15 extern void (*signal ()) ();], [],
16 cv_has_posix_signals=yes, cv_has_posix_signals=no)])
17 AC_MSG_RESULT($cv_has_posix_signals)
18 if test $cv_has_posix_signals = yes; then
19 AC_DEFINE(RETSIGTYPE, void) AC_DEFINE(POSIX_SIGTYPE)
21 if test $ac_cv_type_signal = void; then
22 AC_DEFINE(RETSIGTYPE, void)
24 AC_DEFINE(RETSIGTYPE, int)