medit/m4/moo-dirs.m4

31 lines
885 B
Plaintext
Raw Normal View History

##############################################################################
# MOO_AC_SET_DIRS(base)
#
AC_DEFUN([MOO_AC_SET_DIRS],[
datadir=share
libdir=lib
if test "x${prefix}" = "xNONE"; then
prefix=${ac_default_prefix}
fi
if test "x{datadir}" = "xNONE"; then
2006-03-13 00:13:47 -08:00
datadir=${ac_default_datadir}
fi
if test "x{libdir}" = "xNONE"; then
2006-03-13 00:13:47 -08:00
libdir=${ac_default_libdir}
fi
2006-03-13 00:13:47 -08:00
MOO_DATA_DIR="${prefix}/${datadir}/$1"
AC_SUBST(MOO_DATA_DIR)
AC_DEFINE_UNQUOTED(MOO_DATA_DIR, "${MOO_DATA_DIR}", [data dir])
2006-03-15 00:16:42 -08:00
MOO_LIB_DIR="${prefix}/${libdir}/$1"
2006-03-13 00:13:47 -08:00
AC_SUBST(MOO_LIB_DIR)
AC_DEFINE_UNQUOTED(MOO_LIB_DIR, "${MOO_LIB_DIR}", [lib dir])
MOO_TEXT_LANG_FILES_DIR="${MOO_DATA_DIR}/syntax"
AC_SUBST(MOO_TEXT_LANG_FILES_DIR)
2006-03-13 00:13:47 -08:00
AC_DEFINE_UNQUOTED(MOO_TEXT_LANG_FILES_DIR, "${MOO_TEXT_LANG_FILES_DIR}", [lang files dir])
])