make remote_protocol_features "const"
[deliverable/binutils-gdb.git] / gdb / gdbserver / acinclude.m4
1 dnl gdb/gdbserver/configure.in uses BFD_HAVE_SYS_PROCFS_TYPE.
2 sinclude(../../bfd/bfd.m4)
3
4 sinclude(../acx_configure_dir.m4)
5
6 # This gets GDB_AC_LIBMCHECK.
7 sinclude(../libmcheck.m4)
8
9 dnl This gets autoconf bugfixes
10 sinclude(../../config/override.m4)
11
12 dnl For ACX_PKGVERSION and ACX_BUGURL.
13 sinclude(../../config/acx.m4)
14
15 m4_include(../../config/depstand.m4)
16 m4_include(../../config/lead-dot.m4)
17
18 dnl Check for existence of a type $1 in libthread_db.h
19 dnl Based on BFD_HAVE_SYS_PROCFS_TYPE in bfd/bfd.m4.
20
21 AC_DEFUN([GDBSERVER_HAVE_THREAD_DB_TYPE],
22 [AC_MSG_CHECKING([for $1 in thread_db.h])
23 AC_CACHE_VAL(gdbserver_cv_have_thread_db_type_$1,
24 [AC_TRY_COMPILE([
25 #include <thread_db.h>],
26 [$1 avar],
27 gdbserver_cv_have_thread_db_type_$1=yes,
28 gdbserver_cv_have_thread_db_type_$1=no
29 )])
30 if test $gdbserver_cv_have_thread_db_type_$1 = yes; then
31 AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z]), 1,
32 [Define if <thread_db.h> has $1.])
33 fi
34 AC_MSG_RESULT($gdbserver_cv_have_thread_db_type_$1)
35 ])
This page took 0.030189 seconds and 4 git commands to generate.