3 AC_DEFUN(AM_PATH_LISPDIR,
4 [# If set to t, that means we are running in a shell under Emacs.
5 # If you have an Emacs named "t", then use the full path.
6 test "$EMACS" = t && EMACS=
7 AC_PATH_PROG(EMACS, emacs xemacs, no)
8 if test $EMACS != "no"; then
9 AC_MSG_CHECKING([where .elc files should go])
11 lispdir="\$(datadir)/emacs/site-lisp/gnus"
12 if test "x$prefix" = "xNONE"; then
13 if test -d $ac_default_prefix/share/emacs/site-lisp; then
14 lispdir="\$(prefix)/share/emacs/site-lisp/gnus"
16 if test -d $ac_default_prefix/lib/emacs/site-lisp; then
17 lispdir="\$(prefix)/lib/emacs/site-lisp/gnus"
21 if test -d $prefix/share/emacs/site-lisp; then
22 lispdir="\$(prefix)/share/emacs/site-lisp/gnus"
24 if test -d $prefix/lib/emacs/site-lisp; then
25 lispdir="\$(prefix)/lib/emacs/site-lisp/gnus"
29 AC_MSG_RESULT($lispdir)