From: Ezra Peisach Date: Wed, 21 Jun 1995 21:40:48 +0000 (+0000) Subject: Add KRB5_SIGTYPE to define krb5_sigtype. Definition moved from X-Git-Tag: krb5-1.0-beta6~1695 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8b9cdb8881af2f08888a6c5980cf2ecb8d9e68d2;p=krb5.git Add KRB5_SIGTYPE to define krb5_sigtype. Definition moved from include/krb5/configure.in so that appl/bsd may use it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6118 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/ChangeLog b/src/ChangeLog index 23a4eeaba..5d8de92e7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +Wed Jun 21 17:38:34 1995 Ezra Peisach + + * aclocal.m4: Add KRB5_SIGTYPE (taken from include/krb5) so that + other applications may use defintion. + Wed Jun 21 14:57:55 1995 * aclocal.m4: Removed extra blank lines and added "dnl" to the end diff --git a/src/aclocal.m4 b/src/aclocal.m4 index eebe43ef5..5951f9d85 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -312,6 +312,31 @@ if test $krb5_cv_type_sigset_t = yes; then fi )])dnl dnl +dnl check for signal type +dnl +dnl AC_RETSIGTYPE isn't quite right, but almost. +define(KRB5_SIGTYPE, +AC_MSG_CHECKING([POSIX signal handlers]) +AC_CACHE_VAL(krb5_cv_has_posix_signals, +[AC_TRY_COMPILE( +[#include +#include +#ifdef signal +#undef signal +#endif +extern void (*signal ()) ();], [], +krb5_cv_has_posix_signals=yes, krb5_cv_has_posix_signals=no)]) +AC_MSG_RESULT($krb5_cv_has_posix_signals) +if test $krb5_cv_has_posix_signals = yes; then + AC_DEFINE(krb5_sigtype, void) AC_DEFINE(POSIX_SIGTYPE) +else + if test $ac_cv_type_signal = void; then + AC_DEFINE(krb5_sigtype, void) + else + AC_DEFINE(krb5_sigtype, int) + fi +fi)dnl +dnl dnl check for POSIX setjmp/longjmp -- CHECK_SETJMP dnl define(CHECK_SETJMP,[