aiksaurus-plugin.m4 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. aiksaurus_pkgs="aiksaurus-1.0"
  2. aiksaurus_gtk_pkgs="aiksaurusgtk3-1.0"
  3. aiksaurus_deps="no"
  4. if test "$enable_aiksaurus" != ""; then
  5. PKG_CHECK_EXISTS([ $aiksaurus_pkgs ],
  6. [
  7. aiksaurus_deps="yes"
  8. ], [
  9. test "$enable_aiksaurus" = "auto" && AC_MSG_WARN([aiksaurus plugin: dependencies not satisfied - $aiksaurus_pkgs])
  10. ])
  11. fi
  12. if test "$enable_aiksaurus" = "yes" || \
  13. test "$aiksaurus_deps" = "yes"; then
  14. use_builtin_aiksaurus_gtk="no"
  15. if test "$TOOLKIT" = "gtk"; then
  16. PKG_CHECK_EXISTS([ $aiksaurus_gtk_pkgs ],
  17. [
  18. aiksaurus_pkgs="$aiksaurus_pkgs $aiksaurus_gtk_pkgs"
  19. ], [use_builtin_aiksaurus_gtk="yes"])
  20. fi
  21. if test "$enable_aiksaurus_builtin" = "yes"; then
  22. AC_MSG_ERROR([aiksaurus plugin: static linking not supported])
  23. fi
  24. PKG_CHECK_MODULES(AIKSAURUS,[ $aiksaurus_pkgs ])
  25. test "$enable_aiksaurus" = "auto" && PLUGINS="$PLUGINS aiksaurus"
  26. AIKSAURUS_CFLAGS="$AIKSAURUS_CFLAGS "'${PLUGIN_CFLAGS}'
  27. AIKSAURUS_LIBS="$AIKSAURUS_LIBS "'${PLUGIN_LIBS}'
  28. fi
  29. AM_CONDITIONAL([WITH_BUILTIN_AIKSAURUS_GTK],[ test "x$use_builtin_aiksaurus_gtk" = "xyes" ])
  30. AC_SUBST([AIKSAURUS_CFLAGS])
  31. AC_SUBST([AIKSAURUS_LIBS])