gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / config / plugins.m4
CommitLineData
5691d22d
NC
1AC_DEFUN([AC_PLUGINS],
2[
b879806f
AM
3 maybe_plugins=no
4 AC_CHECK_HEADERS([dlfcn.h], [maybe_plugins=yes], [], [AC_INCLUDES_DEFAULT])
5 AC_CHECK_HEADERS([windows.h], [maybe_plugins=yes], [], [AC_INCLUDES_DEFAULT])
6
7 AC_ARG_ENABLE([plugins],
8 AS_HELP_STRING([--enable-plugins], [Enable support for plugins]),
9 [case "${enableval}" in
10 no) plugins=no ;;
11 *) plugins=yes
12 if test "$maybe_plugins" != "yes" ; then
13 AC_MSG_ERROR([Building with plugin support requires a host that supports dlopen.])
14 fi ;;
15 esac],
16 [plugins=$maybe_plugins]
17 )
2974be62 18 if test "$plugins" = "yes"; then
552d4da4 19 AC_SEARCH_LIBS([dlsym], [dl])
2974be62 20 fi
5691d22d 21])
This page took 0.459286 seconds and 4 git commands to generate.