This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] additional dladdr check in configure.ac


Hello,
the attached patch to configure.ac looks for dladdr in libdld.sl on HP-UX. If the OS has the right version and patches the check succeeds.


Ok for main?

Andreas

2006-04-25 Andreas Tobler <a.tobler@schweiz.ch>

	* configure.ac: Add an additional check for dladdr on dld.
	* configure: Rebuilt.

Index: configure.ac
===================================================================
--- configure.ac (revision 113256)
+++ configure.ac (working copy)
@@ -897,9 +897,12 @@
inet_pton uname inet_ntoa \
fork execvp pipe sigaction ftruncate])
AC_CHECK_FUNCS(inet_aton inet_addr, break)
- AC_CHECK_HEADERS(execinfo.h unistd.h dlfcn.h)
+ AC_CHECK_HEADERS(execinfo.h unistd.h dlfcn.h)
+ # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
AC_CHECK_LIB(dl, dladdr, [
- AC_DEFINE(HAVE_DLADDR, 1, [Define if you have dladdr()])])
+ AC_DEFINE(HAVE_DLADDR, 1, [Define if you have dladdr()])], [
+ AC_CHECK_LIB(dld, dladdr, [
+ AC_DEFINE(HAVE_DLADDR, 1, [Define if you have dladdr()])])])


    if test x"$build" = x"$host"; then
      AC_CHECK_FILES(/proc/self/exe, [


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]