1 dnl gdb/gdbserver/configure.in uses BFD_HAVE_SYS_PROCFS_TYPE.
2 m4_include(../bfd/bfd.m4)
4 dnl This gets AM_GDB_WARNINGS.
5 m4_include(../gdbsupport/warning.m4)
7 dnl This gets autoconf bugfixes
8 m4_include(../config/override.m4)
10 dnl For ACX_PKGVERSION and ACX_BUGURL.
11 m4_include(../config/acx.m4)
13 m4_include(../config/depstand.m4)
14 m4_include(../config/lead-dot.m4)
16 dnl Needed for common.m4
17 dnl For AC_LIB_HAVE_LINKFLAGS.
18 m4_include(../config/lib-ld.m4)
19 m4_include(../config/lib-prefix.m4)
20 m4_include(../config/lib-link.m4)
21 dnl codeset.m4 is needed for common.m4, but not for
22 dnl anything else in gdbserver.
23 m4_include(../config/codeset.m4)
24 m4_include(../gdbsupport/common.m4)
26 dnl For libiberty_INIT.
27 m4_include(../gdb/libiberty.m4)
29 dnl For GDB_AC_PTRACE.
30 m4_include(../gdbsupport/ptrace.m4)
32 m4_include(../gdb/ax_cxx_compile_stdcxx.m4)
34 dnl For GDB_AC_SELFTEST.
35 m4_include(../gdbsupport/selftest.m4)
37 m4_include([../config/ax_pthread.m4])
39 dnl For ZW_GNU_GETTEXT_SISTER_DIR.
40 m4_include(../config/gettext-sister.m4)
42 dnl Check for existence of a type $1 in libthread_db.h
43 dnl Based on BFD_HAVE_SYS_PROCFS_TYPE in bfd/bfd.m4.
46 [GDBSERVER_HAVE_THREAD_DB_TYPE],
47 [AC_MSG_CHECKING([for $1 in thread_db.h])
49 [gdbserver_cv_have_thread_db_type_$1],
51 [AC_LANG_PROGRAM([#include <thread_db.h>], [$1 avar])],
52 [gdbserver_cv_have_thread_db_type_$1=yes],
53 [gdbserver_cv_have_thread_db_type_$1=no]
56 if test $gdbserver_cv_have_thread_db_type_$1 = yes; then
57 AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z]), 1,
58 [Define if <thread_db.h> has $1.])
60 AC_MSG_RESULT($gdbserver_cv_have_thread_db_type_$1)]