Jeremy Herbison wrote:
Running ./configure --prefix=/usr gives the following:
checking for java... java
checking jni.h usability... no
checking jni.h presence... no
checking for jni.h... no
configure: WARNING: Unable to find header jni.h. The Java packages will
not be built
jni.h is located in /usr/jdk/include, and of course configure won't know
that. But if I run:
CPPFLAGS="-I/usr/jdk/include" ./configure --prefix=/usr
Why don't you look at config.log to see exactly what's being run when it
bombs. That might give you a clue. Maybe the way it looks for the java
includes is not the way you expect it to. Maybe it expects to see a
directory called java.
> save_CPPFLAGS=$CPPFLAGS
> CPPFLAGS="$CPPFLAGS $JAVA_INCLUDES"
>
> # all the java tests
>
> CPPFLAGS=$save_CPPFLAGS
What, exactly, are the java tests? Maybe $JAVA_INCLUDES must be
specified as /usr/jdk since it automatically adds the include directory
to the path. Hard to tell anything about why the tests have failed when
you haven't shown what the tests are.
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page