Description: Compute cyclic redundancy codes. Files: lib/crc.h lib/crc.c lib/crc-generate-table.c m4/crc.m4 m4/build-cc.m4 Depends-on: stdint-h endian configure.ac: AC_REQUIRE([gl_CRC_SLICE_BY_8]) gl_BUILD_CC AC_PROG_MKDIR_P Makefile.am: lib_SOURCES += crc.c # Generate crc-sliceby8.h. # Use a native compiler when cross-compiling. # Don't use any Gnulib modules (since libgnu.a will only be available after # this directory is built!). Therefore, don't use any of the Automake variables # $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(AM_CFLAGS) # $(AM_LDFLAGS). And do the compilation in a temporary directory, where # gnulib-generated stdio.h and stdlib.h files are not visible. $(srcdir)/crc-sliceby8.h: $(srcdir)/crc-generate-table.c $(AM_V_GEN)if test -n '$(BUILD_CC)'; then \ $(MKDIR_P) '%reldir%/crc-tmp' \ && abs_srcdir=`cd $(srcdir)/. && pwd` \ && (cd '%reldir%/crc-tmp' \ && $(BUILD_CC) $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o crc-generate-table $$abs_srcdir/crc-generate-table.c) \ && '%reldir%/crc-tmp/crc-generate-table' $(srcdir)/crc-sliceby8.h-t \ && rm -rf '%reldir%/crc-tmp' \ && mv $(srcdir)/crc-sliceby8.h-t $(srcdir)/crc-sliceby8.h; \ fi BUILT_SOURCES += crc-sliceby8.h MOSTLYCLEANFILES += crc-sliceby8.h-t crc-tmp/crc-generate-table MOSTLYCLEANDIRS += crc-tmp MAINTAINERCLEANFILES += crc-sliceby8.h EXTRA_DIST += crc-sliceby8.h Include: "crc.h" License: LGPL Maintainer: Simon Josefsson