Index: configure.in =================================================================== RCS file: /cvsroot/gcl/gcl/configure.in,v retrieving revision 1.149 diff -u -r1.149 configure.in --- configure.in 24 Mar 2004 20:53:52 -0000 1.149 +++ configure.in 27 Mar 2004 18:59:17 -0000 @@ -1344,22 +1344,23 @@ #if test $use = "386-linux" ; then AC_CHECK_HEADERS(asm/sigcontext.h) AC_CHECK_HEADERS(asm/signal.h) + AC_MSG_CHECKING([for sigcontext_struct...]) AC_TRY_COMPILE([#include - long code; - ], + ], [ - void *p = ((void *)(((struct sigcontext_struct *)(&code)))); + struct sigcontext_struct foo; ], [ sigcontext_struct_works=1; AC_DEFINE(SIGNAL_H_HAS_SIGCONTEXT) - AC_MSG_RESULT("sigcontext in signal.h") + AC_MSG_RESULT(sigcontext_struct in signal.h) ], [sigcontext_struct_works=0; - AC_MSG_RESULT("sigcontext NOT in signal.h")] + AC_MSG_RESULT(sigcontext_struct NOT in signal.h)] ) if test "$sigcontext_struct_works" = 0 ; then + AC_MSG_CHECKING([for sigcontext...]) AC_TRY_COMPILE([#include #ifdef HAVE_ASM_SIGCONTEXT_H #include @@ -1367,17 +1368,17 @@ #ifdef HAVE_ASM_SIGNAL_H #include #endif - long code; ], [ - void *p = ((void *)(((struct sigcontext *)(&code)))); + struct sigcontext foo; ], [ sigcontext_works=1 ; AC_DEFINE(HAVE_SIGCONTEXT) - AC_MSG_RESULT("use struct sigcontext") + AC_MSG_RESULT(use struct sigcontext) ], [ + AC_MSG_RESULT(use struct sigcontext_struct) sigcontext_works=0 ; ])