diff options
author | Tom Tromey <tromey@redhat.com> | 2013-11-11 07:35:57 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-11-11 07:35:57 -0700 |
commit | 99c1d4518bf2ff230eaa6ee54c08e85f2d6c008e (patch) | |
tree | dd357b44c69bcd6b68cd3e46f205173cb3f5ffbb /gdb/configure.ac | |
parent | 8ca5801b3a05240125a79cd5ba090c98dcc584f8 (diff) | |
download | gdb-99c1d4518bf2ff230eaa6ee54c08e85f2d6c008e.zip gdb-99c1d4518bf2ff230eaa6ee54c08e85f2d6c008e.tar.gz gdb-99c1d4518bf2ff230eaa6ee54c08e85f2d6c008e.tar.bz2 |
fix "tkill" check
An earlier patch removed the check for "syscall" since the results
were not used in the C code. However, the result was used, via the
cache variable, elsewhere in configure.
This patch fixes the problem by checking for "syscall" at the point at
which HAVE_TKILL_SYSCALL is defined.
2013-11-11 Tom Tromey <tromey@redhat.com>
* config.in, configure: Rebuild.
* configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r-- | gdb/configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index 34908ab..88db73a 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1736,8 +1736,10 @@ if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then ) fi dnl See if we can issue tkill syscall. -if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then - AC_DEFINE(HAVE_TKILL_SYSCALL, 1, [Define if you support the tkill syscall.]) +if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then + AC_CHECK_FUNC(syscall, + AC_DEFINE(HAVE_TKILL_SYSCALL, 1, [Define if you support the tkill syscall.]) + ) fi dnl Check if we can disable the virtual address space randomization. |