• Paul Eggert's avatar
    Replace executable’s fingerprint in place · 5c2f94a1
    Paul Eggert authored
    * admin/merge-gnulib (GNULIB_MODULES): Add memmem-simple.
    (AVOIDED_MODULES): Add memchr.
    * configure.ac (HAVE_PDUMPER): AC_SUBST it, too, for use in makefiles.
    * lib/Makefile.in (libgnu_a_OBJECTS): Add fingerprint.o.
    * lib/fingerprint.c: New file.
    * lib/memmem.c, lib/str-two-way.h, m4/memmem.m4: New files,
    copied from Gnulib.
    * lib/fingerprint.h: Rename from src/fingerprint.h.
    * lib-src/make-fingerprint.c: Include limits.h, sys/stat.h,
    fingerprint.h, intprops.h, min-max.h.
    (SSIZE_MAX): New macro, if not already defined.
    (main): Without -r, Replace the fingerprint in the input file
    instead of generating a fingerprint.c.
    * lib/Makefile.in (libgnu_a_OBJECTS): Add fingerprint.o.
    * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
    New macros.
    (temacs$(EXEEXT)): Use them to replace the fingerprint instead
    of precalculating it.
    (mostlyclean, ctagsfiles1): Do not worry about fingerprint.c.
gnulib-comp.m4 31.9 KB