diff options
| author | Paul Eggert | 2011-02-21 17:55:20 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-21 17:55:20 -0800 |
| commit | f68c809d7e91fcde5ee2e4f7f15def3d7e48b720 (patch) | |
| tree | 9df8577ff5f281f066f778dee44bdb839eb13daf /configure | |
| parent | 5ecec6a7f4a1ce83abd53a14fba7f51b668c6336 (diff) | |
| download | emacs-f68c809d7e91fcde5ee2e4f7f15def3d7e48b720.tar.gz emacs-f68c809d7e91fcde5ee2e4f7f15def3d7e48b720.zip | |
[ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* Makefile.in (GNULIB_MODULES): Add sys_stat.
* configure.in: Check for lstat and set HAVE_LSTAT=0 if not.
Pretend to be using the gnulib lstat module for benefit of sys/stat.h.
* configure, lib/Makefile.in, lib/gnulib.mk: Regenerate.
[lib-src/ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* etags.c (S_ISREG): Remove.
[src/ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* config.in: Regenerate.
* dired.c (lstat): Remove.
(file_name_completion): Assume S_ISDIR works.
(file_name_completion_stat): Assume S_ISLNK works.
Do not bother calling stat unless lstat says it's a symlink.
* fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
(Fcopy_file): Assume S_ISREG and S_ISLNK work.
(check_writable, Ffile_writable_p, Fset_file_times):
Assume S_ISDIR works.
(Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
fifos exist.
(Ffile_regular_p, Finsert_file_contents): Assumes S_ISREG works.
* filelock.c (S_ISLNK): Remove.
* lread.c (openp): Assume S_ISDIR works.
* xrdb.c (S_ISDIR): Remove.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 18 |
1 files changed, 18 insertions, 0 deletions
| @@ -2963,6 +2963,7 @@ as_fn_append ac_func_list " tzset" | |||
| 2963 | as_fn_append ac_header_list " sys/stat.h" | 2963 | as_fn_append ac_header_list " sys/stat.h" |
| 2964 | as_fn_append ac_header_list " sys/time.h" | 2964 | as_fn_append ac_header_list " sys/time.h" |
| 2965 | as_fn_append ac_func_list " localtime_r" | 2965 | as_fn_append ac_func_list " localtime_r" |
| 2966 | as_fn_append ac_func_list " lstat" | ||
| 2966 | # Check that the precious variables saved in the cache have kept the same | 2967 | # Check that the precious variables saved in the cache have kept the same |
| 2967 | # value. | 2968 | # value. |
| 2968 | ac_cache_corrupted=false | 2969 | ac_cache_corrupted=false |
| @@ -17211,6 +17212,23 @@ $as_echo "$gl_cv_next_unistd_h" >&6; } | |||
| 17211 | 17212 | ||
| 17212 | 17213 | ||
| 17213 | 17214 | ||
| 17215 | # Emacs does not care about lstat's behavior on files whose names end in | ||
| 17216 | # trailing slashes, so it does not use the gnulib lstat module. | ||
| 17217 | # However, Emacs does want the "#define lstat stat" in sys/stat.h | ||
| 17218 | # when lstat does not exist, so it pretends to use the lstat module | ||
| 17219 | # even though it implements only the lstat-checking part of that module. | ||
| 17220 | |||
| 17221 | |||
| 17222 | |||
| 17223 | test $ac_cv_func_lstat = yes || HAVE_LSTAT=0 | ||
| 17224 | |||
| 17225 | |||
| 17226 | |||
| 17227 | GNULIB_LSTAT=1 | ||
| 17228 | |||
| 17229 | |||
| 17230 | |||
| 17231 | |||
| 17214 | # UNIX98 PTYs. | 17232 | # UNIX98 PTYs. |
| 17215 | for ac_func in grantpt | 17233 | for ac_func in grantpt |
| 17216 | do : | 17234 | do : |