diff options
author | Dan Kegel <dank@kegel.com> | 2020-07-15 15:35:23 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-07-17 15:34:32 +0200 |
commit | df1e959a8ef1e56576bc962d61632ff4762bdcf9 (patch) | |
tree | f10cb00cd18a6cdc3e0494d1f4f8207d99b89e32 /tools | |
parent | b3ccf82b825569500e4da0fa04df848649dbd49f (diff) |
configure: move config.sub to tools subdir
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/config.sub | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/config.sub b/tools/config.sub new file mode 100755 index 0000000..3d50a16 --- /dev/null +++ b/tools/config.sub @@ -0,0 +1,17 @@ +#!/bin/sh +# Canonicalize CHOST. +# In particular, converts Debian multiarch tuples into GNU triplets. +# See also +# https://wiki.debian.org/Multiarch/Tuples +# https://wiki.gentoo.org/wiki/CHOST +# If you need an architecture not listed here, file a bug at github.com/zlib-ng/zlib-ng +# and work around the problem by dropping libtool's much more comprehensive config.sub +# on top of this file, see +# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub + +case "$1" in +*-*-linux-gnu) echo $1;; +i686-linux-gnu|x86_64-linux-gnu*) echo $1 | sed 's/-linux-gnu/-pc-linux-gnu/';; +*-linux-gnu*) echo $1 | sed 's/-linux-gnu/-unknown-linux-gnu/';; +*) echo $1;; +esac |