[tcljava-user] Seems to work on AMD64 Linux
Brought to you by:
mdejong
From: Scott S. <ss...@am...> - 2005-10-14 03:49:14
|
After fiddling with tcljava.m4 I was able to get tclBlend to compile. It's probably not as good as it could be, but it works and jtclsh gets the right env too. (note that uname -m and $machine are "x86_64" not "amd64" thats why the hard coded match) I've never done m4 and I don't know much about autoconf, so hopefully this work (sweat) helps someone or can be commited to CVS. Thanks for all the work that goes into tclBlend, -Scott -------------------------- diff -Naur tclBlend1.3.2-old/tcljava.m4 tclBlend1.3.2-new/tcljava.m4 --- tclBlend1.3.2-old/tcljava.m4 2005-07-16 19:52:04.000000000 -0600 +++ tclBlend1.3.2-new/tcljava.m4 2005-10-13 21:41:11.000000000 -0600 @@ -924,6 +924,25 @@ fi fi + # Sun JDK 1.5 for AMD64 Linux + + F=jre/lib/amd64/libjava.so + if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then + AC_MSG_LOG([Looking for $ac_java_jvm_dir/$F], 1) + if test -f $ac_java_jvm_dir/$F ; then + AC_MSG_LOG([Found $ac_java_jvm_dir/$F], 1) + D=`dirname $ac_java_jvm_dir/$F` + ac_java_jvm_jni_lib_runtime_path=$D + ac_java_jvm_jni_lib_flags="-L$D -ljava -lverify" + D=$ac_java_jvm_dir/jre/lib/amd64/server + ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D" + ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm" + D=$ac_java_jvm_dir/jre/lib/$machine/native_threads + ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D" + ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D" + fi + fi + # Blackdown JDK 1.1 for Linux (this one can get a little wacky) F=README.linux ---------------------------- |