--- configure.orig 2004-04-04 15:42:39.000000000 +0400 +++ configure 2004-05-10 12:52:36.453125000 +0400 @@ -103,6 +103,12 @@ eval "$v=\"$p\"" } +apply_mspath () { + v=$1 + eval "p=\"\$$v\"" + p="`cygpath -m -l \"$p\"`" + eval "$v=\"$p\"" +} ###################################################################### # Here the main program begins: @@ -115,6 +121,7 @@ ocaml_sitelib="" ocamlfind_config="" use_cygpath=0 +use_mspath=0 with_toolbox=0 with_topfind=1 @@ -135,6 +142,9 @@ -cygpath) use_cygpath=1 shift ;; + -mspath) use_mspath=1 + shift + ;; -with-toolbox) with_toolbox=1 shift ;; @@ -151,6 +161,7 @@ echo " -sitelib path set the location of the site-specific packages" 1>&2 echo " -config path set the location of the configuration file" 1>&2 echo " -cygpath fix paths for cygwin environment" 1>&2 + echo " -mspath fix paths for MSVC environment" 1>&2 echo " -with-toolbox also build the toolbox" 1>&2 echo " -no-topfind don't install topfind script into stdlib directory" 1>&2 exit @@ -380,6 +391,13 @@ parts="$parts findlib-toolbox" fi +if [ ${use_mspath} -gt 0 ]; then + echo "Applying mspath..." + apply_mspath ocaml_core_bin + apply_mspath ocamlfind_bin + apply_mspath ocamlfind_config +fi + echo "# Makefile.config written by configure" >Makefile.config echo "OCAML_CORE_STDLIB=${ocaml_core_stdlib}" >>Makefile.config echo "OCAML_CORE_BIN=${ocaml_core_bin}" >>Makefile.config