autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AX_JNI_INCLUDE_DIR and FreeBSD


From: Antoine Brodin
Subject: Re: AX_JNI_INCLUDE_DIR and FreeBSD
Date: Tue, 5 Feb 2013 17:45:29 +0000

On Mon, Feb 4, 2013 at 10:22 PM, Antoine Brodin <address@hidden> wrote:
> Hello,
>
> The AX_JNI_INCLUDE_DIR macro does not seem to work on FreeBSD.
>
> I see 2 problems.
>
> 1) _JTOPDIR and _JINC are not set correctly
> On freebsd,  /usr/local/bin/javac is a symlink to /usr/local/bin/javavm
> javavm is a shell script which parses /usr/local/etc/javavms and
> /usr/local/etc/javavm_opts.conf to determine what to launch
> For instance I have this is my /usr/local/etc/javavms  file:
> /usr/local/openjdk6/bin/java # OpenJDK6
>
> So my jni.h header is located here:
> /usr/local/openjdk6/include/jni.h
> I don't know how to fix this.
>
> 2) This one is easy to fix,  freebsd is not listed as possible host_os line 
> 83.
> Just adding this line does the trick:
> freebsd*)          _JNI_INC_SUBDIRS="freebsd";;

Hello,

The attached patch + setting _ACJNI_JAVAC during configure is enough.

Cheers,

Antoine

Attachment: ax_jni_include_dir.m4.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]