Commit | Line | Data |
---|---|---|
0d62e5e8 | 1 | dnl gdb/gdbserver/configure.in uses BFD_HAVE_SYS_PROCFS_TYPE. |
4d0b984b | 2 | m4_include(../../bfd/bfd.m4) |
0d62e5e8 | 3 | |
4d0b984b | 4 | m4_include(../acx_configure_dir.m4) |
c971b7fa | 5 | |
8f13a3ce | 6 | # This gets AM_GDB_WARNINGS. |
4d0b984b | 7 | m4_include(../warning.m4) |
8f13a3ce | 8 | |
fdc59709 | 9 | dnl This gets autoconf bugfixes |
4d0b984b | 10 | m4_include(../../config/override.m4) |
fdc59709 | 11 | |
c16158bc | 12 | dnl For ACX_PKGVERSION and ACX_BUGURL. |
4d0b984b | 13 | m4_include(../../config/acx.m4) |
c16158bc | 14 | |
61c125b9 TT |
15 | m4_include(../../config/depstand.m4) |
16 | m4_include(../../config/lead-dot.m4) | |
17 | ||
3266f10b TT |
18 | dnl codeset.m4 is needed for common.m4, but not for |
19 | dnl anything else in gdbserver. | |
20 | m4_include(../../config/codeset.m4) | |
268a13a5 | 21 | m4_include(../gdbsupport/common.m4) |
3266f10b | 22 | |
07697489 PA |
23 | dnl For libiberty_INIT. |
24 | m4_include(../libiberty.m4) | |
25 | ||
eb7aa561 PA |
26 | dnl For GDB_AC_PTRACE. |
27 | m4_include(../ptrace.m4) | |
28 | ||
0bcda685 PA |
29 | m4_include(../ax_cxx_compile_stdcxx.m4) |
30 | ||
8ecfd7bd SDJ |
31 | dnl For GDB_AC_SELFTEST. |
32 | m4_include(../selftest.m4) | |
33 | ||
18f5fd81 TJB |
34 | dnl Check for existence of a type $1 in libthread_db.h |
35 | dnl Based on BFD_HAVE_SYS_PROCFS_TYPE in bfd/bfd.m4. | |
36 | ||
37 | AC_DEFUN([GDBSERVER_HAVE_THREAD_DB_TYPE], | |
38 | [AC_MSG_CHECKING([for $1 in thread_db.h]) | |
39 | AC_CACHE_VAL(gdbserver_cv_have_thread_db_type_$1, | |
40 | [AC_TRY_COMPILE([ | |
41 | #include <thread_db.h>], | |
42 | [$1 avar], | |
43 | gdbserver_cv_have_thread_db_type_$1=yes, | |
44 | gdbserver_cv_have_thread_db_type_$1=no | |
45 | )]) | |
46 | if test $gdbserver_cv_have_thread_db_type_$1 = yes; then | |
47 | AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z]), 1, | |
48 | [Define if <thread_db.h> has $1.]) | |
49 | fi | |
50 | AC_MSG_RESULT($gdbserver_cv_have_thread_db_type_$1) | |
51 | ]) |