fix, chore, allow make distcheck from a clean build directory

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, also add libltdlc.la (libtool convenience) to the dist-hook

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'bld/dist' into next

* bld/dist:
  chore, also add libltdlc.la (libtool convenience) to the dist-hook
  fix, chore, allow make distcheck from a clean build directory
fix, add path to libltdl includes to CPPFLAGS of programs that use it

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, hygiene, include config.h in all C source files

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, hygiene, include config.h in all C-based test files

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, define common scom header based on endianness

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, do not rely on bit-set magic to implement the rewound feature of seeks

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, de-hard-code page size in utetpc assertion

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, do not hard-code (and disguise) page size

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, compare equally-signed values

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, code offset layout in seek_sort() page-size-invariantly

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, allow seek_page() to fail, int retcode <0 in case of failure

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
cosmetics, bring more DEBUGvv output in seek_page()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, check for offsets (to be passed to mmap()) that aren't multiples of the page size

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, provide a flag to track skewed page-offsets (SEEK_FL_OFFSET_SKEWED) ...

This is for systems with a page size >sizeof(struct utehdr2_s) (aka 4096).  As mmap()
needs an offset that is a multiple of the page size, we shift the pointer by 4096 bytes
then keep track of this shift and unshift it before munmap()ing.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'bld/ppc' into next

* bld/ppc:
  fix, provide a flag to track skewed page-offsets (SEEK_FL_OFFSET_SKEWED) ...
  fix, check for offsets (to be passed to mmap()) that aren't multiples of the page size
  cosmetics, bring more DEBUGvv output in seek_page()
  minor, allow seek_page() to fail, int retcode <0 in case of failure
  minor, code offset layout in seek_sort() page-size-invariantly
  fix, compare equally-signed values
  fix, do not hard-code (and disguise) page size
  fix, de-hard-code page size in utetpc assertion
  fix, do not rely on bit-set magic to implement the rewound feature of seeks
  fix, define common scom header based on endianness
  chore, hygiene, include config.h in all C-based test files
  chore, hygiene, include config.h in all C source files
  fix, add path to libltdl includes to CPPFLAGS of programs that use it
fix, use fd -1 for memory maps in ute-shnot.c

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, use fd -1 for memory maps in utetpc.c

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, use fd -1 for memory maps in utefile.c

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>