Add KRB5_SIGTYPE to define krb5_sigtype. Definition moved from
authorEzra Peisach <epeisach@mit.edu>
Wed, 21 Jun 1995 21:40:48 +0000 (21:40 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 21 Jun 1995 21:40:48 +0000 (21:40 +0000)
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

src/ChangeLog
src/aclocal.m4

index 23a4eeabade47d2db1c52fd06df94e0c6a7ba8b4..5d8de92e7833cbdeffa75d7b0afd404cb315abb3 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jun 21 17:38:34 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * aclocal.m4: Add KRB5_SIGTYPE (taken from include/krb5) so that
+               other applications may use defintion. 
+
 Wed Jun 21 14:57:55 1995    <tytso@rsx-11.mit.edu>
 
        * aclocal.m4: Removed extra blank lines and added "dnl" to the end
index eebe43ef51ef6eccb0565d55158debb3df4bca97..5951f9d8536c525a74701c8c4b7397f289592017 100644 (file)
@@ -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 <sys/types.h>
+#include <signal.h>
+#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,[