* 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.
This commit is contained in:
Mark Kettenis 2001-07-12 13:48:46 +00:00
parent 63cf1c791c
commit 2b2d558c73
6 changed files with 466 additions and 406 deletions

View file

@ -1,3 +1,10 @@
2001-07-12 Mark Kettenis <kettenis@gnu.org>
* 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.
2001-07-11 Elena Zannoni <ezannoni@redhat.com> 2001-07-11 Elena Zannoni <ezannoni@redhat.com>
* config/sh/tm-sh.h (struct gdbarch_tdep): Add * config/sh/tm-sh.h (struct gdbarch_tdep): Add

View file

@ -41,9 +41,6 @@
/* Define to `int' if <sys/types.h> doesn't define. */ /* Define to `int' if <sys/types.h> doesn't define. */
#undef pid_t #undef pid_t
/* Define if you need to in order for stat and other things to work. */
#undef _POSIX_SOURCE
/* Define as the return type of signal handlers (int or void). */ /* Define as the return type of signal handlers (int or void). */
#undef RETSIGTYPE #undef RETSIGTYPE
@ -421,6 +418,9 @@
/* Define as 1 if you have gettext and don't want to use GNU gettext. */ /* Define as 1 if you have gettext and don't want to use GNU gettext. */
#undef HAVE_GETTEXT #undef HAVE_GETTEXT
/* Define if sigsetjmp is available. */
#undef HAVE_SIGSETJMP
/* Define if malloc is not declared in system header files. */ /* Define if malloc is not declared in system header files. */
#undef NEED_DECLARATION_MALLOC #undef NEED_DECLARATION_MALLOC

View file

@ -32,9 +32,6 @@
#define HAVE_TERMIOS #define HAVE_TERMIOS
#define NEED_POSIX_SETPGID #define NEED_POSIX_SETPGID
/* Linux has sigsetjmp and siglongjmp */
#define HAVE_SIGSETJMP
/* Need R_OK etc, but USG isn't defined. */ /* Need R_OK etc, but USG isn't defined. */
#include <unistd.h> #include <unistd.h>

View file

@ -32,9 +32,6 @@
#define NEED_POSIX_SETPGID #define NEED_POSIX_SETPGID
/* SVR4 has sigsetjmp and siglongjmp */
#define HAVE_SIGSETJMP
/* We have to include these files now, so that GDB will not make /* We have to include these files now, so that GDB will not make
competing definitions in defs.h. */ competing definitions in defs.h. */
#include <limits.h> #include <limits.h>

842
gdb/configure vendored

File diff suppressed because it is too large Load diff

View file

@ -135,6 +135,17 @@ AC_CHECK_FUNCS(setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
AC_FUNC_VFORK AC_FUNC_VFORK
AC_FUNC_ALLOCA 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. # 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'. # 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, AC_CACHE_CHECK([for r_fs in struct reg], gdb_cv_struct_reg_r_fs,