From 278883d0e2fbf698370b8ddb16b79d5fff0febf3 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 3 Jun 2012 16:22:13 -0400 Subject: fix configure build/host/target terminology usage --- configure | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 4bf84637..e3d97c2c 100755 --- a/configure +++ b/configure @@ -2,7 +2,7 @@ usage () { cat </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 # -- cgit v1.2.1