* configure (case $targetos): Improve readibility. (case $cpu): New, to improve readability compare to if + test.
Unified · Split
| @@ -101,16 +101,10 @@ EXESUF="" · 100 unmodified lines | ||
| 101 | 101 | # OS specific |
| 102 | 102 | targetos=`uname -s` |
| 103 | 103 | case $targetos in |
| 104 | −MINGW32*) | |
| 105 | −mingw32="yes" | |
| 106 | −;; | |
| 107 | −DragonFly) | |
| 108 | −noldl="yes" | |
| 109 | −;; | |
| 110 | −OpenBSD) | |
| 111 | −noldl="yes" | |
| 112 | −;; | |
| 113 | −*) ;; | |
| 104 | + MINGW32*) mingw32=yes;; | |
| 105 | + DragonFly) noldl=yes;; | |
| 106 | + OpenBSD) noldl=yes;; | |
| 107 | + *) ;; | |
| 114 | 108 | esac |
| 115 | 109 | |
| 116 | 110 | # find source path |
| @@ -231,9 +225,9 @@ fi · 114 unmodified lines | ||
| 231 | 225 | else |
| 232 | 226 | |
| 233 | 227 | # if cross compiling, cannot launch a program, so make a static guess |
| 234 | −if test "$cpu" = "powerpc" -o "$cpu" = "mips" -o "$cpu" = "s390" ; then | |
| 235 | − bigendian="yes" | |
| 236 | −fi | |
| 228 | +case $cpu in | |
| 229 | + powerpc|mips|s390) bigendian=yes;; | |
| 230 | +esac | |
| 237 | 231 | |
| 238 | 232 | fi |
| 239 | 233 | |