Don't check for dlopen/libdl on *BSD

This makes linking fail on -ldl as there is no libdl on in /usr/lib or /usr/local/lib on *BSD
Tested (and part of the proposed nghttp2 1.7.0) on [https://reviews.freebsd.org/D5218|FreeBSD]
This commit is contained in:
Bernard Spil 2016-02-06 14:36:27 +01:00
parent 8741503db1
commit e4b2847d31
1 changed files with 10 additions and 3 deletions

View File

@ -268,9 +268,16 @@ if test "x${have_zlib}" = "xno"; then
fi
# dl: openssl requires libdl when it is statically linked.
case "${host_os}" in
*bsd*)
# dlopen is in libc on *BSD
;;
*)
save_LIBS=$LIBS
AC_SEARCH_LIBS([dlopen], [dl], [APPLDFLAGS="-ldl $APPLDFLAGS"], [], [])
LIBS=$save_LIBS
;;
esac
# cunit
PKG_CHECK_MODULES([CUNIT], [cunit >= 2.1], [have_cunit=yes], [have_cunit=no])