uni_plugin.m4 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. dnl
  2. dnl UNI_PLUGIN_ENABLED(name)
  3. dnl
  4. dnl where name is the name of the plugin.
  5. dnl
  6. dnl This macro can be used for a plugin which must be enabled by default.
  7. dnl
  8. dnl Adds the following argument to the configure script:
  9. dnl
  10. dnl --disable-$1-plugin
  11. dnl
  12. dnl Sets the following variable on exit:
  13. dnl
  14. dnl enable_$1_plugin : "yes" or "no"
  15. dnl
  16. AC_DEFUN([UNI_PLUGIN_ENABLED],[
  17. AC_ARG_ENABLE(
  18. [$1-plugin],
  19. [AC_HELP_STRING([--disable-$1-plugin],[exclude $1 plugin from build])],
  20. [enable_$1_plugin="$enableval"],
  21. [enable_$1_plugin="yes"])
  22. ])
  23. dnl
  24. dnl UNI_PLUGIN_DISABLED(name)
  25. dnl
  26. dnl where name is the name of the plugin.
  27. dnl
  28. dnl This macro can be used for a plugin which must be disabled by default.
  29. dnl
  30. dnl Adds the following argument to the configure script:
  31. dnl
  32. dnl --enable-$1-plugin
  33. dnl
  34. dnl Sets the following variable on exit:
  35. dnl
  36. dnl enable_$1_plugin : "yes" or "no"
  37. dnl
  38. AC_DEFUN([UNI_PLUGIN_DISABLED],[
  39. AC_ARG_ENABLE(
  40. [$1-plugin],
  41. [AC_HELP_STRING([--enable-$1-plugin],[include $1 plugin in build])],
  42. [enable_$1_plugin="$enableval"],
  43. [enable_$1_plugin="no"])
  44. ])