From: Evan Hunt Date: Fri, 27 Feb 2015 17:05:03 +0000 (-0800) Subject: [master] include dso.h when testing DSO_METHOD_dlfcn X-Git-Tag: v9.11.0a1~951 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=d5eeaed6088569d051b39aa523f282702ff6f6a1;p=thirdparty%2Fbind9.git [master] include dso.h when testing DSO_METHOD_dlfcn --- diff --git a/configure b/configure index cbf8edb7505..85ac03ca477 100755 --- a/configure +++ b/configure @@ -15724,6 +15724,8 @@ $as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; } /* end confdefs.h. */ #include +#include + int main () { @@ -15741,6 +15743,7 @@ else /* end confdefs.h. */ #include +#include int main () diff --git a/configure.in b/configure.in index 6a8c47c1942..ed0775ab76f 100644 --- a/configure.in +++ b/configure.in @@ -1539,12 +1539,15 @@ shared library configuration (e.g., LD_LIBRARY_PATH).)], AC_MSG_CHECKING(whether linking with OpenSSL requires -ldl) AC_TRY_LINK([ -#include ], +#include +#include +], [ DSO_METHOD_dlfcn(); ], [AC_MSG_RESULT(no)], [LIBS="$LIBS -ldl" AC_TRY_LINK([ #include +#include ],[ DSO_METHOD_dlfcn(); ], [AC_MSG_RESULT(yes) DST_OPENSSL_LIBS="$DST_OPENSSL_LIBS -ldl"