[tcljava-user] Bug in configure script
Brought to you by:
mdejong
From: Kristoffer L. <se...@fi...> - 2007-01-08 18:45:03
|
I tracked the configuration problem I was having and there seems to be a bug in how file tests are managed in the configure script. The issue is that it cannot handle being compiled within a directory with spaces. Here is a diff that should be of the change I made to get that part to work: diff configure oldconf 1711,1714c1711,1715 < if [ "x$TCLJAVA" = "x" ]; then < if [ -d "$srcdir/src/tclblend" ] && [ -d "$srcdir/src/ jacl" ]; then < echo configuring for both jacl and tclblend >&5 < echo configuring for both jacl and tclblend --- > if test "x$TCLJAVA" = "x"; then > if test -d $srcdir/src/tclblend && test -d $srcdir/src/ jacl ; then > > echo configuring for both jacl and tclblend >&5 > echo configuring for both jacl and tclblend 1717c1718 < elif [ -d "$srcdir/src/tclblend" ]; then --- > elif test -d $srcdir/src/tclblend ; then 1719c1720 < elif [ -d "$srcdir/src/jacl" ]; then --- > elif test -d $srcdir/src/jacl ; then 1723,1724c1724,1725 < echo "$as_me: error: Cannot find jacl or tclblend sources" >&2;} < { (exit 1); exit 1; }; } --- > echo "$as_me: error: Cannot find jacl or tclblend sources" >&2;} > { (exit 1); exit 1; }; } 1762c1763 < if [ -d "$srcdir/../tcl8.4.1/unix" ]; then --- > if test -d $srcdir/../tcl8.4.1/unix ; then Additionally there seems to be no direct way of telling the configure script where to find Java include files such as jni.h. It does a small job of looking them up in various locations, none of which are valid on OS X. I have a bit of a dislike for configure files (seeing as they haven't generally made my job any easier than it was before) and I'm not sure how hairy it would be to go and tweak that. PS. Does anybody actually respond to problems on this list? / http://www.fishpool.com/~setok/ |