summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-06-30 15:22:22 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-07-05 18:45:17 +0200
commit25218fa57abe7ade75af02c6fdce0d011c5efd8a (patch)
tree5852d7a5ae71e998c9c99a240dfe8894fd2bb585
parente73f701cd0ae2ba026018f44a0d084815cab4087 (diff)
downloadgnutls-25218fa57abe7ade75af02c6fdce0d011c5efd8a.tar.gz
configure: check for libdl irrespective of FIPS140 configuration
This allows to link to libdl for the tests that require it.
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 4597a02891..ccbec3b26f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -317,12 +317,13 @@ AC_ARG_ENABLE(self-checks,
AS_HELP_STRING([--enable-self-checks], [enable self checking functionality]),
enable_self_checks=$enableval, enable_self_checks=no)
+AC_LIB_HAVE_LINKFLAGS(dl,, [#include <dlfcn.h>], [dladdr (0, 0);])
+
AC_ARG_ENABLE(fips140-mode,
AS_HELP_STRING([--enable-fips140-mode], [enable FIPS140-2 mode (implies self checks)]),
enable_fips=$enableval, enable_fips=no)
AM_CONDITIONAL(ENABLE_FIPS140, test "$enable_fips" = "yes")
if [ test "$enable_fips" = "yes" ];then
- AC_LIB_HAVE_LINKFLAGS(dl,, [#include <dlfcn.h>], [dladdr (0, 0);])
if test "x$HAVE_LIBDL" = "xyes";then
enable_self_checks=yes