This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] additional dladdr check in configure.ac
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Java Patches <java-patches at gcc dot gnu dot org>
- Date: Tue, 25 Apr 2006 23:25:19 +0200
- Subject: [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, [