diff options
author | Tom Tromey <tromey@redhat.com> | 1996-10-06 03:55:55 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 1996-10-06 03:55:55 +0000 |
commit | c19b562063efff67909e72ee7abe63c0960706a7 (patch) | |
tree | c0eece059f58fbe63dd3696f6dd1d3b5b58db87a /m4/lispdir.m4 | |
parent | 9e3559f10b3f25fc9e51191cc5568da1e3f7f45a (diff) | |
download | automake-c19b562063efff67909e72ee7abe63c0960706a7.tar.gz |
Many bug fixes
Diffstat (limited to 'm4/lispdir.m4')
-rw-r--r-- | m4/lispdir.m4 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/m4/lispdir.m4 b/m4/lispdir.m4 new file mode 100644 index 000000000..d223cb840 --- /dev/null +++ b/m4/lispdir.m4 @@ -0,0 +1,35 @@ +## ------------------------ +## Emacs LISP file handling +## From Ulrich Drepper +## ------------------------ + +# serial 1 + +AC_DEFUN(AM_PATH_LISPDIR, + [AC_PATH_PROG(EMACS, emacs xemacs, no) + if test $EMACS != "no"; then + AC_MSG_CHECKING([where .elc files should go]) + dnl Set default value + LISPDIR="\$(datadir)/emacs/site-lisp" + if test "x$prefix" = "xNONE"; then + if test -d $ac_default_prefix/share/emacs/site-lisp; then + LISPDIR="\$(prefix)/share/emacs/site-lisp" + else + if test -d $ac_default_prefix/lib/emacs/site-lisp; then + LISPDIR="\$(prefix)/lib/emacs/site-lisp" + fi + fi + else + if test -d $prefix/share/emacs/site-lisp; then + LISPDIR="\$(prefix)/share/emacs/site-lisp" + else + if test -d $prefix/lib/emacs/site-lisp; then + LISPDIR="\$(prefix)/lib/emacs/site-lisp" + fi + fi + fi + AC_MSG_RESULT($LISPDIR) + ELCFILES="\$(ELCFILES)" + fi + AC_SUBST(LISPDIR) + AC_SUBST(ELCFILES)]) |