2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
[deliverable/binutils-gdb.git] / gdb / gdbserver / acinclude.m4
CommitLineData
0d62e5e8 1dnl gdb/gdbserver/configure.in uses BFD_HAVE_SYS_PROCFS_TYPE.
dcdb98d2 2sinclude(../../bfd/bfd.m4)
0d62e5e8 3
fdc59709
PB
4dnl This gets autoconf bugfixes
5sinclude(../../config/override.m4)
6
c16158bc
JM
7dnl For ACX_PKGVERSION and ACX_BUGURL.
8sinclude(../../config/acx.m4)
9
0d62e5e8
DJ
10AC_DEFUN([SRV_CHECK_THREAD_DB],
11[AC_CACHE_CHECK([for libthread_db],[srv_cv_thread_db],
12 [old_LIBS="$LIBS"
13 LIBS="$LIBS -lthread_db"
14 AC_TRY_LINK(
15 [void ps_pglobal_lookup() {}
16 void ps_pdread() {}
17 void ps_pdwrite() {}
18 void ps_lgetregs() {}
19 void ps_lsetregs() {}
20 void ps_lgetfpregs() {}
21 void ps_lsetfpregs() {}
434c4c77 22 void ps_get_thread_area() {}
0d62e5e8
DJ
23 void ps_getpid() {}],
24 [td_ta_new();],
25 [srv_cv_thread_db="-lthread_db"],
26 [srv_cv_thread_db=no
27
28 if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then
29 thread_db="/lib/libthread_db.so.1"
30 else
31 thread_db='$prefix/lib/libthread_db.so.1'
32 fi
33 LIBS="$old_LIBS `eval echo "$thread_db"`"
34 AC_TRY_LINK(
35 [void ps_pglobal_lookup() {}
36 void ps_pdread() {}
37 void ps_pdwrite() {}
38 void ps_lgetregs() {}
39 void ps_lsetregs() {}
40 void ps_lgetfpregs() {}
41 void ps_lsetfpregs() {}
434c4c77 42 void ps_get_thread_area() {}
0d62e5e8
DJ
43 void ps_getpid() {}],
44 [td_ta_new();],
45 [srv_cv_thread_db="$thread_db"],
46 [srv_cv_thread_db=no])
3db0444b 47 ])
0d62e5e8 48 LIBS="$old_LIBS"
3db0444b 49])])
dae5f5cf
DJ
50
51AC_DEFUN([SRV_CHECK_TLS_GET_ADDR],
52[AC_CACHE_CHECK([for thread_db_tls_get_addr],[srv_cv_tls_get_addr],
53 [old_LIBS="$LIBS"
54 LIBS="$LIBS $srv_cv_thread_db"
55 AC_TRY_LINK(
56 [void ps_pglobal_lookup() {}
57 void ps_pdread() {}
58 void ps_pdwrite() {}
59 void ps_lgetregs() {}
60 void ps_lsetregs() {}
61 void ps_lgetfpregs() {}
62 void ps_lsetfpregs() {}
63 void ps_get_thread_area() {}
64 void ps_getpid() {}],
65 [td_thr_tls_get_addr();],
66 [srv_cv_tls_get_addr=yes],
67 [srv_cv_tls_get_addr=no])
68 LIBS="$old_LIBS"
69])])
This page took 0.504374 seconds and 4 git commands to generate.