mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-13 04:44:39 +00:00
Fix "cygpath: command not found" errors with `mmake --use-mmc-make'.
Estimated hours taken: 0.25 Branches: main Fix "cygpath: command not found" errors with `mmake --use-mmc-make'. configure.in: bindist/bindist.configure.in: scripts/Mmake.vars.in: Check that `cygpath' exists, rather than hard-coding it in Mmake.vars.in.
This commit is contained in:
@@ -84,6 +84,7 @@ AC_SUBST(LIB_LIBPATH)
|
||||
AC_SUBST(LINK_LIB)
|
||||
AC_SUBST(LINK_OPT_SEP)
|
||||
AC_SUBST(FIX_PATH_FOR_CC)
|
||||
AC_SUBST(CYGPATH)
|
||||
AC_SUBST(MATH_LIB)
|
||||
AC_SUBST(SHARED_LIBS_SH)
|
||||
AC_SUBST(CGIDIR)
|
||||
|
||||
@@ -392,6 +392,8 @@ AC_EGREP_CPP(yes,
|
||||
] AC_MSG_RESULT(yes), [ac_microsoft=no
|
||||
] AC_MSG_RESULT(no))
|
||||
|
||||
AC_CHECK_PROG(CYGPATH, cygpath, cygpath -w, echo)
|
||||
|
||||
if test "$ac_microsoft" = "yes" ; then
|
||||
# Use MS-style file names and command-line options
|
||||
OBJ_SUFFIX="obj"
|
||||
@@ -408,7 +410,10 @@ if test "$ac_microsoft" = "yes" ; then
|
||||
|
||||
USING_MICROSOFT_CL_COMPILER="yes"
|
||||
|
||||
FIX_PATH_FOR_CC="cygpath -w"
|
||||
case "$CYGPATH" in "echo")
|
||||
AC_MSG_WARN("cygpath required with Microsoft Visual C++") ;;
|
||||
esac
|
||||
FIX_PATH_FOR_CC="$CYGPATH"
|
||||
|
||||
# MS doesn't use a ranlib.
|
||||
RANLIB="echo"
|
||||
@@ -459,6 +464,7 @@ AC_SUBST(LIB_LIBPATH)
|
||||
AC_SUBST(LINK_LIB)
|
||||
AC_SUBST(LINK_OPT_SEP)
|
||||
AC_SUBST(FIX_PATH_FOR_CC)
|
||||
AC_SUBST(CYGPATH)
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
# Microsoft.NET configuration
|
||||
|
||||
@@ -212,7 +212,7 @@ LIB_CFLAGS = $(patsubst %,-I %,$(EXTRA_C_INCL_DIRS))
|
||||
|
||||
# MS_CL is the command line version of Microsoft Visual C++, which we
|
||||
# use to compile Managed C++ code in the .NET backend.
|
||||
FIX_PATH_FOR_CL = cygpath -w
|
||||
FIX_PATH_FOR_CL = @CYGPATH@
|
||||
MS_CL = @MS_CL@
|
||||
MS_VISUALCPP_DIR = @MS_VISUALCPP_DIR@
|
||||
ALL_MS_CLFLAGS = $(MS_CLFLAGS) $(EXTRA_MS_CLFLAGS) $(TARGET_MS_CLFLAGS) \
|
||||
@@ -259,7 +259,7 @@ MS_AL = al
|
||||
# which have a different command-line interface.
|
||||
# (What about Rotor?)
|
||||
|
||||
FIX_PATH_FOR_CSC = cygpath -w
|
||||
FIX_PATH_FOR_CSC = @CYGPATH@
|
||||
MS_CSC = csc
|
||||
ALL_MS_CSCFLAGS = $(MS_CSCFLAGS) $(EXTRA_MS_CSCFLAGS) $(TARGET_MS_CSCFLAGS) \
|
||||
$(LIB_MS_CSCFLAGS)
|
||||
|
||||
Reference in New Issue
Block a user