Add --with-site-start support to configure

The autoconf/automake files now honour --with-site-start to allow
selection of the directory where automatically sourced elisp files are
stored.  The original default is retained.

This switch makes support of non-debian systems easier.  RHEL5, for
example, places these files in /usr/emacs/site-lisp/site-start.d/.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
This commit is contained in:
Ben Walton 2010-03-14 15:59:30 -04:00 committed by Phil Jackson
parent 0fc398039d
commit 6d71fb57ae
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,5 @@
lispdir = $(datadir)/emacs/site-lisp
sitestartdir = $(sysconfdir)/emacs/site-start.d
sitestartdir = @SITESTART@
lisp_DATA = magit.el magit.elc
sitestart_DATA = 50magit.el

View file

@ -2,6 +2,12 @@ AC_INIT(magit, 0.8)
AC_CONFIG_SRCDIR([magit.el])
AM_INIT_AUTOMAKE
AC_ARG_WITH([site-start],
AS_HELP_STRING([--with-site-start], [Provide the emacs site-start directory. The default is $(sysconfdir)/emacs/site-start.el.]),
[ SITESTART="$withval" ],
[ SITESTART='$(sysconfdir)/emacs/site-start.d' ])
AC_SUBST([SITESTART])
AC_CONFIG_FILES([Makefile
magit-pkg.el])