X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=configure;h=e3d97c2c9ba1f578a9b1a3b827e6b3d03e7580df;hb=908bed20cd877a6c0c290c0c56cc7057ecc00296;hp=4ef6ccceaf888be5b1d29fb3176d7b1f12326b0e;hpb=b4ccc3c1361ca611d6590dd4af288fb9fa6a843b;p=musl diff --git a/configure b/configure index 4ef6ccce..e3d97c2c 100755 --- a/configure +++ b/configure @@ -2,7 +2,7 @@ usage () { cat </dev/null)" ; then +if fnmatch '*gcc\ version*' "$("$CC" -v 2>&1)" ; then echo yes printf "checking whether to build musl-gcc wrapper... " wrapper=yes @@ -166,21 +167,21 @@ fi # -# Find the build architecture +# Find the target architecture # -printf "checking build system type... " -test -n "$build" || build=$("$CC" -dumpmachine 2>/dev/null) || build=unknown -printf "%s\n" "$build" +printf "checking target system type... " +test -n "$target" || target=$("$CC" -dumpmachine 2>/dev/null) || target=unknown +printf "%s\n" "$target" # # Convert to just ARCH # -case "$build" in +case "$target" in arm*) ARCH=arm ;; i?86*) ARCH=i386 ;; x86_64*) ARCH=x86_64 ;; -unknown) fail "$0: unable to detect built target; try $0 --build=..." ;; -*) fail "$0: unknown or unsupported build target \"$build\"" ;; +unknown) fail "$0: unable to detect target arch; try $0 --target=..." ;; +*) fail "$0: unknown or unsupported target \"$target\"" ;; esac #