diff --git a/ase/configure.ac b/ase/configure.ac index 030f683f..8ae4d31f 100644 --- a/ase/configure.ac +++ b/ase/configure.ac @@ -1,10 +1,10 @@ # -# $Id: configure.ac,v 1.4 2007/05/25 07:30:26 bacon Exp $ +# $Id: configure.ac,v 1.5 2007/05/25 07:54:15 bacon Exp $ # AC_PREREQ(2.53) AC_INIT([ase], [deb-0.1.0]) -AC_REVISION([$Revision: 1.4 $]) +AC_REVISION([$Revision: 1.5 $]) AC_CONFIG_HEADER([cmn/conf_unx.h]) AC_CONFIG_AUX_DIR(config) @@ -150,7 +150,7 @@ then JAVA_DIR="$REAL_JAVAC_PATH" while true do - JAVA_DIR=`echo "$JAVA_DIR" | sed -e 's/\/\/*/\//g' -e 's/\/[^/]*$//'` + JAVA_DIR=`echo "$JAVA_DIR" | sed -e 's://*:/:g' -e 's:/[[^/]]*$::'` if test "$JAVA_DIR" = "" then break @@ -159,7 +159,6 @@ then AC_MSG_CHECKING($JAVA_DIR/etc/javavms) if test -f "$JAVA_DIR/etc/javavms" then - AC_MSG_RESULT(yes) # takes the first jvm configured CUR_JAVAC_PATH=`cat $JAVA_DIR/etc/javavms | head -1` AC_MSG_RESULT($CUR_JAVAC_PATH) @@ -175,7 +174,7 @@ then while true do - JAVA_DIR=`echo "$JAVA_DIR" | sed -e 's/\/\/*/\//g' -e 's/\/[^/]*$//'` + JAVA_DIR=`echo "$JAVA_DIR" | sed -e 's://*:/:g' -e 's:/[[^/]]*$::'` if test "$JAVA_DIR" = "" then break @@ -197,7 +196,7 @@ then JNI_MD_H=`find "$i" -name jni_md.h -print` if test "$JNI_MD_H" != "" then - tmp=`echo "$JNI_MD_H" | sed -e 's/\/\/*/\//g' -e 's/\/[^/]*$//'` + tmp=`echo "$JNI_MD_H" | sed -e 's://*:/:g' -e 's:/[[^/]]*$::'` JNI_MD_INCLUDE_DIRS="$JNI_MD_INCLUDE_DIRS $tmp" fi done