geany/m4/geany-plugins.m4
Thomas Martitz c760e4d172 Resolve a few warnings reported by autoreconf on my system
- AC_PROG_CC_C99 is deprecated, replace with just AC_PROG_CC and an explicit
test for C99 using cache values.
- AM_PROG_LIBTOOL is deprecated, replace with LT_INIT
- AC_USE_SYSTEM_EXTENSIONS must be used before AC_LINK_IFELSE, apparently
2022-02-10 21:43:51 +01:00

30 lines
882 B
Plaintext

dnl GEANY_CHECK_PLUGINS
dnl Checks whether to enable plugins support
dnl AC_DEFINEs HAVE_PLUGINS and AM_CONDITIONALs PLUGINS
dnl Result is available in the geany_enable_plugins variable
AC_DEFUN([GEANY_CHECK_PLUGINS],
[
AC_REQUIRE([AC_DISABLE_STATIC])
AC_REQUIRE([LT_INIT])
AC_ARG_ENABLE([plugins],
[AS_HELP_STRING([--disable-plugins], [compile without plugin support [default=no]])],
[geany_enable_plugins=$enableval],
[geany_enable_plugins=yes])
dnl silent libtool if it's not already done
AS_CASE(["$LIBTOOL"],
[*--silent*], [],
[LIBTOOL="$LIBTOOL --silent"
AC_SUBST([LIBTOOL])])
if test "x$geany_enable_plugins" = "xyes" ; then
AC_DEFINE([HAVE_PLUGINS], [1], [Define if plugins are enabled.])
AM_CONDITIONAL([PLUGINS], true)
else
AM_CONDITIONAL([PLUGINS], false)
fi
GEANY_STATUS_ADD([Build with plugin support], [$geany_enable_plugins])
])