diff options
| author | Akim Demaille <akim@lrde.epita.fr> | 2012-12-21 13:41:43 +0100 |
|---|---|---|
| committer | Akim Demaille <akim@lrde.epita.fr> | 2012-12-21 13:45:22 +0100 |
| commit | 9c9ca2032bc033792d748264e34e810e689598b5 (patch) | |
| tree | b785b1b491338103c40eb9e505922a1482035af1 /configure | |
| parent | 5ebc6a964d49ebab862f3d006a28162c84644247 (diff) | |
| download | tinycc-9c9ca2032bc033792d748264e34e810e689598b5.tar.gz tinycc-9c9ca2032bc033792d748264e34e810e689598b5.tar.bz2 | |
configure: style changes
* configure (case $targetos): Improve readibility.
(case $cpu): New, to improve readability compare to if + test.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 20 |
1 files changed, 7 insertions, 13 deletions
@@ -101,16 +101,10 @@ EXESUF="" # OS specific targetos=`uname -s` case $targetos in -MINGW32*) -mingw32="yes" -;; -DragonFly) -noldl="yes" -;; -OpenBSD) -noldl="yes" -;; -*) ;; + MINGW32*) mingw32=yes;; + DragonFly) noldl=yes;; + OpenBSD) noldl=yes;; + *) ;; esac # find source path @@ -231,9 +225,9 @@ fi else # if cross compiling, cannot launch a program, so make a static guess -if test "$cpu" = "powerpc" -o "$cpu" = "mips" -o "$cpu" = "s390" ; then - bigendian="yes" -fi +case $cpu in + powerpc|mips|s390) bigendian=yes;; +esac fi |
