diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-25 12:05:36 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-25 12:05:36 -0800 |
commit | 36f13e1667c66073ef18c4ee3394865c3b7c6cbb (patch) | |
tree | be36845ff1a7ffadcfa590589d099fb681d019ba /m4 | |
parent | 4394ee04741d5fe2fd4cc7a7ee821e1f8a3f2d32 (diff) | |
download | emacs-36f13e1667c66073ef18c4ee3394865c3b7c6cbb.tar.gz |
Simplify symlink portability workaround.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/dos.m4 | 71 | ||||
-rw-r--r-- | m4/gl-comp.m4 | 4 | ||||
-rw-r--r-- | m4/stat.m4 | 3 |
3 files changed, 4 insertions, 74 deletions
diff --git a/m4/dos.m4 b/m4/dos.m4 deleted file mode 100644 index ed9c4cee670..00000000000 --- a/m4/dos.m4 +++ /dev/null @@ -1,71 +0,0 @@ -#serial 11 -*- autoconf -*- - -# Define some macros required for proper operation of code in lib/*.c -# on MSDOS/Windows systems. - -# Copyright (C) 2000-2001, 2004-2006, 2009-2011 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# From Jim Meyering. - -AC_DEFUN([gl_AC_DOS], - [ - AC_CACHE_CHECK([whether system is Windows or MSDOS], [ac_cv_win_or_dos], - [ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ -#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__ -neither MSDOS nor Windows -#endif]])], - [ac_cv_win_or_dos=yes], - [ac_cv_win_or_dos=no]) - ]) - - if test x"$ac_cv_win_or_dos" = xyes; then - ac_fs_accepts_drive_letter_prefix=1 - ac_fs_backslash_is_file_name_separator=1 - AC_CACHE_CHECK([whether drive letter can start relative path], - [ac_cv_drive_letter_can_be_relative], - [ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ -#if defined __CYGWIN__ -drive letters are always absolute -#endif]])], - [ac_cv_drive_letter_can_be_relative=yes], - [ac_cv_drive_letter_can_be_relative=no]) - ]) - if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then - ac_fs_drive_letter_can_be_relative=1 - else - ac_fs_drive_letter_can_be_relative=0 - fi - else - ac_fs_accepts_drive_letter_prefix=0 - ac_fs_backslash_is_file_name_separator=0 - ac_fs_drive_letter_can_be_relative=0 - fi - - AC_DEFINE_UNQUOTED([FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX], - $ac_fs_accepts_drive_letter_prefix, - [Define on systems for which file names may have a so-called - `drive letter' prefix, define this to compute the length of that - prefix, including the colon.]) - - AH_VERBATIM(ISSLASH, - [#if FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR -# define ISSLASH(C) ((C) == '/' || (C) == '\\') -#else -# define ISSLASH(C) ((C) == '/') -#endif]) - - AC_DEFINE_UNQUOTED([FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR], - $ac_fs_backslash_is_file_name_separator, - [Define if the backslash character may also serve as a file name - component separator.]) - - AC_DEFINE_UNQUOTED([FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE], - $ac_fs_drive_letter_can_be_relative, - [Define if a drive letter prefix denotes a relative path if it is - not followed by a file name component separator.]) - ]) diff --git a/m4/gl-comp.m4 b/m4/gl-comp.m4 index c495389af8f..8bf5a64a5f9 100644 --- a/m4/gl-comp.m4 +++ b/m4/gl-comp.m4 @@ -29,6 +29,7 @@ AC_DEFUN([gl_EARLY], # Code from module arg-nonnull: # Code from module c++defs: # Code from module crypto/md5: + # Code from module dosname: # Code from module dtoastr: # Code from module extensions: AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) @@ -78,6 +79,7 @@ AC_DEFUN([gl_INIT], # Code from module c++defs: # Code from module crypto/md5: gl_MD5 + # Code from module dosname: # Code from module dtoastr: AC_REQUIRE([gl_C99_STRTOLD]) # Code from module extensions: @@ -279,6 +281,7 @@ AC_DEFUN([gl_FILE_LIST], [ build-aux/arg-nonnull.h build-aux/c++defs.h build-aux/warn-on-use.h + lib/dosname.h lib/dtoastr.c lib/filemode.c lib/filemode.h @@ -312,7 +315,6 @@ AC_DEFUN([gl_FILE_LIST], [ lib/unistd.in.h m4/00gnulib.m4 m4/c-strtod.m4 - m4/dos.m4 m4/extensions.m4 m4/filemode.m4 m4/getloadavg.m4 diff --git a/m4/stat.m4 b/m4/stat.m4 index 4883fe25eea..27f82d5a91a 100644 --- a/m4/stat.m4 +++ b/m4/stat.m4 @@ -1,4 +1,4 @@ -# serial 6 +# serial 7 # Copyright (C) 2009-2011 Free Software Foundation, Inc. # @@ -9,7 +9,6 @@ AC_DEFUN([gl_FUNC_STAT], [ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles - AC_REQUIRE([gl_AC_DOS]) AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) AC_CHECK_FUNCS_ONCE([lstat]) dnl mingw is the only known platform where stat(".") and stat("./") differ |