I work on a machine with single sign-on, which I also share with my co-workers, so would like to compile emacs to lookup for a custom startup file instead of the defaults, e.g. .emacs, or .emacs.el or ~/.emacs.d/init.el; as few of the others use the stock emacs package available on the Linux distribution.
I am aware of the fact that I can provide a custom init file on the command line, like so,
$ emacs -q -l /path/to/my/startup.el
But wouldn't prefer to use this as a terminal(pty) needs to opened to type in the command.
Could not get an option in ./configure --help
which helps in this case. So, Googled to find out if this is possible and learned that the startup file differs for various distributions of emacs, such as, XEmacs (.xemacs or ~/.xemacs/init.el) and Aquamacs (~/.emacs or ~/Library/Preferences/Aquamacs Emacs/Preferences.el). Also, on emacs wiki i found that the variable 'user-init-file' let's you decide on init file name/location.
So, it seems, this can be configured. I looked up for the variable 'user-init-file' in emacs repository to figure out how but couldn't. Need help in figuring this out.