aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar notin <notin@85f007b7-540e-0410-9357-904b9bb8a0f7>2009-02-11 14:39:19 +0000
committerGravatar notin <notin@85f007b7-540e-0410-9357-904b9bb8a0f7>2009-02-11 14:39:19 +0000
commitfe0e355164bf8401ee5f2397584d3e3a04b82240 (patch)
tree34cf1b61daf7b26ad8cd9c23447e4c5ce07775e3
parentc3acdf3caca52e3b09ac075f043c4eddfe5d0814 (diff)
Gestion des espaces dans les noms + guess_coqlib sous Windows
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11921 85f007b7-540e-0410-9357-904b9bb8a0f7
-rwxr-xr-xconfigure6
-rwxr-xr-xinstall.sh6
-rw-r--r--lib/envars.ml5
3 files changed, 9 insertions, 8 deletions
diff --git a/configure b/configure
index 5c96dce06..e11532f8c 100755
--- a/configure
+++ b/configure
@@ -810,10 +810,10 @@ BUILDLDPATH="# you might want to set CAML_LD_LIBRARY_PATH by hand!"
case $coqrunbyteflags_spec/$local/$custom_spec/$CUSTOM_OS in
yes/*/*/*) COQRUNBYTEFLAGS="$coqrunbyteflags";;
*/*/yes/*|*/*/*/yes) COQRUNBYTEFLAGS="-custom";;
- */true/*/*) COQRUNBYTEFLAGS="-dllib -lcoqrun -dllpath $COQTOP/kernel/byterun";;
+ */true/*/*) COQRUNBYTEFLAGS="-dllib -lcoqrun -dllpath '$COQTOP'/kernel/byterun";;
*)
- COQRUNBYTEFLAGS="-dllib -lcoqrun -dllpath $LIBDIR"
- BUILDLDPATH="export CAML_LD_LIBRARY_PATH=$COQTOP/kernel/byterun";;
+ COQRUNBYTEFLAGS="-dllib -lcoqrun -dllpath '$LIBDIR'"
+ BUILDLDPATH="export CAML_LD_LIBRARY_PATH='$COQTOP'/kernel/byterun";;
esac
case $coqtoolsbyteflags_spec/$custom_spec/$CUSTOM_OS in
yes/*/*) COQTOOLSBYTEFLAGS="$coqtoolsbyteflags";;
diff --git a/install.sh b/install.sh
index 0719ca778..277222f58 100755
--- a/install.sh
+++ b/install.sh
@@ -1,13 +1,13 @@
#! /bin/sh
-dest=$1
+dest="$1"
shift
for f; do
bn=`basename $f`
dn=`dirname $f`
- install -d $dest/$dn
- install -m 644 $f $dest/$dn/$bn
+ install -d "$dest/$dn"
+ install -m 644 $f "$dest/$dn/$bn"
done
diff --git a/lib/envars.ml b/lib/envars.ml
index 5887adcde..d700ffe16 100644
--- a/lib/envars.ml
+++ b/lib/envars.ml
@@ -21,8 +21,9 @@ let guess_coqlib () =
else
let coqbin = System.canonical_path_name (Filename.dirname Sys.executable_name) in
let prefix = Filename.dirname coqbin in
- let coqlib = if Coq_config.local then prefix else
- List.fold_left Filename.concat prefix ["lib";"coq"] in
+ let rpath = if Coq_config.local then [] else
+ (if Coq_config.arch = "win32" then ["lib"] else ["lib";"coq"]) in
+ let coqlib = List.fold_left Filename.concat prefix rpath in
if Sys.file_exists (Filename.concat coqlib file) then coqlib else
Util.error "cannot guess a path for Coq libraries; please use -coqlib option"