Bump API version for new plugin entry points (oops)
[geany-mirror.git] / m4 / geany-utils.m4
blobc1e76bd8146788ef036a2974047880919589e2cd
1 dnl GEANY_PREFIX
2 dnl Ensures $prefix and $exec_prefix are set to something sensible
3 dnl
4 dnl Logic taken from Geany-Plugins' build/expansions.m4
5 AC_DEFUN([GEANY_PREFIX],
7         if test "x$prefix" = xNONE; then
8                 prefix=$ac_default_prefix
9         fi
11         if test "x$exec_prefix" = xNONE; then
12                 exec_prefix=$prefix
13         fi
16 dnl GEANY_DOCDIR
17 dnl Ensures $docdir is set and AC_SUBSTed
18 dnl
19 dnl FIXME: is this really useful?
20 AC_DEFUN([GEANY_DOCDIR],
22         if test -z "${docdir}"; then
23                 docdir='${datadir}/doc/${PACKAGE}'
24                 AC_SUBST([docdir])
25         fi