Commit b9f243c2 by Andrew Haley Committed by Andrew Haley

name-finder.cc (lookup): Check for dladdr function.

2000-01-18  Andrew Haley  <aph@cygnus.com>

	* name-finder.cc (lookup): Check for dladdr function.
	acconfig.h (HAVE_DLADDR): Add.
	configure.in: Check for HAVE_DLADDR
	configure: Rebuilt.
	include/config.h.in:  Rebuilt.

From-SVN: r31487
parent 04476544
2000-01-18 Andrew Haley <aph@cygnus.com>
* name-finder.cc (lookup): Check for dladdr function.
acconfig.h (HAVE_DLADDR): Add.
configure.in: Check for HAVE_DLADDR
configure: Rebuilt.
include/config.h.in: Rebuilt.
2000-01-17 Andrew Haley <aph@cygnus.com> 2000-01-17 Andrew Haley <aph@cygnus.com>
* prims.cc (_Jv_RunMain): Set the name of this executable. * prims.cc (_Jv_RunMain): Set the name of this executable.
......
...@@ -123,6 +123,9 @@ ...@@ -123,6 +123,9 @@
/* Define if you have /proc/self/exe */ /* Define if you have /proc/self/exe */
#undef HAVE_PROC_SELF_EXE #undef HAVE_PROC_SELF_EXE
/* Define if you have dladdr() */
#undef HAVE_DLADDR
/* Define if getuid() and friends are missing. */ /* Define if getuid() and friends are missing. */
#undef NO_GETUID #undef NO_GETUID
......
...@@ -375,6 +375,8 @@ else ...@@ -375,6 +375,8 @@ else
AC_CHECK_FUNCS(inet_pton uname inet_ntoa) AC_CHECK_FUNCS(inet_pton uname inet_ntoa)
AC_CHECK_FUNCS(backtrace fork execvp pipe) AC_CHECK_FUNCS(backtrace fork execvp pipe)
AC_CHECK_HEADERS(execinfo.h unistd.h dlfcn.h) AC_CHECK_HEADERS(execinfo.h unistd.h dlfcn.h)
AC_CHECK_LIB(dl, dladdr, [
AC_DEFINE(HAVE_DLADDR)])
AC_CHECK_FILES(/proc/self/exe, [ AC_CHECK_FILES(/proc/self/exe, [
AC_DEFINE(HAVE_PROC_SELF_EXE)]) AC_DEFINE(HAVE_PROC_SELF_EXE)])
......
...@@ -139,6 +139,10 @@ ...@@ -139,6 +139,10 @@
#undef HAVE_PROC_SELF_EXE #undef HAVE_PROC_SELF_EXE
/* Define if you have dladdr() */
#undef HAVE_DLADDR
/* Define if getuid() and friends are missing. */ /* Define if getuid() and friends are missing. */
#undef NO_GETUID #undef NO_GETUID
......
...@@ -134,7 +134,7 @@ _Jv_name_finder::lookup (void *p) ...@@ -134,7 +134,7 @@ _Jv_name_finder::lookup (void *p)
{ {
toHex (p); toHex (p);
#ifdef HAVE_DLFCN_H #if defined (HAVE_DLFCN_H) && defined (HAVE_DLADDR)
{ {
Dl_info dl_info; Dl_info dl_info;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment