As was said earlier, you need to either use the --with-sun-jdk or
--with-japhar flags to denote where to look for each of these. See
configure.in for details. It would probably make more sense from a
configure.in perspective to change it to be
--with-jvm={japhar/jdk/kaffe/...} and --with-jvm-home=/prefix/to/jvm
than to have the other flags listed above. By default we'd just look
in the normal install locations for these and if not found throw a big
ole nasty error with a helpful message. I'll try to get this done
tonight. For now, just use @VMINCLUDE@ in your Makefile.am and use
configure with the appropriate flags.
To make your compile work on the libs easier I'm going to take the
'java' dir out of subdirs in the toplevel Makefile.am for the
moment. This will let 'make' get to the native lib compilation (and
probably bomb). The Java stuff in the subdirs is probably moving to a
toplevel Makefile anyway. I may also need to take out the gnu.* java
stuff in separate Makefile's, I will if needed.
Brian
"John Keiser" <[EMAIL PROTECTED]> writes:
> The only problem with building the native libs that I'm aware of is the
> include of jni.h. I have two solutions in mind:
>
> 1. Configure option: --jni-include-dir=...
> 2. Include a jni.h with Classpath. This requires changes to our configure
> scripts and Makefiles and such, because it should do the same sort of thing
> as Japhar, dynamically building the jni.h stuff. It should work, though,
> since jni.h is supposed to be VM-independent.
>
> Option 1 is easier, option 2 is more thorough and cleaner. Anyone have any
> preferences, reasons to do one over the other? If it's #2, it would be
> better if someone else does it. I am aiming for quick-and-dirty,
> get-the-damn-thing-working-with-Japhar right now, and I am not liable to
> spend a lot of time working on just getting jni.h into the tree.
>
> --John Keiser
--
|-------------------------------|Software Engineer
|Brian Jones |[EMAIL PROTECTED]
|[EMAIL PROTECTED] |http://www.nortel.net
|http://www.classpath.org/ |------------------------------