Edit

kc3-lang/automake/m4/lispdir.m4

Branch :

  • Show log

    Commit

  • Author : Akim Demaille
    Date : 2000-08-02 08:59:16
    Hash : 4b893ece
    Message : * m4: Quote properly the name of the macros being defined. Use `#' instead of `dnl' where appropriate. * m4/header.m4 (AM_CONFIG_HEADER): Get rid of changequote, just quote. Don't quote passive characters. Pull the AC_PREREQ outside the macro. * m4/init.m4: Pull the AC_PREREQ outside the macro.

  • m4/lispdir.m4
  • ## ------------------------
    ## Emacs LISP file handling
    ## From Ulrich Drepper
    ## Almost entirely rewritten by Alexandre Oliva
    ## ------------------------
    
    # serial 3
    
    AC_DEFUN([AM_PATH_LISPDIR],
     [AC_ARG_WITH(lispdir, 
      [   --with-lispdir            Override the default lisp directory ],
      [ lispdir="$withval" 
        AC_MSG_CHECKING([where .elc files should go])
        AC_MSG_RESULT($lispdir)],
      [
      # If set to t, that means we are running in a shell under Emacs.
      # If you have an Emacs named "t", then use the full path.
      test x"$EMACS" = xt && EMACS=
      AC_CHECK_PROGS(EMACS, emacs xemacs, no)
      if test $EMACS != "no"; then
        if test x${lispdir+set} != xset; then
          AC_CACHE_CHECK([where .elc files should go], [am_cv_lispdir], [dnl
    	am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'`
    	if test -z "$am_cv_lispdir"; then
    	  am_cv_lispdir='${datadir}/emacs/site-lisp'
    	fi
          ])
          lispdir="$am_cv_lispdir"
        fi
      fi
     ])
     AC_SUBST(lispdir)])