Commit 676516f8 authored by nicoo's avatar nicoo

New upstream version 1.1.0

parent a14b0999
2018-01-04 Alessio Di Mauro <alessio@yubico.com>
* NEWS: Version 1.1.0
2018-01-04 Alessio Di Mauro <alessio@yubico.com>
* configure.ac: Bump AC and LT version number
2018-01-04 Alessio Di Mauro <alessio@yubico.com>
* Makefile.am, README, configure.ac, gtk-doc/Makefile.am,
gtk-doc/gtk-doc.make, gtk-doc/u2f-server-docs.xml, m4/gtk-doc.m4:
Drop gtk-doc We decided to drop gtk-doc since later versions require significant
rework for not much gain.
2017-12-18 Alessio Di Mauro <alessio@yubico.com>
* : commit eea59f260ba2fe71aee911e60068743acf00dc40 Author: Björn
Esser <besser82@fedoraproject.org> Date: Fri Dec 15 11:50:05 2017
+0100
2017-10-12 Alessio Di Mauro <alessio@yubico.com>
* : commit 840550d4841855d468f5a32df72f8cbbc938035a Author: Alex
Reid <alex@choosecase.com> Date: Wed Oct 11 11:10:34 2017 -0400
2017-03-27 Alessio Di Mauro <a-dma@users.noreply.github.com>
* : Merge pull request #28 from Yubico/autoconf-janitor Janitorial: Autoconf
2017-01-13 Thordur Bjornsson <thorduri@yubico.com>
* src/Makefile.am: u2f-server: Dont remove the man text file on
clean.
2017-01-13 Thordur Bjornsson <thorduri@yubico.com>
* configure.ac, u2f-server/core.c, u2f-server/version.c: auto, lib:
Use AC_USE_SYSTEM_EXTENSIONS. Rather then defining _GNU_SOURCE or _POSIX_C_SOURCE directly, use
the autotools magik and pray to ${DEITY}. Fix missing header (spotted during -std=c99 sweep).
2017-01-13 Thordur Bjornsson <thorduri@yubico.com>
* configure.ac: auto: Summary fixups - Emit CFLAGS/CPPFLAGS - Capitalize version
2017-01-13 Thordur Bjornsson <thorduri@yubico.com>
* configure.ac: auto: Require ac 2.69, nicer AC_INIT
2017-01-13 Thordur Bjornsson <thorduri@yubico.com>
* src/cmdline.ggo, src/u2f-server.c, u2f-server/openssl.c: lib,
u2f-server: Introduce --x509cert. Dumps the attestation certificate to the provided file PEM
formatted. dumpCert() now emits it as well (under --debug). Fixes #7
2017-01-13 Thordur Bjornsson <thorduri@users.noreply.github.com>
* : Merge pull request #25 from Yubico/attestation-cert Make the attestation cert available.
2015-12-17 Michael Larson <larsonm.pdx@gmail.com>
* configure.ac, tests/core.c, u2f-server/core.c,
u2f-server/crypto.h, u2f-server/internal.h, u2f-server/openssl.c,
u2f-server/u2f-server.h, u2f-server/u2f-server.map: lib: Introduce
u2fs_get_registration_attestation. `u2fs_reg_res` gains new members (at the end), and we provide an
extraction function(s) Introduce dump_x509_cert and additional tests. Crank the libtool version, and add the new functionality to the map
file.
2015-12-17 Michael Larson <larsonm.pdx@gmail.com>
* u2f-server/core.c: lib: Fix typo
2017-01-12 Thordur Bjornsson <thorduri@yubico.com>
* README: README: Drop gtk-doc from build/dep blurbs. Is going to get replaced soon-ish (TM).
2017-01-12 Thordur Bjornsson <thorduri@yubico.com>
* build-aux/travis: travis: h2a is disabled by default
2017-01-12 Thordur Bjornsson <thorduri@yubico.com>
* README: README: Formatting
2017-01-12 Thordur Bjornsson <thorduri@yubico.com>
* configure.ac: auto: Check for help2man/gengetopt, and bail out if
not found. Both are required to build. While here, if `--enable-tests` passed, check for `check` and if not
found, bail out as well.
2017-01-12 Thordur Bjornsson <thorduri@yubico.com>
* README: README: Update build/dep blurbs. Now contains deps for Debian/RHEL/macOS, along with build
instructions. Tested on Ubuntu 16.10, Centos 7.2, and OSX 10.11.6.
2017-01-12 Thordur Bjornsson <thorduri@yubico.com>
* tests/Makefile.am: tests: Add missing LIBCHECK deps
2017-01-12 Thordur Bjornsson <thorduri@yubico.com>
* README: README: Prefer a license badge to the blurb
2017-01-12 Thordur Bjornsson <thorduri@yubico.com>
* README: README: Drop Portability blurb
2017-01-12 Thordur Bjornsson <thorduri@yubico.com>
* README: README: Drop Namespaces blurb
2017-01-12 Thordur Bjornsson <thorduri@yubico.com>
* BLURB: gc: BLURB
2017-01-12 Thordur Bjornsson <thorduri@users.noreply.github.com>
* : Merge pull request #22 from Yubico/janitor Janitorial patches
2017-01-11 Thordur Bjornsson <thorduri@yubico.com>
* .travis.yml, build-aux/travis: travis: Build on OSX. Move dep installation into the build script.
2017-01-11 Thordur Bjornsson <thorduri@yubico.com>
* u2f-server/Makefile.am: build: Add missing LIBCRYPTO deps
2017-01-11 Thordur Bjornsson <thorduri@yubico.com>
* autogen.sh: build: Introduce autogen.sh
2016-12-12 Alessio Di Mauro <alessio@alessiodimauro.com>
* u2f-server/core.c: minor format fixup
2016-12-12 Alessio Di Mauro <a-dma@users.noreply.github.com>
* : Merge pull request #21 from
krakjoe/memory-errors-in-challenge-json fix memory errors in challenge generation
2016-12-09 Joe Watkins <krakjoe@php.net>
* u2f-server/core.c: valgrind shows memory errors around this code,
because the reference counts of objects are not managed properly
2016-11-21 Alessio Di Mauro <alessio@alessiodimauro.com>
* README: Update README
2016-11-21 Alessio Di Mauro <a-dma@users.noreply.github.com>
* : Merge pull request #20 from gktrk/optional_tests Make tests with CHECK optional at configure time
2016-09-12 Klas Lindfors <klas@yubico.com>
* src/Makefile.am: add order-only dep on executable for u2f-server.1
2016-05-06 Alessio Di Mauro <alessio@yubico.com>
* configure.ac: Turn h2a off by default Make life easier to the user while building and have help2adoc be
off by default since it is a non-standard package. Closes #17.
2016-05-06 Alessio Di Mauro <alessio@yubico.com>
* README: Add gengetop to README Gengetopt is required when building from git. Mention it in the
README. Closes #16.
2016-05-06 Alessio Di Mauro <alessio@yubico.com>
* configure.ac: Print a message if CHECK is not installed The default action for autconf is to quit with an error when a
package is missing. Warn the user and continue execution instead. Closes #15.
2015-12-24 Alessio Di Mauro <alessio@yubico.com>
* u2f-server/core.c, u2f-server/internal.h: Remove unnecessary
additional representation of the public key.
2015-12-22 Alessio Di Mauro <alessio@yubico.com>
* man/u2f-server.1.txt: Bump man version as well.
2015-12-18 Alessio Di Mauro <a-dma@users.noreply.github.com>
* : Merge pull request #12 from
larsonmpdx/add-initially-setting-result-nulls-to-verify-functions Set result of verify() functions to null.
2015-12-17 Michael Larson <larsonm.pdx@gmail.com>
* u2f-server/core.c: set result of verify() functions to null
2015-12-17 Michael Larson <larsonm.pdx@gmail.com>
* u2f-server/core.c: base64 is 75% efficient (4 characters encode 3
bytes)
2015-11-12 Alessio Di Mauro <a-dma@users.noreply.github.com>
* : Merge pull request #10 from Trundle/fix_typo Fix typo
2015-07-09 Alessio Di Mauro <alessio@yubico.com>
* NEWS, configure.ac: Bump versions.
2015-07-08 Alessio Di Mauro <alessio@yubico.com>
* NEWS: Version 1.0.1.
......@@ -152,7 +355,7 @@
configure.ac, src/Makefile.am, u2f-server/Makefile.am: add coverage
report and let travis report it to coveralls
2014-12-01 Henrik Stråth <minisu@users.noreply.github.com>
2014-12-01 Henrik Strth <minisu@users.noreply.github.com>
* NEWS: Update NEWS
......@@ -166,7 +369,7 @@
2014-11-25 Alessio Di Mauro <alessio@yubico.com>
* doc/MakeRelease.adoc, doc/Make_Release.adoc: Renamed to improve
* doc/{MakeRelease.adoc => Make_Release.adoc}: Renamed to improve
rendering on devyco.
2014-11-25 Alessio Di Mauro <alessio@yubico.com>
......@@ -209,7 +412,7 @@
2014-11-25 Alessio Di Mauro <alessio@yubico.com>
* tests/Makefile.am, tests/u2f-server-test.sh, tests/u2f-server.sh:
* tests/Makefile.am, tests/{u2f-server.sh => u2f-server-test.sh}:
Renamed u2f-server test script. Fixed distcheck.
2014-11-24 Alessio Di Mauro <alessio@yubico.com>
......
......@@ -25,11 +25,15 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
SUBDIRS = u2f-server src tests gtk-doc
SUBDIRS = u2f-server src
if ENABLE_TESTS
SUBDIRS+=tests
endif
ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
DISTCHECK_CONFIGURE_FLAGS = --enable-tests
if ENABLE_COV
cov-reset:
......
# Makefile.in generated by automake 1.14.1 from Makefile.am.
# Makefile.in generated by automake 1.15 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
# Copyright (C) 1994-2014 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
......@@ -41,7 +41,17 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
VPATH = @srcdir@
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
......@@ -104,22 +114,10 @@ PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
@ENABLE_TESTS_TRUE@am__append_1 = tests
subdir = .
DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog THANKS \
$(srcdir)/Makefile.in $(srcdir)/Makefile.am \
$(top_srcdir)/configure $(am__configure_deps) COPYING \
build-aux/ar-lib build-aux/compile build-aux/config.guess \
build-aux/config.sub build-aux/depcomp build-aux/install-sh \
build-aux/missing build-aux/ltmain.sh \
$(top_srcdir)/build-aux/ar-lib $(top_srcdir)/build-aux/compile \
$(top_srcdir)/build-aux/config.guess \
$(top_srcdir)/build-aux/config.sub \
$(top_srcdir)/build-aux/install-sh \
$(top_srcdir)/build-aux/ltmain.sh \
$(top_srcdir)/build-aux/missing
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/gtk-doc.m4 \
$(top_srcdir)/m4/ld-version-script.m4 \
am__aclocal_m4_deps = $(top_srcdir)/m4/ld-version-script.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 \
......@@ -127,6 +125,8 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/gtk-doc.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
$(am__configure_deps) $(am__DIST_COMMON)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(install_sh) -d
......@@ -187,7 +187,17 @@ am__define_uniq_tagged_files = \
ETAGS = etags
CTAGS = ctags
CSCOPE = cscope
DIST_SUBDIRS = $(SUBDIRS)
DIST_SUBDIRS = u2f-server src tests
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/build-aux/ar-lib \
$(top_srcdir)/build-aux/compile \
$(top_srcdir)/build-aux/config.guess \
$(top_srcdir)/build-aux/config.sub \
$(top_srcdir)/build-aux/install-sh \
$(top_srcdir)/build-aux/ltmain.sh \
$(top_srcdir)/build-aux/missing AUTHORS COPYING ChangeLog \
INSTALL NEWS README THANKS build-aux/ar-lib build-aux/compile \
build-aux/config.guess build-aux/config.sub build-aux/depcomp \
build-aux/install-sh build-aux/ltmain.sh build-aux/missing
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
......@@ -259,12 +269,8 @@ EGREP = @EGREP@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
GREP = @GREP@
GTKDOC_CHECK = @GTKDOC_CHECK@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
GTKDOC_REBASE = @GTKDOC_REBASE@
HELP2ADOC = @HELP2ADOC@
HELP2MAN = @HELP2MAN@
HTML_DIR = @HTML_DIR@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
......@@ -287,6 +293,7 @@ LTLIBOBJS = @LTLIBOBJS@
LT_AGE = @LT_AGE@
LT_CURRENT = @LT_CURRENT@
LT_REVISION = @LT_REVISION@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
......@@ -362,6 +369,7 @@ pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
......@@ -370,9 +378,9 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = u2f-server src tests gtk-doc
SUBDIRS = u2f-server src $(am__append_1)
ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
DISTCHECK_CONFIGURE_FLAGS = --enable-tests
all: all-recursive
.SUFFIXES:
......@@ -391,7 +399,6 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnits Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
......@@ -612,15 +619,15 @@ dist-xz: distdir
$(am__post_remove_distdir)
dist-tarZ: distdir
@echo WARNING: "Support for shar distribution archives is" \
"deprecated." >&2
@echo WARNING: "Support for distribution archives compressed with" \
"legacy program 'compress' is deprecated." >&2
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
$(am__post_remove_distdir)
dist-shar: distdir
@echo WARNING: "Support for distribution archives compressed with" \
"legacy program 'compress' is deprecated." >&2
@echo WARNING: "Support for shar distribution archives is" \
"deprecated." >&2
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
$(am__post_remove_distdir)
......@@ -656,17 +663,17 @@ distcheck: dist
esac
chmod -R a-w $(distdir)
chmod u+w $(distdir)
mkdir $(distdir)/_build $(distdir)/_inst
mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
chmod a-w $(distdir)
test -d $(distdir)/_build || exit 0; \
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
&& am__cwd=`pwd` \
&& $(am__cd) $(distdir)/_build \
&& ../configure \
&& $(am__cd) $(distdir)/_build/sub \
&& ../../configure \
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
$(DISTCHECK_CONFIGURE_FLAGS) \
--srcdir=.. --prefix="$$dc_install_base" \
--srcdir=../.. --prefix="$$dc_install_base" \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
......@@ -844,6 +851,8 @@ uninstall-am:
mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
uninstall-am
.PRECIOUS: Makefile
@ENABLE_COV_TRUE@cov-reset:
@ENABLE_COV_TRUE@ rm -fr coverage
......
libu2f-server NEWS -- History of user-visible changes. -*- outline -*-
* Version 1.1.0 (released 2018-01-04)
** Add the possibility to dump the attestation certificate.
** Correctly handle the refcount of json-c objects.
** General fixes and improvements.
* Version 1.0.1 (released 2015-07-09)
** General fixes and improvements.
** Changed pkg-config settings to accommodate changes in OpenSSL.
......
Yubico Universal 2nd Factor (U2F) Server C Library
==================================================
image:https://img.shields.io/badge/License-BSD%202--Clause-orange.svg["License, link=https://opensource.org/licenses/BSD-2-Clause"]
image:https://travis-ci.org/Yubico/libu2f-server.svg?branch=master["Build Status", link="https://travis-ci.org/Yubico/libu2f-server"]
image:https://coveralls.io/repos/Yubico/libu2f-server/badge.svg?branch=master["Coverage Status", link="https://coveralls.io/r/Yubico/libu2f-server?branch=master"]
image:https://scan.coverity.com/projects/5685/badge.svg["Coverity Status", link=https://scan.coverity.com/projects/5685]
......@@ -25,14 +26,6 @@ limitation, and we hope to address this as soon as possible. Please
be sure to understand the implication of this before using the
library.
License
-------
The project is licensed under a BSD license. See the file COPYING for
exact wording. For any copyright year range specified as YYYY-ZZZZ in
this package note that the range specifies every single year in that
closed interval.
Versioning
----------
......@@ -45,9 +38,6 @@ backwards compatible, and +PATCH+ is incremented when minor changes are done.
Usage
-----
The library usage is documented in the API manual, see gtk-doc/html/
after you have built with +./configure --enable-gtk-doc+.
There is a command line utility that is useful for debugging or
testing. We describe how you can use it here.
......@@ -166,72 +156,44 @@ which will report either a successful or a failed authentication.
For successful authentication the counter value and the user
presence value will be printed as well.
[[building]]
Building
--------
This project uses 'autoconf', 'automake' and 'libtool' to achieve
portability and ease of use. If you downloaded a tarball, build it as
follows.
This project has a handful of Dependencies that must be satisfied prior to
build -- consult `build-aux/travis` for insights if you run into issues.
Autotools are required, this includes `autoconf`, `automake` and `libtool`,
`check` is only required for tests, and the library will build with out.
Debian:
-----------
$ ./configure --enable-gtk-doc
$ make check && sudo make install
# apt-get install check gengetopt help2man libssl-dev libjson-c-dev
-----------
The JSON library is needed, see: +
https://github.com/json-c/json-c/wiki +
Debian: +apt-get install libjson0-dev+ +
You will also need OpenSSL: +
https://www.openssl.org/ +
Debian: +apt-get install libssl-dev+ +
In order to perform self tests with +make check+,
the Check Framework should be installed. However this is not required
to build the library. +
http://check.sourceforge.net/ +
Debian: +apt-get install check+ +
Building from Git
-----------------
You may check out the sources using Git with the following command:
RHEL:
-----------
$ git clone git://github.com/Yubico/libu2f-server.git
# yum install check-devel gengetopt help2man openssl-devel json-c-devel
-----------
This will create a directory 'libu2f-server'. Enter the directory:
macOS:
-----------
$ cd libu2f-server
$ brew install check gengetopt help2man json-c openssl pkg-config
$ export PKG_CONFIG_PATH=$(brew --prefix openssl)/lib/pkgconfig
-----------
Autoconf, automake and libtool must be installed. Help2man is used to
generate the manpages.
Generate the build system using:
Building from a release tarball:
-----------
$ autoreconf --install
$ ./configure --enable-tests
$ make && make check
# make install
-----------
Then build as usual, see above under <<building,Building>>.
From source:
Portability
-----------
The main development platform is Debian GNU/Linux and it should be
well supported.
Namespaces
----------
......
Project name: Yubico Universal 2nd Factor (U2F) Server C Library
Short name: libu2f-server
Symbol prefix: u2fs_
Tool: u2f-server
Pkg-config: u2f-server
......
\ No newline at end of file
$ ./autogen.sh
$ ./configure --enable-tests
$ make && make check
# make install
-----------
This diff is collapsed.
......@@ -4,7 +4,7 @@
me=ar-lib
scriptversion=2012-03-01.08; # UTC
# Copyright (C) 2010-2013 Free Software Foundation, Inc.
# Copyright (C) 2010-2014 Free Software Foundation, Inc.
# Written by Peter Rosin <peda@lysator.liu.se>.
#
# This program is free software; you can redistribute it and/or modify
......
......@@ -3,7 +3,7 @@
scriptversion=2012-10-14.11; # UTC
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
......
This diff is collapsed.
#! /bin/sh
# Configuration validation subroutine script.
# Copyright 1992-2014 Free Software Foundation, Inc.
# Copyright 1992-2016 Free Software Foundation, Inc.
timestamp='2014-09-11'
timestamp='2016-11-04'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
......@@ -25,7 +25,7 @@ timestamp='2014-09-11'
# of the GNU General Public License, version 3 ("GPLv3").
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
# Please send patches to <config-patches@gnu.org>.
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
......@@ -33,7 +33,7 @@ timestamp='2014-09-11'
# Otherwise, we print the canonical config type on stdout and succeed.
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
......@@ -53,8 +53,7 @@ timestamp='2014-09-11'
me=`echo "$0" | sed -e 's,.*/,,'`
usage="\
Usage: $0 [OPTION] CPU-MFR-OPSYS
$0 [OPTION] ALIAS
Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
Canonicalize a configuration name.
......@@ -68,7 +67,7 @@ Report bugs and patches to <config-patches@gnu.org>."
version="\
GNU config.sub ($timestamp)
Copyright 1992-2014 Free Software Foundation, Inc.
Copyright 1992-2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
......@@ -117,8 +116,8 @@ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
knetbsd*-gnu* | netbsd*-gnu* | \
kopensolaris*-gnu* | \
knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
kopensolaris*-gnu* | cloudabi*-eabi* | \
storm-chaos* | os2-emx* | rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
......@@ -255,12 +254,13 @@ case $basic_machine in
| arc | arceb \
| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
| avr | avr32 \
| ba \
| be32 | be64 \
| bfin \
| c4x | c8051 | clipper \
| d10v | d30v | dlx | dsp16xx \
| epiphany \
| fido | fr30 | frv \
| e2k | epiphany \
| fido | fr30 | frv | ft32 \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| hexagon \
| i370 | i860 | i960 | ia64 \
......@@ -301,11 +301,12 @@ case $basic_machine in
| open8 | or1k | or1knd | or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle \
| pru \
| pyramid \
| riscv32 | riscv64 \
| rl78 | rx \
| score \
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
......@@ -313,6 +314,7 @@ case $basic_machine in
| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
| ubicom32 \
| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
| visium \
| we32k \
| x86 | xc16x | xstormy16 | xtensa \
| z8k | z80)
......@@ -327,6 +329,9 @@ case $basic_machine in
c6x)
basic_machine=tic6x-unknown
;;
leon|leon[3-9])
basic_machine=sparc-$basic_machine
;;
m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
basic_machine=$basic_machine-unknown
os=-none
......@@ -372,12 +377,13 @@ case $basic_machine in
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* | avr32-* \
| ba-* \
| be32-* | be64-* \
| bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* \
| c8051-* | clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \
| elxsi-* \
| e2k-* | elxsi-* \
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
......@@ -423,13 +429,15 @@ case $basic_machine in
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
| pru-* \
| pyramid-* \
| riscv32-* | riscv64-* \
| rl78-* | romp-* | rs6000-* | rx-* \
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
| sparclite-* \
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
| tahoe-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
| tile*-* \
......@@ -437,6 +445,7 @@ case $basic_machine in
| ubicom32-* \
| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
| vax-* \
| visium-* \