Kaydet (Commit) 90c2dd6e authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

lode: fix LODE_HOME support for windows

Change-Id: I6b44707b8d1be526e6c0400d7c7104628b825fc5
üst bac6e18d
...@@ -189,7 +189,7 @@ AC_MSG_CHECKING([for GNU Make]) ...@@ -189,7 +189,7 @@ AC_MSG_CHECKING([for GNU Make])
# try to use our own make if it is available and GNUMAKE was not already defined # try to use our own make if it is available and GNUMAKE was not already defined
if test -z "$GNUMAKE"; then if test -z "$GNUMAKE"; then
if test -n "$LODE_HOME" -a -e "$LODE_HOME/bin/make" ; then if test -n "$LODE_HOME" -a -x "$LODE_HOME/opt/bin/make" ; then
GNUMAKE="$LODE_HOME/opt/bin/make" GNUMAKE="$LODE_HOME/opt/bin/make"
elif test -x "/opt/lo/bin/make"; then elif test -x "/opt/lo/bin/make"; then
GNUMAKE="/opt/lo/bin/make" GNUMAKE="/opt/lo/bin/make"
...@@ -3407,7 +3407,6 @@ find_msvc() ...@@ -3407,7 +3407,6 @@ find_msvc()
reg_get_value_32 HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/VCExpress/$ver/Setup/VC/ProductDir reg_get_value_32 HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/VCExpress/$ver/Setup/VC/ProductDir
if test -n "$regvalue"; then if test -n "$regvalue"; then
vctest=$regvalue vctest=$regvalue
vcexpress="yes"
break break
fi fi
done done
...@@ -3423,6 +3422,10 @@ find_msvc() ...@@ -3423,6 +3422,10 @@ find_msvc()
vcnum=120 vcnum=120
;; ;;
esac esac
reg_get_value_32 HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/VCExpress/$vcnumwithdot/Setup/VC/ProductDir
if test -n "$regvalue" -a "$regvalue" = "$vctest" ; then
vcexpress=Express
fi
fi fi
} }
...@@ -3458,6 +3461,13 @@ if test "$_os" = "WINNT"; then ...@@ -3458,6 +3461,13 @@ if test "$_os" = "WINNT"; then
VC_PRODUCT_DIR=`win_short_path_for_make "$VC_PRODUCT_DIR"` VC_PRODUCT_DIR=`win_short_path_for_make "$VC_PRODUCT_DIR"`
AC_MSG_RESULT([$VC_PRODUCT_DIR]) AC_MSG_RESULT([$VC_PRODUCT_DIR])
AC_MSG_CHECKING([Is Visual C++ Express])
if test "$vcexpress" = "Express" ; then
AC_MSG_RESULT([Yes])
else
AC_MSG_RESULT([No])
fi
dnl =========================================================== dnl ===========================================================
dnl Check for the corresponding mspdb*.dll dnl Check for the corresponding mspdb*.dll
dnl =========================================================== dnl ===========================================================
...@@ -3510,7 +3520,7 @@ if test "$_os" = "WINNT"; then ...@@ -3510,7 +3520,7 @@ if test "$_os" = "WINNT"; then
if test -n "$CC"; then if test -n "$CC"; then
# Remove /cl.exe from CC case insensitive # Remove /cl.exe from CC case insensitive
AC_MSG_RESULT([found Visual C++ $vcyear ($CC)]) AC_MSG_RESULT([found Visual C++ $vcyear $vcexpress ($CC)])
if test "$BITNESS_OVERRIDE" = ""; then if test "$BITNESS_OVERRIDE" = ""; then
COMPATH=`echo $CC | $SED -e 's@\/[[Bb]][[Ii]][[Nn]]\/[[cC]][[lL]]\.[[eE]][[xX]][[eE]].*@@' -e 's@^.* @@'` COMPATH=`echo $CC | $SED -e 's@\/[[Bb]][[Ii]][[Nn]]\/[[cC]][[lL]]\.[[eE]][[xX]][[eE]].*@@' -e 's@^.* @@'`
else else
...@@ -3643,7 +3653,7 @@ if test "$_os" = "WINNT" -a "$WITH_MINGW" != yes; then ...@@ -3643,7 +3653,7 @@ if test "$_os" = "WINNT" -a "$WITH_MINGW" != yes; then
fi fi
AC_MSG_CHECKING([whether to use ActiveX]) AC_MSG_CHECKING([whether to use ActiveX])
if test "$enable_activex" = "yes" -o "$enable_activex" = "" -a "$vcexpress" != yes; then if test "$enable_activex" = "yes" -o "$enable_activex" = "" -a "$vcexpress" != Express; then
DISABLE_ACTIVEX="" DISABLE_ACTIVEX=""
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
else else
...@@ -3652,14 +3662,9 @@ if test "$_os" = "WINNT" -a "$WITH_MINGW" != yes; then ...@@ -3652,14 +3662,9 @@ if test "$_os" = "WINNT" -a "$WITH_MINGW" != yes; then
fi fi
AC_MSG_CHECKING([whether to use ATL]) AC_MSG_CHECKING([whether to use ATL])
if test "$enable_atl" = "yes" -o "$enable_atl" = ""; then if test "$enable_atl" = "yes" -o "$enable_atl" = "" -a "$vcexpress" != Express; then
if test "$vcexpress" != yes; then DISABLE_ATL=""
DISABLE_ATL="" AC_MSG_RESULT([yes])
AC_MSG_RESULT([yes])
else
DISABLE_ATL="TRUE"
AC_MSG_RESULT([no])
fi
else else
DISABLE_ATL="TRUE" DISABLE_ATL="TRUE"
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
...@@ -4658,7 +4663,11 @@ AC_SUBST([SYSTEM_FONTCONFIG]) ...@@ -4658,7 +4663,11 @@ AC_SUBST([SYSTEM_FONTCONFIG])
dnl whether to find & fetch external tarballs? dnl whether to find & fetch external tarballs?
dnl =================================================================== dnl ===================================================================
if test -z "$TARFILE_LOCATION" -a -n "$LODE_HOME" ; then if test -z "$TARFILE_LOCATION" -a -n "$LODE_HOME" ; then
TARFILE_LOCATION="$LODE_HOME/ext_tar" if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
TARFILE_LOCATION="`cypath -m $LODE_HOME/ext_tar`"
else
TARFILE_LOCATION="$LODE_HOME/ext_tar"
fi
fi fi
if test -z "$TARFILE_LOCATION"; then if test -z "$TARFILE_LOCATION"; then
if test -d "$SRC_ROOT/src" ; then if test -d "$SRC_ROOT/src" ; then
...@@ -11867,8 +11876,16 @@ dnl =================================================================== ...@@ -11867,8 +11876,16 @@ dnl ===================================================================
if test "$ENABLE_JAVA" != ""; then if test "$ENABLE_JAVA" != ""; then
ANT_HOME=; export ANT_HOME ANT_HOME=; export ANT_HOME
WITH_ANT_HOME=; export WITH_ANT_HOME WITH_ANT_HOME=; export WITH_ANT_HOME
if test -z "$with_ant_home" -a -n "$LODE_HOME" -a -e "$LODE_HOME/opt/bin/ant" ; then if test -z "$with_ant_home" -a -n "$LODE_HOME" ; then
with_ant_home="$LODE_HOME/opt" if test -x "$LODE_HOME/opt/ant/bin/ant" ; then
if test "$_os" = "WINNT"; then
with_ant_home="`cygpath -m $LODE_HOME/opt/ant`"
else
with_ant_home="$LODE_HOME/opt/ant"
fi
elif test -x "$LODE_HOME/opt/bin/ant" ; then
with_ant_home="$LODE_HOME/opt/ant"
fi
fi fi
if test -z "$with_ant_home"; then if test -z "$with_ant_home"; then
AC_PATH_PROGS(ANT, [jakarta-ant ant ant.sh ant.bat ant.cmd]) AC_PATH_PROGS(ANT, [jakarta-ant ant ant.sh ant.bat ant.cmd])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment