File: aclocal.m4

package info (click to toggle)
psgml 1.1.6-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 868 kB
  • ctags: 827
  • sloc: lisp: 8,100; sh: 392; makefile: 200
file content (31 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
dnl -------------------------------
dnl Emacs LISP file handling
dnl     Idea stolen from Ulrich Drepper's <drepper@ipd.info.uni-karlsruhe.de>
dnl     gettext-0.10 package
dnl     We do not check for EMACS
dnl -------------------------------
AC_DEFUN(ke_PATH_LISPDIR,
    [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)"
  AC_SUBST(LISPDIR)])