diff options
| author | Paul Eggert | 2017-03-14 13:44:11 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-03-14 14:50:02 -0700 |
| commit | fac0bb9cf76072941ae9dc9c7019929eb1a0f1dd (patch) | |
| tree | 1b9618b5eea568e8230b4348af3df1084bd63e67 | |
| parent | 5a64d78854998c2ed6d9b8de1b593d8462b8fa39 (diff) | |
| download | emacs-fac0bb9cf76072941ae9dc9c7019929eb1a0f1dd.tar.gz emacs-fac0bb9cf76072941ae9dc9c7019929eb1a0f1dd.zip | |
Merge from gnulib
This incorporates:
2017-03-14 snippets: move unadjusted snippet sources to lib
2017-03-14 gnulib-tool: fix typo in comment output
2017-03-14 snippets: work around GNU Make 3.82 VPATH
2017-03-13 gnulib-tool: minor --gnu-make fixups
2017-03-12 gnulib-tool: new option --gnu-make
* .gitignore: Remove lib/arg-nonnull.h, lib/c++defs.h,
lib/warn-on-use.h. Change exception from
build-aux/snippet/_Noreturn.h to lib/_Noreturn.h.
* admin/authors.el (authors-renamed-files-regexps):
* admin/notes/copyright, make-dist:
The snippet files moved from build-aux/snippet to lib.
* lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
* lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
* lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
| -rw-r--r-- | .gitignore | 5 | ||||
| -rw-r--r-- | admin/authors.el | 2 | ||||
| -rw-r--r-- | admin/notes/copyright | 4 | ||||
| -rw-r--r-- | lib/_Noreturn.h (renamed from build-aux/snippet/_Noreturn.h) | 0 | ||||
| -rw-r--r-- | lib/arg-nonnull.h (renamed from build-aux/snippet/arg-nonnull.h) | 0 | ||||
| -rw-r--r-- | lib/c++defs.h (renamed from build-aux/snippet/c++defs.h) | 0 | ||||
| -rw-r--r-- | lib/gnulib.mk | 70 | ||||
| -rw-r--r-- | lib/warn-on-use.h (renamed from build-aux/snippet/warn-on-use.h) | 0 | ||||
| -rw-r--r-- | m4/gnulib-comp.m4 | 15 | ||||
| -rwxr-xr-x | make-dist | 13 |
10 files changed, 36 insertions, 73 deletions
diff --git a/.gitignore b/.gitignore index e8eb4fdeaed..f5265ff1ef9 100644 --- a/.gitignore +++ b/.gitignore | |||
| @@ -57,9 +57,7 @@ src/epaths.h | |||
| 57 | 57 | ||
| 58 | # C-level sources built by 'make'. | 58 | # C-level sources built by 'make'. |
| 59 | lib/alloca.h | 59 | lib/alloca.h |
| 60 | lib/arg-nonnull.h | ||
| 61 | lib/byteswap.h | 60 | lib/byteswap.h |
| 62 | lib/c++defs.h | ||
| 63 | lib/dirent.h | 61 | lib/dirent.h |
| 64 | lib/errno.h | 62 | lib/errno.h |
| 65 | lib/execinfo.h | 63 | lib/execinfo.h |
| @@ -76,7 +74,6 @@ lib/string.h | |||
| 76 | lib/sys/ | 74 | lib/sys/ |
| 77 | lib/time.h | 75 | lib/time.h |
| 78 | lib/unistd.h | 76 | lib/unistd.h |
| 79 | lib/warn-on-use.h | ||
| 80 | src/buildobj.h | 77 | src/buildobj.h |
| 81 | src/globals.h | 78 | src/globals.h |
| 82 | src/lisp.mk | 79 | src/lisp.mk |
| @@ -274,7 +271,7 @@ etc/emacs.tmpdesktop | |||
| 274 | # Microsoft-related builds and installations. | 271 | # Microsoft-related builds and installations. |
| 275 | *.in-h | 272 | *.in-h |
| 276 | _* | 273 | _* |
| 277 | !build-aux/snippet/_Noreturn.h | 274 | !lib/_Noreturn.h |
| 278 | /bin/ | 275 | /bin/ |
| 279 | /BIN/ | 276 | /BIN/ |
| 280 | /data/ | 277 | /data/ |
diff --git a/admin/authors.el b/admin/authors.el index 69f1c96983c..d8f56fd9258 100644 --- a/admin/authors.el +++ b/admin/authors.el | |||
| @@ -980,7 +980,7 @@ Elements are (OLDNAME . NEWNAME).") | |||
| 980 | ;; Cf authors-renamed-files-alist. | 980 | ;; Cf authors-renamed-files-alist. |
| 981 | (defconst authors-renamed-files-regexps | 981 | (defconst authors-renamed-files-regexps |
| 982 | '(("\\`\\(arg-nonnull\\|c\\+\\+defs\\|warn-on-use\\)\\.h\\'" | 982 | '(("\\`\\(arg-nonnull\\|c\\+\\+defs\\|warn-on-use\\)\\.h\\'" |
| 983 | "build-aux/snippet/\\&") | 983 | "lib/\\&") |
| 984 | ("\\`\\(ebuild\\|emacs\\|install\\|fast-install\\)\\.cmd\\'" "\\1.bat") | 984 | ("\\`\\(ebuild\\|emacs\\|install\\|fast-install\\)\\.cmd\\'" "\\1.bat") |
| 985 | ("\\`\\(book-spine\\|cl\\|forms\\|functions\\|gnus\\|sc\\|texinfo\\|vip\\)\ | 985 | ("\\`\\(book-spine\\|cl\\|forms\\|functions\\|gnus\\|sc\\|texinfo\\|vip\\)\ |
| 986 | \\.texinfo\\'" "\\1.texi") | 986 | \\.texinfo\\'" "\\1.texi") |
diff --git a/admin/notes/copyright b/admin/notes/copyright index 16144fb8528..66c69ac0279 100644 --- a/admin/notes/copyright +++ b/admin/notes/copyright | |||
| @@ -541,10 +541,6 @@ alone (may import them from Gnulib again). These are: | |||
| 541 | build-aux/depcomp | 541 | build-aux/depcomp |
| 542 | build-aux/missing | 542 | build-aux/missing |
| 543 | build-aux/move-if-change | 543 | build-aux/move-if-change |
| 544 | build-aux/snippet/_Noreturn.h | ||
| 545 | build-aux/snippet/arg-nonnull.h | ||
| 546 | build-aux/snippet/c++defs.h | ||
| 547 | build-aux/snippet/warn-on-use.h | ||
| 548 | doc/man/texinfo.tex | 544 | doc/man/texinfo.tex |
| 549 | lib/*.[ch] | 545 | lib/*.[ch] |
| 550 | lib/gnulib.mk | 546 | lib/gnulib.mk |
diff --git a/build-aux/snippet/_Noreturn.h b/lib/_Noreturn.h index c44ad89b7c0..c44ad89b7c0 100644 --- a/build-aux/snippet/_Noreturn.h +++ b/lib/_Noreturn.h | |||
diff --git a/build-aux/snippet/arg-nonnull.h b/lib/arg-nonnull.h index 1e62cc89827..1e62cc89827 100644 --- a/build-aux/snippet/arg-nonnull.h +++ b/lib/arg-nonnull.h | |||
diff --git a/build-aux/snippet/c++defs.h b/lib/c++defs.h index f03f3591c35..f03f3591c35 100644 --- a/build-aux/snippet/c++defs.h +++ b/lib/c++defs.h | |||
diff --git a/lib/gnulib.mk b/lib/gnulib.mk index 7a0de1b440d..4109e7f6af5 100644 --- a/lib/gnulib.mk +++ b/lib/gnulib.mk | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | MOSTLYCLEANFILES += core *.stackdump | 27 | MOSTLYCLEANFILES += core *.stackdump |
| 28 | # No GNU Make output. | ||
| 28 | 29 | ||
| 29 | noinst_LIBRARIES += libgnu.a | 30 | noinst_LIBRARIES += libgnu.a |
| 30 | 31 | ||
| @@ -873,81 +874,48 @@ EXTRA_DIST += signal.in.h | |||
| 873 | ## begin gnulib module snippet/_Noreturn | 874 | ## begin gnulib module snippet/_Noreturn |
| 874 | 875 | ||
| 875 | # Because this Makefile snippet defines a variable used by other | 876 | # Because this Makefile snippet defines a variable used by other |
| 876 | # gnulib Makefile snippets, it must be present in all Makefile.am that | 877 | # gnulib Makefile snippets, it must be present in all makefiles that |
| 877 | # need it. This is ensured by the applicability 'all' defined above. | 878 | # need it. This is ensured by the applicability 'all' defined above. |
| 878 | 879 | ||
| 879 | _NORETURN_H=$(top_srcdir)/build-aux/snippet/_Noreturn.h | 880 | _NORETURN_H=$(srcdir)/_Noreturn.h |
| 880 | 881 | ||
| 881 | EXTRA_DIST += $(top_srcdir)/build-aux/snippet/_Noreturn.h | 882 | EXTRA_DIST += _Noreturn.h |
| 882 | 883 | ||
| 883 | ## end gnulib module snippet/_Noreturn | 884 | ## end gnulib module snippet/_Noreturn |
| 884 | 885 | ||
| 885 | ## begin gnulib module snippet/arg-nonnull | 886 | ## begin gnulib module snippet/arg-nonnull |
| 886 | 887 | ||
| 887 | # The BUILT_SOURCES created by this Makefile snippet are not used via #include | 888 | # Because this Makefile snippet defines a variable used by other |
| 888 | # statements but through direct file reference. Therefore this snippet must be | 889 | # gnulib Makefile snippets, it must be present in all makefiles that |
| 889 | # present in all Makefile.am that need it. This is ensured by the applicability | 890 | # need it. This is ensured by the applicability 'all' defined above. |
| 890 | # 'all' defined above. | ||
| 891 | |||
| 892 | BUILT_SOURCES += arg-nonnull.h | ||
| 893 | # The arg-nonnull.h that gets inserted into generated .h files is the same as | ||
| 894 | # build-aux/snippet/arg-nonnull.h, except that it has the copyright header cut | ||
| 895 | # off. | ||
| 896 | arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h | ||
| 897 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 898 | sed -n -e '/GL_ARG_NONNULL/,$$p' \ | ||
| 899 | < $(top_srcdir)/build-aux/snippet/arg-nonnull.h \ | ||
| 900 | > $@-t && \ | ||
| 901 | mv $@-t $@ | ||
| 902 | MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t | ||
| 903 | 891 | ||
| 904 | ARG_NONNULL_H=arg-nonnull.h | 892 | ARG_NONNULL_H=$(srcdir)/arg-nonnull.h |
| 905 | 893 | ||
| 906 | EXTRA_DIST += $(top_srcdir)/build-aux/snippet/arg-nonnull.h | 894 | EXTRA_DIST += arg-nonnull.h |
| 907 | 895 | ||
| 908 | ## end gnulib module snippet/arg-nonnull | 896 | ## end gnulib module snippet/arg-nonnull |
| 909 | 897 | ||
| 910 | ## begin gnulib module snippet/c++defs | 898 | ## begin gnulib module snippet/c++defs |
| 911 | 899 | ||
| 912 | # The BUILT_SOURCES created by this Makefile snippet are not used via #include | 900 | # Because this Makefile snippet defines a variable used by other |
| 913 | # statements but through direct file reference. Therefore this snippet must be | 901 | # gnulib Makefile snippets, it must be present in all makefiles that |
| 914 | # present in all Makefile.am that need it. This is ensured by the applicability | 902 | # need it. This is ensured by the applicability 'all' defined above. |
| 915 | # 'all' defined above. | ||
| 916 | |||
| 917 | BUILT_SOURCES += c++defs.h | ||
| 918 | # The c++defs.h that gets inserted into generated .h files is the same as | ||
| 919 | # build-aux/snippet/c++defs.h, except that it has the copyright header cut off. | ||
| 920 | c++defs.h: $(top_srcdir)/build-aux/snippet/c++defs.h | ||
| 921 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 922 | sed -n -e '/_GL_CXXDEFS/,$$p' \ | ||
| 923 | < $(top_srcdir)/build-aux/snippet/c++defs.h \ | ||
| 924 | > $@-t && \ | ||
| 925 | mv $@-t $@ | ||
| 926 | MOSTLYCLEANFILES += c++defs.h c++defs.h-t | ||
| 927 | 903 | ||
| 928 | CXXDEFS_H=c++defs.h | 904 | CXXDEFS_H=$(srcdir)/c++defs.h |
| 929 | 905 | ||
| 930 | EXTRA_DIST += $(top_srcdir)/build-aux/snippet/c++defs.h | 906 | EXTRA_DIST += c++defs.h |
| 931 | 907 | ||
| 932 | ## end gnulib module snippet/c++defs | 908 | ## end gnulib module snippet/c++defs |
| 933 | 909 | ||
| 934 | ## begin gnulib module snippet/warn-on-use | 910 | ## begin gnulib module snippet/warn-on-use |
| 935 | 911 | ||
| 936 | BUILT_SOURCES += warn-on-use.h | 912 | # Because this Makefile snippet defines a variable used by other |
| 937 | # The warn-on-use.h that gets inserted into generated .h files is the same as | 913 | # gnulib Makefile snippets, it must be present in all makefiles that |
| 938 | # build-aux/snippet/warn-on-use.h, except that it has the copyright header cut | 914 | # need it. This is ensured by the applicability 'all' defined above. |
| 939 | # off. | ||
| 940 | warn-on-use.h: $(top_srcdir)/build-aux/snippet/warn-on-use.h | ||
| 941 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 942 | sed -n -e '/^.ifndef/,$$p' \ | ||
| 943 | < $(top_srcdir)/build-aux/snippet/warn-on-use.h \ | ||
| 944 | > $@-t && \ | ||
| 945 | mv $@-t $@ | ||
| 946 | MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t | ||
| 947 | 915 | ||
| 948 | WARN_ON_USE_H=warn-on-use.h | 916 | WARN_ON_USE_H=$(srcdir)/warn-on-use.h |
| 949 | 917 | ||
| 950 | EXTRA_DIST += $(top_srcdir)/build-aux/snippet/warn-on-use.h | 918 | EXTRA_DIST += warn-on-use.h |
| 951 | 919 | ||
| 952 | ## end gnulib module snippet/warn-on-use | 920 | ## end gnulib module snippet/warn-on-use |
| 953 | 921 | ||
diff --git a/build-aux/snippet/warn-on-use.h b/lib/warn-on-use.h index 3c0eb579fa2..3c0eb579fa2 100644 --- a/build-aux/snippet/warn-on-use.h +++ b/lib/warn-on-use.h | |||
diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 index a3e30fd736e..bf7afa51bf6 100644 --- a/m4/gnulib-comp.m4 +++ b/m4/gnulib-comp.m4 | |||
| @@ -787,6 +787,8 @@ changequote([, ])dnl | |||
| 787 | AC_SUBST([LIBGNU_LIBDEPS]) | 787 | AC_SUBST([LIBGNU_LIBDEPS]) |
| 788 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" | 788 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" |
| 789 | AC_SUBST([LIBGNU_LTLIBDEPS]) | 789 | AC_SUBST([LIBGNU_LTLIBDEPS]) |
| 790 | LIBTESTS_LIBDEPS="$gltests_libdeps" | ||
| 791 | AC_SUBST([LIBTESTS_LIBDEPS]) | ||
| 790 | ]) | 792 | ]) |
| 791 | 793 | ||
| 792 | # Like AC_LIBOBJ, except that the module name goes | 794 | # Like AC_LIBOBJ, except that the module name goes |
| @@ -847,11 +849,8 @@ AC_DEFUN([gltests_LIBSOURCES], [ | |||
| 847 | # gnulib-tool and may be removed by future gnulib-tool invocations. | 849 | # gnulib-tool and may be removed by future gnulib-tool invocations. |
| 848 | AC_DEFUN([gl_FILE_LIST], [ | 850 | AC_DEFUN([gl_FILE_LIST], [ |
| 849 | build-aux/gitlog-to-changelog | 851 | build-aux/gitlog-to-changelog |
| 850 | build-aux/snippet/_Noreturn.h | ||
| 851 | build-aux/snippet/arg-nonnull.h | ||
| 852 | build-aux/snippet/c++defs.h | ||
| 853 | build-aux/snippet/warn-on-use.h | ||
| 854 | build-aux/update-copyright | 852 | build-aux/update-copyright |
| 853 | lib/_Noreturn.h | ||
| 855 | lib/acl-errno-valid.c | 854 | lib/acl-errno-valid.c |
| 856 | lib/acl-internal.c | 855 | lib/acl-internal.c |
| 857 | lib/acl-internal.h | 856 | lib/acl-internal.h |
| @@ -860,10 +859,12 @@ AC_DEFUN([gl_FILE_LIST], [ | |||
| 860 | lib/alloca.in.h | 859 | lib/alloca.in.h |
| 861 | lib/allocator.c | 860 | lib/allocator.c |
| 862 | lib/allocator.h | 861 | lib/allocator.h |
| 862 | lib/arg-nonnull.h | ||
| 863 | lib/at-func.c | 863 | lib/at-func.c |
| 864 | lib/binary-io.c | 864 | lib/binary-io.c |
| 865 | lib/binary-io.h | 865 | lib/binary-io.h |
| 866 | lib/byteswap.in.h | 866 | lib/byteswap.in.h |
| 867 | lib/c++defs.h | ||
| 867 | lib/c-ctype.c | 868 | lib/c-ctype.c |
| 868 | lib/c-ctype.h | 869 | lib/c-ctype.h |
| 869 | lib/c-strcase.h | 870 | lib/c-strcase.h |
| @@ -995,6 +996,7 @@ AC_DEFUN([gl_FILE_LIST], [ | |||
| 995 | lib/utimens.h | 996 | lib/utimens.h |
| 996 | lib/verify.h | 997 | lib/verify.h |
| 997 | lib/vla.h | 998 | lib/vla.h |
| 999 | lib/warn-on-use.h | ||
| 998 | lib/xalloc-oversized.h | 1000 | lib/xalloc-oversized.h |
| 999 | m4/00gnulib.m4 | 1001 | m4/00gnulib.m4 |
| 1000 | m4/absolute-header.m4 | 1002 | m4/absolute-header.m4 |
| @@ -1104,4 +1106,9 @@ AC_DEFUN([gl_FILE_LIST], [ | |||
| 1104 | m4/warnings.m4 | 1106 | m4/warnings.m4 |
| 1105 | m4/wchar_t.m4 | 1107 | m4/wchar_t.m4 |
| 1106 | m4/wint_t.m4 | 1108 | m4/wint_t.m4 |
| 1109 | tests=lib/_Noreturn.h | ||
| 1110 | tests=lib/arg-nonnull.h | ||
| 1111 | tests=lib/c++defs.h | ||
| 1112 | tests=lib/dummy.c | ||
| 1113 | tests=lib/warn-on-use.h | ||
| 1107 | ]) | 1114 | ]) |
| @@ -366,7 +366,7 @@ ln aclocal.m4 CONTRIBUTE ${tempdir} | |||
| 366 | echo "Creating subdirectories" | 366 | echo "Creating subdirectories" |
| 367 | for subdir in site-lisp \ | 367 | for subdir in site-lisp \ |
| 368 | leim leim/CXTERM-DIC leim/MISC-DIC leim/SKK-DIC \ | 368 | leim leim/CXTERM-DIC leim/MISC-DIC leim/SKK-DIC \ |
| 369 | build-aux build-aux/snippet \ | 369 | build-aux \ |
| 370 | src src/bitmaps lib lib-src oldXMenu lwlib \ | 370 | src src/bitmaps lib lib-src oldXMenu lwlib \ |
| 371 | nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \ | 371 | nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \ |
| 372 | `find etc lisp admin test -type d` \ | 372 | `find etc lisp admin test -type d` \ |
| @@ -424,10 +424,6 @@ echo "Making links to 'build-aux'" | |||
| 424 | ln update-copyright update-subdirs ../${tempdir}/build-aux | 424 | ln update-copyright update-subdirs ../${tempdir}/build-aux |
| 425 | ln dir_top make-info-dir ar-lib ../${tempdir}/build-aux) | 425 | ln dir_top make-info-dir ar-lib ../${tempdir}/build-aux) |
| 426 | 426 | ||
| 427 | echo "Making links to 'build-aux/snippet'" | ||
| 428 | (cd build-aux/snippet | ||
| 429 | ln *.h ../../${tempdir}/build-aux/snippet) | ||
| 430 | |||
| 431 | echo "Making links to 'src'" | 427 | echo "Making links to 'src'" |
| 432 | ### Don't distribute the configured versions of | 428 | ### Don't distribute the configured versions of |
| 433 | ### config.in, paths.in, buildobj.h, or Makefile.in. | 429 | ### config.in, paths.in, buildobj.h, or Makefile.in. |
| @@ -446,13 +442,12 @@ echo "Making links to 'src/bitmaps'" | |||
| 446 | ln README *.xbm ../../${tempdir}/src/bitmaps) | 442 | ln README *.xbm ../../${tempdir}/src/bitmaps) |
| 447 | 443 | ||
| 448 | echo "Making links to 'lib'" | 444 | echo "Making links to 'lib'" |
| 449 | (snippet_h=`(cd build-aux/snippet && ls *.h)` | 445 | (cd lib |
| 450 | cd lib | 446 | ln [a-zA-Z_]*.[ch] ../${tempdir}/lib |
| 451 | ln [a-zA-Z]*.[ch] ../${tempdir}/lib | ||
| 452 | ln gnulib.mk Makefile.am Makefile.in ../${tempdir}/lib | 447 | ln gnulib.mk Makefile.am Makefile.in ../${tempdir}/lib |
| 453 | cd ../${tempdir}/lib | 448 | cd ../${tempdir}/lib |
| 454 | script='/[*]/d; s/\.in\.h$/.h/' | 449 | script='/[*]/d; s/\.in\.h$/.h/' |
| 455 | rm -f `(echo "$snippet_h"; ls *.in.h) | sed "$script"`) | 450 | rm -f `ls *.in.h | sed "$script"`) |
| 456 | 451 | ||
| 457 | echo "Making links to 'lib-src'" | 452 | echo "Making links to 'lib-src'" |
| 458 | (cd lib-src | 453 | (cd lib-src |