aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/configure
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-12-21 20:52:53 +0000
committerDoug Evans <dje@google.com>2009-12-21 20:52:53 +0000
commit10e86dd77848e00024b5de420c18e13db9a103c9 (patch)
tree79c8754517a0feb8a9824169a0b5927e1f232d3e /gdb/gdbserver/configure
parent4ee62156d969867d3d3ffedf656a74643f77279e (diff)
downloadgdb-10e86dd77848e00024b5de420c18e13db9a103c9.zip
gdb-10e86dd77848e00024b5de420c18e13db9a103c9.tar.gz
gdb-10e86dd77848e00024b5de420c18e13db9a103c9.tar.bz2
* configure.ac: Check for dladdr.
* config.in: Regenerate. * configure: Regenerate. * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR. (try_thread_db_load): Update.
Diffstat (limited to 'gdb/gdbserver/configure')
-rwxr-xr-xgdb/gdbserver/configure15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index 93aeb78..47bd81a 100755
--- a/gdb/gdbserver/configure
+++ b/gdb/gdbserver/configure
@@ -3816,6 +3816,21 @@ done
+old_LIBS="$LIBS"
+LIBS="$LIBS -ldl"
+for ac_func in dladdr
+do :
+ ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
+if test "x$ac_cv_func_dladdr" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_DLADDR 1
+_ACEOF
+
+fi
+done
+
+LIBS="$old_LIBS"
+
have_errno=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
$as_echo_n "checking for errno... " >&6; }