aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-11-11 07:35:57 -0700
committerTom Tromey <tromey@redhat.com>2013-11-11 07:35:57 -0700
commit99c1d4518bf2ff230eaa6ee54c08e85f2d6c008e (patch)
treedd357b44c69bcd6b68cd3e46f205173cb3f5ffbb /gdb/configure
parent8ca5801b3a05240125a79cd5ba090c98dcc584f8 (diff)
downloadgdb-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')
-rwxr-xr-xgdb/configure7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/configure b/gdb/configure
index 1728d09..8b20a13 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -12454,10 +12454,15 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
$as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
fi
-if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
+if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
+ ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
+if test "x$ac_cv_func_syscall" = x""yes; then :
$as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
+
+fi
+
fi
ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>