aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-07-12 13:48:46 +0000
committerMark Kettenis <kettenis@gnu.org>2001-07-12 13:48:46 +0000
commit2b2d558c73f962552edbc45102a0f73b2ab9276c (patch)
tree9889fb9e7db5cf947335e3f3dbb11cb1c6340558 /gdb/configure.in
parent63cf1c791c390aa9b9088b600922a39e3bcd943b (diff)
downloadgdb-2b2d558c73f962552edbc45102a0f73b2ab9276c.zip
gdb-2b2d558c73f962552edbc45102a0f73b2ab9276c.tar.gz
gdb-2b2d558c73f962552edbc45102a0f73b2ab9276c.tar.bz2
* configure.in: Add check for sigsetjmp.
* config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed. * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed. * configure, config.in: Regenerated.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 4368675..79ca230 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -135,6 +135,17 @@ AC_CHECK_FUNCS(setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
AC_FUNC_VFORK
AC_FUNC_ALLOCA
+# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
+# since sigsetjmp might only be defined as a macro.
+AC_CACHE_CHECK([for sigsetjmp], gdb_cv_func_sigsetjmp,
+[AC_TRY_COMPILE([
+#include <setjmp.h>
+], [sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);],
+gdb_cv_func_sigsetjmp=yes, gdb_cv_func_sigsetjmp=no)])
+if test $gdb_cv_func_sigsetjmp = yes; then
+ AC_DEFINE(HAVE_SIGSETJMP, 1, [Define if sigsetjmp is available. ])
+fi
+
# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
AC_CACHE_CHECK([for r_fs in struct reg], gdb_cv_struct_reg_r_fs,