diff options
| author | Paul Eggert | 2011-02-20 02:51:50 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-20 02:51:50 -0800 |
| commit | 5fa4ac767c6aaf9203d2ec6ff2f90a061b401930 (patch) | |
| tree | c433fefa9db8edd699775cbd61cf21bc2883cd10 /configure | |
| parent | 61353ac8cdbdda53d75f5ab9aa7f0b637aee5a00 (diff) | |
| download | emacs-5fa4ac767c6aaf9203d2ec6ff2f90a061b401930.tar.gz emacs-5fa4ac767c6aaf9203d2ec6ff2f90a061b401930.zip | |
Import filemode module from gnulib.
* .bzrignore: Add lib/sys/.
* Makefile.in (GNULIB_MODULES): Add filemode.
* lib/Makefile.am (MOSTLYCLEANDIRS): New macro.
* lib/filemode.c: Renamed from src/filemode.c and regenerated
from gnulib. This adds support for some more file types, e.g.,
Cray DMF migrated files.
* lisp/emacs-lisp/find-gc.el (find-gc-source-files): Remove filemode.c.
* lib/filemode.h, lib/sys_stat.in.h, m4/filemode.m4, m4/st_dm_mode.m4:
* m4/sys_stat_h.m4: New files, generated from gnulib.
* aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
Regenerate.
2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 260 |
1 files changed, 260 insertions, 0 deletions
| @@ -677,6 +677,40 @@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC | |||
| 677 | TIME_H_DEFINES_STRUCT_TIMESPEC | 677 | TIME_H_DEFINES_STRUCT_TIMESPEC |
| 678 | NEXT_AS_FIRST_DIRECTIVE_TIME_H | 678 | NEXT_AS_FIRST_DIRECTIVE_TIME_H |
| 679 | NEXT_TIME_H | 679 | NEXT_TIME_H |
| 680 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H | ||
| 681 | NEXT_SYS_STAT_H | ||
| 682 | REPLACE_UTIMENSAT | ||
| 683 | REPLACE_STAT | ||
| 684 | REPLACE_MKNOD | ||
| 685 | REPLACE_MKFIFO | ||
| 686 | REPLACE_MKDIR | ||
| 687 | REPLACE_LSTAT | ||
| 688 | REPLACE_FUTIMENS | ||
| 689 | REPLACE_FSTATAT | ||
| 690 | REPLACE_FSTAT | ||
| 691 | HAVE_UTIMENSAT | ||
| 692 | HAVE_MKNODAT | ||
| 693 | HAVE_MKNOD | ||
| 694 | HAVE_MKFIFOAT | ||
| 695 | HAVE_MKFIFO | ||
| 696 | HAVE_MKDIRAT | ||
| 697 | HAVE_LSTAT | ||
| 698 | HAVE_LCHMOD | ||
| 699 | HAVE_FUTIMENS | ||
| 700 | HAVE_FSTATAT | ||
| 701 | HAVE_FCHMODAT | ||
| 702 | GNULIB_UTIMENSAT | ||
| 703 | GNULIB_STAT | ||
| 704 | GNULIB_MKNODAT | ||
| 705 | GNULIB_MKNOD | ||
| 706 | GNULIB_MKFIFOAT | ||
| 707 | GNULIB_MKFIFO | ||
| 708 | GNULIB_MKDIRAT | ||
| 709 | GNULIB_LSTAT | ||
| 710 | GNULIB_LCHMOD | ||
| 711 | GNULIB_FUTIMENS | ||
| 712 | GNULIB_FSTATAT | ||
| 713 | GNULIB_FCHMODAT | ||
| 680 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H | 714 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H |
| 681 | NEXT_STDLIB_H | 715 | NEXT_STDLIB_H |
| 682 | STDINT_H | 716 | STDINT_H |
| @@ -2926,6 +2960,7 @@ as_fn_append ac_func_list " alarm" | |||
| 2926 | as_fn_append ac_header_list " wchar.h" | 2960 | as_fn_append ac_header_list " wchar.h" |
| 2927 | as_fn_append ac_header_list " stdint.h" | 2961 | as_fn_append ac_header_list " stdint.h" |
| 2928 | as_fn_append ac_func_list " tzset" | 2962 | as_fn_append ac_func_list " tzset" |
| 2963 | as_fn_append ac_header_list " sys/stat.h" | ||
| 2929 | as_fn_append ac_header_list " sys/time.h" | 2964 | as_fn_append ac_header_list " sys/time.h" |
| 2930 | as_fn_append ac_func_list " localtime_r" | 2965 | as_fn_append ac_func_list " localtime_r" |
| 2931 | # Check that the precious variables saved in the cache have kept the same | 2966 | # Check that the precious variables saved in the cache have kept the same |
| @@ -6089,6 +6124,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |||
| 6089 | # Code from module dtoastr: | 6124 | # Code from module dtoastr: |
| 6090 | # Code from module extensions: | 6125 | # Code from module extensions: |
| 6091 | 6126 | ||
| 6127 | # Code from module filemode: | ||
| 6092 | # Code from module getloadavg: | 6128 | # Code from module getloadavg: |
| 6093 | # Code from module getopt-gnu: | 6129 | # Code from module getopt-gnu: |
| 6094 | # Code from module getopt-posix: | 6130 | # Code from module getopt-posix: |
| @@ -6103,6 +6139,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |||
| 6103 | # Code from module stdint: | 6139 | # Code from module stdint: |
| 6104 | # Code from module stdlib: | 6140 | # Code from module stdlib: |
| 6105 | # Code from module strftime: | 6141 | # Code from module strftime: |
| 6142 | # Code from module sys_stat: | ||
| 6106 | # Code from module time: | 6143 | # Code from module time: |
| 6107 | # Code from module time_r: | 6144 | # Code from module time_r: |
| 6108 | # Code from module unistd: | 6145 | # Code from module unistd: |
| @@ -13718,6 +13755,52 @@ $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h | |||
| 13718 | 13755 | ||
| 13719 | fi | 13756 | fi |
| 13720 | 13757 | ||
| 13758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5 | ||
| 13759 | $as_echo_n "checking for st_dm_mode in struct stat... " >&6; } | ||
| 13760 | if ${ac_cv_struct_st_dm_mode+:} false; then : | ||
| 13761 | $as_echo_n "(cached) " >&6 | ||
| 13762 | else | ||
| 13763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13764 | /* end confdefs.h. */ | ||
| 13765 | |||
| 13766 | #include <sys/types.h> | ||
| 13767 | #include <sys/stat.h> | ||
| 13768 | int | ||
| 13769 | main () | ||
| 13770 | { | ||
| 13771 | struct stat s; s.st_dm_mode; | ||
| 13772 | ; | ||
| 13773 | return 0; | ||
| 13774 | } | ||
| 13775 | _ACEOF | ||
| 13776 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13777 | ac_cv_struct_st_dm_mode=yes | ||
| 13778 | else | ||
| 13779 | ac_cv_struct_st_dm_mode=no | ||
| 13780 | fi | ||
| 13781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13782 | fi | ||
| 13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5 | ||
| 13784 | $as_echo "$ac_cv_struct_st_dm_mode" >&6; } | ||
| 13785 | |||
| 13786 | if test $ac_cv_struct_st_dm_mode = yes; then | ||
| 13787 | |||
| 13788 | $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h | ||
| 13789 | |||
| 13790 | fi | ||
| 13791 | |||
| 13792 | |||
| 13793 | ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default" | ||
| 13794 | if test "x$ac_cv_have_decl_strmode" = xyes; then : | ||
| 13795 | ac_have_decl=1 | ||
| 13796 | else | ||
| 13797 | ac_have_decl=0 | ||
| 13798 | fi | ||
| 13799 | |||
| 13800 | cat >>confdefs.h <<_ACEOF | ||
| 13801 | #define HAVE_DECL_STRMODE $ac_have_decl | ||
| 13802 | _ACEOF | ||
| 13803 | |||
| 13721 | 13804 | ||
| 13722 | GNULIB__EXIT=0; | 13805 | GNULIB__EXIT=0; |
| 13723 | GNULIB_ATOLL=0; | 13806 | GNULIB_ATOLL=0; |
| @@ -14770,6 +14853,84 @@ fi | |||
| 14770 | 14853 | ||
| 14771 | 14854 | ||
| 14772 | 14855 | ||
| 14856 | |||
| 14857 | GNULIB_FCHMODAT=0; | ||
| 14858 | GNULIB_FSTATAT=0; | ||
| 14859 | GNULIB_FUTIMENS=0; | ||
| 14860 | GNULIB_LCHMOD=0; | ||
| 14861 | GNULIB_LSTAT=0; | ||
| 14862 | GNULIB_MKDIRAT=0; | ||
| 14863 | GNULIB_MKFIFO=0; | ||
| 14864 | GNULIB_MKFIFOAT=0; | ||
| 14865 | GNULIB_MKNOD=0; | ||
| 14866 | GNULIB_MKNODAT=0; | ||
| 14867 | GNULIB_STAT=0; | ||
| 14868 | GNULIB_UTIMENSAT=0; | ||
| 14869 | HAVE_FCHMODAT=1; | ||
| 14870 | HAVE_FSTATAT=1; | ||
| 14871 | HAVE_FUTIMENS=1; | ||
| 14872 | HAVE_LCHMOD=1; | ||
| 14873 | HAVE_LSTAT=1; | ||
| 14874 | HAVE_MKDIRAT=1; | ||
| 14875 | HAVE_MKFIFO=1; | ||
| 14876 | HAVE_MKFIFOAT=1; | ||
| 14877 | HAVE_MKNOD=1; | ||
| 14878 | HAVE_MKNODAT=1; | ||
| 14879 | HAVE_UTIMENSAT=1; | ||
| 14880 | REPLACE_FSTAT=0; | ||
| 14881 | REPLACE_FSTATAT=0; | ||
| 14882 | REPLACE_FUTIMENS=0; | ||
| 14883 | REPLACE_LSTAT=0; | ||
| 14884 | REPLACE_MKDIR=0; | ||
| 14885 | REPLACE_MKFIFO=0; | ||
| 14886 | REPLACE_MKNOD=0; | ||
| 14887 | REPLACE_STAT=0; | ||
| 14888 | REPLACE_UTIMENSAT=0; | ||
| 14889 | |||
| 14890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 | ||
| 14891 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | ||
| 14892 | if ${ac_cv_header_stat_broken+:} false; then : | ||
| 14893 | $as_echo_n "(cached) " >&6 | ||
| 14894 | else | ||
| 14895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14896 | /* end confdefs.h. */ | ||
| 14897 | #include <sys/types.h> | ||
| 14898 | #include <sys/stat.h> | ||
| 14899 | |||
| 14900 | #if defined S_ISBLK && defined S_IFDIR | ||
| 14901 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | ||
| 14902 | #endif | ||
| 14903 | |||
| 14904 | #if defined S_ISBLK && defined S_IFCHR | ||
| 14905 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | ||
| 14906 | #endif | ||
| 14907 | |||
| 14908 | #if defined S_ISLNK && defined S_IFREG | ||
| 14909 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | ||
| 14910 | #endif | ||
| 14911 | |||
| 14912 | #if defined S_ISSOCK && defined S_IFREG | ||
| 14913 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | ||
| 14914 | #endif | ||
| 14915 | |||
| 14916 | _ACEOF | ||
| 14917 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 14918 | ac_cv_header_stat_broken=no | ||
| 14919 | else | ||
| 14920 | ac_cv_header_stat_broken=yes | ||
| 14921 | fi | ||
| 14922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 14923 | fi | ||
| 14924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 | ||
| 14925 | $as_echo "$ac_cv_header_stat_broken" >&6; } | ||
| 14926 | if test $ac_cv_header_stat_broken = yes; then | ||
| 14927 | |||
| 14928 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h | ||
| 14929 | |||
| 14930 | fi | ||
| 14931 | |||
| 14932 | |||
| 14933 | |||
| 14773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 | 14934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
| 14774 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } | 14935 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
| 14775 | if ${ac_cv_c_restrict+:} false; then : | 14936 | if ${ac_cv_c_restrict+:} false; then : |
| @@ -15033,6 +15194,21 @@ fi | |||
| 15033 | # Code from module dtoastr: | 15194 | # Code from module dtoastr: |
| 15034 | 15195 | ||
| 15035 | # Code from module extensions: | 15196 | # Code from module extensions: |
| 15197 | # Code from module filemode: | ||
| 15198 | |||
| 15199 | |||
| 15200 | |||
| 15201 | |||
| 15202 | |||
| 15203 | |||
| 15204 | |||
| 15205 | |||
| 15206 | |||
| 15207 | |||
| 15208 | gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext" | ||
| 15209 | |||
| 15210 | |||
| 15211 | |||
| 15036 | # Code from module getloadavg: | 15212 | # Code from module getloadavg: |
| 15037 | 15213 | ||
| 15038 | 15214 | ||
| @@ -16783,6 +16959,90 @@ $as_echo "#define my_strftime nstrftime" >>confdefs.h | |||
| 16783 | 16959 | ||
| 16784 | 16960 | ||
| 16785 | 16961 | ||
| 16962 | # Code from module sys_stat: | ||
| 16963 | |||
| 16964 | |||
| 16965 | |||
| 16966 | |||
| 16967 | |||
| 16968 | |||
| 16969 | |||
| 16970 | |||
| 16971 | |||
| 16972 | |||
| 16973 | |||
| 16974 | |||
| 16975 | |||
| 16976 | |||
| 16977 | |||
| 16978 | |||
| 16979 | if test $gl_cv_have_include_next = yes; then | ||
| 16980 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' | ||
| 16981 | else | ||
| 16982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 | ||
| 16983 | $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } | ||
| 16984 | if ${gl_cv_next_sys_stat_h+:} false; then : | ||
| 16985 | $as_echo_n "(cached) " >&6 | ||
| 16986 | else | ||
| 16987 | |||
| 16988 | if test $ac_cv_header_sys_stat_h = yes; then | ||
| 16989 | |||
| 16990 | |||
| 16991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16992 | /* end confdefs.h. */ | ||
| 16993 | #include <sys/stat.h> | ||
| 16994 | |||
| 16995 | _ACEOF | ||
| 16996 | case "$host_os" in | ||
| 16997 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | ||
| 16998 | *) gl_absname_cpp="$ac_cpp" ;; | ||
| 16999 | esac | ||
| 17000 | gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | ||
| 17001 | sed -n '\#/sys/stat.h#{ | ||
| 17002 | s#.*"\(.*/sys/stat.h\)".*#\1# | ||
| 17003 | s#^/[^/]#//&# | ||
| 17004 | p | ||
| 17005 | q | ||
| 17006 | }'`'"' | ||
| 17007 | else | ||
| 17008 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' | ||
| 17009 | fi | ||
| 17010 | |||
| 17011 | |||
| 17012 | fi | ||
| 17013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 | ||
| 17014 | $as_echo "$gl_cv_next_sys_stat_h" >&6; } | ||
| 17015 | fi | ||
| 17016 | NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h | ||
| 17017 | |||
| 17018 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | ||
| 17019 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | ||
| 17020 | gl_next_as_first_directive='<'sys/stat.h'>' | ||
| 17021 | else | ||
| 17022 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | ||
| 17023 | gl_next_as_first_directive=$gl_cv_next_sys_stat_h | ||
| 17024 | fi | ||
| 17025 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive | ||
| 17026 | |||
| 17027 | |||
| 17028 | |||
| 17029 | |||
| 17030 | |||
| 17031 | ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> | ||
| 17032 | #include <sys/stat.h> | ||
| 17033 | " | ||
| 17034 | if test "x$ac_cv_type_nlink_t" = xyes; then : | ||
| 17035 | |||
| 17036 | else | ||
| 17037 | |||
| 17038 | $as_echo "#define nlink_t int" >>confdefs.h | ||
| 17039 | |||
| 17040 | fi | ||
| 17041 | |||
| 17042 | |||
| 17043 | |||
| 17044 | |||
| 17045 | |||
| 16786 | # Code from module time: | 17046 | # Code from module time: |
| 16787 | 17047 | ||
| 16788 | 17048 | ||