[MPlayer-dev-eng] SSE/SSE2 detection leaves coredump file
Steven M. Schultz
sms at 2BSD.COM
Fri May 17 08:05:18 CEST 2002
Hi!
On systems without SSE/SSE2 kernel support the ./configure test
for those instructions leaves a coredump behind (as a result of the
illegal instruction).
The small patch below catches the SIGILL signal and exits with a
status of 1 but without a core file being created.
Cheers,
Steven Schultz
sms at 2bsd.com
----------------------cut here---------------------
--- configure.dist Wed May 15 10:05:53 2002
+++ configure Thu May 16 23:01:12 2002
@@ -722,7 +722,11 @@
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
More information about the MPlayer-dev-eng
mailing list