On 10/11/06, Sean D. Rafferty <[EMAIL PROTECTED]> wrote:
A solution that seems to have worked for me is to run the following in the
graphviz build directory (the one created by the tar command):
{{{
CPPFLAGS="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux" \
./configure --prefix=/usr &&
for file in $(find ./ -name Makefile); do \
sed -i "s:JAVA_LIBS = :JAVA_LIBS = $JAVA_HOME\/lib:" $file;
sed -i "s:JAVA_INCLUDES = :JAVA_INCLUDES = $JAVA_HOME\/include:" $file;
done &&
make
}}}
Thanks for the post, Sean. Opening a ticket is helpful because things
aren't forgotten about there. But you've got my attention, so...
Typically with make, you can pass in any variable changes you want as
arguments on the command line. Make will prefer the values you've told
it about. So, rather than running sed on all the Makefiles to set the
proper default, you can just tell make about it at build time.
Could you see if this works?
make JAVA_LIBS="$JAVA_HOME/lib" JAVA_INCLUDES="$JAVA_HOME/include"
Also, just a small tip. With sed, since you made the delimiter :, you
no longer have to escape any /'s in the fields. So, the \ in
$JAVA_HOME\/lib is unnecessary.
Thanks.
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page