configure

Branch


Log

Author Commit Date CI Message
Thomas de Grivel 1a31123c 2025-10-27T08:59:37 accept options host and target
Thomas de Grivel d29b954d 2025-10-26T20:47:05 fix bashisms
Mark Adler 88ec2467 2024-01-20T18:29:31 Remove -w compile option in configure test. Not all C compilers have a -w option.
Dan Kegel 9404df5a 2020-05-22T14:35:01 Use updated zconf.h when building out of directory with configure.
Mark Adler 0f68a0d8 2023-08-18T16:17:04 Limit the length of Darwin shared library version number.
Mark Adler 5dc7681f 2023-08-18T16:01:06 Fix version numbering for Darwin shared library.
Mark Adler 09155eaa 2023-08-18T01:45:36 zlib 1.3
OldWorldOrdr daf27aed 2023-03-05T17:46:04 Look for a cross-compile libtool first in configure. Permit cross-compilation for Darwin.
Mark Adler 1411ccaf 2023-08-12T11:03:46 Add memory sanitizer to configure (--memory). This also adds --address for the address sanitizer, in addition to the existing --sanitizer. -fno-omit-frame-pointer has been added for both sanitizers to improve the error reporting.
Dimitri Papadopoulos c7ddcc2e 2023-02-02T15:50:00 Fix some spelling errors.
Mark Adler e9d5486e 2023-04-14T01:42:03 Remove K&R function definitions from zlib. C2X has removed K&R definitions from the C function syntax. Though the standard has not yet been approved, some high-profile compilers are now issuing warnings when such definitions are encountered.
Mark Adler 5799c14c 2023-04-13T20:09:52 Turn off C2X warning about deprecated K&R function syntax. This is a temporary workaround before excising the K&R prototypes.
Mark Adler 723abd54 2022-10-10T11:11:12 Minor formatting changes in configure. No code changes.
Mark Adler 0091cb02 2022-10-10T11:00:49 Fix linking on AIX with gcc.
Mark Adler 29fd715f 2022-10-10T02:40:53 Turn off RWX segment warnings on sparc systems.
Mark Adler d30b763d 2022-10-09T19:44:32 Remove vestigial line from configure.
Mark Adler 013c0ca0 2022-10-09T16:55:49 Search for system name in CHOST instead of trying to extract it.
Mark Adler 8cca42c3 2022-10-09T15:40:35 Remove bypass of MinGW gcc case in configure.
Mark Adler d0704a82 2022-10-06T12:52:49 Remove deleted assembler code references. The code was removed, but the builds that used the code were not updated. This fixes that. Thanks to Adenilson and toxieainc for the patches.
Mark Adler 095da077 2022-10-06T01:03:18 Remove -pedantic from configure -w compile options.
Mark Adler 22aec0cb 2022-07-31T09:31:52 Add -g when debugging with -fsanitize=address to include symbols.
Mark Adler 05796d3d 2022-03-28T18:34:10 Fix configure issue that discarded provided CC definition.
Mark Adler e9a52aa1 2022-03-27T13:47:33 Check for cc masquerading as gcc or clang in configure.
Mark Adler 6847291e 2022-03-27T01:05:08 Separate out address sanitizing from warnings in configure.
Mark Adler f8719f5a 2018-12-11T01:11:38 Speed up software CRC-32 computation by a factor of 1.5 to 3. Use the interleaved method of Kadatch and Jenkins in order to make use of pipelined instructions through multiple ALUs in a single core. This also speeds up and simplifies the combination of CRCs, and updates the functions to pre-calculate and use an operator for CRC combination.
Mark Adler be5e3647 2017-02-18T23:07:01 Add address checking in clang to -w option of configure.
Mark Adler cca27e95 2016-12-31T10:03:09 Avoid the need for ssize_t. Limit read() and write() requests to sizes that fit in an int. This allows storing the return value in an int, and avoiding the need to use or construct an ssize_t type. This is required for Microsoft C, whose _read and _write functions take an unsigned request and return an int.
Mark Adler f12d3dc3 2016-12-30T18:58:46 Detect clang in cc version.
Mark Adler 3f8c7687 2016-12-04T16:50:49 Fix compile option for when z_size_t needs to be a long long.
Mark Adler ca50ebd4 2016-12-03T10:27:14 Create z_size_t and z_ssize_t types. Normally these are set to size_t and ssize_t. But if they do not exist, then they are set to the smallest integer type that can contain a pointer. size_t is unsigned and ssize_t is signed.
Mark Adler fc130cdd 2016-10-30T09:33:25 Add --debug (-d) option to ./configure to define ZLIB_DEBUG.
Mark Adler 8b95fa19 2016-10-11T22:21:04 Add --warn option to ./configure, instead of environment variable.
Mark Adler 55d98b4c 2015-08-02T14:46:58 Allow building zlib outside of the source directory. To build, simply run configure from the source directory by specifying its path. That path will be used to find the source files. The source directory will not be touched. All new and modified files will be made in the current directory. Discovered in the process that not all makes understand % or $<, and not all compilers understand -include or -I-. This required a larger Makefile.in with explicit dependencies.
Mark Adler 03ff48cc 2013-03-23T22:27:43 Remove runtime check in configure for four-byte integer type. That didn't work when cross-compiling. Simply rely on limits.h. If a compiler does not have limits.h, then zconf.h.in should be modified to define Z_U4 as an unsiged four-byte integer type in order for crc32() to be fast. This also simplifies and makes more portable to check for a four- byte type using limits.h.
Mark Adler 66fcefbb 2013-03-23T13:50:10 Fix configure for Sun shell.
Mark Adler 62d6112a 2012-08-12T18:08:52 Clean up the usage of z_const and respect const usage within zlib. This patch allows zlib to compile cleanly with the -Wcast-qual gcc warning enabled, but only if ZLIB_CONST is defined, which adds const to next_in and msg in z_stream and in the in_func prototype. A --const option is added to ./configure which adds -DZLIB_CONST to the compile flags, and adds -Wcast-qual to the compile flags when ZLIBGCCWARN is set in the environment.
Mark Adler bfac1564 2012-06-09T22:42:24 Fix configure check for veracity of compiler error return codes. There were two problems before that this fixes. One was that the check for the compiler error return code preceded the determination of the compiler and its options. The other was that the checks for compiler and library characteristics could be fooled if the error options were set to reject K&R-style C. configure now aborts if the compiler produces a hard error on K&R-style C. In addition, aborts of configure are now consistent, and remove any temporary files.
Mark Adler 977e1080 2012-06-09T19:47:55 Delete "--version" file if created by "ar --version" [Richard G.].
Mark Adler 148b8f63 2012-06-09T22:58:06 Cleaner check for whether libtool is Apple or not on Darwin.
Mark Adler a72bcd56 2012-06-09T19:15:36 On Darwin, only use /usr/bin/libtool if libtool is not Apple. The original change was to always use /usr/bin/libtool on Darwin, in order to avoid using a GNU libtool installed by the user in the path ahead of Apple's libtool. However someone might install a more recent Apple libtool ahead of /usr/bin/libtool. This commit checks to see if libtool is Apple, and uses /usr/bin/libtool if it isn't.
Mark Adler dee3d4ae 2012-05-01T21:17:08 Force the native libtool in Mac OS X to avoid GNU libtool [Beebe].
Mark Adler dbcdbf8c 2012-04-29T18:23:46 Fix location of executable for finding a four-byte integer.
Mark Adler 6c9bd474 2012-04-29T16:18:12 Fix type mismatch between get_crc_table() and crc_table. crc_table is made using a four-byte integer (when that can be determined). However get_crc_table() returned a pointer to an unsigned long, which could be eight bytes. This fixes that by creating a new z_crc_t type for the crc_table. This type is also used for the BYFOUR crc calculations that depend on a four-byte type. The four-byte type can now be determined by ./configure, which also solves a problem where ./configure --solo would never use BYFOUR. No the Z_U4 #define indicates that four- byte integer was found either by ./configure or by zconf.h.
Mark Adler cc538ebf 2012-04-22T18:41:11 Remove -R. from Solaris shared build (possible security issue).
Mark Adler 6635b789 2012-04-22T18:27:41 Update ./configure for Solaris, support --64 [Mooney].
Mark Adler 3fb77ac0 2012-04-01T08:46:37 Add more comments to configure.
Mark Adler a3881cc7 2012-03-14T23:14:13 Recognize clang as gcc.
Mark Adler dab7531e 2012-03-03T00:20:00 Simplify test and use of gcc hidden attribute.
Mark Adler 3f4339b6 2012-02-19T23:31:55 Improve the detection of no hidden visibility attribute.
Mark Adler 6838df92 2012-02-18T13:55:09 Test for existence of strerror. SunOS 4.1 claims that it is __STDC__, but it does not have strerror in string.h. Instead of using __STDC__, this puts a direct test for strerror in configure, and uses that information in gzguts.h.
Mark Adler 2dadd2fa 2012-02-03T22:56:16 Use name in GCC_CLASSIC as C compiler for coverage testing, if set. Apple removed support for gcov in the default gcc compiler chain, when they moved to llvm. This can be circumvented in XCode 4.2 by using the gcc chain with gcc-4.2. This patch allows setting GCC_CLASSIC to the name of a real gcc executable (e.g. "gcc-4.2") to allow coverage testing.
Mark Adler 5461db94 2012-01-29T09:27:41 Use the -m option on ldconfig for BSD systems [Tobias].
Mark Adler 520561c5 2012-01-28T14:48:50 Add the generation of configure.log by ./configure.
Mark Adler 2d55657c 2012-01-16T14:50:09 Have ./configure use the compiler return code for error indication. Previously ./configure would use any output on stderr as an indication that the compilation failed. However if some compiler wrapper uses stderr for some other purpose, e.g. distcc for nodes going down, then ./configure would not properly configure the build. This problem was noted by Mike Frysinger. For backwards compatibility, ./configure will revert to the old way, i.e. checking for anything on stderr, if when it deliberately runs the compiler with an error, a zero exit status is returned.
Mark Adler d169dd73 2011-11-13T13:04:26 Split off AR options in Makefile.in and configure. Adds ARFLAGS variable for options, where AR is now just the command name. So now $(AR) $(ARFLAGS) is used to build the static library.
Mark Adler d66a3079 2011-10-09T10:16:43 Add --cover option to ./configure for gcc coverage testing. This adds the -fprofile-arcs and -ftest-coverage options when compiling the source code for the static library. Those same options must then be used when linking the static library into an executable. This updates Makefile.in to remove and .gitignore to ignore the files generated when testing coverage.
Mark Adler f442c1e8 2011-10-07T01:57:07 Add a ./config --solo option to make zlib subset with no libary use A common request has been the ability to compile zlib to require no other libraries. This --solo option provides that ability. The price is that the gz*, compress*, and uncompress functions are eliminated, and that the user must provide memory allocation and free routines to deflate and inflate when initializing.
Mark Adler 10daf0d4 2011-09-11T11:04:49 zlib 1.2.5.1
Mark Adler 9712272c 2011-09-09T23:35:10 zlib 1.2.5
Mark Adler 73014202 2011-09-09T23:34:55 zlib 1.2.4.5
Mark Adler a7d70663 2011-09-09T23:34:45 zlib 1.2.4.4
Mark Adler f4498bea 2011-09-09T23:34:38 zlib 1.2.4.3
Mark Adler 7147f24c 2011-09-09T23:34:30 zlib 1.2.4.2
Mark Adler 05d47d26 2011-09-09T23:34:22 zlib 1.2.4.1
Mark Adler 59ca2179 2011-09-09T23:33:23 zlib 1.2.4-pre2
Mark Adler 67cc20d0 2011-09-09T23:32:36 zlib 1.2.4-pre1
Mark Adler 7751bd4c 2011-09-09T23:27:26 zlib 1.2.3.9
Mark Adler e0ff940e 2011-09-09T23:27:17 zlib 1.2.3.8
Mark Adler 7df877ec 2011-09-09T23:27:08 zlib 1.2.3.7
Mark Adler dc5a43eb 2011-09-09T23:26:58 zlib 1.2.3.6
Mark Adler f6194ef3 2011-09-09T23:26:40 zlib 1.2.3.4
Mark Adler 639be997 2011-09-09T23:26:29 zlib 1.2.3.3
Mark Adler d6231142 2011-09-09T23:25:38 zlib 1.2.3.2
Mark Adler b1c19ca6 2011-09-09T23:25:27 zlib 1.2.3.1
Mark Adler 9c3a5830 2011-09-09T23:24:52 zlib 1.2.2.4
Mark Adler 0484693e 2011-09-09T23:24:33 zlib 1.2.2.2
Mark Adler 7a695576 2011-09-09T23:23:45 zlib 1.2.1.2
Mark Adler 7a33a861 2011-09-09T23:23:27 zlib 1.2.1
Mark Adler a2506218 2011-09-09T23:23:14 zlib 1.2.0.8
Mark Adler b97ec631 2011-09-09T23:23:01 zlib 1.2.0.7
Mark Adler 4b5a43a2 2011-09-09T23:22:37 zlib 1.2.0.5
Mark Adler 086e9821 2011-09-09T23:22:30 zlib 1.2.0.4
Mark Adler 8e34b3a8 2011-09-09T23:22:10 zlib 1.2.0.2
Mark Adler 7c2a874e 2011-09-09T23:21:47 zlib 1.2.0
Mark Adler 14763ac7 2011-09-09T23:20:29 zlib 1.1.3
Mark Adler c34c1fcb 2011-09-09T23:20:15 zlib 1.1.2
Mark Adler 965fe72a 2011-09-09T23:19:55 zlib 1.1.0
Mark Adler b8c9ecb0 2011-09-09T23:19:21 zlib 1.0.9
Mark Adler 6759211a 2011-09-09T23:18:57 zlib 1.0.8
Mark Adler 7850e4e4 2011-09-09T23:17:33 zlib 1.0.7
Mark Adler 423eb403 2011-09-09T23:14:39 zlib 1.0.1
Mark Adler 8a2acbff 2011-09-09T23:13:27 zlib 1.0-pre
Mark Adler 56bcb184 2011-09-09T23:11:37 zlib 0.99