This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / gdb / gdbserver / acinclude.m4
1 dnl gdb/gdbserver/configure.in uses BFD_HAVE_SYS_PROCFS_TYPE.
2 sinclude(../../bfd/acinclude.m4)
3
4 AC_DEFUN([SRV_CHECK_THREAD_DB],
5 [AC_CACHE_CHECK([for libthread_db],[srv_cv_thread_db],
6 [old_LIBS="$LIBS"
7 LIBS="$LIBS -lthread_db"
8 AC_TRY_LINK(
9 [void ps_pglobal_lookup() {}
10 void ps_pdread() {}
11 void ps_pdwrite() {}
12 void ps_lgetregs() {}
13 void ps_lsetregs() {}
14 void ps_lgetfpregs() {}
15 void ps_lsetfpregs() {}
16 void ps_getpid() {}],
17 [td_ta_new();],
18 [srv_cv_thread_db="-lthread_db"],
19 [srv_cv_thread_db=no
20
21 if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then
22 thread_db="/lib/libthread_db.so.1"
23 else
24 thread_db='$prefix/lib/libthread_db.so.1'
25 fi
26 LIBS="$old_LIBS `eval echo "$thread_db"`"
27 AC_TRY_LINK(
28 [void ps_pglobal_lookup() {}
29 void ps_pdread() {}
30 void ps_pdwrite() {}
31 void ps_lgetregs() {}
32 void ps_lsetregs() {}
33 void ps_lgetfpregs() {}
34 void ps_lsetfpregs() {}
35 void ps_getpid() {}],
36 [td_ta_new();],
37 [srv_cv_thread_db="$thread_db"],
38 [srv_cv_thread_db=no])
39 LIBS="$old_LIBS"
40 ]])
41 )])
This page took 0.032648 seconds and 5 git commands to generate.