diff options
| -rwxr-xr-x | configure | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -113,17 +113,19 @@ esac # Architecture case $arch_spec in - no) if test -f /bin/arch ; then + no) if test -x /bin/arch ; then ARCH=`/bin/arch` - elif test -f /usr/bin/arch ; then + elif test -x /usr/bin/arch ; then ARCH=`/usr/bin/arch` - elif test -f /usr/ucb/arch ; then + elif test -x /usr/ucb/arch ; then ARCH=`/usr/ucb/arch` - elif /bin/uname -s | grep -q -i CYGWIN ; then + 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 /usr/bin/uname ; then + ARCH=`/usr/bin/uname -s` else echo "I can not automatically find the name of your architecture" echo -n\ |
