1 dnl gdb/gdbserver/configure.in uses BFD_HAVE_SYS_PROCFS_TYPE.
2 sinclude(../../bfd/acinclude.m4)
4 AC_DEFUN([SRV_CHECK_THREAD_DB],
5 [AC_CACHE_CHECK([for libthread_db],[srv_cv_thread_db],
7 LIBS="$LIBS -lthread_db"
9 [void ps_pglobal_lookup() {}
14 void ps_lgetfpregs() {}
15 void ps_lsetfpregs() {}
18 [srv_cv_thread_db="-lthread_db"],
21 if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then
22 thread_db="/lib/libthread_db.so.1"
24 thread_db='$prefix/lib/libthread_db.so.1'
26 LIBS="$old_LIBS `eval echo "$thread_db"`"
28 [void ps_pglobal_lookup() {}
33 void ps_lgetfpregs() {}
34 void ps_lsetfpregs() {}
37 [srv_cv_thread_db="$thread_db"],
38 [srv_cv_thread_db=no])