Howto implement configure/makefile checking for JNI headers?

View: New views
4 Messages — Rating Filter:   Alert me  

Howto implement configure/makefile checking for JNI headers?

by Bugzilla from linuxhippy@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I would like to add a Java binding to an existing project written in
C, however I am totally unexperienced with make/configure.
Any hints, or even better snippits, how I could search for JNI headers
during configure, allow the variable to be configureable with a saned
efault value?

Thank you in advance, Clemens

Re: Howto implement configure/makefile checking for JNI headers?

by Remi Forax :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le 31/10/2009 18:45, Clemens Eisserer a écrit :

> Hi,
>
> I would like to add a Java binding to an existing project written in
> C, however I am totally unexperienced with make/configure.
> Any hints, or even better snippits, how I could search for JNI headers
> during configure, allow the variable to be configureable with a saned
> efault value?
>
> Thank you in advance, Clemens
>    

Hi Clemens,
The best is to use tools that already do some kind of glue
like jna.dev.java.net.

cheers,
Rémi

Re: Howto implement configure/makefile checking for JNI headers?

by Bugzilla from linuxhippy@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Remi,

The JNI code is already written, and I plan to avoid adding additional
dependencies as I hope that stuff will become a part of IcedTea some
day.

The big question is how do I get it built in a way, RedHat won't
refuse creating packages from it ;)

- Clemens

Re: Howto implement configure/makefile checking for JNI headers?

by Andrew Haley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Clemens Eisserer wrote:

> I would like to add a Java binding to an existing project written in
> C, however I am totally unexperienced with make/configure.
> Any hints, or even better snippits, how I could search for JNI headers
> during configure, allow the variable to be configureable with a saned
> efault value?

It's hard to tell from this what you're trying to do.

Andrew.