Provide win32-based dlapi replacements on windows platforms without dlfcn.h.
commitaebd3a7c76a81e3c88d497f94bf0616545abdf5f
authorDave Korn <dave.korn@artimi.com>
Fri, 15 Oct 2010 16:21:40 +0000 (15 16:21 +0000)
committerDave Korn <dave.korn@artimi.com>
Fri, 15 Oct 2010 16:21:40 +0000 (15 16:21 +0000)
tree487d999456d8f309a0f553e358185df212bf27b4
parentdc814f0f09ac2da6273b77183fbc66ceb3c9218f
Provide win32-based dlapi replacements on windows platforms without dlfcn.h.

ld/ChangeLog:

* configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
* configure: Regenerate.
* config.in: Likewise.
* plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
trival LoadLibrary-based replacement for Windows systems.
[!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
replacement based on GetProcAddress.
[!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
* sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
anymore, use its own guard.
ld/ChangeLog
ld/config.in
ld/configure
ld/configure.in
ld/plugin.c
ld/sysdep.h