summaryrefslogtreecommitdiffstats
path: root/config (follow)
Commit message (Collapse)AuthorAgeFilesLines
* config: Turn into a simple wrapperRichard Levitte2020-06-281-5/+3
| | | | | | | | Now that Configure called config.pm's functions directly, the 'config' script doesn't have much else to do than to pass arguments. Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11230)
* Initial rewrite of config as a Perl moduleRich Salz2020-06-281-920/+6
| | | | | | | | | | | | | | | | | - Use $^X; to find perl. - Big re-ordering: Put all variables at the top, move most inline code into functions. The heart of the script now basically just calls functions to do its work. - Unify warning text, add -w option - Don't use needless (subshells) - Ensure Windows gets a VC-xxx option - Make config a perl module - Top-level "config" command-line is a dummy that just calls the module. Added module stuff so that it can be called from Configure. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11230)
* Update copyright yearMatt Caswell2020-04-231-1/+1
| | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11616)
* config, Configure: move the check of removed crypto/ sub-systemsRichard Levitte2020-03-041-8/+0
| | | | | | | | | | | | | | | | The 'config' script checked for a bunch of crypto/ sub-system directories, and added 'no-' options if they weren't there. We move it to 'Configure' in an effort to simplify 'config' for further work. Note: this is pretty much a historical thing. In modern OpenSSL, it's much simpler to edit the SUBDIRS statement in crypto/build.info. However, it's been claimed the there are those who still remove some of these sub-system sources. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11217)
* config: Drop linux-alpha-gcc+bwxMatt Turner2020-02-251-4/+1
| | | | | | | | | | | | | | | | | Its entry in Configuration/10-main.conf was dropped in commit 7ead0c89185c ("Configure: fold related configurations more aggressively and clean-up.") probably because all but one of its bn_ops were removed (RC4_CHAR remained). Benchmarks on an Alpha EV7 indicate that RC4_INT is better than RC4_CHAR so rather than restoring the configuation, remove it from config. CLA: trivial Bug: https://bugs.gentoo.org/697840 Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11130)
* config: ensure the perl Configure run is the last statementRichard Levitte2020-02-021-6/+7
| | | | | | | | | Running any statement after Configure means we lose its exit code Fixes #10951 Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/10953)
* Russian Elbrus processors supportDmitry Belyavskiy2020-01-221-0/+1
| | | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/10901)
* iOS build: Replace %20 with space in config scriptJohn Schember2019-07-081-4/+4
| | | | | | | | CLA: trivial Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9297)
* Remove NextStep supportRich Salz2019-07-011-11/+0
| | | | | | | | | Because of that we can remove OPENSSL_UNISTD and some other macros from e_os2.h and opensslconf.h Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9204)
* Remove unnecessary trailing whitespaceSam Roberts2019-02-051-8/+8
| | | | | | | | | | | | Trim trailing whitespace. It doesn't match OpenSSL coding standards, AFAICT, and it can cause problems with git tooling. Trailing whitespace remains in test data and external source. Reviewed-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8092)
* Following the license change, modify the boilerplates in last fewRichard Levitte2018-12-061-1/+1
| | | | | | | [skip ci] Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7836)
* Configure: move --noexecstack probe to Configure.Andy Polyakov2018-05-051-8/+0
| | | | | | | | config probe doesn't work in cross-compile scenarios or with clang. In addition consolidate -Qunused-arguments handling. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6174)
* config: fix hpux64-parisc2-gcc detection.Andy Polyakov2018-04-081-6/+5
| | | | | | | | hpux64-parisc2-gcc is chosen based on gcc's bitness, and it was overriden unconditionally. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5742)
* Remove QNX supportRich Salz2018-03-261-17/+0
| | | | | Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5756)
* Update copyright yearMatt Caswell2018-03-201-1/+1
| | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5689)
* Add SM2 signature and ECIES schemesJack Lloyd2018-03-191-1/+1
| | | | | | Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4793)
* config: Pass diverse flags to Configure via the environmentRichard Levitte2018-03-081-25/+78
| | | | | | | | | | | | | | | | Passing flags "discovered" by 'config' on the command line to 'Configure' mixes them up with flags given by the user. That is contrary to their intention, so they need to be passed in a different manner. Enter the environment variables __CNF_CPPDEFINES, __CNF_CPPINCLUDES, __CNF_CPPFLAGS, __CNF_CFLAGS, __CNF_CXXFLAGS, __CNF_LDFLAGS, and __CNF_LDLIBS, initialised by 'config', and then used by Configure to initialise these %config values: defines, includes, cppflags, cflags, cxxflags, lflags, and ex_libs. Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5534)
* Make sure ./config passes options to ./Configure correctlyRichard Levitte2017-12-081-2/+5
| | | | | | | This is, even when they contain spaces or all kinds of funny quotes Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4818)
* SM3: Add SM3 hash functionJack Lloyd2017-11-061-1/+1
| | | | | | | | | | SM3 is a secure hash function which is part of the Chinese "Commercial Cryptography" suite of algorithms which use is required for certain commercial applications in China. Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4616)
* SM4: Add SM4 block cipher to EVPRonald Tse2017-10-311-1/+1
| | | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/4552)
* Remove some commented out codeMatt Caswell2017-10-051-14/+0
| | | | | | Reviewed-by: Ben Kaduk <kaduk@mit.edu> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4462)
* config: get "stty technique" working again on MacOS X.Andy Polyakov2017-09-021-3/+1
| | | | | | | Addresses GH#2167. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4311)
* Better way to recognise mingw64 in config scriptRichard Levitte2017-03-131-2/+9
| | | | Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2922)
* Recognise mingw64 in config scriptRichard Levitte2017-03-131-0/+2
| | | | Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2914)
* Implementation of the ARIA cipher as described in RFC 5794.Pauli2017-02-211-2/+2
| | | | | | | | | | | | | | This implementation is written in endian agnostic C code. No attempt at providing machine specific assembly code has been made. This implementation expands the evptests by including the test cases from RFC 5794 and ARIA official site rather than providing an individual test case. Support for ARIA has been integrated into the command line applications, but not TLS. Implemented modes are CBC, CFB1, CFB8, CFB128, CTR, ECB and OFB128. Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2337)
* Remove annoying and pointless pause.Ben Laurie2017-01-301-10/+5
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2167)
* On x86 machines where the compiler supports -m32, use 'linux-x86'Richard Levitte2016-11-161-1/+8
| | | | | | | | The rationale is that the linux-x86 is the most likely config target to evolve and should therefore be chosen when possible, while linux-elf is mostly reserved for older Linux machines. Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1924)
* Fix support for DragonFly BSDjrmarino2016-10-221-0/+5
| | | | | | | | | The __DragonFly__ macros were introduced in issue #1546 along with a function naming fix, but it was decided they should be handled separately. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1765)
* Trim config outputRich Salz2016-09-091-2/+1
| | | | | | | With extensive help and feedback from Richard and Andy. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Andy Polyakov <appro@openssl.org>
* Add a "config" for verbosity and use it with TravisRichard Levitte2016-08-161-18/+22
| | | | | | Modify VMS config.com to match Reviewed-by: Emilia Käsper <emilia@openssl.org>
* ./config: minor cleanup.Andy Polyakov2016-06-241-28/+5
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* ./config: detect x32-only environment.Andy Polyakov2016-06-241-1/+6
| | | | | | RT#4583 Reviewed-by: Rich Salz <rsalz@openssl.org>
* Add final(?) set of copyrights.Rich Salz2016-06-011-18/+8
| | | | | | | | | Add copyright to missing assembler files. Add copyrights to missing test/* files. Add copyrights Various source and misc files. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Add a case for 64-bit OS X in configRichard Levitte2016-05-121-1/+20
| | | | | | | | | This makes it possible to just run ./config on a x86_64 machine with no extra fuss. RT#4356 Reviewed-by: Tim Hudson <tjh@openssl.org>
* IRIX fixes.Andy Polyakov2016-05-101-12/+0
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Add Haiku support.Jérôme Duval2016-04-141-0/+6
| | | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
* config: fix off-by-centimeter-to-the-right typo.Andy Polyakov2016-03-211-1/+1
| | | | Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* config: fix HP-UX PA-RISC detection.Andy Polyakov2016-03-141-1/+6
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Fix freeze in config's interrupt trap with some shellsRichard Levitte2016-03-141-11/+11
| | | | | | | | | | | | | | | With bash and zsh, the trap on the 5 second read does respond, but doesn't break out of the read. What's worse is that it takes away the 5 second timer, and therefore has the read hang indefinitely and (almost) unbreakable. Having the trap do 'exit 0' after reseting the tty params has it break out of read and continue with the configuration. Other shells do not appear to have the issue described here, but neither does the extra 'exit 0' appear to harm them. Reviewed-by: Andy Polyakov <appro@openssl.org>
* Harmonize the option processing in 'config' and 'config.com'Richard Levitte2016-03-101-1/+1
| | | | | | | | The help text for -d in 'config' was aged, and the option processing in 'config.com' was just different. This harmonizes 'config.com' with the instructions in INSTALL and both current reality. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Remove all -march= from configsRichard Levitte2016-02-231-1/+3
| | | | | | | | | | | These flags are limitting needlessly, are often patched by packagers, and should be specified on the configuration command line by anyone who desires for it to be specific rather than forced by us. This work was already done with mingw when those configs were worked on, now it gets applied to the remaining configs. Reviewed-by: Andy Polyakov <appro@openssl.org>
* unified build scheme: a first introductionRichard Levitte2016-02-011-16/+17
| | | | | | | | | | | | | | | | | | | | | | The "unified" build scheme revolves around small information files, build.info, which each describe their own bit of everything that needs to be built, using a mini-language described in Configurations/README. The information in build.info file contain references to source files and final result. Object files are not mentioned at all, they are simply from source files. Because of this, all the *_obj items in Configurations/*.conf are renamed to *_asm_src and the files listed in the values are change from object files to their corresponding source files. For the sake of the other build schemes, Configure generates corresponding *_obj entries in %target. Furthermore, the "unified" build scheme supports having a build directory tree separate from the source directry tree. All paths in a build.info file is assumed to be relative to its location, either within the source tree or within the build tree. Reviewed-by: Andy Polyakov <appro@openssl.org>
* isalist(1) is obsolete; use isainfo(1)mmiyashi2016-01-221-2/+2
| | | | | Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* Adjust the configuration target name from Cygwin-i686 to Cygwin-x86Richard Levitte2016-01-181-0/+1
| | | | | | This is to reflect that it's not limited to just i686. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Fix configuration system to support different architectures on Cygwin.Corinna Vinschen2016-01-181-11/+2
| | | | | | | | | | | | | | This patch allows to recognize the architectures supported by Cygwin and to choose the right configuration from there. Drop -march to use default architecture on 32 bit x86. Drop pre-Cygwin-1.3 recognition since it's long gone and there's no valid configuration for this anymore. Signed-off-by: Corinna Vinschen <vinschen@redhat.com> Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove remaining Kerberos referencesMatt Caswell2015-05-131-21/+0
| | | | | | | Following on from the removal of libcrypto and libssl support for Kerberos this commit removes all remaining references to Kerberos. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Fix build on MacOS.Ben Laurie2015-05-011-2/+4
| | | | Reviewed-by: Andy Polyakov
* Remove PREFIX, as it's not used any more.Richard Levitte2015-03-231-2/+1
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* Correct the request of debug buildsRichard Levitte2015-03-171-1/+1
| | | | | | | | | | | | | | | | | ./config would translate -d into having the target get a 'debug-' prefix, and then run './Configure LIST' to find out if such a debugging target exists or not. With the recent changes, the separate 'debug-foo' targets are disappearing, and we're giving the normal targets debugging capabilities instead. Unfortunately, './config' wasn't changed to match this new behavior. This change introduces the arguments '--debug' and '--release' - the latter just for orthogonality - to ./Configure, and ./config now treats -d by adding '--debug' to the options for ./Configure. Reviewed-by: Matt Caswell <matt@openssl.org>
* RT3548: Remove some unsupported platforms.Rich Salz2015-01-121-15/+0
| | | | | | | | | This commit removes NCR, Tandem, Cray. Regenerates TABLE. Removes another missing BEOS fluff. The last platform remaining on this ticket is WIN16. Reviewed-by: Richard Levitte <levitte@openssl.org>