diff options
author | notin <notin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2008-06-12 13:58:59 +0000 |
---|---|---|
committer | notin <notin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2008-06-12 13:58:59 +0000 |
commit | e8dc97576d5643e0ef8dd3eeec99c25c6d483c39 (patch) | |
tree | f1fa86c70b622beb2886f3daa0f1b10689180a9f /configure | |
parent | 6aad0d9cd2104b5343ed7c831a4ad0bbe34007cb (diff) |
Compilation Windows
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11113 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 36 |
1 files changed, 19 insertions, 17 deletions
@@ -228,27 +228,29 @@ esac # Architecture case $arch_spec in - no) if test -x /bin/arch ; then - ARCH=`/bin/arch` - elif test -x /usr/bin/arch ; then - ARCH=`/usr/bin/arch` - elif test -x /usr/ucb/arch ; then - ARCH=`/usr/ucb/arch` - elif test -x /bin/uname && (/bin/uname -s | grep -q -i CYGWIN) ; then - ARCH=win32 - # cygwin returns a name of the form /cygdrive/c/... - # that coqc does not understand; need to transform it - COQTOP=`echo $COQTOP | sed -e "s#.*cygdrive.\(.\)#\1:#"` - elif test -x /bin/uname ; then - ARCH=`/bin/uname -s` - elif test -x /usr/bin/uname ; then - ARCH=`/usr/bin/uname -s` + no) + # First we test if we are running a Cygwin system + if [ `uname -o` = "Cygwin" ] ; then + ARCH="win32" + else + # If not, we determine the architecture + if test -x /bin/arch ; then + ARCH=`/bin/arch` + elif test -x /usr/bin/arch ; then + ARCH=`/usr/bin/arch` + elif test -x /usr/ucb/arch ; then + ARCH=`/usr/ucb/arch` + elif test -x /bin/uname ; then + ARCH=`/bin/uname -s` + elif test -x /usr/bin/uname ; then + ARCH=`/usr/bin/uname -s` else echo "I can not automatically find the name of your architecture" echo -n\ - "Give me a name, please [win32 for Win95, Win98 or WinNT]: " + "Give me a name, please [win32 for Win95, Win98 or WinNT]: " read ARCH - fi;; + fi + fi;; yes) ARCH=$arch esac |