]> granicus.if.org Git - libnl/commit
build: allow building cli without dynamic librarires support
authorThomas Haller <thaller@redhat.com>
Fri, 12 May 2017 10:47:19 +0000 (12:47 +0200)
committerThomas Haller <thaller@redhat.com>
Fri, 12 May 2017 10:57:34 +0000 (12:57 +0200)
commitc881a27fbda7233405d91d70ec517386e2d85304
treec27889c980c773b261e01378606752e27d549a96
parent144c6c5e6a31cbcfad9e55256a2b1e20b238b24a
build: allow building cli without dynamic librarires support

Commit 3cb28534d34392ceec4adead0cfa97039796ccb7 enables building
of cli always as part of `make check`. As cli previously always
included <dlfcn.h>, this broke tests for building with toolchains
that don't support dynamic library loading.

Add a configure check and disable dlopen() based on whether
<dlfcn.h> is available.

Signed-off-by: Thomas Haller <thaller@redhat.com>
https://github.com/thom311/libnl/pull/141
configure.ac
include/netlink/cli/utils.h
src/lib/utils.c