From 69fa70e155ee34b1b154430b490fc0339c08f211 Mon Sep 17 00:00:00 2001 From: notin Date: Tue, 2 Oct 2007 12:47:06 +0000 Subject: Report des modifications faites sur le configure en r10039, r10052, r10053 et r10054 dans les branches trunk et v8.1 git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10164 85f007b7-540e-0410-9357-904b9bb8a0f7 --- configure | 89 +++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 47 insertions(+), 42 deletions(-) diff --git a/configure b/configure index 41f0571044..7fef374f2d 100755 --- a/configure +++ b/configure @@ -7,7 +7,7 @@ ################################## VERSION=trunk -DATE="Nov. 2006" +DATE="Oct. 2007" # a local which command for sh which () { @@ -108,7 +108,6 @@ arch_spec=no coqide_spec=no with_geoproof=false -# COQTOP=`pwd` COQSRC=`pwd` # Parse command-line arguments @@ -125,7 +124,7 @@ while : ; do reals_opt=yes reals=all;; -src|--src) src_spec=yes - COQTOP="$2" + COQSRC="$2" shift;; -bindir|--bindir) bindir_spec=yes bindir="$2" @@ -312,7 +311,12 @@ if test ! -f "$CAMLC" ; then exit 1 fi -# this fixes a camlp4 bug under FreeBSD +# Under Windows, OCaml only understands Windows filenames (C:\...) +case $ARCH in + win32) CAMLBIN=`cygpath -w ${CAMLBIN}`;; +esac + +# this fixes a camlp4 bug under FreeBSD # ("native-code program cannot do a dynamic load") if [ `uname -s` = "FreeBSD" ]; then camlp4oexec=$camlp4oexec.byte; fi @@ -359,7 +363,11 @@ fi # For coqmktop & bytecode compiler -CAMLLIB=`"$CAMLC" -where` +case $ARCH in + win32) # Awful trick to get around ^M character at the end of CAMLLIB + CAMLLIB="C:\OCaml\lib";; + *) CAMLLIB=`"$CAMLC" -where` +esac # Camlp4 / Camlp5 configuration # Very basic for the moment: if camlp5 exists, we use it... @@ -458,14 +466,13 @@ esac ########################################### # bindir, libdir, mandir, etc. -canonical_pwd () { -ocaml 2>&1 1>/dev/null <