summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2006-08-18 19:41:05 +0000
committerThomas Fitzsimmons <fitzsim@redhat.com>2006-08-18 19:41:05 +0000
commitf58c8ab0ac724e9c976ee2df975cddf3cf398c96 (patch)
tree9481912a1f77d65b7e01c4d18b01a3e6c72bc513 /configure.ac
parente49ddf4bd118f1f1ff08e71695e0bcbba9d9ad2a (diff)
downloadclasspath-f58c8ab0ac724e9c976ee2df975cddf3cf398c96.tar.gz
2006-08-18 Thomas Fitzsimmons <fitzsim@redhat.com>
* configure.ac (tool-wrappers): Check for ltdl support when tool wrapper binaries are enabled. * tools/Makefile.am (LIBJVM): Remove variable. (AM_CPPFLAGS): Add LIBJVM define. (gappletviewer_LDFLAGS, gjarsigner_LDFLAGS, gkeytool_LDFLAGS, gjar_LDFLAGS, gnative2ascii_LDFLAGS, gserialver_LDFLAGS, gjavah_LDFLAGS): Remove variables. * tools/toolwrapper.c (main): Use dlopen to load libjvm library.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 1c7f7c768..5089e0199 100644
--- a/configure.ac
+++ b/configure.ac
@@ -287,7 +287,11 @@ dnl -----------------------------------------------------------
AC_ARG_ENABLE([tool-wrappers],
[AS_HELP_STRING(--enable-tool-wrappers,create tool wrapper binaries [default=no])],
[case x"${enableval}" in
- xyes) COMPILE_WRAPPERS=yes ;;
+ xyes)
+ COMPILE_WRAPPERS=yes;
+ AC_CHECK_HEADERS([ltdl.h],, [AC_MSG_ERROR(cannot find ltdl.h)])
+ AC_CHECK_LIB(ltdl, lt_dlopen,, [AC_MSG_ERROR(cannot find libltdl)])
+ ;;
xno) COMPILE_WRAPPERS=no ;;
x) COMPILE_WRAPPERS=yes ;;
*) COMPILE_WRAPPERS=yes ;;