summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* bumped versionNikos Mavrogiannopoulos2019-03-261-1/+1
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* configure.ac: remove --with-guile-site-dirAlon Bar-Lev2019-03-231-22/+1
| | | | | | | | | | The hack of distcheck is not known and should not be the default as the GUILE_SITE_DIR macro is the default expected behavior. There is little value in specifying any other location of the site-dir as it is out of the guile configuration so best to remove. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
* Use https:// for arbitrary files #1Tim Rühsen2019-03-131-3/+3
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* doc: removed cyclo subdirtmp-remove-doc-cycloNikos Mavrogiannopoulos2019-03-091-1/+0
| | | | | | | | | | This directory had a makefile which was intended to calculate the cyclomatic complexity, however that was not functional, and not related with gnutls' documentation. Resolves: #727 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Update ax_code_coverage.m4 to latest release of autoconf-archivetmp-update-ax-code-coverageTim Rühsen2019-02-221-0/+1
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Remove typedef'ing ssize_t in gnutls.htmp-ssize-tTim Rühsen2019-02-121-12/+0
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Use inet_pton() from gnulibtmp-gnulib-ptonTim Rühsen2019-02-101-5/+1
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Use inet_ntop() from gnulibtmp-gnulib-ntopTim Rühsen2019-02-071-1/+1
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* build: pass NETTLE_LIBS together with HOGWEED_LIBSDmitry Eremin-Solenikov2019-02-021-2/+2
| | | | | | | libhogweed might depend on exact non-system-wide nettle, so let's pass NETTLE_LIBS flags together when using HOGWEED_LIBS. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* build: detect previous supported guileAlon Bar-Lev2019-01-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | A recent change in the m4 macro of guile enforces latest guile: --- AC_DEFUN([GUILE_PROGS], [_guile_required_version="m4_default([$1], [$GUILE_EFFECTIVE_VERSION])" if test -z "$_guile_required_version"; then _guile_required_version=2.2 fi --- The result: --- checking for guile-snarf... /usr/bin/guile-snarf checking for guild... /usr/bin/guild checking for guile-2.2... no checking for guile2.2... no checking for guile-2... no checking for guile2... no checking for guile... /usr/bin/guile checking for Guile version >= 2.2... configure: error: Guile 2.2 required, but 2.0.14 found --- Probably best to specify the supported version explicitly when calling GUILE_PROGS, to keep existing behavior calling the GUILE_PKG detects the existing packages. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
* bumped versionsNikos Mavrogiannopoulos2019-01-251-1/+3
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* configure.ac: fix substitution for libatomictmp-fix-macosxDmitry Eremin-Solenikov2019-01-241-1/+4
| | | | Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* Merge branch 'master' into 'master'Nikos Mavrogiannopoulos2019-01-231-0/+3
|\ | | | | | | | | configure.ac: check if libatomic is needed See merge request gnutls/gnutls!878
| * configure.ac: add comment for -latomicFabrice Fontaine2019-01-231-0/+1
| | | | | | | | Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
| * configure.ac: check if libatomic is neededFabrice Fontaine2019-01-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gnutls source code uses the C++11 <atomic> functionality since https://github.com/gnutls/gnutls/commit/7978a733460f92b31033affd0e487c86d66c643d, which internally is implemented using the __atomic_*() gcc built-ins On certain architectures, the __atomic_*() built-ins are implemented in the libatomic library that comes with the rest of the gcc runtime. Due to this, code using <atomic> might need to link against libatomic, otherwise one hits build issues such as: ../lib/.libs/libgnutls.so: undefined reference to `__atomic_fetch_sub_4' on an architecture like SPARC. To solve this, a configure.ac check is added to know if we need to link against libatomic or not. The library is also added to gnutls.pc. Fixes: - http://autobuild.buildroot.org/results/6c749bd592ceffeacadd2ab570d127936cce64b2 - http://autobuild.buildroot.org/results/30aa83d3cf3482af8a59250c196c85f4a278d343 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
* | Fix gnutls.pc for multiarch buildstmp-fix-libs-privateTim Rühsen2019-01-171-7/+7
|/ | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Revert "build: remove src/*.bak from distribution"tmp-autogen-bak-revertDaiki Ueno2019-01-081-5/+4
| | | | | | | This reverts commit 9ba397aa841730e4824d2bf8537aa15e711ad9b3, as it turned out to be not practical. See !862 for the discussion. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* Update required autoconf version to 2.63Tim Rühsen2019-01-021-1/+1
| | | | | | | | | | This fixes the bootstrap error with the latest gnulib: gnulib/gnulib-tool: *** minimum supported autoconf version is 2.63. Try adding AC_PREREQ([2.63]) to your configure.ac. gnulib/gnulib-tool: *** Stop. ./bootstrap: gnulib-tool failed Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* vasprintf: use from gnulib; don't bundle twiceNikos Mavrogiannopoulos2018-12-191-23/+1
| | | | | | Relates #653 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* tests/cert-tests/certtool: SKIP if --disable-bash-tests was givenTim Rühsen2018-12-181-0/+5
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Merge branch 'unicode_support' into 'master'Nikos Mavrogiannopoulos2018-12-151-0/+1
|\ | | | | | | | | Unicode support See merge request gnutls/gnutls!838
| * configure.ac: Always enable unicode support on windowsHugo Beauzée-Luyssen2018-12-131-0/+1
| |
* | build: remove src/*.bak from distributionTim Rühsen2018-12-121-4/+5
|/ | | | | | | | | | | | | Instead, include the autogen-generated *.c, *.h and the stamp files in the distribution. To prevent the bundled files being linked with incompatible autogen libopts, this adds an extra check in configure. If the detected system libopts version is too old, it will use the included libopts implementation. Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de> Signed-off-by: Daiki Ueno <dueno@redhat.com>
* Constant time/cache PKCS#1 RSA decryptiontmp-fix-CVE-2018-16868Simo Sorce2018-11-301-0/+9
| | | | | | | | | | | This patch tries to make the code have the same time and memory access aptterns across all branches of the decryption function so that timining or cache side channels are minimized or neutralized. To do so it uses a new nettle rsa decryption function that is side-channel silent. Signed-off-by: Simo Sorce <simo@redhat.com>
* bumped versionNikos Mavrogiannopoulos2018-11-301-1/+1
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Merge branch 'tmp-autogen-bak' into 'master'Nikos Mavrogiannopoulos2018-11-141-15/+4
|\ | | | | | | | | build: remove autogen .bak files from repository See merge request gnutls/gnutls!801
| * build: remove autogen .bak files from the repositoryDaiki Ueno2018-11-131-11/+0
| | | | | | | | | | | | | | | | | | | | While the .bak files are necessary for not requiring autogen on deployment environment, they are not needed for development and may cause conflict when other developers use different version of autogen. This removes those files from the repository and require autogen at make dist time. Signed-off-by: Daiki Ueno <dueno@redhat.com>
| * build: use AM_MISSING_PROG for autogenDaiki Ueno2018-11-131-4/+4
| | | | | | | | | | | | | | That makes error message more friendly when autogen is not installed on developing environment. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | configure.ac: drop obsolete info lineDmitry Eremin-Solenikov2018-11-141-1/+0
|/ | | | | | | | | | Since 4b567871 there is no `ac_enable_session_tickets` variable, so let's drop obsolete remnants. Closes #616 Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Noted-by: Dilyan Palauzov
* Merge branch 'tmp-f29' into 'master'Dmitry Eremin-Solenikov2018-11-121-0/+6
|\ | | | | | | | | | | | | .gitlab-ci.yml: move to fedora29 for CI Closes #607 See merge request gnutls/gnutls!794
| * tls13: use system's openssl for interop testingNikos Mavrogiannopoulos2018-11-101-0/+6
| | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | configure.ac: merge autogen/libopts checksDmitry Eremin-Solenikov2018-11-101-14/+11
| | | | | | | | | | | | | | Move handling of autogen/libopts to a single place. Enforce usage of local libopts if autogen is not found. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* | src: args-std.def: substitute variables using configureDmitry Eremin-Solenikov2018-11-101-0/+1
|/ | | | | | | | | Use standard way (configure script) to substiture variables in args-std.def file, instead of manually replacing them in dist-hook. Fixes #567 Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* Vendor in CMAC functionality from NettleSimo Sorce2018-10-281-0/+6
| | | | | | | | If nettle's CMAC is not available, use a vendored in version from master. This is necessary as long as we need to link against 3.4 for ABI compatibility reasons. Signed-off-by: Simo Sorce <simo@redhat.com>
* Vendor in CFB8 functionality from NettleSimo Sorce2018-10-241-0/+6
| | | | | | | | If nettle's CFB8 is not available, use a vendored in version from master. This is necessary as long as we need to link against 3.4 for ABI compatibility reasons. Signed-off-by: Simo Sorce <simo@redhat.com>
* pkcs11 uris: the URI scheme is case insensitivetmp-urisNikos Mavrogiannopoulos2018-10-121-1/+1
| | | | | | | | | | | Makes the comparisons of the URI scheme to use c_strcasecmp from gnulib. It also replaces various straw strcasecmp with the gnulib variant. This ensures that comparison will be reliable irrespective of the locale. Resolves #590 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* bumped versions and updated NEWS fileNikos Mavrogiannopoulos2018-09-241-1/+1
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* gnutls_memset: use explicit_bzeroNikos Mavrogiannopoulos2018-08-081-1/+1
| | | | | | | | | That is, use the glibc function when available and the second parameter is zero. Resolves #230 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* Fix gcc-8 -Wabi warningsTim Rühsen2018-07-271-0/+1
| | | | | | Fixes #531 Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* bumped versionsNikos Mavrogiannopoulos2018-07-141-1/+1
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* tests: check explicitly the size of time_tNikos Mavrogiannopoulos2018-07-021-1/+2
| | | | | | | | Previously we were disabling the 2038 tests on 32-bit systems, but there can be 32-bit systems with a 64-bit time_t. Ensure that we run the right tests. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* aarch64: use getauxval() if available to discover cpu capstmp-aarch64Nikos Mavrogiannopoulos2018-06-241-1/+1
| | | | | | | | This improves CPU detection by avoiding the parsing of of a human-readable file and allows operation under debian multilib qemu setup. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Add configure argument to disable GOST supportDmitry Eremin-Solenikov2018-06-231-0/+1
| | | | Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* Fix usage of 'autoreconf'Tim Rühsen2018-06-161-1/+1
| | | | | | | | | | | 'autoreconf' created a different configure script than ./bootstrap. The result was a broken wchar.h that failed to compile. The work-around was 'autoreconf -I gl/m4' which is not what a developer expects. This patch moves gl/m4/* to m4/ which is the default include dir for autoreconf. Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* configure: Check for clock_gettime and fmemopen using a proper testMartin Storsjo2018-06-161-1/+18
| | | | | | | | | | | | | | Don't use AC_CHECK_FUNCS for these functions, but actually test by including the real header that defines the functions. This allows the macOS version selection work as intended, making the references to these functions weak if targeting a version of macOS where these functions aren't available. Thanks to -no_weak_imports, these weak references end up in failed linker tests, marking the functions as unavailable. This fixes issue #142. Signed-off-by: Martin Storsjo <martin@martin.st>
* configure: Include sys/random.h before checking for getentropy on macOSMartin Storsjo2018-06-161-0/+3
| | | | | | | | | | | | | | | This function is available since macOS 10.12, but it's in sys/random.h on macOS, contrary to the other platforms supporting it where it is present in unistd.h. If we don't include the right header that declares the function and its availability, the configure check would succeed even if targeting older versions of macOS that lacks the function. Also include the same header in the source file that actually uses getentropy. Signed-off-by: Martin Storsjo <martin@martin.st>
* configure: Pass -no_weak_imports to the linker, if supportedMartin Storsjo2018-06-161-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids linking to functions that aren't available in the lowest targeted macOS version. If the proper header declaring a function is included, and gnutls is built with -mmacosx-version-min or the MACOSX_DEPLOYMENT_TARGET environment variable is set, each reference to a function that doesn't exist in the minimum targeted version will be made a weak reference, so that loading the binary still works, but the function pointer will resolve to NULL if running on a version of the platform that lacks it. Since this project doesn't do such runtime checks for functions it expects to have available, we should instead add this linker option to fail on the weak references. This allows autoconf to work as intended, detecting that these functions aren't usable. This flag appeared in Xcode 8, so check for its availability before using it. (Xcode 8 and the 10.12 SDK is coincidentally the release where most relevant new functions appeared, so with older Xcode versions, the modern platform functions we might want to avoid don't exist.) See issue #142. Signed-off-by: Martin Storsjo <martin@martin.st>
* configure: Remove a duplicate check for fmemopenMartin Storsjo2018-06-161-1/+1
| | | | | | | The duplicate was added in 5bb8a18b without any specific reasoning as to why. Signed-off-by: Martin Storsjo <martin@martin.st>
* corrected check for iovec types in libcNikos Mavrogiannopoulos2018-06-141-1/+1
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* configure: reduce warnings about implicit-fallthrough [ci skip]Nikos Mavrogiannopoulos2018-06-141-0/+1
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>