We are looking into distributing emacs with a commercial piece of
software. I'm fine on the license side of things, my question is how
to make emacs run without knowing where it will be installed in the
directory tree (the end user of our tool is free to install it
anywhere on their disk, and emacs will live as a subdirectory of the
main install point).
For example, if I compile emacs with --prefix set to /local/temp and
then move emacs somewhere else emacs will no longer run (as expected):
Warning: arch-dependent data dir
(/local/temp/libexec/emacs/21.3/sparc-sun-solaris2.8/) does not exist.
Warning: Lisp directory `/local/temp/share/emacs/21.3/site-lisp' does
Warning: Lisp directory `/local/temp/share/emacs/site-lisp' does not
Warning: Lisp directory `/local/temp/share/emacs/21.3/leim' does not
Warning: Lisp directory `/local/temp/share/emacs/21.3/lisp' does not
Cannot open load file: term/x-win
So what I'm looking for is a way to specify to emacs at runtime where
to find the arch-dependent files etc. Is this possible ?