annotate modules/common/configure-post.ac @ 4733:a5210e70ffbe
No need to fatal () on startup if $PWD doesn't exist; chdir to "/" instead.
src/ChangeLog addition:
2009-11-08 Aidan Kehoe <kehoea@parhasard.net>
* sysfile.h (DEFAULT_DIRECTORY_FALLBACK):
New #define, "/" on Unix and "C:\\" on Win32 native, a directory
that should "always" be available.
* fileio.c (Fexpand_file_name): Use DEFAULT_DIRECTORY_FALLBACK
here, instead of conditionalising on WIN32_NATIVE.
* editfns.c (get_home_directory):
Use DEFAULT_DIRECTORY_FALLBACK if looking up the home directory
fails, on both Windows and Unix.
* buffer.c (init_initial_directory):
Don't give a fatal error if the current directory doesn't exist,
chdir to DEFAULT_DIRECTORY_FALLBACK instead.
author |
Aidan Kehoe <kehoea@parhasard.net> |
date |
Sun, 08 Nov 2009 17:27:26 +0000 |
parents |
d87493ecc64b |
children |
fe82be65969e |
rev |
line source |
1083
|
1
|
|
2 # This part should appear unchanged in every module configure.ac
|
|
3 AC_SUBST(PROGNAME, "module")
|
|
4 AC_SUBST(MOD_CC, "@ELLCC@")
|
|
5 AC_SUBST(MODARCHDIR, "\$(shell @ELLCC@ --mod-archdir)")
|
|
6 AC_SUBST(MAKE_DOCFILE, "\$(MODARCHDIR)/make-docfile")
|
|
7 AC_SUBST(MODCFLAGS, "\$(CFLAGS) --mode=compile --mod-output=\$@ -I\$(MODARCHDIR)/include")
|
|
8 AC_SUBST(INSTALLPATH, "\$(shell @ELLCC@ --mod-site-location)")
|
|
9 AC_SUBST(MOD_INSTALL_PROGRAM, "@INSTALL_PROGRAM@")
|
|
10 AC_SUBST(OBJECT_TO_BUILD, "\$(MODNAME).ell")
|
|
11
|
|
12 AC_CONFIG_FILES([Makefile.in Makefile])
|
|
13 AC_OUTPUT
|