changeset 6129:b6de6a3e682d

catching SIGILL instead of dumping core - patch by Steven M. Schultz <sms@2BSD.COM>
author arpi
date Mon, 20 May 2002 00:01:14 +0000
parents 6a7e3b69e4cf
children e9a309486f18
files configure
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun May 19 23:50:32 2002 +0000
+++ b/configure	Mon May 20 00:01:14 2002 +0000
@@ -722,7 +722,12 @@
     if test "$1" = yes ; then
       echocheck "kernel support of $2"
       cat > $TMPC <<EOF
-int main(void){__asm__ __volatile__ ("$3":::"memory");return(0);}
+#include <signal.h>
+void catch() { exit(1); }
+int main(void){
+  signal(SIGILL, catch);
+  __asm__ __volatile__ ("$3":::"memory");return(0);
+}
 EOF
 
       if ( cc_check && $TMPO ) > /dev/null 2>&1 ; then