medit/m4/moo-dirs.m4

26 lines
626 B
Plaintext

##############################################################################
# MOO_AC_SET_DIRS(base)
#
AC_DEFUN([MOO_AC_SET_DIRS],[
AC_REQUIRE([MOO_AC_RELOC])
MOO_PACKAGE_NAME=$1
AC_SUBST(MOO_PACKAGE_NAME)
AC_DEFINE([MOO_PACKAGE_NAME], "$1", [package name])
MOO_DATA_DIR="${datadir}/$1"
AC_SUBST(MOO_DATA_DIR)
MOO_LIB_DIR="${libdir}/$1"
AC_SUBST(MOO_LIB_DIR)
MOO_LOCALE_DIR="${datadir}/locale"
AC_SUBST(MOO_LOCALE_DIR)
MOO_TEXT_LANG_FILES_DIR="${MOO_DATA_DIR}/syntax"
AC_SUBST(MOO_TEXT_LANG_FILES_DIR)
moo_includedir=${includedir}/$1
AC_SUBST(moo_includedir)
])