Check for dlopen in standard libraries first (needed for DEC OSF).

This commit is contained in:
Guus Sliepen 2001-06-29 14:15:46 +00:00
parent c9591bd1de
commit 9391efe4e8

View file

@ -29,8 +29,11 @@ AC_DEFUN(tinc_OPENSSL,
[AC_MSG_ERROR("OpenSSL libraries not found.")]
)
AC_CHECK_LIB(dl, dlopen,
[LIBS="$LIBS -ldl"],
[AC_MSG_ERROR("OpenSSL depends on libdl.")]
AC_CHECK_FUNC(dlopen,
[],
AC_CHECK_LIB(dl, dlopen,
[LIBS="$LIBS -ldl"],
[AC_MSG_ERROR("OpenSSL depends on libdl.")]
)
)
])