4 AC_CHECK_HEADERS([dlfcn.h], [maybe_plugins=yes], [], [AC_INCLUDES_DEFAULT])
5 AC_CHECK_HEADERS([windows.h], [maybe_plugins=yes], [], [AC_INCLUDES_DEFAULT])
7 AC_ARG_ENABLE([plugins],
8 AS_HELP_STRING([--enable-plugins], [Enable support for plugins]),
9 [case "${enableval}" in
12 if test "$maybe_plugins" != "yes" ; then
13 AC_MSG_ERROR([Building with plugin support requires a host that supports dlopen.])
16 [plugins=$maybe_plugins]
18 if test "$plugins" = "yes"; then
19 AC_SEARCH_LIBS([dlsym], [dl])